/* ==========================================================================
   💳 NEXTPAY — ADVANCED FINTECH WALLET ENGINE (v7.0.0)
   Obsidian + Glass + Fintech + Aqua EdTech Design System
   Hardware-accelerated 60FPS • Zero Jank • Mobile-First Responsive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&family=Orbitron:wght@600;700;800;900&display=swap');

/* ==========================================================================
   1. NEXUS WALLET TOKENS (Dark Obsidian & Light Frosted Glass)
   ========================================================================== */
:root, [data-theme="dark"] {
    --nexus-bg: #140e0c;
    --nexus-bg-alt: #1a120f;
    --nexus-bg-gradient: radial-gradient(circle at 50% 0%, #2a1813 0%, #140e0c 70%);
    --nexus-surface: #1d1512;
    --nexus-surface-card: #201714;
    --nexus-surface-hover: #261c18;
    --nexus-surface-solid: #1d1512;
    --nexus-glass: rgba(29, 21, 18, 0.94);
    --nexus-glass-border: rgba(255, 255, 255, 0.08);
    --nexus-glass-border-hover: rgba(16, 185, 129, 0.45);
    --nexus-text: #f8fafc;
    --nexus-text-muted: #cbd5e1;
    --nexus-text-dim: #94a3b8;
    --nexus-primary: #10b981;
    --nexus-primary-hover: #059669;
    --nexus-primary-light: rgba(16, 185, 129, 0.12);
    --nexus-cyan: #10b981;
    --nexus-blue: #3b82f6;
    --nexus-purple: #10b981;
    --nexus-amber: #f59e0b;
    --nexus-emerald: #10b981;
    --nexus-rose: #ef4444;
    --nexus-gold: #fbbf24;
    
    /* NextPay Card Tokens */
    --card-gradient: linear-gradient(135deg, #241713 0%, #17100e 60%, #2e1d17 100%);
    --card-glow: rgba(16, 185, 129, 0.2);
    --card-border-gold: rgba(251, 191, 36, 0.5);
    --input-bg: #241a16;
    
    --nexus-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
    --nexus-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --nexus-font: 'Poppins', sans-serif;
    --nexus-font-heading: 'Outfit', sans-serif;
    --nexus-font-mono: 'Orbitron', monospace;
    --nexus-header-height: 72px;
    --nexus-bottom-nav-height: 68px;
    --nexus-max-width: 620px;
    --nexus-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --nexus-bg: #fbf9fe;
    --nexus-bg-alt: #f3eefc;
    --nexus-bg-gradient: radial-gradient(circle at 50% 0%, #ede8f5 0%, #fbf9fe 85%);
    --nexus-surface: #ffffff;
    --nexus-surface-card: #ffffff;
    --nexus-surface-hover: #faf7ff;
    --nexus-surface-solid: #ffffff;
    --nexus-glass: rgba(255, 255, 255, 0.94);
    --nexus-glass-border: rgba(124, 58, 237, 0.12);
    --nexus-glass-border-hover: rgba(124, 58, 237, 0.4);
    --nexus-text: #1e1b4b;
    --nexus-text-muted: #5b5570;
    --nexus-text-dim: #8b859e;
    --nexus-primary: #7c3aed;
    --nexus-primary-hover: #6d28d9;
    --nexus-primary-light: rgba(124, 58, 237, 0.08);
    --nexus-cyan: #7c3aed;
    --nexus-blue: #6366f1;
    --nexus-purple: #7c3aed;
    --nexus-amber: #d97706;
    --nexus-emerald: #059669;
    --nexus-rose: #dc2626;
    --nexus-gold: #d97706;
    
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #fbf9fe 60%, #f3eefc 100%);
    --card-glow: rgba(124, 58, 237, 0.14);
    --card-border-gold: rgba(217, 119, 6, 0.45);
    --input-bg: #f5f2fa;
    
    --nexus-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
    --nexus-glass-shadow: 0 6px 20px rgba(124, 58, 237, 0.06);
}

/* ==========================================================================
   2. 60FPS HARDWARE ACCELERATION & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.dashboard-body {
    background-color: var(--nexus-bg) !important;
    background-image: var(--nexus-bg-gradient) !important;
    color: var(--nexus-text) !important;
    font-family: var(--nexus-font) !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-bottom: calc(var(--nexus-bottom-nav-height) + 50px) !important;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Force GPU Layer Promotion */
.ambient-bg-canvas,
.ambient-orb,
.app-header,
.crypto-card,
.pulse-card,
.smart-topup-card,
.history-hub-card,
.modal-content,
.bottom-nav {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 🌌 Ambient Background Canvas */
.ambient-bg-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.32;
    transform: translate3d(0, 0, 0);
    animation: ambientFloat 20s infinite alternate ease-in-out;
    will-change: transform;
}

[data-theme="light"] .ambient-orb {
    opacity: 0.18;
    filter: blur(120px);
}

.ambient-orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
    top: -80px;
    right: -60px;
}

.ambient-orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
    top: 40%;
    left: -100px;
    animation-delay: -7s;
}

.ambient-orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
    bottom: 8%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes ambientFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, 30px, 0) scale(1.06); }
    100% { transform: translate3d(-20px, -24px, 0) scale(0.96); }
}

