@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Orbitron:wght@700;800;900&display=swap');

:root {
  --bg: #0A0005;
  --surface: #170a0d;
  --surface-alt: #120608;
  --border: #2b1114;
  --border-soft: #1d0c0e;
  --text: #F2F2F2;
  --muted: #a08a8d;
  --muted-dim: #6b5658;
  --up: #22E07A;
  --down: #FF5A5A;
  --purple: #8B5CF6;
  --gold: #D4A72C;
  --blue: #3B82F6;
  --brand: #C0001A;
  --brand-dark: #8B0013;
  --brand-glow: rgba(192, 0, 26, 0.38);
  --brand-grad: linear-gradient(135deg, #C0001A, #8B0013);
  --brand-grad-bright: linear-gradient(135deg, #ff3355, #ff8800);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, .lp-hero-copy h1, .lp-center-heading {
  font-family: Georgia, 'Times New Roman', serif;
}

/* ---------- Shared bits ---------- */

.btn-primary {
  display: inline-block;
  text-align: center;
  padding: 11px 12px;
  border-radius: 8px;
  border: none;
  background: var(--brand-grad);
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--brand-glow);
  transition: all 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--brand-glow); }

.error-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #2A1414;
  border: 1px solid #4A1F1F;
  color: var(--down);
  font-size: 12.5px;
  width: 100%;
  box-sizing: border-box;
}

.mono { font-family: 'IBM Plex Mono', monospace; }
.up { color: var(--up); }
.down { color: var(--down); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
table.data-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  border-bottom: 1px solid var(--border);
}
table.data-table td { padding: 10px 10px; border-bottom: 1px solid var(--border-soft); }

/* Any panel that gets a <table> injected into it scrolls horizontally
   instead of overflowing the page on narrow screens. */
#positions-table, #history-table, #recent-trades-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.empty-state { color: var(--muted); font-size: 13px; padding: 24px 4px; text-align: center; }

/* ================= Dashboard shell ================= */

.db-body { overflow-x: hidden; }

.shell { display: flex; min-height: 100vh; }

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
}

