/* ============================================================================
 * AUX MINER // EDITION 05 — BOTANICAL PINE & PORCELAIN SPLIT-CANVAS SYSTEM
 * Inspired by Wise · Cash App · Phantom · Arc Mobile
 * Full-Bleed Forest Pine Canvas · Overlapping Porcelain Sheet · 3D Card Deck
 * Expanding Active-Pill Navigation · Zero Visual Overlap with Any Legacy UI
 * ============================================================================ */

:root {
    --pine: #06241c;
    --pine-deep: #041913;
    --pine-mid: #0c362a;
    --pine-line: rgba(255, 255, 255, 0.11);

    --lime: #c6ff33;
    --lime-hi: #d8ff66;
    --lime-mint: #00d97e;
    --lime-soft: rgba(198, 255, 51, 0.16);

    --porcelain: #f8f7f3;
    --card: #ffffff;
    --card-soft: #f0efe9;
    --border: rgba(6, 36, 28, 0.085);
    --border-strong: rgba(6, 36, 28, 0.16);

    --ink: #06241c;
    --ink-2: #2d473f;
    --ink-muted: #657b74;
    --ink-subtle: #92a49e;

    --emerald: #058a57;
    --emerald-soft: rgba(5, 138, 87, 0.11);
    --danger: #e11d48;
    --danger-soft: rgba(225, 29, 72, 0.10);
    --warn: #c26a00;
    --warn-soft: rgba(194, 106, 0, 0.12);

    /* Compat variables for existing JS */
    --accent: #058a57;
    --brand: #058a57;
    --mint: #058a57;
    --text-heading: #06241c;
    --text-primary: #06241c;
    --text-secondary: #2d473f;
    --text-muted: #657b74;
    --primary-bright: #058a57;

    --shadow-soft: 0 2px 10px rgba(6, 36, 28, 0.045);
    --shadow-lift: 0 12px 32px rgba(6, 36, 28, 0.12);
    --shadow-dock: 0 16px 36px rgba(4, 25, 19, 0.34);

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

/* Optional Admin Accent Shifts */
body[data-accent="sapphire"] { --pine: #0b1b36; --pine-deep: #071226; --pine-mid: #132c54; --lime: #67e8f9; --lime-hi: #a5f3fc; --ink: #0b1b36; --emerald: #1d4ed8; --accent: #1d4ed8; --brand: #1d4ed8; }
body[data-accent="violet"]   { --pine: #1c1033; --pine-deep: #120922; --pine-mid: #2b184e; --lime: #e9d5ff; --lime-hi: #f3e8ff; --ink: #1c1033; --emerald: #6d28d9; --accent: #6d28d9; --brand: #6d28d9; }
body[data-accent="gold"]     { --pine: #1a150b; --pine-deep: #100d06; --pine-mid: #2c2312; --lime: #fde047; --lime-hi: #fef08a; --ink: #1a150b; --emerald: #b45309; --accent: #b45309; --brand: #b45309; }
body[data-accent="crimson"]  { --pine: #260c14; --pine-deep: #18070c; --pine-mid: #3d1421; --lime: #fda4af; --lime-hi: #fecdd3; --ink: #260c14; --emerald: #be123c; --accent: #be123c; --brand: #be123c; }

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

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

body {
    height: auto;
    min-height: 100%;
    background: var(--porcelain);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow: visible;
}

body.aux-pine-body {
    padding-bottom: 0;
}

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; }

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

/* ============================================================================
 * 1. SPLIT-CANVAS SHELL ARCHITECTURE (ZERO FLOATING BOX HEADER)
 * ============================================================================ */
.aux-stage {
    width: 100%;
    max-width: 454px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--porcelain);
}

.tab-view { display: none; }
.tab-view.active {
    display: block;
    animation: pineFade 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pineFade {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.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; }

/* Full-Bleed Deep Forest Pine Top Canvas (Seamless from Top Edge) */
.pine-header-band {
    background: var(--pine);
    color: #ffffff;
    padding: 12px 18px 0;
}

.pine-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pine-greet-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    min-width: 0;
}
.pine-logo-tile {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--pine-mid);
    border: 1px solid rgba(198, 255, 51, 0.26);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pine-logo-tile img { width: 36px; height: 36px; object-fit: cover; display: block; }
.pine-greet-copy { display: flex; flex-direction: column; min-width: 0; }
.pine-greet-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pine-greet-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 1px;
}
.pine-lvl-pill {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    color: var(--pine);
    background: var(--lime);
    padding: 1px 6px;
    border-radius: 999px;
}

.pine-nav-actions { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.pine-circle-btn {
    position: relative;
    height: 34px;
    min-width: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--pine-line);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}
.pine-circle-btn:active { background: rgba(255, 255, 255, 0.15); }
.pine-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    display: inline-block;
    flex-shrink: 0;
}
.pine-av-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--lime);
    background: var(--pine-mid);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.av-img, .av-txt {
    width: 34px;
    height: 34px;
    object-fit: cover;
    color: var(--lime);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Full-Bleed Forest Hero Block per Tab */
.pine-hero {
    background:
        radial-gradient(ellipse 90% 55% at 88% 12%, rgba(0, 217, 126, 0.16) 0%, transparent 62%),
        var(--pine);
    color: #ffffff;
    padding: 16px 18px 54px;
}
.pine-hero.is-compact { padding: 14px 18px 42px; }

/* Curved Warm Porcelain Sheet Rising Over the Forest Hero */
.porcelain-sheet {
    position: relative;
    z-index: 5;
    margin-top: -28px;
    background: var(--porcelain);
    border-radius: 30px 30px 0 0;
    padding: 18px 16px 26px;
    min-height: 55vh;
}
.porcelain-sheet.has-seam-card {
    padding-top: 0;
}

/* Clean Porcelain Cards */
.p-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
}

.p-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 10px;
}
.p-sec-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.p-sec-sub { font-size: 11.5px; font-weight: 600; color: var(--ink-muted); }

