/* ============================================================================
   QUANTUM NEXUS V7 — ULTRA-REALISTIC EDITION (7-Tab Mobile Fit Dock,
                      3D Spatial Core, Holographic Glass & Sound FX Ready)
   ============================================================================ */
:root {
    --primary: #8b5cf6;
    --primary-bright: #d8b4fe;
    --secondary: #f472b6;
    --primary-rgb: 168, 85, 247;
    --secondary-rgb: 244, 114, 182;
    --btn-text: #ffffff;
    --bg-main: #0e061d;
    --bg-card: rgba(30, 14, 62, 0.85);
    --bg-elevated: rgba(54, 24, 104, 0.78);
    --bg-input: rgba(18, 8, 38, 0.90);
    --border-subtle: rgba(216, 180, 254, 0.28);
    --border-glow: rgba(232, 121, 249, 0.70);
    --vault-grad: linear-gradient(135deg, #4c1d95 0%, #9333ea 50%, #db2777 100%);
    --pass-grad: linear-gradient(150deg, #3b0764 0%, #7e22ce 55%, #be185d 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #6b21a8, #120626);
    --dock-bg: rgba(20, 9, 44, 0.95);
    --accent-gold: #fbbf24;
    --danger: #fb7185;
    --text-heading: #ffffff;
    --text-body: #f1f5f9;
    --text-muted: #cbd5e1;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================================================
   ALL 12 ADMIN PANEL THEMES
   ============================================================================ */
body.design-1-white-fintech {
    --primary: #2563eb; --primary-bright: #1d4ed8; --secondary: #0ea5e9;
    --primary-rgb: 37, 99, 235; --secondary-rgb: 14, 165, 233; --btn-text: #ffffff;
    --bg-main: #f1f5f9; --bg-card: rgba(255, 255, 255, 0.95); --bg-elevated: #f8fafc;
    --bg-input: #f1f5f9; --border-subtle: rgba(15, 23, 42, 0.1); --border-glow: rgba(37, 99, 235, 0.45);
    --vault-grad: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0284c7 100%);
    --pass-grad: linear-gradient(145deg, #1e293b 0%, #2563eb 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #eff6ff, #dbeafe);
    --dock-bg: rgba(255, 255, 255, 0.96);
    --text-heading: #0f172a; --text-body: #334155; --text-muted: #64748b;
}
body.design-2-emerald-bento {
    --primary: #10b981; --primary-bright: #6ee7b7; --secondary: #2dd4bf;
    --primary-rgb: 16, 185, 129; --secondary-rgb: 45, 212, 191; --btn-text: #021a12;
    --bg-main: #041610; --bg-card: rgba(8, 42, 30, 0.85); --bg-elevated: rgba(14, 66, 48, 0.78);
    --bg-input: rgba(5, 26, 18, 0.9); --border-subtle: rgba(110, 231, 183, 0.25); --border-glow: rgba(52, 211, 153, 0.65);
    --vault-grad: linear-gradient(135deg, #047857 0%, #10b981 55%, #14b8a6 100%);
    --pass-grad: linear-gradient(145deg, #064e3b 0%, #059669 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #065f46, #03160f); --dock-bg: rgba(5, 26, 19, 0.95);
}
body.design-3-royal-glass {
    --primary: #6366f1; --primary-bright: #a5b4fc; --secondary: #38bdf8;
    --primary-rgb: 99, 102, 241; --secondary-rgb: 56, 189, 248; --btn-text: #ffffff;
    --bg-main: #080b24; --bg-card: rgba(22, 27, 72, 0.84); --bg-elevated: rgba(36, 44, 108, 0.78);
    --bg-input: rgba(12, 15, 42, 0.9); --border-subtle: rgba(165, 180, 252, 0.25); --border-glow: rgba(129, 140, 248, 0.65);
    --vault-grad: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #0284c7 100%);
    --pass-grad: linear-gradient(145deg, #1e1b4b 0%, #4338ca 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #3730a3, #090c26); --dock-bg: rgba(12, 15, 42, 0.95);
}
body.design-4-amber-luxury {
    --primary: #f59e0b; --primary-bright: #fde68a; --secondary: #fbbf24;
    --primary-rgb: 245, 158, 11; --secondary-rgb: 251, 191, 36; --btn-text: #1c1002;
    --bg-main: #160e04; --bg-card: rgba(42, 28, 9, 0.86); --bg-elevated: rgba(68, 44, 14, 0.78);
    --bg-input: rgba(24, 15, 5, 0.92); --border-subtle: rgba(253, 230, 138, 0.26); --border-glow: rgba(251, 191, 36, 0.68);
    --vault-grad: linear-gradient(135deg, #78350f 0%, #d97706 55%, #f59e0b 100%);
    --pass-grad: linear-gradient(145deg, #451a03 0%, #b45309 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #92400e, #160e04); --dock-bg: rgba(26, 17, 5, 0.95);
}
body.design-5-cyber-terminal {
    --primary: #06b6d4; --primary-bright: #67e8f9; --secondary: #22d3ee;
    --primary-rgb: 6, 182, 212; --secondary-rgb: 34, 211, 238; --btn-text: #02151c;
    --bg-main: #04131b; --bg-card: rgba(10, 34, 46, 0.86); --bg-elevated: rgba(16, 56, 76, 0.78);
    --bg-input: rgba(6, 20, 28, 0.92); --border-subtle: rgba(103, 232, 249, 0.25); --border-glow: rgba(34, 211, 238, 0.65);
    --vault-grad: linear-gradient(135deg, #155e75 0%, #06b6d4 55%, #0d9488 100%);
    --pass-grad: linear-gradient(145deg, #083344 0%, #0891b2 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #155e75, #04131b); --dock-bg: rgba(7, 22, 32, 0.95);
}
body.design-6-rose-neumorph {
    --primary: #f43f5e; --primary-bright: #fda4af; --secondary: #f472b6;
    --primary-rgb: 244, 63, 94; --secondary-rgb: 244, 114, 182; --btn-text: #ffffff;
    --bg-main: #19070d; --bg-card: rgba(48, 12, 26, 0.86); --bg-elevated: rgba(78, 18, 42, 0.78);
    --bg-input: rgba(28, 6, 15, 0.92); --border-subtle: rgba(253, 164, 175, 0.26); --border-glow: rgba(251, 113, 133, 0.65);
    --vault-grad: linear-gradient(135deg, #881337 0%, #e11d48 55%, #db2777 100%);
    --pass-grad: linear-gradient(145deg, #4c0519 0%, #be123c 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #9f1239, #19070d); --dock-bg: rgba(28, 7, 16, 0.95);
}
body.design-7-sunset-wave {
    --primary: #f97316; --primary-bright: #fdba74; --secondary: #fb7185;
    --primary-rgb: 249, 115, 22; --secondary-rgb: 251, 113, 133; --btn-text: #ffffff;
    --bg-main: #180a05; --bg-card: rgba(48, 19, 10, 0.86); --bg-elevated: rgba(76, 30, 16, 0.78);
    --bg-input: rgba(26, 10, 5, 0.92); --border-subtle: rgba(253, 186, 116, 0.26); --border-glow: rgba(251, 146, 60, 0.65);
    --vault-grad: linear-gradient(135deg, #7c2d12 0%, #ea580c 55%, #e11d48 100%);
    --pass-grad: linear-gradient(145deg, #431407 0%, #c2410c 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #9a3412, #180a05); --dock-bg: rgba(28, 11, 6, 0.95);
}
body.design-8-violet-prism {
    --primary: #9333ea; --primary-bright: #e879f9; --secondary: #f472b6;
    --primary-rgb: 168, 85, 247; --secondary-rgb: 244, 114, 182; --btn-text: #ffffff;
    --bg-main: #100622; --bg-card: rgba(34, 15, 70, 0.85); --bg-elevated: rgba(60, 26, 116, 0.78);
    --bg-input: rgba(20, 8, 44, 0.90); --border-subtle: rgba(232, 121, 249, 0.30); --border-glow: rgba(232, 121, 249, 0.72);
    --vault-grad: linear-gradient(135deg, #4c1d95 0%, #9333ea 50%, #db2777 100%);
    --pass-grad: linear-gradient(150deg, #3b0764 0%, #7e22ce 55%, #be185d 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #6b21a8, #120626); --dock-bg: rgba(22, 9, 48, 0.95);
}
body.design-9-titanium-brutal {
    --primary: #3b82f6; --primary-bright: #93c5fd; --secondary: #818cf8;
    --primary-rgb: 59, 130, 246; --secondary-rgb: 129, 140, 248; --btn-text: #ffffff;
    --bg-main: #0b1120; --bg-card: rgba(22, 32, 54, 0.88); --bg-elevated: rgba(38, 52, 82, 0.8);
    --bg-input: rgba(13, 19, 34, 0.92); --border-subtle: rgba(147, 197, 253, 0.26); --border-glow: rgba(96, 165, 250, 0.65);
    --vault-grad: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #4f46e5 100%);
    --pass-grad: linear-gradient(145deg, #1e293b 0%, #2563eb 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #1d4ed8, #0b1120); --dock-bg: rgba(15, 22, 38, 0.95);
}
body.design-10-obsidian-pro {
    --primary: #3b82f6; --primary-bright: #7dd3fc; --secondary: #38bdf8;
    --primary-rgb: 59, 130, 246; --secondary-rgb: 56, 189, 248; --btn-text: #ffffff;
    --bg-main: #060a16; --bg-card: rgba(15, 24, 44, 0.86); --bg-elevated: rgba(28, 42, 72, 0.78);
    --bg-input: rgba(9, 14, 28, 0.92); --border-subtle: rgba(125, 211, 252, 0.24); --border-glow: rgba(56, 189, 248, 0.62);
    --vault-grad: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0284c7 100%);
    --pass-grad: linear-gradient(145deg, #0f172a 0%, #1d4ed8 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #1e40af, #060a16); --dock-bg: rgba(10, 16, 30, 0.95);
}
body.design-11-midnight-cyber {
    --primary: #06b6d4; --primary-bright: #67e8f9; --secondary: #c084fc;
    --primary-rgb: 6, 182, 212; --secondary-rgb: 192, 132, 252; --btn-text: #ffffff;
    --bg-main: #07081c; --bg-card: rgba(18, 22, 56, 0.86); --bg-elevated: rgba(32, 38, 88, 0.78);
    --bg-input: rgba(10, 12, 34, 0.92); --border-subtle: rgba(103, 232, 249, 0.25); --border-glow: rgba(192, 132, 252, 0.65);
    --vault-grad: linear-gradient(135deg, #0369a1 0%, #4f46e5 55%, #9333ea 100%);
    --pass-grad: linear-gradient(145deg, #1e1b4b 0%, #7e22ce 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #3730a3, #07081c); --dock-bg: rgba(11, 14, 36, 0.95);
}
body.design-12-matrix-hacker {
    --primary: #10b981; --primary-bright: #6ee7b7; --secondary: #4ade80;
    --primary-rgb: 16, 185, 129; --secondary-rgb: 74, 222, 128; --btn-text: #021a0f;
    --bg-main: #030e0a; --bg-card: rgba(8, 28, 20, 0.88); --bg-elevated: rgba(14, 48, 34, 0.78);
    --bg-input: rgba(4, 16, 11, 0.92); --border-subtle: rgba(110, 231, 183, 0.25); --border-glow: rgba(74, 222, 128, 0.65);
    --vault-grad: linear-gradient(135deg, #065f46 0%, #10b981 55%, #16a34a 100%);
    --pass-grad: linear-gradient(145deg, #022c22 0%, #059669 100%);
    --core-bg: radial-gradient(circle at 30% 25%, #047857, #030e0a); --dock-bg: rgba(5, 18, 13, 0.96);
}

/* ============================================================================
   BASE & VIVID ANIMATED BACKGROUND
   ============================================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 12% 6%, rgba(var(--primary-rgb), 0.34), transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(var(--secondary-rgb), 0.28), transparent 45%),
        radial-gradient(circle at 50% 92%, rgba(var(--primary-rgb), 0.24), transparent 48%),
        linear-gradient(rgba(var(--primary-rgb), 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px, 26px 26px;
    color: var(--text-body);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 104px;
}

#ambientFxCanvas {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; opacity: 0.85;
}

.app-viewport {
    position: relative; z-index: 2; width: 100%; max-width: 460px; margin: 0 auto; padding: 10px 12px 24px;
}

.mono-num, .mono-code-block { font-family: var(--font-mono); }

/* ============================================================================
   BOOT LOADER
   ============================================================================ */
.digital-loader-overlay {
    position: fixed; inset: 0; background: var(--bg-main); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    transition: opacity 0.28s ease;
}
.digital-loader-overlay.fade-out { opacity: 0; pointer-events: none; }
.digital-loader-card {
    position: relative; overflow: hidden; width: 100%; max-width: 340px; background: var(--bg-card);
    border: 1.5px solid var(--border-glow); border-radius: 28px; padding: 30px 22px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 48px rgba(var(--primary-rgb), 0.35);
    animation: floatCardSlow 3.6s ease-in-out infinite;
}
.loader-orbit-box {
    position: relative; width: 86px; height: 86px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
}
.loader-orbit-ring-1 {
    position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid transparent;
    border-top-color: var(--primary-bright); border-right-color: var(--secondary);
    animation: spinRing 0.95s linear infinite;
    filter: drop-shadow(0 0 10px var(--primary-bright));
}
.loader-orbit-ring-2 {
    position: absolute; inset: 9px; border-radius: 50%;
    border: 2px dashed rgba(var(--primary-rgb), 0.65);
    animation: spinRingReverse 1.9s linear infinite;
}
.loader-logo-core {
    width: 52px; height: 52px; border-radius: 17px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--btn-text); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 32px rgba(var(--primary-rgb), 0.75);
    animation: coreBreath 1.8s ease-in-out infinite;
}
.custom-app-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.loader-brand-title { font-size: 18px; font-weight: 800; color: var(--text-heading); margin-bottom: 5px; }
.loader-status-line { font-size: 11.5px; color: var(--text-muted); margin-bottom: 16px; }
.loader-progress-track { width: 100%; height: 7px; background: rgba(var(--primary-rgb), 0.18); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.loader-progress-fill {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary-bright));
    background-size: 200% 100%; animation: gradientShift 1.8s linear infinite; transition: width 0.2s ease;
}
.loader-telemetry-row { display: flex; justify-content: space-between; font-size: 10px; font-family: var(--font-mono); color: var(--primary-bright); }

/* ============================================================================
   SPLIT TOP HEADER + SOUND TOGGLE
   ============================================================================ */
.nx-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.nx-user-pill {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px;
    background: var(--bg-card); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-subtle); border-radius: 17px;
    padding: 7px 10px; cursor: pointer;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28), 0 0 18px rgba(var(--primary-rgb), 0.15);
    transition: transform 0.16s ease;
}
.nx-user-pill:active { transform: scale(0.96); }
.nx-avatar-box {
    position: relative; width: 36px; height: 36px; border-radius: 11px; padding: 2px;
    background: linear-gradient(135deg, var(--primary-bright), var(--secondary));
    flex-shrink: 0; box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.55);
}
.user-avatar-img, .user-avatar-fallback {
    width: 100%; height: 100%; border-radius: 9px; object-fit: cover;
    background: var(--bg-main); color: var(--primary-bright); font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.nx-status-dot {
    position: absolute; bottom: -2px; right: -2px; width: 9px; height: 9px;
    border-radius: 50%; background: #10b981; border: 2px solid var(--bg-main); box-shadow: 0 0 8px #10b981;
}
.nx-user-meta { min-width: 0; flex: 1; }
.nx-user-name-row { display: flex; align-items: center; gap: 5px; }
.nx-user-name { font-size: 13px; font-weight: 800; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-lvl-chip {
    font-family: var(--font-mono); font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.25); color: var(--primary-bright);
    border: 1px solid var(--border-glow); flex-shrink: 0;
}
.nx-brand-sub { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.nx-mini-logo { width: 12px; height: 12px; border-radius: 4px; object-fit: cover; }

.nx-sound-btn {
    width: 38px; height: 48px; border-radius: 16px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    color: var(--primary-bright); display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: transform 0.14s ease;
}
.nx-sound-btn:active { transform: scale(0.92); }

.nx-ticker-pill {
    position: relative; overflow: hidden;
    background: linear-gradient(145deg, var(--bg-card), rgba(var(--primary-rgb), 0.32));
    border: 1.5px solid var(--border-glow); border-radius: 17px;
    padding: 6px 11px; text-align: right; cursor: pointer; flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.28);
    transition: transform 0.16s ease;
}
.nx-ticker-pill:active { transform: scale(0.95); }
.nx-ticker-top { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-bottom: 2px; }
.nx-ticker-sym { font-size: 9.5px; font-weight: 800; color: var(--text-body); }
.nx-ticker-tag { font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: rgba(var(--primary-rgb), 0.3); color: var(--primary-bright); }
.nx-ticker-price { font-size: 13.5px; font-weight: 800; color: var(--text-heading); letter-spacing: -0.02em; }
.live-pulse-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary-bright);
    box-shadow: 0 0 12px var(--primary-bright); animation: pulseDot 1.3s infinite; display: inline-block;
}

/* ============================================================================
   HERO PORTFOLIO VAULT BANNER
   ============================================================================ */
.nx-vault-banner {
    background: var(--vault-grad);
    border: 1.5px solid var(--border-glow);
    border-radius: 22px; padding: 16px 16px 14px; margin-bottom: 12px;
    box-shadow: 0 16px 42px rgba(var(--primary-rgb), 0.42);
    position: relative; overflow: hidden; color: #ffffff;
}
.nx-vault-banner::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-25deg); animation: holoSweep 4.2s ease-in-out infinite; pointer-events: none;
}
.nx-vault-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.nx-vault-lbl { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); }
.nx-rate-pill {
    font-family: var(--font-mono); font-size: 9.5px; color: #ffffff;
    background: rgba(0, 0, 0, 0.32); padding: 3px 8px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.28);
}
.nx-vault-amount { font-size: 31px; font-weight: 800; color: #ffffff; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 5px; }
.nx-vault-amount small { font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, 0.95); margin-left: 4px; }
.nx-vault-fiat-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.92); }
.nx-fiat-sep { color: rgba(255, 255, 255, 0.5); }

/* ============================================================================
   CARDS & 3D REACTOR MINING CORE
   ============================================================================ */
.tab-view { display: none; }
.tab-view.active { display: block; animation: tabEntrance 0.28s cubic-bezier(0.16, 1, 0.3, 1); }

.fintech-card {
    position: relative; overflow: hidden; background: var(--bg-card);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-subtle); border-radius: 20px; padding: 15px; margin-bottom: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.digital-glow-card { border-color: var(--border-glow); box-shadow: 0 14px 38px rgba(var(--primary-rgb), 0.24); }
.nx-verify-banner { border: 1.5px solid var(--border-glow); background: linear-gradient(145deg, var(--bg-card), rgba(var(--primary-rgb), 0.22)); }
.digital-telemetry-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mono-badge {
    font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px;
    background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: var(--text-muted);
    display: inline-flex; align-items: center; gap: 5px;
}

.core-stage { position: relative; width: 194px; height: 194px; margin: 8px auto 16px; display: flex; align-items: center; justify-content: center; }
.core-stage::before, .core-stage::after {
    content: ""; position: absolute; inset: 14px; border-radius: 40%;
    border: 2px solid rgba(var(--primary-rgb), 0.45); pointer-events: none; opacity: 0;
}
.core-stage.is-active::before { animation: radarShockwave 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.core-stage.is-active::after { animation: radarShockwave 2.4s cubic-bezier(0.16, 1, 0.3, 1) 1.2s infinite; }
.core-ring-outer {
    position: absolute; inset: 0; border-radius: 38%; border: 2px solid rgba(var(--primary-rgb), 0.45);
    transform: rotate(15deg); box-shadow: inset 0 0 28px rgba(var(--primary-rgb), 0.28);
    animation: spinRing 15s linear infinite;
}
.core-ring-middle {
    position: absolute; inset: 13px; border-radius: 38%; border: 2px dashed rgba(var(--secondary-rgb), 0.55);
    transform: rotate(-15deg); animation: spinRingReverse 11s linear infinite;
}
.core-stage.is-active .core-ring-outer {
    border-color: var(--primary-bright);
    box-shadow: 0 0 42px rgba(var(--primary-rgb), 0.6), inset 0 0 30px rgba(var(--primary-rgb), 0.38);
    animation: spinRing 5s linear infinite;
}
.core-stage.is-active .core-ring-middle { border-color: var(--secondary); animation: spinRingReverse 3.5s linear infinite; }
.core-center-disc {
    position: relative; z-index: 2; width: 132px; height: 132px; border-radius: 34px;
    background: var(--core-bg); border: 2px solid var(--border-glow);
    display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.58), 0 0 30px rgba(var(--primary-rgb), 0.38);
    animation: coreFloat 3s ease-in-out infinite; transition: transform 0.14s ease;
}
.core-center-disc:active { transform: scale(0.90) !important; }
.core-gem-circle {
    width: 48px; height: 48px; border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-bright), var(--secondary));
    color: var(--btn-text); display: flex; align-items: center; justify-content: center; margin-bottom: 7px;
    box-shadow: 0 6px 22px rgba(var(--primary-rgb), 0.65); animation: coreBreath 2s ease-in-out infinite;
}
.core-custom-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.core-speed-pill {
    font-family: var(--font-mono); font-size: 9.5px; font-weight: 800; color: var(--primary-bright);
    background: rgba(var(--primary-rgb), 0.25); border: 1px solid var(--border-glow);
    padding: 3px 9px; border-radius: 99px;
}

.nx-bento-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.nx-bento-tile {
    background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 13px; padding: 9px 11px;
    display: flex; flex-direction: column; gap: 2px;
}
.nx-bento-lbl { font-size: 9.5px; color: var(--text-muted); font-weight: 600; }
.nx-bento-val { font-size: 12.5px; color: var(--text-heading); font-weight: 800; }

/* ============================================================================
   TOKEN LIVE MONITOR & DIGITAL PROFILE PASS + SUPPORT CARD
   ============================================================================ */
.nx-token-hero-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nx-token-pair { font-size: 9.5px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.06em; }
.nx-token-price-big { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.nx-token-price-big #mktLivePriceHero { font-size: 25px; font-weight: 800; color: var(--text-heading); }

.nx-profile-pass {
    position: relative; overflow: hidden; background: var(--pass-grad);
    border: 1.5px solid var(--border-glow); border-radius: 22px; padding: 16px; margin-bottom: 12px;
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.36); color: #ffffff;
}
.nx-profile-pass::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 65%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: skewX(-25deg); animation: holoSweep 5s ease-in-out infinite; pointer-events: none;
}
.nx-pass-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nx-pass-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.nx-pass-avatar {
    width: 52px; height: 52px; border-radius: 16px; padding: 2px;
    background: linear-gradient(135deg, var(--primary-bright), var(--secondary));
    flex-shrink: 0; box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6);
}
.nx-pass-name { font-size: 16px; font-weight: 800; color: #ffffff; }
.nx-pass-handle { font-size: 11.5px; color: rgba(255, 255, 255, 0.85); margin-top: 1px; }
.nx-pass-uid { font-size: 10.5px; color: #ffffff; margin-top: 2px; }

/* ============================================================================
   SHIMMER BUTTONS, INPUTS, LISTS & TAGS
   ============================================================================ */
.btn-primary-action {
    position: relative; overflow: hidden; width: 100%; height: 46px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--btn-text); font-family: var(--font-sans); font-size: 13.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 8px 26px rgba(var(--primary-rgb), 0.48);
    transition: transform 0.14s ease, opacity 0.14s ease;
}
.btn-primary-action::before {
    content: ""; position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transform: skewX(-20deg); animation: btnGloss 3.2s ease-in-out infinite; pointer-events: none;
}
.btn-primary-action:active { transform: scale(0.96); }
.btn-primary-action:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-outline-action {
    width: 100%; height: 42px; border: 1.5px solid var(--border-glow); border-radius: 13px;
    background: rgba(var(--primary-rgb), 0.15); color: var(--primary-bright);
    font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    gap: 6px; cursor: pointer; transition: transform 0.14s ease; text-decoration: none;
}
.btn-outline-action:active { transform: scale(0.96); }

.btn-sm-pill {
    height: 29px; padding: 0 11px; border: none; border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--btn-text); font-size: 10.5px; font-weight: 800; cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.38);
}
.btn-sm-pill.is-done { background: rgba(100, 116, 139, 0.35); color: var(--text-muted); box-shadow: none; }

.stats-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.stat-mini-card { background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 8px 5px; text-align: center; }
.stat-mini-lbl { font-size: 9px; color: var(--text-muted); font-weight: 600; }
.stat-mini-val { font-size: 12px; font-weight: 800; color: var(--text-heading); margin-top: 2px; }

.sec-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.sec-title { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--text-heading); text-transform: uppercase; }
.sec-title svg { color: var(--primary-bright); }
.sec-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 11px; }

.pill-tag-green { font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(52, 211, 153, 0.45); color: #6ee7b7; }
.pill-tag-rose { font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(244, 63, 94, 0.2); border: 1px solid rgba(251, 113, 133, 0.45); color: #fda4af; }
.pill-tag-blue { font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(var(--primary-rgb), 0.24); border: 1px solid var(--border-glow); color: var(--primary-bright); }

.kv-strip { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 11px; margin-bottom: 6px; font-size: 11.5px; }
.kv-strip.highlight { background: rgba(var(--primary-rgb), 0.18); border-color: var(--border-glow); }
.kv-lbl { color: var(--text-muted); }
.kv-lbl-primary { color: var(--primary-bright); font-weight: 700; }
.kv-val-primary { color: var(--primary-bright); font-size: 12.5px; font-weight: 800; }

.field-box { background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 9px 11px; margin-bottom: 9px; }
.field-top-row { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-muted); margin-bottom: 4px; }
.field-input { width: 100%; background: transparent; border: none; color: var(--text-heading); font-size: 18px; font-weight: 800; outline: none; }
.copy-action-link { color: var(--primary-bright); font-weight: 800; cursor: pointer; }

.preset-4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 11px; }
.preset-chip { text-align: center; padding: 7px 4px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--border-subtle); font-size: 11px; font-weight: 700; color: var(--text-body); cursor: pointer; transition: all 0.15s ease; }
.preset-chip.active { background: rgba(var(--primary-rgb), 0.28); border-color: var(--primary-bright); color: var(--primary-bright); }

.streak-7-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 11px; }
.streak-cell { background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 9px; padding: 6px 2px; text-align: center; }
.streak-cell.is-today { border-color: var(--primary-bright); background: rgba(var(--primary-rgb), 0.26); box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.45); animation: coreBreath 2s infinite; }
.streak-cell.is-claimed { opacity: 0.45; }
.day-txt { display: block; font-size: 8.5px; color: var(--text-muted); }
.amt-txt { display: block; font-size: 10px; font-weight: 800; color: var(--primary-bright); margin-top: 2px; }

