/* ─── RESET & VARIABLES ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white:  #ffffff;
  --bg:     #f8fafc;
  --bg2:    #f1f5f9;
  --border: #e2e8f0;
  --bord2:  #cbd5e1;
  --text:   #0f172a;
  --muted:  #64748b;
  --light:  #94a3b8;
  --green:  #16a34a;
  --greenl: #dcfce7;
  --red:    #dc2626;
  --redl:   #fee2e2;
  --amber:  #d97706;
  --amberl: #fef3c7;
  --r:      14px;
  --rsm:    10px;
  --sh:     0 2px 12px rgba(0,0,0,.08), 0 4px 24px rgba(0,0,0,.06);
  --shlg:   0 8px 40px rgba(0,0,0,.14);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); min-height: 100vh; }
a { text-decoration: none; color: inherit; }
input, button, select { font-family: inherit; }

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 15px; }
.brand-city { font-size: 11px; color: var(--muted); }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 5px 12px; transition: all .15s; white-space: nowrap; background: none; cursor: pointer;
}
.nav-link:hover { color: var(--text); border-color: var(--bord2); }
.back-btn { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .15s; }
.back-btn:hover { color: var(--text); }
.header-ground-info { flex: 1; text-align: center; font-size: 13px; font-weight: 600; }

/* ─── HOME ───────────────────────────────────────────────── */
.home-main { max-width: 880px; margin: 0 auto; padding: 32px 16px 60px; }
.home-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 8px; }
.home-title { font-size: clamp(24px, 6vw, 40px); font-weight: 800; line-height: 1.1; margin-bottom: 10px; }
.home-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.grounds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 40px; }

.ground-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 24px 20px; cursor: pointer;
  transition: transform .2s, box-shadow .2s; display: block;
  animation: fadeUp .4s ease backwards;
}
.ground-card:active { transform: scale(.97); }
@media (hover: hover) { .ground-card:hover { transform: translateY(-3px); box-shadow: var(--shlg); } }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }

/* ── card-emoji: supports both emoji characters and .png images ── */
.card-emoji {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;        /* clips image to rounded corners */
  flex-shrink: 0;
}