.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.card-h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.025em; }
.sec-h3  { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.muted-sm { font-size: 11.5px; color: var(--ink-muted); font-weight: 500; }
.muted-p  { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.stat-md  { font-size: 16.5px; font-weight: 800; color: var(--ink); }

.well-box {
    background: var(--card-soft);
    border-radius: 14px;
    padding: 11px 13px;
}

/* Status Pills */
.status-pill, .pill-tag-green {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--emerald);
    background: var(--emerald-soft);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.status-pill.is-warn, .pill-tag-rose { color: var(--warn); background: var(--warn-soft); }
.status-pill.is-down { color: var(--danger); background: var(--danger-soft); }
.status-pill.is-lime { color: var(--pine); background: var(--lime); }

.micro-pill {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink);
    background: var(--card-soft);
    padding: 3px 9px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.micro-pill.is-active { background: var(--pine); color: var(--lime); }

/* Primary & Lime Pill Buttons */
.btn-solid, .btn-primary-action {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--pine);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, opacity 0.14s ease;
}
.btn-solid:active, .btn-primary-action:active { transform: scale(0.98); opacity: 0.92; }
.btn-solid:disabled, .btn-primary-action:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-lime {
    background: var(--lime) !important;
    color: var(--pine) !important;
    font-weight: 800 !important;
}

.btn-ghost {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}
.btn-ghost:active { background: var(--card-soft); }
.btn-ghost.is-accent { border-color: var(--pine); color: var(--pine); background: var(--lime-soft); }

.btn-pill-sm, .btn-sm-pill {
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: var(--pine);
    color: var(--lime);
    font-family: var(--font-sans);
    font-size: 12px;
    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: var(--emerald); }

/* ============================================================================
 * 2. EDITORIAL SPLASH SCREEN (FOREST PINE)
 * ============================================================================ */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--pine);
    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: 240px; text-align: center; color: #ffffff; }
.splash-emblem {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 1px solid rgba(198, 255, 51, 0.30);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    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: 22px; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; }
.splash-sub   { font-size: 12px; color: rgba(255, 255, 255, 0.62); margin: 4px 0 16px; }
.splash-track { width: 100%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; margin-bottom: 8px; }
.splash-fill  { width: 14%; height: 100%; background: var(--lime); transition: width 0.2s ease; }
.splash-meta  { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255, 255, 255, 0.56); font-weight: 600; }

/* ============================================================================
 * 3. HOME VIEW — EDITORIAL HERO · SEAM MINER · SWIPE STRIP · STREAK · BENTO
 * ============================================================================ */
.hero-editorial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.hero-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
}
.hero-balance-big {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.04;
    cursor: pointer;
}
.hero-balance-unit {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--lime);
    margin-left: 7px;
}
.hero-balance-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.64);
    margin-top: 6px;
}
.hero-balance-sub b { color: #ffffff; }

/* Embedded Dark-Pine Sparkline Strip */
.hero-spark-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
}
.hero-spark-bar:active { background: rgba(255, 255, 255, 0.11); }
.spark-delta { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.spark-delta.is-up   { color: var(--lime); }
.spark-delta.is-down { color: #fb7185; }
.spark-canvas-wrap { flex: 1; height: 34px; min-width: 110px; }
.spark-canvas { width: 100%; height: 34px; display: block; }

/* SEAM-MOUNTED MINING ENGINE DECK (Straddles Dark Hero & Porcelain Sheet) */
.seam-miner-deck {
    position: relative;
    top: -26px;
    margin-bottom: -12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 16px 16px 15px;
    box-shadow: var(--shadow-lift);
}
.seam-miner-deck.is-active {
    border-color: rgba(5, 138, 87, 0.35);
}
.smd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.smd-state-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--card-soft);
    padding: 4px 10px;
    border-radius: 999px;
}
.seam-miner-deck.is-active .smd-state-chip {
    background: var(--pine);
    color: var(--lime);
}
.smd-yield-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.smd-accrued {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.smd-pct { font-family: var(--font-mono); font-size: 13px; font-weight: 800; color: var(--emerald); }

.thin-bar { width: 100%; height: 8px; border-radius: 99px; background: var(--card-soft); overflow: hidden; }
.thin-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pine), var(--lime-mint)); transition: width 0.35s ease; }

.smd-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 11px 0 13px;
}
.smd-metric-pill {
    background: var(--porcelain);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
}
.smd-metric-pill span { display: block; font-size: 9.5px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; }
.smd-metric-pill b    { display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }

.cta-split { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn-oc {
    height: 48px;
    min-width: 60px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1.5px solid var(--border-strong);
    background: var(--porcelain);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.btn-oc.is-oc-on { background: var(--pine); border-color: var(--pine); color: var(--lime); }

/* HORIZONTAL SWIPEABLE ACTION PILL CAROUSEL (NO 4-ICON GRID!) */
.action-rail-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.action-rail-scroll::-webkit-scrollbar { display: none; }
.action-pill-tile {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}
.action-pill-tile:active { background: var(--card-soft); }
.action-pill-tile.is-highlight { background: var(--pine); border-color: var(--pine); color: #ffffff; }
.apt-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card-soft);
    color: var(--pine);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.action-pill-tile.is-highlight .apt-dot { background: var(--lime); color: var(--pine); }

/* CONNECTED CIRCULAR 7-DAY STREAK TIMELINE */
.streak-track-wrap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin: 12px 0 14px;
}
.streak-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.streak-cell .sc-orb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-soft);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: var(--ink-2);
}
.streak-cell .sc-day { font-size: 9.5px; font-weight: 700; color: var(--ink-muted); }
.streak-cell.is-claimed .sc-orb { background: var(--emerald-soft); border-color: var(--emerald); color: var(--emerald); }
.streak-cell.is-today .sc-orb   { background: var(--pine); border-color: var(--pine); color: var(--lime); box-shadow: 0 4px 12px rgba(6, 36, 28, 0.26); }
.streak-cell.is-today .sc-day   { color: var(--pine); font-weight: 800; }

/* Leaderboard Row */
.lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
}
.lb-row:last-child { border-bottom: none; padding-bottom: 0; }
.lb-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--card-soft);
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lb-rank.is-top { background: var(--pine); color: var(--lime); }

/* ============================================================================
 * 4. BRAND NEW EVENT: AUX QUANTUM DECK — 3D HOLOGRAPHIC PERSPECTIVE CARD FLIP
 * ============================================================================ */
.qdeck-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    perspective: 1100px;
    margin: 4px 0 14px;
}
.qcard-slot {
    position: relative;
    height: 158px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    perspective: 1000px;
}
.qcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}
.qcard-slot.is-flipped .qcard-inner {
    transform: rotateY(180deg);
}
.qcard-face {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    text-align: left;
    overflow: hidden;
}
.qcard-front {
    background:
        radial-gradient(circle at 85% 18%, rgba(198, 255, 51, 0.22) 0%, transparent 52%),
        linear-gradient(155deg, #0b352a 0%, #051c16 100%);
    border: 1.5px solid rgba(198, 255, 51, 0.28);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(6, 36, 28, 0.22);
}
.qcard-front::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(198, 255, 51, 0.22);
    border-radius: 15px;
    pointer-events: none;
}
.qcard-numeral {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--lime);
}
.qcard-emblem {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(198, 255, 51, 0.12);
    border: 1px solid rgba(198, 255, 51, 0.35);
    color: var(--lime);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
}
.qcard-tap-hint {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
}

