:root {
  --green: #34d399;
  --green-dark: #10b981;
  --green-light: rgba(52, 211, 153, .16);
  --amber: #fbbf24;
  --amber-light: rgba(251, 191, 36, .16);
  --orange: #ff7a1a;
  --orange-dark: #f2600a;
  --orange-light: rgba(255, 122, 26, .16);
  --red: #f87171;
  --red-light: rgba(248, 113, 113, .16);
  --blue: #60a5fa;
  --blue-light: rgba(96, 165, 250, .16);
  --ink: #eef2ff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, .18);
  --bg: #070b16;
  --card: rgba(255, 255, 255, .055);
  --card-strong: rgba(255, 255, 255, .09);
  --radius: 18px;
  --glass-border: rgba(255, 255, 255, .12);
  --glass-blur: saturate(160%) blur(18px);
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* ---------- liquid floating background ---------- */
#liquid {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, #0e1730 0%, #070b16 55%, #05070f 100%);
}
#liquid span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(60px); opacity: .55; mix-blend-mode: screen;
  will-change: transform;
}
#liquid span:nth-child(1) {
  width: 46vmax; height: 46vmax; left: -12vmax; top: -8vmax;
  background: radial-gradient(circle at 30% 30%, #34d399, transparent 65%);
  animation: float1 22s ease-in-out infinite;
}
#liquid span:nth-child(2) {
  width: 40vmax; height: 40vmax; right: -14vmax; top: 6vmax;
  background: radial-gradient(circle at 60% 40%, #6366f1, transparent 65%);
  animation: float2 27s ease-in-out infinite;
}
#liquid span:nth-child(3) {
  width: 38vmax; height: 38vmax; left: 8vmax; bottom: -16vmax;
  background: radial-gradient(circle at 40% 60%, #22d3ee, transparent 65%);
  animation: float3 30s ease-in-out infinite;
}
#liquid span:nth-child(4) {
  width: 34vmax; height: 34vmax; right: 2vmax; bottom: -12vmax;
  background: radial-gradient(circle at 50% 50%, #ff7a1a, transparent 65%);
  animation: float1 25s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vmax, 4vmax) scale(1.12); }
  66% { transform: translate(-4vmax, 7vmax) scale(.92); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7vmax, 6vmax) scale(1.15); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(5vmax, -5vmax) scale(1.1); }
  75% { transform: translate(-6vmax, -2vmax) scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  #liquid span { animation: none !important; }
}

/* top bar */
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 15, 28, .55);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  color: #fff;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 14px;
}
#topbar .brand { font-weight: 700; font-size: 22px; letter-spacing: -.3px; }
#top-user { font-size: 13px; color: var(--muted); font-family: var(--mono); }

/* layout */
#view { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 18px 14px 96px; }
h2 { font-size: 22px; margin: 4px 0 14px; letter-spacing: -.5px; font-weight: 700; }
h3 { font-size: 15px; margin: 18px 0 8px; letter-spacing: -.2px; font-weight: 600; }
.section-note { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* tab bar */
#tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex;
  background: rgba(10, 15, 28, .6);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding-bottom: env(safe-area-inset-bottom);
}
#tabbar button {
  flex: 1; padding: 9px 2px 7px; border: none; background: none;
  font-size: 10.5px; color: var(--muted); cursor: pointer; font-family: var(--sans);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: color .2s;
}
#tabbar button span { font-size: 20px; filter: grayscale(.4); transition: filter .2s, transform .2s; }
#tabbar button.active { color: var(--green); font-weight: 600; }
#tabbar button.active span { filter: none; transform: translateY(-1px); }

