* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: auto;
    user-select: auto;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

.container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 28px;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: #8892b0;
    font-size: 12px;
    margin-top: 5px;
}

.form-box {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #8892b0;
    font-size: 12px;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-user-select: auto;
    user-select: auto;
    user-select: text;
}

.form-group input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group input.error {
    border-color: #ff6b6b;
}

.form-group .error-text {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #00d4ff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-success {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    color: #fff;
}

.toggle-text {
    text-align: center;
    margin-top: 20px;
    color: #8892b0;
    font-size: 14px;
}

.toggle-text span {
    color: #00d4ff;
    cursor: pointer;
    position: relative;
    z-index: 2;
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
}

.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.nav-item {
    text-align: center;
    color: #8892b0;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-item .nav-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #00d4ff;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    animation: toastIn 0.3s ease;
    border-left: 4px solid;
}

.toast-success {
    border-left-color: #00c853;
}

.toast-success .toast-icon {
    color: #00c853;
}

.toast-error {
    border-left-color: #ff5252;
}

.toast-error .toast-icon {
    color: #ff5252;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-info {
    border-left-color: #00d4ff;
}

.toast-info .toast-icon {
    color: #00d4ff;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-message {
    color: #fff;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #8892b0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 12px;
    color: #8892b0;
    margin-top: 3px;
}

.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.running {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.status.stopped {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6464;
}

.status.starting {
    background: rgba(255, 180, 0, 0.15);
    color: #ffb400;
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metric-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #00d4ff;
}

.metric-label {
    font-size: 11px;
    color: #8892b0;
    margin-top: 5px;
}

/* User Header */
.user-header {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 44, 191, 0.1));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.user-header .avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}

.user-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.server-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #8892b0;
    white-space: nowrap;
}

.server-icon {
    font-size: 14px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.balance-label {
    font-size: 14px;
    color: #8892b0;
    white-space: nowrap;
}

.balance-value {
    font-size: 15px;
    font-weight: 600;
    color: #00d4ff;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.power-info {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.power-label {
    font-size: 14px;
    color: #8892b0;
    white-space: nowrap;
}

.power-value {
    font-size: 15px;
    font-weight: 600;
    color: #7b2cbf;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.power-unit {
    font-size: 12px;
    color: #8892b0;
    white-space: nowrap;
}

.btn-small {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-small.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    color: #fff;
}

.btn-small.btn-primary:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.btn-small.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-small.btn-secondary:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Today Output Card */
.today-output-card {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(0, 212, 255, 0.15));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(123, 44, 191, 0.3);
    text-align: center;
}

.today-title {
    font-size: 14px;
    color: #8892b0;
    margin-bottom: 10px;
}

.today-data {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.today-value {
    font-size: 28px;
    font-weight: 700;
    color: #7b2cbf;
}

.today-unit {
    font-size: 14px;
    color: #8892b0;
}

/* Slider */
.slider-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    border-radius: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #00d4ff;
    width: 20px;
    border-radius: 4px;
}

/* Currency Rate */
.currency-rate {
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    color: #00ff88;
    font-size: 14px;
}

.currency-rate .rate-value {
    font-weight: 700;
    font-size: 18px;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.back-btn {
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

/* Server List */
.server-card-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 20px;
    padding: 2px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.server-card-wrapper:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.server-card-inner {
    background: rgba(10, 10, 30, 0.9);
    border-radius: 19px;
    padding: 20px;
}

.server-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.server-info {
    flex: 1;
}

.server-name-lg {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.server-location {
    font-size: 12px;
    color: #8892b0;
}

.status-indicator {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.running {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.05));
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.status-indicator.stopped {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 100, 100, 0.05));
    color: #ff6464;
}

.status-indicator.starting {
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.2), rgba(255, 200, 50, 0.05));
    color: #ffc832;
    animation: pulse 1.5s ease-in-out infinite;
}

.server-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.server-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.server-stat-label {
    font-size: 11px;
    color: #8892b0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.server-stat-value.highlight {
    color: #00d4ff;
}

.server-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-start {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #fff;
}