.qcard-back {
    transform: rotateY(180deg);
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--ink);
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.qcard-slot.is-winner .qcard-back {
    background: linear-gradient(155deg, var(--lime) 0%, #98f52e 100%);
    border-color: var(--pine);
    color: var(--pine);
    box-shadow: 0 14px 30px rgba(198, 255, 51, 0.35);
}
.qcard-slot.is-other .qcard-back {
    opacity: 0.68;
    background: var(--card-soft);
}
.qcard-prize-val {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.qcard-prize-lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================================
 * 5. SPLIT-SCREEN SWAP, WISE DEBIT WALLET, QUESTS, MARKET & SUPPORT
 * ============================================================================ */
.swap-seam-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--pine);
    border: 4px solid var(--porcelain);
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -38px auto 12px;
    position: relative;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(6, 36, 28, 0.18);
}
.pine-swap-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    outline: none;
}
.pine-preset-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 12px;
    scrollbar-width: none;
}
.pine-preset-row::-webkit-scrollbar { display: none; }
.preset-btn {
    flex-shrink: 0;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.preset-btn.active { background: var(--lime); border-color: var(--lime); color: var(--pine); }

.coin-chip {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--pine);
    color: var(--lime);
    flex-shrink: 0;
}
.coin-chip.is-ton { background: rgba(255, 255, 255, 0.14); color: #ffffff; }

.swap-input { width: 100%; background: transparent; border: none; color: var(--ink); font-family: var(--font-display); font-size: 26px; font-weight: 800; outline: none; }
.swap-out   { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--ink); }

.kv-box { background: var(--card-soft); border-radius: 16px; padding: 4px 14px; margin-bottom: 14px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 12px; color: var(--ink-muted); }
.kv-row + .kv-row { border-top: 1px solid var(--border); }
.kv-row b { color: var(--ink); font-weight: 700; }

.tasks-filter-seg, .seg-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--card-soft);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 12px;
}
.tasks-seg-btn, .seg-pill-btn {
    height: 36px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.tasks-seg-btn.active, .seg-pill-btn.active {
    background: var(--pine);
    color: var(--lime);
}

.orx-tasks-list { display: flex; flex-direction: column; gap: 9px; }
.orx-task-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}
.orx-task-card.is-claimed-card { opacity: 0.58; }
.orx-task-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: var(--card-soft);
    color: var(--pine);
    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: 13.5px; font-weight: 700; color: var(--ink); 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: 11px; font-weight: 700; color: var(--emerald); background: var(--emerald-soft); padding: 2px 8px; border-radius: 999px; }
.orx-task-tag { font-size: 10px; font-weight: 600; color: var(--ink-muted); }
.orx-task-spots { margin-top: 6px; }
.orx-task-spots-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-muted); margin-bottom: 3px; }
.orx-task-spots-track { height: 4px; background: var(--card-soft); border-radius: 99px; overflow: hidden; }
.orx-task-spots-fill { height: 100%; background: var(--pine); border-radius: 99px; }
.orx-task-cta {
    flex-shrink: 0;
    min-width: 76px;
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: var(--pine);
    color: var(--lime);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.orx-task-cta.is-ready-claim { background: var(--lime); color: var(--pine); }
.orx-task-cta.is-waiting { background: var(--card-soft); color: var(--ink-muted); }
.orx-task-cta.is-done { background: var(--emerald-soft); color: var(--emerald); cursor: default; }

.native-input {
    height: 44px;
    padding: 0 15px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--card-soft);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    outline: none;
}
.native-input:focus { border-color: var(--pine); background: var(--card); }

/* Wallet & Debit Card */
.wise-debit-card {
    background:
        radial-gradient(circle at 90% 15%, rgba(198, 255, 51, 0.20) 0%, transparent 45%),
        linear-gradient(145deg, #0d3a2e 0%, #051c16 100%);
    border: 1px solid rgba(198, 255, 51, 0.25);
    border-radius: 22px;
    padding: 16px;
    color: #ffffff;
}
.tc-mount { display: flex; justify-content: center; }
.linked-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 11px 13px;
    margin-top: 12px;
}
.icon-circle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.10); color: #ffffff; font-size: 14px; cursor: pointer; }
.field-lbl { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.copy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--card-soft);
    border-radius: 14px;
    padding: 11px 14px;
    cursor: pointer;
}
.copy-bar span, .copy-bar code { font-size: 12px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.copy-bar small { font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; color: var(--emerald); flex-shrink: 0; }
.copy-bar.is-dark { background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); }
.copy-bar.is-dark code { color: #ffffff; }
.copy-bar.is-dark small { color: var(--lime); }

.pct-pills { display: inline-flex; gap: 4px; }
.pct-pills button { border: none; background: var(--card-soft); color: var(--ink-2); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.pct-pills button.is-max { background: var(--pine); color: var(--lime); }
.amount-box { display: flex; align-items: center; gap: 10px; background: var(--card-soft); border: 1.5px solid var(--border); border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; }
.wd-preset-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.wd-preset-5 button { height: 32px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink-2); font-family: var(--font-mono); font-size: 11px; font-weight: 700; cursor: pointer; }
.wd-preset-5 button.is-max { background: var(--pine); border-color: var(--pine); color: var(--lime); }
.net-bar { display: flex; align-items: center; justify-content: space-between; background: var(--pine); color: #ffffff; border-radius: 16px; padding: 13px 15px; margin-bottom: 14px; }

.partner-cta-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn-qr { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.10); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.qr-frame { width: 210px; height: 210px; margin: 0 auto; padding: 10px; border-radius: 18px; border: 1px solid var(--border); background: #ffffff; display: flex; align-items: center; justify-content: center; }
.qr-frame img { width: 100%; height: 100%; border-radius: 10px; display: block; }
.social-pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-pill-btn { flex: 1; min-width: 96px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-soft); color: var(--ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }

/* Market & Staking Vaults */
.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(255, 255, 255, 0.08); border-radius: 999px; padding: 3px; }
.tf-pill, .mode-pill { border: none; background: transparent; color: rgba(255, 255, 255, 0.65); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.tf-pill.active, .mode-pill.active { background: var(--lime); color: var(--pine); }
.chart-canvas-wrap { width: 100%; height: 210px; position: relative; touch-action: none; }
.chart-canvas { width: 100%; height: 210px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 16px; display: block; cursor: crosshair; }

.seg-3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card-soft); border-radius: 16px; overflow: hidden; }
.seg-item { padding: 10px 6px; text-align: center; position: relative; }
.seg-item + .seg-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border); }
.seg-lbl { display: block; font-size: 10px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; margin-bottom: 2px; }
.seg-val { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink); }

