:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --surface-3: #e7e2d7;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --strip-bg: #111318;
  --strip-text: #cbd5e1;
  --sidebar-bg: #111318;
  --sidebar-text: #f8fafc;
  --sidebar-muted: #94a3b8;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --text: #111318;
  --muted: #5a6170;
  --border: #e5e0d5;
  --border-strong: #d2cabd;
  --border-gold: rgba(168, 124, 32, 0.45);
  --gold: #a87c20;
  --gold-bright: #c4932b;
  --gold-soft: rgba(168, 124, 32, 0.1);
  --emerald: #0d8a5f;
  --emerald-soft: rgba(13, 138, 95, 0.1);
  --crimson: #dc2626;
  --crimson-soft: rgba(220, 38, 38, 0.1);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.1);
  --cyan: #0284c7;
  --cyan-soft: rgba(2, 132, 199, 0.1);
  --cta-bg: #111318;
  --cta-text: #ffffff;
  --cta-hover: #252a36;
  --contrast-bg: #111318;
  --contrast-text: #f8fafc;
  --contrast-muted: #9aa3b5;
  --shadow-sm: 0 1px 2px rgba(17, 19, 24, 0.04);
  --shadow-md: 0 12px 28px -8px rgba(17, 19, 24, 0.08), 0 2px 6px rgba(17, 19, 24, 0.04);
  --shadow-lg: 0 24px 50px -14px rgba(17, 19, 24, 0.14);
  --scroll-track: rgba(17, 19, 24, 0.04);
  --scroll-thumb: rgba(17, 19, 24, 0.18);
  --scroll-thumb-hover: rgba(168, 124, 32, 0.55);
  --workspace-glow: rgba(168, 124, 32, 0.075);
  --panel-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --lb-grad-1: linear-gradient(110deg, #8b5e00 0%, #c4932b 24%, #f4d06f 48%, #9f6f0c 72%, #8b5e00 100%);
  --lb-grad-2: linear-gradient(110deg, #475569 0%, #64748b 25%, #cbd5e1 50%, #475569 75%, #475569 100%);
  --lb-grad-3: linear-gradient(110deg, #7c2d12 0%, #b45309 26%, #f59e0b 50%, #9a3412 74%, #7c2d12 100%);
  --lb-grad-10: linear-gradient(110deg, #a87c20 0%, #0d8a5f 35%, #c4932b 65%, #0d8a5f 100%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080b;
  --surface: #0e1118;
  --surface-2: #151923;
  --surface-3: #1c2230;
  --nav-bg: rgba(7, 8, 11, 0.88);
  --strip-bg: #050608;
  --strip-text: #94a3b8;
  --sidebar-bg: #0b0d12;
  --sidebar-text: #f1f5f9;
  --sidebar-muted: #8a94a6;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #8d97aa;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-gold: rgba(216, 179, 93, 0.45);
  --gold: #d8b35d;
  --gold-bright: #ecd088;
  --gold-soft: rgba(216, 179, 93, 0.12);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --crimson: #ef4444;
  --crimson-soft: rgba(239, 68, 68, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, 0.14);
  --cta-bg: #d8b35d;
  --cta-text: #07080b;
  --cta-hover: #ecd088;
  --contrast-bg: #131824;
  --contrast-text: #f8fafc;
  --contrast-muted: #98a2b3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 32px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 60px -15px rgba(0, 0, 0, 0.65);
  --scroll-track: rgba(255, 255, 255, 0.03);
  --scroll-thumb: rgba(255, 255, 255, 0.14);
  --scroll-thumb-hover: rgba(216, 179, 93, 0.45);
  --workspace-glow: rgba(216, 179, 93, 0.085);
  --panel-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --lb-grad-1: linear-gradient(110deg, #d8b35d 0%, #fff4cc 24%, #facc15 48%, #d8b35d 72%, #fff4cc 100%);
  --lb-grad-2: linear-gradient(110deg, #94a3b8 0%, #f8fafc 26%, #cbd5e1 50%, #94a3b8 74%, #f8fafc 100%);
  --lb-grad-3: linear-gradient(110deg, #d97706 0%, #fde68a 26%, #fb923c 50%, #b45309 74%, #fde68a 100%);
  --lb-grad-10: linear-gradient(110deg, #ecd088 0%, #34d399 35%, #d8b35d 65%, #34d399 100%);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: 999px; }
*::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; transition: background 0.18s ease; }
*::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.landing-shell, .saas-shell { width: 100%; max-width: 100%; overflow-x: clip; }
.hero-grid > *, .grid-2 > *, .security-grid > *, .compare-grid > *, .pricing-grid > *,
.strategy-grid > *, .workflow-grid > *, .guide-steps > *, .terminal-metrics > *, .terminal-foot > * {
  min-width: 0; max-width: 100%;
}
.mono { font-family: Consolas, 'Cascadia Code', ui-monospace, monospace; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.center { text-align: center; }
.gold-text { color: var(--gold); }

/* ================= BRAND LOGOS ================= */
.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; font-weight: 800; font-size: 15px; letter-spacing: -0.3px;
}
.brand-logo-wrap {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(216, 179, 93, 0.28));
}
.brand-logo-wrap.sm { width: 32px; height: 32px; }
.brand-logo-wrap.xs { width: 22px; height: 22px; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 248, 214, 0.08) 40%,
    rgba(255, 244, 184, 0.78) 50%,
    rgba(255, 248, 214, 0.08) 60%,
    transparent 72%
  );
  background-size: 260% 100%;
  background-position: 140% 0;
  mix-blend-mode: screen;
  -webkit-mask-image: url('/logo.png?v=7');
  mask-image: url('/logo.png?v=7');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: logoShine 3.6s ease-in-out infinite;
}
@keyframes logoShine {
  0%, 42% { background-position: 140% 0; }
  85%, 100% { background-position: -60% 0; }
}

/* ================= BUTTONS ================= */
.btn {
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; font-size: 13px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s, box-shadow 0.15s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn:focus-visible, .side-link:focus-visible, .acc-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-lg { padding: 12px 22px; font-size: 14px; }
.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; }
.btn-block { width: 100%; padding: 11px; }
.btn-gold { background: var(--cta-bg); color: var(--cta-text); font-weight: 700; box-shadow: var(--shadow-sm); }
.btn-gold:hover:not(:disabled) { background: var(--cta-hover); box-shadow: 0 8px 20px -8px rgba(168, 124, 32, 0.45); }
.btn-accent { background: var(--gold); color: #ffffff; font-weight: 700; }
.btn-accent:hover:not(:disabled) { background: var(--gold-bright); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-emerald { background: var(--emerald-soft); color: var(--emerald); border-color: rgba(13, 138, 95, 0.35); }
.btn-emerald:hover:not(:disabled) { background: rgba(16, 185, 129, 0.2); border-color: var(--emerald); box-shadow: 0 6px 18px -6px rgba(16, 185, 129, 0.45); }
.btn-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(217, 119, 6, 0.35); }
.btn-amber:hover:not(:disabled) { background: rgba(245, 158, 11, 0.22); border-color: var(--amber); box-shadow: 0 6px 18px -6px rgba(245, 158, 11, 0.4); }
.btn-crimson { background: var(--crimson-soft); color: var(--crimson); border-color: rgba(220, 38, 38, 0.35); }
.btn-crimson:hover:not(:disabled) { background: rgba(239, 68, 68, 0.22); border-color: var(--crimson); box-shadow: 0 6px 18px -6px rgba(239, 68, 68, 0.45); }
.btn-telegram {
  background: var(--cyan-soft); color: var(--cyan); border-color: rgba(2, 132, 199, 0.35);
}
.btn-telegram:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2); border-color: var(--cyan);
  box-shadow: 0 6px 18px -6px rgba(56, 189, 248, 0.4);
}
.sidebar-footer .btn-telegram {
  background: rgba(56, 189, 248, 0.12); color: #38bdf8; border-color: rgba(56, 189, 248, 0.35);
}
.sidebar-footer .btn-telegram:hover {
  background: rgba(56, 189, 248, 0.22); border-color: #38bdf8; color: #7dd3fc;
}

.theme-btn {
  padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }
.sidebar-theme-btn {
  width: 100%; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border-color: var(--sidebar-border); color: var(--sidebar-text);
}
.sidebar-theme-btn:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ================= MARQUEE & NAV ================= */
.market-strip {
  width: 100%; max-width: 100%; background: var(--strip-bg); color: var(--strip-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0; font-size: 11px; letter-spacing: 0.9px;
  overflow: hidden; white-space: nowrap; display: flex;
  position: relative; contain: layout paint;
}
.market-track { display: flex; width: max-content; will-change: transform; animation: marquee 32s linear infinite; }
.market-strip:hover .market-track { animation-play-state: paused; }
.market-strip-inner {
  display: flex; flex-shrink: 0; min-width: 100%;
  align-items: center; justify-content: space-around; gap: 22px; padding-right: 22px;
}
.market-strip .sep { width: 14px; height: 1px; background: rgba(216, 179, 93, 0.55); display: inline-block; }

.land-nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.land-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.land-links { display: flex; gap: 24px; }
.land-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; transition: color 0.15s; }
.land-links a:hover { color: var(--text); }
.land-actions { display: flex; gap: 8px; align-items: center; }

/* ================= HERO ================= */
.hero { padding: 64px 24px 56px; border-bottom: 1px solid var(--border); }
.hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 6px;
  background: var(--gold-soft); border: 1px solid var(--border-gold);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(32px, 4.3vw, 50px);
  line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -1.1px;
}
.hero-sub { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.spec-k { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.9px; font-weight: 700; }
.spec-v { font-size: 15px; font-weight: 700; color: var(--text); }

/* HERO LIVE CARD */
.terminal-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--gold); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-lg);
}
.terminal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.terminal-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; }
.live-tag {
  font-size: 11px; font-weight: 700; color: var(--emerald);
  background: var(--emerald-soft); padding: 3px 9px; border-radius: 5px; letter-spacing: 0.4px;
}
.terminal-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tm-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 13px; }
.tm-lbl { display: block; font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.7px; margin-bottom: 4px; }
.tm-val { font-size: 21px; font-weight: 800; transition: color 0.25s ease; }
.tick-flash { color: var(--gold) !important; }