.main-content {
    max-width: var(--nexus-max-width);
    margin: 0 auto;
    padding: 14px 18px 40px;
    position: relative;
    z-index: 1;
}

.wallet-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* ==========================================================================
   3. APP HEADER (TOP BAR)
   ========================================================================== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    margin-bottom: 16px;
    background: var(--nexus-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 22px;
    box-shadow: var(--nexus-glass-shadow);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-top-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: var(--nexus-surface);
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-top-back:hover {
    background: var(--nexus-surface-hover);
    border-color: var(--nexus-primary);
    color: var(--nexus-primary);
    transform: translateX(-2px);
}

.btn-top-back i {
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.btn-top-back:hover i {
    transform: translateX(-3px);
}

.brand-text-block {
    display: flex;
    align-items: center;
}

.header-brand-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--nexus-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexus-cyan);
    font-size: 1.15rem;
}

.header-titles {
    display: flex;
    flex-direction: column;
}

.header-greeting {
    font-family: var(--nexus-font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--nexus-text);
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-greeting span {
    color: var(--nexus-cyan);
}

.header-subtext {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--nexus-text-muted);
    letter-spacing: 0.2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.glossy-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--nexus-surface-card);
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s var(--nexus-ease);
}

.glossy-btn:hover {
    color: var(--nexus-cyan);
    border-color: var(--nexus-glass-border-hover);
    transform: translate3d(0, -2px, 0);
}

.header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.15));
    border: 2px solid var(--nexus-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s var(--nexus-ease);
}

.header-avatar:hover {
    transform: scale(1.08);
}

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

/* ==========================================================================
   4. 3D HOLOGRAPHIC OBSIDIAN VAULT CARD
   ========================================================================== */
.card-3d-wrapper {
    perspective: 1200px;
    width: 100%;
}

.crypto-card.modern-wallet-card {
    position: relative;
    width: 100%;
    min-height: 220px;
    border-radius: 26px;
    padding: 24px;
    background: var(--card-gradient);
    border: 1px solid var(--nexus-glass-border);
    box-shadow: var(--nexus-shadow), 0 0 30px var(--card-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

[data-theme="light"] .crypto-card.modern-wallet-card {
    border-color: rgba(15, 23, 42, 0.12);
}

/* Holographic Sheen Overlay */
.card-overlay-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.shimmer-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 55%, transparent 65%);
    background-size: 200% 200%;
    pointer-events: none;
    opacity: 0.8;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.chip-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chip-icon {
    font-size: 1.6rem;
    color: var(--nexus-cyan);
}

.contactless-icon {
    font-size: 1.15rem;
    color: var(--nexus-text-muted);
    opacity: 0.8;
    transform: rotate(90deg);
}

.card-tier-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text);
    font-family: var(--nexus-font-heading);
}