.list-item-row, .kv-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--card-soft);
    border-radius: 14px;
    padding: 11px 13px;
    margin-bottom: 8px;
    font-size: 12px;
}
.kv-lbl { color: var(--ink-muted); font-weight: 600; }
.copy-action-link { color: var(--emerald); font-weight: 700; cursor: pointer; }

.server-blade-running { background: var(--card-soft); border-radius: 16px; 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: 9.5px; font-weight: 700; color: var(--emerald); background: var(--emerald-soft); padding: 2px 8px; border-radius: 999px; margin-bottom: 3px; }
.blade-pulse-bar { height: 4px; width: 100%; background: var(--border); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.blade-pulse-fill { height: 100%; width: 100%; background: var(--emerald); border-radius: 99px; }

.nft-thumb-square { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.blueprint-tier-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-soft); }
.nft-artwork-showcase { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.nft-hero-artwork { width: 64px; height: 64px; border-radius: 16px; 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: 9.5px; font-weight: 700; color: var(--pine); background: var(--lime); padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.nft-card-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--ink); }
.nft-card-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.bp-roi-pill { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; color: var(--emerald); background: var(--emerald-soft); padding: 2.5px 8px; border-radius: 999px; }
.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: 5px; }
.bp-power-track { width: 100%; height: 5px; border-radius: 99px; background: var(--card-soft); overflow: hidden; }
.bp-power-fill { height: 100%; border-radius: 99px; background: var(--pine); }
.stats-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 11px; }
.stat-mini-card { background: var(--porcelain); border-radius: 12px; padding: 8px 4px; text-align: center; }
.stat-mini-lbl { font-size: 9.5px; font-weight: 700; color: var(--ink-muted); }
.stat-mini-val { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* Support Chat */
.sup-messages-area { height: 320px; overflow-y: auto; background: var(--porcelain); border-radius: 16px; 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: 10px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45; word-break: break-word; }
.sup-msg-row.is-user .sup-bubble { background: var(--pine); color: #ffffff; border-bottom-right-radius: 4px; }
.sup-msg-row.is-admin .sup-bubble { background: var(--card); border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 4px; }
.sup-sender-tag { font-size: 9.5px; font-weight: 800; color: var(--emerald); margin-bottom: 2px; }
.sup-msg-time { font-size: 9.5px; 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(--card); color: var(--ink); font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.sup-input-bar { display: flex; align-items: center; gap: 8px; }
.sup-text-input { flex: 1; height: 44px; background: var(--card-soft); border: 1px solid var(--border); border-radius: 999px; padding: 0 15px; color: var(--ink); font-size: 13px; outline: none; }
.sup-send-btn { width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--pine); color: var(--lime); display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 800; font-size: 17px; }

/* ============================================================================
 * 6. MODALS & SPONSOR SHEET
 * ============================================================================ */
.sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(6, 36, 28, 0.54);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.sheet-backdrop.active { display: flex; }
.sheet-card {
    width: 100%;
    max-width: 392px;
    background: var(--card);
    border-radius: 26px;
    padding: 22px 20px;
    box-shadow: 0 24px 60px rgba(4, 25, 19, 0.35);
}
.sheet-icon { width: 48px; height: 48px; border-radius: 16px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.sheet-icon.is-blue  { background: var(--pine); color: var(--lime); }
.sheet-icon.is-green { background: var(--emerald-soft); color: var(--emerald); }
.sheet-icon.is-red   { background: var(--danger-soft); color: var(--danger); }
.sheet-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink); 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: 11.5px; font-weight: 700; color: var(--pine); background: var(--lime); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.icon-close-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--card-soft); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.sheet-banner-img { margin-bottom: 12px; border-radius: 16px; 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: var(--card-soft); border-radius: 16px; padding: 10px 12px; }
.apex-sp-card.is-joined { background: var(--emerald-soft); }
.apex-sp-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.apex-sp-avatar-wrap { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.apex-sp-avatar, .apex-sp-avatar-fallback { width: 36px; height: 36px; border-radius: 12px; object-fit: cover; background: var(--pine); color: var(--lime); display: flex; align-items: center; justify-content: center; }
.apex-sp-status-dot { position: absolute; bottom: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); border: 2px solid var(--card); }
.apex-sp-status-dot.is-ok { background: var(--emerald); }
.apex-sp-meta { min-width: 0; }
.apex-sp-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apex-sp-sub { font-size: 11px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apex-sp-join-btn { height: 32px; padding: 0 13px; border: none; border-radius: 999px; background: var(--pine); color: var(--lime); font-size: 11.5px; 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: 11px; font-weight: 700; color: var(--emerald); background: var(--card); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }

.search-field { display: flex; align-items: center; gap: 8px; background: var(--card-soft); border-radius: 999px; padding: 9px 14px; margin-bottom: 10px; }
.search-field input { width: 100%; background: transparent; border: none; color: var(--ink); font-size: 13px; outline: none; }
.lang-list-scroll { max-height: 290px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.lang-item-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: var(--card-soft); cursor: pointer; }
.lang-item-row.is-active { background: var(--pine); color: #ffffff; }
.lang-item-row.is-active b { color: #ffffff !important; }
.lang-code-pill { font-family: var(--font-mono); font-size: 10px; font-weight: 800; color: var(--pine); background: var(--lime); padding: 3px 8px; border-radius: 999px; }

/* ============================================================================
 * 7. EXPANDING ACTIVE-PILL CAPSULE DOCK (UNIQUE MORPHING NAVIGATION)
 * ============================================================================ */
.tabbar-wrap {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: 400px;
    margin: 0 auto;
    z-index: 120;
}
.tabbar-inner {
    background: var(--pine);
    border: 1px solid rgba(198, 255, 51, 0.22);
    border-radius: 999px;
    padding: 7px 8px;
    box-shadow: var(--shadow-dock);
}
.tabbar-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.tabbar-indicator { display: none; }
.tabbar-btn {
    position: relative;
    height: 44px;
    min-width: 44px;
    padding: 0 11px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.56);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: background 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease, padding 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.tabbar-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.tabbar-btn .dock-lbl {
    display: none;
    white-space: nowrap;
}
.tabbar-btn.active {
    background: var(--lime);
    color: var(--pine);
    padding: 0 16px;
}
.tabbar-btn.active .dock-lbl {
    display: inline;
}
.dock-badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--pine);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    pointer-events: none;
}
.tabbar-btn.active .dock-badge-dot {
    background: var(--pine);
    color: var(--lime);
}

/* ============================================================================
 * 8. TOAST & HELPERS
 * ============================================================================ */
#toastBanner {
    display: none;
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pine);
    border: 1px solid rgba(198, 255, 51, 0.40);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    z-index: 9999;
    max-width: 92%;
    text-align: center;
    box-shadow: 0 12px 28px rgba(4, 25, 19, 0.36);
}
.empty-list-msg { text-align: center; font-size: 12px; color: var(--ink-muted); padding: 16px 8px; }
.field-box { background: var(--card-soft); border-radius: 14px; padding: 10px 12px; }
.field-top-row { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-muted); margin-bottom: 4px; }
.kv-lbl-primary { color: var(--emerald); font-weight: 700; }
.kv-val-primary { color: var(--emerald); font-weight: 800; }
.kv-strip.highlight { background: var(--emerald-soft); }



