/* ============================================================================
 * ORX NATIVE v47 — CLEAN HUMAN-CRAFTED FINTECH UI
 * Calm Matte Dark Surfaces · Crisp Hairline Borders · Zero Flashy Effects
 * ============================================================================ */

:root {
    --bg: #0b0c10;
    --surface: #14161d;
    --surface-2: #1b1e28;
    --well: #0f1117;
    --border: rgba(255, 255, 255, 0.068);
    --border-strong: rgba(255, 255, 255, 0.12);
    --accent: #38bdf8;
    --accent-solid: #2563eb;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --mint: #22c55e;
    --mint-soft: rgba(34, 197, 94, 0.12);
    --warn: #eab308;
    --warn-soft: rgba(234, 179, 8, 0.12);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);
    --text-primary: #f4f5f7;
    --text-heading: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --primary-bright: #38bdf8;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body[data-accent="aurora"]  { --accent: #34d399; --accent-solid: #059669; --accent-soft: rgba(52, 211, 153, 0.12); }
body[data-accent="gold"]    { --accent: #fbbf24; --accent-solid: #d97706; --accent-soft: rgba(251, 191, 36, 0.12); }
body[data-accent="violet"]  { --accent: #a78bfa; --accent-solid: #7c3aed; --accent-soft: rgba(167, 139, 250, 0.13); }
body[data-accent="crimson"] { --accent: #fb7185; --accent-solid: #e11d48; --accent-soft: rgba(251, 113, 133, 0.12); }

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

html, body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.orx-studio-body {
    padding-bottom: 94px;
    background-image: radial-gradient(ellipse 80% 34% at 50% -6%, rgba(56, 189, 248, 0.11) 0%, transparent 62%);
    background-attachment: fixed;
}

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

/* ============================================================================
 * 1. MAIN VIEWPORT & CORE LAYOUT
 * ============================================================================ */
.app-viewport {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 10px 16px 24px;
}

.tab-view { display: none; }
.tab-view.active { display: block; animation: softFadeUp 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes softFadeUp {
    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; }
.inline-flex-gap { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 4px 8px;
}

.surface-card {
    background: linear-gradient(180deg, rgba(24, 27, 36, 0.94) 0%, rgba(19, 21, 29, 0.96) 100%);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    transition: border-color 0.2s ease, transform 0.16s ease;
}
.well-box {
    background: var(--well);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 13px;
}

.eyebrow {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.card-h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
.sec-h3 { font-size: 14px; font-weight: 600; color: var(--text-heading); letter-spacing: -0.01em; }
.muted-sm { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.muted-p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.stat-md { font-size: 16.5px; font-weight: 700; color: var(--text-heading); }
.stat-box { padding: 14px; margin-bottom: 0; }
.sep { opacity: 0.4; }

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: softDotPulse 2.4s ease-out infinite;
}
@keyframes softDotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.50); }
    70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.status-pill, .pill-tag-green {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--mint);
    background: var(--mint-soft);
    padding: 3px 9px;
    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); }

.micro-pill {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}
.micro-pill.is-mint  { color: var(--mint); background: var(--mint-soft); }
.micro-pill.is-amber { color: var(--warn); background: var(--warn-soft); }

/* Clean Native Buttons */
.btn-solid, .btn-primary-action {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 13px;
    background: #ffffff;
    color: #0b0c10;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.14s ease, transform 0.12s ease;
}
.btn-solid:active, .btn-primary-action:active { transform: scale(0.985); opacity: 0.88; }
.btn-solid:disabled, .btn-primary-action:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s ease;
}
.btn-ghost:active { background: rgba(255, 255, 255, 0.06); }
.btn-ghost.is-accent { border-color: rgba(56, 189, 248, 0.34); color: var(--accent); background: var(--accent-soft); }
.btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-pill-sm, .btn-sm-pill {
    height: 31px;
    padding: 0 13px;
    border: none;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-heading);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-pill-sm:active, .btn-sm-pill:active { opacity: 0.8; }
.btn-pill-sm.is-done, .btn-sm-pill.is-done { background: var(--mint-soft); color: var(--mint); }

