/* ─────────────────────────────────────────
   Untilt HQ — design tokens & base
   ───────────────────────────────────────── */

:root {
  --bg: #0b0e14;
  --bg-soft: #11151d;
  --bg-card: #161b25;
  --bg-card-hover: #1a212d;
  --border: #232a37;
  --border-strong: #2e3645;
  --text: #e6e9ef;
  --text-soft: #98a0b3;
  --text-mute: #5b6478;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code { font-family: var(--mono); background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.muted { color: var(--text-mute); }
.small { font-size: 13px; }
.win { color: var(--accent); font-weight: 600; }
.loss { color: var(--danger); font-weight: 600; }

/* ─────────────────────────────────────────
   Topbar
   ───────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { color: var(--text); }
.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.brand__hq { color: var(--accent); }
.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topnav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
}
.topnav a:hover { color: var(--text); }
.logout-form { margin: 0; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
}
.link-button:hover { color: var(--text); }

/* ─────────────────────────────────────────
   Buttons
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, transform .12s, border-color .15s;
  font-family: inherit;
}
.btn--primary {
  background: var(--accent);
  color: #07120c;
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #07120c;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-soft);
}
.btn--danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
}
.btn--danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--block { width: 100%; }

/* ─────────────────────────────────────────
   Messages
   ───────────────────────────────────────── */
.messages {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid var(--border);
}
.message--success { background: var(--accent-soft); border-color: rgba(34, 197, 94, 0.35); color: #aaf3c1; }
.message--warning { background: var(--warn-soft); border-color: rgba(245, 158, 11, 0.35); color: #fcd9a1; }
.message--error { background: var(--danger-soft); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }

/* ─────────────────────────────────────────
   Hero / landing
   ───────────────────────────────────────── */
.hero {
  padding: 96px 24px 64px;
  background: radial-gradient(900px 500px at 50% 0%, rgba(34, 197, 94, 0.08), transparent 70%);
}
.hero__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero__kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero__title-accent { color: var(--accent); }
.hero__sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero__sub strong { color: var(--text); }
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 13px;
}

/* ─────────────────────────────────────────
   Sections
   ───────────────────────────────────────── */
.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 40px;
}
.how, .patterns, .cta-bottom, .preview, .testimonials, .landing-faq {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}
.how__inner, .patterns__inner, .cta-bottom__inner,
.preview__inner, .testimonials__inner, .landing-faq__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-sub {
  color: var(--text-soft);
  text-align: center;
  margin: -28px auto 36px;
  max-width: 560px;
}

/* Dashboard preview (faux screenshot) */
.preview__mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.preview__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.preview__stat {
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview__stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.preview__stat-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
}
.preview__stat-value--win { color: var(--accent); }
.preview__stat-hint { font-size: 11px; color: var(--text-mute); }

.preview__insights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview__insight {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.preview__insight strong { display: block; margin-bottom: 4px; font-size: 14px; }
.preview__insight span { color: var(--text-soft); font-size: 13px; }
.preview__insight--critical { background: var(--danger-soft); border-color: rgba(239,68,68,.35); }
.preview__insight--critical strong { color: #fca5a5; }
.preview__insight--warning { background: var(--warn-soft); border-color: rgba(245,158,11,.3); }
.preview__insight--warning strong { color: #fcd9a1; }
.preview__insight--positive { background: var(--accent-soft); border-color: rgba(34,197,94,.35); }
.preview__insight--positive strong { color: #aaf3c1; }

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.testimonial--placeholder {
  border-style: dashed;
  background: transparent;
}
.testimonial p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  color: var(--text-soft);
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-mute);
  border: 1px solid var(--border);
}
.testimonial__author strong { display: block; font-size: 13px; }
.testimonial__author span { font-size: 12px; color: var(--text-mute); }

/* Landing FAQ */
.landing-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.landing-faq__card {
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.landing-faq__card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.landing-faq__card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .preview__stats { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .landing-faq__grid { grid-template-columns: 1fr; }
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how__card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .15s, transform .12s;
}
.how__card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.how__icon { font-size: 28px; margin-bottom: 12px; }
.how__card h3 { margin: 0 0 10px; font-size: 18px; }
.how__card p { color: var(--text-soft); margin: 0; }

.patterns__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.patterns__list li {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
}
.patterns__list strong { color: var(--text); display: block; margin-bottom: 4px; }

.cta-bottom__inner { text-align: center; }
.cta-bottom h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-bottom p { color: var(--text-soft); margin: 0 0 28px; }

/* ─────────────────────────────────────────
   App pages
   ───────────────────────────────────────── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}
.page--narrow { max-width: 720px; }
.page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.page__title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.page__sub { color: var(--text-soft); margin: 0; }
.page__actions { display: flex; gap: 10px; }

/* ─────────────────────────────────────────
   Stats grid
   ───────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.stat-card__value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-card__value--win { color: var(--accent); }
.stat-card__value--loss { color: var(--danger); }
.stat-card__hint { font-size: 12px; color: var(--text-mute); }

/* ─────────────────────────────────────────
   Panels
   ───────────────────────────────────────── */
.panel {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.panel__head h2 { font-size: 18px; margin: 0; font-weight: 700; }
.panel__hint { font-size: 13px; color: var(--text-mute); }
.panel__link { font-size: 13px; }

.chart-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}

/* ─────────────────────────────────────────
   Insights
   ───────────────────────────────────────── */
.insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.insight {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.insight h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.insight p { margin: 0; color: var(--text-soft); font-size: 14px; }
.insight--warning { background: var(--warn-soft); border-color: rgba(245, 158, 11, 0.3); }
.insight--warning h3 { color: #fcd9a1; }
.insight--critical { background: var(--danger-soft); border-color: rgba(239, 68, 68, 0.35); }
.insight--critical h3 { color: #fca5a5; }
.insight--positive { background: var(--accent-soft); border-color: rgba(34, 197, 94, 0.35); }
.insight--positive h3 { color: #aaf3c1; }
.insight--info { background: var(--info-soft); border-color: rgba(59, 130, 246, 0.3); }
.insight--info h3 { color: #a5c9ff; }

/* ─────────────────────────────────────────
   Trades table
   ───────────────────────────────────────── */
.trades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.trades-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.trades-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.trades-table tbody tr:hover { background: var(--bg-soft); }
.trades-table tbody tr:last-child td { border-bottom: 0; }

/* ─────────────────────────────────────────
   Import form
   ───────────────────────────────────────── */
.import-form {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
}
.file-drop {
  flex: 1;
  min-width: 240px;
  position: relative;
  cursor: pointer;
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.file-drop:hover .file-drop__hint {
  border-color: var(--accent);
  color: var(--accent);
}
.import-help { margin-top: 18px; font-size: 14px; color: var(--text-soft); }
.import-help p { margin: 6px 0; }
.result-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.result-list strong { color: var(--text); font-family: var(--mono); }
.result-errors { margin-top: 14px; font-size: 13px; color: var(--text-soft); }
.result-errors summary { cursor: pointer; color: var(--accent); }
.result-errors ul { margin: 8px 0 0; padding-left: 20px; }

/* ─────────────────────────────────────────
   Filter bar (trades list)
   ───────────────────────────────────────── */
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.filter-field--grow { grid-column: span 2; }
.filter-field > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.filter-field input,
.filter-field select {
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 0;
  width: 100%;
}
.filter-field input:focus,
.filter-field select:focus { border-color: var(--accent); }
.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 1100px) {
  .filter-bar { grid-template-columns: repeat(4, 1fr); }
  .filter-field--grow { grid-column: span 2; }
}
@media (max-width: 700px) {
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-field--grow { grid-column: 1 / -1; }
}

/* ─────────────────────────────────────────
   Onboarding (first-time empty dashboard)
   ───────────────────────────────────────── */
.onboarding {
  margin-top: 24px;
}
.onboarding__hero {
  text-align: center;
  padding: 32px 24px 8px;
}
.onboarding__hero .empty-card__icon { font-size: 48px; margin-bottom: 12px; }
.onboarding__hero h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.onboarding__hero p {
  color: var(--text-soft);
  margin: 0;
}
.onboarding__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.onboarding__card {
  padding: 26px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.onboarding__card--primary {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.onboarding__step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.onboarding__card--primary .onboarding__step {
  background: var(--accent);
  color: #07120c;
}
.onboarding__card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.onboarding__card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

@media (max-width: 900px) {
  .onboarding__grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   Empty state
   ───────────────────────────────────────── */
.empty-card {
  text-align: center;
  padding: 64px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-card__icon { font-size: 48px; margin-bottom: 16px; }
.empty-card h2 { font-size: 24px; margin: 0 0 8px; }
.empty-card p { color: var(--text-soft); margin: 0 0 24px; }
.empty-card__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────
   Auth pages
   ───────────────────────────────────────── */
.auth {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.auth__card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth__title { font-size: 28px; margin: 8px 0 24px; letter-spacing: -0.02em; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.auth-form input {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.auth-form input:focus { border-color: var(--accent); }
.auth__alt {
  text-align: center;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 14px;
}
.form-error {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────
   Trade form
   ───────────────────────────────────────── */
.trade-form { padding: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-optional {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-mute);
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field--wide { grid-column: span 1; }
.form-field--full { grid-column: 1 / -1; }
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  color: #fca5a5;
  font-size: 12px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.row-action {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.65;
  transition: opacity .15s, background .15s;
}
.row-action:hover {
  opacity: 1;
  background: var(--bg-soft);
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   Coach review
   ───────────────────────────────────────── */
.review-card {
  position: relative;
  padding: 36px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}
.review-text {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mute);
}
.review-source { font-family: var(--mono); }
.review-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--info-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-soft);
}
.review-note strong { color: var(--text); }

/* ─────────────────────────────────────────
   Pricing page
   ───────────────────────────────────────── */
.trust-bar {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-mute);
}
.current-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin: 24px auto 28px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.billing-toggle button.is-active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.save-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #07120c;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
.pricing-grid--three {
  grid-template-columns: 1fr 1fr 1fr;
}
.pricing-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.pricing-card--pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 24px 64px rgba(34, 197, 94, 0.08);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #07120c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pricing-card__badge--gold {
  background: linear-gradient(135deg, #f5b942, #e8793a);
  color: #fff;
}
.pricing-card__note {
  font-size: 13px;
  color: var(--text-mute);
  margin: -8px 0 18px;
}
.pricing-card__was {
  font-size: 14px;
  color: var(--text-mute);
  text-decoration: line-through;
  margin-bottom: -4px;
}

.pricing-card--lifetime {
  border-color: rgba(242, 201, 76, 0.5);
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.18), 0 24px 64px rgba(232, 121, 58, 0.08);
}

.lifetime-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-soft);
}
.lifetime-counter__bar {
  flex: 1;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
}
.lifetime-counter__fill {
  height: 100%;
  background: linear-gradient(90deg, #f5b942, #e8793a);
  border-radius: 3px;
}
.lifetime-counter__copy {
  font-weight: 700;
  color: var(--text);
}

.btn--gold {
  background: linear-gradient(135deg, #f5b942, #e8793a);
  color: #fff;
  border: 0;
}
.btn--gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
}

.faq {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq__card {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq__card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.faq__card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}
.pricing-card__head h2 {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 700;
}
.pricing-card__head p { color: var(--text-soft); margin: 0 0 20px; font-size: 14px; }
.pricing-card__price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  font-family: var(--mono);
}
.pricing-card__price span { font-size: 16px; font-weight: 500; margin-left: 6px; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  padding-left: 22px;
  position: relative;
  color: var(--text-soft);
  font-size: 14px;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing-features li strong { color: var(--text); }

@media (max-width: 960px) {
  .pricing-grid--three { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   Footer
   ───────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: 60px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.footer__inner > div { display: flex; flex-direction: column; gap: 4px; }
.footer__meta { color: var(--text-mute); font-size: 12px; }
.footer__nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
}
.footer__nav a:hover { color: var(--text); }

/* ─────────────────────────────────────────
   Responsive
   ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__title { font-size: 44px; }
  .how__grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .patterns__list { grid-template-columns: 1fr; }
  .trades-table { font-size: 13px; }
}