/* ============================================================================
 * HOME VIEW v6 — FLAGSHIP EDITORIAL POLISH (SCOPED STRICTLY TO #view-mine)
 * ============================================================================ */
.home-v6-hero {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 56px !important;
    background:
        radial-gradient(ellipse 85% 60% at 92% 8%, rgba(198, 255, 51, 0.14) 0%, transparent 56%),
        radial-gradient(ellipse 70% 55% at 10% 90%, rgba(0, 217, 126, 0.12) 0%, transparent 60%),
        var(--pine) !important;
}
.home-v6-hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.home-v6-hero-inner {
    position: relative;
    z-index: 2;
}
.home-v6-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.home-v6-live-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(198, 255, 51, 0.55);
    animation: homePulseDot 2.2s ease-out infinite;
}
@keyframes homePulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(198, 255, 51, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(198, 255, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 255, 51, 0); }
}

.home-v6-bal-row {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: #ffffff;
    line-height: 1.02;
    margin-top: 4px;
    cursor: pointer;
}
.home-v6-bal-unit {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--lime);
    margin-left: 7px;
    letter-spacing: 0.02em;
}
.home-v6-meta-pills {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.home-v6-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.11);
    padding: 4px 10px;
    border-radius: 999px;
}
.home-v6-meta-chip b { color: #ffffff; }

.home-v6-spark {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 13px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background 0.14s ease;
}
.home-v6-spark:active { background: rgba(255, 255, 255, 0.12); }
.home-v6-spark-left { flex-shrink: 0; }
.home-v6-spark-pair {
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.56);
}
.home-v6-spark-vals {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 2px;
}
.home-v6-spark-vals b { font-size: 15px; color: #ffffff; }
.home-v6-spark-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(198, 255, 51, 0.14);
    color: var(--lime);
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Flagship Seam-Mounted Cloud Miner Card */
.home-v6-miner {
    top: -30px !important;
    margin-bottom: -16px !important;
    border-radius: 28px !important;
    padding: 18px 17px 17px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%) !important;
    border: 1px solid rgba(6, 36, 28, 0.09) !important;
    box-shadow: 0 18px 40px rgba(6, 36, 28, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}
.home-v6-miner.is-active {
    border-color: rgba(5, 138, 87, 0.34) !important;
    box-shadow: 0 18px 42px rgba(5, 138, 87, 0.14) !important;
}
.home-v6-rate-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--porcelain);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
}
.home-v6-yield-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 2px 0 11px;
}
.home-v6-yield-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 2px;
}
.home-v6-yield-num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
    line-height: 1.05;
}
.home-v6-pct-badge {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--emerald);
    background: var(--emerald-soft);
    padding: 4px 10px;
    border-radius: 999px;
}
.home-v6-progress-track {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: var(--card-soft);
    overflow: hidden;
    padding: 2px;
}
.home-v6-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pine) 0%, #059669 60%, var(--lime-mint) 100%);
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-v6-telemetry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--porcelain);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 12px 0 14px;
    overflow: hidden;
}
.home-v6-tel-item {
    padding: 9px 6px;
    text-align: center;
    position: relative;
}
.home-v6-tel-item + .home-v6-tel-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: var(--border);
}
.home-v6-tel-item span {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.home-v6-tel-item b {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--ink);
    margin-top: 2px;
}
.home-v6-cta {
    height: 50px !important;
    font-size: 14.5px !important;
    box-shadow: 0 8px 20px rgba(198, 255, 51, 0.34);
}
.home-v6-oc {
    height: 50px !important;
    min-width: 62px !important;
}