/* ============================================================================
 * 2. CLEAN MINIMAL SPLASH
 * ============================================================================ */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.2s ease;
}
.splash-overlay.fade-out { opacity: 0; pointer-events: none; }
.splash-box { width: 100%; max-width: 240px; text-align: center; }
.splash-emblem {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.splash-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent);
    animation: spinCW 1s linear infinite;
}
@keyframes spinCW { to { transform: rotate(360deg); } }
.custom-app-logo-img { width: 64px; height: 64px; max-width: 64px; max-height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.splash-title { font-size: 18px; font-weight: 700; color: #ffffff; }
.splash-sub { font-size: 12px; color: var(--text-muted); margin: 4px 0 16px; }
.splash-track { width: 100%; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 8px; }
.splash-fill { width: 12%; height: 100%; background: var(--accent); transition: width 0.2s ease; }
.splash-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); }

/* ============================================================================
 * 3. NATIVE TOP HEADER & OPTIONAL NOTICE BAR
 * ============================================================================ */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0 14px;
}
.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    min-width: 0;
    text-align: left;
}
.avatar-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.av-img, .av-txt {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    object-fit: cover;
    color: var(--accent);
    font-weight: 700;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-copy { display: flex; flex-direction: column; min-width: 0; }
.profile-name { font-size: 14px; font-weight: 600; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-tag-row { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.mini-emblem { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }

.top-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.spot-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-heading);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}
.icon-circle {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.notif-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.ticker-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 11px;
    margin-bottom: 14px;
    overflow: hidden;
}
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker-text { display: inline-block; font-size: 11px; color: var(--text-secondary); animation: marqueeRun 28s linear infinite; }
@keyframes marqueeRun { 0% { transform: translateX(4%); } 100% { transform: translateX(-100%); } }

/* ============================================================================
 * 4. HOME BALANCE HERO, SPARKLINE & 4 QUICK ACTIONS
 * ============================================================================ */
.hero-stage { text-align: center; padding: 6px 0 16px; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.hero-amount {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text-heading);
    line-height: 1.08;
    cursor: pointer;
}
.hero-unit { font-size: 15px; font-weight: 600; color: var(--text-muted); margin-left: 6px; }
.hero-subline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 6px;
}
.hero-subline b { color: var(--text-primary); font-weight: 600; }

.sparkline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 10px 14px;
    margin: 16px 0 16px;
    text-align: left;
    cursor: pointer;
}
.sparkline-card:active { background: var(--surface-2); }
.spark-left { flex-shrink: 0; }
.spark-pair { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-muted); }
.spark-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.spark-price-row b { font-size: 14px; font-weight: 600; color: var(--text-heading); }
.spark-delta { font-size: 11px; font-weight: 600; }
.spark-delta.is-up { color: var(--mint); }
.spark-delta.is-down { color: var(--danger); }
.spark-canvas-wrap { flex: 1; height: 38px; min-width: 116px; }
.spark-canvas { width: 100%; height: 38px; display: block; }

.action-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.act-tile {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
}
.act-tile:active .act-orb { opacity: 0.78; transform: scale(0.95); }
.act-orb {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, opacity 0.12s ease;
}
.act-orb.is-accent { background: var(--accent-solid); border-color: transparent; color: #ffffff; }

/* ============================================================================
 * 5. CLEAN HORIZONTAL CLOUD FARMING CONSOLE
 * ============================================================================ */
.farm-console { transition: border-color 0.2s ease; }
.farm-console.is-active { border-color: rgba(56, 189, 248, 0.30); box-shadow: 0 8px 28px rgba(37, 99, 235, 0.10); }
.farm-console.is-overclocked { border-color: rgba(234, 179, 8, 0.36); }

.farm-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}
.farm-ring-box {
    position: relative;
    width: 68px;
    height: 68px;
    min-width: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.farm-ring-svg {
    position: absolute;
    inset: 0;
    width: 68px;
    height: 68px;
    transform: rotate(-90deg);
    pointer-events: none;
}
.farm-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; }
.farm-ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.4s ease; }
.farm-console.is-active .farm-ring-fg { stroke: var(--mint); }

.farm-ring-core {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.farm-logo-img { width: 42px; height: 42px; max-width: 42px; max-height: 42px; border-radius: 50%; object-fit: cover; display: block; }

.farm-info-col { flex: 1; min-width: 0; }
.farm-status-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--well);
    border: 1px solid var(--border);
    padding: 2.5px 8px;
    border-radius: 999px;
}
.farm-console.is-active .farm-status-tag { color: var(--mint); background: var(--mint-soft); border-color: transparent; }
.farm-pct { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.farm-accrued { font-size: 20px; font-weight: 700; color: var(--text-heading); margin: 4px 0 2px; line-height: 1.15; }
.farm-meta-line { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); }

