:root {
  --bg-0: #080a0f;
  --bg-1: #0f131d;
  --bg-2: #151b28;
  --bg-3: #1c2436;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-0: #f8fafc;
  --text-1: #cbd5e1;
  --text-2: #8b9bb4;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.14);
  --yes: #10b981;
  --yes-soft: rgba(16, 185, 129, 0.14);
  --yes-hover: rgba(16, 185, 129, 0.24);
  --no: #f43f5e;
  --no-soft: rgba(244, 63, 94, 0.14);
  --no-hover: rgba(244, 63, 94, 0.24);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(680px circle at 14% -5%, rgba(245, 158, 11, 0.09), transparent 65%),
    radial-gradient(640px circle at 88% 0%, rgba(6, 182, 212, 0.08), transparent 65%);
}

button, input, select {
  font-family: inherit;
  color: inherit;
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* ─── Topbar ───────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 10, 15, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 16px;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  justify-self: start;
  flex-shrink: 0;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-0);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 4px;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-1);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-tab:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: var(--text-0);
  background: var(--bg-2);
  border-color: var(--border-strong);
}

.nav-tab-admin {
  color: var(--amber);
}
.nav-tab-admin.active {
  background: var(--amber-soft);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.nav-tab-store {
  color: #34d399;
}
.nav-tab-store.active {
  background: var(--yes-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.vip-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(234, 179, 8, 0.14));
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.sponsor-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 12px;
  color: #fde68a;
}

.store-grid,
.store-grid-credits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.store-grid-passes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 960px) {
  .store-grid,
  .store-grid-credits {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 780px) {
  .store-grid-passes {
    grid-template-columns: 1fr;
  }
}

.store-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.5);
}

.store-card.popular-card {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07), var(--bg-1) 48%);
}

.store-price {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-0);
}

.perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-1);
}

.perks-list li::before {
  content: "✓ ";
  color: #34d399;
  font-weight: 800;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .prize-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.prize-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.prize-card .btn-block,
.store-card .btn-block {
  min-height: 44px;
}

.vault-progress-strip {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vault-progress-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.vault-progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  overflow: hidden;
}

.vault-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  transition: width 0.25s ease;
}

.vault-milestones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vault-milestone-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.vault-milestone-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-0);
}

.vault-milestone-chip.unlocked {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.vault-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vault-tier-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vault-tier-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.78;
  margin-left: 4px;
}

.vault-search-wrap {
  flex: 0 1 250px;
  min-width: 200px;
}

.vault-search-input {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--text-0);
}

.vault-search-input:focus {
  outline: none;
  border-color: var(--amber);
}

.prize-option-box {
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prize-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-1);
}

.prize-option-select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
  cursor: pointer;
}

.prize-option-select:focus {
  outline: none;
  border-color: var(--amber);
}

.compliance-banner {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--text-1);
  font-size: 12.5px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 7px;
}

@media (max-width: 1220px) {
  .topbar-inner {
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
  }

  .account-bar {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: wrap;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand-btn {
    justify-self: center;
  }

  .account-bar {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    justify-content: center;
  }

  .main-nav {
    grid-column: 1;
    grid-row: 3;
  }
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  color: #fbbf24;
  white-space: nowrap;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}

.user-chip-name {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ifpa-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.14);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.34);
  white-space: nowrap;
  flex-shrink: 0;
}

.td-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #090b10;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--text-0);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-0);
}

.btn-yes {
  background: var(--yes);
  color: #04130d;
  font-weight: 700;
}
.btn-no {
  background: var(--no);
  color: #fff;
  font-weight: 700;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-block {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  overflow-wrap: break-word;
}

/* ─── Layout Container ─────────────────────────────────────────────────── */

.container {
  position: relative;
  z-index: 1;
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.loading-state {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
}

/* ─── Hero / Markets Lobby ─────────────────────────────────────────────── */

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 20px 24px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(21, 27, 40, 0.92), rgba(15, 19, 29, 0.92));
  border: 1px solid var(--border-strong);
}

.hero-copy h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-copy p {
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.45;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-align: center;
}

.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-0);
}

.hero-stat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-height: 38px;
}

@media (max-width: 1100px) {
  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    justify-content: space-between;
    width: 100%;
  }
}

.lobby-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lobby-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
}

.lobby-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pill-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-0);
}
.filter-pill.active {
  background: var(--text-0);
  color: var(--bg-0);
  border-color: var(--text-0);
}