.terminal-chart {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; height: 128px; margin-bottom: 14px; display: flex; gap: 8px;
}
.chart-axis-labels { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; padding: 2px 0; }
.chart-svg { flex: 1; height: 100%; display: block; }
.chart-line-anim { stroke-dasharray: 560; stroke-dashoffset: 560; animation: drawLine 2.1s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.terminal-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--border); text-align: center;
}
.tf-chip {
  background: var(--surface-2); border-radius: 6px; padding: 7px 8px;
  font-size: 11px; font-weight: 600; color: var(--muted);
}

/* ================= SECTIONS ================= */
.land-section { max-width: 1200px; margin: 0 auto; padding: 68px 24px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--gold); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; font-weight: 800; letter-spacing: -0.6px; }
.section-head p { margin: 0; font-size: 15px; }

/* SOFT STRATEGY GRID */
.strategy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.strat-card:hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: var(--shadow-md); }
.strat-num { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 10px; }
.strat-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.strat-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* COMPARISON STRIP */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card {
  border-radius: 16px; padding: 28px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.compare-card.contrast {
  background: var(--contrast-bg); color: var(--contrast-text); border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}
.compare-card.contrast .muted { color: var(--contrast-muted); }
.compare-card h3 { margin: 6px 0 14px; font-size: 20px; font-weight: 800; }
.compare-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13.5px; }

