.recharge-page {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-family);
    color: rgba(244, 244, 245, 0.92);
    background: var(--hz-bg-page);
}

.rcx-stage {
    position: relative;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    padding: max(var(--space-sm), env(safe-area-inset-top)) var(--space-md) 0;
}

.rcx-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 55% at 0% 0%, rgba(196, 30, 58, 0.18) 0%, transparent 52%),
        radial-gradient(ellipse 80% 50% at 100% 8%, rgba(30, 64, 175, 0.16) 0%, transparent 48%),
        #0a0a0a;
}

.rcx-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0 var(--space-md);
}

.rcx-back {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(244, 244, 245, 0.18);
    border-radius: 6px;
    background: rgba(15, 17, 24, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.rcx-back:hover {
    border-color: rgba(196, 30, 58, 0.5);
    box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.28);
}

.rcx-back svg {
    width: 22px;
    height: 22px;
    color: #f4f4f5;
}

.rcx-top-copy {
    min-width: 0;
    text-align: center;
}

.rcx-eyebrow {
    margin: 0 0 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.45);
}

.rcx-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 5vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f4f4f5;
    line-height: 1.05;
}

.rcx-top-slot {
    width: 44px;
    height: 44px;
}

.rcx-wallet {
    position: relative;
    z-index: 2;
    padding: 0 0 var(--space-lg);
}

.rcx-wallet-frame {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 24px) 100%, 0 100%);
}

.rcx-wallet-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--hz-gradient-primary);
    border-radius: 2px 0 0 2px;
    box-shadow: 0 0 22px var(--hz-accent-glow);
    z-index: 2;
}

.rcx-wallet-body {
    position: relative;
    margin-left: 6px;
    padding: 20px 20px 22px;
    background: linear-gradient(128deg, #ffffff 0%, #f4f4f5 42%, #e8ecf4 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: none;
    border-radius: 0 4px 4px 0;
    box-shadow:
        14px 24px 44px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rcx-wallet-label {
    margin: 0 0 var(--space-sm);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.5);
}

.rcx-wallet-sum {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 11vw, 3.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.rcx-wallet-hint {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rcx-wallet-notch {
    position: absolute;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: inset 0 0 0 1px rgba(244, 244, 245, 0.06);
    z-index: 3;
}

.rcx-wallet-notch--left {
    left: 28px;
}

.rcx-wallet-notch--right {
    right: 28px;
}

.rcx-scroll {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--space-md));
    padding: 0 var(--space-md);
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
}

.rcx-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-md) 0 var(--space-2xl);
}

.rcx-amounts {
    padding: var(--space-lg);
    background: rgba(244, 244, 245, 0.96);
    border: 1px solid rgba(10, 10, 10, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
    color: #0a0a0a;
}

.rcx-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.rcx-section-copy {
    min-width: 0;
}

.rcx-section-title {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 3.2vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--hz-text-primary);
}

.rcx-section-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

.rcx-section-tag {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1e40af;
    background: rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.rcx-amount-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
}

.rcx-amount-chip {
    position: relative;
    min-height: 52px;
    padding: var(--space-sm) var(--space-xs);
    border-radius: 10px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    overflow: hidden;
}

.rcx-amount-chip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

.rcx-amount-chip:hover {
    border-color: rgba(196, 30, 58, 0.35);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.12);
}

.rcx-amount-chip:hover::before {
    background: #c41e3a;
}

.rcx-amount-chip.selected {
    border-color: transparent;
    background: linear-gradient(135deg, #c41e3a 0%, #1e40af 100%);
    box-shadow: 0 10px 26px rgba(196, 30, 58, 0.32);
}

.rcx-amount-chip.selected::before {
    background: rgba(255, 255, 255, 0.35);
}

.rcx-amount-chip.selected .rcx-chip-value {
    color: var(--text-inverse);
}

.rcx-amount-chip.selected .rcx-chip-mark {
    opacity: 1;
    transform: scale(1);
}

.rcx-chip-value {
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 2.6vw, 0.92rem);
    font-weight: 700;
    color: var(--hz-text-primary);
    letter-spacing: -0.02em;
    transition: color 0.2s;
    text-align: center;
    white-space: nowrap;
}