.task-row-card, .list-item-row, .gate-ch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 12px; margin-bottom: 7px; }
.task-icon-badge { width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--primary-rgb), 0.2); color: var(--primary-bright); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.seg-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg-input); padding: 4px; border-radius: 11px; margin-bottom: 11px; }
.seg-switch-btn { height: 32px; border: none; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.seg-switch-btn.active { background: var(--primary); color: var(--btn-text); font-weight: 800; }

.btn-2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ref-bonus-hero { font-size: 27px; font-weight: 800; color: var(--primary-bright); margin: 4px 0; }
.ref-link-code, .mono-code-block { display: block; font-size: 10.5px; color: var(--primary-bright); word-break: break-all; }

.spin-stage { position: relative; width: 230px; height: 230px; margin: 10px auto 14px; }
.spin-needle { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 18px solid var(--accent-gold); z-index: 5; }
#luckyWheelCanvas { width: 100%; height: 100%; transition: transform 4.2s cubic-bezier(0.15, 0.85, 0.2, 1); }
.chart-canvas-box { width: 100%; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 14px; }

/* ============================================================================
   EXACT 7-TAB MOBILE-FIT FLOATING NAVIGATION BAR (NO OVERFLOW, 3D SPRING)
   ============================================================================ */
.bottom-dock {
    display: none;
    position: fixed;
    bottom: 8px;
    left: 8px;
    right: 8px;
    max-width: 444px;
    margin: 0 auto;
    background: var(--dock-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid var(--border-glow);
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75), 0 0 28px rgba(var(--primary-rgb), 0.30);
    z-index: 100;
}
.bottom-dock-inner.bottom-dock-7 {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    padding: 5px 4px;
    gap: 2px;
}

.dock-tab-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    border: 1px solid transparent;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 1px;
    border-radius: 14px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dock-tab-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.dock-tab-btn svg {
    width: 17px; height: 17px;
    transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dock-tab-btn:active {
    transform: scale(0.86);
}
.dock-tab-btn.active {
    color: var(--primary-bright);
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.30), rgba(var(--secondary-rgb), 0.20));
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.38);
}
.dock-tab-btn.active svg {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 8px var(--primary-bright));
}
.dock-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    width: 12px;
    height: 2.5px;
    border-radius: 99px;
    background: var(--primary-bright);
    box-shadow: 0 0 8px var(--primary-bright);
}

