/* AUTOTRADE Portal — Luxury Trading Theme */

:root {
  --bg: #030712;
  --bg2: #0a0f1e;
  --surface: rgba(10, 16, 32, 0.82);
  --surface2: rgba(14, 22, 42, 0.95);
  --border: rgba(212, 175, 55, 0.1);
  --border2: rgba(0, 229, 255, 0.12);
  --gold: #d4af37;
  --gold2: #f0d060;
  --gold-dim: rgba(212, 175, 55, 0.1);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.08);
  --purple: #8b5cf6;
  --green: #22c55e;
  --red: #ef4444;
  --text: #eef2fb;
  --muted: #7a8ba8;
  --radius: 18px;
  --rsm: 12px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
body {
  font-family: 'Kanit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
}
a { color: var(--cyan); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold2); }

[data-lucide] { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

/* ── Background ── */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-chart {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(212,175,55,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; }
.bg-glow-a { width: 700px; height: 700px; background: rgba(212,175,55,0.12); top: -300px; right: -200px; }
.bg-glow-b { width: 600px; height: 600px; background: rgba(0,229,255,0.08); bottom: -200px; left: -150px; }

/* ── Ticker ── */
.ticker-bar {
  position: relative; z-index: 10;
  background: rgba(3, 7, 18, 0.95);
  border-bottom: 1px solid var(--border);
  overflow: hidden; height: 32px;
}
.ticker-track {
  display: flex; gap: 40px; align-items: center; height: 100%;
  animation: ticker 30s linear infinite; white-space: nowrap; padding: 0 20px;
}
.ticker-track span { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }
.ticker-track em { font-style: normal; margin-left: 6px; font-weight: 600; }
.ticker-track em.up { color: var(--green); }
.ticker-track em.down { color: var(--red); }
.ticker-track em.gold { color: var(--gold2); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Nav ── */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  width: 100%;
  max-width: 100%;
  background: rgba(3, 7, 18, 0.96);
  border-bottom: 1px solid var(--border);
}
.site-top-dash { padding: 12px 24px; }
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
  position: relative;
  z-index: 2;
}
.nav-brand:hover { color: var(--text); text-decoration: none; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 11px; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 0 20px rgba(212,175,55,0.15);
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800; font-size: 17px; letter-spacing: 3px;
}
.brand-name span { color: var(--gold2); }

.nav-menu { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }

/* ── Nav Pills (top menu buttons) ── */
.nav-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-user-area { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--border); }

.nav-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--ease); text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.nav-pill:hover {
  color: var(--text); background: var(--gold-dim);
  border-color: rgba(212,175,55,0.25); text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.nav-pill.active {
  color: var(--gold2); background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(0,229,255,0.06));
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 0 20px rgba(212,175,55,0.12);
}
.nav-pill-gold {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0a0e17; border-color: transparent;
  box-shadow: 0 4px 18px rgba(212,175,55,0.3);
}
.nav-pill-gold:hover { color: #0a0e17; box-shadow: 0 6px 24px rgba(212,175,55,0.4); }
.nav-pill-out {
  color: #fca5a5; border-color: rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.06);
}
.nav-pill-out:hover { color: #fecaca; background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); }

.pill-ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); flex-shrink: 0;
}
.nav-pill.active .pill-ico { background: rgba(212,175,55,0.2); }
.nav-pill-gold .pill-ico { background: rgba(0,0,0,0.15); }
.pill-ico [data-lucide] { width: 15px; height: 15px; }
.nav-pill.active .pill-ico [data-lucide] { color: var(--gold2); }
.nav-pill-gold .pill-ico [data-lucide] { color: #0a0e17; }

.nav-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.nav-user-chip [data-lucide] { width: 15px; height: 15px; color: var(--gold); }

/* legacy nav-link (fallback) */
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--rsm);
  font-size: 14px; font-weight: 500; color: var(--muted);
  border: 1px solid transparent; transition: var(--ease);
  cursor: pointer; text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--gold-dim); text-decoration: none; }
.nav-link.active { color: var(--gold2); background: var(--gold-dim); border-color: rgba(212,175,55,0.2); }
.nav-link.nav-cta {
  background: linear-gradient(135deg, var(--gold), #a8862a);
  color: #0a0e17; font-weight: 700;
  border: none; box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}
.nav-link.nav-cta:hover { color: #0a0e17; box-shadow: 0 6px 24px rgba(212,175,55,0.35); }
.nav-link.nav-ext { color: var(--cyan); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 102;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.nav-toggle-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.nav-toggle-close { display: none; }
.nav-toggle.is-open .nav-toggle-menu { display: none; }
.nav-toggle.is-open .nav-toggle-close { display: flex; }
.nav-toggle [data-lucide] { width: 22px; height: 22px; }

.nav-top-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.nav-top-toggle:hover {
  color: var(--text);
  background: var(--gold-dim);
  border-color: rgba(212, 175, 55, 0.25);
}
.nav-top-toggle-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.nav-top-toggle-ico [data-lucide] { width: 16px; height: 16px; }
.nav-top-toggle-close { display: none; }
.nav-top-toggle-txt { pointer-events: none; }
.site-top-dash.nav-top-open .nav-top-toggle-menu { display: none; }
.site-top-dash.nav-top-open .nav-top-toggle-close { display: flex; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ── Views (SPA) ── */
.app-main { position: relative; z-index: 1; min-height: calc(100vh - 200px); max-width: 100%; overflow-x: clip; }
.view { display: none; animation: viewIn 0.35s ease; max-width: 100%; overflow-x: clip; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Hero ── */
.hero-wrap {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding: 24px 28px 16px;
}
.hero-glow {
  position: absolute; width: 600px; height: 400px;
  top: 0; left: 30%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(212,175,55,0.07), transparent 70%);
  pointer-events: none;
}

.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center;
  padding: 32px 0 24px;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold2); font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 20px;
}
.hero-tag [data-lucide] { width: 14px; height: 14px; }

.hero-title { margin-bottom: 18px; }
.hero-title .line1 {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 800; line-height: 1.1; letter-spacing: 2px;
}
.hero-title .line1 .gold { color: var(--gold2); }
.hero-title .line2 {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 700; color: var(--cyan);
  letter-spacing: clamp(2px, 1.5vw, 6px); margin-top: 4px;
  word-break: break-word;
}

.hero-lead {
  color: var(--muted); font-size: 16px; max-width: 500px;
  margin-bottom: 18px; line-height: 1.75;
}
.hero-lead strong { color: var(--gold2); }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--ease);
}
.hero-chip:hover { border-color: rgba(212,175,55,0.25); color: var(--text); }
.hero-chip [data-lucide] { width: 13px; height: 13px; color: var(--gold); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 520px;
}
.trust-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; transition: var(--ease);
}
.trust-card:hover { border-color: rgba(212,175,55,0.2); transform: translateY(-2px); }
.trust-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.2);
}
.trust-ico [data-lucide] { width: 18px; height: 18px; color: var(--gold2); }
.trust-ico.green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); }
.trust-ico.green [data-lucide] { color: var(--green); }
.trust-ico.cyan { background: var(--cyan-dim); border-color: rgba(0,229,255,0.2); }
.trust-ico.cyan [data-lucide] { color: var(--cyan); }
.trust-card strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.trust-card span { font-size: 10px; color: var(--muted); }

/* legacy trust-item */
.trust-item {
  padding: 14px 22px; text-align: center;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border: none; }
.trust-item [data-lucide] { width: 20px; height: 20px; color: var(--gold); margin-bottom: 4px; }
.trust-item strong { display: block; font-size: 15px; font-weight: 700; color: var(--gold2); }
.trust-item span { font-size: 11px; color: var(--muted); }

/* Terminal mock */
.hero-terminal { perspective: 1000px; position: relative; }
.terminal-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.08), transparent 70%);
  pointer-events: none;
}
.terminal-frame {
  position: relative;
  background: linear-gradient(160deg, rgba(14,20,38,0.98), rgba(8,12,24,0.99));
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 80px rgba(0,229,255,0.08), 0 0 40px rgba(212,175,55,0.06);
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform 0.4s ease;
  overflow: hidden;
}
.terminal-frame::before {
  content: ''; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,0.3), transparent 40%, rgba(0,229,255,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.terminal-frame:hover { transform: rotateY(0) rotateX(0); }
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; background: rgba(0,0,0,0.45);
  border-bottom: 1px solid var(--border);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ef4444; }
.terminal-bar .dot.y { background: #eab308; }
.terminal-bar .dot.g { background: #22c55e; }
.terminal-title { margin-left: 8px; font-size: 11px; color: var(--muted); letter-spacing: 1px; flex: 1; }
.terminal-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; color: var(--green);
  padding: 3px 10px; border-radius: 12px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
}
.terminal-body { padding: 18px 20px 16px; }
.terminal-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-logo {
  width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.terminal-head-info .term-label { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.terminal-head-info b { font-size: 15px; color: var(--cyan); letter-spacing: 0.5px; }

.terminal-rows { font-size: 13px; margin-bottom: 12px; }
.t-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.t-row span {
  color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.t-row span [data-lucide] { width: 13px; height: 13px; opacity: 0.7; }
.t-row b { font-weight: 600; }
.t-row b.call { color: var(--green); }
.t-row b.put { color: var(--red); }
.t-row b.live { color: var(--green); display: flex; align-items: center; gap: 6px; }

.t-row-score { gap: 12px; }
.term-score {
  flex: 1; max-width: 120px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.term-score-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 0.6s ease;
}

.pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.terminal-chart { height: 48px; opacity: 0.9; margin-top: 4px; }
.terminal-chart svg { width: 100%; height: 100%; }

.risk-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 900px; margin: 0 auto 16px; padding: 10px 20px;
  background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--rsm); font-size: 13px; color: #fcd34d;
}
.risk-banner [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Blocks ── */
.block { max-width: 1180px; margin: 0 auto; padding: 56px 28px; }
.block-dim { background: linear-gradient(180deg, transparent, rgba(212,175,55,0.02), transparent); }
.block-head { text-align: center; margin-bottom: 40px; }
.block-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 10px;
}
.block-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.block-head h2 .grad {
  background: linear-gradient(135deg, var(--gold2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.block-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }

.block-head h2.block-h2 {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: clamp(26px, 4vw, 36px); font-weight: 800;
}
.block-h2.center { justify-content: center; }
.h2-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.25);
  flex-shrink: 0;
}
.h2-ico [data-lucide] { width: 22px; height: 22px; color: var(--gold2); }

.feat-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.feat-card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; margin: 0;
}
.feat-card h3 [data-lucide] { width: 17px; height: 17px; color: var(--gold2); flex-shrink: 0; }
.feat-card h3 [data-lucide] { display: none; }
@media (max-width: 768px) {
  .feat-head .feat-ico { display: none; }
  .feat-card h3 [data-lucide] { display: block; }
}

.block-dim { background: linear-gradient(180deg, transparent, rgba(212,175,55,0.02), transparent); }

/* ── Steps premium ── */
.block-steps { padding-bottom: 48px; }

.steps-premium {
  position: relative; max-width: 1100px; margin: 0 auto;
  padding: 44px 36px 48px;
  background: linear-gradient(160deg, rgba(12,18,34,0.9), rgba(6,10,20,0.95));
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}
.steps-premium::before {
  content: ''; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,0.2), transparent 50%, rgba(0,229,255,0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.steps-glow {
  position: absolute; width: 500px; height: 300px;
  top: -100px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(212,175,55,0.06), transparent 70%);
  pointer-events: none;
}

.steps-timeline {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: stretch;
  margin-top: 12px;
}

.step-card {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px 22px 24px;
  text-align: left;
  transition: var(--ease);
  position: relative; overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.step-card.s1::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.step-card.s2::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.step-card.s3::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.step-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.step-num-lg {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px; font-weight: 800; line-height: 1;
  opacity: 0.25;
}
.step-card.s1 .step-num-lg { color: #60a5fa; opacity: 0.35; }
.step-card.s2 .step-num-lg { color: var(--green); opacity: 0.35; }
.step-card.s3 .step-num-lg { color: var(--gold2); opacity: 0.35; }

.step-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid;
}
.step-ico [data-lucide] { width: 24px; height: 24px; }
.step-ico.c1 { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.step-ico.c2 { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--green); }
.step-ico.c3 { background: var(--gold-dim); border-color: rgba(212,175,55,0.3); color: var(--gold2); }

.step-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 0;
}
.step-lead {
  color: var(--muted); font-size: 13px; line-height: 1.65;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.step-details { list-style: none; padding: 0; margin-bottom: 18px; }
.step-details li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 0; font-size: 12px; color: var(--muted); line-height: 1.5;
}
.step-details [data-lucide] { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; margin-top: 1px; }

.step-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--gold2);
  padding: 8px 14px; border-radius: 8px;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.2);
  transition: var(--ease); cursor: pointer; text-decoration: none;
}
.step-action:hover { background: rgba(212,175,55,0.15); color: var(--gold2); text-decoration: none; gap: 10px; }
.step-action [data-lucide] { width: 16px; height: 16px; }
.step-action-done {
  color: var(--green); background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2); cursor: default;
}

.step-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px; color: rgba(212,175,55,0.35);
}
.step-arrow [data-lucide] { width: 22px; height: 22px; }

