/* ============================================================
   CST CRYPTO — Dual-Theme Operator Dashboard
   Theme follows the "exchange in control" set by app.js.
     data-theme="cryptocom" → Midnight Aurora (navy + cyan)
     data-theme="binance"   → Golden Forest (dark + gold)
   Unmapped exchanges fall back to cryptocom.
   ============================================================ */

:root,
html[data-theme="cryptocom"] {
    /* ============================================================
       THEME · Crypto.com — Midnight Aurora
       Deep navy night-sky with cyan aurora ribbons.
       ============================================================ */

    --bg-0: #020617;
    --bg-1: #050c26;
    --bg-2: #0a153e;

    /* Panels: cool navy with a soft blue tint, a touch see-through. */
    --panel:         rgba(9, 20, 48, 0.86);
    --panel-strong:  rgba(6, 16, 40, 0.92);
    --panel-solid:   rgba(4, 12, 32, 0.96);

    /* ── Crypto.com brand blue + cyan aurora accents ─────────── */
    --gold:          #1199fa;  /* "primary" brand hue, aliased as --gold so existing rules remap cleanly */
    --gold-mid:      #2fb0ff;
    --gold-bright:   #7fd4ff;
    --gold-light:    #aee5ff;
    --gold-dim:      #0d6dbc;
    --gold-pale:     rgba(17, 153, 250, 0.10);
    --gold-glow:     rgba(0, 231, 252, 0.28);
    --gold-border:   rgba(127, 212, 255, 0.30);

    /* ── Electric cyan accent (secondary) ────────────────────── */
    --teal:          #00e7fc;
    --teal-mid:      #21c3e8;
    --teal-deep:     #065e78;
    --teal-faint:    rgba(0, 231, 252, 0.16);
    --teal-glow:     rgba(0, 231, 252, 0.38);

    --line:          rgba(127, 212, 255, 0.24);
    --line-strong:   rgba(127, 212, 255, 0.48);
    --line-inner:    rgba(127, 212, 255, 0.12);

    --emerald:       #3df1b6;
    --emerald-soft:  rgba(61, 241, 182, 0.14);
    --danger:        #ff5f7a;
    --danger-soft:   rgba(255, 95, 122, 0.14);
    --warning:       #ffc163;
    --success:       #3df1b6;

    --text:          #e6f1ff;
    --text-soft:     #9fc0e6;
    --text-dim:      #5c7aa0;
    --text-faint:    #35486a;

    /* RGB triplets for alpha composition in legacy rules. */
    --gold-rgb:      17, 153, 250;
    --gold-bright-rgb: 127, 212, 255;
    --teal-rgb:      0, 231, 252;
    --emerald-rgb:   61, 241, 182;
    --danger-rgb:    255, 95, 122;
    --panel-rgb:     9, 20, 48;
}

html[data-theme="binance"] {
    /* ============================================================
       THEME · Binance — Golden Forest
       Dark forest base with warm gold and teal rays.
       ============================================================ */

    --bg-0: #020806;
    --bg-1: #04110d;
    --bg-2: #071a15;

    --panel:         rgba(6, 18, 13, 0.86);
    --panel-strong:  rgba(5, 15, 11, 0.90);
    --panel-solid:   rgba(4, 12, 9, 0.94);

    --gold:          #c9a34a;
    --gold-mid:      #d8b65a;
    --gold-bright:   #f3d98a;
    --gold-light:    #f2c94c;
    --gold-dim:      #9b7d1b;
    --gold-pale:     rgba(var(--gold-rgb), 0.10);
    --gold-glow:     rgba(var(--gold-rgb), 0.22);
    --gold-border:   rgba(var(--gold-rgb), 0.28);

    --teal:          #5ee2d6;
    --teal-mid:      #2dc4b8;
    --teal-deep:     #0e6b64;
    --teal-faint:    rgba(var(--teal-rgb), 0.16);
    --teal-glow:     rgba(var(--teal-rgb), 0.38);

    --line:          rgba(var(--gold-rgb), 0.26);
    --line-strong:   rgba(var(--gold-rgb), 0.48);
    --line-inner:    rgba(var(--gold-rgb), 0.14);

    --emerald:       #27d68a;
    --emerald-soft:  rgba(var(--emerald-rgb), 0.14);
    --danger:        #ff6b72;
    --danger-soft:   rgba(var(--danger-rgb), 0.14);
    --warning:       #ffb74d;
    --success:       #27d68a;

    --text:          #f2e6c2;
    --text-soft:     #cdbd8a;
    --text-dim:      #8d7d52;
    --text-faint:    #5d5235;

    /* RGB triplets for alpha composition in legacy rules. */
    --gold-rgb:      215, 177, 74;
    --gold-bright-rgb: 243, 217, 138;
    --teal-rgb:      94, 226, 214;
    --emerald-rgb:   39, 214, 138;
    --danger-rgb:    255, 107, 114;
    --panel-rgb:     6, 18, 13;
}

:root {

    /* ── Radii / shadows ─────────────────────────────────────── */
    --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.65), 0 12px 30px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.55);
    --shadow-inner-gold: inset 0 1px 0 rgba(var(--gold-bright-rgb), 0.08);
    --panel-glow: 0 0 0 1px rgba(var(--gold-rgb), 0.2), 0 28px 80px rgba(0, 0, 0, 0.55);
    --shadow: var(--shadow-lg);
    --gold-shadow: 0 0 40px rgba(var(--gold-rgb), 0.14);

    /* ── Typography ──────────────────────────────────────────── */
    --display: "Cormorant Garamond", "Trebuchet MS", serif;
    --sans: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
    --mono: "JetBrains Mono", "Courier New", monospace;

    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    /* Corner ornament reused from /premium/assets */
    --corner-size: 120px;

    /* Accent colors used by app.js */
    --accent:      #D4AF37;
    --accent-deep: #9B7D1B;
    --accent-warm: #F2C94C;
}