.rcx-amount-action {
    margin-top: var(--space-lg);
}

.rcx-chip-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.rcx-chip-mark svg {
    width: 13px;
    height: 13px;
    color: var(--text-inverse);
}

.rcx-guide {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(244, 244, 245, 0.08);
    background: rgba(18, 20, 26, 0.72);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.rcx-guide-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.16) 0%, rgba(30, 64, 175, 0.12) 100%);
    border-bottom: 1px solid rgba(244, 244, 245, 0.08);
}

.rcx-guide-banner-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(244, 244, 245, 0.06);
    border: 1px solid rgba(244, 244, 245, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rcx-guide-banner-icon svg {
    width: 18px;
    height: 18px;
    color: #f4f4f5;
}

.rcx-guide-banner-title {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f4f4f5;
}

.rcx-guide-steps {
    display: flex;
    flex-direction: column;
}

.rcx-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid rgba(244, 244, 245, 0.06);
}

.rcx-step:first-child {
    border-top: none;
}

.rcx-step-num {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(196, 30, 58, 0.12);
    border: 1px solid rgba(196, 30, 58, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    color: #f87171;
}

.rcx-step-body {
    min-width: 0;
    padding-top: 2px;
}

.rcx-step-body h3 {
    margin: 0 0 var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 700;
    color: rgba(244, 244, 245, 0.95);
}

.rcx-step-body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
    color: rgba(244, 244, 245, 0.55);
}

.rcx-pay-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: 2px solid rgba(244, 244, 245, 0.12);
    border-radius: 10px;
    background: linear-gradient(135deg, #c41e3a 0%, #1e40af 100%);
    color: var(--text-inverse);
    font-size: var(--text-base);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(196, 30, 58, 0.34);
    font-family: inherit;
    transition: var(--transition);
}

.rcx-pay-btn:hover {
    box-shadow: 0 12px 32px rgba(196, 30, 58, 0.42);
}

.rcx-pay-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rcx-pay-btn-icon svg {
    width: 20px;
    height: 20px;
}

.toast {
    position: fixed;
    top: max(var(--space-lg), env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: #ffffff;
    color: var(--text-primary);
    padding: var(--space-md) var(--space-xl);
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow) var(--ease-in-out);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    max-width: calc(100vw - var(--space-xl));
    text-align: center;
}

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

.toast.success {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-inverse);
}

.toast.error {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--text-inverse);
}

.toast.warning {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--text-inverse);
}

.toast.info {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-inverse);
}

.loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal) var(--ease-in-out);
}

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

.spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(244, 244, 245, 0.08);
    border-top-color: var(--accent-primary);
    border-right-color: rgba(30, 64, 175, 0.5);
    border-radius: var(--radius-full);
    animation: rcx-spin 0.7s linear infinite;
}

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

@media (min-width: 600px) {
    .rcx-stage {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }

    .rcx-scroll {
        margin-left: calc(-1 * var(--space-xl));
        margin-right: calc(-1 * var(--space-xl));
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }

    .rcx-amount-list {
        gap: var(--space-md);
    }

    .rcx-amount-chip {
        min-height: 58px;
    }

    .rcx-chip-value {
        font-size: 0.92rem;
    }
}

@media (min-width: 900px) {
    .recharge-page {
        background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(196, 30, 58, 0.14) 0%, #0a0a0a 62%);
    }

    .rcx-stage {
        padding-top: var(--space-xl);
    }
}

@media (max-width: 360px) {
    .rcx-chip-value {
        font-size: 0.68rem;
    }

    .rcx-amount-chip {
        min-height: 46px;
        padding: var(--space-xs) 2px;
    }

    .rcx-wallet-sum {
        font-size: 2.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rcx-amount-chip,
    .rcx-pay-btn,
    .toast,
    .loading {
        transition-duration: 0.01ms;
    }

    .spinner {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
