/* ═══════════════════════════════════════════════════════════════════
   KOTrade — Unified Design System
   Covers: marketing pages (index, overview, docs, contact)
           + dashboard app (dashboard, live-chart, positions,
             trade-log, risk-controls, strategy-config,
             telegram, settings)
   ═══════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --surface2: #161616;
  --border:   #1e1e1e;
  --dim:      #333333;
  --accent:   #14F195;
  --accent2:  #14F195;
  --green:    #14F195;
  --red:      #ff4757;
  --amber:    #FFB300;
  --text:     #e0e0e0;
  --text-sec: #888888;
  --muted:    #444444;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Inter', system-ui, sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #111111;
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ────────────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ── BACKGROUND GRID ─────────────────────────────────────────────── */
body::before {
  display: none;
}

/* ── STAR DUST (Removed for white theme) ── */
body::after {
  display: none;
}

/* ── ORB GLOWS ───────────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-tl {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 65%);
  top: -200px; left: -200px;
  opacity: 1;
  animation: drift-a 14s ease-in-out infinite alternate;
}
.orb-br {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 65%);
  bottom: -160px; right: -160px;
  opacity: 1;
  animation: drift-b 18s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(50px, 40px); } }
@keyframes drift-b { to { transform: translate(-40px, -30px); } }

/* ── PAGE CONTENT WRAPPER ────────────────────────────────────────── */
.page-content { position: relative; z-index: 1; flex: 1; }