/* ========================================================================
   Reset
   ======================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
    font-family: var(--sans);
    color: var(--text);
    background-color: var(--bg-0);
    background-attachment: fixed, fixed, fixed, fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    letter-spacing: 0.005em;
}

/* ---- Cryptocom (Midnight Aurora) body atmosphere ---- */
html[data-theme="cryptocom"] body {
    background-image:
        radial-gradient(ellipse 58% 44% at 50% 30%,
            rgba(0, 231, 252, 0.16) 0%,
            rgba(17, 153, 250, 0.08) 35%,
            transparent 75%),
        radial-gradient(ellipse 50% 38% at 50% 60%,
            rgba(154, 91, 255, 0.12) 0%,
            rgba(17, 71, 180, 0.06) 40%,
            transparent 80%),
        radial-gradient(ellipse 90% 62% at 50% 100%,
            rgba(2, 6, 23, 0.95) 0%,
            transparent 70%),
        linear-gradient(180deg, #02061a 0%, #060f2d 38%, #040b24 70%, #01040f 100%);
}

/* ---- Binance (Golden Forest) body atmosphere ---- */
html[data-theme="binance"] body {
    background-image:
        radial-gradient(ellipse 55% 42% at 50% 32%,
            rgba(var(--teal-rgb), 0.18) 0%,
            rgba(45, 196, 184, 0.10) 30%,
            rgba(10, 60, 58, 0.04) 60%,
            transparent 80%),
        radial-gradient(ellipse 45% 55% at 50% 48%,
            rgba(var(--gold-bright-rgb), 0.12) 0%,
            rgba(var(--gold-rgb), 0.04) 45%,
            transparent 78%),
        radial-gradient(ellipse 80% 60% at 50% 100%,
            rgba(3, 20, 17, 0.95) 0%,
            transparent 70%),
        linear-gradient(180deg, #020706 0%, #031410 38%, #020a08 72%, #010503 100%);
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.hidden { display: none !important; }
::selection { background: rgba(var(--gold-rgb), 0.35); color: #fff9e8; }

/* ========================================================================
   Living dark forest — fixed decorative layers
   ======================================================================== */

/* Layer 1: SVG backdrop (theme-specific). */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}
html[data-theme="cryptocom"] body::before {
    background-image: url("./assets/aurora-bg.svg");
    opacity: 0.95;
}
html[data-theme="binance"] body::before {
    background-image: url("./assets/forest-bg.svg");
    opacity: 0.58;
}

/* Layer 2: horizon silhouette pinned to bottom. */
body::after {
    content: "";
    position: fixed;
    left: 50%;
    bottom: -4vh;
    transform: translateX(-50%);
    width: min(2000px, 130vw);
    height: 58vh;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}
html[data-theme="cryptocom"] body::after {
    /* Aurora theme: subtle cyan ground haze instead of forest silhouette */
    background-image: none;
    width: 100%;
    height: 36vh;
    background-image: radial-gradient(ellipse 60% 100% at 50% 100%,
        rgba(0, 231, 252, 0.06) 0%, rgba(17, 71, 180, 0.08) 40%, transparent 80%);
    opacity: 1;
    mix-blend-mode: screen;
    filter: none;
}
html[data-theme="binance"] body::after {
    background-image: url("./assets/forest-horizon.png");
    opacity: 0.28;
    filter: drop-shadow(0 -20px 50px rgba(var(--gold-rgb), 0.18));
    mix-blend-mode: screen;
}

/* Animated teal ray pulse (CSS only, no new image) */
.orb {
    position: fixed;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(60px);
    z-index: 0;
}
.orb-a {
    width: 30rem; height: 30rem;
    top: 8vh; left: -8rem;
    animation: drift 22s ease-in-out infinite;
}
.orb-b {
    width: 34rem; height: 34rem;
    right: -10rem; top: 18rem;
    animation: drift 26s ease-in-out infinite reverse;
}
.orb-c {
    width: 22rem; height: 22rem;
    bottom: 12vh; left: 42%;
    animation: drift 30s ease-in-out infinite 4s;
}

html[data-theme="cryptocom"] .orb-a { background: radial-gradient(circle, rgba(0, 231, 252, 0.22), transparent 70%); }
html[data-theme="cryptocom"] .orb-b { background: radial-gradient(circle, rgba(154, 91, 255, 0.18), transparent 70%); }
html[data-theme="cryptocom"] .orb-c { background: radial-gradient(circle, rgba(17, 153, 250, 0.18), transparent 70%); }

html[data-theme="binance"] .orb-a { background: radial-gradient(circle, rgba(var(--teal-rgb), 0.18), transparent 70%); }
html[data-theme="binance"] .orb-b { background: radial-gradient(circle, rgba(var(--gold-rgb), 0.12), transparent 70%); }
html[data-theme="binance"] .orb-c { background: radial-gradient(circle, rgba(45, 196, 184, 0.10), transparent 70%); }

.grid-noise {
    position: fixed; inset: 0;
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 75%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
html[data-theme="cryptocom"] .grid-noise {
    background-image:
        linear-gradient(rgba(127, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 212, 255, 0.04) 1px, transparent 1px);
}
html[data-theme="binance"] .grid-noise {
    background-image:
        linear-gradient(rgba(var(--gold-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--gold-rgb), 0.02) 1px, transparent 1px);
}

/* Forest-ornament: repurposed to show beautiful hanging branches in the
   Binance theme; on the Crypto.com theme they become abstract light wisps. */
.forest-ornament {
    position: fixed;
    pointer-events: none;
    z-index: 1;
}
.forest-ornament img {
    display: none !important;
}

.forest-ornament-tl { top: -40px; left: -60px; width: clamp(260px, 24vw, 420px); height: clamp(200px, 18vw, 340px); transform: scale(-1, 1); }
.forest-ornament-tr { top: -40px; right: -60px; width: clamp(260px, 24vw, 420px); height: clamp(200px, 18vw, 340px); }
.forest-ornament-br { right: -30px; bottom: 10vh; width: clamp(160px, 16vw, 260px); height: clamp(160px, 16vw, 260px); transform: scale(-1, 1); }

/* Binance: gold hanging branches + curls. */
html[data-theme="binance"] .forest-ornament-tl {
    background: url("./assets/hanging-branch.png") top left / contain no-repeat;
    opacity: 0.38;
    filter: drop-shadow(0 8px 22px rgba(var(--gold-rgb), 0.16));
}
html[data-theme="binance"] .forest-ornament-tr {
    background: url("./assets/hanging-branch.png") top right / contain no-repeat;
    opacity: 0.38;
    filter: drop-shadow(0 8px 22px rgba(var(--gold-rgb), 0.16));
}
html[data-theme="binance"] .forest-ornament-br {
    background: url("./assets/tree-curl.png") right bottom / contain no-repeat;
    opacity: 0.22;
}

/* Crypto.com: cyan aurora wisps instead of tree branches. */
html[data-theme="cryptocom"] .forest-ornament-tl {
    background: radial-gradient(ellipse 70% 80% at 20% 10%,
        rgba(0, 231, 252, 0.25) 0%, rgba(17, 153, 250, 0.12) 30%, transparent 70%);
    filter: blur(22px);
    opacity: 0.9;
    transform: none;
}
html[data-theme="cryptocom"] .forest-ornament-tr {
    background: radial-gradient(ellipse 70% 80% at 80% 10%,
        rgba(154, 91, 255, 0.22) 0%, rgba(17, 153, 250, 0.10) 35%, transparent 75%);
    filter: blur(24px);
    opacity: 0.9;
}
html[data-theme="cryptocom"] .forest-ornament-br {
    background: radial-gradient(ellipse 70% 80% at 85% 90%,
        rgba(0, 231, 252, 0.18) 0%, transparent 75%);
    filter: blur(26px);
    opacity: 0.75;
    transform: none;
}

/* Hide ALL old decorative <img> refs from index-3.html that point to
   missing branch-*.png / blossom-gold.png files. We replaced them with
   CSS backgrounds. */
img[src*="branch-"],
img[src*="blossom-gold"],
img[src*="branch_"],
.card-blossom,
.panel-branch,
.coin-wreath {
    display: none !important;
}

/* ========================================================================
   Typography
   ======================================================================== */
h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
    line-height: 1.1;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 0.98; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.02em; }

.eyebrow,
.panel-kicker,
.metric-label,
.identity-label,
.mini-label {
    font-family: var(--sans);
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.identity-label { margin-bottom: 0.1rem; }

.panel-subtitle,
.auth-copy,
.topbar-copy {
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.94rem;
}

/* ========================================================================
   Z-INDEX SHELL
   ======================================================================== */
.auth-shell,
.dashboard-shell {
    position: relative;
    z-index: 2;
}

.container {
    width: min(1340px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 0 0 32px;
}

/* ========================================================================
   Glass panel + atelier gold frame  (less transparent)
   ======================================================================== */
.glass-panel,
.glass-strip {
    position: relative;
    background:
        linear-gradient(180deg, var(--panel), var(--panel-strong));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-inner-gold);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    isolation: isolate;
}

.glass-panel {
    padding: 22px;
    overflow: hidden;
    animation: panel-rise 0.55s ease both;
}

/* Inner hairline (double-line engraved) */
.glass-panel::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: calc(var(--radius-lg) - 4px);
    border: 1px solid var(--line-inner);
    pointer-events: none;
    z-index: 0;
}

/* Darker vignette so text reads over future floral art */
.glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 90% 75% at 50% 50%,
            rgba(3, 10, 8, 0.55) 0%,
            rgba(3, 10, 8, 0.15) 55%,
            transparent 82%),
        radial-gradient(60% 40% at 8% 0%, rgba(var(--gold-bright-rgb), 0.05), transparent 60%),
        radial-gradient(50% 40% at 100% 100%, rgba(var(--teal-rgb), 0.035), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Content sits above decorative pseudos */
.glass-panel > * { position: relative; z-index: 1; }

/* ── Atelier frame: gold floral corner PNGs painted on border-box ── */
.atelier-frame {
    --corner-tl: url("./assets/corner-tl.png");
    --corner-tr: url("./assets/corner-tr.png");
    --corner-bl: url("./assets/corner-bl.png");
    --corner-br: url("./assets/corner-br.png");
    background-image:
        var(--corner-tl),
        var(--corner-br),
        linear-gradient(180deg, var(--panel), var(--panel-strong));
    background-repeat: no-repeat;
    background-position: 0% 0%, 100% 100%, center;
    background-size:
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        auto;
    background-origin: border-box;
    background-clip: border-box;
}

.atelier-quad {
    background-image:
        var(--corner-tl),
        var(--corner-tr),
        var(--corner-bl),
        var(--corner-br),
        linear-gradient(180deg, var(--panel), var(--panel-strong));
    background-repeat: no-repeat;
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, center;
    background-size:
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        auto;
    background-origin: border-box;
    background-clip: border-box;
}

/* Default: all top-level dashboard panels get gold corners.
   We attach the atelier treatment via the existing .glass-panel class so
   we don't have to modify the HTML. */
.dashboard-shell .glass-panel {
    --corner-size: 115px;
    background-image:
        url("./assets/corner-tl.png"),
        url("./assets/corner-br.png"),
        linear-gradient(180deg, var(--panel), var(--panel-strong));
    background-repeat: no-repeat;
    background-position: 0% 0%, 100% 100%, center;
    background-size: var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        auto;
    background-origin: border-box;
    background-clip: border-box;
}

/* Show all 4 corners on signature panels */
.overview-chart-panel,
.terminal-shell,
.activity-shell,
.market-shell,
.vault-add-panel,
.modal-box {
    --corner-size: 125px !important;
}
.overview-chart-panel,
.terminal-shell,
.activity-shell,
.market-shell,
.vault-add-panel,
.modal-box {
    background-image:
        url("./assets/corner-tl.png"),
        url("./assets/corner-tr.png"),
        url("./assets/corner-bl.png"),
        url("./assets/corner-br.png"),
        linear-gradient(180deg, var(--panel), var(--panel-strong)) !important;
    background-repeat: no-repeat !important;
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, center !important;
    background-size:
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        auto !important;
    padding-bottom: 2.8rem;
}

/* Auth panels: extra-large corners */
.auth-brand-panel,
.auth-card {
    --corner-size: 165px !important;
    background-image:
        url("./assets/corner-tl.png"),
        url("./assets/corner-tr.png"),
        url("./assets/corner-bl.png"),
        url("./assets/corner-br.png"),
        linear-gradient(180deg, var(--panel), var(--panel-strong)) !important;
    background-repeat: no-repeat !important;
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, center !important;
    background-size:
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        var(--corner-size) var(--corner-size),
        auto !important;
    padding: 2.2rem 2.2rem 2.5rem !important;
}

/* Smaller panels don't get gold corner PNGs (keep their own solid bg) */
/* Smaller panels: no gold corner PNGs, subtle even translucent tint —
   a little see-through but noticeably less than the original glass look. */
.dashboard-shell .glass-panel.balance-card,
.dashboard-shell .glass-panel.telemetry-chip,
.dashboard-shell .glass-panel.analysis-card,
.dashboard-shell .glass-panel.data-card,
.dashboard-shell .glass-panel.pulse-card,
.dashboard-shell .glass-panel.list-item,
.dashboard-shell .glass-panel.signal-block,
.dashboard-shell .glass-panel.roadmap-card,
.dashboard-shell .glass-panel.pair-pill,
.dashboard-shell .glass-panel.mini-bot-card,
.dashboard-shell .glass-panel.vault-balance-chip {
    --corner-size: 0px;
    /* Even translucent tint — a little see-through, but top doesn't fade out */
    background-image:
        linear-gradient(180deg, rgba(7, 22, 15, 0.90), rgba(5, 16, 11, 0.92)) !important;
    background-position: center !important;
    background-size: auto !important;
    background-repeat: no-repeat !important;
    background-color: rgba(5, 16, 11, 0.90) !important;
    backdrop-filter: blur(10px) saturate(1.05) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.05) !important;
}

/* ========================================================================
   Top-bar (float)
   ======================================================================== */
.topbar-float {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 18px;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar-logo-mark {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 900;
    color: #1a1205;
    box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.3), inset 0 1px 0 rgba(255,255,255,0.35);
    flex-shrink: 0;
    letter-spacing: 0.06em;
    font-family: var(--display);
}

.topbar-logo-text {
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topbar-logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-top: 4px;
}

.identity-pill {
    min-width: 190px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--gold-rgb), 0.28);
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.07), rgba(0,0,0,0.25));
}
.identity-pill strong {
    display: block;
    margin-top: 4px;
    color: var(--gold-bright);
    font-family: var(--mono);
    font-size: 0.88rem;
}

