:root {
  --bg: #0f0e12;
  --bg-elevated: #1a181b;
  --bg-card: #242226;
  --bg-hover: #2b2b30;
  --border: #2b2b30;
  --text: #fcfcfe;
  --text-muted: #a7a7b8;
  --text-dim: #818194;
  --purple: #6a46f3;
  --purple-light: #957bff;
  --purple-dark: #4a2fd4;
  --gold: #f9b200;
  --gold-dim: #dbb757;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Lock Screen */
.lock-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  max-width: 340px;
  width: 90%;
}
.lock-card .logo-mark.large {
  width: 108px;
  height: 108px;
  font-size: 48px;
  margin: 0 auto 20px;
  border-radius: 26px;
  box-shadow:
    0 12px 28px rgba(106, 70, 243, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.lock-card h2 { margin-bottom: 8px; }
.lock-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 14px; }
.lock-card input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text);
  font-size: 20px;
  text-align: center;
  letter-spacing: 6px;
  margin-bottom: 16px;
}
.lock-card input:focus { outline: none; border-color: var(--purple); }

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}
.logo-mark {
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, #8b5cf6 0%, #6a46f3 45%, #c325b4 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -1px;
  color: #fff;
  position: relative;
  box-shadow:
    0 8px 20px rgba(106, 70, 243, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 45%);
  pointer-events: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.logo-text .sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.1px;
}

.nav-links { list-style: none; padding: 16px 12px; flex: 1; overflow-y: auto; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s;
  margin-bottom: 3px;
}
.nav-link:hover { background: var(--bg-hover); color: var(--text); }
.nav-link.active {
  background: linear-gradient(126deg, rgba(106,70,243,0.25) 0%, rgba(195,37,180,0.15) 100%);
  color: var(--text);
  border: 1px solid rgba(106,70,243,0.35);
}
.nav-link .icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-link .icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.florida-badge {
  display: inline-block;
  background: rgba(249,178,0,0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.disclaimer-tiny { font-size: 11px; color: var(--text-dim); line-height: 1.4; }

/* Main */
.main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
.topbar h1 { font-size: 20px; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.pl-badge {
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(34,197,94,0.15);
  color: var(--green);
}
.pl-badge.negative {
  background: rgba(239,68,68,0.15);
  color: var(--red);
}
.donate-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(106,70,243,0.25), rgba(195,37,180,0.18));
  border: 1px solid rgba(106,70,243,0.45);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.donate-square:hover {
  background: linear-gradient(145deg, rgba(106,70,243,0.4), rgba(195,37,180,0.28));
  border-color: var(--purple);
  color: #fff;
  transform: translateY(-1px);
}

/* Views */
.view {
  display: none;
  padding: 24px 28px 48px;
  animation: fadeIn 0.2s ease;
}
.view.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.section-header { margin: 28px 0 14px; }
.section-header h3 { font-size: 16px; font-weight: 600; }
.section-header .hint { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* Period tabs */
.period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.period-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.period-btn:hover { border-color: var(--purple); color: var(--text); }
.period-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

/* Overview strip */
.overview-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(106, 70, 243, 0.12) 0%, rgba(195, 37, 180, 0.06) 100%);
  border: 1px solid rgba(106, 70, 243, 0.22);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.overview-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(106, 70, 243, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple-light);
}
.overview-icon svg {
  width: 18px;
  height: 18px;
}
.overview-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.overview-text strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.2px;
}
.overview-text span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.stat-value.large { font-size: 36px; }
.stat-value.positive { color: var(--green); }
.stat-value.negative { color: var(--red); }
.stat-sub { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* Bankroll */
.bankroll-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.bankroll-main { flex: 1; min-width: 200px; }
.bankroll-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}
.mini-stat .label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.mini-stat .val { font-size: 18px; font-weight: 700; }
.mini-stat .val.positive { color: var(--green); }
.mini-stat .val.negative { color: var(--red); }

/* Charts */
.chart-filters {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.chart-filters .form-group {
  min-width: 160px;
}
.chart-filters select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  min-width: 160px;
}
.charts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.chart-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.chart-card.wide { grid-column: 1 / -1; }
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #8b5cf6 100%);
  color: white;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--purple-light); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }
