/* ============================================================
   COIN T PRO — DESIGN SYSTEM v2  "Neon Violet & Cyan"
   Premium Gen-Z Trading Platform Theme — Polished Edition
   ============================================================ */

/* ── Google Fonts Import (fallback if not in <head>) ─────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300..800&family=Outfit:wght@300..900&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    /* Primary Palette: Violet & Cyan */
    --primary: #8B5CF6;
    --primary-hover: #A78BFA;
    --primary-glow: rgba(139, 92, 246, 0.40);
    --primary-muted: rgba(139, 92, 246, 0.15);
    --primary-deep: #6D28D9;

    --accent: #06B6D4;
    --accent-hover: #22D3EE;
    --accent-glow: rgba(6, 182, 212, 0.40);
    --accent-muted: rgba(6, 182, 212, 0.12);

    /* Semantic Colors */
    --profit: #34D399;
    --profit-glow: rgba(52, 211, 153, 0.40);
    --loss: #F43F5E;
    --loss-glow: rgba(244, 63, 94, 0.40);
    --warning: #FBBF24;
    --info: #38BDF8;

    /* Extra Accents */
    --pink: #EC4899;
    --pink-glow: rgba(236, 72, 153, 0.35);
    --orange: #F97316;
    --orange-glow: rgba(249, 115, 22, 0.35);
    --cyan: #22D3EE;
    --cyan-glow: rgba(34, 211, 238, 0.35);

    /* Backgrounds — Deep Midnight */
    --bg-deep: #030712;
    --bg-base: #0A0F1E;
    --bg-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-card-hover: rgba(30, 41, 59, 0.92);
    --bg-glass: rgba(15, 23, 42, 0.75);
    --bg-input: rgba(15, 23, 42, 0.90);
    --bg-elevated: rgba(30, 41, 59, 0.80);

    /* Borders */
    --border: rgba(139, 92, 246, 0.15);
    --border-hover: rgba(139, 92, 246, 0.40);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-active: rgba(6, 182, 212, 0.50);

    /* Typography Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --text-disabled: #475569;

    /* Typography Families */
    --font-display: 'Outfit', 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-primary: 0 8px 32px rgba(139, 92, 246, 0.30);
    --shadow-accent: 0 8px 32px rgba(6, 182, 212, 0.25);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
    --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.1);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-snap: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: 0.15s var(--ease-smooth);
    --transition-base: 0.3s var(--ease-smooth);
    --transition-slow: 0.5s var(--ease-smooth);

    /* Layout */
    --header-h: 72px;
    --sidebar-w: 280px;
    --max-w: 1280px;
    --max-w-narrow: 520px;

    /* Backward compat aliases */
    --gold: var(--primary);
    --gold-hover: var(--primary-hover);
    --gold-glow: var(--primary-glow);
    --gold-muted: var(--primary-muted);
    --electric: var(--accent);
    --electric-hover: var(--accent-hover);
    --electric-glow: var(--accent-glow);
    --electric-muted: var(--accent-muted);
    --purple: var(--pink);
    --purple-glow: var(--pink-glow);
    --shadow-gold: var(--shadow-primary);
    --shadow-electric: var(--shadow-accent);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-deep) !important;
    font-family: var(--font-body);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 0 !important;
}

body {
    min-height: 100vh;
    background: var(--bg-deep) !important;
    color: var(--text-secondary);
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide WP Admin Bar gap top white line glitch */
#wpadminbar {
    display: none !important;
}

/* Ambient Background — Violet & Cyan Orbs */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: 40%;
    transform: translateX(-50%);
    width: 100vw;
    height: 60vh;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 50vh;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { color: var(--text-muted); line-height: 1.7; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-hover); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold, .text-primary-c { color: var(--primary) !important; }
.text-electric, .text-accent { color: var(--accent) !important; }
.text-profit { color: var(--profit) !important; }
.text-loss { color: var(--loss) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* ── Glass Card ───────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateY(-2px);
}

