@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==============================================================================
   GROWZY PAYMENT GATEWAYS - ULTRA-PREMIUM FINTECH DESIGN SYSTEM 2.0
   ============================================================================== */

:root {
    /* Standard Fintech Color Tokens */
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-primary-light: rgba(99, 102, 241, 0.12);
    --color-background: #080c1d;
    --color-surface: #0e152d;
    --color-surface-hover: #151e3c;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-muted: #64748b;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #f43f5e;
    --color-info: #06b6d4;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.12);
    --primary-dark: #3730a3;
    --primary-glow: rgba(99, 102, 241, 0.45);
    
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-light: rgba(6, 182, 212, 0.12);
    
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-light: rgba(16, 185, 129, 0.12);
    --emerald-glow: rgba(16, 185, 129, 0.35);
    
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --rose-light: rgba(244, 63, 94, 0.12);
    
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-light: rgba(245, 158, 11, 0.12);
    
    --dark-950: #040711;
    --dark-900: #080c1d;
    --dark-850: #0e152d;
    --dark-800: #151e3c;
    --dark-700: #222e54;
    --dark-600: #32406d;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.12), 0 6px 14px -4px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.22), 0 12px 24px -6px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 40px -6px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] {
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-light: rgba(79, 70, 229, 0.08);
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-muted: #94a3b8;
    --color-success: #059669;
    --color-warning: #d97706;
    --color-danger: #e11d48;
    --color-info: #0891b2;
}

/* Tabular Financial Numbers Guarantee */
.tabular-nums,
.stat-value,
.stat-number,
.amount,
.currency-val,
.currency-amount,
.table td,
.font-mono,
.badge {
    font-variant-numeric: tabular-nums;
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 15px;
}

html, body, button, input, select, textarea, optgroup {
    font-family: var(--font-sans) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
p, span, a, label,
.page-title, .hero-title, .section-title, .card-title,
.stat-value, .stat-number, .stat-label, .amount, .currency-val, .currency-amount,
.btn, .badge, .nav-link, .topbar, .sidebar, .wallet-hero,
.landing-body, .auth-card, .admin-topbar, .dock-item, .admin-dock-item,
.modal, .alert, .dropdown, .table {
    font-family: var(--font-sans) !important;
}

code, pre, kbd, samp, .font-mono, .code-block, .transaction-id, .api-key-text, .hash-text {
    font-family: var(--font-mono) !important;
}

/* Core SVG Dimensions and Controls */
svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.w-3, svg.w-3 { width: 12px !important; height: 12px !important; }
.w-3\.5, svg.w-3\.5 { width: 14px !important; height: 14px !important; }
.w-4, svg.w-4 { width: 16px !important; height: 16px !important; }
.w-5, svg.w-5 { width: 20px !important; height: 20px !important; }
.w-6, svg.w-6 { width: 24px !important; height: 24px !important; }
.w-7, svg.w-7 { width: 28px !important; height: 28px !important; }
.w-8, svg.w-8 { width: 32px !important; height: 32px !important; }

.h-3, svg.h-3 { height: 12px !important; }
.h-3\.5, svg.h-3\.5 { height: 14px !important; }
.h-4, svg.h-4 { height: 16px !important; }
.h-5, svg.h-5 { height: 20px !important; }
.h-6, svg.h-6 { height: 24px !important; }
.h-7, svg.h-7 { height: 28px !important; }
.h-8, svg.h-8 { height: 32px !important; }

.btn svg,
.btn-primary svg,
.btn-secondary svg,
.btn-success svg,
.btn-danger svg,
.btn-glow svg,
.btn-glass svg,
.hero-cta-group a svg,
.hero-cta-group button svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0 !important;
}

.btn-sm svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
}

.btn-lg svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

img, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-sans) !important;
    background-color: #f6f8fb;
    color: var(--slate-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ==============================================================================
   ANIMATIONS & LOADING EFFECTS
   ============================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(99, 102, 241, 0.5);
    }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: floatCard 4s ease-in-out infinite;
}

.shimmer-loading {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
    border-radius: var(--radius-sm);
}

/* Typography & Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
    color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--slate-900);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

/* ==============================================================================
   PREMIUM LANDING PAGE STYLES
   ============================================================================== */
.landing-body {
    background: var(--dark-950);
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Background Atmospheric Glow Effects */
.landing-bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb-1 {
    position: absolute;
    top: -15%;
    left: 20%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulseGlow 6s ease-in-out infinite;
}

.glow-orb-2 {
    position: absolute;
    top: 35%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, rgba(6, 182, 212, 0) 70%);
    border-radius: 50%;
    filter: blur(90px);
}

