:root {
  color-scheme: dark;
  --bg: #101112; --bg2: #181b1d; --bg3: #25282a;
  --gold: #e9b85a; --gold-hi: #f6d894; --gold-dim: #746040;
  --text: #f3f3ee; --text-muted: #a1a8a8;
  --green: #80ddb5; --red: #f58b86; --amber: #e6bc70; --cyan: #90bbaa;
  --blue: #b9985c; --blue-hi: #e9c680; --font-number: 'IBM Plex Sans', sans-serif;
  --border: rgba(224, 230, 219, .11); --border-hi: rgba(233, 184, 90, .32);
  --radius: .65rem; --radius-lg: 1rem; --transition: .2s ease;
  --shadow: 0 12px 35px rgba(0, 0, 0, .25); --shadow-lg: 0 25px 80px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: radial-gradient(ellipse at 90% 0%, #292820 0, transparent 45%), var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.65; isolation: isolate; }
body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(214, 202, 167, .023) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 202, 167, .023) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; z-index: 0; }
#threejs-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
#app:focus { outline: none; }
::selection { background: #d9b675; color: #080b0f; }
h1, h2, h3, h4, strong { color: var(--text); }
h1, h2, h3 { font-family: 'Outfit', sans-serif; line-height: 1.25; letter-spacing: -.045em; }
h1 { font-size: 2.5rem; margin: 0 0 1rem; font-weight: 600; }
h2 { font-size: 1.2rem; margin: 0 0 .8rem; font-weight: 500; }
h3 { font-size: 1rem; margin: 0 0 .65rem; font-weight: 500; }
p { margin: 0 0 .85rem; overflow-wrap: anywhere; }
code { font-family: Consolas, monospace; color: var(--gold-hi); overflow-wrap: anywhere; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; background: var(--gold); color: var(--bg); padding: .7rem 1rem; z-index: 99999; border-radius: .4rem; }
.skip-link:focus { top: 1rem; color: var(--bg); }
.eyebrow { display: block; font-size: .63rem; font-weight: 600; letter-spacing: .18em; color: var(--gold); line-height: 1.7; }
.brand-dot { color: var(--gold); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 252px; padding: 30px 20px 24px; flex-direction: column; background: linear-gradient(180deg, #1a1c1d, #111314); border-right: 1px solid var(--border); overflow-y: auto; }
.sidebar-logo { display: flex; align-items: center; gap: 13px; padding: 0 12px; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 39px; height: 43px; border: 1px solid var(--border-hi); border-radius: 9px; background: linear-gradient(145deg, rgba(233, 184, 90, .12), transparent); color: var(--gold); }
.brand-mark .icon { width: 29px; height: 29px; }
.sidebar-logo strong { font-family: 'Outfit', sans-serif; font-size: 1.08rem; font-weight: 600; letter-spacing: -.04em; }
.sidebar-logo small { display: block; color: var(--text-muted); font-size: .52rem; letter-spacing: .23em; margin-top: 1px; }
.nav-caption { color: #808c98; font-size: .57rem; letter-spacing: .18em; margin: 48px 14px 16px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 7px; }
.sidebar-nav-link { display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 12px 14px; color: var(--text-muted); border: 1px solid transparent; border-radius: 8px; font-size: .8rem; }
.sidebar-nav-link small { margin-left: auto; font-size: .54rem; opacity: .45; }
.sidebar-nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.sidebar-nav-link.active { color: var(--gold-hi); background: linear-gradient(100deg, rgba(233, 184, 90, .13), rgba(233, 184, 90, .025)); border-color: rgba(233, 184, 90, .18); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-nav-link.active small { opacity: 1; color: var(--gold); }
.sidebar-note { margin: auto 10px 36px; padding: 36px 5px 0; }
.sidebar-note > strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 500; letter-spacing: -.06em; margin: 10px 0; }
.sidebar-note > strong span { color: var(--gold); font-weight: 300; margin: 0 4px; }
.sidebar-note p { font-size: .72rem; color: var(--text-muted); line-height: 1.9; }
.sidebar-note a { font-size: .67rem; border-bottom: 1px solid var(--border-hi); padding: 8px 0; display: block; }
.sidebar-note a span { float: right; }
.sidebar-footer { display: flex; gap: 11px; border-top: 1px solid var(--border); padding: 22px 9px 0; align-items: center; }
.sidebar-footer > div { min-width: 0; }
.account-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border: 1px solid var(--border-hi); background: #23231f; color: var(--gold); border-radius: 50%; font-size: .73rem; }
.sidebar-user-email { font-size: .66rem; max-width: 145px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; color: var(--text); }
.logout-button { background: none; border: 0; color: var(--text-muted); font-size: .63rem; padding: 3px 0; min-height: 30px; }
.logout-button:hover { color: var(--gold); }
#main-content { position: relative; z-index: 1; margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
body[data-session="guest"] #main-content { margin-left: 0; }
.workspace-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4.5%; min-height: 79px; border-bottom: 1px solid var(--border); }
.workspace-location, .workspace-controls { display: flex; align-items: center; gap: 17px; min-width: 0; }
.workspace-location { font-size: .73rem; color: var(--text-muted); }
.workspace-brand { font-family: 'Outfit', sans-serif; color: var(--text); font-size: .9rem; font-weight: 600; }
body[data-session="client"] .workspace-brand { display: none; }
.workspace-divider { color: var(--gold-dim); }
.environment-label { font-size: .57rem; letter-spacing: .13em; color: var(--text-muted); }
.scene-motion { background: rgba(12, 17, 23, .65); border: 1px solid var(--border); border-radius: 30px; color: var(--text-muted); padding: 8px 14px; min-height: 36px; font-size: .65rem; }
.scene-motion::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; background: var(--gold); border-radius: 50%; vertical-align: middle; }
.scene-motion[aria-pressed="true"]::before { background: var(--text-muted); }
.scene-motion:hover { border-color: var(--border-hi); color: var(--gold-hi); }
#app { width: 100%; max-width: 1320px; padding: 36px 4.5% 42px; margin: 0 auto; flex: 1; scroll-margin-top: 25px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 21px 4.5%; border-top: 1px solid var(--border); font-size: .56rem; letter-spacing: .07em; color: var(--text-muted); }
.workspace-footer > span:first-child { color: var(--gold); }
.mobile-topbar { position: relative; z-index: 5; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.nav-brand { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text); }
.bottom-tabbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 100; background: rgba(12, 17, 22, .95); border-top: 1px solid var(--border); backdrop-filter: blur(18px); justify-content: space-around; padding: 9px 8px calc(9px + env(safe-area-inset-bottom)); }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; min-height: 46px; color: var(--text-muted); padding: 4px 0; border-radius: 7px; }
.tab-label { font-size: .58rem; }
.tab-item.active { color: var(--gold-hi); background: rgba(233, 184, 90, .075); }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 13px; }
.page-head-text { min-width: 0; max-width: 100%; }
.page-sub { font-size: .76rem; color: var(--text-muted); margin: 7px 0 0; }
.mono-email { color: var(--text); }
.dashboard-sync { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dashboard-sync-note { font-size: .64rem; color: var(--text-muted); }
#dashboard-refresh.is-busy { cursor: progress; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; min-height: 259px; gap: 20px; padding: 24px 0 34px; }
.page-hero-copy { min-width: 0; }
.page-hero h1 { font-size: clamp(2.3rem, 3.55vw, 4.1rem); line-height: 1.13; font-weight: 500; letter-spacing: -.065em; margin: 15px 0 18px; }
.page-hero h1 em, .auth-intro h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--gold-hi); letter-spacing: -.035em; }
.page-hero p { color: var(--text-muted); font-size: .82rem; max-width: 370px; margin: 0; }
.page-hero-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; border-left: 1px solid var(--border-hi); min-height: 210px; }
.page-hero-art::before { content: ''; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(91, 140, 255, .13); border-radius: 50%; pointer-events: none; }
.page-hero-art [data-three-widget] { width: 100%; height: 205px; }
[data-three-widget] canvas { display: block; width: 100%; height: 100%; }
.art-caption { font-size: .5rem; letter-spacing: .21em; color: var(--gold); opacity: .85; }
.trading-dashboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; padding: 0 0 28px; }
.trading-dashboard-title { min-width: 0; }
.trading-dashboard-title .eyebrow { font-size: .57rem; }
.trading-dashboard-title h1 { font-size: clamp(1.9rem, 2.6vw, 2.8rem); letter-spacing: -.05em; margin: 9px 0 6px; font-weight: 500; }
.trading-dashboard-title h1 > span { color: var(--gold); }
.trading-dashboard-title p { font-size: .8rem; color: var(--text-muted); margin-bottom: 7px; }
.dashboard-owner { display: block; font-size: .65rem; color: var(--text-muted); overflow-wrap: anywhere; }
.trading-dashboard-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; padding-top: 5px; }
.dashboard-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dashboard-actions .btn-primary, .dashboard-actions .btn-outline { font-size: .7rem; padding: 10px 14px; }
.dashboard-actions .icon { width: 16px; height: 16px; }
.bot-management { margin: 30px 0 24px; }
.bot-management-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bot-management-heading h2 { margin: 0; font-size: 1.1rem; }
.bot-management-heading > span { font-size: .63rem; color: var(--text-muted); }
.bot-management-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.bot-management-grid .card { margin: 0; padding: 22px; min-width: 0; }
.bot-license-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 16px; }
.bot-license-art { text-align: center; background: radial-gradient(ellipse, rgba(233, 184, 90, .11), transparent 70%); }
.bot-license-art [data-three-widget] { height: 110px; width: 100%; }
.bot-license-art > span { font-size: .45rem; letter-spacing: .13em; color: var(--gold); }
.engine-console { --engine-log-height: 22px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(128, 221, 181, .16); border-radius: 7px; background: linear-gradient(110deg, #17201c, #15191a); pointer-events: none; overflow: hidden; }
.engine-console-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .5rem; letter-spacing: .07em; color: var(--green); }
.engine-console-head b { font-weight: 400; color: var(--gold-dim); padding: 0 4px; }
.engine-log-window { height: var(--engine-log-height); overflow: hidden; margin-top: 5px; }
.engine-log-track { animation: engine-log-cycle 6s steps(1, end) infinite; }
.engine-log { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: var(--engine-log-height); }
.engine-log > span { font-family: Consolas, monospace; font-size: .5rem; color: var(--text-muted); }
.engine-log > code { font-size: .61rem; color: #c6d3c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.engine-log > i { font-family: Consolas, monospace; font-size: .5rem; font-style: normal; color: var(--gold); }
.engine-log:first-child > i { color: var(--green); }
.bot-license-card .engine-console { grid-column: 1 / -1; padding: 9px 10px; }
.bot-license-card .engine-log { grid-template-columns: 44px minmax(0, 1fr) auto; }
.bot-license-card .engine-log > code { font-size: .57rem; }
body[data-motion="paused"] .engine-log-track { animation-play-state: paused; }
@keyframes engine-log-cycle {
  0%, 32% { transform: translateY(0); }
  33%, 65% { transform: translateY(calc(-1 * var(--engine-log-height))); }
  66%, 100% { transform: translateY(calc(-2 * var(--engine-log-height))); }
}
.bot-license-info h3 { font-size: 1.05rem; margin: 9px 0; }
.bot-license-info h3 > span { display: block; color: var(--text-muted); font-size: .65rem; margin-top: 4px; letter-spacing: .05em; }
.bot-license-info > a, .bot-account-card > a, .bot-term-card > a { display: flex; align-items: center; gap: 8px; font-size: .67rem; margin-top: 18px; }
.bot-management-grid a .icon { width: 14px; height: 14px; }
.bot-account-card > strong, .bot-term-card > strong { display: block; font-family: var(--font-number); font-size: 1.8rem; font-weight: 500; margin: 11px 0 8px; overflow-wrap: anywhere; }
.bot-term-card > strong { color: var(--gold-hi); }
.bot-term-card > strong small { font-family: 'DM Sans', sans-serif; font-size: .65rem; color: var(--text-muted); font-weight: 400; margin-left: 8px; }
.bot-account-card > p, .bot-term-card > p { font-size: .67rem; color: var(--text-muted); margin: 0; }
.bot-term-card .expiry-progress { margin: 12px 0; }
.bot-term-card .expiry-caption { font-size: .5rem; }
.card, .mega-stat, .plan-card-premium, .support-contact-card, .payment-instructions, .license-hero, .key-reveal-banner { background: linear-gradient(145deg, rgba(32, 35, 36, .98), rgba(23, 26, 27, .98)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px; box-shadow: 0 12px 36px rgba(0, 0, 0, .13), inset 0 1px 0 rgba(255, 255, 236, .025); }
.card { position: relative; }
.card-title { font-size: .66rem; font-weight: 600; color: var(--blue-hi); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.card-head .card-title { margin-bottom: 0; }
.card-foot { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.card-value { font-size: 1.6rem; color: var(--gold-hi); }
.card-enter { animation: rise .55s ease both; }
.card-enter:nth-child(2) { animation-delay: .06s; }
.card-enter:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.mega-stat-row, .dash-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.mega-stat { margin: 0; min-width: 0; padding: 23px; transition: border-color var(--transition), transform var(--transition); }
.mega-stat-icon { display: grid; place-items: center; color: var(--gold); background: rgba(91, 140, 255, .06); border: 1px solid var(--border-hi); width: 37px; height: 37px; border-radius: 10px; margin-bottom: 18px; }
.mega-stat-label, .stat-label, .meta-label { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .09em; }
.mega-stat-value { font-family: var(--font-number); color: var(--text); font-size: 1.65rem; font-weight: 500; line-height: 1.4; margin-top: 10px; overflow-wrap: anywhere; }
.mega-stat-sub { font-size: .75rem; color: var(--text-muted); margin-top: 9px; overflow-wrap: anywhere; }
.stat-grid, .meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card, .meta-item { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; background: rgba(7, 15, 30, .5); }
.stat-value, .meta-value { display: block; font-size: 1.5rem; color: var(--gold-hi); overflow-wrap: anywhere; }
.stat-sub { color: var(--text-muted); font-size: .72rem; }
.meta-value { font-size: .9rem; }
.telemetry-panel { padding: 24px; background: linear-gradient(135deg, #1b1e1f, #171a1b); box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }
.telemetry-panel .card-head { margin-bottom: 22px; }
.telemetry-panel .card-title { margin-bottom: 5px; font-size: .58rem; }
.telemetry-panel h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.account-panel-title { display: flex; gap: 12px; align-items: center; }
.account-panel-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: var(--gold); background: rgba(233, 184, 90, .08); border: 1px solid var(--border-hi); }
.telemetry-status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; font-size: .62rem; font-weight: 600; letter-spacing: .1em; white-space: nowrap; }
.telemetry-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.telemetry-panel[data-state="online"] .telemetry-status { color: var(--green); background: rgba(128, 221, 181, .07); border-color: rgba(128, 221, 181, .24); }
.telemetry-panel[data-state="offline"] .telemetry-status, .telemetry-panel[data-state="unavailable"] .telemetry-status { color: var(--amber); border-color: var(--border-hi); }
.telemetry-values { display: grid; grid-template-columns: 1.25fr 1.05fr 1fr 1fr; gap: 12px; }
.telemetry-metric { display: flex; flex-direction: column; position: relative; padding: 20px 17px; min-height: 198px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; container-type: inline-size; background: #222627; }
.metric-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.metric-heading .icon { width: 16px; height: 16px; color: var(--gold); opacity: .75; }
.telemetry-amount { display: flex; flex-direction: column; gap: 6px; margin: 24px 0 17px; }
.telemetry-currency { font-size: .6rem; color: var(--text-muted); letter-spacing: .13em; min-height: 1em; }
.telemetry-value { display: block; font-family: var(--font-number); color: var(--text); font-size: min(2.8rem, 23cqw); font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.055em; white-space: nowrap; }
.amount-fraction { font-size: .54em; font-weight: 400; letter-spacing: -.02em; opacity: .7; }
.telemetry-value[data-size="wide"] { font-size: min(2rem, 16cqw); }
.telemetry-value[data-size="long"] { font-size: min(1.5rem, 11cqw); }
.telemetry-metric[data-metric="balance"] { order: 1; padding: 20px; background: radial-gradient(ellipse at 0 0, rgba(233, 184, 90, .12), transparent 85%), #292b25; border-color: rgba(233, 184, 90, .3); }
.telemetry-metric[data-metric="balance"]::after { content: ''; position: absolute; right: 15px; bottom: 16px; width: 15px; height: 15px; border-right: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim); pointer-events: none; }
.telemetry-metric[data-metric="balance"] .stat-label { color: var(--gold-hi); }
.telemetry-metric[data-metric="balance"] .telemetry-value { font-size: min(3.3rem, 24cqw); }
.telemetry-metric[data-metric="balance"] .telemetry-value[data-size="wide"] { font-size: min(2.4rem, 17cqw); }
.telemetry-metric[data-metric="balance"] .telemetry-value[data-size="long"] { font-size: min(1.8rem, 12cqw); }
.telemetry-metric[data-metric="todayPnl"] { order: 2; background: linear-gradient(145deg, #28332e, #202726); border-color: rgba(128, 221, 181, .18); }
.telemetry-metric[data-metric="todayPnl"]:has(.pnl-negative) { background: linear-gradient(145deg, #352a29, #272224); border-color: rgba(245, 139, 134, .2); }
.telemetry-metric[data-metric="equity"] { order: 3; }
.telemetry-metric[data-metric="openPnl"] { order: 4; }
.telemetry-value.pnl-positive { color: var(--green); }
.telemetry-value.pnl-negative { color: var(--red); }
.telemetry-detail { display: block; font-size: .68rem; color: var(--text-muted); line-height: 1.65; }
.telemetry-metric > .telemetry-detail { margin-top: auto; }
.telemetry-panel[data-state="offline"] .telemetry-amount, .telemetry-panel[data-state="offline"] .performance-values { opacity: .65; }
.performance-panel { margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--border); }
.performance-head { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.performance-head h3 { font-size: 1rem; margin: 0; }
.performance-head > span { font-size: .68rem; color: var(--text-muted); }
.performance-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.performance-metric { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; min-width: 0; container-type: inline-size; background: rgba(17, 21, 21, .4); }
.performance-metric:last-child { border-color: rgba(233, 184, 90, .22); background: linear-gradient(115deg, rgba(233, 184, 90, .08), rgba(17, 21, 21, .4)); }
.performance-metric .telemetry-amount { margin: 10px 0 0; }
.performance-metric .telemetry-value { font-size: 1.85rem; }
.performance-metric .telemetry-value[data-size="wide"] { font-size: min(1.55rem, 15cqw); }
.performance-metric .telemetry-value[data-size="long"] { font-size: min(1.25rem, 12cqw); }
.performance-funding { margin: 16px 0 7px; font-size: .72rem; color: var(--text-muted); }
.telemetry-footer { margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--border); }
.telemetry-message { font-size: .76rem; margin: 0 0 8px; }
.telemetry-scope { color: var(--text-muted); font-size: .7rem; margin-bottom: 7px; }
.telemetry-timestamps { display: flex; justify-content: space-between; gap: 7px 16px; flex-wrap: wrap; color: var(--text-muted); font-size: .68rem; }
.telemetry-age { color: var(--text-muted); }
.setup-panel h2 { font-size: 1rem; margin: 0; }
.setup-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; list-style: none; margin: 0; padding: 0; }
.setup-item { display: flex; gap: 12px; min-width: 0; }
.setup-item > div { min-width: 0; flex: 1; }
.setup-number { color: var(--gold); font-size: .62rem; padding-top: 3px; }
.setup-step-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; }
.setup-step-head h3 { font-size: .76rem; margin: 0; }
.setup-status { font-size: .56rem; color: var(--amber); letter-spacing: .06em; text-transform: uppercase; }
.setup-item[data-state="done"] .setup-status { color: var(--green); }
.setup-detail { color: var(--text-muted); font-size: .67rem; margin: 8px 0 0; }
.setup-help { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 12px; font-size: .72rem; }
.setup-help summary { color: var(--gold); cursor: pointer; padding: 6px 0; }
.setup-help p { color: var(--text-muted); margin-top: 12px; }
.btn-primary, .btn-outline, .btn-danger { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 11px 21px; font-size: .78rem; font-weight: 600; line-height: 1.4; border-radius: 7px; border: 1px solid transparent; transition: background var(--transition), border-color var(--transition), box-shadow var(--transition); text-align: center; }
.btn-primary { background: linear-gradient(115deg, #f1ce83, #d9a544); border-color: #f0cc80; color: #20190d; box-shadow: inset 0 1px 0 rgba(255, 255, 236, .25); }
.btn-primary:hover { background: #f5d58d; color: #20190d; box-shadow: 0 6px 22px rgba(233, 184, 90, .12); }
.btn-outline { background: rgba(255, 255, 236, .025); border-color: var(--border-hi); color: var(--text); }
.btn-outline:hover { background: rgba(233, 184, 90, .09); color: var(--gold-hi); }
.btn-danger { color: #221112; background: var(--red); }
.btn-danger:hover { color: #221112; background: #f5b0b2; }
.btn-sm { font-size: .68rem; min-height: 38px; padding: 9px 14px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: .7rem; font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], select, textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid rgba(204, 216, 226, .15); border-radius: 7px; background: rgba(7, 12, 17, .6); padding: 12px 14px; color: var(--text); font-size: .84rem; appearance: none; transition: border-color var(--transition), box-shadow var(--transition); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(91, 140, 255, .08); }
input::placeholder { color: #6e7b87; }
input:disabled { opacity: .6; }
select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #d9b675 50%), linear-gradient(135deg, #d9b675 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg2); color: var(--text); }
textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: .76rem; color: var(--red); margin-top: 8px; overflow-wrap: anywhere; }
.form-error:empty { margin: 0; }
.badge, .plan-badge { display: inline-block; padding: 5px 10px; border: 1px solid var(--border); border-radius: 5px; font-size: .58rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.4; }
.badge-active, .badge-approved { color: var(--green); background: rgba(136, 214, 176, .08); border-color: rgba(136, 214, 176, .23); }
.badge-expired, .badge-rejected { color: var(--red); background: rgba(239, 146, 149, .07); border-color: rgba(239, 146, 149, .22); }
.badge-pending { color: var(--amber); background: rgba(91, 140, 255, .07); border-color: var(--border-hi); }
.badge-none { color: var(--text-muted); background: rgba(204, 216, 226, .035); }
.table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: .76rem; }
th { text-align: left; color: var(--text-muted); background: rgba(8, 11, 15, .35); font-size: .58rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 14px 18px; }
td { padding: 17px 18px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
tbody tr:hover { background: rgba(91, 140, 255, .035); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.empty-state { text-align: center; padding: 25px 15px; color: var(--text-muted); font-size: .8rem; }
.empty-state p { max-width: 440px; margin: 0 auto 15px; }
.empty-icon { display: block; font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.expiry-progress { margin-top: 18px; }
.expiry-caption { display: flex; gap: 5px 10px; flex-wrap: wrap; justify-content: space-between; color: var(--text-muted); font-size: .58rem; margin-bottom: 8px; }
.expiry-bar, .progress-bar { height: 4px; background: rgba(255, 255, 255, .05); border-radius: 5px; overflow: hidden; }
.expiry-fill, .progress-fill { height: 100%; border-radius: 5px; background: var(--gold); }
.expiry-ok { background: var(--green); }
.expiry-warn { background: var(--amber); }
.expiry-expired { background: var(--red); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.plan-card-premium { position: relative; display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 30px 25px; margin: 0; background: linear-gradient(145deg, #2a2c25, #181b1d 70%); transition: transform var(--transition), border-color var(--transition); }
.plan-card-premium > div:nth-child(2) { padding-right: 32px; min-height: 26px; }
.plan-badge { border-radius: 30px; font-size: .53rem; letter-spacing: .08em; padding: 6px 10px; }
.plan-badge-sub { color: var(--gold); border-color: var(--border-hi); }
.plan-badge-profit { color: var(--cyan); border-color: rgba(142, 190, 203, .3); }
.plan-name { font-family: 'Outfit', sans-serif; }
.plan-price-big { color: var(--gold-hi); font-family: 'Outfit', sans-serif; font-size: 3.3rem; font-weight: 500; letter-spacing: -.07em; line-height: 1.25; }
.plan-price-currency { color: var(--text-muted); font-size: .68rem; margin-right: 9px; }
.plan-feature-list { list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.plan-feature-list li { display: flex; gap: 10px; color: var(--text-muted); font-size: .73rem; }
.plan-feature-list li::before { content: '✓'; color: var(--gold); }
.payment-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.payment-grid > div { min-width: 0; }
.payment-instructions { font-size: .83rem; line-height: 1.9; background: linear-gradient(140deg, #292b25, #181b1d); }
.payment-instructions h3 { color: var(--gold-hi); margin-bottom: 22px; }
.payment-instructions p { margin-bottom: 22px; color: var(--text-muted); }
.payment-instructions strong { color: var(--gold); }
.payment-steps { display: flex; gap: 0; counter-reset: payment-step; margin: 0 0 30px; padding: 20px 5px; border-block: 1px solid var(--border); }
.payment-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; text-align: center; }
.payment-step::before { counter-increment: payment-step; content: '0' counter(payment-step); width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--bg2); color: var(--text-muted); font-size: .57rem; z-index: 1; }
.payment-step::after { content: ''; position: absolute; top: 16px; left: 50%; width: 100%; height: 1px; background: var(--border); }
.payment-step:last-child::after { display: none; }
.payment-step.done::before { color: var(--green); border-color: rgba(136, 214, 176, .4); }
.payment-step.active::before { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.payment-step-label { margin-top: 10px; font-size: .6rem; color: var(--text-muted); }
.payment-step.active .payment-step-label { color: var(--gold); }
.license-key-wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--border-hi); background: var(--bg); padding: 17px; border-radius: var(--radius); }
.license-key-val { flex: 1; min-width: 0; font-family: Consolas, monospace; color: var(--gold-hi); overflow-wrap: anywhere; }
.reveal-btn { color: var(--gold); background: none; border: 0; padding: 10px; font-size: .7rem; }
#new-license-key { color: var(--gold-hi); }
#diagnose-result { overflow-wrap: anywhere; }
#broker-dropdown { box-shadow: var(--shadow-lg); }
.broker-option { min-height: 42px; }
.timeline { margin: 20px 0 0; list-style: none; padding: 0; }
.timeline-item { padding: 0 0 25px 24px; border-left: 1px solid var(--border-hi); position: relative; }
.timeline-item::before { content: ''; width: 7px; height: 7px; position: absolute; left: -4px; top: 6px; background: var(--gold-dim); border-radius: 50%; }
.timeline-item.done::before { background: var(--green); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-title { font-size: .77rem; }
.timeline-detail { color: var(--text-muted); font-size: .68rem; margin-top: 5px; }
.activation-guide h2 { font-size: 1.25rem; }
.steps { list-style: none; padding: 0; counter-reset: activation; }
.steps > li { counter-increment: activation; display: flex; gap: 18px; margin: 0 0 28px; }
.steps > li::before { content: '0' counter(activation); display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--border-hi); border-radius: 8px; color: var(--gold); font-size: .62rem; }
.steps > li > div { min-width: 0; flex: 1; }
.activation-steps { margin-top: 30px; font-size: .78rem; }
.activation-steps h3 { font-size: .86rem; margin-bottom: 12px; }
.activation-steps p { color: var(--text-muted); }
.activation-host { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: rgba(8, 11, 15, .6); border: 1px solid var(--border); padding: 13px; margin: 10px 0; border-radius: 7px; }
.activation-host code { min-width: 0; }
.activation-inputs { border-left: 2px solid var(--gold); background: rgba(8, 11, 15, .5); padding: 17px; margin: 16px 0; }
.activation-inputs dt { color: var(--gold); font-weight: 600; }
.activation-inputs dd { margin: 5px 0 15px; overflow-wrap: anywhere; }
.activation-inputs > div:last-child dd { margin-bottom: 0; }
.activation-note { padding: 20px; border: 1px solid var(--border-hi); border-radius: var(--radius); background: rgba(91, 140, 255, .035); color: var(--text-muted); font-size: .74rem; }
.activation-note strong { color: var(--gold); }
.auth-wrap, .auth-wrap-premium { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 9%; max-width: 1160px; min-height: calc(100vh - 210px); margin: 0 auto; padding: 30px 0; }
.auth-intro { max-width: 520px; padding: 30px 0; }
.auth-intro h2 { font-size: clamp(2.8rem, 4.5vw, 4.8rem); font-weight: 500; line-height: 1.15; letter-spacing: -.065em; margin: 26px 0; }
.auth-intro > p { color: #c1c6c9; max-width: 330px; font-size: .87rem; }
.auth-coordinate { display: flex; gap: 10px; align-items: center; font-size: .52rem; letter-spacing: .1em; color: var(--gold); margin-top: 40px; }
.auth-coordinate i { width: 24px; height: 1px; background: var(--gold-dim); }
.auth-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--border-hi); margin-top: 45px; padding-top: 20px; }
.auth-facts strong { display: block; font-size: .76rem; font-weight: 500; }
.auth-facts span { display: block; font-size: .65rem; color: var(--text-muted); margin-top: 6px; }
.auth-box, .auth-box-premium { position: relative; background: linear-gradient(150deg, #25282a, #181b1c); border: 1px solid var(--border-hi); border-radius: 20px; padding: 30px 34px; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(211, 229, 255, .07); backdrop-filter: blur(22px); width: 100%; min-width: 0; }
.hero-logo { margin-bottom: 27px; }
.hero-logo .eyebrow { font-size: .55rem; }
.hero-logo-text { font-size: 1.9rem; font-weight: 500; margin: 9px 0; letter-spacing: -.06em; }
.hero-logo-sub { color: var(--text-muted); font-size: .74rem; }
.auth-title { font-size: 1.8rem; font-weight: 500; text-align: center; }
.auth-footer { text-align: center; color: var(--text-muted); font-size: .73rem; margin-top: 25px; line-height: 2.2; }
body[data-page="login"] { background: radial-gradient(ellipse at 24% 48%, #313027 0, transparent 56%), #101112; }
body[data-page="login"] #app { max-width: 1440px; padding: 32px 5% 40px; }
body[data-page="login"] .workspace-brand { display: inline; }
body[data-page="login"] #mobile-topbar { display: none !important; }
.product-login { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); align-items: center; gap: 7%; min-height: calc(100vh - 200px); }
.product-story { min-width: 0; }
.product-label { display: flex; align-items: center; gap: 9px; font-size: .59rem; letter-spacing: .13em; color: var(--gold-hi); }
.product-label-mark { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.product-story h2 { font-size: clamp(3.6rem, 6vw, 6.1rem); line-height: .98; letter-spacing: -.065em; font-weight: 600; margin: 27px 0 22px; }
.product-story h2 > span { color: var(--gold-hi); }
.product-description { color: #bfc2b9; font-size: .91rem; line-height: 1.8; margin: 0; }
.product-visual { position: relative; height: clamp(255px, 24vw, 335px); margin: 0 0 20px; }
.product-visual::before { content: ''; position: absolute; width: 220px; height: 220px; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(233, 184, 90, .12); background: radial-gradient(ellipse, rgba(233, 184, 90, .05), transparent 70%); }
.product-visual::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.product-visual [data-three-widget] { position: absolute; inset: 0; width: 100%; height: 100%; }
.engine-fallback { display: grid; place-items: center; position: absolute; width: 140px; height: 140px; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-12deg); color: var(--gold); border: 1px solid var(--gold); background: #24251f; opacity: .08; }
.engine-fallback .icon { width: 76px; height: 76px; stroke-width: 1; }
body[data-webgl="unavailable"] .engine-fallback { opacity: .85; }
.engine-tag { position: absolute; z-index: 1; border-left: 1px solid var(--gold-dim); padding: 5px 0 5px 12px; }
.engine-tag small { display: block; font-size: .48rem; color: var(--text-muted); letter-spacing: .1em; }
.engine-tag strong { display: block; font-size: 1.1rem; font-family: 'Outfit', sans-serif; font-weight: 500; margin-top: 4px; }
.engine-tag strong > span { color: var(--gold); padding: 0 3px; }
.engine-tag-market { left: 0; top: 30%; }
.engine-tag-platform { right: 0; bottom: 22%; }
.engine-caption { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; color: var(--gold-dim); font-size: .46rem; letter-spacing: .1em; }
.product-story .engine-console { max-width: 420px; margin: -7px 0 18px; }
.product-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: 14px; }
.product-steps li { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.product-steps li > span { color: var(--gold); font-family: var(--font-number); font-size: .65rem; padding-top: 1px; }
.product-steps strong { display: block; font-size: .71rem; font-weight: 500; }
.product-steps small { display: block; color: var(--text-muted); font-size: .62rem; margin-top: 5px; line-height: 1.5; }
.signin-panel { position: relative; width: 100%; max-width: 440px; justify-self: end; padding: 34px; background: linear-gradient(155deg, #242729, #181b1c); border: 1px solid rgba(233, 184, 90, .23); border-radius: 16px; box-shadow: 0 28px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(246, 216, 148, .06); }
.signin-panel::before { content: ''; position: absolute; left: 34px; top: -1px; width: 56px; height: 2px; background: var(--gold); }
.signin-panel-top { display: flex; align-items: center; gap: 12px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .96rem; }
.signin-panel-top small { display: block; color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: .48rem; letter-spacing: .11em; font-weight: 400; margin-top: 2px; }
.signin-mark { display: grid; place-items: center; width: 36px; height: 38px; border: 1px solid var(--border-hi); color: var(--gold); border-radius: 6px; }
.signin-mark .icon { width: 28px; height: 28px; }
.signin-index { margin-left: auto; font-family: var(--font-number); color: var(--gold-dim); font-size: .64rem; }
.signin-heading { margin: 34px 0 25px; }
.signin-heading .eyebrow { font-size: .53rem; }
.signin-heading h1 { font-size: 2.8rem; margin: 10px 0 10px; font-weight: 500; }
.signin-heading p { font-size: .77rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.signin-panel label { color: #d8dbd5; font-size: .73rem; }
.signin-panel input { background: #141718; border-color: rgba(225, 224, 210, .16); min-height: 52px; font-size: 1rem; }
.signin-panel input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 184, 90, .1); }
.signin-password-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.signin-password-label a { font-size: .67rem; padding: 6px 0 10px; }
.signin-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 15px 17px; border: 1px solid #f0cb7e; border-radius: 7px; background: linear-gradient(110deg, #f4d28b, #dda943); color: #20190d; font-weight: 600; font-size: .8rem; margin-top: 25px; transition: background .2s ease, box-shadow .2s ease; }
.signin-submit:hover:not(:disabled) { background: #f5d58f; box-shadow: 0 8px 25px rgba(233, 184, 90, .1); }
.signin-submit .icon { width: 19px; height: 19px; }
.signin-purchase { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 23px; }
.signin-purchase > span { display: block; font-size: .68rem; color: var(--text-muted); }
.signin-purchase > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .74rem; font-weight: 500; min-height: 44px; }
.signin-purchase .icon { width: 16px; height: 16px; }
.signin-note { color: var(--text-muted); font-size: .63rem; margin: 17px 0 0; line-height: 1.65; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 25px; }
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(14, 21, 28, .9); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-header { display: flex; gap: 16px; justify-content: space-between; align-items: center; width: 100%; min-height: 65px; border: 0; padding: 19px 22px; background: transparent; color: var(--text); text-align: left; font-size: .78rem; }
.accordion-header:hover, .accordion-item.open .accordion-header { color: var(--gold-hi); background: rgba(91, 140, 255, .035); }
.accordion-icon { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; transition: transform var(--transition); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; color: var(--text-muted); font-size: .75rem; padding: 0 22px 23px; line-height: 1.9; }
.accordion-item.open .accordion-body { display: block; }
.support-contact-card { position: sticky; top: 25px; background: linear-gradient(140deg, #292b25, #181b1d); padding: 28px; }
.support-email-link { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid var(--border-hi); border-radius: 7px; padding: 12px 14px; font-size: .76rem; max-width: 100%; overflow-wrap: anywhere; }
.support-email-link:hover { background: rgba(91, 140, 255, .08); }
#toast-container { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { max-width: 360px; border: 1px solid var(--border-hi); border-radius: 10px; padding: 15px 20px; background: var(--bg2); color: var(--gold-hi); box-shadow: var(--shadow-lg); font-size: .78rem; animation: rise .2s ease both; overflow-wrap: anywhere; pointer-events: auto; }
.toast-success { border-color: rgba(136, 214, 176, .4); color: var(--green); }
.toast-error { border-color: rgba(239, 146, 149, .4); color: var(--red); }
.toast.fade-out { opacity: 0; transition: opacity .3s; }
.spinner-wrap { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; min-height: 50vh; color: var(--text-muted); font-size: .75rem; }
.spinner { width: 30px; height: 30px; border: 1px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .7); backdrop-filter: blur(5px); }
.modal-dialog { background: var(--bg2); border: 1px solid var(--border-hi); border-radius: var(--radius-lg); padding: 28px; max-width: 460px; width: 100%; }
.modal-title { color: var(--gold-hi); }
.modal-body { margin-bottom: 20px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-muted { color: var(--text-muted); font-size: .8rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.chip { display: inline-flex; color: var(--text-muted); border: 1px solid var(--border); border-radius: 30px; padding: 5px 12px; font-size: .65rem; }
.chip-gold { color: var(--gold); border-color: var(--border-hi); }
.chip-green { color: var(--green); }
.chip-red { color: var(--red); }
@media (hover: hover) { .mega-stat:hover, .plan-card-premium:hover { border-color: var(--border-hi); transform: translateY(-3px); } }
@media (min-width: 900px) { .bottom-tabbar, .mobile-topbar { display: none !important; } }
@media (max-width: 1150px) {
  .sidebar { width: 220px; padding-inline: 14px; }
  #main-content { margin-left: 220px; }
  .page-hero { grid-template-columns: minmax(0, 1fr) 235px; }
  .trading-dashboard-head { flex-direction: column; }
  .trading-dashboard-tools { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; }
  .telemetry-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-metric { min-height: 190px; }
  .bot-license-card { grid-template-columns: 75px minmax(0, 1fr); gap: 12px; }
  .bot-license-art [data-three-widget] { height: 95px; }
  .performance-metric { padding: 14px; }
  .performance-metric .telemetry-value { font-size: 1.65rem; }
  .auth-wrap, .auth-wrap-premium { gap: 5%; grid-template-columns: minmax(0, 1fr) 390px; }
  .mega-stat { padding: 20px 16px; }
  .setup-list { gap: 15px; }
  .product-login { gap: 5%; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
  .signin-panel { padding: 29px; }
  .engine-tag strong { font-size: .85rem; }
}
@media (max-width: 899px) {
  .sidebar { display: none !important; }
  #main-content { margin-left: 0; padding-bottom: calc(73px + env(safe-area-inset-bottom)); }
  body[data-session="guest"] #main-content { padding-bottom: 0; }
  .workspace-bar { padding: 18px 5%; min-height: 65px; }
  body[data-session="client"] .workspace-brand { display: inline; }
  body[data-session="guest"] .workspace-brand, body[data-session="guest"] .workspace-divider { display: none; }
  #app { padding: 27px 5% 35px; }
  .page-hero h1 { font-size: 3.2rem; }
  .auth-wrap, .auth-wrap-premium { grid-template-columns: minmax(0, 1fr) 350px; gap: 6%; min-height: calc(100vh - 230px); }
  .auth-intro h2 { font-size: 2.9rem; }
  .auth-facts { grid-template-columns: 1fr; gap: 16px; }
  .auth-coordinate { flex-wrap: wrap; gap: 7px; }
  .auth-box, .auth-box-premium { padding: 27px; }
  #toast-container { bottom: calc(88px + env(safe-area-inset-bottom)); }
  body[data-session="guest"] #toast-container { bottom: 20px; }
  body[data-page="login"][data-session="guest"] .workspace-brand { display: inline; }
  body[data-page="login"] #app { padding: 24px 5% 35px; }
  .product-login { display: flex; flex-direction: column; gap: 24px; min-height: auto; max-width: 600px; margin: 0 auto; }
  .product-story { position: relative; width: 100%; min-height: 240px; }
  .product-story h2 { font-size: clamp(2.5rem, 6vw, 3.4rem); margin: 24px 0 18px; }
  .product-label { font-size: .5rem; letter-spacing: .08em; }
  .product-description { font-size: .78rem; max-width: 65%; }
  .product-visual { position: absolute; top: 35px; right: 0; width: 32%; height: 200px; margin: 0; }
  .product-visual::before { width: 65%; height: auto; aspect-ratio: 1; }
  .product-visual::after, .engine-tag, .engine-caption, .product-steps { display: none; }
  .product-story .engine-console { max-width: none; margin: 18px 0 0; }
  .engine-fallback { width: 80px; height: 80px; }
  .engine-fallback .icon { width: 50px; height: 50px; }
  .signin-panel { max-width: 100%; padding: 30px; }
  .signin-heading { margin: 25px 0 23px; }
  .signin-heading h1 { font-size: 2.5rem; }
  .bot-management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-license-card { grid-column: 1 / -1; grid-template-columns: 100px minmax(0, 1fr); }
  .bot-license-info h3 > span { display: inline; margin-left: 8px; }
  .bot-license-art [data-three-widget] { height: 105px; }
}
@media (max-width: 700px) {
  .payment-grid, .support-grid { grid-template-columns: 1fr; }
  .performance-values { grid-template-columns: 1fr; gap: 9px; }
  .performance-metric { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; }
  .performance-metric .telemetry-amount { margin: 0; text-align: right; max-width: 65%; }
  .setup-list { grid-template-columns: 1fr; gap: 22px; }
  .setup-step-head { justify-content: space-between; }
  .setup-detail { font-size: .73rem; }
  .mega-stat-row, .dash-stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .mega-stat { display: grid; grid-template-columns: 1fr auto; gap: 0 18px; padding: 22px; }
  .mega-stat-icon { grid-column: 2; grid-row: 1 / span 2; margin-bottom: 0; }
  .mega-stat-label, .mega-stat-value, .mega-stat-sub { grid-column: 1; }
  .mega-stat .expiry-progress { grid-column: 1 / -1; }
  .mega-stat > a { grid-column: 2; grid-row: 3 / span 2; align-self: center; }
  .auth-wrap, .auth-wrap-premium { display: flex; flex-direction: column; gap: 28px; padding: 10px 0 20px; min-height: auto; }
  .auth-intro { width: 100%; max-width: 470px; padding: 15px 0; }
  .auth-intro h2 { font-size: 3rem; margin: 18px 0; }
  .auth-intro > p { font-size: .8rem; }
  .auth-coordinate { margin-top: 23px; }
  .auth-facts { display: none; }
  .auth-box, .auth-box-premium { max-width: 470px; }
  .bot-management-grid { grid-template-columns: minmax(0, 1fr); }
  .bot-license-card { grid-column: auto; }
  .trading-dashboard-title h1 { font-size: 2rem; }
  .page-hero { grid-template-columns: minmax(0, 1fr) 170px; min-height: 225px; padding-top: 15px; gap: 10px; }
  .page-hero h1 { font-size: 2.7rem; }
  .page-hero-art { min-height: 180px; }
  .page-hero-art [data-three-widget] { height: 160px; }
  .page-hero-art::before { width: 125px; height: 125px; }
  .art-caption { font-size: .4rem; letter-spacing: .07em; }
  .support-contact-card { position: static; }
}
@media (max-width: 480px) {
  .workspace-bar { padding: 12px 18px; gap: 8px; }
  .workspace-location { gap: 9px; font-size: .63rem; }
  .workspace-brand { font-size: .73rem; }
  .workspace-controls { gap: 0; }
  .environment-label { display: none; }
  .scene-motion { font-size: .57rem; padding: 9px 11px; min-height: 38px; }
  .scene-motion::before { margin-right: 5px; }
  #app { padding: 25px 18px 30px; }
  .page-head { gap: 18px; margin-bottom: 18px; }
  .dashboard-sync { width: 100%; justify-content: space-between; }
  .page-sub { overflow-wrap: anywhere; }
  .page-hero { display: block; position: relative; padding: 12px 0 30px; }
  .page-hero-copy { position: relative; z-index: 1; }
  .page-hero-copy > .eyebrow { font-size: .51rem; }
  .page-hero h1 { font-size: 2.9rem; max-width: 100%; margin-top: 15px; }
  .page-hero p { font-size: .78rem; max-width: 100%; }
  .page-hero-art { float: right; width: 110px; height: 100px; min-height: 0; border-left: 0; margin-top: -155px; opacity: .2; pointer-events: none; }
  .page-hero-art [data-three-widget] { height: 100px; }
  .page-hero-art::before { width: 85px; height: 85px; }
  .art-caption { display: none; }
  .card { padding: 20px 16px; margin-bottom: 16px; }
  .card-head { gap: 12px; margin-bottom: 18px; }
  .trading-dashboard-head { gap: 16px; padding-bottom: 23px; }
  .trading-dashboard-title h1 { font-size: 1.85rem; }
  .trading-dashboard-title p { font-size: .73rem; }
  .trading-dashboard-tools { flex-direction: column; align-items: stretch; gap: 12px; padding: 0; }
  .dashboard-actions { gap: 7px; }
  .dashboard-actions > a { flex: 1; font-size: .65rem; padding: 10px; }
  .bot-management-heading > span { flex-basis: 100%; }
  .bot-license-info h3 > span { display: block; margin-left: 0; }
  .account-panel-icon { width: 33px; height: 33px; border-radius: 9px; flex-shrink: 0; }
  .account-panel-title { gap: 9px; min-width: 0; }
  .telemetry-panel h2 { font-size: .95rem; }
  .telemetry-panel .card-title { font-size: .48rem; letter-spacing: .1em; }
  .telemetry-status { font-size: .55rem; padding: 7px 9px; }
  .telemetry-values { gap: 10px; }
  .telemetry-metric { padding: 17px 13px; min-height: 175px; }
  .telemetry-metric[data-metric="balance"], .telemetry-metric[data-metric="todayPnl"] { grid-column: 1 / -1; padding: 20px; min-height: 170px; }
  .telemetry-metric[data-metric="balance"] .telemetry-value { font-size: min(3.5rem, 25cqw); }
  .telemetry-metric[data-metric="balance"] .telemetry-value[data-size="wide"] { font-size: min(2.6rem, 17cqw); }
  .telemetry-metric[data-metric="balance"] .telemetry-value[data-size="long"] { font-size: min(1.9rem, 12cqw); }
  .telemetry-metric[data-metric="todayPnl"] .telemetry-value { font-size: min(2.8rem, 23cqw); }
  .telemetry-metric[data-metric="todayPnl"] .telemetry-value[data-size="wide"] { font-size: min(2.2rem, 16cqw); }
  .telemetry-metric[data-metric="todayPnl"] .telemetry-value[data-size="long"] { font-size: min(1.7rem, 11cqw); }
  .metric-heading { gap: 5px; }
  .metric-heading .icon { width: 14px; height: 14px; }
  .stat-label { font-size: .61rem; letter-spacing: .025em; }
  .telemetry-value { font-size: min(2rem, 23cqw); }
  .telemetry-value[data-size="wide"] { font-size: min(1.5rem, 16cqw); }
  .telemetry-value[data-size="long"] { font-size: min(1.1rem, 11cqw); }
  .telemetry-detail { font-size: .7rem; }
  .performance-values { grid-template-columns: 1fr; gap: 9px; }
  .performance-metric { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; }
  .performance-metric .telemetry-amount { margin: 0; text-align: right; max-width: 65%; }
  .performance-metric .telemetry-currency { font-size: .56rem; }
  .performance-metric .telemetry-value { font-size: 1.7rem; }
  .performance-metric .telemetry-value[data-size="wide"] { font-size: 1.4rem; }
  .performance-metric .telemetry-value[data-size="long"] { font-size: 1.05rem; }
  .resp-table thead { display: none; }
  .resp-table, .resp-table tbody, .resp-table tr, .resp-table td { display: block; width: 100%; }
  .resp-table td { display: flex; justify-content: space-between; gap: 20px; padding: 11px 14px; text-align: right; border: 0; }
  .resp-table td::before { content: attr(data-label); color: var(--text-muted); font-size: .61rem; text-align: left; flex-shrink: 0; }
  .resp-table tr + tr { border-top: 1px solid var(--border); }
  .resp-table tr { padding: 6px 0; }
  .payment-step-label { font-size: .53rem; }
  .payment-instructions { padding: 22px; }
  .plan-price-big { font-size: 3rem; }
  .activation-host { padding: 12px; }
  .steps > li { gap: 12px; }
  .activation-guide h2 { font-size: 1.1rem; }
  .activation-inputs { padding: 13px; }
  .auth-intro h2 { font-size: 2.8rem; }
  .auth-box, .auth-box-premium { padding: 25px; border-radius: 14px; }
  .hero-logo-text { font-size: 1.75rem; }
  .auth-box-premium [data-three-widget] { height: 90px !important; width: 100px !important; }
  .workspace-footer { font-size: .5rem; padding: 20px 18px; gap: 9px; }
  .accordion-header { padding: 18px; font-size: .78rem; }
  .accordion-body { padding-inline: 18px; }
  .support-contact-card { padding: 25px 20px; }
  .support-email-link { font-size: .74rem; }
  .btn-sm { min-height: 42px; }
  .meta-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="login"] #app { padding: 17px 18px 25px; }
  body[data-page="login"] #workspace-page { display: none; }
  .product-login { gap: 17px; }
  .product-story { min-height: 210px; }
  .product-label { font-size: .43rem; letter-spacing: .04em; }
  .product-story h2 { font-size: clamp(2rem, 8.4vw, 2.7rem); margin: 24px 0 17px; }
  .product-description { font-size: .73rem; max-width: 68%; }
  .product-visual { top: 28px; right: -5px; width: 30%; height: 180px; }
  .signin-panel { padding: 25px 23px; }
  .signin-panel-top { font-size: .85rem; }
  .signin-panel-top small { font-size: .43rem; }
  .signin-heading { margin: 25px 0 22px; }
  .signin-heading h1 { font-size: 2.5rem; }
  .signin-panel .form-group { margin-bottom: 17px; }
  .signin-password-label a { font-size: .64rem; }
  .signin-submit { margin-top: 21px; font-size: .73rem; }
  .signin-purchase { margin-top: 25px; padding-top: 20px; }
  .signin-purchase > a { font-size: .67rem; }
}
@media (max-width: 360px) {
  .telemetry-values { grid-template-columns: 1fr; }
  .product-story h2 { font-size: 1.9rem; }
}
body[data-webgl="unavailable"] .auth-box-premium [data-three-widget] { display: none; }
body[data-motion="paused"] .card-enter { animation: none; }
body[data-motion="paused"] .mega-stat:hover, body[data-motion="paused"] .plan-card-premium:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mega-stat:hover, .plan-card-premium:hover { transform: none; }
  .spinner { border-color: var(--gold); }
}


/* Long Trade telemetry section styling */
.telemetry-section-divider {
  margin: 1.5rem 0 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border, rgba(255,255,255,0.1));
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
  text-align: center;
}

.telemetry-section-divider span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-dim, #826015);
  text-transform: uppercase;
}

.telemetry-long-trade {
  background: rgba(220, 170, 35, 0.03);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(220, 170, 35, 0.1);
}

.telemetry-long-trade .telemetry-metric {
  border-color: rgba(220, 170, 35, 0.15);
}

.telemetry-long-trade .stat-label {
  color: var(--gold-hi, #FFD750);
}

/* Pulsing animation for profit increases */
@keyframes pulse-profit {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(128, 221, 181, 0.7);
  }
  50% { 
    transform: scale(1.08); 
    box-shadow: 0 0 0 10px rgba(128, 221, 181, 0);
  }
}

.pnl-positive.pulse {
  animation: pulse-profit 0.8s ease-in-out;
  color: var(--green, #80ddb5) !important;
}

.telemetry-value.pulse {
  display: inline-block;
  animation: pulse-profit 0.8s ease-in-out;
}

/* Enhanced positive/negative number styling */
.pnl-positive {
  color: var(--green, #80ddb5);
  font-weight: 600;
}

.pnl-negative {
  color: var(--red, #f58b86);
  font-weight: 600;
}

/* Show even small amounts clearly */
.telemetry-value {
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  display: inline-block;
  text-align: right;
}

/* Force visibility for small positive numbers */
.telemetry-amount .pnl-positive {
  font-size: 1.1em;
  text-shadow: 0 0 8px rgba(128, 221, 181, 0.5);
}