/* ═══════════════════════════════════════════════════════════════════
   MARKETING NAV  (header > .navbar)
   ═══════════════════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 100;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1.5rem;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.35);
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  display: block;
  line-height: 1.1;
}
.brand-sub {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .02em;
  display: block;
}

/* Marketing nav links */
.navbar nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none; background: transparent; display: flex; align-items: center; gap: .25rem; }
.navbar nav a {
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 6px;
  letter-spacing: .03em;
  transition: color 0.3s, background 0.3s, opacity 0.3s;
}
.navbar nav a:hover { 
  color: #ffffff; 
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(8px);
}
.navbar nav a[aria-current="page"] { color: #ffffff; }

.nav-dash {
  font-family: var(--mono);
  font-size: .75rem;
  padding: .4rem .9rem !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 6px;
  color: var(--accent) !important;
  background: rgba(255,255,255,.08) !important;
  transition: all .2s !important;
}
.nav-dash:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: var(--accent) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD NAV  (nav — the sticky top bar used in app pages)
   ═══════════════════════════════════════════════════════════════════ */
nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-brand .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.status-pill {
  font-family: var(--mono);
  font-size: .72rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  background: rgba(20,241,149,.08);
  border: 1px solid rgba(20,241,149,.25);
  color: var(--accent2);
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
  min-height: calc(100vh - 56px);
}

/* ── SIDEBAR ─────────────────────────────────────────────────────── */
aside {
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.side-section {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .1em;
  padding: .75rem 1.25rem .25rem;
  text-transform: uppercase;
}

.side-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.25rem;
  font-size: .82rem;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.side-item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.side-item.active {
  color: var(--accent2);
  border-left-color: var(--accent2);
  background: rgba(20,241,149,.05);
}
.side-item svg { width: 14px; height: 14px; opacity: .8; flex-shrink: 0; }

.side-bot-status {
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.bot-indicator {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent2);
}

.bot-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 6px var(--accent2);
  animation: pulse 1.5s infinite;
}

/* ── MAIN CONTENT ────────────────────────────────────────────────── */
main {
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ── PAGE HEADER ─────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.page-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.page-subtitle {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  margin-top: .2rem;
}

.header-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { color: var(--text); border-color: var(--dim); }

.btn-primary,
.btn.primary {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-primary:hover,
.btn.primary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.btn-danger {
  background: rgba(255,71,87,.1);
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover { background: rgba(255,71,87,.2); }

/* Marketing button variants */
.btn.secondary {
  background: rgba(255,255,255,.04);
  border-color: var(--border);
  color: var(--text);
}
.btn.secondary:hover { background: rgba(255,255,255,.08); border-color: var(--dim); }

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.ghost:hover { color: var(--text); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

.stat-label {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.stat-value.green  { color: var(--green); }
.stat-value.red    { color: var(--red); }
.stat-value.accent { color: var(--accent); }

.stat-sub {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  margin-top: .4rem;
}
.stat-sub .up,
.up   { color: var(--green); }
.stat-sub .down,
.down { color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════
   PANELS  (generic content cards in the dashboard)
   ═══════════════════════════════════════════════════════════════════ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--green);
}

.panel-title {
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.panel-body { padding: 16px; }

/* ── CHART PANEL ─────────────────────────────────────────────────── */
.chart-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.ticker-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.25rem;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-family: var(--mono);
  font-size: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.ticker-price  { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.ticker-change { color: var(--green); }
.ticker-pair   { color: var(--muted); }
.ticker-vol    { color: var(--muted); }

.tf-tabs { display: flex; gap: .25rem; }

.tf-tab {
  font-family: var(--mono);
  font-size: .7rem;
  padding: .3rem .6rem;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.tf-tab:hover { color: var(--text); }
.tf-tab.active {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
  color: var(--accent);
}

.chart-wrap {
  padding: 16px;
  position: relative;
}

#candleChart {
  width: 100%;
  height: 340px;
  display: block;
}

/* ── BOTTOM GRID ─────────────────────────────────────────────────── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════
   POSITIONS TABLE
   ═══════════════════════════════════════════════════════════════════ */
.pos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.pos-table th {
  font-family: var(--mono);
  font-size: .63rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  padding: .5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.pos-table td {
  padding: .55rem .5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text);
}
.pos-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.badge-long  { background: rgba(20,241,149,.12); color: var(--green); }
.badge-short { background: rgba(255,71,87,.12);  color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════
   TRADE LOG
   ═══════════════════════════════════════════════════════════════════ */
.log-list { display: flex; flex-direction: column; gap: .5rem; }

.log-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .5rem;
  border-radius: 6px;
  background: rgba(255,255,255,.02);
}

.log-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 700;
}
.log-icon.buy  { background: rgba(20,241,149,.12); color: var(--green); }
.log-icon.sell { background: rgba(255,71,87,.12);  color: var(--red); }
.log-icon.info { background: rgba(255,255,255,.12); color: var(--accent); }

.log-body { flex: 1; }
.log-msg  { font-size: .78rem; color: var(--text); }
.log-time { font-family: var(--mono); font-size: .65rem; color: var(--muted); margin-top: .1rem; }

/* ═══════════════════════════════════════════════════════════════════
   STRATEGY METRICS  (risk-controls + dashboard)
   ═══════════════════════════════════════════════════════════════════ */
.metric-list { display: flex; flex-direction: column; gap: .6rem; }

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-name { font-size: .78rem; color: var(--muted); }

.metric-val {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text);
}

.metric-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: .2rem;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width .4s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   MARKETING LAYOUT PRIMITIVES
   ═══════════════════════════════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}

/* ── KICKER ──────────────────────────────────────────────────────── */
.kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  font-size: .78rem;
  color: var(--muted);
  font-family: var(--mono);
}

.pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--accent);
  padding: .2rem .75rem;
  border-radius: 99px;
  font-size: .72rem;
  letter-spacing: .04em;
}
.pill-green {
  background: rgba(20,241,149,.1);
  border: 1px solid rgba(20,241,149,.25);
  color: var(--green);
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
}

h1 .hl {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
h3 { font-size: 1rem;   font-weight: 600; letter-spacing: -.01em; margin-bottom: .5rem; }

.lead {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

/* ── BADGE ROW ───────────────────────────────────────────────────── */
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.badge-chip {
  font-family: var(--mono);
  font-size: .68rem;
  padding: .3rem .75rem;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── CARDS (marketing) ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 60%);
  pointer-events: none;
}
.card.pad { padding: 1.75rem; }

.hero-card { padding: 1.75rem; }

.mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.mini-card {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: .85rem 1rem;
}
.mini-card .label {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.mini-card .value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.mini-card .value small {
  font-size: .7rem;
  color: var(--muted);
  margin-left: .3rem;
  font-weight: 400;
}

/* ── SEPARATOR ───────────────────────────────────────────────────── */
.sep { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ── NOTE / SMALL TEXT ───────────────────────────────────────────── */
.note {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}
.note code {
  font-family: var(--mono);
  font-size: .78rem;
  background: rgba(0,0,0,.06);
  padding: .1rem .4rem;
  border-radius: 4px;
  color: var(--accent);
}
.note strong { color: var(--text); }

code {
  font-family: var(--mono);
  font-size: .8rem;
  background: rgba(0,0,0,.06);
  padding: .1rem .4rem;
  border-radius: 4px;
  color: var(--accent);
}

/* ── GRID LAYOUTS ────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split  { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }

/* ── FEATURE CARD ────────────────────────────────────────────────── */
.feature {
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

.feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: .9rem;
}

/* ── SECTION HEADER ──────────────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }
.section-header p { max-width: 520px; }

/* ── LISTS (marketing) ───────────────────────────────────────────── */
ul { list-style: none; }
ul li {
  font-size: .88rem;
  color: #ffffff;
  padding: .4rem 0 .4rem 1.1rem;
  border-bottom: 1px solid rgba(26,35,51,.6);
  position: relative;
  line-height: 1.5;
}
ul li:last-child { border-bottom: none; }
ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .7rem;
  top: .45rem;
}
ul li strong { color: var(--text); }

/* ── SCREENS / SCREENSHOTS ───────────────────────────────────────── */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }

.shot {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.shot img {
  width: 100%; display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--surface2);
}
.cap {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  text-align: center;
  padding: .6rem;
  border-top: 1px solid var(--border);
  letter-spacing: .05em;
}

/* ── CTA CARD ────────────────────────────────────────────────────── */
.cta {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(20,241,149,.04));
  border-color: rgba(255,255,255,.2);
}
.cta h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.cta .note { max-width: 420px; margin-bottom: 1.25rem; }
.cta .actions { justify-content: center; margin-bottom: 0; }

/* ── FORM ────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: .7rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form input:focus,
.form textarea:focus {
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,.1);
}
.form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-actions  { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── PAGE HERO (marketing page titles) ───────────────────────────── */
.page-hero {
  padding: 3.5rem 2rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

/* ── STAT CHIP ───────────────────────────────────────────────────── */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--green);
  background: rgba(20,241,149,.08);
  border: 1px solid rgba(20,241,149,.2);
  padding: .3rem .8rem;
  border-radius: 99px;
}
.stat-chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.8s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner .small {
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.8;
}
.footer-inner a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-inner a:hover { color: var(--text); }
.footer-inner strong { color: var(--text); font-family: var(--mono); font-size: .82rem; }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .5s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ═══════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* Dashboard breakpoints */
@media (max-width: 1100px) {
  .stats-row   { grid-template-columns: repeat(3, 1fr); }
  .bottom-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split     { grid-template-columns: 1fr; }
  .grid-3    { grid-template-columns: 1fr 1fr; }
  .screens   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .shell       { grid-template-columns: 1fr; }
  
  aside {
    display: flex;
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    white-space: nowrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 56px;
    z-index: 99;
    padding: 0 1rem;
    gap: 0.5rem;
    scrollbar-width: none; /* Firefox */
    background: var(--bg);
  }
  aside::-webkit-scrollbar { display: none; }
  
  .side-section { display: none; }
  .side-item { border-left: none; border-bottom: 2px solid transparent; padding: 0.75rem 0.5rem; }
  .side-item.active { border-left-color: transparent; border-bottom-color: var(--accent2); background: transparent; }
  .side-bot-status { display: none; }

  .stats-row   { grid-template-columns: repeat(2, 1fr); }
  .bottom-grid { grid-template-columns: 1fr; }
  nav          { padding: 0 1rem; }
  .nav-links   { gap: 1rem; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .screens { grid-template-columns: 1fr; }
  .navbar     { padding: 0 1rem; }
  .hero, .section { padding-left: 1rem; padding-right: 1rem; }
  .section    { padding-top: 3rem; padding-bottom: 3rem; }
  .brand-sub  { display: none; }
  .stats-row  { grid-template-columns: 1fr 1fr; }
  main        { padding: 1rem; }
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.glass-hover {
  transition: all 0.3s ease;
}
.glass-hover:hover {
  background: var(--surface2);
  border-color: var(--dim);
}