.glass-card:hover::before { opacity: 1; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    user-select: none;
    letter-spacing: -0.01em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

/* Primary — Violet */
.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.50);
    color: #FFFFFF;
}

/* Neon Glow Button */
.neon-glow-btn {
    box-shadow: var(--shadow-primary), var(--shadow-neon);
}
.neon-glow-btn:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.50), 0 0 30px rgba(139, 92, 246, 0.5), 0 0 80px rgba(139, 92, 246, 0.15);
}

/* Secondary — Glass */
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Accent — Cyan */
.btn-electric {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: var(--shadow-accent);
}
.btn-electric:hover {
    background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.45);
    color: #FFFFFF;
}

/* Success — Profit Green */
.btn-success {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    color: #022C22;
    font-weight: 800;
}
.btn-success:hover {
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.4);
    transform: translateY(-2px);
}

/* Danger — Loss Rose */
.btn-danger {
    background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
    color: #FFFFFF;
    font-weight: 800;
}
.btn-danger:hover {
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.4);
    transform: translateY(-2px);
}

/* Ghost / Text */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

/* Sizes */
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 5px 12px; font-size: 11px; border-radius: 6px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); }

/* ── Form Elements & Search Input (Dark Glassmorphism) ───────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-select, .asset-search-box, .asset-search {
    width: 100%;
    padding: 14px 18px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: var(--radius-sm) !important;
    color: #F8FAFC !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    transition: all var(--transition-fast) !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.asset-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.asset-filter-bar .asset-search-box {
    flex: 1;
    min-width: 260px;
    max-width: 450px;
    border-radius: 14px !important;
}

.asset-sidebar .asset-search, .asset-search {
    flex: none !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    width: calc(100% - 24px) !important;
    margin: 12px !important;
}

.form-input::placeholder, .form-select::placeholder, .asset-search-box::placeholder, .asset-search::placeholder {
    color: #64748B !important;
    font-weight: 500;
}

.form-input:focus, .form-select:focus, .asset-search-box:focus, .asset-search:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    background: rgba(17, 24, 39, 0.95) !important;
    transform: translateY(-1px);
}

/* Hard global override to prevent any native white browser inputs */
input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="password"] {
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #F8FAFC !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #F8FAFC !important;
    -webkit-box-shadow: 0 0 0px 1000px #0F172A inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-input-group {
    display: flex;
    gap: 0;
}

.form-input-group .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-input-group .form-select {
    max-width: 100px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

/* ── Badge / Tag ──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-gold, .badge-primary { background: var(--primary-muted); color: var(--primary); border: 1px solid rgba(139,92,246,0.3); }
.badge-electric, .badge-accent { background: var(--accent-muted); color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
.badge-profit { background: rgba(52,211,153,0.12); color: var(--profit); border: 1px solid rgba(52,211,153,0.3); }
.badge-loss { background: rgba(244,63,94,0.12); color: var(--loss); border: 1px solid rgba(244,63,94,0.3); }
.badge-warning { background: rgba(251,191,36,0.12); color: var(--warning); border: 1px solid rgba(251,191,36,0.3); }
.badge-purple { background: rgba(236,72,153,0.12); color: var(--pink); border: 1px solid rgba(236,72,153,0.3); }

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.stat-card:hover::before { opacity: 1; }

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

/* ── Status Pills ─────────────────────────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: rgba(251,191,36,0.12); color: var(--warning); border: 1px solid rgba(251,191,36,0.3); }
.status-approved { background: rgba(52,211,153,0.12); color: var(--profit); border: 1px solid rgba(52,211,153,0.3); }
.status-rejected { background: rgba(244,63,94,0.12); color: var(--loss); border: 1px solid rgba(244,63,94,0.3); }

/* ── Tab Group ────────────────────────────────────────────── */
.tab-group {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.tab-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-muted);
    color: var(--primary);
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-dim);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: var(--space-lg) 0;
}

/* ── Page Content ─────────────────────────────────────────── */
.page-content {
    padding: calc(var(--header-h) + 32px) 0 80px;
    position: relative;
    z-index: 1;
}

