﻿.recharge-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.recharge-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 102, 204, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 102, 204, 0.3);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-back {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-back:hover {
    background: #F5F7FA;
    border-color: #0066CC;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    transform: scale(1.05);
}

.header-back svg {
    width: 20px;
    height: 20px;
    color: #0066CC;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.5px;
}

.recharge-main {
    flex: 1;
    overflow-y: auto;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
    padding: 0 0 32px;
}

.balance-card-wrapper {
    padding: 24px 20px;
}

.balance-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.12);
    border: 2px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.balance-amount-wrapper {
    margin-bottom: 24px;
}

.balance-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--hz-text-primary);
    margin: 0;
    letter-spacing: -1px;
}

.balance-history-btn {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--hz-text-secondary);
}

.balance-history-btn:hover {
    background: #F8FAFC;
    border-color: #0066CC;
    color: #0066CC;
}

.balance-history-btn svg {
    width: 18px;
    height: 18px;
}

.amount-section {
    padding: 0 20px 32px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--hz-text-primary);
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
}

.section-decoration {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #0066CC, #00C853);
    border-radius: 2px;
}

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

.amount-card {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.amount-card:hover {
    border-color: #0066CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
}

.amount-card.selected {
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
}

.amount-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--hz-text-primary);
    transition: color 0.3s ease;
}

.amount-card.selected .amount-value {
    color: #FFFFFF;
}

.info-section {
    padding: 0 20px 32px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.info-header svg {
    width: 24px;
    height: 24px;
    color: #0066CC;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--hz-text-primary);
    margin: 0;
    letter-spacing: 0.3px;
}

.info-content {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-dot {
    width: 8px;
    height: 8px;
    background: #0066CC;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.info-item p {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    color: var(--hz-text-secondary);
    margin: 0;
}

.info-item strong {
    color: var(--hz-text-primary);
    font-weight: 600;
}

.submit-button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
    border: none;
    border-radius: 16px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
    letter-spacing: 0.5px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.toast {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: rgba(26, 26, 26, 0.95);
    color: #FFFFFF;
    padding: 16px 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(20px);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: rgba(0, 200, 83, 0.95);
    border-color: rgba(0, 200, 83, 0.3);
}

.toast.error {
    background: rgba(211, 47, 47, 0.95);
    border-color: rgba(239, 83, 80, 0.3);
    color: #FFFFFF;
}

.toast.warning {
    background: rgba(251, 192, 45, 0.95);
    border-color: rgba(255, 213, 79, 0.3);
    color: #1A1A1A;
}

.toast.info {
    background: rgba(0, 102, 204, 0.95);
    border-color: rgba(0, 102, 204, 0.3);
}

.loading {
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #E2E8F0;
    border-top-color: #0066CC;
    border-right-color: #00C853;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .recharge-header {
        padding: 14px 16px;
    }

    .header-back {
        width: 38px;
        height: 38px;
    }

    .header-title {
        font-size: 17px;
    }

    .balance-card-wrapper {
        padding: 20px 16px;
    }

    .balance-card {
        padding: 28px 20px;
    }

    .balance-amount {
        font-size: 38px;
    }

    .amount-section {
        padding: 0 16px 28px;
    }

    .section-title {
        font-size: 18px;
    }

    .amount-grid {
        gap: 10px;
    }

    .amount-card {
        padding: 20px 12px;
        min-height: 70px;
    }

    .amount-value {
        font-size: 18px;
    }

    .info-section {
        padding: 0 16px 28px;
    }

    .info-content {
        padding: 20px;
    }

    .info-item p {
        font-size: 12px;
    }

    .submit-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .balance-card {
        padding: 24px 16px;
    }

    .balance-amount {
        font-size: 34px;
    }

    .amount-section {
        padding: 0 12px 24px;
    }

    .section-title {
        font-size: 17px;
    }

    .amount-grid {
        gap: 8px;
    }

    .amount-card {
        padding: 18px 10px;
        min-height: 65px;
    }

    .amount-value {
        font-size: 17px;
    }

    .info-section {
        padding: 0 12px 24px;
    }

    .info-content {
        padding: 16px;
    }

    .info-item p {
        font-size: 11px;
    }

    .submit-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