.tournaments-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 760px) {
  .tournaments-cards {
    grid-template-columns: 1fr;
  }
}

.t-card {
  height: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.t-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.42);
  background: #121724;
}

.t-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

.status-started, .status-in_play {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-started::before, .status-in_play::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-rounds_complete {
  background: var(--amber-soft);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.status-planned, .status-registration_open {
  background: var(--cyan-soft);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.32);
}

.mini-rank-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.status-completed, .status-resolved {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.t-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-0);
}

.t-card-meta {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-contenders {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.mini-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--bg-2);
  overflow: hidden;
}

.mini-row-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.04));
  pointer-events: none;
}

.mini-row-name {
  position: relative;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
}

.mini-row-prob {
  position: relative;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}

.t-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}

/* ─── Side Panels & Tape ───────────────────────────────────────────────── */

.panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tape-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tape-item {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
}

.tape-item-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.side-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.side-yes {
  background: var(--yes-soft);
  color: #34d399;
}

.side-no {
  background: var(--no-soft);
  color: #fb7185;
}

/* ─── Tournament Terminal Detail View ──────────────────────────────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 14px;
}
.back-link:hover {
  color: var(--text-0);
}

.detail-header {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.detail-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
}

.detail-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.detail-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
}

.market-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m-tab {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.m-tab.active {
  background: var(--amber-soft);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

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

/* ─── SVG Probability Chart ────────────────────────────────────────────── */

.chart-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chart-svg-wrap {
  width: 100%;
  height: 195px;
}

/* ─── Outcomes Trading Table ───────────────────────────────────────────── */

.outcomes-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.outcomes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.search-input {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  min-width: 230px;
  color: var(--text-0);
}
.search-input:focus {
  outline: none;
  border-color: var(--amber);
}

.outcome-row {
  display: grid;
  grid-template-columns: 1fr 120px 256px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.outcome-row:last-child {
  border-bottom: none;
}

.outcome-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.outcome-row.selected-row {
  background: rgba(245, 158, 11, 0.07);
}

@media (max-width: 680px) {
  .outcome-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.player-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.player-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-0);
}

.mp-rank-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--cyan-soft);
  color: #22d3ee;
}

.pos-held-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.player-sub {
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.prob-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prob-pct {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
}

.prob-track {
  height: 5px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}

.prob-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 999px;
}

.trade-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-btn {
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.price-btn-yes {
  background: var(--yes-soft);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.price-btn-yes:hover, .price-btn-yes.active {
  background: var(--yes);
  color: #03150e;
}

.price-btn-no {
  background: var(--no-soft);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}
.price-btn-no:hover, .price-btn-no.active {
  background: var(--no);
  color: #fff;
}

/* ─── Sticky Trade Ticket ──────────────────────────────────────────────── */

.sticky-col {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-card {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.ticket-player-hdr {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ticket-mkt-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
}

.ticket-player-name {
  font-size: 17px;
  font-weight: 800;
  margin-top: 2px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-0);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.seg-btn {
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.seg-btn.active {
  background: var(--bg-2);
  color: var(--text-0);
}

.side-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.side-card {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 700;
}

.side-card.active-yes {
  border-color: var(--yes);
  background: var(--yes-soft);
  color: #34d399;
}

.side-card.active-no {
  border-color: var(--no);
  background: var(--no-soft);
  color: #fb7185;
}

.amount-box {
  margin-bottom: 12px;
}

.amount-box-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.amount-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-0);
}
.amount-input:focus {
  outline: none;
  border-color: var(--amber);
}

.quick-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.q-chip {
  flex: 1;
  padding: 5px 0;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.q-chip:hover {
  background: var(--bg-3);
}

.quote-summary {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.q-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  color: var(--text-1);
}

.q-line strong {
  font-family: var(--font-mono);
  color: var(--text-0);
  text-align: right;
}

.profit-highlight {
  color: #34d399 !important;
}

/* ─── Tables (Standings, Portfolio, Leaderboard, Admin) ────────────────── */

.data-table-wrap {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  align-items: stretch;
}

.kpi-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1260px) {
  .kpi-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .kpi-grid-6,
  .kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  margin-bottom: 4px;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
}

.pos-pnl { color: #34d399; }
.neg-pnl { color: #fb7185; }

/* ─── Admin Console ────────────────────────────────────────────────────── */

.admin-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}

.admin-grid-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .admin-grid,
  .admin-grid-equal {
    grid-template-columns: 1fr;
  }
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-1);
}

.field input, .field select, .field textarea {
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-0);
}
.field textarea {
  resize: vertical;
  line-height: 1.45;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.admin-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

/* ─── Modals & Toasts ──────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.modal-wide {
  max-width: 540px;
}

.stripe-element-shell {
  min-height: 120px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #0b0e15;
  border: 1px solid var(--border-strong);
}

.stripe-powered-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
}

.modal-subtitle {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.icon-close {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
}

.admin-claim-callout {
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 12px;
}

.form-error {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--no-soft);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 12.5px;
}

.resolve-list {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--bg-0);
}

.resolve-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  animation: slideUp 0.18s ease;
}

.toast-success { border-left: 4px solid var(--yes); }
.toast-error { border-left: 4px solid var(--no); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Unclosed Tournament Safeguard & Lifecycle Banners ─────────────────── */

.lifecycle-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: var(--text-0);
}

.lifecycle-banner.finals {
  background: rgba(6, 182, 212, 0.09);
  border-color: rgba(6, 182, 212, 0.35);
}

.lifecycle-banner.settled {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.35);
}