.btn-sm { padding: 10px 16px; font-size: 0.78rem; }

/* ========================================================================
   Hero logo block — glow behind CST logo
   ======================================================================== */
.hero-logo-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 10px;
    padding: 40px 0 20px;
    pointer-events: none;
    overflow: visible;
    min-height: 280px;
}

/* Glow behind the logo (the "light shines from behind" effect).
   Each theme paints its own glow color. */
.hero-logo-block::before {
    content: "";
    position: absolute;
    left: 50%; top: 48%;
    width: clamp(420px, 48vw, 720px);
    height: clamp(420px, 48vw, 720px);
    transform: translate(-50%, -50%);
    filter: blur(6px);
    opacity: 1;
    animation: glow-pulse 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}
html[data-theme="binance"] .hero-logo-block::before {
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(180, 248, 236, 0.50) 6%,
            rgba(120, 232, 220, 0.40) 16%,
            rgba(var(--teal-rgb), 0.28) 26%,
            rgba(var(--gold-bright-rgb), 0.18) 42%,
            rgba(var(--gold-rgb), 0.06) 58%,
            transparent 78%);
}
html[data-theme="cryptocom"] .hero-logo-block::before {
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 255, 255, 0.48) 0%,
            rgba(170, 230, 255, 0.55) 8%,
            rgba(0, 231, 252, 0.40) 20%,
            rgba(17, 153, 250, 0.28) 34%,
            rgba(154, 91, 255, 0.14) 52%,
            transparent 78%);
}

/* Decorative frame around the logo — theme-specific.
   Binance: twin gold trees arching around the wreath.
   Crypto.com: thin concentric cyan rings + geometric tick marks. */
.hero-logo-block::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}
html[data-theme="binance"] .hero-logo-block::after {
    width: clamp(640px, 68vw, 1040px);
    height: clamp(360px, 38vw, 580px);
    background: url("./assets/tree-arch-hero.png") center top / contain no-repeat;
    opacity: 0.82;
    filter: drop-shadow(0 18px 38px rgba(8, 24, 16, 0.55)) saturate(1.06);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0,0,0,0.35) 92%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0,0,0,0.35) 92%, transparent 100%);
}
html[data-theme="cryptocom"] .hero-logo-block::after {
    width: clamp(420px, 46vw, 640px);
    height: clamp(420px, 46vw, 640px);
    border-radius: 50%;
    background:
        /* Inner crisp ring */
        radial-gradient(circle, transparent 42%, rgba(0, 231, 252, 0.55) 42.4%, rgba(0, 231, 252, 0.55) 42.8%, transparent 43%),
        /* Mid dashed-feel ring via conic mask */
        radial-gradient(circle, transparent 48%, rgba(127, 212, 255, 0.30) 48.2%, rgba(127, 212, 255, 0.30) 49%, transparent 49.2%),
        /* Outer broad ring */
        radial-gradient(circle, transparent 56%, rgba(17, 153, 250, 0.22) 56.4%, rgba(17, 153, 250, 0.22) 57%, transparent 57.4%);
    filter: drop-shadow(0 0 24px rgba(0, 231, 252, 0.35));
    animation: ring-spin 32s linear infinite;
}

@keyframes ring-spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Theme-specific ground haze under the hero. */
html[data-theme="binance"] .hero-logo-block {
    background:
        radial-gradient(ellipse 70% 28% at 50% 100%,
            rgba(2, 10, 7, 0.85) 0%,
            rgba(2, 10, 7, 0.55) 35%,
            rgba(2, 10, 7, 0.18) 65%,
            transparent 90%);
    background-repeat: no-repeat;
    background-size: 100% 160px;
    background-position: center 100%;
}
html[data-theme="cryptocom"] .hero-logo-block {
    background:
        radial-gradient(ellipse 65% 26% at 50% 100%,
            rgba(2, 6, 23, 0.75) 0%,
            rgba(2, 6, 23, 0.40) 45%,
            transparent 90%);
    background-repeat: no-repeat;
    background-size: 100% 140px;
    background-position: center 100%;
}

.hero-logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-cst-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    display: block;
    animation: logo-float 7s ease-in-out infinite;
}
html[data-theme="binance"] .hero-cst-logo {
    filter:
        drop-shadow(0 0 38px rgba(var(--teal-rgb), 0.55))
        drop-shadow(0 8px 36px rgba(var(--gold-rgb), 0.45));
}
html[data-theme="cryptocom"] .hero-cst-logo {
    width: 178px;
    height: 208px;
    margin-bottom: 14px;
    object-fit: contain;
    animation: logo-float 7s ease-in-out infinite;
    filter:
        drop-shadow(0 0 42px rgba(0, 231, 252, 0.60))
        drop-shadow(0 8px 36px rgba(17, 153, 250, 0.45));
}
html[data-theme="cryptocom"] .hero-brand-text { margin-top: 18px; }
html[data-theme="cryptocom"] .brand-mark-img,
html[data-theme="cryptocom"] .mini-bot-icon img,
html[data-theme="cryptocom"] .coin-icon-frame img[alt="C" i],
html[data-theme="cryptocom"] img[src*="cst-cryptocom-logo"] {
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
}

.hero-brand-text {
    font-family: var(--display);
    font-size: 0.85rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-top: 10px;
    font-weight: 600;
    text-shadow: 0 0 18px rgba(var(--teal-rgb), 0.35), 0 2px 8px rgba(0,0,0,0.6);
}

/* ========================================================================
   Auth screen
   ======================================================================== */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

.auth-stage {
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 22px;
    align-items: stretch;
}