.page-hero {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.page-hero p {
    max-width: 500px;
    margin: 12px auto 0;
    font-size: 15px;
}

/* ── Toast / Notification System ──────────────────────────── */
.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0,0,0,0.3);
    animation: slideInRight 0.4s var(--ease-bounce);
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
}

.toast.toast-success::before { background: var(--profit); }
.toast.toast-danger::before { background: var(--loss); }
.toast.toast-warning::before { background: var(--warning); }
.toast.toast-info::before { background: var(--info); }

.toast-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-body {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.toast-close {
    position: absolute;
    top: 8px; right: 8px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.toast-close:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}

/* ── Modal Overlay ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.80);
    backdrop-filter: blur(8px);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-xl), var(--shadow-neon);
    animation: pop-in 0.4s var(--ease-bounce);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--pink));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(244,63,94,0.15);
    color: var(--loss);
    border-color: rgba(244,63,94,0.3);
}

/* ── Pulse Dot ────────────────────────────────────────────── */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--profit);
    animation: pulse-glow 2s infinite;
}

/* ── Section Decorators ───────────────────────────────────── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: var(--space-3xl) 0;
}

.section-glow {
    position: relative;
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.06), transparent 70%);
    pointer-events: none;
}

/* ── Mesh Gradient Background Utility ─────────────────────── */
.mesh-bg {
    position: relative;
}

.mesh-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 15% 25%, rgba(139,92,246,0.08), transparent),
        radial-gradient(ellipse 40% 35% at 85% 30%, rgba(6,182,212,0.06), transparent),
        radial-gradient(ellipse 45% 40% at 50% 80%, rgba(236,72,153,0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ── Hero & Stat Cards (Screenshot 2 Match) ───────────────── */
.hero {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
}

.hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.hero-bg::before {
    content: '';
    position: absolute; top: 10%; left: 30%;
    width: 550px; height: 550px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 65%);
    filter: blur(80px); animation: float 8s ease-in-out infinite;
}
.hero-bg::after {
    content: '';
    position: absolute; bottom: 10%; right: 20%;
    width: 450px; height: 450px; border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 65%);
    filter: blur(80px); animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-pink {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 65%);
    filter: blur(70px); pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-bottom: 36px;
    text-shadow: 0 0 40px rgba(139,92,246,0.2);
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.text-cyan-glow {
    background: linear-gradient(135deg, #C084FC 0%, #38BDF8 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.3));
}

/* 3 Glassmorphic Glowing Stat Cards (Screenshot 2 design) */
.hero-stat-cards, .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 280px));
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 0 auto 36px;
    width: 100%;
    max-width: 900px;
}

.hero-stat {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
    transition: all 0.35s var(--ease-smooth);
}

.glass-stat-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-stat-card:hover, .hero-stat:hover {
    transform: translateY(-4px) scale(1.02);
}

.card-cyan-glow {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
}
.card-cyan-glow:hover {
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(34, 211, 238, 0.7);
}

.card-purple-glow {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}
.card-purple-glow:hover {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(167, 139, 250, 0.7);
}

.card-blue-purple-glow {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.25), 0 0 40px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
}
.card-blue-purple-glow:hover {
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.45), 0 0 50px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(34, 211, 238, 0.7);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number, .hero-stat-value {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-tag, .hero-stat-label {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 600;
    margin-top: 6px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Pill CTA Button (Screenshot 2 Match) */
.hero-cta-single, .hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.btn-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 44px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8B5CF6 0%, #38BDF8 100%);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 20px rgba(56, 189, 248, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-hero-pill:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 45px rgba(139, 92, 246, 0.7), 0 0 35px rgba(56, 189, 248, 0.6);
    color: #FFFFFF;
}

/* Marquee Live Ticker */
.ticker-wrapper {
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin: 30px 0;
    position: relative;
    background: rgba(3, 7, 18, 0.5);
}
.ticker-wrapper::before, .ticker-wrapper::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.ticker-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg-deep), transparent); }
.ticker-wrapper::after { right: 0; background: linear-gradient(270deg, var(--bg-deep), transparent); }
.ticker-track {
    display: flex; gap: 48px;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}