.step-badge {
  position: relative; width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid;
}
.step-badge [data-lucide] { width: 26px; height: 26px; opacity: 0.9; }
.step-badge .step-n {
  position: absolute; top: -4px; right: -4px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; background: var(--bg); border: 2px solid;
}
.step-badge.c1 { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.step-badge.c1 .step-n { border-color: rgba(59,130,246,0.4); color: #60a5fa; }
.step-badge.c2 { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--green); }
.step-badge.c2 .step-n { border-color: rgba(34,197,94,0.4); color: var(--green); }
.step-badge.c3 { background: var(--gold-dim); border-color: rgba(212,175,55,0.3); color: var(--gold2); }
.step-badge.c3 .step-n { border-color: rgba(212,175,55,0.4); color: var(--gold2); }

.step h3 {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
}
.step h3 [data-lucide] { width: 18px; height: 18px; color: var(--gold2); }

.site-footer-mini { padding: 24px 28px; margin-top: 40px; }
.site-footer-mini .footer-bottom { border: none; padding: 0; }
.site-footer-mini .footer-bottom a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px;
}
.site-footer-mini .footer-bottom a:hover { color: var(--gold2); text-decoration: none; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: var(--ease); backdrop-filter: blur(12px);
}
.feat-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 40px rgba(212,175,55,0.06);
}
.feat-ico {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.2);
  margin-bottom: 16px;
}
.feat-ico [data-lucide] { width: 22px; height: 22px; color: var(--gold2); }
.feat-ico.purple { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.2); }
.feat-ico.purple [data-lucide] { color: var(--purple); }
.feat-ico.green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); }
.feat-ico.green [data-lucide] { color: var(--green); }
.feat-head .feat-ico { margin-bottom: 0; flex-shrink: 0; }
.feat-lead {
  color: var(--muted); font-size: 13px; line-height: 1.7;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feat-lead strong { color: var(--gold2); }
.feat-list { list-style: none; padding: 0; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 0; font-size: 12px; color: var(--muted); line-height: 1.6;
}
.feat-list [data-lucide] { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.feat-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  text-align: center; padding: 32px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--ease);
}
.step:hover { border-color: rgba(212,175,55,0.25); transform: translateY(-3px); }
.step p { color: var(--muted); font-size: 13px; line-height: 1.65; }

.cta-box {
  text-align: center; padding: 52px 40px;
  background: var(--surface2); border: 1px solid rgba(212,175,55,0.2);
  border-radius: 20px; box-shadow: var(--shadow), 0 0 60px rgba(212,175,55,0.06);
}
.cta-box h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin-bottom: 10px; }
.cta-box p { color: var(--muted); margin-bottom: 24px; }

/* ── Premium CTA section ── */
.block-cta { padding-top: 32px; padding-bottom: 72px; }

.cta-premium {
  position: relative; overflow: hidden;
  max-width: 1060px; margin: 0 auto;
  background: linear-gradient(145deg, rgba(14,20,38,0.95) 0%, rgba(8,12,24,0.98) 50%, rgba(14,20,38,0.95) 100%);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 24px;
  box-shadow: var(--shadow), 0 0 80px rgba(212,175,55,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}
.cta-premium::before {
  content: ''; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,0.35), transparent 40%, rgba(0,229,255,0.2) 70%, rgba(212,175,55,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.cta-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: 0.4; }
.cta-glow-a { width: 400px; height: 400px; background: rgba(212,175,55,0.12); top: -120px; left: -80px; }
.cta-glow-b { width: 350px; height: 350px; background: rgba(0,229,255,0.08); bottom: -100px; right: -60px; }

.cta-grid-bg {
  position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px;
  align-items: center; padding: 48px 48px 36px;
}

.cta-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold2); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.cta-badge [data-lucide] { width: 14px; height: 14px; }

.cta-title {
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; line-height: 1.2;
  margin-bottom: 14px; letter-spacing: -0.5px;
}
.cta-title .grad {
  background: linear-gradient(135deg, var(--gold2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-desc { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 480px; margin-bottom: 28px; }

.cta-perks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.cta-perk {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 12px; border-radius: 12px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06);
  transition: var(--ease);
}
.cta-perk:hover { border-color: rgba(212,175,55,0.2); background: rgba(212,175,55,0.04); }
.cta-perk [data-lucide] { width: 20px; height: 20px; color: var(--gold2); flex-shrink: 0; margin-top: 2px; }
.cta-perk span { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.4; }
.cta-perk em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }

.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.cta-visual { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.cta-orbit {
  position: relative; width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.cta-orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(212,175,55,0.25);
  animation: orbitSpin 20s linear infinite;
}
.cta-orbit-ring::before {
  content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold2); box-shadow: 0 0 12px var(--gold2);
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.cta-orbit-logo {
  width: 100px; height: 100px; border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.15);
  border: 2px solid rgba(212,175,55,0.3);
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cta-mini-stats {
  display: flex; gap: 10px; width: 100%; justify-content: center;
}
.cta-mini {
  flex: 1; text-align: center; padding: 12px 8px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.cta-mini strong {
  display: block; font-size: 18px; font-weight: 800;
  background: linear-gradient(135deg, var(--gold2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-mini span { font-size: 10px; color: var(--muted); letter-spacing: 0.3px; }

.cta-divider {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 48px; margin: 8px 0 0;
}
.cta-divider::before,
.cta-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.25), transparent);
}
.cta-divider span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; margin: 0 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold);
  background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.2);
  border-radius: 20px;
}
.cta-divider span [data-lucide] { width: 14px; height: 14px; }

.broker-block-inner {
  position: relative; z-index: 1;
  padding: 28px 48px 44px;
}
.broker-head-compact { text-align: center; margin-bottom: 28px; }
.broker-head-compact h3 {
  font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin-bottom: 8px;
}
.broker-head-compact h3 .grad {
  background: linear-gradient(135deg, var(--gold2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.broker-head-compact p { color: var(--muted); font-size: 14px; }

.broker-block { margin-top: 40px; }
.broker-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  max-width: 900px; margin: 0 auto;
}
.broker-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
}
.broker-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px; text-align: center;
  transition: var(--ease); position: relative; overflow: hidden;
}
.broker-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.broker-iq::before { background: linear-gradient(90deg, #00e5ff, #3b82f6); }
.broker-ex::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.broker-8x::before { background: linear-gradient(90deg, #ff313e, #ff6b4a); }
.broker-iq { border-color: rgba(0,229,255,0.15); }
.broker-ex { border-color: rgba(139,92,246,0.15); }
.broker-8x { border-color: rgba(255,49,62,0.25); }
.broker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.broker-iq:hover { border-color: rgba(0,229,255,0.35); box-shadow: var(--shadow), 0 0 40px rgba(0,229,255,0.1); }
.broker-ex:hover { border-color: rgba(139,92,246,0.35); box-shadow: var(--shadow), 0 0 40px rgba(139,92,246,0.1); }
.broker-8x:hover { border-color: rgba(255,49,62,0.5); box-shadow: var(--shadow), 0 0 40px rgba(255,49,62,0.15); }
.broker-badge {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, #ff313e, #ff6b4a);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em;
}
.broker-logo {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: rgba(0,229,255,0.08); border: 2px solid rgba(0,229,255,0.2);
  overflow: hidden;
}
.broker-logo-img { background: #fff; border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.broker-logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.broker-logo-img.exnova { background: #000; border: 2px solid rgba(139,92,246,0.3); }
.broker-logo-img.exnova img { object-fit: contain; padding: 10px; border-radius: 0; }
.broker-logo-img.x8 {
  background: #ff313e; border: 2px solid rgba(255,49,62,0.45);
  border-radius: 18px;
}
.broker-logo-img.x8 img { object-fit: cover; border-radius: 14px; }
.broker-logo [data-lucide] { width: 28px; height: 28px; color: #00e5ff; }
.broker-logo.purple { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.3); }
.broker-logo.purple [data-lucide] { color: var(--purple); }
.broker-card h3 {
  font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 700;
  margin-bottom: 8px; letter-spacing: 1px;
}
.broker-iq h3 { color: #00e5ff; }
.broker-ex h3 { color: var(--purple); }
.broker-8x h3 { color: #ff5a64; }
.broker-desc { color: var(--muted); font-size: 13px; margin-bottom: 18px; line-height: 1.6; }
.broker-feats { list-style: none; text-align: left; margin-bottom: 22px; padding: 0 8px; }
.broker-feats li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.broker-feats li:last-child { border: none; }
.broker-feats [data-lucide] { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.btn-broker { width: 100%; padding: 14px 20px; font-size: 15px; font-weight: 700; border-radius: 12px; }
.btn-broker-iq {
  background: linear-gradient(135deg, #00e5ff, #3b82f6);
  color: #0a0e17; box-shadow: 0 4px 20px rgba(0,229,255,0.25);
}
.btn-broker-iq:hover { color: #0a0e17; box-shadow: 0 6px 28px rgba(0,229,255,0.35); }
.btn-broker-ex {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff; box-shadow: 0 4px 20px rgba(139,92,246,0.25);
}
.btn-broker-ex:hover { color: #fff; box-shadow: 0 6px 28px rgba(139,92,246,0.35); }
.btn-broker-8x,
a.btn-broker-8x {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #ff313e, #e11d2e);
  color: #fff !important; box-shadow: 0 4px 20px rgba(255,49,62,0.3);
  border: none; text-decoration: none; font-weight: 700;
}
.btn-broker-8x:hover,
a.btn-broker-8x:hover {
  color: #fff !important; box-shadow: 0 6px 28px rgba(255,49,62,0.45);
  transform: translateY(-1px);
}
.btn-broker-8x-ico {
  width: 22px; height: 22px; border-radius: 6px; object-fit: cover;
  flex-shrink: 0;
}
.block-seo { padding-top: 8px; }
.seo-content {
  max-width: 900px; margin: 0 auto;
  padding: 28px 24px 8px;
  color: var(--muted); font-size: 14px; line-height: 1.75;
}
.seo-content h2 {
  font-size: clamp(18px, 2.4vw, 22px); font-weight: 700;
  color: var(--text); margin-bottom: 14px;
}
.seo-content h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin: 22px 0 10px;
}
.seo-content p { margin-bottom: 12px; }
.seo-content strong { color: var(--text); }
.seo-content em { font-style: normal; color: var(--gold2); font-weight: 500; }
.seo-faq { margin: 20px 0 8px; }
.seo-faq details {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  margin-bottom: 8px;
  padding: 0 14px;
}
.seo-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq details[open] summary { border-bottom: 1px solid rgba(255,255,255,0.06); }
.seo-faq details p {
  padding: 10px 0 14px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.seo-note {
  margin-top: 18px !important;
  font-size: 12px !important;
  opacity: 0.85;
}

.t-row b.put { color: var(--red); }
.t-row b.call { color: var(--green); }
.terminal-rows b.flash { animation: termFlash 0.5s ease; }
@keyframes termFlash {
  0% { opacity: 0.3; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--rsm);
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: var(--ease); text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 50%, #a8862a 100%);
  color: #0a0e17; font-weight: 700;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}
.btn-primary:hover { color: #0a0e17; box-shadow: 0 8px 32px rgba(212,175,55,0.4); }
.btn-outline {
  background: transparent; border-color: rgba(0,229,255,0.35); color: var(--cyan);
}
.btn-outline:hover { background: var(--cyan-dim); color: var(--cyan); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 13px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); }
.btn-success { background: linear-gradient(135deg, var(--green), #16a34a); color: #fff; }

/* ── Auth ── */
.auth-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 280px); padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface2); border: 1px solid rgba(212,175,55,0.15);
  border-radius: 20px; padding: 40px 36px;
  box-shadow: var(--shadow), 0 0 50px rgba(212,175,55,0.05);
  backdrop-filter: blur(16px);
}
.auth-card-wide { max-width: 520px; }

/* Register premium */
.auth-wrap-register { position: relative; }
.auth-wrap-register .auth-glow {
  position: absolute; width: 480px; height: 480px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, rgba(212,175,55,0.04) 40%, transparent 70%);
  pointer-events: none;
}
.auth-card-premium {
  position: relative; max-width: 580px; padding: 0; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.18);
  box-shadow: var(--shadow), 0 0 80px rgba(0,229,255,0.06), 0 0 40px rgba(212,175,55,0.05);
}
.auth-card-premium::before {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--gold));
}
.auth-head-register { padding: 32px 40px 8px; margin-bottom: 0; }
.auth-form-register { padding: 8px 40px 0; }
.auth-alert { margin: 0 40px 16px; }
.auth-foot-register {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 40px 36px; margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
}
.auth-foot-register a { color: var(--cyan); font-weight: 600; }

.auth-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--gold2); background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.25);
}
.auth-badge [data-lucide] { width: 12px; height: 12px; }

.auth-icon.ring {
  box-shadow: 0 0 0 4px rgba(34,197,94,0.08), 0 0 24px rgba(34,197,94,0.12);
}
.auth-head-register p strong { color: var(--gold2); font-weight: 600; }
.auth-title-display .gold { color: var(--gold2); }

.auth-form-section {
  margin-bottom: 22px; padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.auth-form-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 18px; }
.auth-section-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--gold2);
  letter-spacing: 0.5px; margin-bottom: 14px;
}
.auth-section-label [data-lucide] { width: 15px; height: 15px; color: var(--gold); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none; z-index: 1;
}
.input-icon-wrap input {
  padding-left: 42px;
}
.field-pw.input-icon-wrap input { padding-right: 46px; }

.field-row-pw {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.broker-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.broker-pick-item { cursor: pointer; display: block; }
.broker-pick-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.broker-pick-inner {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 16px 12px; min-height: 130px;
  border-radius: 12px; background: rgba(0,0,0,0.22); border: 1px solid var(--border);
  transition: var(--ease);
}
.broker-pick-inner img { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 8px; object-fit: contain; background: #fff; padding: 4px; }
.broker-pick-inner b { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.broker-pick-inner small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; line-height: 1.45; }
.broker-pick-item:hover .broker-pick-inner { border-color: rgba(212,175,55,0.25); transform: translateY(-1px); }
.broker-pick-check {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
  opacity: 0; transform: scale(0.8); transition: var(--ease);
}
.broker-pick-check [data-lucide] { width: 12px; height: 12px; color: #0a0e17; }
.broker-pick-item input:checked + .broker-pick-inner .broker-pick-check {
  opacity: 1; transform: scale(1);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-color: transparent;
}
.broker-pick-item input:checked + .broker-pick-inner {
  border-color: rgba(212,175,55,0.45);
  background: linear-gradient(160deg, rgba(212,175,55,0.08), rgba(0,229,255,0.04));
  box-shadow: 0 4px 20px rgba(212,175,55,0.1);
}

.field-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5;
}
.field-hint [data-lucide] { width: 13px; height: 13px; opacity: 0.6; flex-shrink: 0; }

.admin-notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(0,229,255,0.04);
  border: 1px solid rgba(0,229,255,0.12);
  font-size: 13px; line-height: 1.55;
}
.admin-notice-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.15);
}
.admin-notice-ico [data-lucide] { width: 18px; height: 18px; color: var(--cyan); }
.admin-notice strong { display: block; color: var(--cyan); font-size: 13px; margin-bottom: 2px; }
.admin-notice span { color: var(--muted); font-size: 12px; line-height: 1.6; }

.auth-submit-wrap {
  padding-top: 6px; margin-bottom: 4px;
}
.btn-glow {
  box-shadow: 0 4px 24px rgba(212,175,55,0.25);
}
.btn-glow:hover { box-shadow: 0 8px 36px rgba(212,175,55,0.4); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.otp-panel {
  margin-bottom: 18px; padding: 16px;
  border-radius: 14px;
  background: rgba(0,229,255,0.03);
  border: 1px dashed rgba(0,229,255,0.18);
  transition: var(--ease);
}
.otp-panel.active {
  border-style: solid;
  border-color: rgba(0,229,255,0.28);
  background: rgba(0,229,255,0.05);
  box-shadow: 0 0 24px rgba(0,229,255,0.06);
}
.otp-panel-head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.otp-panel-head > [data-lucide] {
  width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; margin-top: 2px;
}
.otp-panel-head strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.otp-panel-head span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }
.otp-panel .btn { margin-top: 4px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
}
.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.auth-tab [data-lucide] { width: 16px; height: 16px; }
.auth-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.auth-tab.active {
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.1);
  color: var(--gold2);
  box-shadow: 0 4px 16px rgba(212,175,55,0.1);
}
.auth-tab[data-auth-tab="admin"].active {
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
  color: #fca5a5;
  box-shadow: 0 4px 16px rgba(239,68,68,0.08);
}
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-tab-user-only { display: none; }
.auth-tab-admin-only { display: none; }
body[data-login-tab="user"] .auth-tab-user-only,
#view-login.auth-show-user .auth-tab-user-only { display: flex; }
body[data-login-tab="admin"] .auth-tab-admin-only,
#view-login.auth-show-admin .auth-tab-admin-only { display: flex; }
.auth-foot-muted {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}
.auth-foot-muted [data-lucide] { width: 14px; height: 14px; color: var(--muted); }
.auth-icon.admin-mode {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
}
.auth-icon.admin-mode [data-lucide] { color: #fca5a5; }

.auth-head { text-align: center; margin-bottom: 28px; }
.auth-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.25);
}
.auth-icon.green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); }
.auth-icon.green [data-lucide] { color: var(--green); }
.auth-icon [data-lucide] { width: 28px; height: 28px; color: var(--gold2); }
.auth-head h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-title-display {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: 2px;
  color: var(--cyan); margin-bottom: 6px;
}
.auth-head p { color: var(--muted); font-size: 14px; }

