﻿.recharge-page {
    min-height: 100vh;
    background: var(--bg-page);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.recharge-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.98) 0%, rgba(10, 15, 30, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-back {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.header-back:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: scale(1.05);
}

.header-back svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

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

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.header-history {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.header-history:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
}

.header-history svg {
    width: 20px;
    height: 20px;
    color: var(--accent-secondary);
}

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

.balance-showcase {
    padding: 24px 20px;
}

.balance-card-primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 240, 255, 0.1);
    border: 2px solid rgba(0, 240, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.balance-card-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    animation: rotateBackground 20s linear infinite;
    pointer-events: none;
}

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

.balance-label-wrapper {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.balance-display {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.amount-selection-area {
    padding: 0 20px 28px;
}

.section-heading {
    margin-bottom: 20px;
    text-align: center;
}

.section-heading-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.amount-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.amount-option-card {
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(10, 15, 30, 0.8) 100%);
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    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;
    position: relative;
    overflow: hidden;
}

.amount-option-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.amount-option-card:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.amount-option-card.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 8px 20px rgba(0, 0, 0, 0.5);
}

.amount-option-card.selected::after {
    opacity: 1;
}

.amount-option-inner {
    display: flex;
    align-items: baseline;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.amount-currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.amount-option-card.selected .amount-currency {
    color: var(--text-inverse);
}

.amount-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.amount-option-card.selected .amount-number {
    color: var(--text-inverse);
}

.guidelines-section {
    padding: 0 20px 28px;
}

.guidelines-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    justify-content: center;
}

.guidelines-header svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.guidelines-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.3px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.guidelines-container {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.guideline-entry {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.guideline-entry:last-child {
    margin-bottom: 0;
}

.guideline-marker {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.guideline-marker span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-inverse);
}

.guideline-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding-top: 4px;
}

.guideline-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.recharge-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 14, 27, 0.98) 0%, rgba(5, 8, 20, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(0, 240, 255, 0.5);
    padding: 18px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
    z-index: 90;
}

.submit-action-btn {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 28px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    color: var(--text-inverse);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    letter-spacing: 0.5px;
    display: block;
    text-align: center;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.submit-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.8), 0 8px 24px rgba(0, 0, 0, 0.6);
}

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

.toast {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: var(--bg-overlay);
    color: var(--text-inverse);
    padding: 18px 32px;
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: var(--shadow-card);
    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: 15px;
    backdrop-filter: blur(20px);
}

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

.toast.success {
    background: rgba(0, 255, 163, 0.95);
    border-color: var(--success);
    box-shadow: 0 8px 32px rgba(0, 255, 163, 0.4);
}

.toast.error {
    background: rgba(255, 0, 64, 0.95);
    border-color: var(--danger);
    color: var(--text-inverse);
    box-shadow: 0 8px 32px rgba(255, 0, 64, 0.4);
}

.toast.warning {
    background: rgba(255, 107, 53, 0.95);
    border-color: var(--warning);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.toast.info {
    background: rgba(0, 240, 255, 0.95);
    border-color: var(--info);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.4);
}

.loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 248, 220, 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: 64px;
    height: 64px;
    border: 5px solid var(--border-light);
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: var(--shadow-glow-secondary);
}

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

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

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

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

    .balance-showcase {
        padding: 20px 16px;
    }

    .balance-card-primary {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .balance-display {
        font-size: 48px;
    }

    .amount-selection-area {
        padding: 0 16px 24px;
    }

    .section-heading-text {
        font-size: 20px;
    }

    .amount-options-grid {
        gap: 14px;
    }

    .amount-option-card {
        padding: 18px 16px;
        min-height: 72px;
        border-radius: 14px;
    }

    .amount-number {
        font-size: 22px;
    }

    .guidelines-section {
        padding: 0 16px 24px;
    }

    .guidelines-container {
        padding: 20px 16px;
    }

    .recharge-footer {
        padding: 16px 18px;
    }

    .submit-action-btn {
        padding: 15px 24px;
        font-size: 16px;
    }
}

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

    .header-back, .header-history {
        width: 36px;
        height: 36px;
    }

    .header-back svg, .header-history svg {
        width: 18px;
        height: 18px;
    }

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

    .balance-showcase {
        padding: 18px 14px;
    }

    .balance-card-primary {
        padding: 22px 18px;
    }

    .balance-display {
        font-size: 44px;
    }

    .amount-selection-area {
        padding: 0 14px 20px;
    }

    .section-heading-text {
        font-size: 19px;
    }

    .amount-options-grid {
        gap: 12px;
    }

    .amount-option-card {
        padding: 16px 14px;
        min-height: 68px;
    }

    .amount-currency {
        font-size: 15px;
    }

    .amount-number {
        font-size: 20px;
    }

    .guidelines-section {
        padding: 0 14px 20px;
    }

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

    .guidelines-container {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .guideline-text {
        font-size: 13px;
    }

    .recharge-footer {
        padding: 14px 16px;
    }

    .submit-action-btn {
        padding: 14px 22px;
        font-size: 15px;
    }
}

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

    .balance-display {
        font-size: 40px;
    }

    .section-heading-text {
        font-size: 18px;
    }

    .amount-options-grid {
        gap: 10px;
    }

    .amount-option-card {
        padding: 14px 12px;
        min-height: 64px;
    }

    .amount-currency {
        font-size: 14px;
    }

    .amount-number {
        font-size: 19px;
    }

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

    .guidelines-container {
        padding: 16px 12px;
    }

    .guideline-marker {
        width: 30px;
        height: 30px;
    }

    .guideline-marker span {
        font-size: 14px;
    }

    .guideline-text {
        font-size: 12px;
    }

    .submit-action-btn {
        padding: 13px 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;
    }
}