/* 2-Card Featured Spotlight Bento */
.home-v6-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.home-v6-spot-card {
    border-radius: 22px;
    padding: 14px 14px 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: transform 0.14s ease;
}
.home-v6-spot-card:active { transform: scale(0.975); }
.home-v6-spot-card.is-pine {
    background:
        radial-gradient(circle at 90% 15%, rgba(198, 255, 51, 0.22) 0%, transparent 55%),
        linear-gradient(150deg, #0b3429 0%, #051c16 100%);
    border-color: rgba(198, 255, 51, 0.20);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(6, 36, 28, 0.16);
}
.home-v6-spot-card.is-mint {
    background:
        radial-gradient(circle at 90% 15%, rgba(0, 217, 126, 0.14) 0%, transparent 58%),
        linear-gradient(155deg, #ffffff 0%, #f1f6f3 100%);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}
.home-v6-spot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.home-v6-spot-ico {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.home-v6-spot-card.is-pine .home-v6-spot-ico {
    background: var(--lime);
    color: var(--pine);
}
.home-v6-spot-card.is-mint .home-v6-spot-ico {
    background: var(--pine);
    color: var(--lime);
}
.home-v6-spot-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 999px;
}
.home-v6-spot-card.is-pine .home-v6-spot-tag {
    background: rgba(255, 255, 255, 0.10);
    color: var(--lime);
}
.home-v6-spot-card.is-mint .home-v6-spot-tag {
    background: var(--emerald-soft);
    color: var(--emerald);
}
.home-v6-spot-title {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.home-v6-spot-sub {
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
    opacity: 0.72;
}

/* Balanced 3-Button Quick Bar */
.home-v6-quick-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.home-v6-qbtn {
    height: 44px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.12s ease, background 0.12s ease;
}
.home-v6-qbtn:active { transform: scale(0.97); background: var(--card-soft); }
.home-v6-qico {
    color: var(--emerald);
    display: inline-flex;
    align-items: center;
}

/* Connected 7-Day Streak Track with Progress Rail */
.home-v6-streak-card {
    padding: 16px 15px !important;
}
.home-v6-streak-rail {
    position: relative;
    margin: 13px 0 15px;
}
.home-v6-streak-line {
    position: absolute;
    top: 19px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.home-v6-streak-grid {
    position: relative;
    z-index: 1;
    margin: 0 !important;
}
.home-v6-streak-grid .streak-cell.is-jackpot .sc-orb {
    background: rgba(198, 255, 51, 0.25);
    border-color: var(--emerald);
    color: var(--pine);
}
.home-v6-checkin-btn {
    height: 44px !important;
    font-size: 13.5px !important;
}

/* Flagship Dark-Pine Permanent Hashrate Upgrade Banner */
.home-v6-upgrade-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 15px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 95% 20%, rgba(198, 255, 51, 0.18) 0%, transparent 50%),
        linear-gradient(145deg, #092e24 0%, #051c16 100%);
    border: 1px solid rgba(198, 255, 51, 0.20);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(6, 36, 28, 0.16);
}
.home-v6-upg-ico {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: rgba(198, 255, 51, 0.14);
    border: 1px solid rgba(198, 255, 51, 0.28);
    color: var(--lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.home-v6-upg-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}
.home-v6-upg-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--pine);
    background: var(--lime);
    padding: 2px 7px;
    border-radius: 999px;
}
.home-v6-upg-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.64);
    margin-top: 1px;
}
.home-v6-upg-btn {
    height: 38px;
    padding: 0 15px;
    border: none;
    border-radius: 999px;
    background: var(--lime);
    color: var(--pine);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(198, 255, 51, 0.25);
    transition: transform 0.12s ease;
}
.home-v6-upg-btn:active { transform: scale(0.95); }
.home-v6-upg-btn:disabled { opacity: 0.5; cursor: not-allowed; }



/* ============================================================================
 * NAVIGATION v8 — FLAGSHIP FROSTED TOP HEADER & LIQUID-PILL FLOATING DOCK
 * ============================================================================ */

/* 1. Sticky Frosted Pine Top Header */
.nav-v8-header {
    position: sticky;
    top: 0;
    z-index: 95;
    padding: 10px 16px 10px !important;
    background: rgba(6, 36, 28, 0.90) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-v8-brand {
    gap: 10px !important;
}
.nav-v8-logo {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    border: 1.5px solid rgba(198, 255, 51, 0.36) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 12px rgba(198, 255, 51, 0.14);
}
.nav-v8-logo img {
    width: 38px !important;
    height: 38px !important;
}
.nav-v8-appname {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.68);
}
.nav-v8-lvl {
    padding: 1.5px 7px !important;
    font-size: 9px !important;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(198, 255, 51, 0.28);
}

/* Unified Frosted Utility Capsule on Top-Right */
.nav-v8-actions {
    gap: 8px !important;
}
.nav-v8-util-pill {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.nav-v8-util-btn {
    position: relative;
    height: 28px;
    padding: 0 9px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.90);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.14s ease, transform 0.12s ease;
}
.nav-v8-util-btn:active {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(0.95);
}
.nav-v8-util-btn.is-icon {
    width: 30px;
    padding: 0;
}
.nav-v8-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 1px;
}
.nav-v8-unread-dot {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 6px rgba(198, 255, 51, 0.85);
}

.nav-v8-avatar {
    position: relative;
    width: 36px !important;
    height: 36px !important;
    border: 1.5px solid rgba(198, 255, 51, 0.72) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: visible !important;
}
.nav-v8-avatar .av-img,
.nav-v8-avatar .av-txt {
    width: 33px !important;
    height: 33px !important;
    border-radius: 50%;
}
.nav-v8-online {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--pine);
}