.auth-brand-panel,
.auth-card { min-height: 560px; }

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.auth-brand-panel h1 {
    font-family: var(--display);
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    margin: 0.6rem 0 0.8rem;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.015em;
}

.auth-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 1.8rem;
}

.mini-stat {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.08), rgba(var(--gold-rgb), 0.02));
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mini-stat strong {
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.92rem;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card h2 {
    font-size: 2rem;
    margin: 0.4rem 0 0.4rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 1.2rem;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ========================================================================
   Inputs / Selects
   ======================================================================== */
input, select, textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.32));
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}
input::placeholder { color: var(--text-faint); }

select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1l6 6 6-6' stroke='%23d8b65a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"),
        linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.32));
    background-repeat: no-repeat, no-repeat;
    background-position: calc(100% - 12px) 50%, center;
    background-size: 11px auto, auto;
    padding-right: 2.1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

input:hover, select:hover {
    border-color: rgba(var(--gold-rgb), 0.42);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.14);
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.04), rgba(0, 0, 0, 0.3));
}
input:disabled, select:disabled { opacity: 0.45; cursor: not-allowed; }
select option { background: #050f0b; color: var(--text); }

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid var(--line-strong);
    background: rgba(var(--gold-rgb), 0.06);
    color: var(--text);
    border-radius: 999px;
    padding: 0.82rem 1.3rem;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--sans);
    transition: transform 150ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
    white-space: nowrap;
}
.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--gold);
    box-shadow: 0 10px 22px rgba(0,0,0,0.4), 0 0 0 3px rgba(var(--gold-rgb), 0.08);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #1a1205;
    border-color: rgba(var(--gold-bright-rgb), 0.6);
    box-shadow: 0 10px 24px rgba(var(--gold-rgb), 0.26), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover:not(:disabled) {
    box-shadow: 0 16px 36px rgba(var(--gold-rgb), 0.42), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-secondary {
    background: rgba(var(--gold-rgb), 0.07);
    color: var(--text-soft);
    border-color: var(--line-strong);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(var(--gold-rgb), 0.14);
    color: var(--text);
    border-color: var(--gold);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(var(--danger-rgb), 0.18), rgba(255, 155, 127, 0.12));
    color: #ffd6d6;
    border-color: rgba(255, 140, 140, 0.38);
}
.btn-danger:hover:not(:disabled) {
    border-color: var(--danger);
    box-shadow: 0 10px 24px rgba(255, 100, 100, 0.22);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.72rem; }

.text-link {
    margin-top: 16px;
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 700;
    text-align: left;
}

/* ========================================================================
   Alert box
   ======================================================================== */
#alertBox { display: grid; gap: 10px; margin-bottom: 18px; }

.notice {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 0.92rem;
    background: rgba(var(--gold-rgb), 0.06);
    border-color: rgba(var(--gold-rgb), 0.22);
    color: var(--text-soft);
}
.notice-success {
    background: rgba(var(--emerald-rgb), 0.1);
    border-color: rgba(var(--emerald-rgb), 0.28);
    color: #d2ffea;
}
.notice-error {
    background: rgba(var(--danger-rgb), 0.1);
    border-color: rgba(var(--danger-rgb), 0.28);
    color: #ffdde0;
}
.notice-info {
    background: rgba(var(--teal-rgb), 0.08);
    border-color: rgba(var(--teal-rgb), 0.28);
    color: #d5fff9;
}

/* ========================================================================
   Layout grids
   ======================================================================== */
.metric-grid,
.dual-grid,
.workspace-grid,
.form-grid,
.analysis-grid,
.pulse-grid {
    display: grid;
    gap: 16px;
}

.hero-actions,
.hero-tags,
.button-row,
.search-row,
.exchange-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ========================================================================
   Balance strip (4-card hero row)
   ======================================================================== */
.balance-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.balance-card {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    border: 1px solid rgba(var(--gold-rgb), 0.28);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 108px;
    background:
        linear-gradient(150deg, rgba(6, 22, 12, 0.97), rgba(3, 12, 7, 0.95)),
        radial-gradient(circle at 85% 18%, rgba(var(--gold-rgb), 0.12), transparent 34%),
        radial-gradient(circle at 14% 86%, rgba(var(--teal-rgb), 0.07), transparent 34%);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.balance-card::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: calc(var(--radius-lg) - 3px);
    border: 1px solid rgba(var(--gold-rgb), 0.18);
    pointer-events: none;
}
.balance-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--gold-rgb), 0.55);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 32px rgba(var(--teal-rgb), 0.12);
}
.balance-card-total {
    background:
        linear-gradient(150deg, rgba(9, 28, 16, 0.98), rgba(4, 16, 10, 0.96)),
        radial-gradient(circle at 85% 18%, rgba(var(--gold-rgb), 0.18), transparent 36%),
        radial-gradient(circle at 18% 82%, rgba(var(--teal-rgb), 0.10), transparent 38%);
    border-color: rgba(var(--gold-rgb), 0.42);
}

.coin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.coin-icon-frame {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.coin-icon-frame-total { width: 60px; height: 60px; }

.coin-logo {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold-bright);
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--gold-rgb), 0.22), rgba(var(--gold-rgb), 0.04));
    border: 1px solid rgba(var(--gold-rgb), 0.32);
    text-shadow: 0 0 14px rgba(var(--gold-rgb), 0.5);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.08), 0 6px 16px rgba(0, 0, 0, 0.35);
    font-family: var(--display);
}
.coin-logo-total {
    background:
        radial-gradient(circle at 35% 35%, rgba(var(--gold-rgb), 0.28), rgba(var(--teal-rgb), 0.1));
    border-color: rgba(var(--gold-rgb), 0.5);
}

.coin-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--gold-dim);
    font-weight: 700;
    text-transform: uppercase;
}
.coin-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-soft);
    letter-spacing: 0.08em;
    margin-top: 2px;
    font-family: var(--mono);
}

.balance-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.fiat-val {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.crypto-val {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--mono);
    letter-spacing: 0.03em;
}

/* ========================================================================
   Tabs (split layout)
   ======================================================================== */
.tabs-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 8px 0 14px;
    padding: 8px 18px;
    background:
        linear-gradient(90deg, rgba(5, 18, 10, 0.98), rgba(3, 12, 6, 0.96));
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 5;
    box-shadow: inset 0 1px 0 rgba(var(--gold-rgb), 0.08), 0 10px 30px rgba(0,0,0,0.35);
}

.tabs-left, .tabs-right { display: flex; gap: 4px; flex: 1; }
.tabs-left  { justify-content: flex-end; padding-right: 32px; }
.tabs-right { justify-content: flex-start; padding-left: 32px; }

.tabs-center-brand {
    font-family: var(--display);
    font-size: 0.7rem;
    letter-spacing: 0.36em;
    color: var(--gold-bright);
    font-weight: 600;
    padding: 0 20px;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    text-shadow: 0 0 18px rgba(var(--teal-rgb), 0.25);
}

.tab {
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    background: transparent;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 6;
    font-family: var(--sans);
}
.tab:hover { color: var(--text-soft); transform: translateY(-1px); }
.tab.active {
    background: rgba(var(--gold-rgb), 0.15);
    color: var(--gold-bright);
    box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.4), 0 0 12px rgba(var(--teal-rgb), 0.1);
}

.tab-panel { display: grid; gap: 14px; }

/* ========================================================================
   Overview grid
   ======================================================================== */
.overview-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
    gap: 16px;
    align-items: stretch;
}
.overview-side-stack { display: grid; gap: 16px; }
.overview-panel-subtitle { margin-top: 8px; max-width: 52ch; }
.overview-health-panel { margin-top: 4px; }

.profit-chart-wrap {
    position: relative;
    width: 100%;
    height: 340px;
    margin-top: 12px;
    padding: 8px 6px 0;
}
#profitChart {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.dual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { align-items: start; }
.wide-panel { min-height: 100%; }

/* ========================================================================
   Section headings
   ======================================================================== */
.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 1.1rem;
    min-width: 0;
}
.section-heading > div { min-width: 0; }
.section-heading h3 { margin-top: 0.25rem; color: var(--text); }
.section-heading .eyebrow { margin-bottom: 0.35rem; }
.section-heading.compact { margin-bottom: 14px; }

/* ========================================================================
   Analysis cards / pulses / lists
   ======================================================================== */
.analysis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.analysis-card,
.pulse-card,
.list-item,
.signal-block,
.roadmap-card,
.pair-pill,
.stat-row {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--gold-rgb), 0.18);
    background:
        linear-gradient(180deg, rgba(var(--gold-rgb), 0.05), rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    min-width: 0;
}
.analysis-card:hover,
.pulse-card:hover,
.list-item:hover,
.signal-block:hover,
.roadmap-card:hover,
.pair-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--gold-rgb), 0.42);
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.09), rgba(0,0,0,0.28));
}