.thin-bar { width: 100%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.thin-bar-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.4s ease; }
.farm-console.is-active .thin-bar-fill { background: var(--mint); }

.seg-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--well);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.seg-3.is-4 { grid-template-columns: repeat(4, 1fr); }
.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: 500; color: var(--text-muted); margin-bottom: 3px; }
.seg-val { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-heading); }

.cta-split { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.btn-oc {
    height: 46px;
    min-width: 56px;
    padding: 0 12px;
    border-radius: 13px;
    background: var(--well);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-oc.is-oc-on { background: var(--warn-soft); border-color: rgba(234, 179, 8, 0.42); color: var(--warn); }

/* ============================================================================
 * 6. NATIVE GROUPED LIST & WALLET SEGMENTED SWITCHER
 * ============================================================================ */
.seg-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 12px;
}
.seg-pill-btn {
    height: 34px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.seg-pill-btn.active { background: var(--surface-2); color: var(--text-heading); }

.list-card { padding: 0; overflow: hidden; }
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
}
.list-row + .list-row { border-top: 1px solid var(--border); }
.lr-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.lr-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lr-ico.is-blue  { background: var(--accent-soft); color: var(--accent); }
.lr-ico.is-mint  { background: var(--mint-soft); color: var(--mint); }
.lr-ico.is-amber { background: var(--warn-soft); color: var(--warn); }
.lr-copy { min-width: 0; }
.lr-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-heading); }
.lr-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.lr-chev { font-size: 18px; color: var(--text-muted); line-height: 1; }

/* ============================================================================
 * 7. SWAP, WALLET & PARTNER CONTROLS
 * ============================================================================ */
.swap-stack { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.swap-card { background: var(--well); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; }
.swap-input { width: 100%; background: transparent; border: none; color: #ffffff; font-size: 24px; font-weight: 600; outline: none; }
.swap-out { font-size: 21px; font-weight: 600; color: var(--accent); }
.coin-chip {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: #ffffff;
    flex-shrink: 0;
}
.coin-chip.is-ton { background: var(--accent-soft); border-color: rgba(56, 189, 248, 0.22); color: var(--accent); }
.swap-mid { display: flex; justify-content: center; margin: -15px 0; z-index: 2; }
.swap-mid-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px solid var(--surface);
    color: var(--text-secondary);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preset-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.preset-btn {
    height: 33px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--well);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.preset-btn.active { background: #ffffff; border-color: #ffffff; color: #0b0c10; }

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

.tc-mount { display: flex; justify-content: center; }
.linked-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--well);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 13px;
    margin-top: 12px;
}

.field-lbl { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.copy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--well);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 13px;
    cursor: pointer;
}
.copy-bar span, .copy-bar code { font-size: 12px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.copy-bar small { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--accent); flex-shrink: 0; }

.pct-pills { display: inline-flex; gap: 4px; }
.pct-pills button {
    border: 1px solid var(--border);
    background: var(--well);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 3.5px 8px;
    border-radius: 7px;
    cursor: pointer;
}
.pct-pills button.is-max { color: var(--accent); border-color: rgba(56, 189, 248, 0.30); }
.amount-box { display: flex; align-items: center; gap: 10px; background: var(--well); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 13px; margin-bottom: 10px; }
.wd-preset-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.wd-preset-5 button { height: 31px; border-radius: 999px; border: 1px solid var(--border); background: var(--well); color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; font-weight: 600; cursor: pointer; }
.wd-preset-5 button.is-max { background: var(--accent-soft); border-color: rgba(56, 189, 248, 0.32); color: var(--accent); }
.net-bar { display: flex; align-items: center; justify-content: space-between; background: var(--well); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; margin-bottom: 14px; }