.link-btn {
  background: none;
  border: none;
  color: var(--purple-light);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

/* Forms */
.bet-form, .limits-form { max-width: 900px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
}
.form-actions { display: flex; gap: 12px; margin-top: 8px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-sm);
  width: fit-content;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn.active { background: var(--purple); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Import */
.import-guide {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  max-width: 700px;
}
.import-guide h3 { margin-bottom: 14px; font-size: 17px; }
.import-guide ol { padding-left: 20px; margin-bottom: 14px; }
.import-guide li { margin-bottom: 8px; color: var(--text-muted); }
.import-guide .note {
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(106,70,243,0.1);
  padding: 12px;
  border-radius: 8px;
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin-bottom: 32px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload-zone.dragover {
  border-color: var(--purple);
  background: rgba(106,70,243,0.08);
}
.upload-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.upload-prompt p { color: var(--text-muted); }
.hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.deposit-section { margin-top: 32px; max-width: 700px; }
.deposit-section h3 { margin-bottom: 8px; }
.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.inline-form input,
.inline-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

/* Filters & Table */
.filters-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters-bar input,
.filters-bar select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  min-width: 130px;
}
.filters-bar input { flex: 1; min-width: 160px; }
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bets-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.bets-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.bets-table tr:last-child td { border-bottom: none; }
.bets-table tr:hover td { background: rgba(255,255,255,0.02); }
.pl-pos { color: var(--green); font-weight: 600; }
.pl-neg { color: var(--red); font-weight: 600; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.badge-won { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-lost { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-push { background: rgba(249,178,0,0.15); color: var(--gold); }
.badge-pending { background: rgba(167,167,184,0.15); color: var(--text-muted); }
.badge-cashout { background: rgba(249,115,22,0.15); color: var(--orange); }
.btn-icon {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}
.btn-icon:hover { color: var(--red); }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* What-If */
.whatif-intro {
  margin-bottom: 24px;
  max-width: 640px;
}
.whatif-intro p { color: var(--text-muted); margin-top: 8px; }
.whatif-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  max-width: 900px;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-group input { accent-color: var(--purple); }
.whatif-results { margin-top: 28px; }
.whatif-summary {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  max-width: 700px;
}

/* Limits */
.limits-intro { margin-bottom: 24px; max-width: 600px; }
.limits-intro p { color: var(--text-muted); margin-top: 8px; }
.limits-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.limit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.limit-card h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.limit-card .amount { font-size: 22px; font-weight: 700; }
.limit-card .progress {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}
.limit-card .progress-bar {
  height: 100%;
  background: var(--purple);
  border-radius: 3px;
  transition: width 0.3s;
}
.limit-card.warn .progress-bar { background: var(--orange); }
.limit-card.danger .progress-bar { background: var(--red); }

/* Settings */
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 600px;
  margin-bottom: 20px;
}
.settings-card h3 { margin-bottom: 12px; }
.settings-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.settings-card .btn { margin-right: 10px; margin-bottom: 10px; }
.terms-text p {
  margin-bottom: 14px;
  line-height: 1.55;
  font-size: 13.5px;
}
.terms-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Insights */
.quick-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.insight-card strong { color: var(--text); }
.insight-card.positive { border-left: 3px solid var(--green); }
.insight-card.negative { border-left: 3px solid var(--red); }
.insight-card.neutral { border-left: 3px solid var(--purple); }
.insight-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  background: rgba(106,70,243,0.2);
  color: var(--purple-light);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }

/* Responsive */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
  .charts-row, .analytics-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .bankroll-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .view { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 22px; }
  .stat-value.large { font-size: 28px; }
}


/* Sample data banner */
#sampleBanner {
  background: linear-gradient(90deg, rgba(106,70,243,0.18), rgba(195,37,180,0.12));
  border-bottom: 1px solid rgba(106,70,243,0.35);
  color: var(--text);
  padding: 12px 20px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#sampleBanner strong {
  color: var(--purple-light);
  font-weight: 700;
}
#sampleBanner button {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--purple);
  color: var(--purple-light);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}
#sampleBanner button:hover {
  background: rgba(106,70,243,0.2);
}


/* Subtle donate */
.donate-line {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 8px 0 10px;
}
.donate-line a {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 500;
}
.donate-line a:hover {
  text-decoration: underline;
}

/* Import guide */
.import-guide {
  background: linear-gradient(135deg, rgba(106,70,243,0.1), rgba(195,37,180,0.05));
  border: 1px solid rgba(106,70,243,0.22);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.import-guide-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.import-steps {
  margin: 0 0 10px 18px;
  padding: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.import-steps li { margin-bottom: 4px; }
.import-steps strong { color: var(--text); }
.import-guide-note {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.empty-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sortable headers */
th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
th.sortable:hover {
  color: var(--purple-light);
}
th.sortable::after {
  content: " ↕";
  opacity: 0.35;
  font-size: 10px;
}
th.sortable.sorted-asc::after { content: " ↑"; opacity: 0.9; }
th.sortable.sorted-desc::after { content: " ↓"; opacity: 0.9; }

/* Sample banner stronger CTA */
#sampleBanner {
  background: linear-gradient(90deg, rgba(106,70,243,0.2), rgba(195,37,180,0.12));
  border-bottom: 1px solid rgba(106,70,243,0.4);
}
#sampleBanner button {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
#sampleBanner button:hover {
  background: var(--purple-dark);
}

/* Mobile polish */
@media (max-width: 768px) {
  .overview-strip { padding: 12px 14px; gap: 10px; }
  .overview-text strong { font-size: 13px; }
  .overview-text span { font-size: 12px; }
  .filters-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .filters-bar input,
  .filters-bar select {
    width: 100%;
  }
  .chart-filters {
    flex-direction: column;
  }
  .chart-filters .form-group,
  .chart-filters select {
    width: 100%;
    min-width: 0;
  }
  .bets-table { font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .import-guide { padding: 12px 14px; }
  .donate-line { font-size: 10.5px; }
}

.cross-promo {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--text-dim);
  line-height: 1.4;
}
.cross-promo a {
  color: var(--purple-light);
  font-weight: 500;
}