.analysis-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 110px;
}
.analysis-card span { color: var(--text-dim); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.analysis-card strong { font-size: 1.35rem; color: var(--text); font-family: var(--display); font-weight: 600; }
.analysis-card small { color: var(--text-soft); }

.signal-card {
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.14), rgba(var(--teal-rgb), 0.07));
    border-color: rgba(var(--gold-rgb), 0.35);
}

.pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list-stack, .signal-stack, .roadmap-stack, .stat-stack { display: grid; gap: 10px; }

.pulse-card, .list-item, .signal-block, .roadmap-card, .pair-pill {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pulse-card strong,
.list-item strong,
.signal-block strong,
.roadmap-card strong,
.pair-pill strong { font-size: 1rem; color: var(--text); }

.pulse-card small,
.list-item small,
.signal-block small,
.roadmap-card small,
.pair-pill small { color: var(--text-dim); font-size: 0.82rem; line-height: 1.4; }

.pair-pill {
    background: rgba(3, 12, 6, 0.78);
    cursor: pointer;
}

/* ========================================================================
   Telemetry chips
   ======================================================================== */
.telemetry-strip-embedded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.telemetry-chip {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    background:
        linear-gradient(180deg, rgba(var(--gold-rgb), 0.08), rgba(var(--gold-rgb), 0.02)),
        linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.18));
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 110px;
    justify-content: space-between;
}
.telemetry-chip strong {
    font-size: 1.02rem;
    color: var(--gold-bright);
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.telemetry-chip small {
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.4;
}

.live-dot {
    color: var(--teal) !important;
    text-shadow: 0 0 12px rgba(var(--teal-rgb), 0.6);
    animation: glow-pulse 2.2s ease-in-out infinite;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}
.stat-row span { color: var(--text-soft); font-size: 0.88rem; }
.stat-row strong { color: var(--gold-bright); font-family: var(--mono); }

/* ========================================================================
   Strategy description
   ======================================================================== */
.strategy-desc-box {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    background: linear-gradient(180deg, rgba(5, 16, 10, 0.85), rgba(3, 10, 6, 0.7));
    min-height: 90px;
    display: flex;
    align-items: center;
}
.strategy-desc-box p {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}
.strategy-desc-box p em {
    color: var(--gold);
    font-style: normal;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.stack-form { display: grid; gap: 12px; }
.inline-error {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(var(--danger-rgb), 0.12);
    border: 1px solid rgba(var(--danger-rgb), 0.4);
    color: #fca5a5;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* ========================================================================
   Terminal / Service Health
   ======================================================================== */
.terminal-panel {
    background: linear-gradient(155deg, rgba(2, 8, 5, 0.98), rgba(1, 6, 4, 0.96));
    border: 1px solid rgba(var(--gold-rgb), 0.18);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(var(--gold-rgb), 0.06);
}
.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.86rem;
}
.terminal-output .signal-block {
    background: rgba(0, 0, 0, 0.42);
    border-color: rgba(var(--gold-rgb), 0.14);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.terminal-output .signal-block strong { color: var(--gold-bright); }
.terminal-output .signal-block p { color: var(--text-soft); font-family: var(--mono); }

/* ========================================================================
   Exchange Vault
   ======================================================================== */
.vault-balance-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.vault-balance-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    background: linear-gradient(150deg, rgba(6, 20, 10, 0.96), rgba(3, 12, 7, 0.9));
    position: relative;
    overflow: hidden;
}
.vault-balance-chip-total {
    border-color: rgba(var(--gold-rgb), 0.42);
    background:
        linear-gradient(150deg, rgba(8, 24, 12, 0.98), rgba(4, 14, 8, 0.94)),
        radial-gradient(circle at 90% 20%, rgba(var(--teal-rgb), 0.08), transparent 50%);
}

.vbc-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 900;
    color: var(--gold-bright);
    background: radial-gradient(circle at 30% 30%, rgba(var(--gold-rgb), 0.22), rgba(var(--gold-rgb), 0.04));
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    flex-shrink: 0;
    font-family: var(--display);
}
.vbc-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.vbc-val {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--display);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.exchange-vault-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.exchange-vault-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 120px;
    padding: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--gold-rgb), 0.28);
    background:
        linear-gradient(150deg, rgba(6, 22, 12, 0.98), rgba(3, 12, 7, 0.94));
    overflow: visible;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    animation: panel-rise 0.45s ease both;
    box-shadow: var(--shadow-md);
}
.exchange-vault-card.vault-in-control {
    border-color: rgba(var(--gold-rgb), 0.62);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.32), 0 14px 42px rgba(0,0,0,0.48), 0 0 32px rgba(var(--teal-rgb), 0.12);
}
.exchange-vault-card.vault-disconnected { opacity: 0.55; filter: grayscale(0.3); }

.vault-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 22px;
    min-width: 140px;
    border-right: 1px solid rgba(var(--gold-rgb), 0.18);
}
.vault-exchange-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gold-bright);
    background: radial-gradient(circle at 30% 30%, rgba(var(--gold-rgb), 0.22), rgba(var(--gold-rgb), 0.05));
    border: 1px solid rgba(var(--gold-rgb), 0.35);
    text-shadow: 0 0 12px rgba(var(--gold-rgb), 0.5);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.1), 0 6px 18px rgba(0,0,0,0.36);
    flex-shrink: 0;
    font-family: var(--display);
}

.vault-switch-btn {
    font-size: 0.72rem;
    padding: 8px 12px;
    white-space: nowrap;
    letter-spacing: 0.08em;
}
.vault-switch-btn:disabled {
    background: rgba(var(--gold-rgb), 0.2);
    color: var(--gold-bright);
    border-color: rgba(var(--gold-rgb), 0.45);
    opacity: 1;
}

.vault-not-connected {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-align: center;
}

.vault-info-col {
    flex: 1;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.vault-exchange-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.vault-exchange-title strong { font-size: 1.05rem; color: var(--text); }

.vault-exchange-balance {
    font-size: clamp(1.4rem, 1.8vw, 1.85rem);
    font-family: var(--display);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    margin-top: 4px;
}
.vault-balance-empty {
    background: none;
    -webkit-text-fill-color: var(--text-dim);
    color: var(--text-dim);
}
.vault-exchange-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

.vault-menu-col {
    padding: 14px 18px 14px 0;
    position: relative;
    align-self: flex-start;
}
.vault-dots-btn {
    background: none;
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.06em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vault-dots-btn:hover {
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--text);
    border-color: var(--gold);
}

.vault-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 170px;
    background: linear-gradient(160deg, rgba(6, 22, 12, 0.99), rgba(3, 12, 7, 0.98));
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 40px rgba(0,0,0,0.6);
    z-index: 50;
    overflow: hidden;
    animation: panel-rise 0.2s ease both;
}
.vault-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.88rem;
    color: var(--text-soft);
    transition: background 0.15s;
    cursor: pointer;
}
.vault-menu-item:hover { background: rgba(var(--gold-rgb), 0.1); color: var(--text); }
.vault-menu-danger { color: var(--danger); }
.vault-menu-danger:hover { background: rgba(var(--danger-rgb), 0.1); }

/* ========================================================================
   Mini bots grid (Bot Controls)
   ======================================================================== */
.mini-bots-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    font-weight: 700;
    margin-bottom: 10px;
}
.mini-bots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.mini-bot-card {
    padding: 14px 15px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.05), rgba(0,0,0,0.25));
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.mini-bot-card:hover {
    border-color: rgba(var(--gold-rgb), 0.38);
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.09), rgba(0,0,0,0.3));
}
.mini-bot-card.mini-bot-active {
    border-color: rgba(var(--gold-rgb), 0.5);
    background:
        linear-gradient(150deg, rgba(var(--gold-rgb), 0.12), rgba(var(--teal-rgb), 0.04));
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.2), 0 8px 22px rgba(0,0,0,0.3);
}
.mini-bot-card.mini-bot-offline { opacity: 0.48; pointer-events: none; }

.mini-bot-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mini-bot-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-dim);
}
.mini-bot-status-dot.dot-active { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.mini-bot-status-dot.dot-standby { background: var(--warning); }
.mini-bot-status-dot.dot-offline { background: var(--text-dim); }

.mini-bot-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--gold-bright);
    background: rgba(var(--gold-rgb), 0.1);
    border: 1px solid rgba(var(--gold-rgb), 0.32);
    flex-shrink: 0;
    font-family: var(--display);
}
.mini-bot-name { flex: 1; min-width: 0; }
.mini-bot-name strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-bot-name small {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.mini-bot-stats { display: flex; flex-direction: column; gap: 4px; }
.mini-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}
.mini-stat-row span { color: var(--text-dim); }
.mini-stat-row strong { color: var(--gold-bright); font-size: 0.82rem; font-family: var(--mono); }