.btn-stop {
    background: linear-gradient(135deg, #ff6464, #cc4444);
    color: #fff;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #8892b0;
    cursor: not-allowed;
}

/* Server Stats Bar */
.server-stats-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.server-stat-tag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-stat-tag .count {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.server-stat-tag.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.server-stat-tag.active .count {
    background: #00d4ff;
    color: #0a0a1e;
}

.server-stat-tag:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Server Grid Layout for Multiple Servers */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.server-grid .server-card-wrapper {
    margin-bottom: 0;
}

.server-grid .server-card-inner {
    padding: 15px;
}

.server-grid .server-name-lg {
    font-size: 15px;
}

.server-grid .server-location {
    font-size: 11px;
}

.server-grid .server-stats-grid {
    gap: 8px;
    margin-bottom: 12px;
}

.server-grid .server-stat-box {
    padding: 8px;
}

.server-grid .server-stat-label {
    font-size: 10px;
}

.server-grid .server-stat-value {
    font-size: 14px;
}

.server-grid .server-action-btn {
    padding: 10px;
    font-size: 12px;
}

/* Progress Bar */
.progress-bar-container {
    margin-bottom: 15px;
}

.progress-bar-label {
    font-size: 11px;
    color: #8892b0;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
}

.progress-bar-fill.starting {
    background: linear-gradient(90deg, #ffc832, #ff8c00);
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    color: #8892b0;
    font-weight: 600;
}

.data-table td {
    color: #fff;
}

/* Tabs */
.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    color: #8892b0;
    font-size: 14px;
    transition: all 0.3s;
}

.tab.active {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.tab-badge {
    display: inline-block;
    background: #ff5252;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Notification Item */
.notification-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.notification-item.unread {
    border-left: 3px solid #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.notification-content {
    font-size: 13px;
    color: #8892b0;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 11px;
    color: #666;
}

/* Server Shop */
.country-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.country-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.country-tag:hover {
    border-color: #00d4ff;
}

.country-tag.selected {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
}

.server-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.server-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.server-card:hover {
    border-color: #00d4ff;
    transform: translateY(-3px);
}

.server-card.selected {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.server-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.server-spec {
    font-size: 11px;
    color: #8892b0;
    margin-bottom: 10px;
}

.server-price {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88;
}



/* Input with Button */
.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn input {
    flex: 1;
}

.input-with-btn .btn {
    width: auto;
    white-space: nowrap;
}

/* Profile Menu */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
}

.menu-text {
    flex: 1;
}

.menu-title {
    font-size: 15px;
    font-weight: 500;
}

.menu-desc {
    font-size: 12px;
    color: #8892b0;
    margin-top: 3px;
}

.menu-arrow {
    color: #8892b0;
    font-size: 18px;
}

/* Invite Page */
.invite-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 44, 191, 0.1));
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.qr-code-box {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 12px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.invite-code-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.invite-code {
    font-size: 20px;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 3px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.empty-state-desc {
    font-size: 14px;
    color: #8892b0;
    margin-bottom: 24px;
}

/* Page transitions */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading */
.skeleton-loading {
    opacity: 0.6;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.stat-item .stat-icon.skeleton {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.stat-item .stat-content .stat-value.skeleton {
    width: 60px;
    height: 18px;
    border-radius: 4px;
}

.stat-item .stat-content .stat-label.skeleton {
    width: 50px;
    height: 12px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Responsive */
/* 提现展示模块 */
.cashout-display-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cashout-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cashout-item {
    font-size: 11px;
    color: #8892b0;
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 幻灯片图片 */
.slide {
    flex: 0 0 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide .placeholder {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* 响应式样式 - 小屏幕手机 */
@media (max-width: 375px) {
    .container {
        padding: 12px;
        padding-bottom: 90px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .form-box {
        padding: 20px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .server-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
    
    .slide {
        height: 150px;
    }
}

/* 响应式样式 - 中等屏幕手机 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
        padding-bottom: 90px;
    }
    
    .server-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
}

/* 响应式样式 - 大屏幕手机 */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 20px;
        max-width: 540px;
    }
    
    .server-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .container {
        padding-bottom: 100px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .form-box {
        padding: 20px;
    }
}