.field { margin-bottom: 16px; }
.field label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 7px;
}
.field label [data-lucide] { width: 13px; height: 13px; }
.field input {
  width: 100%; padding: 13px 15px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rsm); color: var(--text);
  font-family: inherit; font-size: 15px; transition: var(--ease);
}
.field .input-icon-wrap input { padding: 13px 15px 13px 44px; }
.field .field-pw.input-icon-wrap input { padding-right: 46px; }
.field input:focus { outline: none; border-color: rgba(212,175,55,0.45); box-shadow: 0 0 0 3px rgba(212,175,55,0.08); }
.field-label-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 7px;
}
.field-label-row label { margin-bottom: 0; }
.forgot-link {
  font-size: 12px; font-weight: 600; color: var(--cyan);
  text-decoration: none; transition: var(--ease);
}
.forgot-link:hover { color: var(--gold2); text-decoration: none; }

.field-pw { position: relative; }
.field-pw input { padding-right: 46px; width: 100%; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.pw-toggle:hover { background: rgba(255,255,255,0.06); color: var(--gold2); }
.pw-toggle [data-lucide] { width: 18px; height: 18px; }

.auth-options {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.check-label {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 13px; color: var(--muted);
  user-select: none;
}
.check-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-label .check-box {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.check-label input:checked + .check-box {
  background: var(--gold-dim); border-color: rgba(212,175,55,0.5);
}
.check-label input:checked + .check-box::after {
  content: ''; width: 8px; height: 5px;
  border-left: 2px solid var(--gold2); border-bottom: 2px solid var(--gold2);
  transform: rotate(-45deg) translateY(-1px);
}
.check-label:hover .check-box { border-color: rgba(212,175,55,0.35); }

.forgot-info {
  padding: 14px 16px; margin-bottom: 20px;
  background: rgba(0,229,255,0.05); border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--rsm); font-size: 13px; color: var(--muted); line-height: 1.7;
}
.forgot-info strong { color: var(--text); }
.forgot-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #06c755; color: #fff; border: 1px solid rgba(6,199,85,0.4);
}
.btn-line:hover { background: #05b34c; color: #fff; text-decoration: none; }
.btn-line img { width: 24px; height: 24px; border-radius: 6px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.broker-box {
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: var(--rsm); padding: 14px;
}
.broker-box label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; }
.broker-box small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.terms-check { align-items: flex-start; margin-bottom: 16px; line-height: 1.65; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.05); }
.terms-check a { color: var(--cyan); font-weight: 600; }
.terms-check a:hover { color: var(--gold2); text-decoration: none; }

.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-legal { text-align: center; margin-top: 12px; font-size: 12px; color: var(--muted); }

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 15px; border-radius: var(--rsm);
  font-size: 13px; margin-bottom: 16px; line-height: 1.55;
}
.alert [data-lucide] { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.alert.ok { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }
.alert.err { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.alert.warn { background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.2); color: var(--gold2); }

/* ── Legal pages ── */
.legal-wrap { padding: 40px 20px 60px; max-width: 820px; margin: 0 auto; }
.legal-card {
  background: var(--surface2); border: 1px solid rgba(212,175,55,0.12);
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.legal-head {
  text-align: center; padding: 40px 32px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(212,175,55,0.04), transparent);
}
.legal-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.25);
}
.legal-icon [data-lucide] { width: 26px; height: 26px; color: var(--gold2); }
.legal-icon.purple { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.25); }
.legal-icon.purple [data-lucide] { color: var(--purple); }
.legal-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(20px, 4vw, 28px); font-weight: 800; letter-spacing: 2px;
  margin-bottom: 6px;
}
.legal-head p { color: var(--muted); font-size: 15px; }

.legal-body { padding: 32px; }
.legal-meta { margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.legal-meta span { display: flex; align-items: center; gap: 8px; }

.legal-notice {
  display: flex; gap: 12px; padding: 14px 16px;
  background: var(--cyan-dim); border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--rsm); margin-bottom: 28px; font-size: 13px; color: var(--muted); line-height: 1.65;
}
.legal-notice-green { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); }
.legal-notice [data-lucide] { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.legal-notice-green [data-lucide] { color: var(--green); }

.legal-section {
  display: flex; gap: 16px; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.legal-section:last-of-type { border: none; }
.legal-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold2); font-weight: 800; font-size: 14px;
}
.legal-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--gold2); }
.legal-section p, .legal-section li { color: var(--muted); font-size: 14px; line-height: 1.75; }
.legal-section ul { list-style: none; padding: 0; }
.legal-section li { padding: 4px 0; padding-left: 16px; position: relative; }
.legal-section li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }
.legal-section li strong { color: var(--text); }

.legal-risk {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--rsm); padding: 16px; margin-top: 8px;
}
.legal-risk strong { display: flex; align-items: center; gap: 8px; color: #fca5a5; margin-bottom: 8px; font-size: 14px; }
.legal-risk p { color: var(--muted); font-size: 13px; }

.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.security-item {
  text-align: center; padding: 16px 8px;
  background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--rsm);
}
.security-item [data-lucide] { width: 22px; height: 22px; color: var(--purple); margin-bottom: 6px; }
.security-item span { display: block; font-size: 11px; color: var(--muted); }

.legal-contact {
  margin-top: 24px; padding: 20px;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--rsm); text-align: center;
}
.legal-contact h4 { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--gold2); margin-bottom: 6px; }
.legal-contact p { color: var(--muted); font-size: 14px; }

.legal-foot { padding: 24px 32px; border-top: 1px solid var(--border); text-align: center; }

/* ── Footer ── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.97);
  padding: 48px 28px 24px; margin-top: 20px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; max-width: 1100px; margin: 0 auto 32px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.footer-logo img { width: 34px; border-radius: 9px; border: 1px solid var(--border); }
.footer-brand-col p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 320px; margin-bottom: 14px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.footer-mail:hover { color: var(--gold2); text-decoration: none; }
.footer-links h4 { font-size: 12px; font-weight: 700; color: var(--gold2); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.footer-links a {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; padding: 5px 0;
  transition: var(--ease); cursor: pointer;
}
.footer-links a [data-lucide] { width: 13px; height: 13px; opacity: 0.4; }
.footer-links a:hover { color: var(--text); padding-left: 4px; text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  padding-top: 24px; border-top: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
  font-size: 12px; color: var(--muted);
}
.footer-url { color: var(--gold); opacity: 0.6; }

.footer-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-top: 8px;
  transition: var(--ease);
}
.footer-line img { width: 22px; height: 22px; border-radius: 6px; }
.footer-line:hover { color: #06c755; text-decoration: none; }

/* ── LINE floating button ── */
.line-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #06c755;
  box-shadow: 0 6px 24px rgba(6, 199, 85, 0.35), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.line-fab img { width: 34px; height: 34px; border-radius: 8px; }
.line-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(6, 199, 85, 0.45), 0 4px 12px rgba(0,0,0,0.45);
  text-decoration: none;
}
.line-fab-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 7px 14px; border-radius: 10px;
  background: rgba(14, 20, 38, 0.95); border: 1px solid rgba(6, 199, 85, 0.3);
  color: var(--text); font-size: 12px; font-weight: 600;
  white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.line-fab:hover .line-fab-tip {
  opacity: 1; transform: translateY(-50%) translateX(0);
}

/* ── Dashboard (logged-in pages) ── */
.page-wrap { position: relative; z-index: 1; min-height: calc(100vh - 200px); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.dash-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px;
  padding: 32px 0 60px; max-width: 1200px; margin: 0 auto;
  width: 100%; box-sizing: border-box;
}
.dash-main {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.dash-sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 12px;
  height: fit-content; position: sticky; top: 80px;
  backdrop-filter: blur(12px);
}
.dash-sidebar-head {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 14px; border-bottom: 1px solid var(--border);
  margin-bottom: 10px; font-size: 12px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
}
.dash-sidebar-head img { width: 26px; border-radius: 7px; }
.dash-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-nav a, .dash-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--rsm);
  color: var(--muted); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: var(--ease); border: 1px solid transparent;
}
.dash-nav a:hover { background: var(--gold-dim); color: var(--text); text-decoration: none; }
.dash-nav a.active { background: var(--gold-dim); color: var(--gold2); border-color: rgba(212,175,55,0.2); text-decoration: none; }
.dash-logout { color: #f87171 !important; margin-top: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.dash-logout:hover { background: rgba(239,68,68,0.08); text-decoration: none; }

.dash-header { margin-bottom: 28px; }
.dash-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 4vw, 28px); font-weight: 800; letter-spacing: 1px;
  color: var(--gold2);
  display: flex; align-items: center; gap: 10px;
}
.dash-header h1 [data-lucide] { width: 26px; height: 26px; color: var(--gold); }
.dash-header p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 16px;
}
.stat-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.2);
}
.stat-icon-wrap [data-lucide] { width: 22px; height: 22px; color: var(--gold2); }
.stat-icon-wrap.green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); }
.stat-icon-wrap.green [data-lucide] { color: var(--green); }
.stat-icon-wrap.blue { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); }
.stat-icon-wrap.blue [data-lucide] { color: #60a5fa; }
.stat-val { font-size: 24px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-val.pos { color: var(--green); }
.stat-val.neg { color: var(--red); }

/* ── Premium Dashboard ── */
.dash-view { padding-bottom: 40px; }
.dash-header-premium {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.broker-status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 20px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: 0.5px;
}
.broker-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}

.broker-status-chip.expired {
  background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: #f87171;
}
.broker-status-chip.expired .broker-status-dot {
  background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.6);
}