/* HOW IT WORKS */
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wf-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, border-color 0.2s ease;
}
.wf-card:hover { transform: translateY(-3px); border-color: var(--border-gold); }
.wf-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wf-num { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.wf-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.wf-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.wf-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: var(--shadow-md); }
.price-card.popular {
  background: var(--contrast-bg); color: var(--contrast-text); border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}
.price-card.popular .plan-desc,
.price-card.popular .period { color: var(--contrast-muted); }
.price-card.popular .plan-list { color: #e2e8f0; }
.price-card.popular .btn-gold { background: #d8b35d; color: #07080b; }
.price-card.popular .btn-gold:hover { background: #ecd088; }
.plan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; }
.plan-tier { font-size: 12px; font-weight: 700; letter-spacing: 0.9px; }
.plan-dur { font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 3px 9px; border-radius: 5px; }
.plan-rec {
  font-size: 10px; font-weight: 700; color: #07080b; background: #d8b35d;
  padding: 3px 9px; border-radius: 5px; letter-spacing: 0.4px;
}
.plan-price { margin-bottom: 8px; }
.plan-price .currency { font-size: 20px; font-weight: 700; vertical-align: top; }
.plan-price .amount { font-size: 40px; font-weight: 800; letter-spacing: -1.2px; }
.plan-price .period { font-size: 13px; color: var(--muted); }
.plan-soon-block {
  margin: 4px 0 14px; padding: 14px 16px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--border-gold);
  display: flex; flex-direction: column; gap: 3px;
}
.plan-soon-title {
  font-size: 20px; font-weight: 800; letter-spacing: 0.9px; color: var(--gold);
}
.plan-soon-sub { font-size: 12px; color: var(--muted); }
.price-card.popular .plan-soon-block {
  background: rgba(216, 179, 93, 0.1); border-color: rgba(216, 179, 93, 0.45);
}
.price-card.popular .plan-soon-title { color: #ebd089; }
.price-card.popular .plan-soon-sub { color: var(--contrast-muted); }
.price-card.popular .btn-outline:disabled {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(216, 179, 93, 0.35);
  color: #ebd089; opacity: 0.72;
}
.plan-desc { font-size: 13px; margin: 0 0 18px; min-height: 38px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 13px; }
.plan-list li::before { content: "\2713  "; color: var(--gold); font-weight: 700; }

/* FAQ & FOOTER */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; background: transparent; border: none; color: var(--text);
  padding: 16px 20px; text-align: left; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-icon { color: var(--gold); font-size: 18px; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.22s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; padding: 0 20px; font-size: 13px; line-height: 1.6; }
.faq-item.open .faq-a-inner { padding-bottom: 16px; }

.land-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 26px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ================= MODALS ================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6, 8, 12, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal-card {
  width: 100%; max-width: 520px; margin: auto;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 24px; box-shadow: var(--shadow-lg);
}
.auth-card { max-width: 430px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--surface-2); padding: 4px; border-radius: 9px; margin-bottom: 16px;
  border: 1px solid var(--border);
}
.auth-tab {
  padding: 9px; border-radius: 7px; border: none; background: transparent;
  color: var(--muted); font-weight: 600; cursor: pointer; font-size: 13px;
}
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.plan-pill-banner {
  margin-bottom: 12px; padding: 8px 12px; border-radius: 7px;
  background: var(--gold-soft); border: 1px solid var(--border-gold);
  color: var(--gold); font-size: 12px; font-weight: 600;
}

.form-stack { display: flex; flex-direction: column; gap: 13px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
input, select {
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  padding: 10px 12px; border-radius: 8px; font-size: 14px; outline: none;
}
input:focus, select:focus { border-color: var(--gold); background: var(--surface); }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.checkbox-row { flex-direction: row; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }
.checkbox-row input { width: auto; }
.alert {
  background: var(--crimson-soft); border: 1px solid rgba(220, 38, 38, 0.35);
  color: var(--crimson); padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px;
}
.alert-ok {
  background: var(--emerald-soft); border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald);
}
.auth-hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.auth-link-row { display: flex; justify-content: flex-end; margin-top: -4px; }
.auth-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.link-btn {
  background: transparent; border: none; padding: 2px 0; cursor: pointer;
  color: var(--gold); font-size: 12.5px; font-weight: 600;
}
.link-btn:hover:not(:disabled) { text-decoration: underline; }
.link-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.otp-input {
  font-size: 22px; letter-spacing: 8px; text-align: center; font-weight: 700;
  padding: 12px 14px;
}

/* ================= PRO SAAS SHELL ================= */
.saas-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, #0a0c11 100%);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: inset 0 1px 0 rgba(216, 179, 93, 0.22);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand {
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-brand .brand-name { color: var(--sidebar-text); }
.sidebar-brand .gold-text { color: #d8b35d; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 13px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--sidebar-muted); font-weight: 600; font-size: 13px;
  cursor: pointer; text-align: left;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.side-link svg { opacity: 0.78; flex-shrink: 0; transition: opacity 0.16s ease, color 0.16s ease; }
.side-link:hover { color: var(--sidebar-text); background: rgba(255, 255, 255, 0.06); }
.side-link:hover svg { opacity: 1; }
.side-link.active {
  color: #f3dc9b;
  background: linear-gradient(90deg, rgba(216, 179, 93, 0.16), rgba(216, 179, 93, 0.05));
  border-color: rgba(216, 179, 93, 0.34);
}
.side-link.active svg { opacity: 1; color: #ebd089; }
.side-link.active::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  border-radius: 0 3px 3px 0; background: #d8b35d;
}
.sidebar-footer {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--sidebar-border);
}
.sidebar-footer .btn-outline {
  background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.16); color: var(--sidebar-text);
}
.sidebar-footer .btn-outline:hover { border-color: #d8b35d; color: #ebd089; background: rgba(216, 179, 93, 0.08); }
.side-status-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.side-status-row .pill { justify-content: center; width: 100%; }
.user-meta {
  font-size: 12px; font-weight: 600; word-break: break-word; color: var(--sidebar-text);
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px; padding: 9px 11px; line-height: 1.4;
}

.main-area {
  flex: 1; min-width: 0; padding: 26px 30px;
  background: radial-gradient(960px 360px at 50% -80px, var(--workspace-glow), transparent 72%);
}
.dash-page { max-width: 1220px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow-sm), var(--panel-sheen);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.empty-card { max-width: 480px; margin: 60px auto; text-align: center; padding: 36px 26px; }
.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* USER GUIDE */
.guide-hero { border-left: 3px solid var(--gold); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.guide-alert-card {
  border-left: 3px solid var(--amber);
  background: linear-gradient(90deg, var(--amber-soft), var(--surface) 48%);
}
.risk-modal-card { max-width: 470px; border-top: 3px solid var(--amber); }
.risk-modal-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.risk-check-box {
  padding: 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-gold);
  margin: 14px 0;
}
.risk-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.guide-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  box-shadow: var(--shadow-sm);
}
.guide-step-num { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 0.9px; margin-bottom: 6px; }
.guide-step-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.guide-step-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13px; color: var(--text); }
.guide-list li::before { content: "\2713  "; color: var(--gold); font-weight: 700; }
.guide-status-list { display: grid; gap: 10px; }
.guide-status-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.guide-status-row:last-child { border-bottom: none; padding-bottom: 0; }
.guide-faq { max-width: none; margin: 0; }