.partner-cta-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.btn-qr {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    border: 1px solid var(--border-strong);
    background: var(--well);
    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;
    background: #0d1017;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-frame img { width: 100%; height: 100%; border-radius: 10px; display: block; }

/* ============================================================================
 * 8. MARKET TERMINAL, VAULT WHEEL, NFT CARDS & SUPPORT CHAT
 * ============================================================================ */
.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; gap: 3px; background: var(--well); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.tf-pill, .mode-pill { border: none; background: transparent; color: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.tf-pill.active, .mode-pill.active { background: var(--surface-2); color: #ffffff; }
.chart-canvas-wrap { width: 100%; height: 210px; position: relative; touch-action: none; }
.chart-canvas { width: 100%; height: 210px; background: var(--well); border: 1px solid var(--border); border-radius: 12px; display: block; cursor: crosshair; }

.wheel-stage { position: relative; width: 240px; height: 240px; margin: 6px auto 16px; display: flex; align-items: center; justify-content: center; }
.wheel-pointer { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 10; }
.wheel-frame { position: relative; width: 232px; height: 232px; border-radius: 50%; padding: 4px; background: var(--border-strong); display: flex; align-items: center; justify-content: center; }
.wheel-svg { width: 100%; height: 100%; border-radius: 50%; display: block; }
.wheel-center-btn { position: absolute; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--bg); background: #ffffff; color: #0b0c10; font-size: 11.5px; font-weight: 700; cursor: pointer; }

.list-item-row, .kv-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--well);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 13px;
    margin-bottom: 7px;
    font-size: 12px;
}
.kv-lbl { color: var(--text-muted); }
.copy-action-link { color: var(--accent); font-weight: 600; cursor: pointer; }

.server-blade-running { background: var(--well); border: 1px solid var(--border); border-radius: 13px; padding: 11px 12px; margin-bottom: 8px; }
.blade-running-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blade-serial-tag { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--mint); background: var(--mint-soft); padding: 2px 7px; border-radius: 6px; margin-bottom: 3px; }
.blade-pulse-bar { height: 3px; width: 100%; border-radius: 99px; background: rgba(255,255,255,0.06); margin-top: 9px; overflow: hidden; }
.blade-pulse-fill { height: 100%; width: 100%; background: var(--mint); opacity: 0.7; }

