/* =========================================================================
   ODDSLENS Design System
   ---------------------------------------------------------------------
   Two-layer token architecture:
     1. Primitives  — raw color ramps. Never referenced by components.
     2. Semantics   — role-based tokens. All components reference these.

   Rule: zero `!important` in this file except the one documented
   accessibility escape hatch below. If a future change needs to override
   something, change the semantic token's value here — never add a second
   :root block or a *third* over the top of that. (The old app had three,
   stacked with !important, and it's why this file exists.)
   ========================================================================= */

:root {
  /* ---- Primitives ---------------------------------------------------- */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  --green-50:  #ecfdf5;
  --green-100: #a7f3d0;
  --green-600: #059669;
  --green-700: #047857;

  --red-50:  #fef2f2;
  --red-100: #fecaca;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --amber-50:  #fffbeb;
  --amber-100: #fde68a;
  --amber-600: #d97706;
  --amber-700: #b45309;

  /* ---- Semantic tokens ------------------------------------------------ */
  --color-bg: var(--slate-50);
  --color-surface: #ffffff;
  --color-surface-muted: var(--slate-100);
  --color-border: var(--slate-200);
  --color-border-strong: var(--slate-300);
  --color-text: var(--slate-900);
  --color-text-muted: var(--slate-500);
  --color-text-subtle: var(--slate-400);

  --color-accent: var(--blue-600);
  --color-accent-hover: var(--blue-700);
  --color-accent-active: var(--blue-800);
  --color-accent-soft-bg: var(--blue-50);
  --color-accent-soft-border: var(--blue-200);
  --color-accent-text: var(--blue-700);

  --color-success: var(--green-600);
  --color-success-hover: var(--green-700);
  --color-success-soft-bg: var(--green-50);
  --color-success-soft-border: var(--green-100);

  --color-danger: var(--red-600);
  --color-danger-hover: var(--red-700);
  --color-danger-soft-bg: var(--red-50);
  --color-danger-soft-border: var(--red-100);

  --color-warning: var(--amber-600);
  --color-warning-hover: var(--amber-700);
  --color-warning-soft-bg: var(--amber-50);
  --color-warning-soft-border: var(--amber-100);

  --color-focus-ring: rgba(37, 99, 235, .35);
  --color-disabled-bg: var(--slate-100);
  --color-disabled-text: var(--slate-400);
  --color-disabled-border: var(--slate-200);

  --color-overlay: rgba(15, 23, 42, .44);

  /* ---- Spacing (4px base) --------------------------------------------- */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ---- Radius ----------------------------------------------------------*/
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* ---- Elevation (soft, no hard drop-shadows) -------------------------- */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, .10);
  --shadow-focus: 0 0 0 4px var(--color-focus-ring);

  /* ---- Typography -------------------------------------------------------*/
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs: .6875rem;
  --text-sm: .8125rem;
  --text-base: .9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;

  --transition-fast: 120ms ease;
  --transition-base: 180ms ease;
}

/* ===========================================================================
   Base / reset
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--color-accent-soft-border); }

.u-visually-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;
}

.u-tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ===========================================================================
   App shell + brand bar
   =========================================================================== */

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.app-content {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

.brand-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.brand-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand-identity { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }

.brand-logo { height: 30px; width: auto; }

.brand-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

/* white-space:nowrap + align-self:flex-start stop this from ever being
   squeezed narrower than its own text by the flex row it sits in --
   brand-copy/brand-identity both use min-width:0 so *they* can shrink,
   but on the gradient-clipped dark-theme variant (landing.css) the
   gradient background paints only within this element's own box, so a
   squeezed box makes the overflowing letters invisible (background-clip:
   text with no fill behind them) rather than merely wrapping. */
.brand-name { font-size: var(--text-md); font-weight: 800; letter-spacing: -.01em; color: var(--color-text); white-space: nowrap; align-self: flex-start; }

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-subtle);
}

.brand-nav { display: flex; align-items: center; gap: var(--space-1); margin-left: var(--space-4); }

.brand-nav-link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.brand-nav-link:hover { background: var(--color-surface-muted); color: var(--color-text); }

.brand-nav-link.is-active { background: var(--color-accent-soft-bg); color: var(--color-accent-text); }

.brand-bar-end { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }

/* ===========================================================================
   Status dot / live indicator
   =========================================================================== */

.status-dot {
  --dot-color: var(--slate-400);
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--dot-color);
  flex: none;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.status-dot.is-live {
  --dot-color: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-soft-bg);
}

