/* ============================================================================
 * APEXTAP AI // DARK CYBER-NEURAL OS v3.0 (ZERO AUX / ZERO ORX OVERLAP)
 * Midnight Obsidian (#060913) · Electric Cobalt (#3B82F6) · Ice Cyan (#22D3EE)
 * Split-Action Bottom Dock · Holographic TON Card · Interactive Payout Slider
 * Radial Rank Ring · Terminal Prompt Bar · 60fps Quantum Plinko
 * ============================================================================ */

:root {
    --bg: #060913;
    --bg-2: #0b1122;
    --panel: #0e162b;
    --panel-2: #141f3d;
    --panel-soft: rgba(17, 27, 52, 0.78);
    --border: rgba(148, 163, 184, 0.13);
    --border-hi: rgba(56, 189, 248, 0.32);

    --cobalt: #3b82f6;
    --cobalt-deep: #1d4ed8;
    --cyan: #22d3ee;
    --violet: #8b5cf6;
    --emerald: #10b981;
    --emerald-soft: rgba(16, 185, 129, 0.14);
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, 0.14);
    --danger: #f43f5e;
    --danger-soft: rgba(244, 63, 94, 0.14);

    --grad-ai: linear-gradient(135deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
    --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --grad-card: linear-gradient(155deg, rgba(20, 31, 61, 0.92) 0%, rgba(11, 17, 34, 0.96) 100%);

    --ink: #f8fafc;
    --ink-2: #cbd5e1;
    --ink-muted: #7c8db0;
    --ink-subtle: #4c5d82;

    /* Compat tokens for JS */
    --accent: #38bdf8;
    --brand: #3b82f6;
    --mint: #10b981;
    --text-heading: #f8fafc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #7c8db0;
    --primary-bright: #38bdf8;

    --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Admin Accent Presets tuned for Obsidian Dark OS */
body[data-accent="aurora"]  { --cobalt: #10b981; --cyan: #34d399; --violet: #06b6d4; --grad-ai: linear-gradient(135deg, #059669 0%, #0d9488 55%, #06b6d4 100%); --accent: #34d399; --brand: #10b981; }
body[data-accent="gold"]    { --cobalt: #f59e0b; --cyan: #fde047; --violet: #ea580c; --grad-ai: linear-gradient(135deg, #d97706 0%, #ea580c 100%); --accent: #fbbf24; --brand: #f59e0b; }
body[data-accent="crimson"] { --cobalt: #f43f5e; --cyan: #fb7185; --violet: #9333ea; --grad-ai: linear-gradient(135deg, #e11d48 0%, #9333ea 100%); --accent: #fb7185; --brand: #f43f5e; }

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: auto;
    min-height: 100%;
    background: var(--bg);
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    height: auto;
    min-height: 100%;
    background:
        radial-gradient(ellipse 85% 32% at 50% -8%, rgba(37, 99, 235, 0.22) 0%, transparent 62%),
        radial-gradient(circle at 92% 75%, rgba(124, 58, 237, 0.12) 0%, transparent 45%),
        var(--bg);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow: visible;
}

body.shield-active { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.shield-active input, body.shield-active textarea { user-select: text; -webkit-user-select: text; }
button, a, [onclick] { touch-action: manipulation; }

.mono-num, .mono-code-block, .mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.28); border-radius: 99px; }

/* ============================================================================
 * 1. MAIN SHELL, DARK GLASS PANELS & SHARED PRIMITIVES
 * ============================================================================ */
.apex-app-shell {
    width: 100%;
    max-width: 452px;
    margin: 0 auto;
    padding: 0 14px 118px;
    overflow-x: clip;
}

.tab-view { display: none; }
.tab-view.active {
    display: block;
    animation: axFadeIn 0.18s ease-out;
}
@keyframes axFadeIn { from { opacity: 0; } to { opacity: 1; } }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-start   { display: flex; align-items: center; gap: 10px; }
.grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-10       { margin-top: 10px; }

.ax-panel {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-top-color: rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.42);
}

.ax-eyebrow {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 2px;
}
.ax-h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; }
.ax-h3 { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: #ffffff; }
.muted-sm { font-size: 11px; color: var(--ink-muted); font-weight: 500; }
.muted-p  { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.stat-md  { font-size: 16px; font-weight: 800; color: #ffffff; }

.well-box {
    background: rgba(6, 9, 19, 0.65);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}

/* Badges */
.ai-pulse-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: var(--cyan);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}
.status-pill, .pill-tag-green {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: #34d399;
    background: var(--emerald-soft);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}
.status-pill.is-warn, .pill-tag-rose { color: #fbbf24; background: var(--warn-soft); border: 1px solid rgba(245, 158, 11, 0.28); }
.status-pill.is-down { color: #fb7185; background: var(--danger-soft); border: 1px solid rgba(244, 63, 94, 0.28); }
.status-pill.is-ai   { color: #ffffff; background: var(--grad-ai); border-color: transparent; }

.micro-pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.22);
    padding: 2.5px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Buttons */
.btn-solid, .btn-primary-action {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--grad-ai);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.12s ease, opacity 0.14s ease;
}
.btn-solid:active, .btn-primary-action:active { transform: scale(0.98); opacity: 0.9; }
.btn-solid:disabled, .btn-primary-action:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border-hi);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.06);
    color: #e2e8f0;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}
.btn-ghost:active { background: rgba(56, 189, 248, 0.14); }
.btn-ghost.is-accent { color: var(--cyan); border-color: rgba(34, 211, 238, 0.40); }

.btn-pill-sm, .btn-sm-pill {
    height: 33px;
    padding: 0 13px;
    border: none;
    border-radius: 9px;
    background: var(--grad-ai);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-pill-sm.is-done, .btn-sm-pill.is-done { background: var(--emerald-soft); color: #34d399; }

/* ============================================================================
 * 2. SPLASH SCREEN
 * ============================================================================ */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 35%, #131d3d 0%, #060913 72%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.22s ease;
}
.splash-overlay.fade-out { opacity: 0; pointer-events: none; }
.splash-box { width: 100%; max-width: 245px; text-align: center; color: #ffffff; }
.splash-emblem {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.40);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-app-logo-img { width: 84px; height: 84px; object-fit: cover; display: block; }
.splash-title { font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.splash-sub   { font-size: 11.5px; color: var(--ink-muted); margin: 4px 0 15px; }
.splash-track { width: 100%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.10); overflow: hidden; margin-bottom: 8px; }
.splash-fill  { width: 15%; height: 100%; background: var(--grad-cyan); transition: width 0.2s ease; }
.splash-meta  { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-muted); font-weight: 600; }

/* ============================================================================
 * 3. RAZOR-SLIM FULL-WIDTH DARK AI TOP STATUS RAIL
 * ============================================================================ */
.ax-status-rail {
    position: sticky;
    top: 0;
    z-index: 95;
    margin: 0 -14px 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.ax-rail-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    min-width: 0;
}
.ax-rail-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
}
.ax-rail-logo img { width: 34px; height: 34px; object-fit: cover; display: block; }
.ax-rail-name {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.ax-rail-sub {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-muted);
    margin-top: 1px;
}
.ax-rail-lvl {
    color: var(--cyan);
    font-weight: 700;
}

.ax-rail-right { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ax-rail-ticker {
    height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.08);
    color: #e0f2fe;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.ax-rail-btn {
    position: relative;
    height: 30px;
    min-width: 30px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.ax-rail-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 5.5px;
    height: 5.5px;
    border-radius: 50%;
    background: var(--cyan);
}
.ax-rail-av {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.45);
    background: var(--grad-ai);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.av-img, .av-txt {
    width: 30px;
    height: 30px;
    object-fit: cover;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
 * 4. HOME VIEW — DARK CYBER DASHBOARD + INTERACTIVE NEURAL CORE ORB
 * ============================================================================ */
.ax-home-balance {
    background:
        radial-gradient(circle at 92% 18%, rgba(34, 211, 238, 0.16) 0%, transparent 48%),
        var(--grad-card);
    border: 1px solid var(--border-hi);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
}
.ax-bal-num {
    font-family: var(--font-display);
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.06;
    margin-top: 5px;
    cursor: pointer;
}
.ax-bal-unit { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--cyan); margin-left: 6px; }
.ax-bal-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-muted); margin-top: 5px; }
.ax-bal-meta b { color: #e2e8f0; }

.ax-neural-stage {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}
.ax-neural-stage.is-active { border-color: rgba(34, 211, 238, 0.42); }
.ax-orb-wrap {
    position: relative;
    width: 152px;
    height: 152px;
    margin: 8px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.ax-orb-svg { position: absolute; inset: 0; width: 152px; height: 152px; transform: rotate(-90deg); pointer-events: none; }
.ax-ring-track { fill: none; stroke: rgba(148, 163, 184, 0.14); stroke-width: 8; }
.ax-ring-fill  { fill: none; stroke: url(#apexRingGrad); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 0.35s ease; }
.ax-orb-core {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #2563eb 0%, #1e1b4b 65%, #060913 100%);
    border: 1px solid rgba(56, 189, 248, 0.42);
    box-shadow: 0 0 28px rgba(37, 99, 235, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.12s ease;
}
.ax-orb-wrap:active .ax-orb-core { transform: scale(0.93); }
.ax-orb-core img { width: 70px; height: 70px; border-radius: 16px; object-fit: cover; pointer-events: none; }
.ax-orb-ripple { position: absolute; inset: 12px; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; pointer-events: none; }
.ax-orb-wrap.is-tapped .ax-orb-ripple { animation: axTapPulse 0.48s ease-out; }
@keyframes axTapPulse { 0% { transform: scale(0.86); opacity: 0.85; } 100% { transform: scale(1.24); opacity: 0; } }

.ax-session-val { font-family: var(--font-display); font-size: 25px; font-weight: 800; color: #ffffff; }
.ax-thin-bar { width: 100%; height: 6px; border-radius: 99px; background: rgba(148, 163, 184, 0.14); overflow: hidden; margin: 10px 0 12px; }
.ax-thin-bar-fill { height: 100%; border-radius: 99px; background: var(--grad-cyan); transition: width 0.35s ease; }

.ax-tel-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.ax-tel-box { background: rgba(6, 9, 19, 0.6); border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; text-align: center; }
.ax-tel-box span { display: block; font-size: 9px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; }
.ax-tel-box b    { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #ffffff; margin-top: 2px; }

.cta-split { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn-oc {
    height: 46px;
    min-width: 58px;
    padding: 0 11px;
    border-radius: 12px;
    border: 1px solid var(--border-hi);
    background: var(--panel-2);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
}
.btn-oc.is-oc-on { background: var(--cyan); color: #060913; border-color: transparent; }

.ax-spark-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 11px 14px;
    margin-bottom: 12px;
    cursor: pointer;
}
.spark-delta { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.spark-delta.is-up   { color: #34d399; }
.spark-delta.is-down { color: #fb7185; }
.spark-canvas-wrap { flex: 1; height: 34px; min-width: 110px; }
.spark-canvas { width: 100%; height: 34px; display: block; }

.ax-streak-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 11px 0 12px; }
.streak-cell {
    background: rgba(6, 9, 19, 0.65);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 7px 2px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.streak-cell .sc-day { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; color: var(--ink-muted); }
.streak-cell .sc-rw  { font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; color: #e2e8f0; }
.streak-cell.is-claimed { background: var(--emerald-soft); border-color: rgba(16, 185, 129, 0.35); }
.streak-cell.is-claimed .sc-rw { color: #34d399; }
.streak-cell.is-today { background: var(--grad-ai); border-color: transparent; }
.streak-cell.is-today .sc-day, .streak-cell.is-today .sc-rw { color: #ffffff; }

/* ============================================================================
 * 5. 100% NEW WALLET VIEW — HOLOGRAPHIC TON CARD + INTERACTIVE RANGE SLIDER
 * ============================================================================ */
.ax-holo-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 18px 16px 16px;
    margin-bottom: 12px;
    background:
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.28) 0%, transparent 46%),
        radial-gradient(circle at 12% 90%, rgba(139, 92, 246, 0.28) 0%, transparent 50%),
        linear-gradient(135deg, #0f1b3d 0%, #111633 55%, #090d1f 100%);
    border: 1px solid rgba(56, 189, 248, 0.34);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.ax-holo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ax-card-chip {
    width: 34px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(139, 92, 246, 0.25));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ax-holo-addr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(6, 9, 19, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.10);
    margin-top: 12px;
}
.ax-sync-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
    color: var(--cyan);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Sharp Underline Folder Tabs (Completely Different from AUX Rounded Pills!) */
.ax-underline-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.ax-utab {
    height: 40px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.ax-utab.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
}

/* Inline Security Alert Banner */
.ax-verify-alert {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.28);
    margin-bottom: 12px;
}

/* Pro Exchange Order Ticket + Interactive Glowing Range Slider */
.ax-order-bal-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.ax-bal-mini {
    background: rgba(6, 9, 19, 0.65);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}
.ax-bal-mini span { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-muted); text-transform: uppercase; }
.ax-bal-mini b    { display: block; font-family: var(--font-mono); font-size: 14px; color: #ffffff; margin-top: 3px; }

.ax-order-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(6, 9, 19, 0.78);
    border: 1.5px solid var(--border-hi);
    margin-bottom: 10px;
}
.ax-order-input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
}
.ax-order-unit {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.12);
    padding: 5px 10px;
    border-radius: 7px;
    flex-shrink: 0;
}

/* Interactive Cobalt-Cyan Payout Range Slider */
.ax-slider-wrap {
    margin: 4px 0 12px;
}
.ax-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.18);
    outline: none;
    margin-bottom: 8px;
}
.ax-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cyan);
    border: 3px solid #0b1122;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
    cursor: pointer;
}
.ax-slider-ticks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.ax-tick-btn {
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: rgba(6, 9, 19, 0.55);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
}
.ax-tick-btn.is-max { border-color: rgba(34, 211, 238, 0.45); color: var(--cyan); }

/* Monospace Receipt Summary Table */
.ax-receipt-table {
    background: rgba(6, 9, 19, 0.72);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 12px;
    margin-bottom: 13px;
}
.ax-rc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
}
.ax-rc-row + .ax-rc-row { border-top: 1px dashed rgba(148, 163, 184, 0.14); }
.ax-rc-row b { color: #f8fafc; font-weight: 700; }

/* ============================================================================
 * 6. 100% NEW NETWORK / CREW VIEW — RADIAL RANK RING + TERMINAL COMMAND BOX
 * ============================================================================ */
.ax-rank-split {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
}
.ax-rank-ring-box {
    position: relative;
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ax-rank-ring-svg { width: 82px; height: 82px; transform: rotate(-90deg); }
.ax-rank-ring-bg  { fill: none; stroke: rgba(148, 163, 184, 0.15); stroke-width: 7; }
.ax-rank-ring-fg  { fill: none; stroke: url(#apexRingGrad); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 0.4s ease; }
.ax-rank-ring-val {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: var(--cyan);
}

.ax-cmd-copy-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #050814;
    border: 1px solid rgba(56, 189, 248, 0.28);
    margin-bottom: 12px;
    cursor: pointer;
}
.ax-cmd-prefix { font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--cyan); }
.ax-cmd-copy-box code { flex: 1; font-size: 11.5px; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-cmd-copy-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 800; color: #060913; background: var(--cyan); padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }

/* 4-Tile Colored Top-Accent Metric Ribbon */
.ax-metric-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}
.ax-m-tile {
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 2.5px solid var(--cobalt);
    border-radius: 11px;
    padding: 9px 5px;
    text-align: center;
}
.ax-m-tile.is-cyan    { border-top-color: var(--cyan); }
.ax-m-tile.is-emerald { border-top-color: var(--emerald); }
.ax-m-tile.is-violet  { border-top-color: var(--violet); }
.ax-m-tile span { display: block; font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-muted); text-transform: uppercase; }
.ax-m-tile b    { display: block; font-family: var(--font-mono); font-size: 12px; color: #ffffff; margin-top: 3px; }

/* ============================================================================
 * 7. 100% NEW QUESTS VIEW — AI PROMPT TERMINAL + LEFT-STRIPE MISSION FEED
 * ============================================================================ */
.ax-prompt-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border-radius: 13px;
    background: #050814;
    border: 1px solid rgba(99, 102, 241, 0.35);
    margin-bottom: 12px;
}
.ax-prompt-input {
    flex: 1;
    height: 36px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
}
.ax-prompt-run {
    height: 36px;
    padding: 0 15px;
    border: none;
    border-radius: 9px;
    background: var(--grad-ai);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.orx-tasks-list { display: flex; flex-direction: column; gap: 9px; }
.orx-task-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: 13px;
}
.orx-task-card.is-claimed-card { opacity: 0.55; border-left-color: var(--emerald); }
.orx-task-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.24);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.orx-task-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orx-task-body { flex: 1; min-width: 0; }
.orx-task-title { font-size: 13px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.orx-task-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.orx-task-reward { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--cyan); }
.orx-task-tag { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-muted); }
.orx-task-spots { margin-top: 5px; }
.orx-task-spots-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-muted); margin-bottom: 3px; }
.orx-task-spots-track { height: 3.5px; background: rgba(148, 163, 184, 0.14); border-radius: 99px; overflow: hidden; }
.orx-task-spots-fill { height: 100%; background: var(--grad-cyan); border-radius: 99px; }
.orx-task-cta {
    flex-shrink: 0;
    min-width: 72px;
    height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: 9px;
    background: var(--grad-ai);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.orx-task-cta.is-ready-claim { background: var(--grad-cyan); color: #060913; }
.orx-task-cta.is-waiting { background: var(--panel-2); color: var(--ink-muted); }
.orx-task-cta.is-done { background: var(--emerald-soft); color: #34d399; cursor: default; }

/* ============================================================================
 * 8. SWAP, MARKET, AI NODES, SUPPORT & MODALS (DARK CYBER COHESION)
 * ============================================================================ */
.ax-swap-box { background: rgba(6, 9, 19, 0.72); border: 1px solid var(--border); border-radius: 14px; padding: 13px; margin-bottom: 10px; }
.swap-input { width: 100%; background: transparent; border: none; color: #ffffff; font-family: var(--font-mono); font-size: 24px; font-weight: 700; outline: none; }
.swap-out   { font-family: var(--font-mono); font-size: 22px; font-weight: 800; color: var(--cyan); }
.coin-chip { font-family: var(--font-mono); font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: var(--grad-ai); color: #ffffff; flex-shrink: 0; }
.coin-chip.is-ton { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.35); color: var(--cyan); }
.preset-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.preset-btn { height: 32px; border-radius: 8px; border: 1px solid var(--border); background: rgba(6, 9, 19, 0.55); color: var(--ink-2); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; cursor: pointer; }
.preset-btn.active { background: var(--grad-ai); border-color: transparent; color: #ffffff; }

.mkt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tf-group, .mode-group { display: inline-flex; align-items: center; background: rgba(6, 9, 19, 0.65); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.tf-pill, .mode-pill { border: none; background: transparent; color: var(--ink-muted); font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.tf-pill.active, .mode-pill.active { background: var(--grad-ai); color: #ffffff; }
.chart-canvas-wrap { width: 100%; height: 210px; position: relative; touch-action: none; }
.chart-canvas { width: 100%; height: 210px; background: #050814; border: 1px solid var(--border); border-radius: 13px; display: block; cursor: crosshair; }

.list-item-row, .kv-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(6, 9, 19, 0.62);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 7px;
    font-size: 12px;
}
.kv-lbl { color: var(--ink-muted); font-weight: 600; }
.copy-action-link { color: var(--cyan); font-weight: 700; cursor: pointer; }

.server-blade-running { background: rgba(6, 9, 19, 0.65); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 9px; }
.blade-running-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blade-serial-tag { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--cyan); background: rgba(34, 211, 238, 0.12); padding: 2px 7px; border-radius: 6px; margin-bottom: 3px; }
.blade-pulse-bar { height: 3.5px; width: 100%; background: rgba(148, 163, 184, 0.14); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.blade-pulse-fill { height: 100%; width: 100%; background: var(--grad-cyan); border-radius: 99px; }

.nft-thumb-square { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.blueprint-tier-card { background: rgba(6, 9, 19, 0.58); border: 1px solid var(--border); border-radius: 16px; padding: 13px; margin-bottom: 10px; }
.nft-artwork-showcase { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nft-hero-artwork { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.nft-artwork-meta { min-width: 0; flex: 1; }
.nft-edition-tag { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: #ffffff; background: var(--grad-ai); padding: 2px 7px; border-radius: 6px; margin-bottom: 3px; }
.nft-card-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: #ffffff; }
.nft-card-sub { font-size: 10.5px; color: var(--ink-muted); margin-top: 2px; }
.bp-roi-pill { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; color: #34d399; background: var(--emerald-soft); padding: 2px 7px; border-radius: 6px; }
.bp-power-meter { margin-bottom: 10px; }
.bp-power-top { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: var(--ink-muted); margin-bottom: 4px; }
.bp-power-track { width: 100%; height: 4px; border-radius: 99px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.bp-power-fill { height: 100%; border-radius: 99px; background: var(--grad-cyan); }
.stats-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.stat-mini-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 7px 4px; text-align: center; }
.stat-mini-lbl { font-size: 9px; font-weight: 700; color: var(--ink-muted); }
.stat-mini-val { font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: #ffffff; margin-top: 2px; }

.partner-cta-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn-qr { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-hi); background: var(--panel-2); color: var(--cyan); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.qr-frame { width: 206px; height: 206px; margin: 0 auto; padding: 10px; border-radius: 16px; background: #ffffff; display: flex; align-items: center; justify-content: center; }
.qr-frame img { width: 100%; height: 100%; border-radius: 8px; display: block; }
.social-pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-pill-btn { flex: 1; min-width: 96px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: rgba(6, 9, 19, 0.65); color: #ffffff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }

/* Support Chat */
.sup-messages-area { height: 310px; overflow-y: auto; background: #050814; border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.sup-msg-row { display: flex; width: 100%; }
.sup-msg-row.is-user  { justify-content: flex-end; }
.sup-msg-row.is-admin { justify-content: flex-start; }
.sup-bubble { max-width: 82%; padding: 9px 12px; border-radius: 13px; font-size: 12.5px; line-height: 1.45; word-break: break-word; }
.sup-msg-row.is-user .sup-bubble { background: var(--grad-ai); color: #ffffff; border-bottom-right-radius: 4px; }
.sup-msg-row.is-admin .sup-bubble { background: var(--panel); border: 1px solid var(--border); color: #f8fafc; border-bottom-left-radius: 4px; }
.sup-sender-tag { font-size: 9px; font-weight: 800; color: var(--cyan); margin-bottom: 2px; }
.sup-msg-time { font-size: 9px; opacity: 0.65; text-align: right; margin-top: 3px; }
.sup-quick-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; }
.sup-q-chip { border: 1px solid var(--border); background: var(--panel); color: var(--ink-2); font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 8px; white-space: nowrap; cursor: pointer; }
.sup-input-bar { display: flex; align-items: center; gap: 8px; }
.sup-text-input { flex: 1; height: 42px; background: #050814; border: 1px solid var(--border-hi); border-radius: 11px; padding: 0 13px; color: #ffffff; font-size: 13px; outline: none; }
.sup-send-btn { width: 42px; height: 42px; border: none; border-radius: 11px; background: var(--grad-ai); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 800; font-size: 16px; }

/* Modals */
.sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(3, 6, 16, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.sheet-backdrop.active { display: flex; }
.sheet-card {
    width: 100%;
    max-width: 392px;
    background: var(--panel);
    border: 1px solid var(--border-hi);
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    color: #ffffff;
}
.sheet-icon { width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.sheet-icon.is-blue  { background: var(--grad-ai); color: #ffffff; }
.sheet-icon.is-green { background: var(--emerald-soft); color: #34d399; }
.sheet-icon.is-red   { background: var(--danger-soft); color: #fb7185; }
.sheet-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: #ffffff; margin-bottom: 6px; }
.sheet-desc  { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 14px; }
.sheet-tag   { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--cyan); background: rgba(34, 211, 238, 0.12); padding: 4px 11px; border-radius: 7px; margin-bottom: 14px; }
.icon-close-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: rgba(6, 9, 19, 0.65); color: #ffffff; font-size: 12px; font-weight: 700; cursor: pointer; }
.sheet-banner-img { margin-bottom: 12px; border-radius: 14px; overflow: hidden; }
.sheet-banner-img img { width: 100%; max-height: 180px; object-fit: cover; display: block; }

.apex-sp-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; margin-bottom: 14px; }
.apex-sp-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(6, 9, 19, 0.65); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; }
.apex-sp-card.is-joined { background: var(--emerald-soft); border-color: rgba(16, 185, 129, 0.30); }
.apex-sp-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.apex-sp-avatar-wrap { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.apex-sp-avatar, .apex-sp-avatar-fallback { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--grad-ai); color: #ffffff; display: flex; align-items: center; justify-content: center; }
.apex-sp-status-dot { position: absolute; bottom: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); border: 2px solid var(--panel); }
.apex-sp-status-dot.is-ok { background: var(--emerald); }
.apex-sp-meta { min-width: 0; }
.apex-sp-title { font-size: 12.5px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apex-sp-sub { font-size: 10.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apex-sp-join-btn { height: 30px; padding: 0 12px; border: none; border-radius: 8px; background: var(--grad-ai); color: #ffffff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; flex-shrink: 0; }
.apex-sp-verified-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #34d399; background: rgba(6, 9, 19, 0.65); padding: 4px 9px; border-radius: 7px; flex-shrink: 0; }

.search-field { display: flex; align-items: center; gap: 8px; background: #050814; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.search-field input { width: 100%; background: transparent; border: none; color: #ffffff; font-size: 13px; outline: none; }
.lang-list-scroll { max-height: 290px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.lang-item-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: rgba(6, 9, 19, 0.65); border: 1px solid var(--border); cursor: pointer; }
.lang-item-row.is-active { background: var(--grad-ai); border-color: transparent; }
.lang-code-pill { font-family: var(--font-mono); font-size: 10px; font-weight: 800; color: var(--cyan); background: rgba(34, 211, 238, 0.14); padding: 2px 7px; border-radius: 6px; }

/* ============================================================================
 * 9. 100% NEW ASYMMETRIC SPLIT-ACTION CYBER BOTTOM DOCK
 *    Left: 4 Sharp Underline Rail Tabs | Right: Glowing Cobalt "PLINKO ▶" Key
 * ============================================================================ */
.tabbar-wrap {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: rgba(8, 13, 28, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(56, 189, 248, 0.20);
    padding: 7px 12px max(9px, env(safe-area-inset-bottom));
}
.tabbar-inner {
    max-width: 444px;
    margin: 0 auto;
}
.tabbar-track {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 102px;
    gap: 5px;
    align-items: center;
}
.tabbar-indicator { display: none; }
.tabbar-btn {
    position: relative;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease;
}
.tabbar-btn svg { width: 18px; height: 18px; }
.tabbar-btn.active {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.10);
}
.tabbar-btn.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 2px;
    border-radius: 99px;
    background: var(--cyan);
}

/* Right-Anchored Rectangular Glowing PLINKO Action Key */
.tabbar-btn.is-plinko-key {
    flex-direction: row;
    gap: 6px;
    height: 44px;
    padding: 0 11px;
    border-radius: 11px;
    background: var(--grad-ai);
    color: #ffffff !important;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.tabbar-btn.is-plinko-key::before { display: none !important; }
.tabbar-btn.is-plinko-key.active {
    background: var(--grad-cyan);
    color: #060913 !important;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.55);
}
.tabbar-btn.is-plinko-key svg { width: 16px; height: 16px; }

.dock-badge-dot {
    position: absolute;
    top: 3px;
    right: calc(50% - 16px);
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 5px;
    background: var(--cyan);
    color: #060913;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    pointer-events: none;
}

/* ============================================================================
 * 10. QUANTUM PLINKO CABINET STYLES & TOAST
 * ============================================================================ */
.ax-plinko-cabinet {
    background:
        radial-gradient(ellipse 90% 50% at 50% 0%, rgba(56, 189, 248, 0.16) 0%, transparent 62%),
        linear-gradient(160deg, #0e1736 0%, #070b1e 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.55);
}
.ax-plinko-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ax-plinko-eyebrow { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.10em; color: var(--cyan); }
.ax-plinko-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #ffffff; margin-top: 2px; }
.ax-plinko-hud-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ax-plinko-credits { font-size: 10.5px; font-weight: 700; color: #ffffff; background: var(--grad-ai); padding: 4px 10px; border-radius: 8px; }
.ax-speed-toggle { display: inline-flex; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
.ax-spd-btn { border: none; background: transparent; color: var(--ink-muted); font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.ax-spd-btn.active { background: var(--cyan); color: #060913; }

.ax-plinko-canvas-shell { position: relative; width: 100%; height: 248px; background: #040712; border: 1px solid rgba(56, 189, 248, 0.18); border-radius: 14px 14px 8px 8px; overflow: hidden; }
.ax-plinko-canvas { width: 100%; height: 248px; display: block; }
.ax-plinko-win-banner {
    position: absolute; left: 50%; top: 48%;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0; pointer-events: none;
    background: rgba(6, 9, 19, 0.94); border: 1.5px solid var(--cyan); border-radius: 14px;
    padding: 10px 18px; text-align: center;
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.35);
    transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1); z-index: 5;
}
.ax-plinko-win-banner.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ax-plinko-win-banner .wp-tier { display: block; font-family: var(--font-mono); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 2px; }
.ax-plinko-win-banner b { font-size: 20px; font-weight: 800; color: #ffffff; }

.ax-plinko-buckets { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 6px 0 12px; }
.ax-bucket { border-radius: 8px; padding: 7px 2px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid var(--border); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.ax-bucket span  { font-size: 10.5px; font-weight: 800; color: #ffffff; line-height: 1.1; }
.ax-bucket small { font-family: var(--font-mono); font-size: 7.5px; font-weight: 700; opacity: 0.78; }
.ax-bucket.is-jackpot { background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%); border-color: rgba(196, 181, 253, 0.45); }
.ax-bucket.is-high    { background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%); border-color: rgba(147, 197, 253, 0.40); }
.ax-bucket.is-mid     { background: rgba(34, 211, 238, 0.16); border-color: rgba(34, 211, 238, 0.28); }
.ax-bucket.is-base    { background: rgba(255, 255, 255, 0.06); }
.ax-bucket.is-hit     { transform: translateY(-4px) scale(1.08); background: var(--grad-cyan) !important; border-color: #ffffff !important; box-shadow: 0 0 18px rgba(34, 211, 238, 0.72); }
.ax-plinko-subnote { text-align: center; font-size: 11px; color: var(--ink-muted); margin-bottom: 11px; }

#toastBanner {
    display: none;
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: #0e162b;
    border: 1px solid var(--cyan);
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    z-index: 9999;
    max-width: 92%;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}
.empty-list-msg { text-align: center; font-size: 12px; color: var(--ink-muted); padding: 16px 8px; }
.field-box { background: rgba(6, 9, 19, 0.65); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.field-top-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-muted); margin-bottom: 4px; }
.kv-lbl-primary { color: var(--cyan); font-weight: 700; }
.kv-val-primary { color: var(--cyan); font-weight: 800; }
.kv-strip.highlight { background: rgba(34, 211, 238, 0.10); border-color: rgba(34, 211, 238, 0.28); }