/* 2. Flagship Floating Liquid-Pill Bottom Dock */
body.aux-pine-body {
    padding-bottom: 108px !important;
}
.nav-v8-dock {
    left: 14px !important;
    right: 14px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    max-width: 422px !important;
}
.nav-v8-fade-veil {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 92px;
    background: linear-gradient(180deg, rgba(248, 247, 243, 0) 0%, rgba(248, 247, 243, 0.84) 55%, rgba(248, 247, 243, 0.98) 100%);
    pointer-events: none;
    z-index: -1;
}
.nav-v8-shell {
    background: linear-gradient(180deg, rgba(10, 48, 38, 0.94) 0%, rgba(5, 28, 22, 0.97) 100%) !important;
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-top-color: rgba(198, 255, 51, 0.28) !important;
    border-radius: 26px !important;
    padding: 6px !important;
    box-shadow:
        0 18px 40px rgba(4, 25, 19, 0.34),
        0 4px 12px rgba(4, 25, 19, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.nav-v8-track {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 2px !important;
}

/* Liquid Spring Sliding Active Capsule */
.nav-v8-pill {
    display: block !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    border-radius: 20px;
    background: linear-gradient(145deg, #dbff70 0%, #c6ff33 52%, #a6eb15 100%);
    box-shadow:
        0 6px 18px rgba(198, 255, 51, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
    pointer-events: none;
    z-index: 0;
    transition:
        transform 0.32s cubic-bezier(0.32, 1.28, 0.56, 1),
        width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.18s ease;
}

.nav-v8-btn {
    position: relative;
    z-index: 1;
    height: 52px !important;
    min-width: 0 !important;
    width: 100%;
    padding: 6px 2px 5px !important;
    border-radius: 20px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.58) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    transition: color 0.18s ease, transform 0.14s ease !important;
}
.nav-v8-btn:active {
    transform: scale(0.93);
}
.nav-v8-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transition: transform 0.26s cubic-bezier(0.32, 1.35, 0.56, 1);
}
.nav-v8-ico svg {
    width: 20px !important;
    height: 20px !important;
}
.nav-v8-lbl {
    display: block !important;
    font-family: var(--font-sans);
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.18s ease, transform 0.22s ease;
}

/* Active State Styling Inside Liquid Lime Pill */
.nav-v8-btn.active {
    background: transparent !important;
    color: var(--pine) !important;
    padding: 6px 2px 5px !important;
}
.nav-v8-btn.active .nav-v8-ico {
    transform: translateY(-1px) scale(1.08);
}
.nav-v8-btn.active .nav-v8-lbl {
    font-weight: 800 !important;
    opacity: 1;
}

/* Crisp Quests Notification Badge */
.nav-v8-badge {
    top: 4px !important;
    right: calc(50% - 19px) !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border: 1.5px solid var(--pine);
    background: var(--lime) !important;
    color: var(--pine) !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    line-height: 13px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    z-index: 3;
}
.nav-v8-btn.active .nav-v8-badge {
    border-color: var(--lime);
    background: var(--pine) !important;
    color: var(--lime) !important;
}



/* ============================================================================
 * EXECUTIVE SMOOTHNESS & PROFESSIONAL POLISH (v9 — 60FPS NATIVE GRADE)
 * Calm Apple/Wise Motion Curves · GPU-Composited Transitions · Zero Visual Noise
 * ============================================================================ */

html, body {
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

button, a, [onclick] {
    touch-action: manipulation;
}

/* Razor-clean 60fps view switch (GPU translate3d only) */
.tab-view.active {
    animation: auxViewProIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both !important;
    will-change: transform, opacity;
}
@keyframes auxViewProIn {
    from { opacity: 0; transform: translate3d(0, 6px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Smooth Native Sheet & Modal Transitions */
.sheet-backdrop {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}
.sheet-backdrop.active {
    animation: auxMaskFade 0.18s ease-out both;
}
.sheet-backdrop.active .sheet-card {
    animation: auxSheetRise 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes auxMaskFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes auxSheetRise {
    from { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.975); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* 1. Scroll-Aware Seamless Top Header (Zero Seam at Top, Frosted Elevation on Scroll) */
.nav-v8-header {
    padding: 11px 16px 9px !important;
    background: var(--pine) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    transform: translateZ(0);
}
.nav-v8-header.is-scrolled {
    background: rgba(6, 36, 28, 0.94) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 20px rgba(4, 22, 17, 0.24) !important;
}

.nav-v8-logo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20) !important;
}
.nav-v8-logo img {
    width: 36px !important;
    height: 36px !important;
}
.pine-greet-name {
    font-size: 14.5px !important;
    letter-spacing: -0.015em;
}
.nav-v8-lvl {
    box-shadow: none !important;
    background: rgba(198, 255, 51, 0.16) !important;
    color: var(--lime) !important;
    border: 1px solid rgba(198, 255, 51, 0.30);
    font-weight: 700 !important;
}

.nav-v8-util-pill {
    height: 34px !important;
    background: rgba(255, 255, 255, 0.065) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    box-shadow: none !important;
}
.nav-v8-util-btn {
    height: 26px !important;
    color: rgba(255, 255, 255, 0.88) !important;
}
.nav-v8-unread-dot {
    box-shadow: none !important;
    width: 5.5px !important;
    height: 5.5px !important;
}
.nav-v8-avatar {
    width: 34px !important;
    height: 34px !important;
    border: 1.5px solid rgba(198, 255, 51, 0.55) !important;
    box-shadow: none !important;
}
.nav-v8-avatar .av-img,
.nav-v8-avatar .av-txt {
    width: 31px !important;
    height: 31px !important;
}

/* 2. Executive Matte-Glass Floating Bottom Dock (Silky 60fps, Zero Bounce, Zero Neon Clutter) */
body.aux-pine-body {
    padding-bottom: 102px !important;
}
.nav-v8-dock {
    left: 16px !important;
    right: 16px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    max-width: 408px !important;
    transform: translateZ(0);
    will-change: transform;
}
.nav-v8-fade-veil {
    height: 82px !important;
    background: linear-gradient(180deg, rgba(248, 247, 243, 0) 0%, rgba(248, 247, 243, 0.78) 58%, rgba(248, 247, 243, 0.96) 100%) !important;
}
.nav-v8-shell {
    background: rgba(6, 30, 24, 0.95) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-top-color: rgba(255, 255, 255, 0.16) !important;
    border-radius: 24px !important;
    padding: 5px !important;
    box-shadow:
        0 14px 32px rgba(4, 22, 17, 0.28),
        0 2px 6px rgba(4, 22, 17, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Calm, Executive Apple-Curve Sliding Pill (No Cartoonish Overshoot, No Heavy Glow) */
.nav-v8-pill {
    border-radius: 19px !important;
    background: linear-gradient(180deg, #cffd47 0%, #c1f72b 100%) !important;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
    will-change: transform, width, opacity;
    transition:
        transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.16s ease !important;
}

.nav-v8-btn {
    height: 48px !important;
    padding: 5px 2px 4px !important;
    border-radius: 19px !important;
    color: rgba(255, 255, 255, 0.56) !important;
    gap: 2.5px !important;
    transition: color 0.18s ease, transform 0.14s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.nav-v8-btn:active {
    transform: scale(0.95) !important;
}
.nav-v8-ico {
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.nav-v8-ico svg {
    width: 19px !important;
    height: 19px !important;
    stroke-width: 1.9;
    transition: stroke-width 0.18s ease;
}
.nav-v8-lbl {
    font-size: 9.8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.015em !important;
    opacity: 0.82 !important;
}
.nav-v8-btn.active {
    color: var(--pine) !important;
}
.nav-v8-btn.active .nav-v8-ico {
    transform: translate3d(0, -0.5px, 0) scale(1.04) !important;
}
.nav-v8-btn.active .nav-v8-ico svg {
    stroke-width: 2.25;
}
.nav-v8-btn.active .nav-v8-lbl {
    font-weight: 800 !important;
    opacity: 1 !important;
}

.nav-v8-badge {
    top: 3px !important;
    right: calc(50% - 17px) !important;
    min-width: 15px !important;
    height: 15px !important;
    line-height: 12px !important;
    font-size: 8px !important;
    box-shadow: none !important;
}

/* 3. Refined Tactile Motion & Calm Shadows Across All Interactive Cards & Buttons */
.btn-solid, .btn-primary-action, .btn-ghost, .btn-pill-sm, .btn-sm-pill, .home-v6-spot-card, .home-v6-qbtn, .home-v6-upg-btn, .orx-task-cta {
    transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.16s ease, opacity 0.16s ease, border-color 0.16s ease !important;
}
.home-v6-cta {
    box-shadow: 0 4px 14px rgba(6, 36, 28, 0.10) !important;
}
.home-v6-upg-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
}
.p-card {
    box-shadow: 0 1px 2px rgba(6, 36, 28, 0.035), 0 4px 16px rgba(6, 36, 28, 0.04) !important;
}
.home-v6-miner {
    box-shadow: 0 2px 6px rgba(6, 36, 28, 0.05), 0 14px 32px rgba(6, 36, 28, 0.10) !important;
}
#toastBanner {
    box-shadow: 0 10px 26px rgba(4, 22, 17, 0.30) !important;
    animation: auxToastDrop 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes auxToastDrop {
    from { opacity: 0; transform: translate3d(-50%, -8px, 0); }
    to   { opacity: 1; transform: translate3d(-50%, 0, 0); }
}



/* ============================================================================
 * SCROLL & VIEWPORT FIX (v10) — UNLOCKS NATIVE SCROLL ON TELEGRAM DESKTOP & MOBILE
 * ============================================================================ */
html {
    overflow-x: clip !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    overscroll-behavior-y: auto !important;
}

body, body.aux-pine-body {
    overflow: visible !important;
    height: auto !important;
    min-height: 100% !important;
    padding-bottom: 0 !important;
    overscroll-behavior-y: auto !important;
}

.aux-stage {
    overflow-x: clip;
    min-height: 100vh;
    padding-bottom: 0;
}

/* Generous bottom clearance inside every tab's porcelain sheet so last card scrolls cleanly above dock */
.porcelain-sheet {
    padding-bottom: 124px !important;
}

/* Remove permanent transform/will-change from tab containers so WebView scrolling is never trapped */
.tab-view.active {
    animation: auxViewFadeOnly 0.18s ease-out !important;
    will-change: auto !important;
    transform: none !important;
}
@keyframes auxViewFadeOnly {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Keep fixed bottom dock clean without transform containing-block interference */
.nav-v8-dock {
    transform: none !important;
    will-change: auto !important;
}

/* Sleek ultra-thin custom scrollbar for Telegram Desktop / Web */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(6, 36, 28, 0.24);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 36, 28, 0.42);
}



/* ============================================================================
 * WALLET VIEW v11 — BESPOKE WISE / CASH APP BANKING REDESIGN (WALLET ONLY)
 * Scoped 100% under .w11-scope so no other tab or navigation is affected
 * ============================================================================ */
.w11-hero {
    padding: 16px 18px 46px !important;
    background:
        radial-gradient(ellipse 85% 60% at 92% 10%, rgba(198, 255, 51, 0.14) 0%, transparent 56%),
        radial-gradient(ellipse 65% 50% at 8% 85%, rgba(0, 217, 126, 0.12) 0%, transparent 58%),
        var(--pine) !important;
}
.w11-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.w11-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.64);
}
.w11-settled-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.80);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3.5px 10px;
    border-radius: 999px;
}
.w11-settled-chip b { color: var(--lime); font-weight: 700; }
.w11-settled-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime-mint);
}
.w11-balance-big {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.06;
}
.w11-balance-usd {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 5px;
}

/* In-Hero Underline Segmented Tabs */
.w11-hero-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
}
.w11-htab {
    height: 36px !important;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.68) !important;
    font-family: var(--font-sans) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}
.w11-htab.active {
    background: var(--lime) !important;
    color: var(--pine) !important;
    font-weight: 800 !important;
}

/* Seam-Mounted Account & Verification Dock */
.w11-account-dock {
    position: relative;
    top: -24px;
    margin-bottom: -12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 12px 30px rgba(6, 36, 28, 0.10);
}
.w11-dock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.w11-dock-id {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.w11-ton-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--pine);
    color: var(--lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.w11-dock-title {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}
.w11-dock-sub {
    font-size: 11px;
    color: var(--ink-muted);
    margin-top: 2px;
}
.w11-tc-wrap {
    margin-bottom: 2px;
}

.w11-linked-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    padding: 9px 10px;
    border-radius: 15px;
    background: var(--porcelain);
    border: 1px solid var(--border);
}
.w11-addr-pill {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    padding: 0;
}
.w11-addr-lbl {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
}
.w11-addr-pill b {
    display: block;
    font-size: 12px;
    color: var(--ink);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.w11-ton-bal-box {
    text-align: right;
    padding-left: 8px;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}
.w11-ton-bal-box b {
    display: block;
    font-size: 12px;
    color: var(--emerald);
    margin-top: 1px;
}
.w11-sync-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Integrated Compact Verification Banner Inside Account Dock */
.w11-verify-strip {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-strong);
}
.w11-verify-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}
.w11-verify-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.w11-verify-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
}
.w11-verify-desc {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.4;
}
.w11-verify-btn {
    width: 100%;
    height: 38px;
    border-radius: 12px;
    border: 1.5px solid var(--pine);
    background: var(--lime-soft);
    color: var(--pine);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}