.tier-pill-gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.2)) !important;
    border-color: var(--card-border-gold) !important;
    color: var(--nexus-gold) !important;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.tier-pill-silver {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.2)) !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    color: #cbd5e1 !important;
}

.vendor-brand {
    font-family: var(--nexus-font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--nexus-text);
}

.vendor-brand span {
    color: var(--nexus-cyan);
}

/* Card Balance */
.card-balance {
    margin: 18px 0;
    position: relative;
    z-index: 2;
}

.card-balance .label {
    margin: 0 0 4px 0;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--nexus-cyan);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--nexus-font-heading);
}

.card-balance h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--nexus-text);
    font-family: var(--nexus-font-mono);
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.user-meta span {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--nexus-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.user-meta p {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--nexus-text);
    font-family: var(--nexus-font-heading);
}

#user-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--nexus-glass-border);
    padding: 3px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#user-id:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--nexus-cyan);
    color: var(--nexus-cyan);
}

/* ==========================================================================
   5. FINANCIAL PULSE METRICS
   ========================================================================== */
.financial-pulse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pulse-card {
    background: var(--nexus-surface-card);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--nexus-glass-shadow);
    transition: transform 0.25s var(--nexus-ease), border-color 0.25s ease;
    will-change: transform;
}

.pulse-card:hover {
    transform: translate3d(0, -3px, 0);
    border-color: var(--nexus-glass-border-hover);
}

.pulse-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--nexus-text-muted);
}

.pulse-val {
    font-family: var(--nexus-font-mono);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--nexus-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pulse-val.positive {
    color: var(--nexus-emerald);
}

.pulse-val.neutral {
    color: var(--nexus-purple);
}

/* ==========================================================================
   6. SMART TOP-UP CARD
   ========================================================================== */
.smart-topup-card {
    background: var(--nexus-surface-card);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--nexus-shadow);
}

.topup-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topup-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topup-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexus-cyan);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.topup-header-text h3 {
    margin: 0;
    font-family: var(--nexus-font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nexus-text);
}

.topup-header-text p {
    margin: 2px 0 0 0;
    font-size: 0.74rem;
    color: var(--nexus-text-muted);
    font-weight: 600;
}

.rzp-powered-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--nexus-blue);
    font-size: 0.72rem;
    font-weight: 800;
}

/* Enter Amount Input Box */
.enter-amount-box {
    background: var(--nexus-surface-solid);
    border: 1.5px solid var(--nexus-glass-border);
    border-radius: 18px;
    padding: 12px 18px;
    transition: all 0.25s var(--nexus-ease);
}

.enter-amount-box:focus-within {
    border-color: var(--nexus-cyan);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.amount-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-sym {
    font-family: var(--nexus-font-mono);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--nexus-cyan);
}

.deposit-amount-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--nexus-font-mono);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--nexus-text);
    outline: none;
}

/* Quick Amount Chips Row */
.amount-chips-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.quick-chip-btn {
    position: relative;
    padding: 10px 4px;
    border-radius: 14px;
    background: var(--nexus-surface-solid);
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text);
    font-family: var(--nexus-font-mono);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s var(--nexus-ease);
    text-align: center;
    will-change: transform;
}

.quick-chip-btn:hover {
    border-color: var(--nexus-glass-border-hover);
    transform: translate3d(0, -2px, 0);
}

.quick-chip-btn.active {
    background: linear-gradient(135deg, var(--nexus-primary), var(--nexus-primary-hover));
    color: #ffffff;
    border-color: var(--nexus-primary);
    box-shadow: 0 4px 14px var(--nexus-primary-light);
}

.chip-popular-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    padding: 1px 6px;
    border-radius: 999px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Coupon Bar */
.coupon-input-wrap {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    background: var(--nexus-surface-solid);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 14px;
    padding: 10px 14px;
    color: var(--nexus-text);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    font-family: var(--nexus-font-mono);
    transition: all 0.2s ease;
}