.brand-block { padding: 0 8px 20px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-tagline { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-top: 6px; font-weight: 600; }

.nav { display: flex; flex-direction: column; gap: 1px; margin-bottom: 18px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  text-align: left;
}
.nav-item.active { background: rgba(192, 0, 26, 0.1); color: var(--brand); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.refer-card {
  background: linear-gradient(160deg, rgba(192,0,26,0.14), rgba(192,0,26,0.03));
  border: 1px solid rgba(192,0,26,0.25);
  border-radius: 12px;
  padding: 16px;
  margin-top: auto;
  margin-bottom: 14px;
}
.refer-title { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.refer-card p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.refer-btn { width: 100%; padding: 8px 10px; font-size: 12.5px; }

.sidebar-footer { border-top: 1px solid var(--border); padding-top: 12px; }

.account-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 12.5px;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 8px;
}

.btn-logout {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.sidebar-scrim { display: none; }

.main { flex: 1; padding: 20px 26px 40px; overflow-y: auto; min-width: 0; }

/* ---------- Top bar ---------- */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.welcome-label { font-size: 11.5px; color: var(--muted); }
.welcome-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(192,0,26,0.18); }

.top-bar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-bar-stat-label { font-size: 10.5px; color: var(--muted); margin-bottom: 2px; }
.top-bar-stat-value { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.eye-btn { background: none; border: none; color: var(--muted); cursor: pointer; display: flex; padding: 0; }
.eye-btn svg { width: 15px; height: 15px; }

.topbar-cta { padding: 9px 18px; font-size: 13px; }
.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.topbar-icon-btn svg { width: 16px; height: 16px; }

.topbar-user { display: flex; align-items: center; gap: 9px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.user-name { font-size: 12.5px; font-weight: 700; }
.user-status { font-size: 10.5px; color: var(--muted); }

.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #1c1712;
  color: var(--gold);
  font-size: 12px;
  border: 1px solid #3a2f1c;
  margin-bottom: 18px;
}
.connection-pill.live { background: rgba(192,0,26,0.1); color: var(--brand); border-color: rgba(192,0,26,0.3); }
.connection-pill.error { background: #2A1414; color: var(--down); border-color: #4A1F1F; }

/* ---------- Stat cards ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.stat-card-label { font-size: 11px; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.stat-card-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.stat-card-icon svg { width: 16px; height: 16px; }
.icon-green { background: rgba(192,0,26,0.14); color: var(--brand); }
.icon-purple { background: rgba(139,92,246,0.14); color: var(--purple); }
.icon-gold { background: rgba(212,167,44,0.14); color: var(--gold); }
.icon-blue { background: rgba(59,130,246,0.14); color: var(--blue); }
.stat-card-value { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.stat-card-sub { font-size: 11px; color: var(--muted-dim); }

/* ---------- Panels & grid ---------- */

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-title { font-size: 13.5px; font-weight: 700; }
.link-btn { background: none; border: none; color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer; }

.mini-select {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 12px;
}

.grid-2col { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 16px; align-items: start; }
.grid-2col-wide { grid-template-columns: 1.6fr 1fr; }
.grid-2col .panel, .grid-2col-wide .panel { margin-bottom: 0; }

.chart-panel canvas { max-width: 100%; }
.chart-panel { position: relative; }
#growth-chart { height: 220px !important; }

.bots-empty { padding: 30px 4px; margin-bottom: 12px; }
.full-width { width: 100%; }
.full-width-inline { display: inline-block; width: 100%; text-align: center; box-sizing: border-box; }

.actions-panel { display: flex; flex-direction: column; gap: 8px; }
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.quick-action-icon { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-action-icon svg { width: 13px; height: 13px; }

.promo-card {
  margin-top: 6px;
  background: linear-gradient(160deg, rgba(192,0,26,0.16), rgba(212,167,44,0.05));
  border: 1px solid rgba(192,0,26,0.25);
  border-radius: 12px;
  padding: 16px;
}
.promo-title { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.promo-card p { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.promo-btn { width: 100%; padding: 8px 10px; font-size: 12.5px; }

.performance-panel { display: flex; flex-direction: column; align-items: center; }
.donut-wrap { position: relative; width: 150px; height: 150px; margin: 4px auto 18px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-value { font-size: 22px; font-weight: 800; }
.donut-label { font-size: 11px; color: var(--muted); }
.performance-stats { width: 100%; }
.perf-row { display: flex; justify-content: space-between; padding: 8px 2px; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.perf-row span { color: var(--muted); }
.perf-row:last-child { border-bottom: none; }

.news-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.news-item:last-child { border-bottom: none; }
.news-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.news-icon svg { width: 15px; height: 15px; }
.news-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.news-item p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

.detail-row { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: var(--muted); }

.settings-copy { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.referral-link-row { display: flex; gap: 10px; }
.referral-link-row input { flex: 1; min-width: 0; }

/* ---------- Live trading ---------- */

.lt-subnav { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.lt-subnav-btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lt-subnav-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.lt-subview.hidden { display: none; }

.lt-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.lt-symbol-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.lt-live-price { font-size: 22px; font-weight: 800; color: var(--brand); margin-left: auto; }
.lt-chart-wrap { position: relative; width: 100%; height: 280px; }
.lt-chart-wrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.tv-chart-wrap { position: relative; width: 100%; height: 400px; margin-top: 12px; }
#tv-chart { width: 100%; height: 100%; }
.lt-chart-note {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12.5px;
  color: var(--muted-dim);
  pointer-events: none;
}
.lt-note { font-size: 11.5px; color: var(--gold); margin-top: -4px; }

.lt-digit-stats-meta { font-size: 11.5px; color: var(--muted-dim); }
.lt-digit-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 10px; }
.lt-digit-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.lt-digit-bar-track { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.lt-digit-bar-fill { width: 100%; border-radius: 4px 4px 0 0; min-height: 2px; transition: height 0.2s ease; }
.lt-digit-bar-fill.even { background: var(--up); }
.lt-digit-bar-fill.odd { background: var(--blue); }
.lt-digit-bar-fill.selected { background: var(--gold); }
.lt-digit-bar-pct { font-size: 10.5px; color: var(--muted); }
.lt-digit-bar-label {
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.lt-digit-bar-label.current { background: var(--gold); color: #1a1300; border-color: var(--gold); }

/* ---------- Bulk trader ---------- */

.bulk-trader-panel { margin-top: 18px; }
.bulk-form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.bulk-form-grid-3 { margin-top: 16px; margin-bottom: 16px; }

.bulk-tick-display { text-align: center; margin-bottom: 16px; }
.bulk-tick-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.bulk-tick-value { font-size: 26px; font-weight: 800; color: var(--text); }

.bulk-digit-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.bulk-digit-hint { text-align: center; font-size: 11.5px; color: var(--gold); margin-bottom: 14px; }

.bulk-digit-circle { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default; background: none; border: none; padding: 0; }
.bulk-digit-circle.clickable { cursor: pointer; }
.bulk-digit-ring-wrap { position: relative; width: 46px; height: 46px; }
.bulk-digit-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bulk-digit-ring-bg { fill: none; stroke: var(--border); stroke-width: 3; }
.bulk-digit-ring-fill { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 0.2s ease; }
.bulk-digit-ring-fill.even { stroke: var(--up); }
.bulk-digit-ring-fill.odd { stroke: var(--down); }
.bulk-digit-ring-fill.neutral { stroke: var(--blue); }
.bulk-digit-ring-fill.selected { stroke: var(--gold); }
.bulk-digit-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.bulk-digit-num.selected-text { color: var(--gold); }
.bulk-digit-pct { font-size: 10px; color: var(--muted); }

.bulk-outcomes-row { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 18px; }
.bulk-outcome-tag {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  color: #06130C;
}
.bulk-outcome-tag.win-tag { background: var(--up); }
.bulk-outcome-tag.lose-tag { background: var(--down); color: #fff; }

.bulk-direction-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.bulk-direction-btn {
  padding: 14px 10px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.bulk-direction-btn .bulk-direction-pct { display: block; font-size: 12px; font-weight: 600; margin-top: 4px; opacity: 0.85; }
.bulk-direction-btn.even-btn.active { background: var(--up); color: #06130C; border-color: var(--up); }
.bulk-direction-btn.odd-btn.active { background: var(--down); color: #fff; border-color: var(--down); }

.bulk-run-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.bulk-summary-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.bulk-summary-item span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.bulk-summary-item strong { font-size: 14px; font-family: 'IBM Plex Mono', monospace; }

.bulk-progress-wrap { margin-bottom: 14px; }
.bulk-progress-bar { height: 8px; border-radius: 4px; background: var(--surface-alt); overflow: hidden; margin-bottom: 6px; }
.bulk-progress-fill { height: 100%; width: 0%; background: var(--brand); transition: width 0.3s ease; }
.bulk-progress-status { text-align: center; font-size: 12px; color: var(--muted); }

.bulk-run-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.bulk-run-actions .btn-primary { flex: 1; }
.bulk-disclaimer { color: var(--gold); background: rgba(212,167,44,0.08); border-color: rgba(212,167,44,0.25); }

/* ---------- Support tickets ---------- */

.ticket-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.ticket-card:last-child { margin-bottom: 0; }
.ticket-meta { font-size: 11px; color: var(--muted-dim); margin-bottom: 6px; }
.ticket-message { font-size: 13px; color: var(--text); white-space: pre-wrap; margin-bottom: 10px; }
.ticket-reply { border-left: 3px solid var(--brand); padding-left: 10px; margin-top: 10px; }
.ticket-reply-label { font-size: 10.5px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; font-weight: 700; }
.ticket-reply-text { font-size: 13px; color: var(--text); white-space: pre-wrap; }
.ticket-waiting { font-size: 12px; color: var(--muted-dim); font-style: italic; margin-top: 10px; }

/* ---------- Floating support widget ---------- */

.support-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  z-index: 50;
}
.support-fab svg { width: 24px; height: 24px; }
.support-fab-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--down);
  border: 2px solid var(--bg);
}

.support-widget {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
}
.support-widget.hidden { display: none; }

.support-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.support-widget-title { font-size: 14px; font-weight: 700; }
.support-widget-subtitle { font-size: 11px; color: var(--muted); margin-top: 2px; }
.support-widget-close { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px 6px; display: flex; align-items: center; }
.support-widget-close svg { width: 14px; height: 14px; }

.support-widget-thread {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; white-space: pre-wrap; }
.support-bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 3px; }
.support-bubble.theirs { align-self: flex-start; background: var(--surface-alt); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.support-bubble-meta { font-size: 10px; opacity: 0.7; margin-top: 4px; }

.support-widget-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface-alt); }
.support-widget-textarea {
  flex: 1;
  resize: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 9px 10px;
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  max-height: 80px;
}
.support-widget-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.support-widget-send svg { width: 16px; height: 16px; }
.support-widget-send:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  .support-widget { right: 12px; left: 12px; width: auto; bottom: 82px; }
  .support-fab { right: 16px; bottom: 16px; }
}

/* ---------- AI Trading ---------- */

.ai-limits-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.ai-limits-list li { margin-bottom: 6px; }
.ai-limits-list strong { color: var(--text); }

.ai-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.ai-run-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.ai-run-actions .btn-primary { flex: 1; }

.ai-journal {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.ai-journal-entry {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12.5px;
}
.ai-journal-entry.win { border-color: rgba(192,0,26,0.3); }
.ai-journal-entry.loss { border-color: rgba(255,90,90,0.3); }
.ai-journal-time { color: var(--muted-dim); font-family: 'IBM Plex Mono', monospace; font-size: 11px; white-space: nowrap; }
.ai-journal-msg { flex: 1; }
.ai-journal-msg.up { color: var(--up); font-weight: 700; }
.ai-journal-msg.down { color: var(--down); font-weight: 700; }

@media (max-width: 760px) {
  .ai-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ai-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bulk-form-grid { grid-template-columns: 1fr; }
  .bulk-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .bulk-run-summary { grid-template-columns: 1fr 1fr; }
}
.lt-ticket-col { display: flex; flex-direction: column; gap: 12px; }
.lt-ticket-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.lt-quote-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface-alt); }
.lt-quote-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.lt-quote-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.lt-quote-row span { color: var(--muted); }
.lt-quote-note { font-size: 11.5px; color: var(--muted-dim); margin-top: 6px; }

.lt-result { padding: 10px 12px; border-radius: 8px; font-size: 12.5px; }
.lt-result.success { background: rgba(192,0,26,0.1); border: 1px solid rgba(192,0,26,0.3); color: var(--brand); }
.lt-result.error { background: #2A1414; border: 1px solid #4A1F1F; color: var(--down); }

@media (max-width: 900px) {
  .lt-grid { grid-template-columns: 1fr; }
}

/* ---------- Bot form ---------- */

.bot-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.form-field-wide { margin-bottom: 14px; }
.form-input, .form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
}
.form-select option {
  background: var(--surface-alt);
  color: var(--text);
}
textarea.form-input { resize: vertical; font-size: 12.5px; }

/* ---------- Custom dropdown (replaces native select popups, which on
   mobile are drawn by the OS and ignore all page CSS) ---------- */
.custom-select-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-trigger {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  text-align: left;
}
.custom-select-trigger.disabled { opacity: 0.5; cursor: not-allowed; }
.custom-select-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-caret { color: var(--muted); font-size: 11px; flex-shrink: 0; transition: transform 0.15s ease; }
.custom-select-wrapper.open .custom-select-trigger { border-color: var(--brand); }
.custom-select-wrapper.open .custom-select-caret { transform: rotate(180deg); color: var(--brand); }
.custom-select-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  z-index: 50;
}
.custom-select-wrapper.open .custom-select-list { display: block; }
.custom-select-option {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-option:hover { background: rgba(192,0,26,0.12); }
.custom-select-option.active { background: rgba(192,0,26,0.18); color: var(--brand); font-weight: 600; }

/* ---------- AI Forex Trading (automated) ---------- */

.forex-disclaimer {
  background: rgba(212,167,44,0.08);
  border: 1px solid rgba(212,167,44,0.3);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 16px;
}
.forex-disclaimer strong { color: var(--gold); display: block; margin-bottom: 4px; }

.mt5-toast {
  background: rgba(212,167,44,0.1);
  border: 1px solid rgba(212,167,44,0.35);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(-8px);
  max-height: 200px;
  overflow: hidden;
  animation: mt5-toast-inout 7s ease forwards;
}
.mt5-toast strong { color: var(--gold); display: block; margin-bottom: 4px; }
@keyframes mt5-toast-inout {
  0% { opacity: 0; transform: translateY(-8px); }
  8% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
}

.mt5-duration-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Dotted-leader summary rows, matching real MT5's own account summary style */
.mt5-summary { padding: 4px 4px 4px; }
.mt5-summary-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 0;
  font-size: 13px;
}
.mt5-summary-row span { color: var(--muted); white-space: nowrap; }
.mt5-summary-row span::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--border);
  margin: 0 6px;
  transform: translateY(-3px);
  display: inline-block;
}
.mt5-summary-row b { font-family: 'IBM Plex Mono', monospace; font-weight: 700; white-space: nowrap; }
.mt5-terminal-tabs { display: flex; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); margin-top: 10px; }
.mt5-terminal-tab {
  flex: 1;
  padding: 12px 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.mt5-terminal-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.mt5-terminal-body { padding: 14px 4px; max-height: 360px; overflow-y: auto; }

/* Persistent Start/Stop bar, pinned to the bottom of the viewport while
   scrolling this tab — the one button that runs everything. */
.mt5-start-bar {
  position: sticky;
  bottom: 12px;
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.mt5-btn-start, .mt5-btn-stop {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 14.5px;
  font-weight: 800;
  font-family: Georgia, serif;
  cursor: pointer;
  color: #fff;
}
.mt5-btn-start { background: var(--brand-grad); box-shadow: 0 4px 16px var(--brand-glow); }
.mt5-btn-stop { background: var(--surface-alt); border: 1px solid var(--border); color: var(--text); flex: 0 0 100px; }
.mt5-btn-start:disabled { opacity: 0.6; cursor: not-allowed; }

.strategy-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.strategy-card:last-child { margin-bottom: 0; }
.strategy-name { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.strategy-desc { font-size: 12px; color: var(--muted); }

/* ---------- Preset "Pipdollar bots" ---------- */

.preset-bot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.preset-bot-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 0 16px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.preset-bot-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border: 0;
}
.preset-bot-top, .preset-bot-desc, .preset-bot-meta, .preset-bot-lock-note, .preset-bot-card > button {
  margin-left: 16px;
  margin-right: 16px;
}
.preset-bot-card.locked { opacity: 0.6; }
.preset-bot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.preset-bot-name { font-size: 14.5px; font-weight: 800; }
.preset-bot-tier {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(212,167,44,0.14);
  color: var(--gold);
  white-space: nowrap;
}
.preset-bot-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.preset-bot-meta { font-size: 11.5px; color: var(--muted-dim); }
.preset-bot-lock-note { font-size: 12px; color: var(--down); }

/* ---------- Signals ---------- */

.signal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.signal-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--surface-alt); }
.signal-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 10px; }
.signal-name { font-size: 13.5px; font-weight: 700; }
.signal-price { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.signal-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.signal-badge.bullish { background: rgba(34,224,122,0.14); color: var(--up); }
.signal-badge.bearish { background: rgba(255,90,90,0.14); color: var(--down); }
.signal-badge.neutral { background: rgba(138,143,152,0.14); color: var(--muted); }
.signal-meta { font-size: 11.5px; color: var(--muted-dim); margin-bottom: 10px; }
.signal-trade-btn { width: 100%; padding: 7px 10px; font-size: 12px; }

@media (max-width: 640px) {
  .signal-grid { grid-template-columns: 1fr; }
}
.btn-secondary-small {
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#emergency-stop-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.bot-run-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.bot-run-card:last-child { margin-bottom: 0; }
.bot-run-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.bot-run-title { font-size: 13.5px; font-weight: 700; }
.bot-status-badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.bot-status-badge.running { background: rgba(192,0,26,0.14); color: var(--brand); }
.bot-status-badge.paused { background: rgba(212,167,44,0.14); color: var(--gold); }
.bot-status-badge.stopped { background: rgba(255,90,90,0.14); color: var(--down); }
.bot-run-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.bot-run-actions { display: flex; gap: 8px; }

.raw-json {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Bot file uploads ---------- */

.bot-upload-row { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.bot-upload-row input[type="file"] {
  flex: 1;
  min-width: 200px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 0;
}
.bot-file-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.bot-file-card:last-child { margin-bottom: 0; }
.bot-file-name { font-size: 13px; font-weight: 600; word-break: break-all; }
.bot-file-meta { font-size: 11.5px; color: var(--muted-dim); }
.bot-file-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 640px) {
  .bot-form-grid { grid-template-columns: 1fr 1fr; }
  .preset-bot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .bot-form-grid { grid-template-columns: 1fr; }
}

.tab-panel.hidden { display: none; }

.db-footer { text-align: center; color: var(--muted-dim); font-size: 11.5px; margin-top: 24px; }

/* ================= Landing page ================= */

.lp-body { overflow-x: hidden; }

.lp-section-inner { width: 100%; margin: 0 auto; padding: 0 4vw; box-sizing: border-box; }

.lp-nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: linear-gradient(180deg, rgba(192,0,26,0.22), rgba(10,0,5,0.95)); backdrop-filter: blur(6px); z-index: 10; }
.lp-nav-inner { width: 100%; margin: 0 auto; padding: 16px 4vw; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; padding: 4px 0; min-width: 0; }
.lp-brand-lockup { gap: 8px; }
.lp-brand-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.lp-brand-tagline { font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.brand-logo { height: clamp(34px, 7vw, 52px); width: auto; max-width: 100%; display: block; }
.lp-nav-cta {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.lp-error-banner {
  background: #2A1414;
  border-bottom: 1px solid #4A1F1F;
  color: var(--down);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
}

.lp-hero { position: relative; padding: 72px 28px 0; text-align: center; overflow: hidden; }
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 15%, rgba(255,60,80,0.9), transparent),
    radial-gradient(1px 1px at 22% 40%, rgba(255,60,80,0.7), transparent),
    radial-gradient(2px 2px at 35% 12%, rgba(255,90,100,0.8), transparent),
    radial-gradient(1px 1px at 48% 55%, rgba(255,60,80,0.6), transparent),
    radial-gradient(1.5px 1.5px at 60% 25%, rgba(255,90,100,0.9), transparent),
    radial-gradient(1px 1px at 72% 60%, rgba(255,60,80,0.7), transparent),
    radial-gradient(2px 2px at 85% 18%, rgba(255,90,100,0.8), transparent),
    radial-gradient(1px 1px at 92% 45%, rgba(255,60,80,0.6), transparent),
    radial-gradient(1.5px 1.5px at 15% 70%, rgba(255,90,100,0.7), transparent),
    radial-gradient(1px 1px at 40% 82%, rgba(255,60,80,0.6), transparent),
    radial-gradient(2px 2px at 65% 88%, rgba(255,90,100,0.8), transparent),
    radial-gradient(1px 1px at 90% 78%, rgba(255,60,80,0.6), transparent);
  background-repeat: no-repeat;
  animation: lp-twinkle 4s ease-in-out infinite alternate;
}
@keyframes lp-twinkle {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) { .lp-hero::before { animation: none; opacity: 0.7; } }
.lp-hero-hexbg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lp-hero-inner { max-width: 640px; margin: 0 auto; }
.lp-hero-logo { width: 96px; height: 96px; border-radius: 20px; margin-bottom: 28px; }
.lp-hero h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.lp-hero-sub { font-size: clamp(12px, 2.6vw, 16px); color: var(--muted); line-height: 1.6; margin: 0 0 30px; max-width: 560px; }
.lp-hero-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.lp-hero-btn { display: inline-block; width: auto; padding: 13px 26px; font-size: 14px; }
.lp-hero-secondary { color: var(--muted); font-size: 13.5px; text-decoration: underline; }
.lp-hero-note { font-size: 12.5px; color: var(--muted-dim); margin: 0 0 56px; }

/* ---------- New landing page sections ---------- */

.lp-nav-links { display: flex; gap: 26px; }
.lp-nav-links a { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.lp-nav-links a:hover { color: var(--text); }
.lp-nav-actions { display: flex; align-items: center; gap: 12px; }
.lp-nav-login { color: var(--text); font-size: 13.5px; text-decoration: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; }

.lp-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.lp-nav-burger span { width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.lp-nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-nav-burger.open span:nth-child(2) { opacity: 0; }
.lp-nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lp-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid var(--border);
}
.lp-nav-mobile.open { max-height: 420px; }
.lp-nav-mobile a {
  padding: 14px 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.lp-nav-mobile-login { color: var(--muted) !important; }
.lp-nav-mobile-cta { text-align: center; margin: 10px 24px 14px; border-bottom: none !important; }

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(192,0,26,0.08);
  border: 1px solid rgba(192,0,26,0.3);
  box-shadow: 0 0 20px rgba(192,0,26,0.15);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.lp-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: badgeBlink 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes badgeBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.lp-accent { color: var(--brand); }

.lp-hero-grid { position: relative; z-index: 1; width: 100%; margin: 0 auto; padding: 0 4vw; box-sizing: border-box; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; text-align: left; }

.lp-hero-stack { position: relative; z-index: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 0 4vw; box-sizing: border-box; text-align: left; }
.lp-hero-copy-centered { display: flex; flex-direction: column; align-items: flex-start; }
.lp-hero-sub-centered { text-align: left; margin-left: 0; margin-right: 0; }
.lp-hero-actions-centered { justify-content: flex-start; }

@media (min-width: 901px) {
  .lp-hero-stack {
    max-width: 1500px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "copy card";
    column-gap: 60px;
    align-items: center;
  }
  .lp-hero-copy-centered { grid-area: copy; align-items: flex-start; align-self: center; }
  .lp-hero-sub-centered { text-align: left; margin-left: 0; }
  .lp-hero-actions-centered { justify-content: flex-start; }
  .lp-hero-tertiary-btn { margin-left: 0; }
  .lp-bot-carousel-card { grid-area: card; margin-bottom: 0; }
  .lp-hero-stats-row { justify-content: flex-start; }
}
.lp-hero-tertiary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 28px;
  padding: 10px 20px;
  border: 1px solid rgba(192,0,26,0.3);
  border-radius: 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(192,0,26,0.06);
}
.lp-hero-tertiary-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.lp-bot-carousel-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(192,0,26,0.35);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(192,0,26,0.15), 0 0 24px rgba(192,0,26,0.12);
  background: var(--surface);
  margin-bottom: 24px;
}
.lp-bot-carousel {
  position: relative;
}
.lp-bot-carousel-track { position: relative; aspect-ratio: 6 / 3; }
.lp-bot-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.lp-bot-slide.active { opacity: 1; pointer-events: auto; }
.lp-bot-slide img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-alt); display: block; }
.lp-bot-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  text-align: left;
}
.lp-bot-slide-caption h3 { color: #fff; font-size: 20px; margin: 6px 0 0; }
.lp-bot-carousel-dots { position: absolute; bottom: 16px; right: 20px; display: flex; gap: 7px; z-index: 2; }
.lp-bot-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; padding: 0; cursor: pointer; transition: all 0.2s ease; }
.lp-bot-carousel-dot.active { background: var(--brand); width: 22px; border-radius: 4px; }

.lp-hero-stats-row { display: flex; justify-content: center; gap: 14px; padding: 18px 16px; margin-bottom: 0; }
.lp-hero-stat {
  flex: 1;
  padding: 14px 10px;
  border: 1px solid rgba(192,0,26,0.2);
  border-radius: 12px;
  background: rgba(192,0,26,0.04);
  text-align: center;
  transition: all 0.25s ease;
}
.lp-hero-stat:hover { border-color: rgba(192,0,26,0.45); background: rgba(192,0,26,0.08); box-shadow: 0 0 30px rgba(192,0,26,0.15); }
.lp-hero-stat-num { font-size: 24px; font-weight: 800; color: var(--brand); font-family: 'Orbitron', 'IBM Plex Mono', monospace; text-shadow: 0 0 20px rgba(192,0,26,0.6), 0 0 40px rgba(192,0,26,0.3); }
.lp-hero-stat-label { font-size: 10.5px; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
.lp-hero-copy h1 { font-size: clamp(24px, 5.5vw, 46px); line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 18px; }
.lp-hero-copy .lp-hero-sub { text-align: left; margin: 0 0 26px; }
.lp-hero-copy .lp-hero-actions { justify-content: flex-start; margin-bottom: 22px; }
.lp-hero-secondary-btn { display: inline-flex; align-items: center; gap: 7px; padding: 13px 24px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.lp-hero-secondary-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.lp-hero-note-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); }
.lp-hero-note-row span { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero-note-row svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }
.lp-hero-note-row > span > span { display: flex; flex-direction: column; }
.lp-hero-note-row em { font-style: normal; font-size: 10px; color: var(--muted-dim); }

.lp-hero-mockup { position: relative; margin-bottom: 110px; }
.lp-hero-bg-graph {
  position: absolute;
  top: -15%; left: -20%;
  width: 140%;
  height: 140%;
  opacity: 0.35;
  filter: blur(0.5px);
  z-index: 0;
  pointer-events: none;
}
.lp-mock-window { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.lp-mock-titlebar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.lp-mock-titlebar span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.lp-mock-topbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 9px; color: var(--muted); border-bottom: 1px solid var(--border); }
.lp-mock-topbar-deposit { background: var(--brand); color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 6px; font-size: 8.5px; }
.lp-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.lp-mock-stats-4 { grid-template-columns: repeat(4, 1fr); }
.lp-mock-stat { background: var(--surface); padding: 12px 10px; min-width: 0; }
.lp-mock-stat-label { font-size: 9.5px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mock-stat-value { font-size: 13px; font-weight: 800; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mock-stat-value.up { color: var(--up); }
.lp-mock-chart { padding: 14px; }
.lp-mock-chart svg { width: 100%; height: 70px; display: block; }
.lp-mock-phone-frame {
  position: absolute;
  bottom: -110px; right: 0;
  width: 186px;
  padding: 10px 8px 16px;
  background: linear-gradient(160deg, #1a1a1a, #0a0a0a);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(192,0,26,0.15),
    0 0 40px rgba(192,0,26,0.12);
  z-index: 2;
}
.lp-mock-phone-notch {
  width: 46px;
  height: 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  margin: 0 auto 8px;
}
.lp-mock-phone {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(192,0,26,0.04) 60%, rgba(212,167,44,0.03));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(192,0,26,0.18);
  border-radius: 22px;
  padding: 14px 12px;
  overflow: hidden;
}
.lp-mock-phone::before {
  content: "";
  position: absolute;
  top: -40%; left: -20%;
  width: 140%; height: 100%;
  background: radial-gradient(ellipse at top left, rgba(192,0,26,0.18), transparent 60%);
  pointer-events: none;
}
.lp-mock-phone-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.lp-mock-ai-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  background: linear-gradient(120deg, #C0001A, #D4A72C);
  color: #fff;
  letter-spacing: 0.03em;
}
.lp-mock-phone-row { position: relative; display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--muted); padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.lp-mock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.lp-mock-phone-icon { width: 19px; height: 19px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.lp-mock-phone-icon svg { width: 10px; height: 10px; }
.lp-mock-phone-icon.icon-blue { background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(59,130,246,0.1)); color: #5B9CFF; }
.lp-mock-phone-icon.icon-green { background: linear-gradient(135deg, rgba(192,0,26,0.35), rgba(192,0,26,0.1)); color: var(--brand); }
.lp-mock-phone-icon.icon-red { background: linear-gradient(135deg, rgba(255,90,90,0.35), rgba(255,90,90,0.1)); color: var(--down); }
.lp-mock-phone-name { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-mock-phone-row em { position: relative; flex-shrink: 0; margin-left: 6px; color: var(--brand); font-style: normal; font-size: 8.5px; font-weight: 600; }
.lp-mock-phone-row em.down { color: var(--down); }
.lp-mock-phone-cta {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: none;
  border-radius: 9px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.01em;
  cursor: default;
  box-shadow: 0 6px 16px rgba(192,0,26,0.35);
}

.lp-eyebrow { display: block; color: var(--brand); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }

.lp-confidence { padding: 80px 28px; background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-confidence-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }
.lp-confidence-grid-full { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.lp-confidence-grid-full .lp-confidence-features { grid-template-columns: repeat(2, 1fr); }
.lp-confidence-img { width: 100%; border-radius: 16px; }
.lp-confidence-img-transparent { border-radius: 0; filter: drop-shadow(0 20px 40px rgba(192,0,26,0.15)); }
.lp-confidence-copy h2 { font-size: 30px; margin: 0 0 16px; }
.lp-confidence-copy > p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0 0 28px; }
.lp-confidence-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-confidence-feature { display: flex; gap: 12px; align-items: flex-start; }
.lp-confidence-feature h3 { font-size: 14px; margin: 0 0 4px; }
.lp-confidence-feature p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

.lp-trading { padding: 80px 28px; }
.lp-trading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.lp-trading h2 { font-size: 28px; margin: 14px 0 16px; }
.lp-trading > div > p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0 0 24px; }
.lp-trading-chart-mock { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.lp-trading-chart-mock svg { width: 100%; height: 160px; }

.lp-bots { padding: 80px 28px; background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-center-heading { text-align: center; font-size: 30px; margin: 0 0 10px; }
.lp-center-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.lp-bots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-bot-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lp-bot-card-img { width: 100%; height: 110px; object-fit: cover; display: block; }
.lp-bot-card-body { padding: 16px; }
.lp-bot-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.lp-bot-card-top h3 { font-size: 14.5px; margin: 0; }
.lp-bot-card-body p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.lp-bot-tags { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.lp-bot-tag { font-size: 10.5px; padding: 3px 9px; border-radius: 20px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--muted); }
.lp-bot-use-btn { display: block; text-align: center; padding: 9px; font-size: 13px; text-decoration: none; }

.lp-stats-banner { padding: 60px 28px; }
.lp-stats-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 0.7fr); gap: 24px; align-items: center; border: 1px solid rgba(192,0,26,0.25); border-radius: 16px; padding: 36px; background: linear-gradient(160deg, rgba(192,0,26,0.08), transparent); }
.lp-stats-intro h2 { font-size: 22px; margin: 0 0 8px; }
.lp-stats-intro p { font-size: 13px; color: var(--muted); margin: 0; }
.lp-stat-item { text-align: center; }
.lp-stat-icon { color: var(--brand); margin-bottom: 6px; display: flex; justify-content: center; }
.lp-stat-icon svg { width: 20px; height: 20px; }
.lp-stat-num { font-size: 26px; font-weight: 800; color: var(--brand); font-family: 'Orbitron', 'IBM Plex Mono', monospace; text-shadow: 0 0 20px rgba(192,0,26,0.4); }
.lp-stat-label { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.lp-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; padding: 40px 28px 24px; align-items: start; }
.lp-footer-tagline { font-size: 12.5px; color: var(--muted); margin: 0; }
.lp-footer-links { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.lp-footer-links a:hover { color: var(--text); }
.lp-footer-social { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lp-footer-social span { font-size: 12.5px; color: var(--muted); }
.lp-footer-telegram { display: flex; align-items: center; gap: 8px; color: #27A7E7; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.lp-footer-bottom { text-align: center; font-size: 11.5px; color: var(--muted-dim); margin: 18px 0 0; }

@media (max-width: 900px) {
  .lp-nav-links { display: none; }
  .lp-nav-actions { display: none; }
  .lp-nav-burger { display: flex; }
  .lp-nav-mobile { display: flex; }
  .lp-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: center; }
  .lp-hero-mockup { max-width: none; margin: 0; }
  .lp-confidence-grid, .lp-trading-grid { grid-template-columns: 1fr; }
  .lp-confidence-features { grid-template-columns: 1fr; }
  .lp-bots-grid { grid-template-columns: 1fr 1fr; }
  .lp-stats-grid { grid-template-columns: 1fr 1fr; }
  .lp-stats-intro { grid-column: 1 / -1; text-align: center; }
  .lp-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .lp-footer-social { align-items: center; }
}
@media (max-width: 640px) {
  .lp-mock-stats-4 { grid-template-columns: repeat(2, 1fr); }
  .lp-mock-stat { padding: 8px 6px; }
  .lp-mock-stat-label { font-size: 8px; }
  .lp-mock-stat-value { font-size: 10.5px; }
  .lp-mock-titlebar { padding: 6px 8px; }
  .lp-mock-topbar { display: none; }
  .lp-mock-chart { padding: 8px; }
  .lp-mock-chart svg { height: 40px; }
  .lp-mock-phone-frame { width: 128px; padding: 8px 6px 12px; bottom: -100px; right: 0; }
  .lp-mock-phone { padding: 10px 8px; }
  .lp-mock-phone-header { font-size: 8.5px; margin-bottom: 5px; }
  .lp-mock-phone-row { font-size: 7.5px; padding: 4px 0; gap: 4px; }
  .lp-mock-phone-icon { width: 14px; height: 14px; }
  .lp-mock-phone-icon svg { width: 8px; height: 8px; }
  .lp-mock-phone-cta { font-size: 8px; padding: 5px; }
  .lp-mock-dot { width: 5px; height: 5px; }
  .lp-hero-mockup { margin-bottom: 100px; }
  .lp-brand-tagline { display: none; }
  /* removed mobile override — 3/2 stays consistent at every width, matching AirLord's own approach */
  .lp-bot-slide-caption h3 { font-size: 16px; }
  .lp-hero-stats-row { gap: 28px; }
  .lp-hero-stat-num { font-size: 19px; }
  .lp-cta-inner { flex-direction: column; text-align: center; }
  .lp-cta-actions { justify-content: center; width: 100%; }
  .lp-cta-actions a { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
  .lp-bots-grid { grid-template-columns: 1fr; }
  .lp-stats-grid { grid-template-columns: 1fr; }
  .lp-hero-grid { grid-template-columns: 1fr 0.85fr; gap: 10px; }
  .lp-hero-copy .lp-hero-actions { flex-direction: column; align-items: stretch; }
  .lp-hero-copy .lp-hero-btn, .lp-hero-copy .lp-hero-secondary-btn { text-align: center; width: 100%; box-sizing: border-box; padding: 12px 10px; font-size: 13px; }
  .lp-hero-note-row { display: none; }
  .lp-mock-phone-frame { width: 112px; padding: 6px 5px 10px; bottom: -60px; right: -4px; }
  .lp-mock-phone { padding: 8px 7px; }
  .lp-mock-phone-header { font-size: 8px; margin-bottom: 4px; }
  .lp-mock-phone-row { font-size: 7px; padding: 3px 0; gap: 3px; }
  .lp-mock-dot { width: 4px; height: 4px; }
  .lp-mock-stats { grid-template-columns: 1fr; }
  .lp-mock-stat { padding: 6px 8px; display: flex; justify-content: space-between; align-items: center; }
  .lp-mock-stat-label { margin-bottom: 0; }
  .lp-mock-chart { padding: 6px; }
  .lp-mock-chart svg { height: 34px; }
  .lp-hero-mockup { margin-bottom: 60px; }
  .lp-badge { font-size: 10px; padding: 5px 12px; letter-spacing: 0.02em; }
}

.lp-ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.lp-ticker-track { display: inline-flex; animation: lp-scroll 34s linear infinite; }
.lp-tick { display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; border-right: 1px solid var(--border); }
.lp-tick-name { color: var(--muted); }
.lp-tick-change.up { color: var(--up); }
.lp-tick-change.down { color: var(--down); }
@keyframes lp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lp-ticker-track { animation: none; } }

.lp-features { padding: 76px 28px; }
.lp-features-header { max-width: 640px; margin: 0 auto 40px; text-align: left; }
.lp-features-header h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 10px 0 14px; }
.lp-features-divider { width: 52px; height: 3px; background: var(--brand-grad); border-radius: 2px; margin-bottom: 18px; }
.lp-features-header p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.lp-feature-list {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.lp-feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 28px;
  border-bottom: 1px solid var(--border);
}
.lp-feature-row:last-child { border-bottom: none; }
.lp-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.lp-feature-icon svg { width: 19px; height: 19px; display: block; }
.lp-confidence-feature .lp-feature-icon { margin-bottom: 0; flex-shrink: 0; width: auto; height: auto; background: none; box-shadow: none; }
.lp-confidence-feature .lp-feature-icon svg { width: 20px; height: 20px; margin-top: 2px; }
.lp-feature-row h3 { font-size: 15.5px; margin: 0 0 6px; }
.lp-feature-row p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

.lp-steps { padding: 20px 28px 76px; }
.lp-steps h2 { text-align: center; font-size: 26px; margin: 0 0 44px; }
.lp-step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lp-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  margin-bottom: 16px;
}
.lp-step h3 { font-size: 15px; margin: 0 0 8px; }
.lp-step p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

.lp-testimonials { padding: 80px 28px; }
.lp-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 44px; }
.lp-testimonial-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.lp-testimonial-card:hover { border-color: rgba(192,0,26,0.35); background: rgba(192,0,26,0.04); transform: translateY(-3px); }
.lp-testimonial-quote { position: absolute; top: 10px; right: 18px; font-size: 56px; color: rgba(192,0,26,0.08); font-family: Georgia, serif; line-height: 1; }
.lp-testimonial-stars { color: var(--gold); font-size: 14px; letter-spacing: 3px; margin-bottom: 12px; }
.lp-testimonial-text { position: relative; font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.lp-testimonial-name { font-size: 13px; font-weight: 700; color: var(--text); }
.lp-testimonial-meta { font-size: 11px; color: var(--muted-dim); margin-top: 2px; }
.lp-testimonial-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted-dim);
  margin-top: 24px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.lp-faq { padding: 80px 28px; }
.lp-faq-list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.lp-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}
.lp-faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
}
.lp-faq-item[open] summary::after { transform: rotate(45deg); }
.lp-faq-item p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0 0 18px; }

.lp-trust { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 60px 28px; }
.lp-trust-inner { max-width: 620px; text-align: center; }
.lp-trust h2 { font-size: 22px; margin: 0 0 14px; }
.lp-trust p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

.lp-cta { padding: 76px 28px; }
.lp-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; text-align: left; }
.lp-cta-inner h2 { margin: 0 0 6px; }
.lp-cta-sub { font-size: 13.5px; color: var(--muted); margin: 0; }
.lp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta h2 { font-size: 26px; margin: 0 0 22px; }

.lp-footer { border-top: 1px solid var(--border); padding: 28px 28px 40px; }
.lp-disclaimer { font-size: 11.5px; color: var(--muted-dim); line-height: 1.6; max-width: 760px; margin: 0 auto; text-align: center; }

/* ---------- Site loader ---------- */

.site-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.site-loader.fade-out { opacity: 0; pointer-events: none; }
.site-loader-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  animation: site-loader-pulse 1.1s ease-in-out infinite;
}
@keyframes site-loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.88); opacity: 0.6; }
}