.dock-center-market {
    padding: 3px 1px !important;
}
.center-market-orb {
    width: 36px; height: 36px; margin: -6px auto 1px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-bright) 0%, var(--secondary) 100%);
    color: var(--btn-text); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.7);
    animation: coreBreath 2s ease-in-out infinite;
}
.center-market-lbl { font-size: 9px; font-weight: 800; color: var(--primary-bright); }

/* ============================================================================
   MODALS, PARTICLES & TOAST
   ============================================================================ */
.gate-backdrop, #tgRestrictedScreen {
    display: none; position: fixed; inset: 0; background: rgba(4, 7, 15, 0.85);
    backdrop-filter: blur(12px); z-index: 500; align-items: center; justify-content: center; padding: 18px;
}
.gate-backdrop.active, #tgRestrictedScreen.active { display: flex; animation: fadeInModal 0.24s ease; }
.gate-modal, .restricted-card {
    width: 100%; max-width: 380px; background: var(--bg-card); border: 1.5px solid var(--border-glow);
    border-radius: 24px; padding: 22px 18px; text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 38px rgba(var(--primary-rgb), 0.3);
}
.gate-emblem-ring, .restricted-shield {
    width: 50px; height: 50px; border-radius: 15px; margin: 0 auto 10px;
    background: rgba(var(--primary-rgb), 0.22); color: var(--primary-bright);
    display: flex; align-items: center; justify-content: center;
}
.gate-title, .restricted-title { font-size: 17px; font-weight: 800; color: var(--text-heading); margin-bottom: 6px; }
.gate-desc, .restricted-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.restricted-bot-tag {
    display: inline-block; padding: 5px 12px; border-radius: 99px;
    background: rgba(var(--primary-rgb), 0.2); color: var(--primary-bright);
    font-weight: 800; font-size: 11.5px; margin-bottom: 14px;
}
#toastBanner {
    display: none; position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); border: 1.5px solid var(--primary-bright); color: var(--text-heading);
    padding: 9px 16px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
    z-index: 9999; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(var(--primary-rgb), 0.45);
    max-width: 92%; text-align: center;
}
.particle-burst-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }
.burst-particle {
    position: fixed; font-size: 13px; font-weight: 800; color: var(--primary-bright);
    text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.9);
    animation: burstFly 0.95s ease-out forwards;
}
.empty-list-msg { text-align: center; font-size: 11.5px; color: var(--text-muted); padding: 12px 0; }

/* ============================================================================
   KEYFRAME ANIMATIONS
   ============================================================================ */
@keyframes spinRing { to { transform: rotate(375deg); } }
@keyframes spinRingReverse { to { transform: rotate(-375deg); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.82); } }
@keyframes tabEntrance {
    0% { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeInModal { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes coreFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }
@keyframes floatCardSlow { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }
@keyframes coreBreath {
    0%, 100% { box-shadow: 0 6px 22px rgba(var(--primary-rgb), 0.55); }
    50% { box-shadow: 0 6px 34px rgba(var(--primary-rgb), 0.95), 0 0 18px rgba(var(--secondary-rgb), 0.65); }
}
@keyframes radarShockwave {
    0% { transform: scale(0.85) rotate(0deg); opacity: 0.85; }
    100% { transform: scale(1.42) rotate(45deg); opacity: 0; }
}
@keyframes holoSweep { 0% { left: -120%; } 35%, 100% { left: 160%; } }
@keyframes btnGloss { 0% { left: -100%; } 30%, 100% { left: 150%; } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes burstFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.6); }
}