.w11-verify-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Cash-App / Wise Giant Centered Payout Composer */
.w11-composer-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 18px 16px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(6, 36, 28, 0.045);
}
.w11-composer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin-bottom: 10px;
}
.w11-big-input-stage {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px 6px;
}
.w11-giant-input {
    width: 100%;
    max-width: 230px;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.w11-giant-input::placeholder { color: #cbd5d0; }
.w11-giant-unit {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    color: var(--emerald);
    flex-shrink: 0;
}

.w11-net-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    padding: 7px 13px;
    margin: 4px auto 14px;
    border-radius: 999px;
    background: var(--porcelain);
    border: 1px solid var(--border);
    font-size: 11.5px;
}
.w11-net-lbl { color: var(--ink-muted); font-weight: 600; }
.w11-net-val { color: var(--emerald); font-weight: 800; }
.w11-net-usd { color: var(--ink-muted); font-size: 10.5px; }

/* Single Clean Scrollable Quick-Fill Chip Rail */
.w11-chip-rail {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.w11-chip-rail::-webkit-scrollbar { display: none; }
.w11-chip {
    flex-shrink: 0;
    height: 33px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--porcelain);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.w11-chip:active { background: var(--card-soft); }
.w11-chip.is-max {
    background: var(--pine);
    border-color: var(--pine);
    color: var(--lime);
}

/* Bank-Transfer Recipient Row */
.w11-recipient-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
    background: var(--porcelain);
    border: 1px solid var(--border);
    margin-bottom: 14px;
    cursor: pointer;
}
.w11-rec-badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--pine);
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.w11-rec-info {
    flex: 1;
    min-width: 0;
}
.w11-rec-lbl {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-muted);
}
.w11-rec-addr {
    display: block;
    font-size: 12px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.w11-rec-copy {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    color: var(--emerald);
    background: var(--emerald-soft);
    padding: 4px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

.w11-send-cta {
    height: 50px !important;
    font-size: 14.5px !important;
}

/* Compact 3-Column Rules Strip Below Composer */
.w11-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.w11-rule-cell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 8px;
    text-align: center;
}
.w11-rule-cell span {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}
.w11-rule-cell b {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--ink);
}

/* Bank Statement Ledger Card */
.w11-ledger-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(6, 36, 28, 0.045);
}
.w11-ledger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.w11-ledger-hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
    background: var(--porcelain);
    padding: 4px 10px;
    border-radius: 999px;
}
.w11-ledger-list .list-item-row {
    background: var(--porcelain);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 13px;
    margin-bottom: 8px;
}
.w11-ledger-list .list-item-row:last-child {
    margin-bottom: 0;
}