/* cards — frosted glass */
.card {
  position: relative;
  background: var(--card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 15px; margin-bottom: 11px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}
/* shredded-glass sheen: faceted diagonal highlight */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 38%),
              linear-gradient(300deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 30%);
}
.card > * { position: relative; }
.card.tappable { cursor: pointer; transition: transform .15s, border-color .2s; }
.card.tappable:active { transform: scale(.99); border-color: rgba(52, 211, 153, .4); }
.date-head {
  font-weight: 700; font-size: 12px; color: var(--muted); font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 8px;
}
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row + .row { margin-top: 8px; }
.grow { flex: 1; min-width: 0; }
.title { font-weight: 600; letter-spacing: -.2px; }
.sub { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* chips */
.chip {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; font-family: var(--mono);
  border: 1px solid transparent;
}
.chip.green { background: var(--green-light); color: var(--green); border-color: rgba(52, 211, 153, .3); }
.chip.amber { background: var(--amber-light); color: var(--amber); border-color: rgba(251, 191, 36, .3); }
.chip.red   { background: var(--red-light); color: var(--red); border-color: rgba(248, 113, 113, .3); }
.chip.blue  { background: var(--blue-light); color: var(--blue); border-color: rgba(96, 165, 250, .3); }
.chip.gray  { background: rgba(148, 163, 184, .14); color: var(--muted); border-color: var(--line); }

/* buttons */
button.btn {
  border: none; border-radius: 12px; padding: 12px 17px; font-size: 15px;
  font-weight: 600; cursor: pointer; font-family: var(--sans);
  background: linear-gradient(135deg, #34d399, #10b981); color: #04120c;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .3);
  transition: transform .12s, box-shadow .2s, opacity .2s;
}
button.btn:active { transform: translateY(1px) scale(.99); }
button.btn.secondary {
  background: var(--card-strong); color: var(--ink); box-shadow: none;
  border: 1px solid var(--glass-border);
}
button.btn.danger {
  background: var(--red-light); color: var(--red); box-shadow: none;
  border: 1px solid rgba(248, 113, 113, .35);
}
button.btn.small { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
button.btn.block { width: 100%; }
button.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btnrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* forms */
label.field { display: block; margin-bottom: 13px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
label.field input, label.field select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 13px;
  border: 1px solid var(--glass-border); border-radius: 12px; font-size: 16px;
  background: rgba(255, 255, 255, .04); color: var(--ink); font-family: var(--sans);
  transition: border-color .2s, background .2s;
}
label.field input:focus, label.field select:focus {
  outline: none; border-color: var(--green); background: rgba(52, 211, 153, .06);
}
label.field select option { background: #0e1730; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* auth screen */
.auth-wrap { position: relative; z-index: 1; max-width: 400px; margin: 9vh auto 0; padding: 0 18px; }
.auth-logo { text-align: center; font-size: 48px; filter: drop-shadow(0 6px 18px rgba(52, 211, 153, .4)); }
.auth-title { text-align: center; font-size: 27px; font-weight: 700; margin: 8px 0 2px; letter-spacing: -.6px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--green); font-weight: 600; cursor: pointer; text-decoration: none; }

/* ---------- marketing landing ---------- */
.landing { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 5vh 18px 96px; }
.landing-hero { text-align: center; margin-bottom: 22px; }
.landing-brand {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  font-size: 18px; letter-spacing: -.2px; color: var(--ink);
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.landing-title {
  font-size: clamp(30px, 8vw, 44px); font-weight: 700; line-height: 1.04;
  letter-spacing: -1px; margin: 18px 0 12px;
}
.landing-title .accent {
  background: linear-gradient(120deg, var(--orange), #ffb066);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-lead { color: var(--muted); font-size: 15.5px; max-width: 30ch; margin: 0 auto 18px; }
.hero-img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--glass-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 122, 26, .08);
  margin-bottom: 20px;
}
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  padding: 7px 13px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.hero-badge b { color: var(--orange); font-weight: 700; }
.landing-cta { display: flex; gap: 10px; justify-content: center; margin: 22px 0 6px; flex-wrap: wrap; }
.landing-cta .btn { min-width: 150px; }
.loc-head { text-align: center; margin: 30px 0 4px; }
.loc-head h3 { font-size: 18px; letter-spacing: -.3px; }
.loc-head p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 460px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.loc-item .pin { font-size: 16px; line-height: 1.3; }
.loc-item .name { font-weight: 600; font-size: 14px; letter-spacing: -.2px; }
.loc-item .addr { color: var(--muted); font-size: 12px; margin-top: 2px; }
.btn.orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #1a0c02; }
.chip.orange { background: var(--orange-light); color: var(--orange); border-color: rgba(255, 122, 26, .3); }

@keyframes pay-confirm-flash {
  0%   { background: rgba(52, 211, 153, .22); }
  70%  { background: rgba(52, 211, 153, .22); }
  100% { background: transparent; }
}
.pay-new { animation: pay-confirm-flash 2.8s ease-out forwards; border-radius: 6px; }

/* tables */
table.league {
  width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
table.league th, table.league td { padding: 11px 8px; text-align: center; font-size: 14px; }
table.league td { font-family: var(--mono); }
table.league th {
  background: rgba(52, 211, 153, .12); color: var(--green); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; font-family: var(--mono);
}
table.league td:nth-child(2), table.league th:nth-child(2) { text-align: left; font-family: var(--sans); }
table.league tbody tr { border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
table.league tbody tr:active { background: rgba(255, 255, 255, .05); }
.rank-1 { font-weight: 700; color: var(--amber); }

/* modal */
#modal-root:empty { display: none; }
.modal-back {
  position: fixed; inset: 0; background: rgba(4, 7, 15, .6); z-index: 40;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: rgba(14, 20, 38, .82);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-bottom: none;
  width: 100%; max-width: 640px; max-height: 88vh;
  border-radius: 24px 24px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px);
  overflow-y: auto; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
}
.modal h2 { display: flex; justify-content: space-between; align-items: center; }
.modal .close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }

/* admin sub tabs */
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.subtabs button {
  border: 1px solid var(--glass-border); background: var(--card); border-radius: 999px;
  padding: 8px 15px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  white-space: nowrap; font-family: var(--sans);
}
.subtabs button.active { background: linear-gradient(135deg, #34d399, #10b981); border-color: transparent; color: #04120c; }

/* notification banner */
#notif-banner {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(135deg, #ff7a1a 0%, #f2600a 100%);
  color: #fff;
  padding: 13px 16px 14px;
  border-bottom: 1px solid rgba(255,122,26,.4);
}
#notif-banner .nb-title { font-size: 15px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 3px; }
#notif-banner .nb-body  { font-size: 13px; opacity: .92; margin-bottom: 11px; line-height: 1.45; }
#notif-banner .nb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#notif-banner .nb-actions button {
  border: none; border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--sans);
}
#notif-banner .nb-pay    { background: #fff; color: #b24300; }
#notif-banner .nb-dismiss { background: rgba(255,255,255,.22); color: #fff; }

/* toast */
#toast {
  position: fixed; bottom: 82px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(14, 20, 38, .92); color: #fff; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 60;
  max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* misc */
.empty { text-align: center; color: var(--muted); padding: 34px 10px; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.stat {
  background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 14px 6px; text-align: center;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.stat .num { font-size: 23px; font-weight: 700; color: var(--green); font-family: var(--mono); }
.stat .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.game-scores { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.game-scores input {
  width: 70px; padding: 10px; border: 1px solid var(--glass-border); border-radius: 10px;
  font-size: 16px; text-align: center; background: rgba(255, 255, 255, .04); color: var(--ink); font-family: var(--mono);
}
.vs { color: var(--muted); font-weight: 700; }
.player-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.player-line:last-child { border-bottom: none; }
.seg { display: flex; border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.seg button { flex: 1; padding: 11px; border: none; background: var(--card); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--sans); }
.seg button.active { background: linear-gradient(135deg, #34d399, #10b981); color: #04120c; }
.seg.league-halls { flex-wrap: wrap; gap: 1px; background: var(--line); }
.seg.league-halls button { flex: 1 0 auto; min-width: 33%; }

/* ---------- dashboard ---------- */
.hero-rank {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .18), rgba(99, 102, 241, .16));
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.hero-rank::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, transparent 40%);
}
.hero-rank .hr-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-family: var(--mono); }
.hero-rank .hr-main { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; position: relative; z-index: 1; }
.hero-rank .hr-num { font-family: var(--mono); font-size: 52px; font-weight: 700; line-height: 1; color: #fff; }
.hero-rank .hr-of { color: var(--muted); font-family: var(--mono); font-size: 15px; }
.hero-rank .hr-sub { color: var(--muted); font-size: 13px; margin-top: 10px; position: relative; z-index: 1; }
.move {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono);
  font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.move.up { background: var(--green-light); color: var(--green); }
.move.down { background: var(--red-light); color: var(--red); }
.move.same { background: rgba(148, 163, 184, .14); color: var(--muted); }
.move.new { background: var(--blue-light); color: var(--blue); }
.dash-book-actions { margin-top: 10px; }

/* ---- Terms link footer on the landing page ---- */
/* ---- Upcoming sessions highlight block ---- */
.sessions-hl {
  margin: 28px 0 10px;
  padding: 22px 20px 18px;
  background: linear-gradient(135deg, rgba(255,122,26,.08) 0%, rgba(0,200,120,.06) 100%);
  border: 1px solid rgba(255,122,26,.22);
  border-radius: var(--radius);
}
.sessions-hl-head { text-align: center; margin-bottom: 16px; }
.sessions-hl-title {
  font-size: 22px; font-weight: 700; letter-spacing: -.4px;
  margin: 0 0 4px;
}
.sessions-hl-sub { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---- Public sessions list ---- */
.pub-session-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.pub-session-card:last-child { margin-bottom: 0; }
.pub-session-info { flex: 1; min-width: 0; }
.pub-session-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.pub-session-meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pub-open { color: var(--green); font-weight: 600; }
.pub-full { color: var(--amber, #f59e0b); font-weight: 600; }
.pub-book-btn { white-space: nowrap; min-width: 96px; }

/* ---- Login secondary block ---- */
.login-secondary {
  margin: 28px 0 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
}
.login-secondary-label {
  font-size: 13px; color: var(--muted); margin: 0 0 12px;
  font-weight: 500; letter-spacing: .1px;
}
.login-secondary-toggle { max-width: 220px; margin: 0 auto; }
#login-form-wrap { text-align: left; margin-top: 18px; }

/* ---- Terms checkbox on registration ---- */
.terms-check-label {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: var(--muted); line-height: 1.45;
  margin: 4px 0 10px; cursor: pointer;
}
.terms-check-label input[type="checkbox"] {
  margin-top: 2px; flex-shrink: 0;
  width: 16px; height: 16px; accent-color: var(--green); cursor: pointer;
}
.terms-inline-link {
  color: var(--green); font-weight: 600; text-decoration: none; cursor: pointer;
}
.terms-inline-link:hover { text-decoration: underline; }

/* ---- PWA install explainer ---- */
.pwa-section {
  margin: 32px 0 8px;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.pwa-heading { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.pwa-sub { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pwa-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .pwa-cards { grid-template-columns: 1fr; } }
.pwa-card {
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) - 2px);
  padding: 14px 16px;
}
.pwa-platform {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; margin-bottom: 10px;
  color: var(--green);
}
.pwa-icon { width: 18px; height: 18px; flex-shrink: 0; }
.pwa-steps {
  margin: 0; padding: 0 0 0 18px;
  font-size: 13px; color: var(--ink); line-height: 1.7;
}
.pwa-steps li { margin-bottom: 2px; }
.pwa-share-icon {
  display: inline-block; transform: rotate(180deg);
  font-style: normal; font-size: 14px;
}

/* ---- Admin Tikkie panel ---- */
.tk-webhook-url {
  display: block; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font-size: 12px;
  word-break: break-all; line-height: 1.6; color: var(--ink);
}
.tk-guide {
  margin: 10px 0 4px 18px; line-height: 2; font-size: 14px; color: var(--ink);
}
.tk-guide li { margin-bottom: 2px; }
.tk-guide code { font-size: 12px; }

.landing-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 34px 0 8px; font-size: 13px; color: var(--muted);
}
.landing-footer a { color: var(--green); cursor: pointer; font-weight: 600; }
.landing-footer a:hover { text-decoration: underline; }

/* ---- Slot quantity picker in the booking modal ---- */
.book-box { display: flex; align-items: stretch; gap: 10px; }
.book-box .btn { flex: 1; }
.qty-field {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); font-family: var(--mono);
}
.qty-field select {
  font-size: 16px; font-weight: 700; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  min-width: 68px; cursor: pointer;
}

/* ---- Player remarks textarea ---- */
textarea.remarks-box {
  display: block; width: 100%; margin-bottom: 10px; padding: 12px 13px;
  border: 1px solid var(--glass-border); border-radius: 12px; font-size: 15px;
  background: rgba(255, 255, 255, .04); color: var(--ink); font-family: var(--sans);
  resize: vertical; min-height: 84px; line-height: 1.5;
  transition: border-color .2s, background .2s;
}
textarea.remarks-box:focus {
  outline: none; border-color: var(--green); background: rgba(52, 211, 153, .06);
}

/* ---- Admin guide ---- */
.card.guide h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.card.guide p { color: var(--ink); font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.card.guide p:last-child { margin-bottom: 0; }
.card.guide ul { margin: 0 0 8px; padding-left: 20px; }
.card.guide li { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.card.guide li b { color: var(--ink); }
.card.guide b { color: var(--ink); }

/* ---- Terms & Conditions page ---- */
.terms { max-width: 620px; margin: 0 auto; padding: 8px 2px 28px; line-height: 1.6; }
.terms h2 { margin-bottom: 2px; }
.terms h3 { margin: 22px 0 6px; font-size: 16px; }
.terms p { color: var(--text); margin: 0 0 8px; }
.terms .sub { color: var(--muted); margin-bottom: 6px; }