/* SUBSCRIPTION */
.sub-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--emerald);
  box-shadow: var(--shadow-sm);
}
.sub-strip.warn { border-left-color: var(--amber); }
.sub-strip.expired { border-left-color: var(--crimson); }
.maint-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-radius: 10px;
  background: var(--amber-soft); border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--text); font-size: 13px; font-weight: 600;
}
.market-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-radius: 10px;
  background: var(--cyan-soft); border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text); font-size: 13px; font-weight: 600;
}
.sub-strip-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sub-strip-title { font-weight: 700; font-size: 13px; }
.sub-hero-card { border-left: 3px solid var(--gold); }
.sub-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sub-hero-right { text-align: right; }
.sub-days-big { font-size: 22px; font-weight: 800; color: var(--gold); }
.sub-progress-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.sub-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--emerald)); transition: width 0.35s ease; }
.sub-hero-foot {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

/* MONITOR & ADMIN */
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.account-tabs, .admin-subtabs {
  display: inline-flex; gap: 4px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px; border-radius: 11px; align-self: flex-start;
}
.account-tabs:empty { display: none; }
.acc-tab {
  padding: 7px 14px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 13px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.acc-tab:hover { color: var(--text); background: var(--surface); }
.acc-tab.active {
  border-color: var(--border-gold); color: var(--gold);
  background: var(--surface); box-shadow: var(--shadow-sm);
}

.ops-hero {
  border-left: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.ops-hero-left { min-width: 220px; }
.ops-hero-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ops-hero-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap-meter { min-width: 210px; flex: 1; }
.cap-meter-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11px; font-weight: 700; margin-bottom: 6px;
}
.cap-bar-track {
  height: 7px; width: 100%; border-radius: 999px;
  background: var(--surface-3); overflow: hidden; border: 1px solid var(--border);
}
.cap-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  transition: width 0.35s ease, background 0.25s ease;
}
.cap-bar-fill.warn { background: linear-gradient(90deg, var(--gold), var(--amber)); }
.cap-bar-fill.danger { background: linear-gradient(90deg, var(--amber), var(--crimson)); }

.toolbar-search {
  width: 220px; padding: 6px 11px; font-size: 12.5px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
}
.toolbar-search:focus { border-color: var(--gold); background: var(--surface); }

.status-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.status-strip[data-state="CONNECTED"] { border-top: 2px solid var(--emerald); }
.status-strip[data-state="CONNECTING"]::after,
.status-strip[data-state="RECONNECTING"]::after,
.status-strip[data-state="STOPPING"]::after,
.status-strip[data-state="CLOSING"]::after {
  content: ""; position: absolute; top: 0; left: 0; width: 42%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--gold-bright), transparent);
  animation: stripSweep 1.6s ease-in-out infinite;
}
.status-meta, .status-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pill {
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pill-gold { color: var(--gold); background: var(--gold-soft); border-color: var(--border-gold); }
.pill-emerald { color: var(--emerald); background: var(--emerald-soft); border-color: rgba(13, 138, 95, 0.3); }
.pill-crimson { color: var(--crimson); background: var(--crimson-soft); border-color: rgba(220, 38, 38, 0.3); }
.pill-amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(217, 119, 6, 0.3); }
.pill-cyan { color: var(--cyan); background: var(--cyan-soft); border-color: rgba(2, 132, 199, 0.3); }
.pill-muted { color: var(--muted); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.kpi { position: relative; overflow: hidden; border-top: 2px solid transparent; padding: 16px 18px; }
.kpi:hover { transform: translateY(-2px); border-color: var(--border-gold); box-shadow: var(--shadow-md); }
.kpi.kpi-gold { border-top-color: var(--gold); }
.kpi.kpi-pos { border-top-color: var(--emerald); }
.kpi.kpi-warn { border-top-color: var(--amber); }
.kpi.kpi-neg { border-top-color: var(--crimson); }
.kpi-bar-track {
  margin-top: 8px; height: 4px; width: 100%; border-radius: 999px;
  background: var(--surface-3); overflow: hidden;
}
.kpi-bar-fill {
  height: 100%; border-radius: 999px; background: var(--emerald);
  transition: width 0.35s ease, background-color 0.25s ease;
}
.kpi-bar-fill.warn { background: var(--amber); }
.kpi-bar-fill.danger { background: var(--crimson); }
.kpi-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.6px; }
.kpi-val {
  font-size: 22px; font-weight: 800; margin: 6px 0 4px;
  border-radius: 6px; display: inline-block; padding: 0 4px; margin-left: -4px;
  transition: color 0.25s ease;
}
.kpi-val.kpi-flash-up { animation: kpiFlashUp 0.55s ease-out; }
.kpi-val.kpi-flash-down { animation: kpiFlashDown 0.55s ease-out; }
.kpi-sub { font-size: 12px; }
.pos { color: var(--emerald); }
.neg { color: var(--crimson); }