/* License status strip */
.license-status-strip {
  position: relative;
  margin-bottom: 22px;
  padding: 20px 22px 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.22);
  background: linear-gradient(135deg, rgba(14,20,38,0.98) 0%, rgba(8,12,24,0.98) 55%, rgba(20,28,50,0.95) 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
.license-status-strip.is-active { border-color: rgba(34,197,94,0.28); }
.license-status-strip.is-expired {
  border-color: rgba(239,68,68,0.3);
  opacity: 0.92;
}
.lss-bg-glow {
  position: absolute;
  top: -40%;
  right: -5%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.license-status-strip.is-active .lss-bg-glow {
  background: radial-gradient(circle, rgba(34,197,94,0.1) 0%, rgba(212,175,55,0.08) 40%, transparent 70%);
}
.lss-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.lss-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
}
.lss-logo {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.lss-logo img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}
.lss-logo-ring {
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  border: 2px solid rgba(212,175,55,0.35);
  animation: lss-pulse 2.5s ease-in-out infinite;
}
@keyframes lss-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.lss-brand-text strong {
  display: block;
  font-family: Orbitron, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--gold2), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lss-brand-text span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}
.lss-countdown-wrap {
  flex: 1;
  min-width: 280px;
}
.lss-countdown-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.lss-countdown-label [data-lucide] { width: 14px; height: 14px; color: var(--gold2); }
.lss-countdown {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}
.lss-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 8px 10px 6px;
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}
.lss-num {
  font-family: Orbitron, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.license-status-strip.is-active .lss-num { color: var(--gold2); text-shadow: 0 0 20px rgba(212,175,55,0.35); }
.license-status-strip.is-expired .lss-num { color: #f87171; }
.lss-unit small {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.lss-sep {
  font-family: Orbitron, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(212,175,55,0.4);
  padding-bottom: 18px;
}
.lss-expiry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.lss-expiry [data-lucide] { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; }
.lss-expiry strong { color: var(--text); font-weight: 600; }
.lss-meta { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lss-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.lss-meta-chip.exnova { border-color: rgba(168,85,247,0.25); background: rgba(168,85,247,0.06); }
.lss-meta-chip.eightx { border-color: rgba(234,88,12,0.3); background: rgba(234,88,12,0.08); }
.lss-broker-ico { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; background: #fff; padding: 2px; }
.lss-meta-chip [data-lucide] { width: 14px; height: 14px; opacity: 0.7; }

/* Broker profile panels */
.broker-profile-panel { margin-bottom: 16px; }
.broker-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.broker-profile-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.broker-profile-head p { margin: 0; font-size: 12px; color: var(--muted); }
.broker-profile-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.broker-profile-logo.exnova { background: linear-gradient(135deg, #1a1030, #2d1b4e); padding: 4px; }
.broker-profile-logo.eightx { background: linear-gradient(135deg, #1a0a08, #3a1810); padding: 4px; }
.broker-iq-panel { border-color: rgba(255,140,0,0.18); }
.broker-ex-panel { border-color: rgba(168,85,247,0.2); }
.broker-8x-panel { border-color: rgba(234,88,12,0.25); }
.broker-usage-note { margin-bottom: 16px; }
.broker-usage-alert {
  align-items: flex-start;
  line-height: 1.65;
  font-size: 13px;
}
.broker-usage-alert span { color: var(--text); }
.broker-usage-alert a { color: var(--cyan); text-decoration: underline; }

.lss-progress { position: relative; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.lss-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.lss-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, var(--gold2), #fbbf24);
  transition: width 1s linear;
  box-shadow: 0 0 12px rgba(212,175,55,0.4);
}
.license-status-strip.is-expired .lss-progress-bar {
  background: linear-gradient(90deg, #ef4444, #f97316);
  box-shadow: none;
}
.lss-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.lss-progress-labels span:nth-child(2) {
  font-weight: 700;
  color: var(--gold2);
  font-family: Orbitron, sans-serif;
}
@media (max-width: 768px) {
  .lss-main { flex-direction: column; align-items: stretch; }
  .lss-meta { margin-left: 0; }
  .lss-countdown { justify-content: center; }
  .lss-brand { justify-content: center; }
}

.broker-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 20px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(212,175,55,0.15);
  border-radius: 14px;
}
.broker-strip-logo img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 4px; }
.broker-strip-info { flex: 1; }
.broker-strip-info strong { display: block; font-size: 14px; color: var(--text); }
.broker-strip-info span { font-size: 12px; color: var(--muted); }
.broker-strip-check [data-lucide] { width: 22px; height: 22px; color: var(--green); }

.stats-premium .stat-card {
  flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 20px 22px; position: relative; overflow: hidden;
}
.stats-premium .stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.stat-green { border-color: rgba(34,197,94,0.25); }
.stat-green::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.stat-purple { border-color: rgba(168,85,247,0.25); }
.stat-purple::before { background: linear-gradient(90deg, #a855f7, #e879f9); }
.stat-orange { border-color: rgba(249,115,22,0.25); }
.stat-orange::before { background: linear-gradient(90deg, #f97316, #fbbf24); }
.stat-label-up {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase;
}
.stat-hint {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.2px;
}
.stat-icon-wrap.purple { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.25); }
.stat-icon-wrap.purple [data-lucide] { color: #c084fc; }
.stat-icon-wrap.orange { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.25); }
.stat-icon-wrap.orange [data-lucide] { color: #fb923c; }
.stat-val-sm { font-size: 20px !important; }

.panel-license, .panel-bot {
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(14,20,38,0.95), rgba(8,12,24,0.98));
}
.license-auto-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--cyan); margin-bottom: 12px;
}
.license-auto-note [data-lucide] { width: 14px; height: 14px; }
.badge-red a, .badge-gray a { color: inherit; text-decoration: underline; }
.license-box-premium {
  border: 1px solid rgba(0,229,255,0.15);
  background: rgba(0,229,255,0.03);
  border-radius: 14px;
}
.license-box-premium .license-key {
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 4px;
  text-shadow: 0 0 24px rgba(0,229,255,0.35);
}
.license-box-premium .license-key.sm { font-size: 20px; letter-spacing: 3px; }
.license-box-premium.empty { padding: 32px 20px; }
.license-box-premium.empty [data-lucide] { width: 32px; height: 32px; color: var(--muted); margin-bottom: 10px; }
.line-ico-sm { width: 18px; height: 18px; vertical-align: middle; border-radius: 4px; }

.bot-card-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.bot-card-inner p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 10px 0 18px; }
.bot-glow-icon {
  width: 88px; height: 88px; border-radius: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(0,229,255,0.15), rgba(212,175,55,0.08));
  border: 1px solid rgba(0,229,255,0.2);
  box-shadow: 0 0 30px rgba(0,229,255,0.12);
}
.bot-glow-icon img { width: 56px; border-radius: 14px; }

.quick-premium .quick-card {
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  transition: var(--ease);
}
.quick-premium .quick-card:hover { transform: translateY(-3px); border-color: rgba(212,175,55,0.25); }
.quick-premium .icon-wrap.cyan { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.2); }
.quick-premium .icon-wrap.cyan [data-lucide] { color: var(--cyan); }
.quick-premium .icon-wrap.gold { background: var(--gold-dim); }
.quick-premium .icon-wrap.green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); }
.quick-premium .icon-wrap.green [data-lucide] { color: var(--green); }

.download-grid-dash {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.download-card.premium {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px; text-align: center;
}
.dl-details { margin-top: 8px; }
.dl-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dl-about-block h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.dl-about-block h3.cyan { color: var(--cyan); }
.dl-about-block h3.green { color: var(--green); }
.dl-about-block h3 [data-lucide] { width: 16px; height: 16px; }
.dl-about-block ul {
  list-style: none; padding: 0; margin: 0;
  color: var(--muted); font-size: 13px; line-height: 1.75;
}
.dl-about-block li {
  display: flex; align-items: flex-start; gap: 8px; padding: 4px 0;
}
.dl-about-block li [data-lucide] { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.dl-about-block li.ok [data-lucide] { color: var(--green); }
.dl-about-block li.warn [data-lucide] { color: var(--gold2); }
.dl-autoupdate p {
  color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0;
}
.dl-details .req-grid { margin-bottom: 18px; }
.dl-details .req-col h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--gold2); margin-bottom: 12px;
}
.dl-details .req-col ul { list-style: none; padding: 0; margin: 0; }
.dl-details .req-col li {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; padding: 5px 0;
}
.dl-details .req-col li [data-lucide] { width: 14px; height: 14px; color: var(--cyan); flex-shrink: 0; }
.dl-details .install-steps { margin-bottom: 0; max-width: none; }
.dl-details .install-steps h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--gold2); margin-bottom: 8px;
}
@media (max-width: 768px) {
  .dl-about-grid { grid-template-columns: 1fr; }
}

.dash-nav-link.active {
  background: var(--gold-dim); color: var(--gold2);
  border-color: rgba(212,175,55,0.2);
}
.dash-nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto;
  font-size: 11px; font-weight: 800; line-height: 1;
  color: #fff; background: #fb923c; border-radius: 999px;
}
.pkg-kyc-hint a { color: var(--gold2); font-weight: 600; }
.pkg-kyc-link { text-decoration: none; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 18px;
}
.panel h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--gold2);
  margin-bottom: 16px; letter-spacing: 0.5px;
}
.panel h2 [data-lucide] { width: 18px; height: 18px; color: var(--gold); }

