/* ===================================================
   TODAY'S BET — CLEAN, LIGHT, REFINED SPORTS LUXURY UI
   =================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --brand-primary: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-light: #eff6ff;

  --success-green: #059669;
  --success-green-hover: #047857;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;

  --loss-red: #dc2626;
  --loss-light: #fef2f2;
  --loss-border: #fecaca;

  --amber-gold: #d97706;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-hero: 0 10px 25px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 20px 35px -5px rgba(15, 23, 42, 0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= Navbar ================= */
.navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  font-size: 1.6rem;
  background: var(--brand-light);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid #bfdbfe;
}

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

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-stats-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-light);
  border: 1px solid var(--success-border);
  color: var(--success-green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success-green);
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ================= Buttons ================= */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--brand-hover);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-admin {
  background-color: #ffffff;
  color: var(--brand-primary);
  border: 1px solid #bfdbfe;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.btn-admin:hover {
  background-color: var(--brand-light);
}

.btn-success {
  background-color: var(--success-green);
  color: var(--text-inverse);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
}

.btn-success:hover {
  background-color: var(--success-green-hover);
}

.btn-close {
  background: transparent;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.btn-close:hover {
  color: var(--text-primary);
}

/* ================= Main Content Container ================= */
.main-content {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ================= Today's Bet Featured Card ================= */
.pick-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.pick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--success-green));
}