.status-dot.is-error {
  --dot-color: var(--color-danger);
  box-shadow: 0 0 0 4px var(--color-danger-soft-bg);
}

.status-dot.is-warning {
  --dot-color: var(--color-warning);
  box-shadow: 0 0 0 4px var(--color-warning-soft-bg);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--color-text-muted);
  flex: none;
}

/* ===========================================================================
   Layout helpers
   =========================================================================== */

.section-space { margin-top: var(--space-8); }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.page-title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.02em; color: var(--color-text); }

.page-subtitle { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }

.grid { display: grid; gap: var(--space-5); }

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

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

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

@media (max-width: 1050px) {
  .grid-2 { grid-template-columns: 1fr; }
  /* Stat-tile grids only (grid-3/grid-4 is never used for wide,
     complex cards -- always short uniform tiles), so 2-up still reads
     fine well before the point a 1-column full collapse is needed. */
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app-content { padding: var(--space-6) var(--space-4) var(--space-12); }
  .brand-bar-inner { padding: var(--space-3) var(--space-4); flex-wrap: wrap; row-gap: var(--space-2); }
  .brand-nav { display: none; }
  /* Tagline + status label text are the two biggest, safest-to-drop
     space hogs in the header row -- without this, squeezing the brand
     name (see .brand-name above) forced the tagline to wrap into 3-4
     cramped lines that visually collided with the status indicator. */
  .brand-tagline { display: none; }
  .status-indicator span:not(.status-dot) { display: none; }
}

/* ===========================================================================
   Card
   =========================================================================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}

.card-interactive { transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base); }

.card-interactive:hover {
  border-color: var(--color-accent-soft-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.card-title { font-size: var(--text-lg); font-weight: 750; color: var(--color-text); letter-spacing: -.01em; }

.card-description { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }

.card-body-flush { margin: calc(var(--space-6) * -1); margin-top: 0; }

/* ---- Stat tile -------------------------------------------------------- */

.stat-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-subtle);
}

.stat-value { font-size: var(--text-3xl); font-weight: 850; color: var(--color-text); line-height: 1.1; }

.stat-delta { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }

.stat-delta.is-positive { color: var(--color-success); }

.stat-delta.is-negative { color: var(--color-danger); }

/* ===========================================================================
   Badge / pill
   =========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-neutral { background: var(--color-surface-muted); border-color: var(--color-border); color: var(--color-text-muted); }

.badge-accent { background: var(--color-accent-soft-bg); border-color: var(--color-accent-soft-border); color: var(--color-accent-text); }

.badge-success { background: var(--color-success-soft-bg); border-color: var(--color-success-soft-border); color: var(--color-success-hover); }

.badge-danger { background: var(--color-danger-soft-bg); border-color: var(--color-danger-soft-border); color: var(--color-danger-hover); }

.badge-warning { background: var(--color-warning-soft-bg); border-color: var(--color-warning-soft-border); color: var(--color-warning-hover); }

/* ===========================================================================
   Table
   =========================================================================== */

.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }

table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }

.data-table thead th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-subtle);
  background: var(--color-surface-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

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

.data-table tbody tr:hover { background: var(--color-accent-soft-bg); }

.data-table .num { text-align: right; }

/* ===========================================================================
   Forms
   =========================================================================== */

.field { display: grid; gap: var(--space-2); }

.field-full { grid-column: 1 / -1; }

.field-label { font-size: var(--text-sm); font-weight: 650; color: var(--color-text); }

.field-help { font-size: var(--text-xs); color: var(--color-text-muted); }

.field-error { font-size: var(--text-xs); color: var(--color-danger); font-weight: 600; }

.input, .select, textarea.input {
  height: 40px;
  width: 100%;
  padding: 0 var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea.input { height: auto; padding: var(--space-3); min-height: 88px; resize: vertical; }

.input::placeholder { color: var(--color-text-subtle); }

.input:hover, .select:hover { border-color: var(--color-text-subtle); }

.input:focus-visible, .select:focus-visible, textarea.input:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-focus);
}

.input:disabled, .select:disabled {
  background: var(--color-disabled-bg);
  color: var(--color-disabled-text);
  border-color: var(--color-disabled-border);
  cursor: not-allowed;
}

.input.has-error, .select.has-error { border-color: var(--color-danger); }

.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--space-3) center; padding-right: var(--space-8); }

.checkbox-row { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--color-accent);
}