.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.license-box {
  text-align: center; padding: 24px;
  background: rgba(0,0,0,0.3); border: 1px dashed rgba(212,175,55,0.3);
  border-radius: var(--rsm);
}
.license-key {
  font-size: clamp(18px, 4vw, 26px); font-weight: 800;
  letter-spacing: 4px; color: var(--cyan);
  font-family: monospace; margin: 12px 0; word-break: break-all;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-green { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.badge-red { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
.badge-gray { background: rgba(122,139,168,0.1); color: var(--muted); border: 1px solid rgba(122,139,168,0.2); }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 18px; text-align: center;
  text-decoration: none; color: var(--text); transition: var(--ease);
}
.quick-card:hover { border-color: rgba(212,175,55,0.3); transform: translateY(-3px); text-decoration: none; color: var(--text); }
.quick-card .icon-wrap {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.2);
}
.quick-card .icon-wrap [data-lucide] { width: 24px; height: 24px; color: var(--gold2); }
.quick-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.quick-card p { font-size: 12px; color: var(--muted); }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 7px;
}
.form-group input {
  width: 100%; padding: 12px 14px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rsm); color: var(--text); font-family: inherit; font-size: 14px;
}
.form-group input:focus { outline: none; border-color: rgba(212,175,55,0.4); }
.form-group input:disabled { opacity: 0.55; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.broker-select {
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: var(--rsm); padding: 14px;
}
.broker-select label { display: flex; gap: 10px; font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; }
.broker-select small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; padding: 13px 15px; border-radius: var(--rsm); margin-bottom: 16px; font-size: 13px; display: flex; gap: 10px; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #86efac; padding: 13px 15px; border-radius: var(--rsm); margin-bottom: 16px; font-size: 13px; display: flex; gap: 10px; }
.alert-warn { background: var(--gold-dim); border: 1px solid rgba(212,175,55,0.2); color: var(--gold2); padding: 13px 15px; border-radius: var(--rsm); margin-bottom: 16px; font-size: 13px; display: flex; gap: 10px; }

/* Download page (logged-in) */
.download-hero { text-align: center; padding: 48px 0 32px; }
.download-hero-icon {
  width: 68px; height: 68px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.25);
}
.download-hero-icon [data-lucide] { width: 30px; height: 30px; color: var(--gold2); }
.download-hero h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--gold2); margin-bottom: 8px; }
.download-hero-sub { color: var(--muted); font-size: 14px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-bottom: 32px; }
.download-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 28px; text-align: center;
  position: relative; overflow: hidden;
}
.download-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}
.platform-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 7px; font-size: 10px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px;
}
.platform-badge.android { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.platform-badge.windows { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.platform-badge.binance { background: rgba(240,185,11,0.12); color: #f0b90b; border: 1px solid rgba(240,185,11,0.35); }
.download-card.binance-card { border-color: rgba(240,185,11,0.25); }
.download-card.binance-card .binance-btn { background: linear-gradient(135deg, #f0b90b, #fcd535); color: #1a1a1a; border: none; font-weight: 700; }
.download-tip.gold { color: #f0b90b; }
.binance-logo-card,
.binance-logo-wide {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: block;
}
.bot-glow-icon .binance-logo-wide { max-width: 220px; }

/* Binance License form */
.binance-lic-form-panel {
  border-color: rgba(240,185,11,0.2);
  background: linear-gradient(165deg, rgba(240,185,11,0.04) 0%, var(--surface) 45%);
}
.binance-lic-form-title {
  display: flex; align-items: center; gap: 10px;
  color: #f0b90b; font-size: 18px; font-weight: 700; margin-bottom: 20px;
}
.binance-lic-form-panel .field input,
.binance-lic-form-panel .field textarea,
.binance-lic-form-panel .field select {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(240,185,11,0.18);
  border-radius: var(--rsm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.binance-lic-form-panel .field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}
.binance-lic-form-panel .field select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.binance-lic-form-panel .select-wrap {
  position: relative;
}
.binance-lic-form-panel .select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #f0b90b;
  pointer-events: none;
}
.binance-lic-form-panel .field input:focus,
.binance-lic-form-panel .field textarea:focus,
.binance-lic-form-panel .field select:focus {
  outline: none;
  border-color: rgba(240,185,11,0.55);
  box-shadow: 0 0 0 3px rgba(240,185,11,0.1);
}
.binance-lic-form-panel .field input::placeholder,
.binance-lic-form-panel .field textarea::placeholder {
  color: rgba(139,156,179,0.65);
}
.binance-lic-form-panel .field label {
  color: rgba(240,185,11,0.85);
}
.binance-lic-form-panel .field select option {
  background: #111827;
  color: var(--text);
}
.binance-lic-submit {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, #f0b90b, #fcd535) !important;
  color: #111 !important;
  border: none !important;
  font-weight: 700;
}
.binance-lic-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 20px rgba(240,185,11,0.25);
}

/* Autoforex License */
.autoforex-lic-hero {
  margin-bottom: 24px;
  text-align: center;
  padding: 28px 24px;
  border-color: rgba(245,197,66,0.28);
  background: linear-gradient(165deg, rgba(30,74,138,0.12) 0%, rgba(245,197,66,0.05) 50%, var(--surface) 100%);
}
.autoforex-lic-logo {
  max-width: 112px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30,74,138,0.25);
}
.autoforex-lic-desc {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 14px;
}
.autoforex-lic-dl-btn {
  margin-top: 18px;
  background: linear-gradient(135deg, #1e4a8a, #f5c542) !important;
  color: #111 !important;
  border: none !important;
  font-weight: 700;
}
.autoforex-lic-dl-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 24px rgba(245,197,66,0.3);
}

.autoforex-lic-form-panel {
  border-color: rgba(245,197,66,0.22);
  background: linear-gradient(165deg, rgba(30,74,138,0.06) 0%, rgba(245,197,66,0.03) 40%, var(--surface) 100%);
  padding: 24px 26px 28px;
}
.autoforex-lic-form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5c542;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 22px;
}
.autoforex-lic-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.af-lic-field-full { grid-column: 1 / -1; }
.af-lic-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(245,197,66,0.9);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.af-lic-optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
}
.af-lic-input-wrap,
.af-lic-select-wrap,
.af-lic-textarea-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.af-lic-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(245,197,66,0.75);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.af-lic-field-icon [data-lucide] { width: 16px; height: 16px; }
.af-lic-input-wrap input,
.af-lic-select-wrap select,
.af-lic-textarea-wrap textarea {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(245,197,66,0.2);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.af-lic-textarea-wrap textarea {
  padding: 14px 16px;
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.af-lic-select-wrap select {
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
}
.af-lic-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #f5c542;
  pointer-events: none;
}
.af-lic-input-wrap input:hover,
.af-lic-select-wrap select:hover,
.af-lic-textarea-wrap textarea:hover {
  border-color: rgba(245,197,66,0.35);
  background: rgba(0,0,0,0.55);
}
.af-lic-input-wrap input:focus,
.af-lic-select-wrap select:focus,
.af-lic-textarea-wrap textarea:focus {
  outline: none;
  border-color: rgba(245,197,66,0.55);
  box-shadow: 0 0 0 3px rgba(245,197,66,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.6);
}
.af-lic-input-wrap input::placeholder,
.af-lic-textarea-wrap textarea::placeholder {
  color: rgba(139,156,179,0.55);
}
.af-lic-select-wrap select option {
  background: #0d1424;
  color: var(--text);
}
.af-lic-error.error-msg {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
}
.autoforex-lic-submit {
  width: 100%;
  margin-top: 20px;
  background: linear-gradient(135deg, #1e4a8a, #f5c542) !important;
  color: #111 !important;
  border: none !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 15px 20px;
}
.autoforex-lic-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 24px rgba(245,197,66,0.28);
}

#bn-lic-error.error-msg {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  padding: 12px 14px;
  border-radius: var(--rsm);
  margin-bottom: 12px;
  font-size: 13px;
}
.download-card .app-icon { width: 72px; border-radius: 16px; margin: 8px auto 14px; display: block; border: 1px solid var(--border); }
.download-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.download-card .version { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.download-card .changelog { color: var(--muted); font-size: 12px; margin-bottom: 16px; line-height: 1.6; }
.download-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.download-tip { font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; }
.download-tip.cyan { color: var(--cyan); }
.download-tip.gold { color: var(--gold2); }
.download-tip.muted { color: var(--muted); }
.info-panel { margin-top: 16px; text-align: left; font-size: 13px; }
.info-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.info-panel h3.green { color: var(--green); }
.info-panel h3.cyan { color: var(--cyan); }
.info-panel ul { list-style: none; padding: 0; color: var(--muted); line-height: 1.8; }
.info-panel li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; }
.info-panel li [data-lucide] { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.info-panel li.ok [data-lucide] { color: var(--green); }
.info-panel li.warn [data-lucide] { color: var(--gold2); }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.req-col h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold2); margin-bottom: 12px; font-weight: 700; }
.req-col ul { list-style: none; font-size: 13px; color: var(--muted); }
.req-col li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.req-col li [data-lucide] { width: 15px; height: 15px; color: var(--gold); }
.install-steps { max-width: 620px; margin: 28px auto 0; }
.install-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); color: var(--gold2); font-weight: 800;
  border: 1px solid rgba(212,175,55,0.25);
}
.install-step strong { display: block; margin-bottom: 3px; font-size: 14px; }
.install-step p { color: var(--muted); font-size: 12px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 16px; }
  .hero-wrap { padding: 16px 20px 8px; }
  .hero-terminal { max-width: 440px; margin: 0 auto; width: 100%; }
  .hero-trust { max-width: 100%; }
  .feat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .broker-grid-3 { grid-template-columns: 1fr; max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav a { flex: 1; min-width: 130px; justify-content: center; }
  .stats-row, .dash-grid-2, .quick-actions, .req-grid, .download-grid-dash { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px 28px; }
  .cta-perks { grid-template-columns: repeat(3, 1fr); }
  .steps-timeline { grid-template-columns: 1fr; gap: 16px; }
  .step-arrow { display: none; }
  .steps-premium { padding: 32px 20px 36px; }
}

@media (min-width: 769px) {
  .nav-top-toggle { display: inline-flex; }

  .site-top-dash.nav-top-open {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .site-top-dash.nav-top-open .nav-brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .site-top-dash:not(.nav-top-open) .nav-menu {
    display: none !important;
  }

  /* Pills scroll in the middle; never paint over the right cluster */
  .site-top-dash.nav-top-open .nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    height: auto;
    padding: 0 4px;
    margin: 0;
    background: transparent;
    border: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .site-top-dash.nav-top-open .nav-menu::-webkit-scrollbar {
    height: 3px;
  }
  .site-top-dash.nav-top-open .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 999px;
  }

  .site-top-dash.nav-top-open .nav-pills {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: max-content;
  }

  .site-top-dash.nav-top-open .nav-user-area {
    display: none;
  }

  .site-top-dash.nav-top-open .nav-pill {
    padding: 8px 12px;
    font-size: 12px;
  }

  .site-top-dash.nav-top-open .pill-ico {
    width: 24px;
    height: 24px;
  }

  .site-top-dash.nav-top-open .pill-ico [data-lucide] {
    width: 13px;
    height: 13px;
  }

  .site-top-dash.nav-top-open .nav-user-chip {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Right cluster always sits above / outside scrolling pills */
  .site-top-dash .nav-end-actions {
    flex: 0 0 auto;
    margin-left: 0;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 7, 18, 0.98);
    z-index: 130;
  }

  .site-top-dash:not(.nav-top-open) .nav-end-logout {
    display: none;
  }

  .site-top-dash.nav-top-open .nav-end-logout {
    display: inline-flex;
  }

  /* Mid-width desktop: icon-only logout so Hide + EN never collide */
  @media (max-width: 1180px) {
    .site-top-dash .nav-end-logout .pill-txt {
      display: none;
    }
  }

  .site-top:not(.site-top-dash) .nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
    position: static;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
  }

  .site-top:not(.site-top-dash) .nav-pills {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .site-top {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: nowrap;
    position: sticky;
    overflow: visible;
  }
  .nav-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 64px);
    overflow: hidden;
  }
  .brand-name {
    font-size: 15px;
    letter-spacing: 1.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-toggle { display: flex; margin-left: 0; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 88vw);
    max-width: 88vw;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 72px 18px 28px;
    gap: 16px;
    background: rgba(3, 7, 18, 0.98);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
    visibility: hidden;
  }
  .nav-menu.open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav-pills, .nav-user-area {
    flex-direction: column; align-items: stretch;
    margin: 0; padding: 0; border: none; gap: 8px;
  }
  .nav-pill { width: 100%; justify-content: flex-start; padding: 14px 18px; font-size: 15px; }
  .nav-user-chip { justify-content: center; padding: 12px; }

  html.nav-open,
  body.nav-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
  }

  .hero-wrap { padding: 16px 14px 8px; overflow-x: clip; }
  .hero-title .line1 { letter-spacing: 1px; }
  .hero-lead { font-size: 15px; }

  .broker-grid { grid-template-columns: 1fr; }
  .broker-grid-3 { grid-template-columns: 1fr; }
  .cta-inner { padding: 28px 20px 24px; text-align: center; }
  .cta-desc { margin-left: auto; margin-right: auto; }
  .cta-perks { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; }
  .cta-visual { order: -1; }
  .broker-block-inner { padding: 20px 16px 28px; }
  .cta-divider { padding: 0 16px; }
  .field-row, .form-row { grid-template-columns: 1fr; }
  .field-row-pw, .broker-pick-grid, .autoforex-lic-fields { grid-template-columns: 1fr; }
  .auth-head-register, .auth-form-register, .auth-alert { padding-left: 24px; padding-right: 24px; }
  .auth-foot-register { padding-left: 24px; padding-right: 24px; padding-bottom: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-trust { grid-template-columns: 1fr; max-width: 100%; }
  .hero-chips { justify-content: center; }
  .hero-content { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .line-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; border-radius: 14px; }
  .line-fab img { width: 30px; height: 30px; }
  .line-fab-tip { display: none; }
  .legal-body { padding: 20px; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ticker-bar { display: none; }
  .auth-card { padding: 28px 20px; }
}

/* ── Packages & KYC ── */
.pkg-hero-strip {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 20px 24px;
  border: 1px solid rgba(212,175,55,0.18);
  background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(3,7,18,0.98) 100%);
}
.pkg-hero-glow {
  position: absolute;
  inset: -50% -20%;
  background: radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.1) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 50%, rgba(6,182,212,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.pkg-hero-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}
.pkg-hero-item strong { display: block; font-size: 17px; color: var(--gold2); margin-top: 6px; }
.pkg-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.pkg-hero-label [data-lucide] { width: 14px; height: 14px; color: var(--cyan); }
.pkg-hero-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent);
}
.pkg-broker-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pkg-broker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(6,182,212,0.25);
  background: rgba(6,182,212,0.08);
  color: var(--text);
}
.pkg-broker-chip img { width: 18px; height: 18px; border-radius: 4px; }
.pkg-broker-chip.exnova {
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.08);
}
.pkg-broker-chip.eightx {
  border-color: rgba(234,88,12,0.35);
  background: rgba(234,88,12,0.1);
}

.pkg-trial-premium { margin-bottom: 28px; max-width: 420px; }
.pkg-paid-section {
  margin-top: 8px;
  max-width: 100%;
  overflow-x: clip;
}
.pkg-section-head {
  text-align: center;
  margin-bottom: 28px;
  padding: 0 12px;
}
.pkg-section-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--gold2);
  margin: 8px 0 10px;
}
.pkg-section-head p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.pkg-section-head .block-label { margin-bottom: 4px; }

.pkg-duration-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.pkg-duration-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.pkg-duration-tab:hover {
  border-color: rgba(6,182,212,0.35);
  color: var(--text);
}
.pkg-duration-tab.active {
  border-color: rgba(212,175,55,0.45);
  background: rgba(212,175,55,0.1);
  color: var(--gold2);
  box-shadow: 0 4px 20px rgba(212,175,55,0.12);
}
.pkg-duration-tab .pkg-duration-badge {
  font-size: 10px;
  padding: 4px 8px;
}

.pkg-duration-block.is-collapsed { display: none; }
.pkg-duration-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.pkg-duration-note [data-lucide] { width: 14px; height: 14px; color: var(--cyan); flex-shrink: 0; }

.pkg-duration-block { margin-bottom: 8px; }

.pkg-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
}
.pkg-tier-grid > .pkg-premium-card { min-width: 0; }

