:root {
  color-scheme: light;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0b1220;
  color: #f1f5f9;
  --navbar-height: 72px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0b1220;
}

/* Accessibility helper for screen-reader only text */
.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;
}

.league-flag {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  line-height: 1;
}

.league-text { /* fallback styling */
  opacity: 0.85;
}

/* Short code next to flag, hidden on small screens */
.league-short {
  display: none;
  margin-left: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .league-short { display: inline-block; }
}

a {
  color: inherit;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

main {
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

h1,
 h2 {
  margin: 0 0 1rem;
  font-weight: 700;
}

.button {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #0b1220;
  border: none;
  padding: 0.75rem 1.5rem;
  min-height: 44px; /* ensure comfortable mobile tap target */
  line-height: 1;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

/* Countdown (cinematic) */
.countdown {
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(15,23,42,0.6));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
}

/* Jackpot banner shown under the countdown on the homepage */
.jackpot-banner {
  margin: 0.75rem auto 1rem auto;
  padding: 0.6rem 0.8rem;
  max-width: 960px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ffefba 0%, #ffc3a0 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
}
.jackpot-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}
.jackpot-amount {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #5b2e00;
  letter-spacing: 0.6px;
}
.jackpot-sub {
  margin: 0;
  font-size: 0.92rem;
  color: #3a2a1a;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .jackpot-amount { font-size: 1.4rem }
  .jackpot-sub { font-size: 1rem }
}

.countdown-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.countdown-grid {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.cd-unit {
  display: grid;
  place-items: center;
  background: radial-gradient(120px 60px at 50% 0%, rgba(56,189,248,0.18), rgba(56,189,248,0.06));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  width: 78px;
  padding: 0.4rem 0.5rem;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.1) inset;
}

.cd-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
}

.cd-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cd-sep {
  font-size: 1.6rem;
  color: #38bdf8;
  opacity: 0.9;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
}
/* Reserve visible space to avoid layout shifts when table content is injected */
.table-wrapper {
  min-height: 180px; /* room for a small table skeleton to prevent jump */
}

/* Simple skeleton placeholder used while data is loading */
.table-skeleton {
  display: block;
  width: 100%;
  height: 180px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03));
  border-radius: 8px;
  margin: 0.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #e2e8f0;
}

th,
 td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  z-index: 120; /* raise above floating buttons */
}

.navbar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.badge-vip {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.paywall {
  position: relative;
}

.paywall::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0b1220;
  opacity: 0.95;
  pointer-events: none;
}

.paywall-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  z-index: 2;
  color: #f8fafc;
}