.nft-thumb-square { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.blueprint-tier-card { background: var(--well); border: 1px solid var(--border); border-radius: 14px; padding: 13px; margin-bottom: 10px; }
.nft-artwork-showcase { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nft-hero-artwork { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.nft-artwork-meta { min-width: 0; flex: 1; }
.nft-edition-tag { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; margin-bottom: 3px; }
.nft-card-title { font-size: 14.5px; font-weight: 600; color: #ffffff; }
.nft-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.bp-roi-pill { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; color: var(--mint); background: var(--mint-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; color: var(--text-muted); margin-bottom: 5px; }
.bp-power-track { width: 100%; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bp-power-fill { height: 100%; background: var(--accent); }
.stats-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.stat-mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; text-align: center; }
.stat-mini-lbl { font-size: 9.5px; color: var(--text-muted); }
.stat-mini-val { font-size: 11.5px; font-weight: 600; color: #ffffff; margin-top: 2px; }

.sup-chat-shell { display: flex; flex-direction: column; padding: 14px; }
.sup-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.sup-agent-info { display: flex; align-items: center; gap: 10px; }
.sup-agent-avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.sup-online-dot { position: absolute; bottom: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 2px solid var(--surface); }
.sup-agent-title { font-size: 14px; font-weight: 600; color: #ffffff; }
.sup-agent-sub { font-size: 11px; color: var(--text-muted); }
.sup-messages-area { height: 300px; overflow-y: auto; background: var(--well); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.sup-msg-row { display: flex; width: 100%; }
.sup-msg-row.is-user { justify-content: flex-end; }
.sup-msg-row.is-admin { justify-content: flex-start; }
.sup-bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; word-break: break-word; }
.sup-msg-row.is-user .sup-bubble { background: var(--accent-solid); color: #ffffff; border-bottom-right-radius: 4px; }
.sup-msg-row.is-admin .sup-bubble { background: var(--surface); border: 1px solid var(--border); color: #ffffff; border-bottom-left-radius: 4px; }
.sup-sender-tag { font-size: 9.5px; font-weight: 700; color: var(--accent); 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: 9px; }
.sup-q-chip { border: 1px solid var(--border); background: var(--well); color: var(--text-secondary); font-size: 11px; font-weight: 500; 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: 42px; background: var(--well); border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 13px; color: #ffffff; font-size: 13.5px; outline: none; }
.sup-send-btn { width: 42px; height: 42px; border: none; border-radius: 12px; background: #ffffff; color: #0b0c10; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ============================================================================
 * 9. MODALS, SPONSOR SHEET & LANGUAGE PICKER
 * ============================================================================ */
.sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.sheet-backdrop.active { display: flex; animation: fadeInMask 0.18s ease; }
@keyframes fadeInMask { from { opacity: 0; } to { opacity: 1; } }
.sheet-card {
    width: 100%;
    max-width: 392px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    animation: sheetLift 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sheetLift { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sheet-icon { width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.sheet-icon.is-blue  { background: var(--accent-soft); color: var(--accent); }
.sheet-icon.is-green { background: var(--mint-soft); color: var(--mint); }
.sheet-icon.is-red   { background: var(--danger-soft); color: var(--danger); }
.sheet-title { font-size: 17.5px; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.sheet-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.sheet-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.icon-close-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--well); color: var(--text-secondary); font-size: 12px; cursor: pointer; }
.sheet-banner-img { margin-bottom: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.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: 250px; overflow-y: auto; margin-bottom: 14px; }
.apex-sp-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--well); border: 1px solid var(--border); border-radius: 13px; padding: 10px 12px; }
.apex-sp-card.is-joined { border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.05); }
.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: 10px; object-fit: cover; border: 1px solid var(--border); background: var(--accent-soft); color: var(--accent); 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(--surface); }
.apex-sp-status-dot.is-ok { background: var(--mint); }
.apex-sp-meta { min-width: 0; }
.apex-sp-title { font-size: 13px; font-weight: 600; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apex-sp-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apex-sp-join-btn { height: 30px; padding: 0 12px; border: none; border-radius: 999px; background: #ffffff; color: #0b0c10; font-size: 11.5px; font-weight: 600; 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: 600; color: var(--mint); background: var(--mint-soft); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }

.search-field { display: flex; align-items: center; gap: 8px; background: var(--well); border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px; margin-bottom: 10px; }
.search-field input { width: 100%; background: transparent; border: none; color: #ffffff; font-size: 13.5px; 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 12px; border-radius: 11px; background: var(--well); border: 1px solid var(--border); cursor: pointer; }
.lang-item-row.is-active { border-color: rgba(56, 189, 248, 0.4); background: var(--accent-soft); }
.lang-code-pill { font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }

/* ============================================================================
 * 10. NATIVE DOCKED BOTTOM TAB BAR (TELEGRAM / IOS STANDARD)
 * ============================================================================ */
.tabbar-wrap {
    display: none;
    position: fixed;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    max-width: 416px;
    margin: 0 auto;
    z-index: 120;
}
.tabbar-inner {
    background: rgba(20, 22, 30, 0.84);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top-color: rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 5px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.tabbar-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}
.tabbar-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    z-index: 0;
}
.tabbar-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 2px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}
.tabbar-btn:active { transform: scale(0.93); }
.tabbar-btn svg { width: 19px; height: 19px; transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.tabbar-btn.active { color: #ffffff; font-weight: 600; }
.tabbar-btn.active svg { color: var(--accent); transform: translateY(-1px); }

/* ============================================================================
 * 11. TOAST & HELPERS
 * ============================================================================ */
#toastBanner {
    display: none;
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 500;
    z-index: 9999;
    max-width: 92%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.empty-list-msg { text-align: center; font-size: 12px; color: var(--text-muted); padding: 14px 0; }
.field-box { background: var(--well); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.field-top-row { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-muted); margin-bottom: 4px; }
.mt-10 { margin-top: 10px; }

/* ============================================================================
 * ORX v49 — SUBTLE FINTECH SURFACE REFINEMENTS & SOCIAL PILLS
 * ============================================================================ */
.social-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.social-pill-btn {
    flex: 1;
    min-width: 96px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--border-strong);
    background: var(--well);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}
.social-pill-btn:active {
    transform: scale(0.97);
    background: var(--surface-2);
    border-color: rgba(56, 189, 248, 0.35);
}

.act-orb {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.act-orb.is-accent {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}

.sparkline-card {
    transition: border-color 0.18s ease, background 0.18s ease;
}
.sparkline-card:hover {
    border-color: var(--border-strong);
}

.tabbar-btn.active::after {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 99px;
    background: var(--accent);
    margin-top: 1px;
}

/* ============================================================================
 * ORX v50 — ANTI-SELECT & ANTI-SCRAPE PROTECTION
 * ============================================================================ */
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;
}