.pkg-premium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(165deg, rgba(18,26,46,0.92) 0%, rgba(6,10,22,0.98) 100%);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pkg-premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), transparent 40%, rgba(255,255,255,0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pkg-card-shine {
  position: absolute;
  top: -60%;
  right: -30%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.25s;
}
.pkg-premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.pkg-premium-card:hover .pkg-card-shine { opacity: 1.5; }

.pkg-premium-card.tier-u1 { border-color: rgba(6,182,212,0.2); }
.pkg-premium-card.tier-u1:hover { border-color: rgba(6,182,212,0.45); box-shadow: 0 16px 40px rgba(6,182,212,0.12); }
.pkg-premium-card.tier-u3,
.pkg-premium-card.popular {
  border-color: rgba(212,175,55,0.28);
  background: linear-gradient(165deg, rgba(28,24,12,0.5) 0%, rgba(6,10,22,0.98) 100%);
}
.pkg-premium-card.tier-u3:hover,
.pkg-premium-card.popular:hover {
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 20px 50px rgba(212,175,55,0.15);
}
.pkg-premium-card.tier-u5,
.pkg-premium-card.elite {
  border-color: rgba(168,85,247,0.25);
  background: linear-gradient(165deg, rgba(24,14,40,0.55) 0%, rgba(6,10,22,0.98) 100%);
}
.pkg-premium-card.tier-u5:hover,
.pkg-premium-card.elite:hover {
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 20px 50px rgba(168,85,247,0.14);
}
.pkg-premium-card.trial.featured {
  border-color: rgba(52,211,153,0.35);
  background: linear-gradient(165deg, rgba(12,32,28,0.6) 0%, rgba(6,10,22,0.98) 100%);
}
.pkg-premium-card.trial:hover { box-shadow: 0 16px 40px rgba(52,211,153,0.12); }

.pkg-popular-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0a0e14;
  background: linear-gradient(90deg, #f0b90b, #fcd34d);
  box-shadow: 0 4px 16px rgba(212,175,55,0.35);
  z-index: 2;
}
.pkg-popular-tag [data-lucide] { width: 12px; height: 12px; }
.pkg-popular-tag.elite {
  background: linear-gradient(90deg, #a855f7, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(168,85,247,0.35);
}

.pkg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pkg-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  border: 1px solid rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.1);
  color: var(--cyan);
}
.pkg-tier-badge.u3 {
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.12);
  color: var(--gold2);
}
.pkg-tier-badge.u5 {
  border-color: rgba(168,85,247,0.35);
  background: rgba(168,85,247,0.12);
  color: #c084fc;
}
.pkg-tier-badge.free {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.12);
  color: var(--green);
}
.pkg-tier-badge [data-lucide] { width: 12px; height: 12px; }
.pkg-days-pill {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.pkg-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
  color: #f1f5f9;
}
.pkg-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 36px;
}

.pkg-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pkg-feature-list.compact { gap: 5px; }
.pkg-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(226,232,240,0.85);
}
.pkg-feature-list li [data-lucide] {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

.pkg-price-block {
  padding: 14px 0 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.pkg-price-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.pkg-price-amount {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.pkg-price-amount.free { color: var(--green); }
.pkg-price-per {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.pkg-price-original {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.65;
  margin-bottom: 2px;
}
.pkg-price-amount.promo {
  color: #f0b90b;
  text-shadow: 0 0 20px rgba(240,185,11,0.35);
}
.pkg-promo-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0a0e14;
  background: linear-gradient(90deg, #f0b90b, #ff6b6b);
  box-shadow: 0 2px 12px rgba(240,185,11,0.35);
  z-index: 2;
}
.pkg-premium-card.on-promo {
  border-color: rgba(240,185,11,0.45);
  box-shadow: 0 0 0 1px rgba(240,185,11,0.15), 0 8px 32px rgba(240,185,11,0.12);
}
.pkg-promo-spotlight {
  margin: 8px 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pkg-spotlight-head {
  text-align: center;
  margin-bottom: 18px;
}
.pkg-spotlight-head .block-label.spotlight {
  color: #f0b90b;
  margin-bottom: 8px;
}
.pkg-spotlight-timer {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.pkg-spotlight-timer .pkg-countdown {
  font-family: Orbitron, monospace;
  font-size: 1.25rem;
  color: #f0b90b;
  margin-left: 4px;
}
.pkg-promo-spotlight-grid {
  display: flex;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}
.pkg-spotlight-card {
  width: 100%;
  border-color: rgba(240,185,11,0.55) !important;
  box-shadow: 0 0 0 1px rgba(240,185,11,0.2), 0 12px 40px rgba(240,185,11,0.18) !important;
  animation: pkgSpotlightPulse 2.5s ease-in-out infinite;
}
@keyframes pkgSpotlightPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(240,185,11,0.2), 0 12px 40px rgba(240,185,11,0.15); }
  50% { box-shadow: 0 0 0 1px rgba(240,185,11,0.35), 0 16px 48px rgba(240,185,11,0.28); }
}
.pkg-rotate-countdown {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #f0b90b;
  opacity: 0.95;
}
.pkg-countdown {
  font-family: Orbitron, monospace;
  font-size: 12px;
  color: #fff;
}

.pkg-btn-glow {
  margin-top: auto;
  background: linear-gradient(90deg, rgba(168,85,247,0.9), rgba(6,182,212,0.9)) !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(6,182,212,0.25);
}
.pkg-btn-glow:hover {
  box-shadow: 0 8px 28px rgba(168,85,247,0.35);
  filter: brightness(1.08);
}
.pkg-premium-card.popular .pkg-btn-glow,
.pkg-premium-card.tier-u3 .pkg-btn-glow {
  background: linear-gradient(90deg, #d4af37, #f0b90b) !important;
  color: #0a0e14 !important;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}

/* legacy pkg-card (keep for compatibility) */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.pkg-grid-trial { grid-template-columns: minmax(220px, 360px); margin-bottom: 8px; }
.pkg-plan-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  padding: 16px 20px;
}
.pkg-plan-item strong { display: block; font-size: 15px; color: var(--gold2); margin-top: 4px; }
.broker-ex-locked { opacity: 0.85; }
.pkg-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15,23,42,.95), rgba(3,7,18,.98));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s;
}
.pkg-card:hover { border-color: rgba(34,211,238,.35); transform: translateY(-2px); }
.pkg-card.trial { border-color: rgba(52,211,153,.3); }
.pkg-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34,211,238,.15);
  color: var(--cyan);
}
.pkg-card h3 { font-size: 1.15rem; margin: 8px 0 0; }
.pkg-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.pkg-price .amount { font-family: Orbitron, sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; }
.pkg-price .amount.free { color: var(--green); }
.pkg-license-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pkg-expiry { color: var(--muted); font-size: .9rem; }
.panel-kyc { margin-bottom: 20px; }
.profile-kyc-section { margin-bottom: 24px; }
.profile-kyc-done { margin-top: 0; }
.kyc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kyc-head h2 { margin: 0; }
.kyc-desc { color: var(--muted); margin-bottom: 16px; }
.kyc-desc.ok-text { color: var(--green); display: flex; align-items: center; gap: 8px; }
.kyc-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.kyc-field { margin-bottom: 0; }
.kyc-field label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px;
}
.kyc-field label [data-lucide] { width: 13px; height: 13px; opacity: 0.7; }
.kyc-input,
.kyc-field select,
.kyc-field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rsm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.kyc-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}
.kyc-input:focus,
.kyc-field select:focus,
.kyc-field textarea:focus {
  outline: none;
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
  background: rgba(0,0,0,0.5);
}
.kyc-select-wrap { position: relative; }
.kyc-select-wrap select { padding-right: 42px; cursor: pointer; }
.kyc-select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.kyc-file-wrap { position: relative; }
.kyc-file-native {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.kyc-file-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  background: rgba(0,0,0,0.4);
  border: 1px dashed rgba(212,175,55,0.35);
  border-radius: var(--rsm);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: var(--ease);
  min-height: 48px;
}
.kyc-file-btn:hover {
  border-color: rgba(212,175,55,0.6);
  background: rgba(212,175,55,0.06);
  color: var(--gold2);
}
.kyc-file-btn [data-lucide] { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold2); }
.kyc-file-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kyc-preview,
.kyc-result-preview,
.kyc-verified-photo {
  margin: 12px 0 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.35);
}
.kyc-preview-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 14px 0;
}
.kyc-preview img,
.kyc-result-preview img,
.kyc-verified-photo img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  padding: 10px 14px 14px;
  background: rgba(0,0,0,0.25);
}
.kyc-scan-result { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--border); }
.kyc-result-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  margin-bottom: 16px;
}
.kyc-field-hint {
  font-size: 12px;
  color: #fb923c;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kyc-field-hint.ok { color: var(--green); }
.kyc-id-display {
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.06em;
  color: var(--gold2);
}
.kyc-otp-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.kyc-verified-card { margin-top: 4px; }
.kyc-verified-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(52,211,153,0.2);
  background: rgba(52,211,153,0.04);
}
.kyc-verified-info { display: flex; flex-direction: column; gap: 12px; }
.kyc-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.kyc-info-row.block { flex-direction: column; align-items: stretch; gap: 6px; }
.kyc-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.kyc-info-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; flex-shrink: 0; }
.kyc-info-val { font-size: 14px; color: var(--text); text-align: right; }
.kyc-info-row.block .kyc-info-val { text-align: left; line-height: 1.55; }
.kyc-info-val.muted { color: var(--muted); font-size: 13px; }
.badge-orange { background: rgba(251,146,60,.15); color: #fb923c; }
.badge-muted { background: rgba(148,163,184,.12); color: #94a3b8; }
.broker-status-chip.expired .broker-status-dot { background: #ef4444; }
.pkg-stripe-warn { margin-top: 16px; }

/* Purchase history */
.purchase-success-banner {
  border-color: rgba(34,197,94,0.35);
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(212,175,55,0.06));
  margin-bottom: 18px;
}
.purchase-success-head {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px;
}
.purchase-success-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,0.15); color: var(--green);
}
.purchase-success-icon [data-lucide] { width: 26px; height: 26px; }
.purchase-success-head h2 { margin: 0 0 6px; font-size: 20px; color: var(--green); }
.purchase-success-head p { margin: 0; color: var(--muted); }
.purchase-success-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 14px;
}
.purchase-success-item {
  padding: 12px 14px; border-radius: var(--rsm);
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
}
.purchase-success-item .label {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.purchase-success-item strong { font-size: 15px; color: var(--gold2); }
.purchase-success-note {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: var(--cyan); font-size: 13px;
}
.purchase-license-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.purchase-license-meta {
  display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px;
}
.purchase-license-meta span { display: flex; align-items: center; gap: 6px; }
.purchase-license-meta [data-lucide] { width: 14px; height: 14px; color: var(--cyan); }
.purchase-history-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.purchase-history-head h2 { margin: 0; }
.purchase-table-wrap { overflow-x: auto; }
.purchase-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.purchase-table th,
.purchase-table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
.purchase-table th {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.purchase-table tbody tr:hover { background: rgba(212,175,55,0.04); }
.purchase-ref {
  font-family: ui-monospace, monospace; font-size: 11px;
  color: var(--muted); word-break: break-all;
}
.purchase-empty {
  text-align: center; padding: 48px 24px; color: var(--muted);
}
.purchase-empty [data-lucide] { width: 48px; height: 48px; color: var(--gold); opacity: 0.5; margin-bottom: 12px; }
.purchase-empty p { margin-bottom: 16px; }

@media (max-width: 1024px) {
  .pkg-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-success-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg-tier-grid { grid-template-columns: 1fr; }
  .pkg-hero-divider { display: none; }
  .pkg-duration-label { flex-wrap: wrap; }
  .pkg-duration-label small { margin-left: 0; width: 100%; }
  .pkg-matrix-head,
  .pkg-matrix-row { grid-template-columns: 1fr; }
  .pkg-matrix-corner { display: none; }
  .kyc-upload-row { grid-template-columns: 1fr; }
  .kyc-result-grid,
  .kyc-verified-grid { grid-template-columns: 1fr; }
  .kyc-info-val { text-align: left; }
  .purchase-success-grid { grid-template-columns: 1fr; }
  .purchase-table thead { display: none; }
  .purchase-table tr {
    display: block; margin-bottom: 14px; padding: 14px;
    background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: var(--rsm);
  }
  .purchase-table td {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .purchase-table td:last-child { border-bottom: none; }
  .purchase-table td::before {
    content: attr(data-label); font-weight: 600; color: var(--muted); flex-shrink: 0;
  }
}

/* ── Guide / วิธีใช้งาน ── */
.guide-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
.guide-main { padding-bottom: 48px; }
.guide-hero {
  position: relative;
  text-align: center;
  padding: 36px 24px 40px;
  margin-bottom: 28px;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.15);
  background: linear-gradient(165deg, rgba(15,23,42,0.95) 0%, rgba(3,7,18,0.98) 100%);
  overflow: hidden;
}
.guide-hero-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.guide-hero-inner { position: relative; z-index: 1; }
.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold2);
  border: 1px solid rgba(212,175,55,0.25);
  background: rgba(212,175,55,0.06);
  margin-bottom: 16px;
}
.guide-badge [data-lucide] { width: 14px; height: 14px; }
.guide-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}
.guide-hero h1 .gold { color: var(--gold2); }
.guide-hero-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.65;
}
.guide-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.guide-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.guide-hero-tags [data-lucide] { width: 14px; height: 14px; color: var(--cyan); }

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.guide-toc {
  position: sticky;
  top: 88px;
  padding: 20px;
}
.guide-toc h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold2);
  margin-bottom: 14px;
}
.guide-toc h3 [data-lucide] { width: 16px; height: 16px; }
.guide-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.guide-toc li { margin-bottom: 4px; }
.guide-toc a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.guide-toc a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.guide-toc-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  border: 1px solid rgba(52,211,153,0.15);
  background: rgba(52,211,153,0.04);
}
.guide-toc-tip [data-lucide] { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.guide-toc-tip strong { color: var(--green); }

.guide-steps { display: flex; flex-direction: column; gap: 22px; }
.guide-step { padding: 0; overflow: hidden; }
.guide-step-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(90deg, rgba(212,175,55,0.04) 0%, transparent 100%);
}
.guide-step-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: rgba(212,175,55,0.35);
  line-height: 1;
  flex-shrink: 0;
}
.guide-step-head h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--gold2);
}
.guide-step-head p { color: var(--muted); font-size: 13px; line-height: 1.55; }