.coupon-input:focus {
    border-color: var(--nexus-cyan);
}

.btn-apply-coupon {
    padding: 10px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid var(--nexus-cyan);
    color: var(--nexus-cyan);
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.25s var(--nexus-ease);
}

.btn-apply-coupon:hover {
    background: var(--nexus-cyan);
    color: #ffffff;
    transform: translate3d(0, -2px, 0);
}

/* Price Breakdown Receipt Card */
.price-breakdown-card {
    background: var(--nexus-surface-solid);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--nexus-text-muted);
    font-weight: 600;
}

.breakdown-row span:last-child {
    font-family: var(--nexus-font-mono);
    font-weight: 700;
    color: var(--nexus-text);
}

.breakdown-row.total-row {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--nexus-glass-border);
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--nexus-text);
}

.total-amount {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    color: var(--nexus-primary) !important;
    text-shadow: 0 0 12px var(--nexus-primary-light);
}

/* Primary Razorpay Action Button */
.btn-razorpay-pay {
    width: 100%;
    padding: 16px 20px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, var(--nexus-primary) 0%, var(--nexus-primary-hover) 100%);
    color: #ffffff;
    font-family: var(--nexus-font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px var(--nexus-primary-light);
    transition: transform 0.28s var(--nexus-ease), box-shadow 0.28s var(--nexus-ease);
    will-change: transform;
}

.btn-razorpay-pay:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 12px 30px var(--nexus-primary-light);
}

.btn-razorpay-pay:active {
    transform: translate3d(0, 0, 0);
}

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

/* Payment Methods Strip */
.payment-methods-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--nexus-text-dim);
    font-size: 0.74rem;
    font-weight: 700;
}

.payment-methods-strip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   7. TRANSACTION ACTIVITY HUB (LEDGER)
   ========================================================================== */
.history-hub-card {
    background: var(--nexus-surface-card);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--nexus-shadow);
}

.history-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.history-hub-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-hub-title span:first-child {
    font-family: var(--nexus-font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nexus-text);
}

.history-count-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text-muted);
    font-size: 0.7rem;
    font-weight: 800;
}

/* Filter Bar */
.history-filter-bar {
    display: flex;
    background: var(--nexus-surface-solid);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 999px;
    padding: 3px;
}

.filter-tab-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--nexus-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--nexus-ease);
}

.filter-tab-btn.active {
    background: var(--nexus-cyan);
    color: #ffffff;
    font-weight: 800;
}

/* Search Box */
.txn-search-wrap {
    position: relative;
    width: 100%;
}

.txn-search-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 14px;
    background: var(--nexus-surface-solid);
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text);
    font-size: 0.82rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease;
}

.txn-search-wrap input:focus {
    border-color: var(--nexus-cyan);
}

.txn-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translate3d(0, -50%, 0);
    color: var(--nexus-text-muted);
    font-size: 0.95rem;
}

/* Transaction Card Items */
.txn-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--nexus-surface-solid);
    border: 1px solid var(--nexus-glass-border);
    gap: 12px;
    transition: transform 0.25s var(--nexus-ease), border-color 0.25s ease;
    will-change: transform;
}

.txn-item-card:hover {
    transform: translate3d(4px, 0, 0);
    border-color: var(--nexus-glass-border-hover);
}

