/* ==============================================
   CRC Wealth — Premium Crypto Web3 Dark Theme v4
   (Deep Navy · Neon Cyan · Magenta · Gold)
   Mobile-first · 3D depth · Glassmorphism
   Aggressive Tailwind utility override layer
   ============================================== */

:root {
    --bg-base: #050818;
    --bg-elev-1: #0B0F26;
    --bg-elev-2: #131841;
    --bg-glass: rgba(11, 15, 38, 0.65);
    --bg-glass-strong: rgba(11, 15, 38, 0.88);

    --neon-cyan: #00E0FF;
    --neon-cyan-soft: rgba(0, 224, 255, 0.18);
    --neon-magenta: #FF2EC4;
    --neon-magenta-soft: rgba(255, 46, 196, 0.18);
    --neon-violet: #8B5CF6;
    --neon-violet-soft: rgba(139, 92, 246, 0.20);
    --neon-gold: #FFD057;
    --neon-gold-soft: rgba(255, 208, 87, 0.18);
    --neon-emerald: #00F5A0;
    --neon-emerald-soft: rgba(0, 245, 160, 0.18);
    --neon-rose: #FF4778;
    --neon-rose-soft: rgba(255, 71, 120, 0.18);

    --ink: #F4F5FB;
    --ink-soft: #C7CADC;
    --ink-muted: #7E84A3;
    --ink-faint: #4A4F6B;

    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.20);
}