.guide-step-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}
.guide-step-body-single { grid-template-columns: 1fr; }

.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.guide-checklist li:last-child { border-bottom: none; }
.guide-checklist [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.guide-checklist li:has([data-lucide="alert-triangle"]) [data-lucide] { color: var(--gold2); }
.guide-checklist li:has([data-lucide="shield"]) [data-lucide] { color: var(--cyan); }

.guide-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.guide-info-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}
.guide-info-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cyan);
}
.guide-info-card h4 [data-lucide] { width: 15px; height: 15px; }
.guide-info-card p { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0; }

.guide-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(6,182,212,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
  position: relative;
  cursor: zoom-in;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.guide-shot:hover {
  border-color: rgba(6,182,212,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(6,182,212,0.12);
  transform: translateY(-1px);
}
.guide-shot-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(3,7,18,0.78);
  border: 1px solid rgba(6,182,212,0.35);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.guide-shot:hover .guide-shot-hint,
.guide-shot:focus-visible .guide-shot-hint {
  opacity: 1;
  transform: translateY(0);
}
.guide-shot-hint [data-lucide] { width: 14px; height: 14px; color: var(--cyan); }
.guide-shot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.guide-shot figcaption {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.guide-shot-sm { max-width: 420px; margin: 0 auto; }

.guide-settings-block {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.guide-settings-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold2);
  margin-bottom: 8px;
}
.guide-settings-block h3 [data-lucide] { width: 16px; height: 16px; color: var(--cyan); }
.guide-settings-block > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.guide-settings-block .guide-shot { margin-top: 16px; }

.guide-opt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.guide-opt-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}
.guide-opt-card strong {
  display: block;
  font-size: 12px;
  color: var(--gold2);
  margin-bottom: 4px;
}
.guide-opt-card span { font-size: 12px; color: var(--muted); line-height: 1.45; }

.guide-opt-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.guide-opt-list.compact { margin-bottom: 0; }
.guide-opt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
  font-size: 12px;
}
.guide-opt-row.highlight {
  border-color: rgba(212,175,55,0.25);
  background: rgba(212,175,55,0.06);
}
.guide-opt-name { font-weight: 700; color: var(--text); flex-shrink: 0; }
.guide-opt-row span:last-child { color: var(--muted); text-align: right; }

.guide-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 24px 24px;
  padding: 16px 18px;
  border-color: rgba(6,182,212,0.2);
  background: rgba(6,182,212,0.04);
}
.guide-note [data-lucide] { width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; }
.guide-note strong { display: block; font-size: 14px; margin-bottom: 4px; }
.guide-note p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.55; }

.guide-start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.guide-start-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.guide-start-card.green {
  border-color: rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.05);
}
.guide-start-card.red {
  border-color: rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.05);
}
.guide-start-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.guide-start-card.green .guide-start-icon {
  background: rgba(52,211,153,0.15);
  color: var(--green);
}
.guide-start-card.red .guide-start-icon {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}
.guide-start-icon [data-lucide] { width: 22px; height: 22px; }
.guide-start-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.guide-start-card.green h4 { color: var(--green); }
.guide-start-card.red h4 { color: #ef4444; }
.guide-start-card p { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0; }

.guide-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Guide lightbox */
.guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.guide-lightbox[hidden] { display: none; }
body.guide-lightbox-open { overflow: hidden; }
.guide-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,7,18,0.92);
  backdrop-filter: blur(12px);
}
.guide-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: guideLbIn 0.25s ease;
}
@keyframes guideLbIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.guide-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,23,42,0.95);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.guide-lightbox-close:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
}
.guide-lightbox-close [data-lucide] { width: 20px; height: 20px; }
.guide-lightbox-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(6,182,212,0.3);
  box-shadow: 0 24px 80px rgba(0,0,0,0.65);
  background: #0a0e14;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.guide-lightbox-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 52px);
  object-fit: contain;
}
.guide-lightbox-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  background: rgba(0,0,0,0.45);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.guide-lightbox-figure figcaption:empty,
.guide-lightbox-figure figcaption[hidden] { display: none; }

.guide-platform-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,23,42,0.55);
  max-width: 420px;
}
.guide-platform-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.guide-platform-tab [data-lucide] { width: 16px; height: 16px; }
.guide-platform-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.guide-platform-tab.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(212,175,55,0.18) 0%, rgba(6,182,212,0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.25);
}
.guide-panel[hidden] { display: none !important; }
.guide-shot-mobile {
  max-width: 320px;
  margin: 0 auto;
}
.guide-shot-mobile img {
  border-radius: 18px;
  border: 2px solid rgba(6,182,212,0.2);
}
.guide-hero-mobile .guide-hero-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(6,182,212,0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(212,175,55,0.1) 0%, transparent 50%);
}
.guide-install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.guide-install-grid .guide-shot-mobile { max-width: none; }
.guide-install-grid .guide-shot figcaption {
  font-size: 11px;
  padding: 8px 10px;
}
.guide-install-grid-desktop {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guide-install-grid-desktop.guide-install-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .guide-install-grid,
  .guide-install-grid-desktop,
  .guide-install-grid-desktop.guide-install-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .guide-step-body { grid-template-columns: 1fr; }
  .guide-info-grid { grid-template-columns: 1fr; }
  .guide-opt-grid { grid-template-columns: 1fr; }
  .guide-start-grid { grid-template-columns: 1fr; }
  .guide-opt-row { flex-direction: column; align-items: flex-start; }
  .guide-opt-row span:last-child { text-align: left; }
}