.card-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sport-badge {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.date-badge {
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

.status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.status-badge.pending {
  background: var(--amber-light);
  color: var(--amber-gold);
  border: 1px solid var(--amber-border);
}

.status-badge.won {
  background: var(--success-light);
  color: var(--success-green);
  border: 1px solid var(--success-border);
}

.status-badge.lost {
  background: var(--loss-light);
  color: var(--loss-red);
  border: 1px solid var(--loss-border);
}

.countdown-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.matchup-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* ================= The Pick Highlight Box ================= */
.pick-box {
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.pick-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 0.4rem;
}

.pick-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  background: var(--bg-main);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-value.font-highlight {
  color: var(--success-green);
}

.bookmaker-tag {
  color: var(--brand-primary);
}

/* ================= Market Comparison ================= */
.market-comparison-section {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.comparison-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comparison-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.bookmaker-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.odds-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
}

.odds-pill.best-line {
  border-color: var(--success-green);
  background: var(--success-light);
}

.odds-pill.best-line .pill-odds {
  color: var(--success-green);
  font-weight: 800;
}

.pill-bookie {
  font-weight: 600;
  color: var(--text-secondary);
}

.pill-odds {
  font-weight: 700;
  color: var(--text-primary);
}

.pill-tag {
  background: var(--success-green);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* ================= Analysis Section (Markdown) ================= */
.analysis-section {
  border-top: 1px solid var(--border-light);
  padding-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.analysis-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.markdown-content {
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
}

.markdown-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.markdown-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0 0.4rem;
}

.markdown-content p {
  margin-bottom: 0.85rem;
}

.markdown-content ul, .markdown-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.markdown-content li {
  margin-bottom: 0.4rem;
}

.markdown-content blockquote {
  border-left: 4px solid var(--brand-primary);
  background: #f0fdf4;
  padding: 0.85rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-weight: 500;
  color: #1e293b;
}

.markdown-content hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 1.5rem 0;
}

/* ================= Post-Game Recap ================= */
.recap-section {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.recap-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

/* ================= Transparency Footer ================= */
.transparency-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.check-icon {
  color: var(--success-green);
  font-weight: 800;
}

/* ================= Track Record Bar ================= */
.track-record-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.track-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.track-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.streak-badge {
  background: #ecfdf5;
  color: var(--success-green);
  border: 1px solid var(--success-border);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-box {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.stat-number.stat-green {
  color: var(--success-green);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.recent-form-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  font-size: 0.85rem;
}

.recent-form-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.form-pills {
  display: flex;
  gap: 0.35rem;
}

.form-pill {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
}

.form-pill.w {
  background: var(--success-light);
  color: var(--success-green);
  border: 1px solid var(--success-border);
}

.form-pill.l {
  background: var(--loss-light);
  color: var(--loss-red);
  border: 1px solid var(--loss-border);
}

.form-pill.p {
  background: var(--amber-light);
  color: var(--amber-gold);
  border: 1px solid var(--amber-border);
}

/* ================= Modals ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1.25rem;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.modal-large {
  max-width: 820px;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= Archive Table ================= */
.filter-bar {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.input-select, .input-text, .input-textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.input-select:focus, .input-text:focus, .input-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-light);
}

.archive-list-wrap {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  max-height: 60vh;
}

.table-responsive {
  overflow-x: auto;
}

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

.data-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
}

.data-table tr:hover {
  background-color: #f8fafc;
}

.badge-res {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.badge-res.won {
  background: var(--success-light);
  color: var(--success-green);
}

.badge-res.lost {
  background: var(--loss-light);
  color: var(--loss-red);
}

.badge-res.push {
  background: var(--amber-light);
  color: var(--amber-gold);
}

/* ================= Admin Studio ================= */
.admin-dialog {
  max-height: 92vh;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-icon {
  font-size: 1.5rem;
}

.admin-auth-view {
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
}

.auth-box {
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-icon {
  font-size: 2.5rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
  padding: 0 0.5rem;
}

.full-width {
  width: 100%;
}

.admin-dashboard-view {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.admin-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-tab {
  background: transparent;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.btn-danger-tab {
  margin-left: auto;
  color: var(--loss-red);
}

.btn-danger-tab:hover {
  color: #b91c1c;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row.highlight-row {
  background: var(--brand-light);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #bfdbfe;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.font-bold { font-weight: 700; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
}

/* Settle Bet UI */
.settle-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.active-bet-summary {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.9rem;
}

.outcome-btn-group {
  display: flex;
  gap: 0.75rem;
}

.outcome-choice {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.outcome-choice input {
  margin-right: 0.4rem;
}

.won-choice:has(input:checked) {
  background: var(--success-light);
  border-color: var(--success-green);
  color: var(--success-green);
}

.lost-choice:has(input:checked) {
  background: var(--loss-light);
  border-color: var(--loss-red);
  color: var(--loss-red);
}

.push-choice:has(input:checked) {
  background: var(--amber-light);
  border-color: var(--amber-gold);
  color: var(--amber-gold);
}

/* Offerings List */
.offerings-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offerings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offerings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 55vh;
  overflow-y: auto;
}

.offering-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.offering-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.offering-matchup {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.offering-odds {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

/* ================= Toast Notification ================= */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-modal);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideIn 0.2s ease-out;
}

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

.toast.error {
  border-left: 4px solid var(--loss-red);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ================= Footer ================= */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 2rem 1.25rem;
  margin-top: auto;
  text-align: center;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.footer-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  .pick-card {
    padding: 1.5rem;
  }

  .matchup-title {
    font-size: 1.5rem;
  }

  .pick-value {
    font-size: 1.25rem;
  }

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

  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-stats-pill {
    display: none;
  }
}

/* ================= Combination / Parlay Styles ================= */
.bet-type-badge {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.combo-legs-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.combo-legs-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.combo-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.combo-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--brand-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.combo-legs-list {
  display: flex;
  flex-direction: column;
}

.combo-leg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
  transition: background-color 0.15s;
}

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

.combo-leg-row:hover {
  background-color: #f8fafc;
}

.combo-leg-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 2;
}

.combo-leg-num {
  width: 24px;
  height: 24px;
  background: #e2e8f0;
  color: #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.combo-leg-matchup-wrap {
  display: flex;
  flex-direction: column;
}

.combo-leg-matchup {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.combo-leg-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.combo-leg-mid {
  flex: 2;
}

.combo-leg-pick-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.combo-leg-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.combo-leg-odds-pill {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #f1f5f9;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Format Switcher */
.bet-type-switch-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.type-switch-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.type-btn-group {
  display: flex;
  gap: 0.5rem;
}

.btn-type {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-type.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* Admin Combo Section */
.admin-combo-section {
  background: #f8fafc;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-combo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-legs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-leg-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

.admin-leg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-leg-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.btn-leg-remove {
  background: transparent;
  color: var(--loss-red);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.btn-leg-remove:hover {
  text-decoration: underline;
}

/* ===================================================
   Staking & Bankroll Explanation Banner
   =================================================== */
.staking-info-card {
  max-width: 1100px;
  margin: 1.5rem auto 0 auto;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.staking-info-content {
  flex: 1;
  min-width: 280px;
}

.staking-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.staking-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.staking-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.staking-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.staking-pill-item {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 110px;
}

.staking-pill-item .pill-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.staking-pill-item .pill-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===================================================
   Public History & Transparency Section
   =================================================== */
.public-history-section {
  max-width: 1100px;
  margin: 2rem auto 3rem auto;
  width: 100%;
}

.history-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}

.history-card-header {
  padding: 1.75rem 2rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.history-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.history-pill-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.transparency-pill {
  background: var(--success-light);
  border: 1px solid var(--success-border);
  color: var(--success-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.history-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.history-sub-title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.5;
}

.history-stats-quick {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.quick-pill {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.quick-pill strong {
  color: var(--text-primary);
}

.quick-pill.profit {
  background: var(--success-light);
  border-color: var(--success-border);
  color: var(--success-green);
}

.quick-pill.loss {
  background: var(--loss-light);
  border-color: var(--loss-border);
  color: var(--loss-red);
}

.stock-note {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* History Filters Bar */
.history-filters-bar {
  padding: 1rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.history-filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-filter-item label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.search-grow {
  flex: 1;
  min-width: 200px;
}

.history-table-container {
  overflow-x: auto;
  width: 100%;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.history-table th {
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.history-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.history-table tr:hover {
  background: #f8fafc;
}

.cell-date {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.cell-event {
  min-width: 220px;
}

.event-title {
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.event-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.combo-tag {
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.single-tag {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.cell-pick {
  min-width: 180px;
}

.pick-title {
  font-weight: 700;
  color: var(--text-primary);
}

.btn-toggle-legs {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-top: 0.25rem;
  text-decoration: underline;
}

.history-legs-preview {
  margin-top: 0.65rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.history-leg-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.leg-idx {
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.leg-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.leg-matchup {
  font-weight: 700;
  color: var(--text-primary);
}

.leg-sport {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.leg-pick-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--brand-primary);
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.leg-odds {
  font-weight: 700;
  color: var(--text-primary);
}

.leg-bookie {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cell-odds {
  white-space: nowrap;
}

.odds-val {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.odds-american {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.odds-bookie {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cell-units {
  white-space: nowrap;
}

.units-bold {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.stock-mini {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stock-mini.profit {
  color: var(--success-green);
  font-weight: 600;
}

.stock-mini.loss {
  color: var(--loss-red);
  font-weight: 600;
}

.cell-net {
  white-space: nowrap;
}

.profit-val {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--success-green);
}

.loss-val {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--loss-red);
}

.res-score {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

.btn-detail {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-detail:hover {
  background: var(--brand-light);
  border-color: #bfdbfe;
}

/* Settle Summary Bar */
.settle-summary-bar {
  display: flex;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.settle-metric {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.settle-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.settle-val {
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

.text-red {
  color: var(--loss-red) !important;
}

.metric-sub-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