/* ============================================================
   BASE — apply DARK to everything
   ============================================================ */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: var(--bg-base) !important;
    color: var(--ink) !important;
    min-height: 100vh;
}
body {
    background:
        radial-gradient(1200px 800px at -10% -10%, rgba(0, 224, 255, 0.14), transparent 55%) !important,
        radial-gradient(1100px 800px at 110% 10%, rgba(255, 46, 196, 0.14), transparent 50%) !important,
        radial-gradient(900px 800px at 50% 120%, rgba(139, 92, 246, 0.16), transparent 60%) !important,
        linear-gradient(180deg, #050818 0%, #06091F 100%) !important;
    background-attachment: fixed !important;
    overflow-x: hidden;
}
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
body > * { position: relative; z-index: 1; }

::selection { background: var(--neon-magenta); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(11, 15, 38, 0.4); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FF2EC4 0%, #8B5CF6 50%, #00E0FF 100%); border-radius: 6px; }

/* ============================================================
   AGGRESSIVE TAILWIND UTILITY OVERRIDES
   (force every bg-white, bg-amber-50, etc. to dark theme)
   ============================================================ */
.bg-white,
.bg-surface,
.bg-amber-50, .bg-emerald-50, .bg-rose-50, .bg-blue-50, .bg-sky-50,
.bg-purple-50, .bg-violet-50, .bg-indigo-50, .bg-pink-50, .bg-red-50,
.bg-green-50, .bg-yellow-50, .bg-orange-50, .bg-cyan-50, .bg-teal-50,
.bg-amber-100, .bg-emerald-100, .bg-rose-100, .bg-sky-100, .bg-blue-100,
.bg-purple-100, .bg-violet-100, .bg-indigo-100, .bg-pink-100, .bg-red-100,
.bg-green-100, .bg-yellow-100, .bg-orange-100, .bg-cyan-100, .bg-teal-100,
.bg-gray-50, .bg-gray-100, .bg-slate-50, .bg-slate-100, .bg-neutral-50, .bg-neutral-100,
.bg-bg {
    background-color: var(--bg-elev-1) !important;
    color: var(--ink) !important;
}

.bg-surfaceMuted,
.bg-gray-200, .bg-slate-200, .bg-neutral-200, .bg-zinc-100 {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--ink-soft) !important;
}

/* White-text on dark backgrounds — keep readable */
.text-ink, .text-gray-900, .text-gray-800, .text-slate-900, .text-slate-800,
.text-neutral-900, .text-neutral-800, .text-black,
.text-primary { color: var(--ink) !important; }
.text-inkSoft { color: var(--ink-soft) !important; }
.text-inkMuted, .text-muted, .text-gray-500, .text-gray-600, .text-slate-500, .text-slate-600,
.text-neutral-500, .text-neutral-600 { color: var(--ink-muted) !important; }
.text-white { color: #fff !important; }

/* Accent text colors — neon variants */
.text-emerald, .text-emerald-600, .text-emerald-700, .text-emerald-800, .text-green-600, .text-green-700 { color: #5BFFC4 !important; }
.text-rose, .text-rose-600, .text-rose-700, .text-danger, .text-red-600, .text-red-700 { color: #FF8FA8 !important; }
.text-amber, .text-amber-600, .text-amber-700, .text-amber-800, .text-yellow-600, .text-yellow-700, .text-warn { color: #FFE39A !important; }
.text-cyan, .text-cyan-600, .text-cyan-700, .text-sky-600, .text-sky-700, .text-blue-600, .text-blue-700 { color: #5BF1FF !important; }
.text-violet, .text-violet-600, .text-violet-700, .text-purple-600, .text-purple-700 { color: #C4B5FD !important; }
.text-gold, .text-magenta, .text-pink-600, .text-pink-700, .text-fuchsia-600, .text-fuchsia-700 { color: #FF8AE0 !important; }
.text-success { color: #5BFFC4 !important; }

/* Border colors — convert light to dark theme lines */
.border-line, .border-gray-200, .border-gray-300, .border-slate-200, .border-slate-300, .border-neutral-200, .border-neutral-300 { border-color: var(--line) !important; }
.border-amber-200, .border-amber-300, .border-yellow-200, .border-yellow-300 { border-color: rgba(255, 208, 87, 0.35) !important; }
.border-emerald-200, .border-emerald-300, .border-green-200, .border-green-300 { border-color: rgba(0, 245, 160, 0.35) !important; }
.border-rose-200, .border-rose-300, .border-red-200, .border-red-300, .border-danger { border-color: rgba(255, 71, 120, 0.35) !important; }
.border-sky-200, .border-sky-300, .border-blue-200, .border-blue-300, .border-cyan-200, .border-cyan-300 { border-color: rgba(0, 224, 255, 0.35) !important; }
.border-violet-200, .border-violet-300, .border-purple-200, .border-purple-300 { border-color: rgba(139, 92, 246, 0.35) !important; }
.border-primary { border-color: var(--neon-cyan) !important; }

/* Alert / banner override (light yellow/green/red boxes) */
.bg-amber-50, .bg-yellow-50 { background-color: rgba(255, 208, 87, 0.08) !important; color: #FFE39A !important; border-color: rgba(255, 208, 87, 0.30) !important; }
.bg-emerald-50, .bg-green-50 { background-color: rgba(0, 245, 160, 0.08) !important; color: #5BFFC4 !important; border-color: rgba(0, 245, 160, 0.30) !important; }
.bg-rose-50, .bg-red-50, .bg-pink-50 { background-color: rgba(255, 71, 120, 0.08) !important; color: #FF8FA8 !important; border-color: rgba(255, 71, 120, 0.30) !important; }
.bg-sky-50, .bg-blue-50, .bg-cyan-50 { background-color: rgba(0, 224, 255, 0.08) !important; color: #5BF1FF !important; border-color: rgba(0, 224, 255, 0.30) !important; }
.bg-violet-50, .bg-purple-50, .bg-indigo-50 { background-color: rgba(139, 92, 246, 0.08) !important; color: #C4B5FD !important; border-color: rgba(139, 92, 246, 0.30) !important; }

/* Inputs / Selects / Textareas — full dark glass */
input, select, textarea {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 3px var(--neon-cyan-soft), 0 0 24px var(--neon-cyan-soft) !important;
    outline: none !important;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint) !important; }
input:disabled, select:disabled, textarea:disabled { background: rgba(255, 255, 255, 0.02) !important; color: var(--ink-muted) !important; }
select option { background: var(--bg-elev-1) !important; color: var(--ink) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--neon-cyan); }

/* ============================================================
   3D GLASS CARDS
   ============================================================ */
.card {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    border: 1px solid var(--line) !important;
    border-radius: 22px !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 24px -8px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.3s cubic-bezier(.2, .7, .2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--ink) !important;
}
.card::before {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 32%, transparent 68%, rgba(255, 255, 255, 0.05) 100%);
}
.card::after {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 22px 56px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 224, 255, 0.30) !important;
    border-color: rgba(0, 224, 255, 0.35) !important;
}

/* Neon accent cards */
.card-accent-gold, .card-accent-magenta {
    border-color: rgba(255, 46, 196, 0.40) !important;
    background:
        linear-gradient(135deg, rgba(255, 46, 196, 0.14) 0%, rgba(11, 15, 38, 0.65) 60%),
        var(--bg-glass) !important;
    box-shadow: 0 0 0 1px rgba(255, 46, 196, 0.20), 0 16px 40px -12px rgba(255, 46, 196, 0.40), 0 8px 24px -10px rgba(0, 0, 0, 0.6) !important;
}
.card-accent-emerald, .card-accent-cyan {
    border-color: rgba(0, 224, 255, 0.40) !important;
    background:
        linear-gradient(135deg, rgba(0, 224, 255, 0.14) 0%, rgba(11, 15, 38, 0.65) 60%),
        var(--bg-glass) !important;
    box-shadow: 0 0 0 1px rgba(0, 224, 255, 0.20), 0 16px 40px -12px rgba(0, 224, 255, 0.40) !important;
}
.card-accent-sky, .card-accent-violet {
    border-color: rgba(139, 92, 246, 0.40) !important;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(11, 15, 38, 0.65) 60%),
        var(--bg-glass) !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.20), 0 16px 40px -12px rgba(139, 92, 246, 0.40) !important;
}
.card-accent-rose {
    border-color: rgba(255, 71, 120, 0.40) !important;
    background:
        linear-gradient(135deg, rgba(255, 71, 120, 0.14) 0%, rgba(11, 15, 38, 0.65) 60%),
        var(--bg-glass) !important;
    box-shadow: 0 0 0 1px rgba(255, 71, 120, 0.20), 0 16px 40px -12px rgba(255, 71, 120, 0.40) !important;
}
.card-accent-amber {
    border-color: rgba(255, 208, 87, 0.45) !important;
    background:
        linear-gradient(135deg, rgba(255, 208, 87, 0.16) 0%, rgba(11, 15, 38, 0.65) 60%),
        var(--bg-glass) !important;
    box-shadow: 0 0 0 1px rgba(255, 208, 87, 0.25), 0 16px 40px -12px rgba(255, 208, 87, 0.40) !important;
}
.card-accent-primary {
    border-color: rgba(0, 224, 255, 0.45) !important;
    background:
        linear-gradient(135deg, rgba(0, 224, 255, 0.14) 0%, rgba(139, 92, 246, 0.14) 50%, rgba(11, 15, 38, 0.65) 100%),
        var(--bg-glass) !important;
    box-shadow: 0 0 0 1px rgba(0, 224, 255, 0.22), 0 16px 40px -12px rgba(0, 224, 255, 0.40) !important;
}
.card-accent-lime { border-color: rgba(0, 245, 160, 0.40) !important; background: linear-gradient(135deg, rgba(0, 245, 160, 0.14), rgba(11, 15, 38, 0.65) 60%), var(--bg-glass) !important; }

/* ============================================================
   3D ICON PILLS
   ============================================================ */
.icon-pill {
    width: 46px; height: 46px;
    border-radius: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 21px;
    position: relative;
    transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
    color: #fff !important;
}
.icon-pill::before {
    content: ""; position: absolute; inset: 0; border-radius: 15px;
    background: inherit;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 -3px 6px rgba(0, 0, 0, 0.35) inset,
        0 12px 26px -8px rgba(0, 0, 0, 0.50);
    z-index: -1;
}
.icon-pill::after {
    content: ""; position: absolute; inset: 0; border-radius: 15px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.50), transparent 60%);
    pointer-events: none;
}
.icon-pill:hover { transform: translateY(-3px) scale(1.06) rotate(-3deg); }
.icon-pill-gold, .icon-pill-magenta   { background: linear-gradient(160deg, #FF6BD6 0%, #C71585 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 12px 26px -8px rgba(255, 46, 196, 0.60) !important; }
.icon-pill-emerald, .icon-pill-cyan   { background: linear-gradient(160deg, #5BF1FF 0%, #0091A8 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 12px 26px -8px rgba(0, 224, 255, 0.60) !important; }
.icon-pill-sky                        { background: linear-gradient(160deg, #6FC1FF 0%, #1E40AF 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 12px 26px -8px rgba(96, 165, 250, 0.60) !important; }
.icon-pill-rose                       { background: linear-gradient(160deg, #FF7AA0 0%, #BE123C 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 12px 26px -8px rgba(255, 71, 120, 0.60) !important; }
.icon-pill-primary                    { background: linear-gradient(160deg, #5BF1FF 0%, #4338CA 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 12px 26px -8px rgba(0, 224, 255, 0.60) !important; }
.icon-pill-violet                     { background: linear-gradient(160deg, #C4B5FD 0%, #6D28D9 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 12px 26px -8px rgba(139, 92, 246, 0.60) !important; }
.icon-pill-amber                      { background: linear-gradient(160deg, #FFE39A 0%, #B45309 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 12px 26px -8px rgba(255, 208, 87, 0.60) !important; }
.icon-pill-lime                       { background: linear-gradient(160deg, #5EFFAE 0%, #15803D 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 12px 26px -8px rgba(0, 245, 160, 0.60) !important; }

/* ============================================================
   HERO / GLOW BLOCK
   ============================================================ */
.glow-primary {
    background:
      radial-gradient(140% 220% at -10% -50%, rgba(255, 46, 196, 0.55) 0%, transparent 42%),
      radial-gradient(140% 220% at 110% 110%, rgba(0, 224, 255, 0.55) 0%, transparent 45%),
      radial-gradient(80% 120% at 50% 100%, rgba(139, 92, 246, 0.45) 0%, transparent 50%),
      linear-gradient(135deg, #0B0F26 0%, #131841 50%, #1F1466 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 40px 100px -32px rgba(0, 0, 0, 0.80), 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}
.glow-primary::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 90%);
    pointer-events: none;
}

/* ============================================================
   3D BUTTONS
   ============================================================ */
.btn-3d {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.015em;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    transition: transform 0.16s cubic-bezier(.2, .7, .2, 1), box-shadow 0.18s ease, filter 0.18s ease;
    position: relative; overflow: hidden;
    will-change: transform;
    text-decoration: none;
    cursor: pointer;
}
.btn-3d::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, transparent 50%);
    pointer-events: none;
}
.btn-3d:active { transform: translateY(1px) scale(0.99); }
.btn-3d-primary {
    background: linear-gradient(135deg, #00E0FF 0%, #8B5CF6 50%, #FF2EC4 100%) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 -2px 0 rgba(0, 0, 0, 0.22) inset, 0 14px 32px -8px rgba(139, 92, 246, 0.75), 0 0 24px rgba(0, 224, 255, 0.35) !important;
}
.btn-3d-primary:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn-3d-gold, .btn-3d-magenta {
    background: linear-gradient(180deg, #FF6BD6 0%, #C71585 100%) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 -2px 0 rgba(0, 0, 0, 0.22) inset, 0 12px 30px -10px rgba(255, 46, 196, 0.70) !important;
}
.btn-3d-emerald, .btn-3d-cyan {
    background: linear-gradient(180deg, #5BF1FF 0%, #0091A8 100%) !important;
    color: #001A20 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) inset, 0 -2px 0 rgba(0, 0, 0, 0.22) inset, 0 12px 30px -10px rgba(0, 224, 255, 0.70) !important;
}
.btn-3d-danger {
    background: linear-gradient(180deg, #FF4778 0%, #BE123C 100%) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.30) inset, 0 12px 30px -10px rgba(255, 71, 120, 0.65) !important;
}
.btn-3d-amber {
    background: linear-gradient(180deg, #FFE39A 0%, #B45309 100%) !important;
    color: #2E1900 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) inset, 0 12px 30px -10px rgba(255, 208, 87, 0.65) !important;
}
.btn-3d:hover { transform: translateY(-2px); filter: brightness(1.12); }

/* Override `px-X py-Y bg-primary text-white rounded-md` style buttons */
.bg-primary { background: linear-gradient(135deg, #00E0FF 0%, #8B5CF6 50%, #FF2EC4 100%) !important; color: #fff !important; }
.bg-primary:hover, .hover\\:bg-primary-hover:hover { filter: brightness(1.12); }
.bg-gold { background: linear-gradient(135deg, #FF6BD6 0%, #C71585 100%) !important; color: #fff !important; }
.bg-emerald { background: linear-gradient(135deg, #5BF1FF 0%, #0091A8 100%) !important; color: #001A20 !important; }
.bg-danger { background: linear-gradient(135deg, #FF4778 0%, #BE123C 100%) !important; color: #fff !important; }

/* ============================================================
   NUMBER DISPLAY — gradient text
   ============================================================ */
.num-display {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.015em;
    background: linear-gradient(180deg, #FFFFFF 0%, #C7CADC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 22px rgba(0, 224, 255, 0.20);
    color: transparent !important;
}
.card-accent-gold .num-display, .card-accent-magenta .num-display { background: linear-gradient(180deg, #FF8AE0 0%, #FFFFFF 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.card-accent-emerald .num-display, .card-accent-cyan .num-display { background: linear-gradient(180deg, #5BF1FF 0%, #FFFFFF 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.card-accent-violet .num-display, .card-accent-sky .num-display   { background: linear-gradient(180deg, #C4B5FD 0%, #FFFFFF 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.card-accent-amber .num-display   { background: linear-gradient(180deg, #FFE39A 0%, #FFFFFF 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.card-accent-rose .num-display    { background: linear-gradient(180deg, #FF7AA0 0%, #FFFFFF 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; }

/* ============================================================
   PILLS / BADGES
   ============================================================ */
.pill-gold, .pill-magenta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: 999px;
    background: rgba(255, 46, 196, 0.15) !important;
    color: #FF8AE0 !important;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    border: 1px solid rgba(255, 46, 196, 0.40);
    text-transform: uppercase;
}
.pill-emerald, .pill-cyan {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: 999px;
    background: rgba(0, 224, 255, 0.15) !important;
    color: #5BF1FF !important;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    border: 1px solid rgba(0, 224, 255, 0.40);
    text-transform: uppercase;
}
.pill-amber {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: 999px;
    background: rgba(255, 208, 87, 0.15) !important;
    color: #FFE39A !important;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    border: 1px solid rgba(255, 208, 87, 0.45);
    text-transform: uppercase;
}
.status-pill {
    display: inline-flex; align-items: center;
    padding: 3px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    border: 1px solid currentColor;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.04) !important;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.40);
}
.progress > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, #FF2EC4 0%, #8B5CF6 40%, #00E0FF 100%) !important;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(.2, .7, .2, 1);
    box-shadow: 0 0 12px rgba(0, 224, 255, 0.65), 0 0 24px rgba(255, 46, 196, 0.35);
    position: relative;
}
.progress > span::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px);
    animation: progress-stripes 1.2s linear infinite;
}
@keyframes progress-stripes { from { background-position: 0 0; } to { background-position: 24px 0; } }

/* ============================================================
   TREE
   ============================================================ */
.tree-line { stroke: rgba(0, 224, 255, 0.45) !important; stroke-width: 2; fill: none; filter: drop-shadow(0 0 4px rgba(0, 224, 255, 0.50)); }
.tree-card-empty { background: rgba(255, 46, 196, 0.06) !important; border: 1px dashed rgba(255, 46, 196, 0.45) !important; }

/* ============================================================
   TABLES — dark glass
   ============================================================ */
table { color: var(--ink) !important; border-collapse: collapse; }
table thead tr, thead { background: rgba(255, 255, 255, 0.03) !important; }
table tbody tr { transition: background 0.18s ease; border-color: var(--line) !important; }
table tbody tr:hover { background: rgba(0, 224, 255, 0.06) !important; }
table th, table td { border-color: var(--line) !important; color: var(--ink) !important; }
table th { color: var(--ink-muted) !important; }
.hover\\:bg-surfaceMuted:hover { background: rgba(0, 224, 255, 0.06) !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeUp 0.5s cubic-bezier(.2, .7, .2, 1) both; }

.stagger > * { opacity: 0; animation: fadeUp 0.55s cubic-bezier(.2, .7, .2, 1) both; }
.stagger > *:nth-child(1){animation-delay:.04s} .stagger > *:nth-child(2){animation-delay:.10s}
.stagger > *:nth-child(3){animation-delay:.16s} .stagger > *:nth-child(4){animation-delay:.22s}
.stagger > *:nth-child(5){animation-delay:.28s} .stagger > *:nth-child(6){animation-delay:.34s}
.stagger > *:nth-child(7){animation-delay:.40s} .stagger > *:nth-child(8){animation-delay:.46s}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0.65); }
    50%      { box-shadow: 0 0 0 12px rgba(0, 224, 255, 0); }
}
.pulse-gold, .pulse-magenta { animation: pulseGlow 2.2s ease-out infinite; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-y { animation: floatY 4.5s ease-in-out infinite; }

@keyframes shimmer { 0% { background-position: -220px 0; } 100% { background-position: 220px 0; } }
.shimmer { background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.40), transparent); background-size: 220px 100%; animation: shimmer 2.4s linear infinite; }

@keyframes orbitGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.bg-orbit { background: linear-gradient(120deg, #FF2EC4 0%, #8B5CF6 25%, #00E0FF 50%, #00F5A0 75%, #FFD057 100%) !important; background-size: 400% 400% !important; animation: orbitGlow 12s ease infinite !important; color: #fff !important; }

/* ============================================================
   NAV PILLS / SIDEBAR
   ============================================================ */
.nav-pill {
    position: relative;
    transition: all 0.2s ease;
    border-radius: 12px !important;
    color: var(--ink-soft) !important;
}
.nav-pill:hover { background: rgba(255, 255, 255, 0.05) !important; color: var(--ink) !important; }
.nav-pill::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 0; border-radius: 4px;
    background: linear-gradient(180deg, #00E0FF, #FF2EC4);
    transition: height 0.22s ease;
    box-shadow: 0 0 12px var(--neon-cyan-soft);
}
.nav-pill.active::before { height: 60%; }
.nav-pill.active {
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.14) 0%, rgba(255, 46, 196, 0.12) 100%) !important;
    color: #fff !important;
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 0 1px rgba(0, 224, 255, 0.22) inset, 0 8px 22px -10px rgba(0, 224, 255, 0.40);
}

/* ============================================================
   RANK BADGE
   ============================================================ */
.rank-badge {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 800; font-size: 13px;
    color: #fff !important;
    background: linear-gradient(135deg, #FF2EC4 0%, #8B5CF6 50%, #00E0FF 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 12px 30px -8px rgba(255, 46, 196, 0.55), 0 0 24px rgba(0, 224, 255, 0.30);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.30);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rank-badge::before { content: "✦"; font-size: 14px; }

.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-3px); }

/* ============================================================
   MOBILE LAYOUT
   ============================================================ */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(5, 8, 24, 0.94) !important;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-top: 1px solid var(--line);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    display: none;
}
.mobile-bottom-nav .row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.mobile-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink-muted) !important;
    font-size: 10px; font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
    line-height: 1.1;
}
.mobile-bottom-nav a .ico { font-size: 18px; }
.mobile-bottom-nav a.active {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.18), rgba(255, 46, 196, 0.18));
    box-shadow: 0 0 0 1px var(--line-strong) inset, 0 0 18px rgba(0, 224, 255, 0.28);
}
.mobile-bottom-nav a.active::before {
    content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #00E0FF, #FF2EC4);
    box-shadow: 0 0 12px var(--neon-cyan);
}

.mobile-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: 280px; max-width: 80vw;
    background: linear-gradient(180deg, #050818 0%, #0B0F26 100%) !important;
    border-right: 1px solid var(--line);
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
    overflow-y: auto;
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.7);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-backdrop {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(5, 8, 24, 0.70);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-topbar {
    display: none;
    position: sticky; top: 0; z-index: 40;
    background: rgba(5, 8, 24, 0.88) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    align-items: center; justify-content: space-between;
}

/* Tablet & below */
@media (max-width: 1024px) {
    .desktop-sidebar { display: none !important; }
    .mobile-topbar { display: flex !important; }
    .main-content { padding-left: 0 !important; padding-bottom: 90px !important; }
    .min-h-screen.flex { display: block !important; }
    .min-h-screen.grid.lg\\:grid-cols-2 { grid-template-columns: 1fr !important; }
    .min-h-screen.grid.lg\\:grid-cols-2 > .hidden { display: none !important; }
}
@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    body { font-size: 14px; }
    .card { border-radius: 18px; }
    .num-display { font-size: 1.7rem !important; }
    h1.font-heading { font-size: 1.85rem !important; line-height: 1.15; }
    .icon-pill { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
    table { font-size: 12px; }
    table th, table td { padding-left: 8px !important; padding-right: 8px !important; padding-top: 8px !important; padding-bottom: 8px !important; }
    .btn-3d { padding: 10px 16px; font-size: 13px; }
    /* Stack grids 1-column */
    .grid.sm\\:grid-cols-2,
    .grid.grid-cols-2 { grid-template-columns: 1fr 1fr !important; }
    .grid.lg\\:grid-cols-3, .grid.sm\\:grid-cols-3 { grid-template-columns: 1fr !important; }
    .grid.lg\\:grid-cols-4 { grid-template-columns: 1fr 1fr !important; }
    .max-w-5xl, .max-w-6xl, .max-w-7xl, .max-w-\\[1400px\\] { max-width: 100% !important; }
    .px-4.sm\\:px-8, .px-4.sm\\:px-6.lg\\:px-8 { padding-left: 14px !important; padding-right: 14px !important; }
    .py-8, .py-12, .py-16, .py-24 { padding-top: 28px !important; padding-bottom: 28px !important; }
    .lg\\:py-24 { padding-top: 36px !important; padding-bottom: 36px !important; }
    /* Hide oversized hero image float */
    .float-y img { height: 280px !important; }
}
@media (max-width: 480px) {
    .num-display { font-size: 1.45rem !important; }
    h1.font-heading { font-size: 1.5rem !important; }
    .icon-pill { width: 38px; height: 38px; font-size: 16px; }
    .card { border-radius: 16px; }
    .grid.grid-cols-2.lg\\:grid-cols-4 { grid-template-columns: 1fr 1fr !important; }
}

.overflow-x-auto::-webkit-scrollbar { height: 6px; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    aside, header form, .no-print, .mobile-bottom-nav, .mobile-topbar { display: none !important; }
    body, html { background: white !important; color: black !important; }
    body::before { display: none; }
    .card, .glow-primary { box-shadow: none !important; background: white !important; color: black !important; border-color: #ddd !important; }
    .num-display { color: black !important; -webkit-text-fill-color: black !important; background: none !important; }
    table, table th, table td { color: black !important; border-color: #ddd !important; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-up, .stagger > *, .float-y, .pulse-gold, .pulse-magenta, .shimmer, .bg-orbit {
        animation: none !important;
    }
    .card, .btn-3d, .icon-pill, .mobile-drawer { transition: none !important; }
}

/* ============================================================
   ANCHOR & LINKS in dark
   ============================================================ */
a { color: inherit; }
a:hover { color: var(--neon-cyan); }
.text-primary, .hover\\:text-primary:hover { color: var(--neon-cyan) !important; }
.hover\\:underline:hover { text-decoration: underline; text-decoration-color: var(--neon-cyan); }

/* Misc edge cases */
hr, hr.border-line { border-color: var(--line) !important; }
.bg-white\\/70, .bg-white\\/80, .bg-white\\/85, .bg-white\\/60 {
    background: rgba(11, 15, 38, 0.65) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.bg-surfaceMuted\\/40, .bg-surfaceMuted\\/50 { background: rgba(255, 255, 255, 0.03) !important; }