.glow-orb-3 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    filter: blur(90px);
}

/* Glassmorphism Sticky Navbar */
.landing-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 12, 29, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease;
}

.brand-wrapper:hover .brand-icon {
    transform: scale(1.05);
}

.brand-text h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text p {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #38bdf8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    transition: color 0.15s ease;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-mobile-dropdown {
    display: none;
    background: rgba(8, 12, 29, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.landing-mobile-dropdown.active {
    display: flex !important;
}

.landing-mobile-link {
    padding: 12px 14px;
    color: #cbd5e1;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.landing-mobile-link:hover, .landing-mobile-link:active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 960px) {
    .nav-menu { display: none !important; }
    .landing-mobile-btn { display: inline-flex !important; }
    .nav-actions .btn-glass, .nav-actions .btn-glow { display: none !important; }
}

/* Landing Buttons */
.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-glow {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
    transition: all 0.2s ease;
}

.btn-glow:hover {
    box-shadow: 0 6px 26px rgba(99, 102, 241, 0.7);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Landing Hero Section */
.hero-section {
    position: relative;
    z-index: 10;
    padding: 80px 24px 60px;
    max-width: 1240px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.hero-badge-pill .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-400);
    box-shadow: 0 0 10px var(--emerald-400);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #a5b4fc 0%, #38bdf8 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust-metrics {
    display: flex;
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item h4 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.metric-item p {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Floating High-Tech Visual Card */
.hero-visual-card {
    background: linear-gradient(145deg, rgba(21, 30, 60, 0.9) 0%, rgba(14, 21, 45, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    animation: floatCard 5s ease-in-out infinite;
}

.visual-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visual-wallet-balance {
    margin-bottom: 20px;
}

.balance-caption {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.balance-number {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    margin-top: 4px;
}

.live-feed-box {
    background: rgba(8, 12, 29, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 20px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.feed-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feed-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.feed-icon.blue { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.feed-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #38bdf8; }

/* Features Showcase Section */
.landing-section {
    position: relative;
    z-index: 10;
    padding: 100px 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(21, 30, 60, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    background: rgba(21, 30, 60, 0.85);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    flex: 1;
}

/* Telegram Interactive Showcase Mockup */
.tg-mockup-card {
    background: linear-gradient(145deg, #0f182e 0%, #090e1f 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.15);
}

.tg-chat-window {
    background: #080c1d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-bubble-user {
    align-self: flex-end;
    background: var(--primary);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 16px 16px 4px 16px;
    font-size: 13.5px;
    max-width: 80%;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tg-bubble-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 16px;
    border-radius: 16px 16px 16px 4px;
    font-size: 13px;
    max-width: 90%;
    line-height: 1.6;
}

/* Interactive Fee Calculator Widget */
.calc-box {
    background: linear-gradient(145deg, rgba(21, 30, 60, 0.9) 0%, rgba(14, 21, 45, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.calc-range-slider {
    width: 100%;
    margin: 20px 0;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #32406d;
    outline: none;
}

.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 14px var(--primary-glow);
    border: 2px solid #ffffff;
}

.calc-summary-card {
    background: rgba(8, 12, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.calc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: #cbd5e1;
}

.calc-summary-row:last-child {
    border-bottom: none;
    padding-top: 18px;
}

/* Code Playground Section */
.code-playground {
    background: #080c1d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.code-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 16px;
}

.code-tab-list {
    display: flex;
    gap: 4px;
}

.code-tab-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.code-tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

.code-content-panel {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(21, 30, 60, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* Landing CTA Card */
.landing-cta-banner {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #06b6d4 100%);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.landing-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #040711;
    padding: 60px 24px 30px;
    font-size: 13px;
    color: #94a3b8;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #94a3b8;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #ffffff;
}

/* ==============================================================================
   PORTAL DASHBOARD & BACKEND UI STYLES
   ============================================================================== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: var(--dark-900);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 40;
    transition: width 0.2s ease, left 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 14px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 14px 12px 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 3px;
    transition: all 0.15s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.25);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f6f8fb;
}

.topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    gap: 12px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.topbar-title-group {
    min-width: 0;
    overflow: hidden;
}

.mobile-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.3px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.topbar-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wallet-badge-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.wallet-badge-pill .amount {
    color: var(--emerald-600);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.notif-bell {
    position: relative;
    color: var(--slate-600);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-bell:hover {
    background: var(--slate-100);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--rose-500);
    border-radius: 50%;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.user-profile-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--slate-800);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.content-body {
    padding: 24px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #151e3c 0%, #080c1d 60%, #040711 100%);
    padding: 24px;
    position: relative;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-header {
    background: #080c1d;
    padding: 36px 32px 28px;
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-body {
    padding: 36px 32px;
}

/* Cards & Widgets */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-100);
}

.card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.3px;
}

/* Financial Wallet Hero Card */
.wallet-hero {
    background: linear-gradient(135deg, #090d22 0%, #161f3d 50%, #312e81 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    margin-bottom: 28px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.45), 0 0 30px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
}

.wallet-hero-address {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.wallet-hero-address:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.wallet-hero-balance {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.4px;
    color: #ffffff;
    margin: 8px 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wallet-hero-sub {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-sub-item .label {
    font-size: 11.5px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.wallet-sub-item .val {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2px;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-info .label {
    font-size: 11.5px;
    color: var(--slate-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-info .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--slate-900);
    margin-top: 4px;
    letter-spacing: -0.5px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: var(--emerald-light); color: var(--emerald-600); }
.stat-icon.amber { background: var(--amber-light); color: var(--amber-600); }
.stat-icon.rose { background: var(--rose-light); color: var(--rose-600); }

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--slate-900);
    background-color: #ffffff;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea.form-control {
    height: auto;
    min-height: 96px;
    resize: vertical;
}

.form-help {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 5px;
}

.form-error {
    font-size: 12px;
    color: var(--rose-600);
    margin-top: 5px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    border-color: var(--slate-300);
    color: var(--slate-700);
}

.btn-secondary:hover {
    background: var(--slate-50);
    border-color: var(--slate-400);
    color: var(--slate-900);
}

.btn-success {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--rose-500) 0%, var(--rose-600) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.btn-sm {
    height: 34px;
    padding: 0 14px;
    font-size: 12.5px;
}

.btn-lg {
    height: 50px;
    padding: 0 32px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.table th {
    background: var(--slate-50);
    padding: 13px 18px;
    font-weight: 700;
    color: var(--slate-600);
    border-bottom: 1px solid var(--slate-200);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.6px;
}

.table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-800);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--slate-50);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--emerald-light); color: var(--emerald-700); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-warning { background: var(--amber-light); color: var(--amber-700); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-danger { background: var(--rose-light); color: var(--rose-700); border: 1px solid rgba(244, 63, 94, 0.25); }
.badge-info { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(99, 102, 241, 0.25); }
.badge-secondary { background: var(--slate-100); color: var(--slate-600); border: 1px solid var(--slate-200); }

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.alert-success { background: var(--emerald-light); color: var(--emerald-700); border: 1px solid rgba(16, 185, 129, 0.3); }
.alert-danger { background: var(--rose-light); color: var(--rose-700); border: 1px solid rgba(244, 63, 94, 0.3); }
.alert-warning { background: var(--amber-light); color: var(--amber-700); border: 1px solid rgba(245, 158, 11, 0.3); }

/* Deposit Checkout UI */
.checkout-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.checkout-header {
    background: #080c1d;
    color: #ffffff;
    padding: 28px;
    text-align: center;
}

.checkout-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    color: #facc15;
}

.qr-box {
    background: #ffffff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed var(--slate-200);
}

.qr-box svg {
    max-width: 240px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    padding: 8px;
    background: #ffffff;
}

/* Code Snippets & Tabs */
.code-tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 16px;
    overflow-x: auto;
}

.code-tab-btn {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    color: var(--slate-600);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.code-tab-btn:hover {
    color: var(--primary);
}

.code-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.code-block {
    background: #080c1d;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
    position: relative;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block pre {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.6;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

/* ==============================================================================
   MODAL & DIALOG SYSTEM
   ============================================================================== */
.modal-overlay, .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 17, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active, .modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--slate-200);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--slate-400);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.modal-close:hover {
    color: var(--slate-700);
    background: var(--slate-100);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* ==============================================================================
   RESPONSIVE GRID & LAYOUT UTILITIES
   ============================================================================== */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-detail-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar .form-control {
    max-width: 280px;
}

.code-tab-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.code-tab-nav::-webkit-scrollbar {
    display: none;
}

/* ==============================================================================
   RESPONSIVE MEDIA QUERIES & MOBILE ARCHITECTURE (320px - 991px)
   ============================================================================== */
.sidebar-close-btn {
    display: none;
}

@media (max-width: 991px) {
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -320px;
        width: min(290px, 85vw);
        z-index: 999;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.65);
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar.open {
        left: 0 !important;
    }
    .mobile-toggle {
        display: inline-flex !important;
    }
    .mobile-bottom-dock {
        display: flex !important;
    }
    .topbar {
        padding: 0 12px !important;
        height: 58px !important;
        gap: 8px !important;
    }
    .topbar-subtitle {
        display: none !important;
    }
    .topbar-deposit-btn {
        display: none !important;
    }
    .notif-bell {
        display: none !important;
    }
    .user-profile-name {
        display: none !important;
    }
    .wallet-balance-label {
        display: none !important;
    }
    .page-title {
        font-size: 15px !important;
        max-width: 140px !important;
    }
    .wallet-badge-pill {
        padding: 5px 10px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }
    .user-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
    .admin-mobile-toggle {
        display: inline-flex !important;
    }
    .admin-subnav {
        display: none !important;
    }
    .admin-merchant-btn {
        display: none !important;
    }
    .admin-topbar {
        padding: 0 12px !important;
        height: 58px !important;
        gap: 8px !important;
    }
    .admin-brand-name {
        font-size: 14px !important;
        max-width: 120px !important;
    }
    .admin-badge-pill {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }
    .admin-settings-btn {
        padding: 0 !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }
    .admin-settings-btn span {
        display: none !important;
    }
    .admin-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 38px;
    }
    .calc-box {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .content-body {
        padding: 16px 14px;
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 12px;
    }
    .table {
        min-width: 560px;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .nav-actions .btn, .nav-actions .btn-secondary, .nav-actions .btn-primary, .nav-actions .btn-glass, .nav-actions .btn-glow {
        display: none !important;
    }
    .landing-mobile-btn {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 14px !important;
        max-width: 120px !important;
    }
    .admin-brand-name {
        font-size: 13.5px !important;
        max-width: 110px !important;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    .nav-menu {
        display: none !important;
    }
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-group a, .hero-cta-group button {
        width: 100%;
        justify-content: center;
    }
    .hero-trust-metrics {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .landing-cta-banner {
        padding: 32px 16px;
    }
    .stat-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .wallet-hero {
        padding: 18px 14px;
        border-radius: var(--radius-lg);
        margin-bottom: 16px;
    }
    .wallet-hero-top {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    .wallet-hero-address {
        width: 100%;
        justify-content: space-between;
        font-size: 11.5px;
        padding: 6px 10px;
    }
    .wallet-hero-balance {
        font-size: 28px;
    }
    .wallet-hero-sub {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 14px;
        padding-top: 14px;
    }
    .wallet-hero-sub .wallet-sub-item:last-child {
        grid-column: span 2;
    }
    .quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin-top: 16px;
    }
    .quick-actions .btn {
        width: 100%;
        font-size: 12px;
        padding: 0 6px;
        height: 38px;
        justify-content: center;
    }
    .filter-bar, form.filter-bar {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .filter-bar .form-control, .filter-bar select, .filter-bar input, .filter-bar button, .filter-bar a {
        max-width: 100% !important;
        width: 100% !important;
        height: 42px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .card {
        padding: 16px 14px;
        border-radius: var(--radius-md);
        margin-bottom: 16px;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 12px;
    }
    .card-header .btn {
        width: 100%;
        justify-content: center;
    }
    .form-control, input, select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }
    .modal-overlay, .modal-backdrop {
        padding: 10px;
    }
    .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        max-height: 90vh;
        border-radius: var(--radius-md);
    }
    .modal-header {
        padding: 14px 16px;
    }
    .modal-body {
        padding: 16px 14px;
    }
    .modal-footer {
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
    }
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    .pricing-card {
        padding: 24px 16px !important;
    }
    .checkout-card {
        width: 100% !important;
        border-radius: var(--radius-md) !important;
    }
    .checkout-header {
        padding: 20px 14px !important;
    }
    .qr-box {
        padding: 20px 14px !important;
    }
    .qr-box svg {
        max-width: 190px !important;
    }
    .auth-wrapper {
        padding: 16px 10px !important;
    }
    .auth-card {
        border-radius: var(--radius-lg) !important;
    }
    .auth-header {
        padding: 24px 16px 18px !important;
    }
    .auth-body {
        padding: 20px 16px !important;
    }
    .code-tabs-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .tab-btn-group {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
    }
    .diagram-flow {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 380px) {
    .nav-container {
        padding: 10px 12px;
    }
    .brand-icon {
        width: 34px;
        height: 34px;
    }
    .brand-text h2 {
        font-size: 15px;
    }
    .hero-title {
        font-size: 22px;
    }
    .calc-card {
        padding: 18px 12px;
    }
    .calc-input {
        font-size: 17px;
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
    .diagram-flow {
        grid-template-columns: 1fr !important;
    }
    .hero-trust-metrics {
        grid-template-columns: 1fr !important;
    }
    .page-title {
        font-size: 13.5px;
        max-width: 100px;
    }
    .admin-brand-name {
        font-size: 13px;
        max-width: 90px;
    }
}
