@import url('data:text/css,');

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-soft: #0d0e10;
  --panel: #121316;
  --panel-raised: #17181c;
  --panel-hover: #1b1c20;
  --line: #27282d;
  --line-soft: #202126;
  --text: #f1f0ec;
  --text-dim: #a2a2a4;
  --muted: #717277;
  --gold: #cba85f;
  --gold-bright: #e3c47c;
  --gold-soft: rgba(203, 168, 95, .13);
  --green: #70d0a1;
  --green-soft: rgba(68, 177, 125, .12);
  --red: #e9877b;
  --red-soft: rgba(216, 111, 99, .12);
  --violet: #a698ed;
  --blue: #81b8e8;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: 236px; padding: 24px 16px 15px; background: #0d0e10; border-right: 1px solid #202125; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 27px; }
.brand-mark { position: relative; display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid #8e7541; border-radius: 13px; background: linear-gradient(145deg, #21201c, #0d0e10 75%); box-shadow: inset 0 0 18px rgba(203,168,95,.07); color: var(--gold-bright); font-family: Georgia, serif; font-size: 26px; font-weight: 700; letter-spacing: -8px; padding-right: 7px; }
.brand-mark span { transform: translateX(-3px); }
.brand-mark i { position: absolute; right: 8px; top: 7px; font-size: 20px; font-style: normal; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-copy strong, .mobile-brand strong { font-size: 18px; letter-spacing: .08em; font-weight: 700; white-space: nowrap; }
.brand-copy em, .mobile-brand em { color: var(--gold); font-style: normal; }
.brand-copy small { color: #77777a; font-size: 8px; letter-spacing: .16em; }
.nav-label { padding: 0 11px 11px; color: #66676b; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.nav-label-spaced { margin-top: 28px; }
.nav-links { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; color: #9b9b9f; font-size: 12px; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { background: #17181b; color: #e9e5db; }
.nav-link.is-active { border-color: rgba(203,168,95,.13); background: linear-gradient(90deg, rgba(203,168,95,.13), rgba(203,168,95,.035)); color: var(--gold-bright); }
.nav-link.is-active::before { position: absolute; top: 10px; bottom: 10px; left: -1px; width: 2px; border-radius: 4px; background: var(--gold); content: ""; }
.account-switcher { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 8px; border: 1px solid #292a2e; border-radius: 9px; background: #151619; }
.account-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(203,168,95,.3); border-radius: 8px; background: var(--gold-soft); color: var(--gold-bright); font-size: 12px; font-weight: 700; }
.account-meta { display: grid; gap: 4px; min-width: 0; }
.account-meta strong { overflow: hidden; color: #dbd9d4; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-meta small { color: var(--muted); font-size: 9px; }
.account-chevron { margin-left: auto; color: #8a8a8e; font-size: 18px; transform: translateY(-3px); }
.real-account-note { display: flex; align-items: center; gap: 9px; margin: 10px 1px 0; padding: 10px 8px; border: 1px dashed #303136; border-radius: 8px; color: #77787c; }
.real-account-note > span:nth-child(2) { display: grid; gap: 3px; }
.real-account-note strong { color: #939398; font-size: 10px; font-weight: 600; }
.real-account-note small { font-size: 8px; }
.lock-dot { width: 6px; height: 6px; border-radius: 50%; background: #8d8e91; }
.lock-glyph { color: #88898c; font-size: 14px; }
.sidebar-spacer { flex: 1; min-height: 24px; }
.sidebar-practice-card { display: grid; gap: 9px; padding: 13px 12px 12px; border: 1px solid #34302a; border-radius: 9px; background: linear-gradient(135deg, rgba(203,168,95,.095), rgba(203,168,95,.018) 58%), #121315; }
.eyebrow, .section-kicker { color: #8e805e; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.sidebar-practice-card > strong { color: #f0e5c8; font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: -.05em; }
.practice-caption { display: flex; align-items: center; gap: 6px; color: #9c9b97; font-size: 9px; }
.live-dot, .status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(112,208,161,.1); }
.text-button { display: flex; justify-content: space-between; margin-top: 3px; padding: 8px 0 0; border: 0; border-top: 1px solid rgba(203,168,95,.14); background: transparent; color: var(--gold-bright); font-size: 9px; cursor: pointer; }
.text-button:hover { color: #f0d58f; }
.sidebar-foot { display: flex; align-items: center; gap: 7px; padding: 15px 7px 0; color: #77787c; font-size: 9px; }
.sidebar-foot .status-dot { width: 5px; height: 5px; flex-basis: 5px; background: var(--gold); box-shadow: none; }
.version { margin-left: auto; color: #58595d; font-family: var(--mono); font-size: 8px; }

.main-column { min-height: 100vh; margin-left: 236px; }
.topbar { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 clamp(22px, 3vw, 42px); border-bottom: 1px solid #202125; background: rgba(10,10,12,.94); backdrop-filter: blur(16px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #68696d; font-size: 10px; }
.breadcrumbs strong { color: #d8d6d0; font-weight: 500; }
.crumb-sep { color: #414246; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.environment-pill { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(112,208,161,.2); border-radius: 5px; background: rgba(112,208,161,.05); color: #93d9b5; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.environment-pill .live-dot { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none; }
.wallet-chip { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 11px; border: 1px solid #34302a; border-radius: 8px; background: #151513; text-align: left; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.wallet-chip:hover { border-color: #615234; background: #1a1915; }
.wallet-icon { color: var(--gold); font-size: 17px; }
.wallet-copy { display: grid; gap: 2px; }
.wallet-copy small { color: #8d805f; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.wallet-copy strong { color: #eee1bf; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.reset-icon { margin-left: 3px; color: #908262; font-size: 14px; }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #443a25; border-radius: 50%; background: linear-gradient(145deg, #29251d, #161513); color: var(--gold-bright); font-size: 11px; font-weight: 700; cursor: default; }
.mobile-brand { display: none; }
.page-content { width: min(100%, 1560px); margin: 0 auto; padding: 22px clamp(22px, 3vw, 42px) 20px; }
.sim-banner { display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 8px 12px; border: 1px solid rgba(203,168,95,.18); border-radius: 7px; background: linear-gradient(90deg, rgba(203,168,95,.09), rgba(203,168,95,.035)); color: #c2b690; }
.banner-icon { display: grid; width: 15px; height: 15px; flex: 0 0 15px; place-items: center; border: 1px solid rgba(203,168,95,.55); border-radius: 50%; color: var(--gold-bright); font-family: Georgia, serif; font-size: 10px; font-weight: 700; }
.sim-banner p { flex: 1; margin: 0; font-size: 9px; line-height: 1.55; }
.sim-banner p strong { color: #ebd69e; font-weight: 600; }
.banner-tag { padding: 4px 6px; border: 1px solid rgba(203,168,95,.25); border-radius: 4px; color: var(--gold-bright); font-size: 7px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 29px 0 18px; }
.overline { display: flex; align-items: center; gap: 8px; color: #8c805e; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.gold-line { width: 17px; height: 1px; background: var(--gold); }
.overline-divider { color: #48484c; }
h1, h2, p { margin-top: 0; }
.page-heading h1 { margin: 8px 0 4px; color: #f2f0eb; font-size: clamp(24px, 2vw, 30px); font-weight: 560; letter-spacing: -.055em; }
.heading-period { color: var(--gold); }
.heading-subtitle { margin: 0; color: #85868a; font-size: 10px; }
.heading-date { display: flex; align-items: center; gap: 7px; padding-bottom: 3px; color: #77787c; font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.clock-dot { width: 6px; height: 6px; border: 1px solid #8a7547; border-radius: 50%; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.summary-card { position: relative; min-height: 92px; padding: 14px 15px 11px; border: 1px solid #242529; border-radius: 9px; background: linear-gradient(120deg, rgba(255,255,255,.015), transparent 70%), #111215; overflow: hidden; }
.balance-summary { border-color: #393326; background: linear-gradient(120deg, rgba(203,168,95,.085), rgba(203,168,95,.012) 75%), #111215; }
.summary-top { display: flex; align-items: center; justify-content: space-between; color: #8e8f93; font-size: 9px; }
.summary-icon { color: #8b8c90; font-size: 14px; }
.gold-icon { color: var(--gold); }
.green-icon { color: var(--green); }
.summary-card > strong { display: block; margin-top: 5px; color: #e7e5df; font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -.06em; }
.balance-summary > strong { color: #f1dfb2; }
.summary-card .positive { color: var(--green); }
.summary-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: #68696d; font-size: 8px; }
.tiny-chip { padding: 3px 5px; border: 1px solid rgba(203,168,95,.2); border-radius: 3px; color: #aa9668; font-size: 7px; font-weight: 700; letter-spacing: .09em; }
.mini-bars { display: flex; align-items: end; gap: 2px; height: 10px; }
.mini-bars i { display: block; width: 3px; height: 4px; border-radius: 1px; background: #4d9e79; opacity: .65; }
.mini-bars i:nth-child(2), .mini-bars i:nth-child(5) { height: 7px; }
.mini-bars i:nth-child(4), .mini-bars i:nth-child(7) { height: 10px; opacity: .85; }
.count-indicator { display: flex; align-items: center; gap: 6px; color: #8c8d91; }
.count-indicator .live-dot { width: 5px; height: 5px; flex-basis: 5px; background: #8e8f92; box-shadow: none; }

.markets-section { margin-top: 23px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.section-heading h2, .ticket-header h2, .activity-heading h2, .notes-panel h2 { margin: 4px 0 0; color: #e7e6e2; font-size: 13px; font-weight: 560; letter-spacing: -.025em; }
.quiet-link { padding: 3px 0; border: 0; background: transparent; color: #85868a; font-size: 8px; cursor: default; }
.quiet-link span { color: var(--gold); }
.market-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.market-card { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 61px; padding: 9px; border: 1px solid #242529; border-radius: 8px; background: #111215; text-align: left; cursor: pointer; transition: background .17s ease, border-color .17s ease, transform .17s ease; }
.market-card:hover { border-color: #48433a; background: #151619; transform: translateY(-1px); }
.market-card.selected { border-color: rgba(203,168,95,.58); background: linear-gradient(120deg, rgba(203,168,95,.10), rgba(203,168,95,.025)), #111215; box-shadow: inset 0 0 0 1px rgba(203,168,95,.08); }
.market-symbol { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid rgba(203,168,95,.25); border-radius: 8px; background: rgba(203,168,95,.1); color: #e5c677; font-family: var(--mono); font-size: 9px; font-weight: 700; }
.symbol-violet { border-color: rgba(166,152,237,.25); background: rgba(166,152,237,.09); color: #b9aaf6; }
.symbol-blue { border-color: rgba(129,184,232,.23); background: rgba(129,184,232,.08); color: #a4cef2; }
.symbol-copper { border-color: rgba(223,155,105,.22); background: rgba(223,155,105,.08); color: #e6af80; }
.market-detail { display: grid; gap: 4px; min-width: 0; }
.market-detail strong { overflow: hidden; color: #d2d1cc; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.market-detail small { color: #6e6f73; font-size: 7px; white-space: nowrap; }
.market-quote { display: grid; gap: 4px; min-width: max-content; margin-left: auto; text-align: right; }
.market-quote strong { color: #d9d8d3; font-family: var(--mono); font-size: 9px; font-weight: 500; }
.market-quote small { font-family: var(--mono); font-size: 8px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.trading-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .82fr); align-items: stretch; gap: 12px; margin-top: 17px; }
.panel { border: 1px solid #25262a; border-radius: 10px; background: #111215; }
.chart-panel { min-width: 0; padding: 15px 16px 10px; overflow: hidden; }
.chart-header { display: flex; justify-content: space-between; gap: 12px; }
.instrument-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.instrument-title .market-symbol { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; font-size: 10px; }
.instrument-title > div { min-width: 0; }
.instrument-title .section-kicker { font-size: 7px; }
.instrument-title h2 { overflow: hidden; margin: 4px 0 0; color: #e8e6e0; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.sim-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 4px 6px; border: 1px solid #313237; border-radius: 4px; color: #87888d; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.sim-tag .live-dot { width: 4px; height: 4px; flex-basis: 4px; background: #8d8e92; box-shadow: none; }
.chart-price-block { display: grid; gap: 5px; justify-items: end; align-content: center; }
.chart-price-block strong { color: #f0eee8; font-family: var(--mono); font-size: 19px; font-weight: 500; letter-spacing: -.06em; }
.chart-price-block span { font-family: var(--mono); font-size: 9px; }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 17px; }
.chart-legend { display: flex; align-items: center; gap: 6px; color: #a7a6a0; font-size: 8px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 7px rgba(203,168,95,.5); }
.chart-sub-label { color: #636469; }
.timeframes { display: flex; gap: 2px; padding: 2px; border: 1px solid #292a2e; border-radius: 5px; background: #0c0d0f; }
.timeframe { padding: 4px 7px; border: 0; border-radius: 3px; background: transparent; color: #77787c; font-family: var(--mono); font-size: 7px; cursor: pointer; }
.timeframe:hover { color: #d6d2c7; }
.timeframe.active { background: #29251d; color: var(--gold-bright); }
.chart-wrap { position: relative; height: 192px; margin-top: 7px; border-top: 1px solid rgba(255,255,255,.015); }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.chart-watermark { position: absolute; right: 16px; bottom: 12px; color: rgba(224,220,208,.055); font-size: 17px; font-weight: 800; letter-spacing: .12em; pointer-events: none; }
.chart-watermark span { color: rgba(203,168,95,.07); }
.chart-hover-label { position: absolute; top: 10px; right: 0; color: #66676c; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; pointer-events: none; }
.chart-axis { display: flex; justify-content: space-between; padding: 2px 4px 7px; color: #636469; font-family: var(--mono); font-size: 7px; }
.chart-footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #222327; color: #65666b; font-size: 7px; }
.chart-footer > span:first-child { display: flex; align-items: center; gap: 6px; }
.legend-line { width: 12px; border-top: 1px dashed #79694a; }

.contract-panel { padding: 15px 14px 12px; }
.ticket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.ticket-header h2 { font-size: 14px; }
.ticket-badge { padding: 4px 6px; border: 1px solid rgba(203,168,95,.25); border-radius: 4px; color: var(--gold-bright); font-family: var(--mono); font-size: 7px; font-weight: 700; }
.contract-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.field-label { color: #b3b1aa; font-size: 9px; font-weight: 500; }
.help-dot { display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #3a3b3f; border-radius: 50%; background: transparent; color: #77787c; font-family: Georgia, serif; font-size: 9px; cursor: help; }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.contract-type { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 48px; padding: 7px 8px; border: 1px solid #292a2f; border-radius: 6px; background: #151619; color: #9e9fa3; font-size: 8px; cursor: pointer; transition: all .16s ease; }
.contract-type:hover { border-color: #575044; color: #e0d8c5; }
.contract-type.active { border-color: rgba(203,168,95,.6); background: linear-gradient(130deg, rgba(203,168,95,.13), rgba(203,168,95,.045)); color: #efd99c; box-shadow: inset 0 0 0 1px rgba(203,168,95,.05); }
.contract-icon { color: #d0b875; font-family: var(--mono); font-size: 12px; font-weight: 600; line-height: 1; }
.contract-type:nth-child(4) .contract-icon { font-size: 9px; }
.contract-description { min-height: 28px; margin: 8px 0 10px; color: #77787d; font-size: 8px; line-height: 1.5; }
.ticket-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.field-group { display: grid; gap: 6px; min-width: 0; }
.select-wrap, .amount-wrap { position: relative; display: flex; align-items: center; height: 36px; border: 1px solid #2c2d31; border-radius: 6px; background: #0d0e10; }
.select-wrap select { width: 100%; height: 100%; padding: 0 26px 0 9px; appearance: none; border: 0; outline: 0; background: transparent; color: #d2d0ca; font-size: 9px; cursor: pointer; }
.select-wrap select:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; border-radius: 5px; }
.select-wrap select option { background: #151619; }
.select-chevron { position: absolute; right: 9px; color: #7e7f84; font-size: 14px; pointer-events: none; transform: translateY(-2px); }
.stake-field { margin-top: 11px; }
.field-hint { margin-left: 4px; color: #696a6f; font-size: 7px; font-weight: 400; }
.amount-wrap { gap: 6px; padding: 0 9px; }
.currency-symbol { color: #9f8c60; font-family: var(--mono); font-size: 12px; }
.amount-wrap input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #e0ded7; font-family: var(--mono); font-size: 11px; }
.amount-wrap input:focus-visible { outline: none; }
.amount-wrap:focus-within { outline: 2px solid var(--gold-bright); outline-offset: 1px; }
.amount-suffix { color: #626368; font-size: 7px; }
.stake-presets { display: flex; gap: 5px; margin-top: 6px; }
.stake-presets button { min-width: 39px; padding: 5px 9px; border: 1px solid #2a2b2f; border-radius: 4px; background: #151619; color: #929398; font-family: var(--mono); font-size: 8px; cursor: pointer; }
.stake-presets button:hover { border-color: #544b36; color: #dfd1ad; }
.stake-presets button.active { border-color: rgba(203,168,95,.48); background: rgba(203,168,95,.1); color: var(--gold-bright); }
.return-preview, .return-breakdown { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.return-preview { margin-top: 13px; padding-top: 11px; border-top: 1px solid #28292d; color: #a9a7a0; font-size: 8px; }
.return-preview > span:first-child { display: flex; align-items: center; gap: 5px; }
.preview-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.preview-note { color: #626368; }
.return-preview > strong { color: #e8d6a5; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.return-breakdown { margin-top: 7px; color: #68696d; font-size: 7px; }
.return-breakdown strong { color: #a59a7a; font-family: var(--mono); font-size: 8px; font-weight: 500; }
.simulate-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 39px; margin-top: 12px; padding: 0 12px; border: 1px solid #d3b56e; border-radius: 6px; background: linear-gradient(110deg, #c7a456, #e1c579); color: #1a1710; font-size: 9px; font-weight: 700; cursor: pointer; transition: filter .18s ease, transform .18s ease, box-shadow .18s ease; }
.simulate-button:hover { filter: brightness(1.07); box-shadow: 0 5px 20px rgba(203,168,95,.11); transform: translateY(-1px); }
.simulate-button:active { transform: translateY(0); }
.button-arrow { font-size: 15px; font-weight: 400; }
.ticket-disclaimer { margin: 7px 0 0; color: #67686c; font-size: 7px; line-height: 1.45; text-align: center; }
.simulation-result { margin-top: 9px; padding: 8px 9px; border: 1px solid #464034; border-radius: 6px; background: rgba(203,168,95,.06); color: #d8cba8; font-size: 8px; line-height: 1.45; }
.simulation-result.win { border-color: rgba(112,208,161,.24); background: var(--green-soft); color: #a4debf; }
.simulation-result.loss { border-color: rgba(233,135,123,.22); background: var(--red-soft); color: #e8aaa2; }
.hidden { display: none !important; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .82fr); gap: 12px; margin-top: 13px; }
.activity-panel { min-height: 160px; padding: 13px 15px 9px; }
.activity-heading { align-items: center; margin-bottom: 11px; }
.activity-heading h2 { font-size: 12px; }
.table-count { color: #737479; font-family: var(--mono); font-size: 8px; }
.activity-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 98px; gap: 5px; color: #818287; text-align: center; }
.activity-empty strong { color: #b3b2ac; font-size: 9px; font-weight: 550; }
.activity-empty > span:last-child { color: #66676c; font-size: 8px; }
.empty-graphic { position: relative; display: flex; align-items: end; gap: 4px; height: 22px; margin-bottom: 3px; padding: 0 10px 3px; border-bottom: 1px solid #37383c; }
.empty-graphic i { display: block; width: 4px; border-radius: 2px 2px 0 0; background: linear-gradient(#8c7545, #433a27); opacity: .7; }
.empty-graphic i:nth-child(1) { height: 7px; }.empty-graphic i:nth-child(2) { height: 14px; }.empty-graphic i:nth-child(3) { height: 10px; }
.activity-table-wrap { overflow-x: auto; }
.activity-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.activity-table th { padding: 0 8px 8px; border-bottom: 1px solid #25262a; color: #66676b; font-size: 7px; font-weight: 600; letter-spacing: .08em; }
.activity-table td { padding: 9px 8px; border-bottom: 1px solid #202125; color: #b0afaa; font-family: var(--mono); font-size: 8px; }
.activity-table tr:last-child td { border-bottom: 0; }
.activity-table td:first-child { color: #d5c38f; font-family: var(--font); font-weight: 550; }
.result-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 4px; font-family: var(--font); font-size: 7px; }
.result-pill.win { background: var(--green-soft); color: var(--green); }
.result-pill.loss { background: var(--red-soft); color: var(--red); }
.notes-panel { position: relative; min-height: 160px; padding: 14px 16px 12px; overflow: hidden; }
.notes-panel::after { position: absolute; right: -34px; bottom: -45px; width: 135px; height: 135px; border: 1px solid rgba(203,168,95,.08); border-radius: 50%; box-shadow: 0 0 0 15px rgba(203,168,95,.018), 0 0 0 31px rgba(203,168,95,.016); content: ""; pointer-events: none; }
.notes-icon { display: grid; width: 25px; height: 25px; place-items: center; margin-bottom: 9px; border: 1px solid #4b4028; border-radius: 7px; background: var(--gold-soft); color: var(--gold-bright); font-size: 14px; }
.notes-panel h2 { margin-top: 5px; font-size: 11px; }
.notes-panel p { max-width: 340px; margin: 7px 0 10px; color: #838489; font-size: 8px; line-height: 1.55; }
.notes-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; padding-top: 7px; border-top: 1px solid #25262a; color: #9c8e6d; font-size: 7px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 17px 1px 3px; color: #5f6064; font-size: 7px; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 12; right: 22px; bottom: 22px; max-width: calc(100vw - 44px); padding: 11px 14px; border: 1px solid #4b4029; border-radius: 8px; background: #1b1914; box-shadow: 0 10px 30px rgba(0,0,0,.35); color: #e6d6ae; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 1500px) {
  .page-content { padding-top: 27px; }
  .chart-wrap { height: 220px; }
  .summary-card { min-height: 100px; }
}
@media (max-width: 1180px) {
  .sidebar { width: 210px; }
  .main-column { margin-left: 210px; }
  .market-card { gap: 6px; padding: 8px 7px; }
  .market-detail strong { font-size: 8px; }
  .market-quote strong { font-size: 8px; }
  .trading-layout, .lower-grid { grid-template-columns: minmax(0, 1.35fr) minmax(270px, .9fr); }
}
@media (max-width: 980px) {
  .sidebar { width: 68px; align-items: center; padding: 20px 9px 13px; }
  .brand { padding: 0 0 30px; }
  .brand-copy, .nav-label, .nav-link span, .account-meta, .account-chevron, .real-account-note, .sidebar-practice-card, .sidebar-foot { display: none; }
  .nav-links { width: 100%; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-link svg { width: 17px; height: 17px; }
  .account-switcher { justify-content: center; width: 42px; min-height: 42px; margin-top: 22px; padding: 5px; border: 1px solid #443a25; }
  .account-icon { width: 30px; height: 30px; }
  .main-column { margin-left: 68px; }
  .market-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-card { padding: 9px; }
  .market-detail strong { font-size: 9px; }
  .market-quote strong { font-size: 9px; }
  .trading-layout, .lower-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .9fr); }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-column { margin-left: 0; }
  .topbar { height: 58px; padding: 0 16px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand strong { font-size: 13px; }
  .brand-mark-small { width: 29px; height: 29px; border-radius: 9px; font-size: 18px; letter-spacing: -6px; padding-right: 5px; }
  .brand-mark-small i { top: 5px; right: 5px; font-size: 14px; }
  .breadcrumbs { display: none; }
  .topbar-actions { gap: 8px; }
  .environment-pill { gap: 5px; padding: 6px 7px; font-size: 7px; }
  .wallet-chip { min-height: 35px; gap: 6px; padding: 4px 7px; }
  .wallet-icon, .reset-icon, .avatar { display: none; }
  .wallet-copy small { font-size: 6px; }
  .wallet-copy strong { font-size: 10px; }
  .page-content { padding: 12px 12px 86px; }
  .sim-banner { align-items: flex-start; gap: 7px; min-height: auto; padding: 8px; }
  .sim-banner p { font-size: 8px; }
  .banner-tag { align-self: center; padding: 4px 5px; font-size: 6px; }
  .page-heading { align-items: flex-start; margin: 22px 1px 14px; }
  .page-heading h1 { margin-top: 6px; font-size: 24px; }
  .heading-subtitle { max-width: 235px; font-size: 9px; line-height: 1.5; }
  .heading-date { display: none; }
  .summary-grid { gap: 7px; }
  .summary-card { min-height: 78px; padding: 10px 9px 8px; border-radius: 8px; }
  .summary-top { font-size: 8px; }
  .summary-icon { font-size: 12px; }
  .summary-card > strong { margin-top: 6px; font-size: 15px; }
  .summary-bottom { align-items: flex-start; margin-top: 7px; font-size: 7px; }
  .summary-bottom > span:last-child { text-align: right; }
  .tiny-chip { padding: 3px 4px; font-size: 6px; }
  .mini-bars { display: none; }
  .count-indicator { font-size: 7px; }
  .markets-section { margin-top: 20px; }
  .section-heading { align-items: center; margin: 0 1px 8px; }
  .section-heading h2, .activity-heading h2 { font-size: 12px; }
  .quiet-link { max-width: 120px; font-size: 7px; }
  .market-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .market-card { min-height: 56px; gap: 6px; padding: 7px 6px; border-radius: 7px; }
  .market-symbol { width: 27px; height: 27px; flex-basis: 27px; border-radius: 7px; font-size: 8px; }
  .market-detail { gap: 3px; }
  .market-detail strong { font-size: 8px; }
  .market-detail small { font-size: 6px; }
  .market-quote { gap: 3px; }
  .market-quote strong { font-size: 7px; }
  .market-quote small { font-size: 7px; }
  .trading-layout { grid-template-columns: 1fr; gap: 9px; margin-top: 12px; }
  .chart-panel { padding: 12px 11px 9px; border-radius: 9px; }
  .instrument-title { gap: 7px; }
  .instrument-title .market-symbol { width: 32px; height: 32px; flex-basis: 32px; }
  .instrument-title h2 { font-size: 10px; }
  .instrument-title .section-kicker { font-size: 6px; }
  .sim-tag { gap: 4px; padding: 3px 4px; font-size: 6px; }
  .chart-price-block strong { font-size: 15px; }
  .chart-price-block span { font-size: 8px; }
  .chart-toolbar { margin-top: 14px; }
  .chart-legend { font-size: 7px; }
  .chart-sub-label { display: none; }
  .timeframe { padding: 4px 6px; font-size: 7px; }
  .chart-wrap { height: 155px; margin-top: 6px; }
  .chart-axis { font-size: 6px; }
  .chart-footer { font-size: 6px; }
  .contract-panel { padding: 12px 11px 10px; border-radius: 9px; }
  .ticket-header { margin-bottom: 13px; }
  .contract-grid { gap: 6px; }
  .contract-type { min-height: 50px; padding: 7px 8px; font-size: 9px; }
  .contract-icon { font-size: 13px; }
  .contract-type:nth-child(4) .contract-icon { font-size: 10px; }
  .contract-description { min-height: 0; margin: 8px 0 11px; font-size: 8px; }
  .ticket-fields { gap: 8px; }
  .field-label { font-size: 9px; }
  .select-wrap, .amount-wrap { height: 38px; }
  .select-wrap select { font-size: 10px; }
  .stake-presets button { min-width: 45px; padding: 6px 10px; font-size: 9px; }
  .return-preview { margin-top: 14px; }
  .simulate-button { min-height: 43px; font-size: 10px; }
  .ticket-disclaimer { font-size: 7px; }
  .lower-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }
  .activity-panel { min-height: 150px; padding: 12px 11px 9px; }
  .activity-empty { min-height: 95px; }
  .notes-panel { min-height: auto; padding: 12px; }
  .notes-panel p { font-size: 8px; }
  .page-footer { flex-direction: column; gap: 5px; padding: 14px 2px 0; font-size: 7px; }
  .mobile-nav { position: fixed; z-index: 8; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: calc(57px + env(safe-area-inset-bottom)); padding: 6px 5px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #292a2e; background: rgba(13,14,16,.97); backdrop-filter: blur(14px); }
  .mobile-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #737479; }
  .mobile-nav-link > span { font-size: 17px; line-height: 1; }
  .mobile-nav-link small { font-size: 7px; }
  .mobile-nav-link.active { color: var(--gold-bright); }
  .toast { right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); left: 12px; max-width: none; text-align: center; }
}
@media (max-width: 380px) {
  .environment-pill { padding: 6px 5px; font-size: 6px; letter-spacing: .06em; }
  .environment-pill .live-dot { display: none; }
  .wallet-chip { padding: 4px 5px; }
  .wallet-copy strong { font-size: 9px; }
  .market-card { gap: 4px; padding: 6px 5px; }
  .market-symbol { width: 24px; height: 24px; flex-basis: 24px; font-size: 7px; }
  .market-detail strong { max-width: 73px; font-size: 7px; }
  .market-quote strong { font-size: 6px; }
  .summary-card > strong { font-size: 13px; }
  .summary-bottom { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Demo / Real account modes — Real remains visibly unavailable in this UI-only mockup. */
.account-mode-panel { display: grid; grid-template-columns: 115px minmax(0, 1fr) minmax(170px, .72fr); align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid #292a2e; border-radius: 8px; background: linear-gradient(100deg, rgba(203,168,95,.045), transparent 48%), #101114; }
.account-mode-heading { display: grid; gap: 5px; }
.account-mode-heading strong { color: #d8d5cc; font-size: 10px; font-weight: 550; }
.account-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.account-mode-option { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 43px; padding: 6px 8px; border: 1px solid #2c2d31; border-radius: 6px; background: #151619; }
.account-mode-option.is-current { border-color: rgba(203,168,95,.48); background: rgba(203,168,95,.075); }
.account-mode-option.is-disabled { border-style: dashed; border-color: #38393d; background: #111214; opacity: .8; }
.mode-indicator { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border: 1px solid rgba(203,168,95,.28); border-radius: 6px; color: var(--gold-bright); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.real-indicator { border-color: #3c3d41; color: #828388; font-family: var(--font); font-size: 14px; }
.account-mode-copy { display: grid; gap: 3px; min-width: 0; }
.account-mode-copy strong { overflow: hidden; color: #ddd9cd; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-mode-copy small { overflow: hidden; color: #88898d; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.mode-status { margin-left: auto; padding: 3px 5px; border: 1px solid rgba(203,168,95,.23); border-radius: 3px; color: var(--gold-bright); font-size: 6px; font-weight: 700; letter-spacing: .09em; white-space: nowrap; }
.mode-status.is-locked { border-color: #414246; color: #929398; }
.account-mode-warning { margin: 0; color: #85858a; font-size: 8px; line-height: 1.5; }
.account-mode-warning::before { content: "⌑"; margin-right: 6px; color: #a59266; font-size: 11px; }
.account-mode-note { display: grid; align-content: center; justify-items: start; gap: 6px; min-width: 0; }
.deriv-external-link { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 9px; border: 1px solid rgba(203,168,95,.36); border-radius: 5px; background: rgba(203,168,95,.06); color: #e6c981; font-size: 8px; font-weight: 700; line-height: 1; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.deriv-external-link:hover { border-color: rgba(230,201,129,.72); background: rgba(203,168,95,.12); color: #f0d99e; }
.deriv-external-link:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.deriv-link-note { color: #77787c; font-size: 7px; line-height: 1.4; }
@media (max-width: 760px) {
  .account-mode-panel { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; padding: 9px; }
  .account-mode-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
  .account-mode-heading strong { margin-left: auto; font-size: 9px; }
  .account-mode-options { gap: 6px; }
  .account-mode-option { min-height: 41px; gap: 6px; padding: 5px 6px; }
  .mode-indicator { width: 23px; height: 23px; flex-basis: 23px; }
  .account-mode-copy strong { font-size: 8px; }
  .account-mode-copy small { font-size: 6px; }
  .mode-status { padding: 3px 4px; font-size: 5px; }
  .account-mode-warning { font-size: 7px; }
  .deriv-external-link { min-height: 30px; }
  .deriv-link-note { font-size: 6px; }
}
@media (max-width: 360px) {
  .account-mode-panel { padding: 8px 7px; }
  .account-mode-option { gap: 5px; padding: 5px; }
  .account-mode-copy small { font-size: 5px; }
  .mode-status { letter-spacing: .03em; }
}


/* Local rules-based practice bot preview. */
.bot-section { margin-top: 12px; }
.bot-panel { display: grid; grid-template-columns: minmax(225px, .8fr) minmax(350px, 1.5fr); column-gap: 22px; row-gap: 10px; align-items: center; padding: 14px 16px 10px; border-color: #353126; background: linear-gradient(112deg, rgba(203,168,95,.075), rgba(203,168,95,.018) 42%, transparent 75%), #111215; }
.bot-overview { display: flex; align-items: flex-start; gap: 11px; }
.bot-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(203,168,95,.36); border-radius: 9px; background: var(--gold-soft); color: var(--gold-bright); font-size: 17px; }
.bot-overview .section-kicker { font-size: 7px; }
.bot-overview h2 { margin: 4px 0 5px; color: #eee6d1; font-size: 13px; font-weight: 580; }
.bot-overview p { max-width: 340px; margin: 0; color: #85858a; font-size: 8px; line-height: 1.55; }
.bot-console { min-width: 0; }
.bot-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.bot-stat { display: grid; gap: 5px; min-height: 43px; padding: 7px 8px; border: 1px solid #2d2e32; border-radius: 5px; background: rgba(7,8,9,.28); }
.bot-stat small { color: #85806e; font-size: 6px; font-weight: 700; letter-spacing: .1em; }
.bot-stat strong { color: #ddd5c1; font-family: var(--mono); font-size: 9px; font-weight: 500; }
.bot-stat strong span { color: #77787c; font-family: var(--font); font-size: 7px; }
.bot-controls { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.bot-status-badge { display: inline-flex; align-items: center; gap: 5px; min-width: 76px; color: #98999d; font-size: 7px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.bot-status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: #77787c; content: ""; }
.bot-status-badge.is-running { color: var(--green); }
.bot-status-badge.is-running::before { background: var(--green); box-shadow: 0 0 0 3px rgba(112,208,161,.1); }
.bot-start-button, .bot-pause-button { min-height: 30px; padding: 0 10px; border-radius: 5px; font-size: 8px; font-weight: 650; cursor: pointer; transition: opacity .16s ease, background .16s ease, border-color .16s ease; }
.bot-start-button { margin-left: auto; border: 1px solid #c9a85e; background: linear-gradient(110deg, #c7a456, #e1c579); color: #19160e; }
.bot-start-button:hover:not(:disabled) { filter: brightness(1.07); }
.bot-start-button:disabled { opacity: .45; cursor: not-allowed; }
.bot-pause-button { border: 1px solid #3a3b40; background: #17181b; color: #a6a7aa; }
.bot-pause-button:hover:not(:disabled) { border-color: #67686d; color: #e0dfda; }
.bot-pause-button:disabled { opacity: .38; cursor: not-allowed; }
.bot-message { min-height: 21px; margin: 7px 0 0; color: #aaa28e; font-size: 7px; line-height: 1.5; }
.bot-last-run { display: flex; justify-content: space-between; gap: 8px; margin: 3px 0 0; padding-top: 6px; border-top: 1px solid #26272b; color: #68696e; font-size: 7px; }
.bot-last-run span { color: #aaa9a3; text-align: right; }
.bot-disclaimer { display: flex; grid-column: 1 / -1; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid #292a2e; color: #8f846a; font-size: 7px; }
@media (max-width: 980px) {
  .bot-panel { grid-template-columns: minmax(185px, .75fr) minmax(280px, 1.25fr); gap: 14px; }
}
@media (max-width: 760px) {
  .bot-section { margin-top: 10px; }
  .bot-panel { grid-template-columns: 1fr; row-gap: 10px; padding: 12px 11px 9px; }
  .bot-overview { gap: 9px; }
  .bot-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .bot-overview h2 { font-size: 12px; }
  .bot-overview p { font-size: 8px; }
  .bot-stat { min-height: 42px; padding: 6px; }
  .bot-stat small { font-size: 5px; }
  .bot-stat strong { font-size: 8px; }
  .bot-controls { gap: 6px; }
  .bot-status-badge { min-width: 83px; font-size: 6px; }
  .bot-start-button, .bot-pause-button { min-height: 34px; padding: 0 9px; font-size: 8px; }
  .bot-disclaimer { font-size: 6px; line-height: 1.5; }
  .mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile-nav-link small { font-size: 6px; }
}
@media (max-width: 360px) {
  .bot-metrics { gap: 4px; }
  .bot-stat small { letter-spacing: .04em; }
  .bot-status-badge { min-width: 70px; }
  .bot-start-button, .bot-pause-button { padding: 0 7px; }
}