.txn-left-col {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.txn-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.txn-icon-box.credit {
    background: rgba(16, 185, 129, 0.15);
    color: var(--nexus-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.txn-icon-box.debit {
    background: rgba(129, 140, 248, 0.15);
    color: var(--nexus-purple);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.txn-details {
    min-width: 0;
}

.txn-details h4 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--nexus-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txn-details p {
    margin: 2px 0 0 0;
    font-size: 0.72rem;
    color: var(--nexus-text-muted);
    font-weight: 600;
}

.txn-details code {
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.txn-details code:hover {
    color: var(--nexus-cyan);
}

.txn-right-col {
    text-align: right;
    flex-shrink: 0;
}

.txn-amount-text {
    display: block;
    font-family: var(--nexus-font-mono);
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 3px;
}

.txn-amount-text.credit {
    color: var(--nexus-emerald);
}

.txn-amount-text.debit {
    color: var(--nexus-purple);
}

/* Status Badges */
.txn-status-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.status-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--nexus-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--nexus-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge-failed {
    background: rgba(244, 63, 94, 0.15);
    color: var(--nexus-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-verify-pending {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--nexus-amber);
    color: var(--nexus-amber);
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-verify-pending:hover {
    background: var(--nexus-amber);
    color: #ffffff;
}

.empty-txns-box {
    text-align: center;
    padding: 38px 20px;
    color: var(--nexus-text-muted);
}

.empty-txns-box i {
    font-size: 2.2rem;
    color: var(--nexus-text-dim);
    margin-bottom: 10px;
}

.empty-txns-box h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: var(--nexus-text);
}

/* ==========================================================================
   8. AUTO-REFILL GUARD MODAL (Forced Cinematic Dark Glass)
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 7, 6, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: #191210 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 26px;
    padding: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(16, 185, 129, 0.15) !important;
    color: #f8fafc !important;
}

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

.close-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #241a16 !important;
    color: #cbd5e1 !important;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-icon:hover {
    color: #ffffff !important;
    border-color: #10b981 !important;
    background: #2c201b !important;
}

.drawer-chip {
    padding: 10px;
    border-radius: 12px;
    background: #241a16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    font-family: var(--nexus-font-mono);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s var(--nexus-ease);
}

.drawer-chip:hover {
    border-color: rgba(16, 185, 129, 0.45) !important;
    background: #2d211d !important;
}

.drawer-chip.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

/* Switch Toggle */
.switch-toggle input:checked + .toggle-slider {
    background-color: var(--nexus-emerald);
}

.switch-toggle input:checked + .toggle-slider:before {
    transform: translate3d(22px, 0, 0);
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 34px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* ==========================================================================
   9. MOBILE BOTTOM NAVIGATION
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: calc(100% - 24px);
    max-width: 480px;
    height: var(--nexus-bottom-nav-height);
    background: rgba(13, 19, 36, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--nexus-glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
    padding: 0 6px;
}

[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--nexus-text-dim);
    text-decoration: none;
    transition: all 0.25s var(--nexus-ease);
    padding: 6px 12px;
    border-radius: 18px;
}

.bottom-nav-item i {
    font-size: 1.28rem;
    transition: transform 0.25s var(--nexus-ease);
}

.bottom-nav-item span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.bottom-nav-item:hover {
    color: var(--nexus-text);
}

.bottom-nav-item.active {
    color: var(--nexus-cyan) !important;
    background: rgba(56, 189, 248, 0.12);
}

.bottom-nav-item.active i {
    transform: translateY(-2px) scale(1.12);
}

/* ==========================================================================
   10. TOAST SYSTEM
   ========================================================================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--nexus-surface-card);
    border: 1px solid var(--nexus-glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--nexus-text);
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn 0.3s var(--nexus-ease);
}

.toast.success {
    border-color: var(--nexus-emerald);
}
.toast.success i {
    color: var(--nexus-emerald);
}

.toast.error {
    border-color: var(--nexus-rose);
}
.toast.error i {
    color: var(--nexus-rose);
}

.toast.info {
    border-color: var(--nexus-cyan);
}
.toast.info i {
    color: var(--nexus-cyan);
}

.toast.fade-out {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition: all 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate3d(20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 520px) {
    .amount-chips-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-balance h1 {
        font-size: 1.8rem;
    }

    .pulse-card {
        padding: 10px 12px;
    }

    .pulse-val {
        font-size: 1rem;
    }

    .smart-topup-card, .history-hub-card {
        padding: 18px 16px;
        border-radius: 20px;
    }
}