/* AI Analysis Hub */
.ai-analysis-panel { margin-top: 8px; }
.ai-search-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.ai-search-wrap {
  flex: 1; min-width: 240px; position: relative;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 0 14px;
}
.ai-search-wrap i { opacity: 0.6; width: 18px; height: 18px; }
.ai-search-wrap input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: inherit; font-size: 15px; padding: 14px 0;
}
.ai-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: #141820; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; max-height: 260px; overflow: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.ai-suggest button {
  display: flex; width: 100%; text-align: left; gap: 10px; align-items: center;
  background: transparent; border: 0; color: inherit; padding: 10px 14px; cursor: pointer;
}
.ai-suggest button:hover { background: rgba(34,211,238,0.1); }
.ai-suggest .cat { opacity: 0.5; font-size: 11px; margin-left: auto; }
.ai-selected { opacity: 0.7; margin: 12px 0 8px; font-size: 14px; }
.ai-loading {
  display: flex; align-items: center; gap: 12px; padding: 24px 0; opacity: 0.85;
}
.ai-loading[hidden] {
  display: none !important;
}
.ai-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(34,211,238,0.2); border-top-color: #22d3ee;
  animation: aiSpin 0.8s linear infinite;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-prob-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0;
}
.ai-prob-card {
  padding: 18px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
}
.ai-prob-card strong { display: block; font-size: 28px; margin-top: 4px; }
.ai-prob-card.up strong { color: #34d399; }
.ai-prob-card.down strong { color: #f87171; }
.ai-prob-card.action strong.call { color: #34d399; }
.ai-prob-card.action strong.put { color: #f87171; }
.ai-prob-card.action strong.wait { color: #fbbf24; }
.ai-prob-label { font-size: 12px; opacity: 0.65; letter-spacing: 0.04em; text-transform: uppercase; }
.ai-conf { display: block; margin-top: 6px; font-size: 13px; opacity: 0.75; }
.ai-consensus { opacity: 0.8; margin-bottom: 14px; }
.ai-tf-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 16px;
}
.ai-tf-chip {
  padding: 10px; border-radius: 10px; text-align: center;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); font-size: 13px;
}
.ai-tf-chip .tf { display: block; font-weight: 600; margin-bottom: 2px; }
.ai-tf-chip.call { border-color: rgba(52,211,153,0.35); color: #34d399; }
.ai-tf-chip.put { border-color: rgba(248,113,113,0.35); color: #f87171; }
.ai-summary-box, .ai-feat-box {
  margin-top: 14px; padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
}
.ai-summary-box h3, .ai-feat-box h3 {
  display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px;
}
.ai-feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ai-feat-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,0.2); font-size: 13px;
}
.ai-feat-list .dir-call { color: #34d399; }
.ai-feat-list .dir-put { color: #f87171; }
.ai-lock-panel {
  text-align: center; padding: 64px 20px; margin-top: 24px;
  border-radius: 16px; border: 1px dashed rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
}
.ai-lock-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(248,113,113,0.12); color: #f87171;
}
.ai-lock-panel h2 { margin: 0 0 8px; }
.ai-lock-panel p { opacity: 0.75; margin: 0 0 20px; }
@media (max-width: 720px) {
  .ai-prob-grid { grid-template-columns: 1fr; }
  .ai-feat-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* AI Analysis multi-select */
.ai-hint { opacity: 0.75; font-size: 14px; margin: 0 0 14px; line-height: 1.45; }
.ai-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ai-toolbar .ai-search-wrap { flex: 1; min-width: 200px; }
.ai-check { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: 0.85; white-space: nowrap; }
.ai-asset-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px; max-height: 280px; overflow: auto; margin-bottom: 16px;
  padding: 4px;
}
.ai-asset-item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: 2px 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.ai-asset-item.ready { border-color: rgba(52,211,153,0.25); }
.ai-asset-item input { grid-row: 1 / span 2; }
.ai-asset-item .sym { font-weight: 600; }
.ai-asset-item .code { opacity: 0.55; font-size: 11px; grid-column: 2; }
.ai-asset-item .bars { grid-column: 2; opacity: 0.7; font-size: 11px; }
.ai-empty { opacity: 0.65; padding: 20px; text-align: center; }
.ai-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.ai-result-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ai-result-table th, .ai-result-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai-result-table th { opacity: 0.6; font-weight: 500; font-size: 11px; text-transform: uppercase; }
.ai-result-table tr.ai-row { cursor: pointer; }
.ai-result-table tr.ai-row:hover { background: rgba(34,211,238,0.06); }
.ai-result-table .call { color: #34d399; }
.ai-result-table .put { color: #f87171; }
.ai-result-table .wait { color: #fbbf24; }

.ai-win-filter {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
}
.ai-win-filter input[type=range] { width: 140px; accent-color: #22d3ee; }
.ai-style-select {
  min-width: 180px; height: 34px; border-radius: 8px; padding: 0 10px;
  background: rgba(0,0,0,0.35); color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.12); font-size: 13px;
}
.ai-win-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-filter-count { opacity: 0.75; font-size: 13px; margin-left: auto; }
.ai-pick-hint {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25);
  font-size: 13px; line-height: 1.45;
}

.ai-win-filter-main {
  margin-bottom: 16px;
}
.ai-advanced {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.ai-advanced summary {
  cursor: pointer;
  opacity: 0.75;
  font-size: 13px;
  list-style: none;
}
.ai-advanced summary::-webkit-details-marker { display: none; }
.ai-advanced[open] summary { margin-bottom: 12px; opacity: 0.9; }


/* Right cluster: Logout · Menu/Hide · Language — never overlaps pills */
.nav-end-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 130;
  isolation: isolate;
}
.nav-end-logout {
  flex-shrink: 0;
}
.nav-end-logout .pill-txt {
  max-width: 5.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Language switcher (globe) — always visible, above overlays */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  z-index: 120;
  flex-shrink: 0;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, background .2s, color .2s;
}
.lang-switch:hover {
  border-color: rgba(212,175,55,0.7);
  color: var(--gold2, #f0d78c);
  background: rgba(212,175,55,0.12);
}
.lang-switch [data-lucide],
.lang-switch svg {
  width: 16px;
  height: 16px;
  color: var(--gold, #d4af37);
  pointer-events: none;
}
.lang-switch-code {
  min-width: 1.6em;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 768px) {
  .nav-end-actions {
    gap: 8px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  /* Mobile: keep logout icon always available (desktop shows it only when menu open) */
  .nav-end-logout {
    display: inline-flex !important;
  }
  .nav-end-logout .pill-txt {
    display: none;
  }
}

/* ── IQ Alert dashboard ── */
.alerts-layout .alerts-main { min-width: 0; }
.alerts-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.alerts-status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(148,163,184,.12); color: #94a3b8; font-size: .85rem;
}
.alerts-status-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #64748b;
}
.alerts-status-chip.ok { color: #86efac; background: rgba(34,197,94,.12); }
.alerts-status-chip.ok .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }

.alerts-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 10px;
  min-height: 72vh;
  min-width: 0;
}
.alerts-workspace.side-collapsed {
  grid-template-columns: 1fr;
}
@media (max-width: 960px) {
  .alerts-workspace { grid-template-columns: 1fr; }
  .alerts-workspace.side-collapsed .alerts-side { display: none; }
}

.alerts-side {
  background: #0b1220;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 14px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100vh - 140px);
  min-height: 0;
  overflow: hidden;
  transition: opacity .2s, transform .2s;
}
.alerts-workspace.side-collapsed .alerts-side {
  display: none;
}
.alerts-side-toolbar { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.alerts-select {
  flex: 1; background: #111827; color: #e2e8f0; border: 1px solid rgba(148,163,184,.2);
  border-radius: 8px; padding: 8px 10px; font-size: .85rem;
}
.alerts-sound-bell {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(251,191,36,.45);
  background: rgba(251,191,36,.18);
  color: #fde68a; cursor: pointer; font-size: 1rem; line-height: 1;
  flex-shrink: 0; transition: background .15s, border-color .15s, opacity .15s;
}
.alerts-sound-bell:hover { background: rgba(251,191,36,.28); }
.alerts-sound-bell.on { border-color: rgba(251,191,36,.55); opacity: 1; }
.alerts-sound-bell.off {
  border-color: rgba(148,163,184,.25);
  background: rgba(148,163,184,.1);
  color: #64748b; opacity: .55;
}
.alerts-tracking { font-size: .75rem; color: #64748b; flex-shrink: 0; min-height: 1.1em; }
.alerts-signal-list {
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1; min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.alerts-signal-list::-webkit-scrollbar { width: 6px; }
.alerts-signal-list::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.35); border-radius: 999px;
}
.alerts-empty { color: #64748b; font-size: .9rem; padding: 24px 8px; text-align: center; }
.alerts-card {
  text-align: left; width: 100%; flex-shrink: 0;
  background: #111827; border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px; padding: 10px 12px; color: #e2e8f0; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.alerts-card:hover { border-color: rgba(56,189,248,.45); }
.alerts-card.active { border-color: #38bdf8; box-shadow: 0 0 0 1px rgba(56,189,248,.35); }
@keyframes alerts-new-blink {
  0%, 100% {
    border-color: #fbbf24;
    box-shadow:
      0 0 0 2px rgba(251, 191, 36, .95),
      0 0 18px rgba(251, 191, 36, .55),
      inset 0 0 0 1px rgba(251, 191, 36, .35);
  }
  50% {
    border-color: rgba(251, 191, 36, .2);
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, .12),
      0 0 4px rgba(251, 191, 36, .06);
  }
}
.alerts-card.is-new {
  animation: alerts-new-blink 0.75s ease-in-out infinite;
  transition: none;
  z-index: 1;
  position: relative;
}
.alerts-card.is-new:hover { border-color: #fbbf24; }
.alerts-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.alerts-card-top strong { font-size: .92rem; }
.alerts-dir {
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 6px;
}
.alerts-dir.buy { background: rgba(34,197,94,.18); color: #4ade80; }
.alerts-dir.sell { background: rgba(239,68,68,.18); color: #f87171; }
.alerts-dir.wait { background: rgba(148,163,184,.18); color: #cbd5e1; }
.alerts-card.wait { border-color: rgba(148,163,184,.2); }
.alerts-card-mid { margin-top: 4px; font-size: .75rem; color: #94a3b8; }
.alerts-card-bot {
  margin-top: 8px; display: flex; justify-content: space-between; gap: 8px;
  font-size: .8rem; color: #cbd5e1;
}
.alerts-card-actions {
  margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap;
}
.alerts-copy-btn,
.alerts-open-btn {
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.6);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: .72rem;
  cursor: pointer;
  line-height: 1.2;
}
.alerts-copy-btn:hover,
.alerts-open-btn:hover { border-color: rgba(56,189,248,.45); color: #7dd3fc; }
.alerts-copy-btn.copied { border-color: rgba(34,197,94,.45); color: #4ade80; }
.alerts-open-btn {
  border-color: rgba(56,189,248,.35);
  background: rgba(56,189,248,.1);
  color: #7dd3fc;
  margin-left: auto;
}
.alerts-copy-chart {
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: .68rem;
}
.alerts-entry { color: #38bdf8; }

.alerts-charts-wrap {
  background: #0b1220;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 14px;
  padding: 10px;
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden;
  height: calc(100vh - 150px);
  max-height: calc(100vh - 150px);
}
.alerts-layout-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px; color: #94a3b8; font-size: .75rem; letter-spacing: .08em;
  flex-shrink: 0; flex-wrap: wrap;
}
.alerts-layout-left {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap;
}
.alerts-panel-toggle {
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.75);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .78rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0;
}
.alerts-panel-toggle:hover {
  border-color: rgba(56,189,248,.45);
  color: #7dd3fc;
}
.alerts-layout-hint { font-size: .7rem; color: #64748b; letter-spacing: 0; text-transform: none; }
.alerts-asset-picker {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 8px; flex-shrink: 0;
}
.alerts-cat-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.alerts-cat-btns button {
  border: 1px solid rgba(148,163,184,.2); background: #111827; color: #cbd5e1;
  border-radius: 8px; padding: 5px 10px; font-size: .78rem; cursor: pointer;
}
.alerts-cat-btns button.active {
  background: #1d4ed8; border-color: #3b82f6; color: #fff;
}
.alerts-asset-pick-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.alerts-asset-search {
  flex: 1; min-width: 140px; background: #111827; color: #e2e8f0;
  border: 1px solid rgba(148,163,184,.2); border-radius: 8px;
  padding: 8px 10px; font-size: .85rem;
}
.alerts-asset-select { flex: 1.2; min-width: 160px; }
.alerts-asset-add {
  border: 1px solid rgba(56,189,248,.35); background: rgba(56,189,248,.12);
  color: #7dd3fc; border-radius: 8px; padding: 8px 12px; cursor: pointer;
  font-size: .82rem; white-space: nowrap;
}
.alerts-asset-add:hover { background: rgba(56,189,248,.22); }
.alerts-tf {
  font-style: normal; font-size: .68rem; color: #64748b;
  margin-left: 6px; font-weight: 600;
}
.alerts-layout-btns { display: flex; gap: 6px; }
.alerts-layout-btns button {
  width: 32px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(148,163,184,.2); background: #111827; color: #cbd5e1;
  cursor: pointer; font-weight: 600;
}
.alerts-layout-btns button.active {
  background: #1d4ed8; border-color: #3b82f6; color: #fff;
}

.alerts-chart-grid {
  display: grid; gap: 8px;
  flex: 1; min-height: 0; height: 100%;
}
.alerts-chart-grid.layout-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.alerts-chart-grid.layout-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.alerts-chart-grid.layout-3 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr; }
.alerts-chart-grid.layout-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.alerts-chart-grid.layout-6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
@media (max-width: 1100px) {
  .alerts-chart-grid.layout-3,
  .alerts-chart-grid.layout-6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .alerts-chart-grid.layout-2,
  .alerts-chart-grid.layout-3,
  .alerts-chart-grid.layout-4,
  .alerts-chart-grid.layout-6 {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(220px, 1fr);
  }
}

.alerts-chart-slot {
  position: relative;
  background: #070d18;
  border: 1px solid rgba(148,163,184,.1);
  border-radius: 12px;
  min-height: 0; height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  cursor: grab;
}
.alerts-chart-slot.dragging { opacity: .55; cursor: grabbing; }
.alerts-chart-slot.drag-over { border-color: #38bdf8; box-shadow: inset 0 0 0 1px rgba(56,189,248,.45); }
.alerts-chart-slot.empty { align-items: center; justify-content: center; cursor: default; }
.alerts-chart-head {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 6px 10px 0; font-size: .85rem; color: #e2e8f0; flex-shrink: 0;
}
.alerts-chart-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.alerts-chart-asset-select {
  flex: 1; min-width: 0; max-width: 100%;
  background: rgba(15,23,42,.85); color: #f1f5f9;
  border: 1px solid rgba(148,163,184,.22); border-radius: 6px;
  padding: 3px 6px; font-size: .82rem; font-weight: 600; font-family: inherit;
  cursor: pointer;
}
.alerts-chart-asset-select:hover { border-color: rgba(56,189,248,.45); }
.alerts-chart-asset-select:focus { outline: none; border-color: #38bdf8; }
.alerts-tf { font-style: normal; font-size: .72rem; color: #64748b; flex-shrink: 0; }
.alerts-live-price {
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: 6px; margin-left: auto;
  background: rgba(148,163,184,.12); color: #e2e8f0;
}
.alerts-live-price.up { background: rgba(34,197,94,.18); color: #4ade80; }
.alerts-live-price.down { background: rgba(239,68,68,.18); color: #f87171; }
.alerts-drag-handle {
  color: #64748b; font-size: .72rem; margin-right: 6px; user-select: none;
  cursor: grab;
}
.alerts-next {
  font-size: .72rem; font-weight: 700; color: #4ade80;
  background: rgba(34,197,94,.12); padding: 3px 8px; border-radius: 6px;
}
.alerts-chart-canvas { flex: 1; min-height: 200px; width: 100%; position: relative; }
.alerts-chart-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #64748b; font-size: .85rem; pointer-events: none; z-index: 2;
  background: rgba(7,13,24,.55);
}
.alerts-chart-placeholder { color: #64748b; font-size: .85rem; padding: 40px 12px; text-align: center; }
.alerts-chart-badge {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 6px;
  pointer-events: none;
}
.alerts-chart-badge.buy { background: rgba(34,197,94,.2); color: #4ade80; }
.alerts-chart-badge.sell { background: rgba(239,68,68,.2); color: #f87171; }
.alerts-chart-badge.wait { background: rgba(148,163,184,.18); color: #cbd5e1; }
.alerts-chart-trades {
  flex-shrink: 0;
  border-top: 1px solid rgba(148,163,184,.12);
  background: rgba(15,23,42,.65);
  max-height: 132px;
  overflow: hidden;
  display: none;
}
.alerts-chart-trades.is-collapsed {
  max-height: none;
}
.alerts-trades-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: .68rem;
  padding: 5px 8px;
  cursor: pointer;
  text-align: left;
  letter-spacing: .02em;
}
.alerts-trades-toggle:hover { color: #cbd5e1; background: rgba(148,163,184,.06); }
.alerts-trades-toggle em { font-style: normal; }
.alerts-win-rate.good { color: #4ade80; font-weight: 700; }
.alerts-win-rate.bad { color: #f87171; font-weight: 700; }
.alerts-trades-caret { color: #64748b; flex-shrink: 0; }
.alerts-trades-head {
  font-size: .68rem;
  color: #94a3b8;
  padding: 4px 8px 2px;
  letter-spacing: .02em;
}
.alerts-trades-list {
  max-height: 92px;
  overflow-y: auto;
  padding: 0 6px 4px;
}
.alerts-trades-empty {
  color: #64748b;
  font-size: .72rem;
  padding: 4px 2px 6px;
}
.alerts-trade-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 6px;
  align-items: center;
  font-size: .68rem;
  padding: 2px 2px;
  border-radius: 4px;
}
.alerts-trade-row .dir.buy { color: #4ade80; }
.alerts-trade-row .dir.sell { color: #f87171; }
.alerts-trade-row .tm { color: #64748b; }
.alerts-trade-row .px { color: #cbd5e1; font-variant-numeric: tabular-nums; }
.alerts-trade-row .pnl.win { color: #4ade80; }
.alerts-trade-row .pnl.loss { color: #94a3b8; }
.alerts-trade-row .pnl.pending { color: #fbbf24; }

/* full page /alerts */
.alerts-page {
  margin: 0;
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background: #030712;
  color: #e2e8f0;
  font-family: Kanit, sans-serif;
  display: flex;
  flex-direction: column;
}
.alerts-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(148,163,184,.12);
  background: #0b1220;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.alerts-page-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: #f8fafc;
}
.alerts-page-brand img { width: 28px; height: 28px; border-radius: 6px; }
.alerts-page-brand strong { letter-spacing: .04em; }
.alerts-page-brand span { color: #fbbf24; font-size: .9rem; }
.alerts-page-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; justify-content: flex-end;
}
.alerts-page-sub { margin: 0; font-size: .82rem; color: #94a3b8; max-width: 520px; text-align: right; }
.alerts-page-body {
  padding: 10px;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.alerts-workspace-full {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(250px, 300px) 1fr;
}
.alerts-workspace-full.side-collapsed {
  grid-template-columns: 1fr;
}
.alerts-workspace-full .alerts-side {
  max-height: none;
  height: 100%;
}
.alerts-workspace-full .alerts-charts-wrap {
  height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
}
.dash-nav-ext { width: 14px; height: 14px; opacity: .55; margin-left: auto; }
@media (max-width: 960px) {
  .alerts-page { height: auto; max-height: none; overflow: auto; }
  .alerts-page-body { height: auto; min-height: calc(100vh - 72px); overflow: visible; }
  .alerts-workspace-full { height: auto; min-height: 70vh; }
  .alerts-workspace-full .alerts-side { max-height: 40vh; }
  .alerts-workspace-full .alerts-chart-grid { min-height: 50vh; }
}