.ticker-item {
    display: flex; align-items: center; gap: 10px;
    white-space: nowrap; flex-shrink: 0;
}
.ticker-name {
    font-weight: 800; font-size: 13px; color: var(--text-secondary);
    font-family: var(--font-display);
}
.ticker-price {
    font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.ticker-change {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
}
.ticker-up .ticker-price { color: var(--profit); }
.ticker-up .ticker-change { background: rgba(52,211,153,0.1); color: var(--profit); }
.ticker-down .ticker-price { color: var(--loss); }
.ticker-down .ticker-change { background: rgba(244,63,94,0.1); color: var(--loss); }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Features Section ─────────────────────────────────────── */
.features-section {
    padding: 90px 0;
    position: relative;
}
.features-section-title {
    text-align: center;
    margin-bottom: 56px;
}
.features-section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 12px;
}
.features-section-title p {
    max-width: 540px; margin: 0 auto;
    font-size: 15px; color: var(--text-muted);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,0.4);
    box-shadow: 0 16px 48px rgba(139,92,246,0.25), 0 0 60px rgba(139,92,246,0.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 30px; margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.1));
    border: 1px solid rgba(139,92,246,0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.feature-card h3 { margin-bottom: 12px; font-size: 18px; color: #FFF; }
.feature-card p { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }

/* ── How It Works (Steps Section) ────────────────────────── */
.steps-section {
    padding: 80px 0;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.step-card {
    text-align: center; padding: 36px 28px;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.35s var(--ease-smooth);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.step-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.2);
}
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-family: var(--font-display);
    font-weight: 900; font-size: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}
.step-card h4 { font-size: 18px; margin-bottom: 10px; color: #FFF; }
.step-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ── Trust Bar / Social Proof ─────────────────────────────── */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.trust-item span {
    font-size: 18px;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section, .final-cta {
    text-align: center;
    padding: var(--space-3xl) 0;
    position: relative;
}

.cta-card {
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(6,182,212,0.08));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 24px;
    padding: 56px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(139,92,246,0.15);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--pink));
}

.cta-card h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 4vw, 40px);
}

.cta-card p {
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 15px;
}

/* ── Comprehensive Mobile Responsive Engine ─────────────────── */
@media (max-width: 860px) {
    .container { padding: 0 16px; }
    
    .hero {
        padding: 90px 0 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(28px, 7vw, 44px) !important;
        margin-bottom: 24px !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 28px !important;
        padding: 0 10px;
    }

    /* Stack stat cards in 1 clean column on mobile */
    .hero-stat-cards, .hero-stats {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto 28px !important;
        gap: 14px !important;
        padding: 0 8px !important;
    }

    .glass-stat-card, .hero-stat {
        width: 100% !important;
        padding: 18px 22px !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
    }

    .stat-number, .hero-stat-value {
        font-size: 28px !important;
    }

    .stat-tag, .hero-stat-label {
        font-size: 12px !important;
    }

    .btn-hero-pill {
        width: 100% !important;
        max-width: 320px !important;
        padding: 14px 24px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    .features-grid, .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .feature-card, .step-card {
        padding: 24px 20px !important;
        border-radius: 18px !important;
    }

    .cta-card {
        padding: 36px 20px !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 480px) {
    :root {
        --header-h: 60px;
    }
    
    .container { padding: 0 12px; }

    .site-header { height: 60px; }
    .header-inner { padding: 0 8px; gap: 4px; }
    .header-logo { gap: 4px; font-size: 13px; }
    .header-logo-img { height: 24px; }
    .logo-text-full { font-size: 13px; }
    
    #header-auth-actions { gap: 4px; }
    .btn-sm.auth-only-inline { padding: 5px 8px; font-size: 10px; border-radius: 6px; }
    .user-avatar { width: 28px; height: 28px; font-size: 10px; border-radius: 6px; }
    .mobile-menu-toggle { width: 32px; height: 32px; }
    
    .toast-container { right: 8px; left: 8px; max-width: none; }
}