.mini-bot-action {
    margin-top: 2px;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.74rem;
    border-radius: var(--radius-sm);
    background: rgba(var(--gold-rgb), 0.1);
    border: 1px solid rgba(var(--gold-rgb), 0.28);
    color: var(--text-soft);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mini-bot-action:hover {
    background: rgba(var(--gold-rgb), 0.2);
    border-color: rgba(var(--gold-rgb), 0.5);
    color: var(--gold-bright);
}
.mini-bot-action.action-primary {
    background: rgba(var(--teal-rgb), 0.12);
    border-color: rgba(var(--teal-rgb), 0.38);
    color: #c3fff9;
}
.mini-bot-action.action-primary:hover {
    background: rgba(var(--teal-rgb), 0.2);
    border-color: rgba(var(--teal-rgb), 0.55);
}

/* ========================================================================
   Gold separator
   ======================================================================== */
.gold-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.45), transparent);
    margin: 18px 0;
}

/* ========================================================================
   Status badges + tone
   ======================================================================== */
.status-badge,
.chip,
.exchange-chip,
.toggle-pill {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    border: 1px solid rgba(var(--gold-rgb), 0.28);
    background: rgba(var(--gold-rgb), 0.08);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-badge.chip-live,
.chip-live {
    background: rgba(var(--teal-rgb), 0.14);
    border-color: rgba(var(--teal-rgb), 0.42);
    color: #d6fff9;
    text-shadow: 0 0 10px rgba(var(--teal-rgb), 0.4);
}
.positive { color: var(--success); }
.negative { color: var(--danger); }
.neutral  { color: var(--text-soft); }

/* ========================================================================
   Tables
   ======================================================================== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 12px 12px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.14);
}
th {
    color: var(--gold);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: var(--sans);
    font-weight: 700;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(var(--gold-rgb), 0.04); }

.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-button {
    border: 1px solid rgba(var(--gold-rgb), 0.28);
    background: rgba(var(--gold-rgb), 0.08);
    color: var(--text-soft);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
}
.inline-button:hover {
    background: rgba(var(--gold-rgb), 0.16);
    border-color: var(--gold);
    color: var(--text);
}

/* ========================================================================
   Empty state
   ======================================================================== */
.empty-state {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(var(--gold-rgb), 0.32);
    color: var(--text-dim);
    text-align: center;
    font-family: var(--display);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.28);
}

/* ========================================================================
   Modal
   ======================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    z-index: 999;
    padding: 24px;
}
.modal-box {
    max-width: 480px;
    width: 100%;
    padding: 30px;
    border-color: rgba(var(--danger-rgb), 0.35);
}

/* ========================================================================
   Scrollbars
   ======================================================================== */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(var(--gold-rgb),0.35), rgba(var(--gold-rgb),0.12));
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--gold-rgb),0.5); }

/* ========================================================================
   Animations
   ======================================================================== */
@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%       { transform: translate3d(1.8rem, -1rem, 0) scale(1.06); }
}
@keyframes panel-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.75; }
    50%       { opacity: 1; }
}
@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
@keyframes ray-pulse {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 0.8; }
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1180px) {
    .balance-strip       { grid-template-columns: repeat(2, 1fr); }
    .vault-balance-bar   { grid-template-columns: repeat(2, 1fr); }
    .analysis-grid       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-command-grid { grid-template-columns: 1fr; }
    .overview-side-stack   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .auth-stage,
    .dual-grid,
    .workspace-grid      { grid-template-columns: 1fr; }
    .overview-side-stack { grid-template-columns: 1fr; }
    .telemetry-strip-embedded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tabs-split { flex-wrap: wrap; }
    .tabs-center-brand { order: -1; width: 100%; padding: 4px 0 8px; }
    .tabs-left, .tabs-right { flex-wrap: wrap; padding: 0; justify-content: center; }
    .forest-ornament-tl, .forest-ornament-br { display: none; }
    .hero-logo-block::after { width: 95vw; }
}
@media (max-width: 720px) {
    .container { width: calc(100vw - 20px); padding-top: 12px; padding-bottom: 32px; }
    .glass-panel { padding: 18px; border-radius: var(--radius-md); }
    .balance-strip,
    .vault-balance-bar,
    .analysis-grid,
    .pulse-grid,
    .auth-feature-list   { grid-template-columns: repeat(2, 1fr); }
    .mini-bots-grid      { grid-template-columns: 1fr; }
    .hero-cst-logo       { width: 168px; height: 168px; }
    .profit-chart-wrap   { height: 260px; padding: 4px 0 0; }
    .telemetry-strip-embedded { grid-template-columns: 1fr; }
    .telemetry-strip-embedded .telemetry-chip { min-height: auto; }
    .exchange-vault-card {
        flex-direction: column;
        min-height: auto;
    }
    .vault-logo-col {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
        justify-content: flex-start;
    }
    .dashboard-shell .glass-panel { --corner-size: 85px; }
    .overview-chart-panel,
    .terminal-shell,
    .activity-shell,
    .market-shell,
    .vault-add-panel,
    .modal-box {
        --corner-size: 90px !important;
    }
    .auth-brand-panel, .auth-card { --corner-size: 110px !important; padding: 1.8rem 1.6rem 2rem !important; }
    .tabs-left, .tabs-right { justify-content: center; }
}

/* ========================================================================
   Print — hide decoration
   ======================================================================== */
@media print {
    body::before, body::after, .orb, .grid-noise,
    .forest-ornament, .dashboard-shell::before, .dashboard-shell::after { display: none !important; }
    body { background: #fff; color: #111; }
    .glass-panel { background: #fff !important; border: 1px solid #222; color: #111; box-shadow: none; }
}

/* ============================================================
   SAKURA GATEWAY  (login screen only — single look for all themes)
   Scoped under #authSection.sakura-gateway so it cannot leak into
   the dashboard, which continues to follow the exchange theme.
   ============================================================ */
#authSection.sakura-gateway {
    /* Local palette, independent of the exchange theme */
    --sg-bg-0: #07110f;
    --sg-gold: #e7c66d;
    --sg-gold-soft: #f2dba1;
    --sg-gold-deep: #b28a2c;
    --sg-ink: #f6e9c8;
    --sg-muted: #cdbd9c;
    --sg-dim: #8b7a58;
    --sg-panel-bg: rgba(10, 22, 19, 0.62);
    --sg-panel-border: rgba(231, 198, 109, 0.38);
    --sg-panel-glow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(246, 233, 200, 0.06);

    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #050a09;
    color: var(--sg-ink);
    font-family: 'Manrope', 'Inter', sans-serif;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 40px;
}
#authSection.sakura-gateway.hidden { display: none !important; }

/* Kill any body-level decorative layers while the gateway is up */
body:has(#authSection.sakura-gateway:not(.hidden)) .orb,
body:has(#authSection.sakura-gateway:not(.hidden)) .grid-noise,
body:has(#authSection.sakura-gateway:not(.hidden)) .forest-ornament { display: none !important; }

/* ---- Scene (forest + teal mist) ---- */
#authSection .sg-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#authSection .sg-scene-img {
    position: absolute; inset: -4%;
    background-image: url('./assets/gateway-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: saturate(1.08) contrast(1.02);
    animation: sg-scene-breathe 22s ease-in-out infinite alternate;
}
@keyframes sg-scene-breathe {
    from { transform: scale(1.00); }
    to   { transform: scale(1.04); }
}
#authSection .sg-scene-mist {
    position: absolute; inset: 0;
    background:
        radial-gradient(65% 45% at 50% 40%, rgba(118, 228, 206, 0.22), transparent 75%),
        radial-gradient(95% 60% at 50% 100%, rgba(3, 12, 10, 0.85), transparent 60%),
        radial-gradient(100% 80% at 50% 50%, rgba(4, 14, 12, 0.55), rgba(4, 14, 12, 0.15) 60%, transparent 85%),
        linear-gradient(180deg, rgba(5, 10, 9, 0.45) 0%, rgba(5, 10, 9, 0.18) 45%, rgba(5, 10, 9, 0.65) 100%);
    pointer-events: none;
}

/* ---- Gold frame (reference image has a thin gold border + corner brackets) ---- */
#authSection .sg-frame {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(231, 198, 109, 0.38);
    border-radius: 14px;
    pointer-events: none;
    z-index: 2;
    box-shadow:
        inset 0 0 0 1px rgba(231, 198, 109, 0.08),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
}
#authSection .sg-frame-corner {
    position: absolute;
    width: 42px; height: 42px;
    pointer-events: none;
}
#authSection .sg-frame-corner::before,
#authSection .sg-frame-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, var(--sg-gold-soft), var(--sg-gold-deep));
    box-shadow: 0 0 8px rgba(231, 198, 109, 0.55);
}
#authSection .sg-frame-corner::before { width: 42px; height: 2px; }
#authSection .sg-frame-corner::after  { width: 2px; height: 42px; }
#authSection .sg-frame-tl { top: -2px; left: -2px; }
#authSection .sg-frame-tl::before { top: 0; left: 0; }
#authSection .sg-frame-tl::after  { top: 0; left: 0; }
#authSection .sg-frame-tr { top: -2px; right: -2px; }
#authSection .sg-frame-tr::before { top: 0; right: 0; }
#authSection .sg-frame-tr::after  { top: 0; right: 0; }
#authSection .sg-frame-bl { bottom: -2px; left: -2px; }
#authSection .sg-frame-bl::before { bottom: 0; left: 0; }
#authSection .sg-frame-bl::after  { bottom: 0; left: 0; }
#authSection .sg-frame-br { bottom: -2px; right: -2px; }
#authSection .sg-frame-br::before { bottom: 0; right: 0; }
#authSection .sg-frame-br::after  { bottom: 0; right: 0; }