/* ---- Toggle switch (instant-action binary state, no Save step) ------- */

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.switch-track {
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  transition: background var(--transition-base);
  position: relative;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.switch input:checked + .switch-track { background: var(--color-success); }

.switch input:checked + .switch-track::after { transform: translateX(18px); }

.switch input:focus-visible + .switch-track { box-shadow: var(--shadow-focus); }

.switch input:disabled + .switch-track { opacity: .5; cursor: not-allowed; }

.switch-label { font-size: var(--text-sm); font-weight: 650; color: var(--color-text); }

.switch-caption { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ===========================================================================
   Buttons
   =========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 650;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.button:active { transform: translateY(1px); }

.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.button-sm { height: 32px; padding: 0 var(--space-4); font-size: var(--text-xs); }

.button-lg { height: 48px; padding: 0 var(--space-6); font-size: var(--text-md); }

.button-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-xs); }

.button-primary:hover:not(:disabled) { background: var(--color-accent-hover); }

.button-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }

.button-secondary:hover:not(:disabled) { background: var(--color-surface-muted); }

.button-ghost { background: transparent; color: var(--color-text-muted); }

.button-ghost:hover:not(:disabled) { background: var(--color-surface-muted); color: var(--color-text); }

.button-danger { background: var(--color-danger); color: #fff; }

.button-danger:hover:not(:disabled) { background: var(--color-danger-hover); }

.button-block { width: 100%; }

.button-group { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ===========================================================================
   Modal
   =========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 100;
}

.modal-overlay.is-open { display: flex; }

.modal-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

/* flex: 1 1 auto -- without this, a flex item's default flex-basis (auto)
   lets it grow to its content's full natural height instead of being
   constrained to the space .modal-panel actually has, so overflow-y:auto
   below never gets a chance to engage and .modal-panel's own
   overflow:hidden clips content instead of scrolling to it. */
.settings-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }

.modal-body { padding: var(--space-6); overflow-y: auto; flex: 1 1 auto; min-height: 0; }

.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  flex: none;
}

.modal-close:hover { background: var(--color-surface-muted); color: var(--color-text); }

/* ===========================================================================
   Alert banner
   =========================================================================== */

.alert {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid;
  font-size: var(--text-sm);
}

.alert-title { font-weight: 700; margin-bottom: 2px; }

.alert-danger { background: var(--color-danger-soft-bg); border-color: var(--color-danger-soft-border); color: var(--color-danger-hover); }

.alert-success { background: var(--color-success-soft-bg); border-color: var(--color-success-soft-border); color: var(--color-success-hover); }

.alert-warning { background: var(--color-warning-soft-bg); border-color: var(--color-warning-soft-border); color: var(--color-warning-hover); }

.alert-accent { background: var(--color-accent-soft-bg); border-color: var(--color-accent-soft-border); color: var(--color-accent-text); }

/* ===========================================================================
   Bet now: split-view modal (shared by the admin dashboard and the
   public index page's live board)
   =========================================================================== */

.bet-now-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.bet-now-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--color-surface-muted);
}

.bet-now-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.bet-now-target {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-accent-soft-bg);
  border: 1px solid var(--color-accent-soft-border);
}

.bet-now-target-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-1) 0;
}

.bet-now-target-row + .bet-now-target-row {
  border-top: 1px solid var(--color-accent-soft-border);
}

.bet-now-target-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.bet-now-target-value {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--color-accent-text);
  text-align: right;
}

.bet-now-target-tip {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-accent-soft-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===========================================================================
   Filter chip / tab
   =========================================================================== */

.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 32px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.chip:hover { background: var(--color-surface-muted); }

.chip.is-selected { background: var(--color-accent-soft-bg); border-color: var(--color-accent-soft-border); color: var(--color-accent-text); }

/* ===========================================================================
   Empty state
   =========================================================================== */

.empty {
  padding: var(--space-8) var(--space-5);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
  text-align: center;
}

.empty-title { margin: 0 0 var(--space-1); font-weight: 700; color: var(--color-text); }

.empty-text { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ===========================================================================
   Misc utilities
   =========================================================================== */

.text-muted { color: var(--color-text-muted); }

.text-subtle { color: var(--color-text-subtle); }

.text-success { color: var(--color-success); }

.text-danger { color: var(--color-danger); }

.text-sm { font-size: var(--text-sm); }

.text-xs { font-size: var(--text-xs); }

.divider { height: 1px; background: var(--color-border); border: none; margin: var(--space-5) 0; }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }

.row { display: flex; align-items: center; gap: var(--space-3); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

.scroll-x { overflow-x: auto; }