.lifecycle-banner.voided {
  background: rgba(244, 63, 94, 0.09);
  border-color: rgba(244, 63, 94, 0.35);
}

.competitor-lock-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #ffe4e6;
}

.competitor-lock-banner.missing-ifpa {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fef3c7;
}

.competitor-lock-banner.eliminated-unlocked {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.38);
  color: #d1fae5;
}

.competitor-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  white-space: nowrap;
}

.competitor-chip.eliminated {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.38);
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  white-space: nowrap;
}

.stale-queue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  background: #f59e0b;
  color: #090b10;
}

/* ─── Social Login Buttons (Google & Apple) ────────────────────────────── */

.social-auth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-social-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #e8eaed;
  color: #0f172a;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.1s ease, box-shadow 0.14s ease;
}

.btn-social-auth:hover:not(:disabled) {
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.btn-social-auth:active:not(:disabled) {
  transform: translateY(1px);
  background: #dce0e6;
}

.btn-social-auth:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.social-auth-icon {
  flex-shrink: 0;
  display: block;
}

.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

/* ─── Help / Beginner's Guide Editorial Layout ─────────────────────────── */

.help-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  justify-content: center;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .help-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

.help-toc {
  position: sticky;
  top: 84px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

@media (max-width: 980px) {
  .help-toc {
    position: static;
  }
}

.help-toc-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 10px;
}

.help-toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-toc-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.help-toc-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-0);
}

.help-article {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.help-hero {
  background: linear-gradient(135deg, rgba(21, 27, 40, 0.96), rgba(15, 19, 29, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.help-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-bottom: 12px;
}

.help-hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.help-hero-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-1);
  max-width: 680px;
}

.help-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .help-kpi-strip {
    grid-template-columns: 1fr;
  }
}

.help-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.help-kpi strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 2px;
}

.help-kpi span {
  font-size: 12px;
  color: var(--text-2);
}

.help-section {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  scroll-margin-top: 86px;
}

.help-section h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text-0);
}

.help-section p {
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-1);
  margin-bottom: 12px;
}

.help-section p:last-child {
  margin-bottom: 0;
}

.help-example-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
}

.help-example-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.help-walkthrough-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .help-walkthrough-steps {
    grid-template-columns: 1fr;
  }
}

.help-walkthrough-box {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.help-walkthrough-box .step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 4px;
}

.help-walkthrough-box h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-0);
}

.help-walkthrough-box p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

.help-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 680px) {
  .help-compare-grid {
    grid-template-columns: 1fr;
  }
}

.help-feature-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}

.help-feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 5px;
}

.help-feature-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

.help-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.help-step-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border);
}

.help-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  background: var(--amber-soft);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.help-step-row h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 3px;
}

.help-step-row p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-1);
  margin: 0;
}

.help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.help-faq-item {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
}

.help-faq-item summary {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-0);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.help-faq-item summary::-webkit-details-marker {
  display: none;
}

.help-faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--amber);
}

.help-faq-item[open] summary::after {
  content: "−";
}

.help-faq-item p {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-1);
}

.help-cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
}