/* ---- Sakura blossoms, top corners ---- */
#authSection .sg-blossom {
    position: absolute;
    z-index: 3;
    width: clamp(220px, 26vw, 380px);
    pointer-events: none;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
    animation: sg-sway 9s ease-in-out infinite alternate;
    transform-origin: top center;
}
#authSection .sg-blossom-tl { top: -18px; left: -18px; }
#authSection .sg-blossom-tr { top: -18px; right: -18px; animation-delay: -4.5s; }
@keyframes sg-sway {
    from { transform: rotate(-1.2deg) translateY(-2px); }
    to   { transform: rotate(1.2deg)  translateY(2px);  }
}

/* ---- Stage (two panels side-by-side) ---- */
#authSection .sg-stage {
    position: relative;
    z-index: 4;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    animation: sg-stage-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes sg-stage-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Panel shared styles ---- */
#authSection .sg-panel {
    position: relative;
    padding: 48px 42px 44px;
    min-height: 540px;
    border-radius: 18px;
    /* Fully opaque panels so the reference background's baked-in panels never bleed through */
    background:
        linear-gradient(180deg, #0c1d18 0%, #081612 55%, #050f0d 100%),
        radial-gradient(140% 100% at 50% 0%, rgba(118, 228, 206, 0.08), transparent 60%);
    border: 1px solid var(--sg-panel-border);
    box-shadow: var(--sg-panel-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#authSection .sg-panel::before {
    /* thin inner gold hairline */
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(231, 198, 109, 0.16);
    border-radius: 12px;
    pointer-events: none;
}

/* ---- Filigree corners (gold blossom ornaments on each panel corner) ---- */
#authSection .sg-filigree {
    position: absolute;
    width: 130px; height: 130px;
    background: radial-gradient(closest-side, rgba(231, 198, 109, 0.55), rgba(231, 198, 109, 0.0) 65%);
    pointer-events: none;
    opacity: 0.85;
}
#authSection .sg-filigree::after {
    /* fine line-work via SVG mask stand-in: use a repeating arc gradient for delicate blossoms */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 25% 40%, rgba(242, 219, 161, 0.95), transparent 60%),
        radial-gradient(2px 2px at 60% 25%, rgba(242, 219, 161, 0.85), transparent 60%),
        radial-gradient(2px 2px at 75% 55%, rgba(242, 219, 161, 0.8), transparent 60%),
        radial-gradient(1.5px 1.5px at 40% 70%, rgba(242, 219, 161, 0.85), transparent 60%),
        radial-gradient(2px 2px at 80% 80%, rgba(242, 219, 161, 0.75), transparent 60%),
        radial-gradient(1.5px 1.5px at 20% 75%, rgba(242, 219, 161, 0.7), transparent 60%);
    filter: drop-shadow(0 0 3px rgba(231, 198, 109, 0.6));
}
#authSection .sg-filigree-tl { top: -22px; left: -22px; }
#authSection .sg-filigree-tr { top: -22px; right: -22px; transform: scaleX(-1); }
#authSection .sg-filigree-bl { bottom: -22px; left: -22px; transform: scaleY(-1); }
#authSection .sg-filigree-br { bottom: -22px; right: -22px; transform: scale(-1, -1); }

/* ---- Crest / monogram ---- */
#authSection .sg-crest {
    position: relative;
    width: 120px; height: 120px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
}
#authSection .sg-crest-wreath {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(231, 198, 109, 0.45);
    box-shadow:
        inset 0 0 0 4px rgba(231, 198, 109, 0.08),
        inset 0 0 30px rgba(231, 198, 109, 0.22),
        0 0 32px rgba(231, 198, 109, 0.28);
    background:
        radial-gradient(closest-side, rgba(231, 198, 109, 0.14), transparent 70%);
    animation: sg-crest-glow 4.5s ease-in-out infinite alternate;
}
#authSection .sg-crest-wreath::before,
#authSection .sg-crest-wreath::after {
    /* outer & inner filigree ringlets made of radial dots */
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background-image:
        radial-gradient(2px 2px at 50% 2%, rgba(242, 219, 161, 0.95), transparent 60%),
        radial-gradient(2px 2px at 85% 18%, rgba(242, 219, 161, 0.9), transparent 60%),
        radial-gradient(2px 2px at 98% 50%, rgba(242, 219, 161, 0.85), transparent 60%),
        radial-gradient(2px 2px at 85% 82%, rgba(242, 219, 161, 0.9), transparent 60%),
        radial-gradient(2px 2px at 50% 98%, rgba(242, 219, 161, 0.95), transparent 60%),
        radial-gradient(2px 2px at 15% 82%, rgba(242, 219, 161, 0.9), transparent 60%),
        radial-gradient(2px 2px at 2% 50%, rgba(242, 219, 161, 0.85), transparent 60%),
        radial-gradient(2px 2px at 15% 18%, rgba(242, 219, 161, 0.9), transparent 60%);
}
#authSection .sg-crest-wreath::after { inset: 8px; filter: blur(0.3px); opacity: 0.8; }
@keyframes sg-crest-glow {
    from { box-shadow: inset 0 0 0 4px rgba(231,198,109,0.08), inset 0 0 22px rgba(231,198,109,0.18), 0 0 22px rgba(231,198,109,0.22); }
    to   { box-shadow: inset 0 0 0 4px rgba(231,198,109,0.12), inset 0 0 38px rgba(231,198,109,0.30), 0 0 38px rgba(231,198,109,0.40); }
}
#authSection .sg-crest-monogram {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: 2.5px;
    background: linear-gradient(180deg, #faeac7 0%, #e7c66d 55%, #a57a1f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

/* ---- Titles, copy ---- */
#authSection .sg-title {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: 0.3px;
    margin: 0 0 10px;
    background: linear-gradient(180deg, #fbeaca 0%, #e7c66d 55%, #b28a2c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
#authSection .sg-kicker {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--sg-gold-soft);
    margin-bottom: 18px;
    text-transform: none;
}
#authSection .sg-copy {
    color: var(--sg-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 26px;
    max-width: 42ch;
}

/* ---- Brand panel stats (Environment / Domain) ---- */
#authSection .sg-statrow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: auto;
}
#authSection .sg-stat {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(8, 18, 15, 0.55);
    border: 1px solid rgba(231, 198, 109, 0.22);
}
#authSection .sg-stat-k {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--sg-gold-soft);
    margin-bottom: 4px;
}
#authSection .sg-stat-v {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--sg-ink);
}