.card-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 12px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.sub-title { font-size: 11px; font-weight: 700; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.grid-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.system-stack { display: flex; flex-direction: column; gap: 16px; }

.preset-dropzone {
  border: 1px dashed var(--border-gold);
  background: var(--gold-soft);
  border-radius: 10px; padding: 14px 16px; text-align: center; cursor: pointer;
  margin-bottom: 12px; transition: border-color 0.2s ease, background 0.2s ease;
}
.preset-dropzone:hover, .preset-dropzone.drag-over {
  border-color: var(--gold); background: rgba(168, 124, 32, 0.16);
}
.preset-review {
  border: 1px solid var(--border-gold); background: var(--surface-2);
  border-radius: 10px; padding: 14px; margin-bottom: 14px;
}
.preset-review-head, .preset-review-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.preset-review-head { margin-bottom: 10px; }
.preset-review-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.diff-row-changed { background: var(--gold-soft); }
.diff-old { color: var(--muted); text-decoration: line-through; }
.diff-new { color: var(--emerald); font-weight: 700; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap.compact { max-height: 220px; overflow-y: auto; margin-top: 12px; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
thead th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; background: var(--surface-2); }
.table-wrap.compact thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color 0.15s ease; }
tbody tr:hover, tbody tr.is-active { background: var(--gold-soft); }

.side-badge {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
}
.side-badge.buy { background: var(--emerald-soft); color: var(--emerald); }
.side-badge.sell { background: var(--crimson-soft); color: var(--crimson); }
.layer-tag {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; font-weight: 700;
}

.days-summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.day-chip {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.day-chip.pos { color: var(--emerald); background: var(--emerald-soft); border-color: rgba(16, 185, 129, 0.28); }
.day-chip.neg { color: var(--crimson); background: var(--crimson-soft); border-color: rgba(239, 68, 68, 0.28); }

.pnl-chart {
  position: relative; height: 176px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px 12px 24px; overflow: hidden;
}
.pnl-grid {
  position: absolute; inset: 28px 12px 24px; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pnl-grid-line { border-top: 1px dashed var(--border); width: 100%; opacity: 0.75; }
.pnl-zero-line {
  position: absolute; left: 12px; right: 12px; top: calc(28px + (100% - 52px) * 0.5);
  height: 1px; background: var(--border-strong); pointer-events: none;
}
.pnl-bars {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: stretch; gap: 5px;
}
.pnl-col {
  flex: 1; min-width: 0; height: 100%; position: relative;
  display: flex; flex-direction: column; cursor: pointer;
  transition: opacity 0.16s ease;
}
.pnl-bars:hover .pnl-col:not(:hover):not(.is-active) { opacity: 0.42; }
.pnl-col.is-active { opacity: 1 !important; }
.pnl-half { flex: 1; display: flex; justify-content: center; width: 100%; min-height: 0; }
.pnl-half.up { align-items: flex-end; padding-bottom: 1px; }
.pnl-half.down { align-items: flex-start; padding-top: 1px; }
.pnl-bar {
  width: 78%; max-width: 18px; min-height: 5px;
  transform-origin: bottom;
  animation: barGrowY 0.46s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 26ms);
  transition: filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.pnl-bar.pos {
  background: linear-gradient(180deg, #34d399, var(--emerald));
  border-radius: 5px 5px 1px 1px;
}
.pnl-bar.neg {
  background: linear-gradient(180deg, var(--crimson), #f87171);
  border-radius: 1px 1px 5px 5px;
  transform-origin: top;
}
.pnl-col:hover .pnl-bar.pos, .pnl-col.is-active .pnl-bar.pos {
  filter: brightness(1.12); box-shadow: 0 0 12px rgba(16, 185, 129, 0.42);
}
.pnl-col:hover .pnl-bar.neg, .pnl-col.is-active .pnl-bar.neg {
  filter: brightness(1.12); box-shadow: 0 0 12px rgba(239, 68, 68, 0.42);
}
.pnl-zero-dot {
  position: absolute; left: 22%; right: 22%; top: 50%; height: 2px;
  transform: translateY(-50%); border-radius: 2px;
  background: var(--border-strong); opacity: 0.75;
}
.pnl-col:hover .pnl-zero-dot, .pnl-col.is-active .pnl-zero-dot {
  background: var(--gold); opacity: 1; height: 3px;
}
.pnl-lbl {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; color: var(--muted); white-space: nowrap; pointer-events: none;
}
.pnl-tooltip {
  position: absolute; top: 6px; left: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 9px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm); font-size: 11px; pointer-events: none;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.16s ease, transform 0.16s ease;
}
.pnl-tooltip.visible { opacity: 1; transform: translateY(0); }

.dd-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cur-unit { font-size: 0.54em; font-weight: 700; opacity: 0.72; margin-left: 4px; letter-spacing: 0.3px; }
.cur-inline { font-size: 0.84em; font-weight: 600; opacity: 0.76; margin-left: 3px; }
.money-cell { white-space: nowrap; }
.dd-bar-track {
  width: 44px; height: 5px; border-radius: 999px;
  background: var(--surface-3); overflow: hidden; flex-shrink: 0;
}
.dd-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--crimson));
  transition: width 0.35s ease;
}

.log-box { height: 210px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 12px; line-height: 1.6; }
.log-line { padding: 2px 4px; border-radius: 4px; animation: rowIn 0.22s ease-out; }
.log-line.log-ok { color: var(--emerald); }
.log-line.log-warn { color: var(--amber); }
.log-line.log-err { color: var(--crimson); }
.preset-pre { max-height: 290px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 12px; margin: 0; }
.admin-actions-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ================= ACCOUNT & SECURITY ================= */
.sec-hero {
  border-left: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.security-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: start; }
.sec-meta-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.sec-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.sec-meta-row:last-child { border-bottom: none; }
.sec-meta-k { color: var(--muted); font-weight: 600; font-size: 12px; }
.sec-meta-v { font-weight: 700; text-align: right; word-break: break-word; }
.sec-guard-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
}
.otp-request-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border-gold);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.otp-step-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 2px;
}
.pw-meter-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pw-meter-track {
  flex: 1; height: 5px; border-radius: 999px;
  background: var(--surface-3); overflow: hidden;
}
.pw-meter-fill {
  height: 100%; width: 0%; border-radius: 999px;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.pw-meter-fill.weak { background: var(--crimson); }
.pw-meter-fill.good { background: var(--amber); }
.pw-meter-fill.strong { background: var(--emerald); }
.pw-meter-label { font-size: 11px; font-weight: 700; min-width: 58px; text-align: right; }

/* ================= LIVE LEADERBOARD ================= */
.lb-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--surface) 0%, var(--gold-soft) 100%);
  border-color: var(--border-gold);
}
.lb-hero h2 { margin: 4px 0 4px; font-size: 24px; letter-spacing: -0.5px; }
.lb-hero p { margin: 0; font-size: 13.5px; }
.lb-hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.lb-my-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}
.lb-my-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-my-lbl { font-size: 10px; font-weight: 800; letter-spacing: 0.7px; color: var(--muted); }
.lb-my-val { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lb-podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end;
}
.lb-pod-card {
  position: relative; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px;
}
.lb-pod-card.r1 {
  order: 2; padding-top: 22px; padding-bottom: 22px;
  border-color: var(--border-gold);
  background: linear-gradient(160deg, var(--surface) 0%, var(--gold-soft) 100%);
  box-shadow: 0 18px 40px -14px rgba(168, 124, 32, 0.35), var(--panel-sheen);
}
.lb-pod-card.r1::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 180, 0.16), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: lbCardSheen 4.6s ease-in-out infinite;
}
.lb-pod-card.r2 { order: 1; border-color: rgba(148, 163, 184, 0.45); }
.lb-pod-card.r3 { order: 3; border-color: rgba(217, 119, 6, 0.38); }
.lb-pod-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lb-pod-name {
  font-size: 19px; font-weight: 900; letter-spacing: -0.3px;
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
}
.lb-pod-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pod-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.lb-pod-stat-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: var(--muted); }
.lb-pod-stat-val { font-size: 15px; font-weight: 800; margin-top: 2px; }