/* ---------- Telegram popup ---------- */

.activity-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  background: var(--surface);
  border: 1px solid rgba(192,0,26,0.3);
  box-shadow: 0 10px 34px rgba(0,0,0,0.5), 0 0 24px rgba(192,0,26,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.activity-popup.show { transform: translateY(0); opacity: 1; }
.activity-popup-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(192,0,26,0.15);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-popup-icon svg { width: 15px; height: 15px; }
.activity-popup-title { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.activity-popup-detail { font-size: 13px; font-weight: 700; color: var(--text); }
.activity-popup-detail .up { color: var(--brand); }
.activity-popup-time { font-size: 10px; color: var(--muted-dim); flex-shrink: 0; white-space: nowrap; }

@media (max-width: 480px) {
  .activity-popup { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

.telegram-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.telegram-popup-overlay.open { opacity: 1; pointer-events: auto; }

.telegram-popup {
  position: relative;
  width: 360px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 26px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.telegram-popup-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}
.telegram-popup-close svg { width: 14px; height: 14px; }
.telegram-popup-icon { display: flex; justify-content: center; margin-bottom: 14px; }
.telegram-popup h3 { font-size: 18px; margin: 0 0 8px; }
.telegram-popup p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 20px; }
.telegram-popup-btn { display: block; width: 100%; padding: 12px; font-size: 14px; margin-bottom: 10px; }
.telegram-popup-later { background: none; border: none; color: var(--muted-dim); font-size: 12.5px; cursor: pointer; text-decoration: underline; }

/* ================= Responsive ================= */

@media (max-width: 1080px) {
  .grid-2col { grid-template-columns: 1fr 1fr; }
  .grid-2col .panel:nth-child(1) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2col, .grid-2col-wide { grid-template-columns: 1fr; }
  .grid-2col .panel:nth-child(1) { grid-column: auto; }

  .sidebar-toggle { display: flex; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 41;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 20px 0 40px rgba(0,0,0,0.4);
    overflow-y: auto;
    max-height: 100vh;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 39;
  }
  .sidebar-scrim.open { display: block; }
  .main { padding-top: 66px; }
  .top-bar { margin-top: 4px; }
}

@media (max-width: 640px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .top-bar-right { gap: 10px; }
  .top-bar-stat:first-child { display: none; } /* hide server time first, keep balance */
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 14px 14px; }
  .lt-symbol-row { flex-wrap: wrap; }
  .donut-wrap { width: 130px; height: 130px; }
}

@media (max-width: 380px) {
  .top-bar-stat { display: none; } /* on the smallest phones, hide balance from top bar too — it's already in the stat card below */
  .topbar-user .user-meta { display: none; }
}

@media (max-width: 760px) {
  .lp-hero h1 { font-size: 30px; }
  .lp-feature-row { padding: 20px 18px; }
  .lp-step-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lp-feature-row { flex-direction: column; gap: 12px; }
  .lp-nav-inner { padding: 12px 16px; gap: 10px; }
  .lp-nav-cta { padding: 7px 12px; font-size: 12px; }
  .stat-grid { grid-template-columns: 1fr; }
}