.card-price-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; border: 1.5px solid; white-space: nowrap; }
.card-sport { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; }
.card-name { font-size: 18px; font-weight: 800; margin-bottom: 3px; }
.card-venue { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.card-cta { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.ground-skeleton { background: var(--white); border: 1.5px solid var(--border); border-radius: 18px; height: 200px; animation: pulse 1.5s ease infinite; }
.footer-note { text-align: center; font-size: 12px; color: var(--light); }

/* ─── BOOK PAGE ──────────────────────────────────────────── */
.book-main { padding-bottom: 110px; }
.container { max-width: 900px; margin: 0 auto; padding: 16px 16px 24px; }

.ground-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 16px; margin-bottom: 16px;
  flex-wrap: wrap; gap: 12px;
}
.banner-text { display: flex; align-items: center; gap: 12px; }
.banner-emoji { font-size: 28px; }
.banner-name  { font-size: 18px; font-weight: 800; }
.banner-venue { font-size: 12px; color: var(--muted); margin-top: 2px; }
.banner-price-wrap { display: flex; align-items: center; gap: 10px; }
.banner-price-item { text-align: center; }
.bpi-label  { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.bpi-amount { display: block; font-size: 16px; font-weight: 800; }
.banner-price-divider { width: 1px; height: 28px; background: var(--border); }

/* Date scroll */
.date-scroll-wrap { overflow: hidden; margin-bottom: 10px; }
.date-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.date-scroll::-webkit-scrollbar { display: none; }
.day-pill {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; min-width: 52px;
  border: 1.5px solid var(--border); background: var(--white); transition: all .15s;
}
.day-pill:active { transform: scale(.95); }
.day-pill.active { background: var(--text); border-color: var(--text); color: #fff; }
.day-pill-day  { font-size: 10px; font-weight: 600; text-transform: uppercase; opacity: .7; }
.day-pill-date { font-size: 17px; font-weight: 800; }
.date-full-input {
  border: 1.5px solid var(--border); border-radius: var(--rsm);
  padding: 9px 12px; font-size: 14px; color: var(--text); background: var(--white);
  width: 100%; margin-bottom: 14px;
}
.date-full-input:focus { outline: none; border-color: var(--bord2); }

/* Legend */
.legend-row { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.leg { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.leg::before { content: ''; width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.leg.available::before { background: var(--green); }
.leg.sel::before       { background: var(--text); }
.leg.locked::before    { background: var(--amber); }
.leg.booked::before    { background: var(--red); }

.select-hint { font-size: 12px; color: var(--muted); margin-bottom: 14px; text-align: center; }

/* Slots grid — 2 cols on mobile, 3+ on desktop */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .slots-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .slots-grid { grid-template-columns: repeat(4, 1fr); } }

.slots-loading {
  grid-column: 1/-1; padding: 48px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-size: 14px;
}

/* Slot card */
.slot-card {
  border-radius: 12px; padding: 14px 12px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .15s;
  animation: fadeUp .3s ease backwards;
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.slot-card:active:not(.s-booked):not(.s-locked):not(.s-blocked) { transform: scale(.95); }
.s-available { background: var(--greenl); border-color: #86efac; }
.s-booked    { background: var(--redl);   border-color: #fca5a5; cursor: not-allowed; opacity: .65; }
.s-locked    { background: var(--amberl); border-color: #fcd34d; cursor: not-allowed; }
.s-blocked   { background: var(--bg2);    border-color: var(--border); cursor: not-allowed; opacity: .5; }
.s-selected  { background: #f0fdf4 !important; border-color: var(--text) !important; box-shadow: 0 2px 12px rgba(0,0,0,.1); }

.slot-time   { font-size: 13px; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
.slot-status { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.s-available .slot-time   { color: var(--green); }
.s-booked .slot-time      { color: var(--red); }
.s-locked .slot-time      { color: var(--amber); }
.s-blocked .slot-time     { color: var(--muted); }
.s-selected .slot-time    { color: var(--text) !important; }
.s-available .slot-status { color: #15803d; }
.s-booked .slot-status    { color: #b91c1c; }
.s-locked .slot-status    { color: #92400e; }
.s-selected .slot-status  { color: var(--green) !important; font-weight: 700; }
.slot-timer    { font-size: 10px; color: var(--amber); font-weight: 600; margin-top: 3px; }
.slot-price-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; }

.sel-badge {
  position: absolute; top: 7px; right: 7px;
  width: 18px; height: 18px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ─── CART BAR ───────────────────────────────────────────── */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--text); color: #fff;
  padding: 14px 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  animation: slideUp .25s ease;
}
.cart-bar.hidden { display: none; }
.cart-info { flex: 1; min-width: 0; }
.cart-count { font-size: 14px; font-weight: 700; }
.cart-slots { font-size: 11px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cart-right { flex-shrink: 0; }
.cart-btn {
  background: var(--green); color: #fff;
  border: none; border-radius: 10px;
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity .15s; white-space: nowrap;
}
.cart-btn:active { opacity: .8; transform: scale(.97); }

/* ─── BOTTOM SHEET (shared) ──────────────────────────────── */
.bottom-sheet {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 600px) { .bottom-sheet { align-items: center; } }
.bottom-sheet.hidden { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.sheet-card {
  position: relative; z-index: 1; background: var(--white);
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 16px 20px 36px;
  box-shadow: var(--shlg); animation: sheetUp .28s cubic-bezier(.32,0,.67,0);
}
@media (min-width: 600px) { .sheet-card { border-radius: 20px; } }
@keyframes sheetUp { from { transform: translateY(32px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sheet-drag { width: 36px; height: 4px; background: var(--bord2); border-radius: 2px; margin: 0 auto 16px; }
.sheet-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.sheet-sub   { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* Payment choice cards */
.pay-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (max-width: 380px) { .pay-choice-grid { grid-template-columns: 1fr; } }
.pay-choice-card {
  border: 2px solid var(--border); border-radius: 14px;
  padding: 14px 12px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.pay-choice-card:active { transform: scale(.97); }
.pay-choice-card.pcc-active { border-color: var(--text); box-shadow: 0 0 0 3px rgba(15,23,42,.08); }
.pcc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pcc-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 20px; }
.pcc-pre  { background: #fef3c7; color: var(--amber); }
.pcc-full { background: var(--greenl); color: var(--green); }
.pcc-check { font-size: 13px; font-weight: 800; color: var(--green); }
.pcc-amount { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.pcc-desc { font-size: 11px; color: var(--muted); margin-bottom: 8px; line-height: 1.4; }
.pcc-points { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.pcc-points li { font-size: 11px; color: var(--muted); }
.mt { margin-top: 4px; }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-x {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg2); border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center;
}
.modal-title-row { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.modal-emoji     { font-size: 28px; }
.modal-heading   { font-size: 17px; font-weight: 800; }
.modal-subheading { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Summary chips */
.summary-chips { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.s-chip {
  flex: 1; min-width: 80px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 10px;
}
.s-chip-accent { background: var(--greenl); border-color: #86efac; }
.s-chip-due    { background: var(--amberl); border-color: #fcd34d; }
.s-chip-label  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 2px; }
.s-chip-val    { font-size: 13px; font-weight: 700; }
.s-chip-accent .s-chip-val { color: var(--green); }
.s-chip-due .s-chip-val    { color: var(--amber); }

/* Slot pills */
.modal-slots-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.modal-slots-pills.hidden { display: none; }
.slot-pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; border: 1.5px solid; }

/* Countdown */
.countdown {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--amberl); border: 1.5px solid #fcd34d;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.countdown-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.countdown-sub   { font-size: 11px; color: var(--muted); }
.countdown-ring  { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.countdown-ring svg { width: 100%; height: 100%; }
.countdown-ring span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--amber);
}

/* Book form */
.book-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.field input {
  border: 1.5px solid var(--border); border-radius: var(--rsm);
  padding: 13px 14px; font-size: 16px; /* 16px prevents iOS zoom */
  background: var(--bg); color: var(--text); transition: border-color .15s;
}
.field input:focus { outline: none; border-color: var(--bord2); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.pay-btn {
  width: 100%; padding: 15px; background: var(--text); color: #fff;
  border: none; border-radius: var(--rsm); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .15s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pay-btn:active:not(:disabled) { opacity: .8; transform: scale(.98); }
.pay-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.btn-spin { width: 17px; height: 17px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-spin.hidden { display: none; }
.btn-solid { background: var(--text); color: #fff; padding: 12px 22px; border-radius: var(--rsm); font-size: 14px; font-weight: 700; border: none; cursor: pointer; display: inline-flex; align-items: center; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); border-radius: var(--rsm); padding: 12px 22px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; }
.btn-ghost.small { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: var(--red); color: #fff; border: none; border-radius: var(--rsm); padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ─── SUCCESS PAGE ───────────────────────────────────────── */
.success-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.success-wrap { width: 100%; }
.success-card { max-width: 460px; margin: 0 auto; background: var(--white); border-radius: 22px; padding: 32px 24px; box-shadow: var(--shlg); text-align: center; animation: fadeUp .4s ease; }
.check-wrap { margin-bottom: 20px; }
.check-svg  { width: 68px; height: 68px; margin: 0 auto; display: block; }
.check-circle { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 163; stroke-dashoffset: 163; animation: dash .6s ease forwards; }
.check-tick   { stroke: var(--green); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dash .4s .5s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.success-h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.success-p  { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.sms-notice { display: flex; align-items: center; gap: 10px; background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 10px; padding: 11px 14px; font-size: 13px; color: #15803d; font-weight: 500; margin-bottom: 18px; text-align: left; }
.receipt { background: var(--bg); border-radius: 12px; overflow: hidden; margin-bottom: 22px; text-align: left; }
.receipt-header { background: var(--text); color: #fff; padding: 10px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.receipt-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.receipt-row:last-child { border-bottom: none; }
.receipt-row span { color: var(--muted); }
.receipt-row .pre-tag { background: var(--amberl); color: var(--amber); padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.green { color: var(--green); }
.mono  { font-family: monospace; }
.small { font-size: 11px; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── ADMIN ──────────────────────────────────────────────── */
.admin-body { background: var(--bg); }
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-box { background: var(--white); border-radius: 20px; padding: 36px 24px; width: 100%; max-width: 340px; box-shadow: var(--shlg); text-align: center; }
.login-logo { width: 48px; height: 48px; background: var(--text); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin: 0 auto 18px; }
.login-box h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.login-box > p { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 12px; }
.hint code { background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 20px 16px 60px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r); padding: 18px 14px; text-align: center; }
.stat-val { font-size: 26px; font-weight: 800; }
.stat-key { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); }
.tab { background: none; border: none; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--text); border-bottom-color: var(--text); }
.tab-panel { background: var(--white); border: 1.5px solid var(--border); border-top: none; border-radius: 0 0 var(--r) var(--r); padding: 18px 16px; }
.tab-panel.hidden { display: none; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.panel-header h3 { font-size: 15px; font-weight: 700; }
.filter-select, .filter-input { border: 1.5px solid var(--border); border-radius: var(--rsm); padding: 8px 10px; font-size: 13px; background: var(--bg); color: var(--text); max-width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg); }
.empty { text-align: center; color: var(--muted); padding: 32px; }
.tag-ok   { background: var(--greenl); color: var(--green); padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag-pre  { background: var(--amberl); color: var(--amber); padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.block-card { background: var(--bg); border-radius: 12px; padding: 16px; }
.block-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .block-form { grid-template-columns: repeat(2, 1fr); } }
.block-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 40px;
  font-size: 14px; font-weight: 500; z-index: 9999; box-shadow: var(--shlg);
  white-space: nowrap; animation: toastIn .25s ease; max-width: 90vw;
}
.toast.hidden { display: none; }
.toast.ok  { background: var(--green); }
.toast.err { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ─── UTILS ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ─── BUG FIXES ──────────────────────────────────────────── */

/* Homepage card — new layout */
.card-sport-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: 4px 10px; border-radius: 20px;
}
.card-pricing {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 10px;
  padding: 10px 12px; margin: 12px 0;
}
.card-price-row { flex: 1; text-align: center; }
.price-type { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 2px; }
.price-val  { display: block; font-size: 17px; font-weight: 800; }
.card-price-divider { width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }
.card-cta { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1.5px solid; font-size: 13px; font-weight: 700; }

/* Slot card — inline price, no overlap */
.slot-price-tag  { display: none; }
.slot-price-inline {
  font-size: 10px; font-weight: 700; margin-top: 5px;
  opacity: .85;
}

/* Hot slot tag */
.slot-hot-tag {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  color: #ea580c; background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 20px; padding: 2px 7px;
  margin-bottom: 5px;
}
.footer-note a {
  color: inherit;
  text-decoration: underline;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-note a:hover {
  opacity: 1;
}