.lb-rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 26px; padding: 0 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted);
}
.lb-rank-badge.r1 {
  background: linear-gradient(135deg, #f59e0b, #d8b35d); color: #111318;
  border-color: rgba(250, 204, 21, 0.7); box-shadow: 0 0 16px rgba(216, 179, 93, 0.32);
}
.lb-rank-badge.r2 {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #0f172a;
  border-color: rgba(226, 232, 240, 0.75);
}
.lb-rank-badge.r3 {
  background: linear-gradient(135deg, #f59e0b, #b45309); color: #ffffff;
  border-color: rgba(245, 158, 11, 0.65);
}
.lb-rank-badge.r10 {
  background: var(--gold-soft); color: var(--gold); border-color: var(--border-gold);
}

.lb-trader-cell { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.lb-tier-pill {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; padding: 2px 7px;
  border-radius: 999px; border: 1px solid var(--border-gold);
  background: var(--gold-soft); color: var(--gold);
}
.lb-you-pill {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; padding: 2px 7px;
  border-radius: 999px; border: 1px solid rgba(16, 185, 129, 0.45);
  background: var(--emerald-soft); color: var(--emerald);
}
.lb-cur-tag { font-size: 10px; font-weight: 700; opacity: 0.78; margin-left: 4px; }

.lb-name-1, .lb-name-2, .lb-name-3, .lb-name-top10 {
  font-weight: 900; display: inline-block;
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lb-name-1 {
  background-image: var(--lb-grad-1);
  animation: lbShimmer 2.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(216, 179, 93, 0.3));
}
.lb-name-2 {
  background-image: var(--lb-grad-2);
  animation: lbShimmer 3.2s linear infinite;
}
.lb-name-3 {
  background-image: var(--lb-grad-3);
  animation: lbShimmer 3.6s linear infinite;
}
.lb-name-top10 {
  background-image: var(--lb-grad-10);
  animation: lbShimmer 4.2s linear infinite;
}
.lb-icon-1 { color: var(--gold-bright); flex-shrink: 0; animation: lbCrownFloat 2.4s ease-in-out infinite; }
.lb-icon-2 { color: #94a3b8; flex-shrink: 0; }
.lb-icon-3 { color: #d97706; flex-shrink: 0; }
.lb-icon-10 { color: var(--emerald); flex-shrink: 0; }

.lb-row-top3 { background: linear-gradient(90deg, var(--gold-soft), transparent 72%); }
.lb-row-top10 { background: linear-gradient(90deg, rgba(16, 185, 129, 0.055), transparent 68%); }
.lb-row-you td:first-child { box-shadow: inset 3px 0 0 var(--emerald); }

/* ================= REVEAL & MOTION ================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

.auth-card, .modal-card { animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.dash-page:not(.hidden) { animation: pageFade 0.2s ease-out; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pageFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes barGrowY { from { transform: scaleY(0); opacity: 0.25; } to { transform: scaleY(1); opacity: 1; } }
@keyframes stripSweep { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes kpiFlashUp { 0% { background: rgba(16, 185, 129, 0.24); } 100% { background: transparent; } }
@keyframes kpiFlashDown { 0% { background: rgba(239, 68, 68, 0.24); } 100% { background: transparent; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lbShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 260% 50%; } }
@keyframes lbCrownFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes lbCardSheen { 0%, 55% { left: -120%; } 100% { left: 165%; } }

@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid, .strategy-grid, .compare-grid, .workflow-grid, .pricing-grid, .guide-steps, .grid-2, .security-grid { grid-template-columns: 1fr; }
  .land-links { display: none; }
  .saas-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 14px; gap: 12px; border-right: none; border-bottom: 1px solid var(--sidebar-border); }
  .sidebar-brand { padding: 2px 2px 10px; }
  .sidebar-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .side-link { width: 100%; justify-content: flex-start; padding: 9px 10px; font-size: 12.5px; }
  .side-link.active::before { left: 16%; right: 16%; top: auto; bottom: 0; width: auto; height: 2px; border-radius: 2px; }
  .side-status-row { flex-direction: row; }
  .side-status-row .pill { width: auto; }
  .main-area { padding: 14px 12px 24px; }
  .toolbar-search { width: 100%; }
}
@media (max-width: 780px) {
  .lb-podium { grid-template-columns: 1fr; }
  .lb-pod-card.r1, .lb-pod-card.r2, .lb-pod-card.r3 { order: initial; }
  .lb-my-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  input, select, .toolbar-search { font-size: 16px; }
  .otp-input { font-size: 22px; }
}
@media (max-width: 680px) {
  .land-nav-inner { padding: 10px 14px; gap: 8px; }
  .brand-link { gap: 7px; font-size: 14px; flex-shrink: 0; }
  .brand-logo-wrap { width: 30px; height: 30px; }
  .land-nav .brand-name .gold-text { display: none; }
  .land-actions { gap: 6px; flex-shrink: 0; }
  .land-actions .btn, .land-actions .theme-btn { padding: 7px 9px; font-size: 11.5px; white-space: nowrap; line-height: 1.2; }
  .hero { padding: 32px 16px 36px; }
  .hero-grid { gap: 26px; }
  .hero-kicker { font-size: 10px; letter-spacing: 0.7px; max-width: 100%; }
  .hero-title { font-size: clamp(26px, 7.5vw, 34px); letter-spacing: -0.7px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 20px; }
  .hero-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
  .hero-cta-row .btn-lg { width: 100%; padding: 11px 12px; font-size: 13px; white-space: nowrap; }
  .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .terminal-panel { padding: 15px; border-radius: 14px; }
  .terminal-head { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; }
  .terminal-title { font-size: 11px; flex-wrap: wrap; }
  .terminal-metrics { gap: 8px; }
  .tm-box { padding: 10px 11px; }
  .tm-val { font-size: 17px; }
  .terminal-foot { gap: 6px; }
  .tf-chip { font-size: 10px; padding: 6px 4px; }
  .land-section { padding: 44px 16px; }
  .compare-card, .price-card, .panel { padding: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-val { font-size: 18px; }
  .grid-2-tight { grid-template-columns: 1fr; }
  .sub-hero-right { text-align: left; }
  .cap-meter { min-width: 0; width: 100%; }
  .modal-backdrop { padding: 12px; align-items: flex-start; }
  .modal-card { padding: 18px 16px; margin: 16px auto; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-line-anim, .market-track, .auth-card, .modal-card, .dash-page,
  .pnl-bar, .status-strip::after, .kpi-val.kpi-flash-up, .kpi-val.kpi-flash-down, .log-line,
  .lb-name-1, .lb-name-2, .lb-name-3, .lb-name-top10, .lb-icon-1, .lb-pod-card.r1::after,
  .brand-logo-wrap::after { animation: none !important; }
  .brand-logo-wrap::after { opacity: 0; }
  .chart-line-anim { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