/* ---- Auth panel form ---- */
#authSection .sg-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}
#authSection .sg-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--sg-gold-soft);
}
#authSection .sg-input-wrap {
    position: relative;
    border-radius: 10px;
    background: rgba(4, 10, 9, 0.72);
    border: 1px solid rgba(231, 198, 109, 0.34);
    transition: border-color 0.25s, box-shadow 0.25s;
}
#authSection .sg-input-wrap:focus-within {
    border-color: var(--sg-gold);
    box-shadow: 0 0 0 3px rgba(231, 198, 109, 0.14), 0 0 36px rgba(231, 198, 109, 0.14);
}
#authSection .sg-input-wrap input {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 14px 18px;
    color: var(--sg-ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    letter-spacing: 4px;
    outline: none;
}
#authSection .sg-input-wrap input::placeholder {
    color: rgba(231, 198, 109, 0.55);
    letter-spacing: 6px;
}
#authSection .sg-btn {
    position: relative;
    border: 0;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #2a1f08;
    cursor: pointer;
    background: linear-gradient(180deg, #fbeaca 0%, #e7c66d 55%, #b28a2c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18),
        0 16px 34px rgba(231, 198, 109, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.25s;
    overflow: hidden;
}
#authSection .sg-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}
#authSection .sg-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
#authSection .sg-btn:hover::before { transform: translateX(100%); }

/* ---- Responsive ---- */
@media (max-width: 920px) {
    #authSection .sg-stage { grid-template-columns: 1fr; max-width: 520px; }
    #authSection .sg-panel { padding: 32px 28px; min-height: 0; }
    #authSection .sg-blossom { width: 200px; }
}

/* ============================================================
   COIN LOGO IMGS (override emoji .coin-logo fallback)
   ============================================================ */
.coin-logo-img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 4px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.coin-icon-frame { overflow: hidden; }

/* ============================================================
   THEME CROSS-FADE
   html[data-theme-transitioning] fades body-level backgrounds gently.
   ============================================================ */
html { transition: background-color 0.6s ease; }
html body::before,
html body::after {
    transition: opacity 0.7s ease, background-image 0.7s ease, filter 0.7s ease;
}
html .orb,
html .forest-ornament,
html .hero-logo-block::before,
html .hero-logo-block::after,
html .grid-noise {
    transition: opacity 0.7s ease, filter 0.7s ease, background 0.7s ease;
}
html .glass-panel,
html .balance-card,
html .mini-bot-card,
html .exchange-vault-card,
html .btn,
html .tab,
html .coin-icon-frame {
    transition:
        background-color 0.6s ease,
        background-image 0.6s ease,
        border-color 0.6s ease,
        box-shadow 0.6s ease,
        color 0.4s ease;
}

/* A wash overlay that briefly blooms during theme switch */
#themeSwitchWash {
    position: fixed; inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(60% 45% at 50% 45%, rgba(255,255,255,0.12), transparent 70%);
    transition: opacity 0.5s ease;
}
#themeSwitchWash.is-active { opacity: 1; }
html[data-theme="binance"] #themeSwitchWash {
    background: radial-gradient(60% 45% at 50% 45%, rgba(243, 217, 138, 0.22), rgba(94, 226, 214, 0.08) 55%, transparent 75%);
}
html[data-theme="cryptocom"] #themeSwitchWash {
    background: radial-gradient(60% 45% at 50% 45%, rgba(127, 212, 255, 0.22), rgba(17, 153, 250, 0.1) 55%, transparent 75%);
}

/* ========================================================================
   OVERVIEW: portfolio + market movers split
   ======================================================================== */
.overview-rows-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}
@media (max-width: 980px) {
    .overview-rows-grid { grid-template-columns: 1fr; }
}
.overview-asset-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}
.overview-asset-row {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: rgba(8, 14, 22, 0.45);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}
.overview-asset-row:hover {
    border-color: rgba(0, 231, 252, 0.45);
    background: rgba(0, 231, 252, 0.06);
}
.overview-asset-coin {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
}
.overview-asset-coin small {
    display: block;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 1px;
}
.overview-asset-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    text-align: right;
}
.overview-asset-change {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: right;
    min-width: 70px;
}
.overview-asset-change.positive { color: #34d399; }
.overview-asset-change.negative { color: #f87171; }
.overview-asset-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    overflow: hidden;
}
.overview-asset-icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.select-sm {
    background: rgba(8, 14, 22, 0.7);
    color: var(--ink, #fff);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-family: inherit;
}

/* ========================================================================
   ACTIVITY: split (trades / server log)
   ======================================================================== */
.activity-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 980px) {
    .activity-split-grid { grid-template-columns: 1fr; }
}
.server-log-stream {
    margin: 0;
    max-height: 520px;
    overflow-y: auto;
    background: rgba(2, 6, 12, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.85);
    white-space: pre-wrap;
    word-break: break-word;
}
.server-log-stream .lvl-INFO    { color: #93c5fd; }
.server-log-stream .lvl-WARNING { color: #fbbf24; }
.server-log-stream .lvl-ERROR   { color: #f87171; font-weight: 700; }
.server-log-stream .lvl-DEBUG   { color: rgba(255,255,255,0.55); }

/* =========================================================================
   SECURE GATEWAY V1 / V2  (full-bleed hero PNG with right-side master code)
   Activated by `body[data-gateway-variant="v1"|"v2"]`. Hides the legacy
   two-panel sakura stage and lets the artwork breathe.
   ========================================================================= */
body[data-gateway-variant="v1"] #authSection .sg-scene-img,
body[data-gateway-variant="v2"] #authSection .sg-scene-img {
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: none;
    filter: none;
}
body[data-gateway-variant="v1"] #authSection .sg-scene-img { background-image: url('./assets/gateway-v1.png'); }
body[data-gateway-variant="v2"] #authSection .sg-scene-img { background-image: url('./assets/gateway-v2.png'); }

/* Hide sakura/blossom/frame chrome — the new artwork has its own border */
body[data-gateway-variant="v1"] #authSection .sg-scene-mist,
body[data-gateway-variant="v2"] #authSection .sg-scene-mist,
body[data-gateway-variant="v1"] #authSection .sg-frame,
body[data-gateway-variant="v2"] #authSection .sg-frame,
body[data-gateway-variant="v1"] #authSection .sg-blossom,
body[data-gateway-variant="v2"] #authSection .sg-blossom,
body[data-gateway-variant="v1"] #authSection .sg-panel-brand,
body[data-gateway-variant="v2"] #authSection .sg-panel-brand { display: none !important; }

/* Reposition the auth panel to the export's right-side hitbox (~11% right, ~38% top, 30% wide) */
body[data-gateway-variant="v1"] #authSection .sg-stage,
body[data-gateway-variant="v2"] #authSection .sg-stage {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: none;
}
body[data-gateway-variant="v1"] #authSection .sg-panel-auth,
body[data-gateway-variant="v2"] #authSection .sg-panel-auth {
    position: absolute;
    right: 11%;
    top: 38%;
    width: 30%;
    max-width: 360px;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
body[data-gateway-variant="v1"] #authSection .sg-panel-auth::before,
body[data-gateway-variant="v2"] #authSection .sg-panel-auth::before,
body[data-gateway-variant="v1"] #authSection .sg-filigree,
body[data-gateway-variant="v2"] #authSection .sg-filigree { display: none !important; }

body[data-gateway-variant="v1"] #authSection .sg-panel-auth .sg-title,
body[data-gateway-variant="v2"] #authSection .sg-panel-auth .sg-title,
body[data-gateway-variant="v1"] #authSection .sg-panel-auth .sg-kicker,
body[data-gateway-variant="v2"] #authSection .sg-panel-auth .sg-kicker { display: none; }

body[data-gateway-variant="v1"] #authSection .sg-form,
body[data-gateway-variant="v2"] #authSection .sg-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
body[data-gateway-variant="v1"] #authSection .sg-label,
body[data-gateway-variant="v2"] #authSection .sg-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f8e3a8;
}
body[data-gateway-variant="v1"] #authSection .sg-input-wrap input,
body[data-gateway-variant="v2"] #authSection .sg-input-wrap input,
body[data-gateway-variant="v1"] #authSection #masterCode,
body[data-gateway-variant="v2"] #authSection #masterCode {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 228, 168, 0.75);
    background: linear-gradient(180deg, rgba(8,18,14,0.9), rgba(4,10,8,0.9));
    color: #f7f0d0;
    font-size: 0.9rem;
    outline: none;
}
body[data-gateway-variant="v1"] #authSection #masterCode::placeholder,
body[data-gateway-variant="v2"] #authSection #masterCode::placeholder { color: rgba(245, 230, 196, 0.48); }
body[data-gateway-variant="v1"] #authSection #masterCode:focus,
body[data-gateway-variant="v2"] #authSection #masterCode:focus {
    box-shadow: 0 0 0 3px rgba(242, 210, 128, 0.4);
    border-color: #f5d888;
}
body[data-gateway-variant="v1"] #authSection .sg-btn,
body[data-gateway-variant="v2"] #authSection .sg-btn {
    margin-top: 6px;
    height: 46px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1b1307;
    background: linear-gradient(180deg, #f6df98 0%, #e3c46f 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.55), 0 0 24px rgba(226,193,110,0.5);
    cursor: pointer;
}
body[data-gateway-variant="v1"] #authSection .sg-btn:hover,
body[data-gateway-variant="v2"] #authSection .sg-btn:hover { filter: brightness(1.03); }

@media (max-width: 900px) {
    body[data-gateway-variant="v1"] #authSection .sg-panel-auth,
    body[data-gateway-variant="v2"] #authSection .sg-panel-auth {
        right: 8%;
        top: 45%;
        width: 56%;
        max-width: none;
    }
}