.paywall-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.paywall-content p {
/* Keep a stable height for the countdown so it doesn't cause content shifts when it appears */
.countdown {
  min-height: 72px;
}
  font-size: 0.85rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.plan-card {
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Compact variant for plan cards (used in DailyOdds sidebar) */
.plan-card.compact {
  padding: 0.6rem 0.75rem;
  gap: 0.35rem;
  border-radius: 8px;
}
.plan-card.compact strong {
  font-size: 0.96rem;
}
.plan-card.compact p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #cbd5e1);
}
.plan-card.compact .button {
  padding: 0.46rem 0.9rem;
  font-size: 0.82rem;
  min-height: 36px;
}
.plan-card.compact > div {
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.plan-card strong {
  font-size: 1.25rem;
}

.plan-card button {
  margin-top: auto;
}

input,
 select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
}

form {
  display: grid;
  gap: 1rem;
}

.error {
  color: #f87171;
  font-size: 0.9rem;
}

.success {
  color: #34d399;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  /* Mobile gutter variable for consistent horizontal padding */
  :root { --mobile-gutter: 0.5rem; }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Add a small horizontal padding on mobile for comfortable edges */
  main {
    padding: 0 var(--mobile-gutter); /* small horizontal gutter on mobile */
  }

  table {
    font-size: 0.9rem;
    table-layout: auto; /* let columns naturally fill available width */
  }

  /* Wrap long text within cells to avoid horizontal scrolling */
  th, td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Let columns expand to fill width (avoid right gap) */
  /* ID column: just enough room for two digits (<=99) + padding */
  .col-id { width: 2.3rem; min-width: 2.3rem; }
  .col-kickoff { width: auto; }
  /* Constrain home/away a bit to free horizontal space for wider tip pill */
  .col-home { max-width: 7.4rem; }
  .col-away { max-width: 7.4rem; }
  .col-tip { width: auto; }

  /* Reduce padding for the numeric ID column to avoid empty space */
  th.col-id,
  td.col-id {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
  }

  /* Avoid scroll on wrappers when content wraps */
    /* Outer table-wrapper hides overflow for the main stacked blocks, but
      nested item tables need to remain horizontally scrollable. */

  /* Make tables full-bleed edge-to-edge on mobile (match main padding) */
  .table-wrapper {
    margin-left: 0;
    margin-right: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  /* Tighten vertical rhythm for dense mobile view */
  th, td {
    padding: 0.55rem 0.45rem;
    line-height: 1.2;
  }

  /* Hide less critical columns on small screens */
  .col-result {
    display: none;
  }
  .countdown-grid {
    gap: 0.5rem;
  }
  .cd-unit {
    width: 64px;
    padding: 0.35rem 0.4rem;
  }
  .cd-value {
    font-size: 1.4rem;
  }
  .cd-label {
    font-size: 0.65rem;
  }

  /* Compact summary row on mobile */
  .summary-row td { padding-top: 0.15rem; padding-bottom: 0.6rem; }
  .game-summary { padding: 0.45rem 0.55rem; }
  .summary-text { font-size: 0.76rem; }
}

/* Removed old `.daily-results-table` scoped mobile rules — DailyOdds no longer
   uses the stacked table UI; retain generic `.past-results-table` and
   `.table-wrapper` styles used elsewhere. */

@media (max-width: 420px) {
  /* On very small devices, keep essentials only */
  /* Very small devices: keep same tight width */
  .col-id { width: 2.3rem; min-width: 2.3rem; }
  .col-kickoff { /* allow auto width on very small screens */
    width: auto;
  }
  .col-home { max-width: 6.6rem; }
  .col-away { max-width: 6.6rem; }
  th, td { padding: 0.4rem 0.35rem; }
  .summary-text { font-size: 0.72rem; }
  .navbar {
    padding: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* -----------------------------
   Past Results Table Styles (modernized)
   - card-like header
   - subtle shadow and hover
   - row-level win/loss accents
------------------------------ */
.past-results-table {
  width: 100%;
  border-collapse: separate; /* allow header radius on wrapper */
  border-spacing: 0;
  font-size: 0.95rem;
  color: #e6eef6;
}

/* Wrap the table in the existing .table-wrapper which already provides
   background and border - we use rounded corners and overflow hidden
   to produce a modern card effect. */
.table-wrapper > .past-results-table {
  border-radius: 10px;
  overflow: hidden;
}

.past-results-table thead th {
  background: linear-gradient(180deg, rgba(10,14,20,0.95), rgba(15,23,42,0.95));
  color: #e6eef6;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.past-results-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

/* subtle zebra using translucency for contrast without going bright */
.past-results-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.01);
}

/* Row hover to indicate interactivity */
.past-results-table tbody tr {
  transition: background 160ms ease, transform 120ms ease;
}
.past-results-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* Outcome accent — left border + faint colored wash */
.past-results-table tbody tr.result-win td {
  background: linear-gradient(90deg, rgba(16,185,129,0.04), transparent);
  border-left: 4px solid #10b981; /* bright green */
}
.past-results-table tbody tr.result-loss td {
  background: linear-gradient(90deg, rgba(239,68,68,0.04), transparent);
  border-left: 4px solid #ef4444; /* red */
}

/* Compact status cell styling to make badges pop */
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.badge-win {
  background: rgba(16,185,129,0.12);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.18);
}

.badge-loss {
  background: rgba(239,68,68,0.10);
  color: #7f1d1d;
  border: 1px solid rgba(239,68,68,0.18);
}

.badge-neutral {
  background: rgba(226,232,240,0.08);
  color: #cbd5e1;
  border: 1px solid rgba(226,232,240,0.06);
}

/* Small helper to highlight important numeric cells (odds/result) */
.past-results-table td.important,
.past-results-table td.odds {
  font-weight: 700;
  color: #e6fdf3;
}

/* Mobile: keep the same accents but with less padding */
@media (max-width: 640px) {
  .past-results-table thead th {
    padding: 10px 8px;
    font-size: 0.78rem;
  }
  .past-results-table tbody td { padding: 8px 8px; }
  .past-results-table tbody tr.result-win td { border-left-width: 3px; }
  .past-results-table tbody tr.result-loss td { border-left-width: 3px; }
}

/* -----------------------------
   Social Links
------------------------------ */
.social-links {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(148,163,184,0.25);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.social-link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -4px rgba(56,189,248,0.35);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link.facebook:hover { background: #1877F2; }
.social-link.instagram {
  background: linear-gradient(135deg,#405DE6,#5851DB,#833AB4,#C13584,#E1306C,#FD1D1D);
}
.social-link.instagram:hover { filter: brightness(1.15); }
.social-link.x:hover { background: #000; }
.social-link.whatsapp:hover { background: #25D366; }

@media (max-width: 420px) {
  .social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .social-link svg { width: 20px; height: 20px; }
}

/* Past Results mobile adjustments */
@media (max-width: 640px) {
  .past-results-table {
    table-layout: fixed;
    font-size: 0.9rem;
  }
  .past-results-table th,
  .past-results-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  /* Hide non-essential column to fit width: Final Score */
  .past-results-table th:nth-child(5),
  .past-results-table td:nth-child(5) {
    display: none;
  }
}

/* On small screens keep the table horizontal and allow horizontal scroll via .table-wrapper */
@media (max-width: 640px) {
  .past-results-table thead { display: table-header-group; }
  .past-results-table tbody tr { display: table-row; margin-bottom: 0; border: none; }
  .past-results-table tbody tr td { display: table-cell; padding: 0.55rem 0.45rem; border-bottom: 1px solid rgba(148,163,184,0.1); }
  /* When items are shown as nested table, keep tighter spacing */
  .past-results-table .betslip-items-row td { padding: 0; }
  .past-results-table .betslip-items-row table { border-radius: 0; }
}

/* Removed DailyOdds-specific nested table overrides (daily-results-table)
   to keep styles focused and avoid affecting other pages that use
   `.past-results-table`. */

/* Floating Support WhatsApp Button */
.support-floating {
  position: fixed;
  bottom: 0.9rem;
  right: 0.9rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #0b1220;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.85rem;
  min-height: 44px; /* mobile-friendly touch area */
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px -4px rgba(37,211,102,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.support-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px -4px rgba(37,211,102,0.65);
}

.support-floating svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* -----------------------------
   DAILY ODDS BETSLIP LAYOUT FIX
------------------------------ */

/* If using ".daily-results-table" packed layout,
   ensure nested table (items) DOES NOT STACK */
@media (max-width: 640px) {
  .betslip-items-row table {
    display: table !important;
  }
  .betslip-items-row thead {
    display: table-header-group !important;
  }
  .betslip-items-row tr {
    display: table-row !important;
  }
  .betslip-items-row td {
    display: table-cell !important;
  }
}

/* Nested betslip headers: ensure only one nested past-results-table header
   shows on mobile. DailyOdds no longer uses `.daily-results-table`, so we
   scope this behavior to `.betslip-items-row` directly to avoid referencing
   the removed selector. */
@media (max-width: 640px) {
  .betslip-items-row .past-results-table thead { display: none !important; }
  .betslip-items-row:first-of-type .past-results-table thead { display: table-header-group !important; }
}

/* Floating VIP Button */
.vip-floating {
  position: fixed;
  top: auto;
  right: 0.9rem;
  bottom: 3.2rem; /* sit above support button */
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #0b1220;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.85rem;
  min-height: 44px; /* mobile-friendly touch area */
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px -4px rgba(250, 204, 21, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (max-width:640px){
  .vip-floating { bottom: 3.8rem; right: 0.7rem; }
}

.vip-floating:hover { transform: translateY(-2px); }
.vip-floating svg { width: 16px; height: 16px; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.5rem 1rem 2rem;
}
.modal-card { margin-top: var(--navbar-height); }
@media (max-width:640px){
  :root { --navbar-height: 108px; }
  .modal-card { margin-top: var(--navbar-height); }
}

.modal-card {
  width: min(92vw, 420px);
  max-width: 420px;
  background: #0f172a;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 14px;
  padding: 1.25rem;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-close {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 420px) {
  .modal-card {
    width: 92vw;
    max-width: 360px;
    padding: 0.85rem;
    border-radius: 12px;
  }
}

/* Compact variant to reduce scrolling */
.modal-card.modal-compact {
  max-width: 360px;
  padding: 0.85rem 0.9rem 0.9rem;
  gap: 0.55rem;
}
.modal-card.modal-compact .modal-header { margin-bottom: 0.25rem; }
.modal-card.modal-compact h3 { font-size: 1rem; }
.modal-card.modal-compact .vip-plan-fieldset { padding: 0.55rem 0.6rem 0.4rem; }
.modal-card.modal-compact .vip-plan-fieldset label { font-size: 0.7rem; }
.modal-card.modal-compact .vip-plan-fieldset span { line-height: 1; }
.modal-card.modal-compact form { gap: 0.6rem; }
.modal-card.modal-compact .button { padding: 0.55rem 1.1rem; font-size: 0.7rem; }
.modal-card.modal-compact input { padding: 0.55rem 0.6rem; }
.modal-card.modal-compact p, .modal-card.modal-compact .modal-intro { margin: 0; font-size: 0.7rem; line-height: 1.25; }
.modal-card.modal-compact code { font-size: 0.65rem; }

/* Smaller radio size for VIP plan options in modal */
.vip-plan-fieldset input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: #facc15; /* modern browsers */
}

/* Fallback scaling for browsers that ignore width/height on radios */
@supports not (accent-color: #000) {
  .vip-plan-fieldset input[type="radio"] {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* Prediction Stats Banner */
.prediction-stats-banner {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg,#0ea5e9,#6366f1,#8b5cf6,#f472b6,#facc15);
  background-size: 400% 400%;
  animation: psb-shine 6s ease-in-out infinite;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #0f172a;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 6px 22px -6px rgba(99,102,241,0.6);
  position: relative;
}
.prediction-stats-banner .psb-text { background: rgba(255,255,255,0.85); -webkit-background-clip: text; background-clip: text; color: #0f172a; }
@keyframes psb-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (max-width: 640px) {
  .prediction-stats-banner { font-size: 0.75rem; padding: 0.55rem 0.9rem; }
}

/* -----------------------------
   Game Summary Rows (beneath each game)
------------------------------ */
.summary-row td {
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(15,23,42,0.6));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 0.2rem;
  padding-bottom: 0.9rem;
}

.game-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 10px;
  background: radial-gradient(220px 120px at 0% 0%, rgba(14,165,233,0.08), transparent), rgba(15,23,42,0.55);
}

.game-summary.locked {
  background: radial-gradient(220px 120px at 0% 0%, rgba(234,179,8,0.08), transparent), rgba(15,23,42,0.5);
  border-style: dashed;
  border-color: rgba(148,163,184,0.35);
  opacity: 0.95;
}

/* Daily Odds styles removed */

/* DailyOdds page styling */
.daily-odds {
  padding: 0.8rem 0.5rem;
  max-width: none; /* allow full width */
  width: 100%;
  margin: 0 auto 1.25rem;
  line-height: 1.32;
  /* Unified typography for the DailyOdds page */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px; /* base size for consistent scaling */
  color: var(--daily-odds-text, #cbd5e1);
}
/* plain variant: no card background, lighter spacing */
.daily-odds.plain { background: transparent; }
.daily-odds-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem; /* reduced header size for denser layout */
  color: #e6eef6;
}
.daily-odds-lead {
  color: #bfcbd8;
  margin: 0 0 0.25rem;
  line-height: 1.22;
  font-size: 0.85rem; /* denser body */
}
.daily-odds-list { list-style: none; margin: 0; padding: 0; display: block; gap: 0.6rem; }
.daily-odds-list li { padding: 0.25rem 0; border-radius: 4px; background: transparent; border: none; margin-bottom: 0.08rem; }
.daily-odds-item-title { margin: 0 0 0.05rem; font-size: 0.82rem; color: #e6edf3; }
.daily-odds-list p { margin: 0 0 0.2rem 0; color: #bfcbd8; line-height: 1.18; font-size: 0.8rem; }
.daily-odds p,
.daily-odds-list p,
.daily-odds-lead,
.daily-odds-summary {
  text-align: justify; /* stretch sentences end-to-end */
  text-justify: inter-word;
}
.daily-odds-sub { margin-top: 0.45rem; color: #dfeaf5; font-size: 0.88rem; }
.daily-odds-summary { color: #bfcbd8; margin-top: 0.18rem; font-size: 0.8rem; }

/* Scoped adjustments to ensure consistent sizes and rhythm within the DailyOdds page */
.daily-odds h1, .daily-odds h2, .daily-odds h3, .daily-odds h4, .daily-odds h5 {
  font-family: inherit;
  color: #e6eef6;
  margin: 0 0 0.4rem;
}
.daily-odds .daily-odds-title { font-size: 1rem; }
.daily-odds .daily-odds-lead,
.daily-odds p,
.daily-odds-list li,
.dailyodds-delivery,
.daily-odds-plans,
.daily-odds-summary {
  font-size: 0.95rem;
  color: var(--daily-odds-text, #cbd5e1);
  line-height: 1.35;
}

/* Ensure tables inside DailyOdds match page typography and don't look larger */
.daily-odds table,
.daily-odds th,
.daily-odds td {
  font-size: 0.92rem;
  color: inherit;
}

/* Make Vip plan cards slightly denser when shown on the DailyOdds page */
.daily-odds .plan-card { font-size: 0.95rem; }
.daily-odds .plan-card.compact { padding: 0.5rem 0.6rem; }

@media (max-width: 640px) {
  /* Restore conservative, mobile-friendly DailyOdds styles
     - normal readable headline size
     - compact lead and body copy
     - collapsed layout with single column
     - responsive tables and compact plan-cards */
  .daily-odds { padding: 0 var(--mobile-gutter); margin-bottom: 0.6rem; font-size: 0.92rem; line-height: 1.32; }
  .daily-odds-title { font-size: 1rem; line-height: 1.2; margin-top: 0; margin-bottom: 0.2rem; }
  .daily-odds-item-title { font-size: 0.82rem; }

  .daily-odds-lead { font-size: 0.85rem; color: #bfcbd8; margin-bottom: 0.25rem; }
  .daily-odds p,
  .daily-odds-list p,
  .dailyodds-delivery p,
  .daily-odds-list li,
  .daily-odds-summary { font-size: 0.84rem; color: var(--daily-odds-text, #cbd5e1); line-height: 1.3; }

  .daily-odds .plan-card,
  .daily-odds .plan-card.compact { font-size: 0.9rem; padding: 0.5rem; }

  .daily-odds table,
  .daily-odds th,
  .daily-odds td { font-size: 0.9rem; }

  /* Collapse to single column but keep nested tables scrollable */
  .daily-odds-container { grid-template-columns: 1fr; }
  .daily-odds-aside { display: none; }

  /* Small adjustments: tighter padding and consistent spacing */
  .daily-odds .plan-card.compact { padding: 0.45rem 0.55rem; }
  .dailyodds-delivery { margin-top: 0.9rem; }
    /* Prevent horizontal page panning on mobile while preserving nested-table scrolling.
      Use `touch-action: pan-y` and `overscroll-behavior-x: contain` to stop page-level
      horizontal gestures while leaving inner `.table-wrapper` elements scrollable. */
    .daily-odds {
     position: relative;
     max-width: 100vw;
     box-sizing: border-box;
     overflow-x: visible; /* allow visible children but prevent page pan via touch-action */
     touch-action: pan-y; /* prefer vertical pan on page, horizontal pans inside nested scrollers */
     overscroll-behavior-x: contain; /* avoid scroll chaining to the viewport */
     /* Symmetric inner padding so content isn't flush to the right edge */
     padding-left: calc(var(--mobile-gutter) + 0.6rem);
     padding-right: calc(var(--mobile-gutter) + 0.6rem);
    }
    .daily-odds .table-wrapper { -webkit-overflow-scrolling: touch; overflow-x: auto; }
    /* Ensure tables inside the DailyOdds section don't force the page wider
      but remain horizontally scrollable within their wrapper. */
    .daily-odds .past-results-table { min-width: 0; width: 100%; table-layout: auto; }
    /* Protect against wide media or long unbroken strings */
    .daily-odds img,
    .daily-odds video,
    .daily-odds iframe { max-width: 100%; height: auto; display: block; }
}

/* Layout: three-column container with sidebars on desktop */
.daily-odds-container {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr minmax(160px, 200px);
  gap: 0.4rem;
  align-items: start;
}
/* Mobile typography & vertical rhythm: match homepage spacing and font rhythm
   This overrides previous DailyOdds mobile tweaks to ensure the section
   uses the same vertical padding, font-size and letter-spacing as the homepage. */
@media (max-width: 640px) {
  .daily-odds {
    padding-top: 1.5rem; /* match homepage top spacing */
    padding-bottom: 1.25rem; /* match homepage bottom spacing */
    font-size: 0.95rem; /* unify base font-size */
    line-height: 1.28; /* consistent reading rhythm */
    letter-spacing: 0.01em;
    font-family: inherit;
  }
  .daily-odds-title { font-size: 1.5rem; line-height: 1.15; margin-top: 0.5rem; margin-bottom: 0.4rem; }
  .daily-odds-lead { font-size: 0.95rem; color: #94a3b8; margin-bottom: 0.5rem; }
  .daily-odds p,
  .daily-odds-list p,
  .dailyodds-delivery p { font-size: 0.95rem; line-height: 1.3; }
  .daily-odds .plan-card,
  .daily-odds .plan-card.compact { font-size: 0.95rem; }
  .daily-odds table, .daily-odds th, .daily-odds td { font-size: 0.92rem; }
}

.daily-odds-aside { display: block; }
.daily-odds-aside .plan-card { background: rgba(15,23,42,0.6); }

/* -----------------------------
   Blog-style content for Admin-managed DailyOdds HTML
   Modern, readable article/card styling for `.dailyodds-content`
------------------------------ */
.dailyodds-content {
  background: linear-gradient(180deg, rgba(15,23,42,0.65), rgba(10,14,20,0.6));
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  color: var(--daily-odds-text, #d9e6f2);
  line-height: 1.6;
  box-shadow: 0 6px 20px -8px rgba(2,6,23,0.6);
  max-width: 920px;
  margin: 0.6rem auto;
}

.dailyodds-content h1,
.dailyodds-content h2,
.dailyodds-content h3 {
  color: #e6eef6;
  margin-top: 0.6rem;
  margin-bottom: 0.45rem;
  line-height: 1.15;
}
.dailyodds-content h1 { font-size: 1.45rem; }
.dailyodds-content h2 { font-size: 1.2rem; }
.dailyodds-content h3 { font-size: 1rem; }

.dailyodds-content p { margin: 0 0 0.9rem 0; color: #cfe3f7; font-size: 0.96rem; }

.dailyodds-content img,
.dailyodds-content figure img { width: 100%; height: auto; display: block; border-radius: 8px; }
.dailyodds-content figure { margin: 0 0 1rem 0; }
.dailyodds-content figcaption { font-size: 0.82rem; color: #9fb2c9; margin-top: 0.35rem; }

.dailyodds-content blockquote {
  margin: 0 0 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid rgba(56,189,248,0.18);
  background: rgba(56,189,248,0.03);
  color: #cfeeff;
  border-radius: 6px;
}

.dailyodds-content pre,
.dailyodds-content code {
  background: rgba(0,0,0,0.25);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  color: #e6f6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace;
  font-size: 0.9rem;
}
.dailyodds-content pre { padding: 0.9rem; overflow: auto; }

.dailyodds-content ul,
.dailyodds-content ol { margin: 0 0 1rem 1.2rem; color: #cfe3f7; }
.dailyodds-content li { margin-bottom: 0.45rem; }

.dailyodds-content hr { border: none; height: 1px; background: linear-gradient(90deg, rgba(148,163,184,0.06), rgba(148,163,184,0.02)); margin: 1rem 0; }

.dailyodds-content a { color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; }

/* Make HTML tables inside the content modern and responsive */
.dailyodds-content .table-wrapper { background: transparent; border: 0; padding: 0; }
.dailyodds-content table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; }
.dailyodds-content th, .dailyodds-content td { padding: 0.6rem 0.75rem; border: 1px solid rgba(148,163,184,0.06); }
.dailyodds-content thead th { background: rgba(255,255,255,0.02); color: #e6eef6; font-weight: 700; }
.dailyodds-content tbody tr:nth-child(even) { background: rgba(255,255,255,0.01); }

/* Post meta (author/date) */
.dailyodds-content .post-meta { color: #9fb2c9; font-size: 0.82rem; margin-bottom: 0.6rem; display: flex; gap: 0.6rem; align-items: center; }

/* Small featured card for short summaries inside the content */
.dailyodds-content .post-card {
  display: block;
  background: linear-gradient(180deg, rgba(15,23,42,0.6), rgba(10,14,20,0.5));
  border: 1px solid rgba(148,163,184,0.06);
  padding: 0.8rem;
  border-radius: 10px;
  margin: 0.6rem 0;
}

@media (max-width: 640px) {
  .dailyodds-content { padding: 1rem; margin: 0.5rem; border-radius: 8px; }
  .dailyodds-content h1 { font-size: 1.15rem; }
  .dailyodds-content p { font-size: 0.94rem; }
}

/* -----------------------------
   Generic ad slot styles
------------------------------ */
.ad-slot { display: block; width: 100%; background: rgba(255,255,255,0.02); border: 1px solid rgba(148,163,184,0.06); border-radius: 8px; overflow: hidden; }
.ad-slot .ad-placeholder { padding: 0.6rem 0.75rem; color: #94a3b8; text-align: center; font-size: 0.9rem; }
.ad-slot.inline-ad { margin: 0.75rem 0 1rem 0; }

/* Mobile banner which sits above the fixed VIP/support buttons */
.ad-slot.mobile-ad-banner { display: none; }
@media (max-width: 640px) {
  /* Only show the mobile banner when the document body has the helper class added by AdSlot */
  body.has-mobile-ad .ad-slot.mobile-ad-banner {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 3.6rem; /* sits above VIP floating button */
    z-index: 140;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 -6px 18px -12px rgba(2,6,23,0.6);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-top: 1px solid rgba(148,163,184,0.06);
    border-bottom: 0;
  }
  /* ensure page main content has bottom padding only when the mobile banner is present */
  body.has-mobile-ad main { padding-bottom: 6.2rem; }
}

/* Mobile edge-to-edge adjustments for DailyOdds: unify spacing, fonts, and run content full-bleed */
@media (max-width: 640px) {
  /* Let the section use full viewport width and the site mobile gutter inside */
  .daily-odds {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    font-size: 0.98rem; /* unified mobile font size */
    line-height: 1.36;
  }

  /* If `.plain` is used, keep a small inner gutter so text doesn't touch screen edges */
  .daily-odds.plain {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Make the admin content card run edge-to-edge visually
     while keeping a small inner padding for readability. Remove rounded corners. */
  .dailyodds-content {
    margin: 0;
    border-radius: 0;
    padding: 0.9rem 0.95rem;
    max-width: 100%;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }

  .dailyodds-content h1, .dailyodds-content h2, .dailyodds-content h3 {
    margin: 0 0 0.45rem 0;
    line-height: 1.12;
  }

  .dailyodds-content p {
    margin: 0 0 0.65rem 0;
    font-size: 0.97rem;
    line-height: 1.38;
  }

  .dailyodds-content img,
  .dailyodds-content figure img { border-radius: 0; }

  /* Ensure nested tables and wrappers don't add extra outer padding */
  .daily-odds .table-wrapper { border-radius: 0; padding: 0; margin: 0; }
  .daily-odds .past-results-table, .dailyodds-content table { width: 100%; min-width: 0; }

  /* Reduce default paragraph spacing slightly for denser mobile layout */
  .daily-odds p, .daily-odds-list p, .dailyodds-delivery p { margin-bottom: 0.6rem; }
}

@media (max-width: 1024px) {
  /* hide sidebars on narrow screens */
  .daily-odds-container { grid-template-columns: 1fr; }
  .daily-odds-aside { display: none; }
}

/* Make the DailyOdds section span the full viewport (edge-to-edge) on desktop
   with minimal side padding while keeping content readable. */
@media (min-width: 1025px) {
  .daily-odds.plain {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* break out of centered container */
    margin-right: -50vw;
    width: 100vw;
    padding-left: 1.5rem; /* match homepage horizontal padding */
    padding-right: 1.5rem;
  }
  .daily-odds-container { gap: 0.5rem; }
  .daily-odds-aside { padding: 0 0.25rem; }
  .daily-odds-container > main { padding: 0 1.5rem; }
}

/* DailyOdds no longer uses the stacked table layout — DailyOdds-specific
   stacking rules have been removed. Nested table scrolling is handled by
   the generic `.table-wrapper` rules. */


/* Mobile: revert modernized table/card stacking to normal table display
   Keep desktop modern styles but restore plain table layout on small screens
   because the stacked/card approach made mobile spacing uneven. */
@media (max-width: 640px) {
  /* Ensure headers are visible and rows render as table rows */
  /* Daily-results (stacked) rules removed — no longer used on DailyOdds */

  /* Revert past-results modern card look to a normal table */
  .past-results-table { border-collapse: collapse !important; border-radius: 0 !important; box-shadow: none !important; }
  .table-wrapper > .past-results-table { border-radius: 0 !important; overflow: visible !important; }
  .past-results-table thead th { background: transparent !important; color: #94a3b8 !important; padding: 0.85rem !important; }
  .past-results-table tbody td { padding: 0.55rem 0.45rem !important; border-bottom: 1px solid rgba(148,163,184,0.08) !important; }

  /* Remove hover/zebra/left-border accents on mobile for simpler, even layout */
  .past-results-table tbody tr { background: transparent !important; }
  .past-results-table tbody tr:hover { background: transparent !important; transform: none !important; }
  .past-results-table tbody tr.result-win td,
  .past-results-table tbody tr.result-loss td {
    background: transparent !important;
    border-left: none !important;
  }

  /* Nested past-results-table inside betslip: keep it simple and non-styled */
}


/* Tip highlight pill */
.tip-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg,#facc15,#fbd34d,#facc15);
  background-size: 240% 240%;
  animation: tip-shimmer 6s ease-in-out infinite;
  color: #1e1b04; /* dark text for contrast */
  padding: 0.32rem 0.78rem; /* slightly wider to support 3 digit tips */
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.035em;
  box-shadow: 0 0 0 1px rgba(250,204,21,0.55), 0 4px 14px -4px rgba(250,204,21,0.55), inset 0 2px 6px rgba(255,255,255,0.25);
  position: relative;
  min-width: 3.4rem; /* ensure space for three characters without squish */
  justify-content: center;
}
/* VIP specific styling: enforce uppercase monospace */
.vip-pill {
  text-transform: uppercase;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.08em;
}
@keyframes tip-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Icon inside tip pill */
.tip-pill .tip-icon {
  display: inline-block;
  margin-right: 0.4rem;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.35));
  font-size: 1.05em;
}
@media (max-width: 640px) {
  .tip-pill .tip-icon { display: none; }
}

/* Compact tip pill adjustments for very small screens */
@media (max-width: 640px) {
  .tip-pill {
    font-size: 0.68rem;
    padding: 0.22rem 0.56rem; /* slight bump for 3-digit tip */
    letter-spacing: 0.02em;
    animation: none; /* disable shimmer on mobile to reduce perceived flicker */
    background: linear-gradient(90deg,#facc15,#facc15); /* solid simplified yellow */
    box-shadow: 0 0 0 1px rgba(250,204,21,0.4), 0 2px 6px -2px rgba(250,204,21,0.45);
    min-width: 3.2rem; /* maintain width even when table compresses */
  }
}
@media (max-width: 420px) {
  .tip-pill {
    font-size: 0.6rem;
    padding: 0.18rem 0.46rem; /* micro screens still allow 3 digits */
    letter-spacing: 0.015em;
    box-shadow: 0 0 0 1px rgba(250,204,21,0.35), 0 1px 4px -1px rgba(250,204,21,0.4);
    min-width: 3.05rem;
  }
  .vip-pill { letter-spacing: 0.06em; }
}

/* Slightly larger pill on desktop */
@media (min-width: 640px) {
  .tip-pill { padding: 0.36rem 0.85rem; font-size: 0.95rem; }
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(14,165,233,0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,0.35);
  flex-shrink: 0;
}

.summary-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .game-summary { padding: 0.55rem 0.65rem; }
  .summary-text { font-size: 0.88rem; }
}

/* Removed legacy vertical-table-on-mobile styles for DailyOdds. */

/* Featured card shared style used on homepage and DailyOdds */
.featured-card {
  border-radius: 10px;
  padding: 1rem;
  background: rgba(6,18,26,0.85);
  border: 1px solid rgba(148,163,184,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.featured-card h2 { margin: 0; font-size: 1.1rem; }
.featured-card p { margin: 0; color: #94a3b8; }

@media (max-width: 640px) {
  .featured-card { padding: 0.9rem; border-radius: 8px; }
  .featured-card h2 { font-size: 1rem; }
}

/* Small CTA wrapper to separate button from copy */
.featured-card-cta { margin-top: 0.5rem; }