:root {
  --bg: #f4f6f2;
  --card: #ffffff;
  --ink: #0f1a14;
  --muted: #5d6b63;
  --line: #e2e8e3;
  --brand: #0b3d2e;
  --brand-2: #135c45;
  --accent: #c6f432;
  --accent-ink: #0b3d2e;
  --ok: #16794b;
  --ok-bg: #e3f5eb;
  --warn: #9a6400;
  --warn-bg: #fff3d6;
  --bad: #b42318;
  --bad-bg: #fde8e6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 26, 20, .05), 0 8px 24px rgba(15, 26, 20, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: var(--brand-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.page { min-height: 70vh; padding-bottom: 48px; }
.page-title { margin: 8px 0 18px; }
.section-title { margin: 24px 0 10px; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.eyebrow.dark { color: var(--brand-2); }
.back { display: inline-block; margin: 18px 0 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }

/* top bar */
.topbar { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 30; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: #e6efe9; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { color: #fff; }
.nav .nav-dim { opacity: .7; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; background: var(--brand); color: #fff; font: inherit; font-weight: 700; padding: 11px 18px; border-radius: 12px; text-decoration: none; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.nav .btn-accent { color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-wa { background: #25d366; color: #06371c; }
.btn-danger { background: var(--bad); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 20px; font-size: 16px; }
.btn-block { display: flex; width: 100%; margin-top: 12px; }
.icon-btn { border: 0; background: #f0f3f1; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 14px; flex: none; }
.icon-btn:hover { background: var(--bad-bg); color: var(--bad); }
.linkish { background: none; border: 0; color: var(--brand-2); font: inherit; font-weight: 600; cursor: pointer; padding: 8px; }
.linkish:disabled { color: var(--muted); cursor: default; }

/* forms */
label { display: block; font-weight: 600; font-size: 13px; color: #33423a; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); margin-top: 6px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(19, 92, 69, .12); }
input:disabled { background: #f3f5f3; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; margin: 0; }
.stack > * + * { margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.span-2 { grid-column: span 2; }
.phone-input { display: flex; align-items: stretch; margin-top: 6px; }
.phone-input span { display: flex; align-items: center; padding: 0 12px; background: #eef2ef; border: 1.5px solid var(--line); border-right: 0; border-radius: 11px 0 0 11px; font-weight: 700; }
.phone-input input { margin: 0; border-radius: 0 11px 11px 0; }
.otp-input { text-align: center; font-size: 26px; letter-spacing: .5em; font-weight: 700; padding: 14px; }

/* alerts & badges */
.alert { padding: 12px 14px; border-radius: 12px; margin: 14px 0; font-size: 14px; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: #e8f0fb; color: #1e4f8f; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted { background: #eef1ef; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }

/* cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card.empty { text-align: center; padding: 40px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }

/* hero */
.hero { background: radial-gradient(1000px 400px at 85% -10%, #1f7a5a 0%, transparent 60%), var(--brand); color: #fff; padding: 46px 0 70px; }
.hero h1 { font-size: clamp(30px, 5.5vw, 50px); max-width: 680px; }
.hero-sub { color: #cfe0d6; max-width: 560px; font-size: 16px; }
.search { display: flex; gap: 8px; max-width: 720px; background: #fff; padding: 8px; border-radius: 16px; margin-top: 22px; }
.search input, .search select { margin: 0; border: 0; }
.search select { max-width: 170px; background: #f3f5f3; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: -24px 0 22px; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; background: #fff; box-shadow: var(--shadow); padding: 9px 15px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.chip.is-on { background: var(--accent); color: var(--accent-ink); }

/* venue grid */
.grid-venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.venue-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.venue-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15, 26, 20, .12); }
.venue-cover { position: relative; aspect-ratio: 16/9; background: var(--brand-2); }
.venue-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(90deg, #1b6b4f 0 28px, #186246 28px 56px); }
.cover-ph span { font-size: 54px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
.tag { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .94); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag-inline { position: static; display: inline-block; background: var(--ok-bg); color: var(--ok); margin-bottom: 8px; }
.venue-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.venue-body h3 { margin: 0 0 2px; font-size: 17px; }
.venue-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.venue-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.how-step { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.how-step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); margin-bottom: 10px; }

/* venue page */
.venue-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-bottom: 20px; align-items: start; }
.venue-hero-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--brand-2); }
.venue-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.venue-hero-img .cover-ph span { font-size: 90px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.facts div, .ticket-grid div { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
.facts small, .ticket-grid small { display: block; color: var(--muted); font-size: 12px; }
.rates { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 6px 14px; }
.rate-group + .rate-group { border-top: 1px dashed var(--line); padding-top: 6px; }
.rate-group small { display: block; padding-top: 6px; }
.rate { display: flex; justify-content: space-between; padding: 8px 0; }
.rate + .rate { border-top: 1px solid var(--line); }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.amenities span { background: #f0f4f1; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }

.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.lg-free { border: 1.5px solid var(--line); background: #fff; }
.lg-sel { background: var(--accent); }
.lg-booked { background: #e7ebe8; }
.date-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.date-tab { flex: none; min-width: 84px; text-align: center; padding: 10px 8px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 1px; }
.date-tab span { font-size: 12px; color: var(--muted); font-weight: 600; }
.date-tab strong { font-size: 15px; }
.date-tab em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); }
.date-tab em.none { color: var(--bad); }
.date-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.date-tab.is-on span { color: #cfe0d6; }
.date-tab.is-on em { color: var(--accent); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.slot { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; user-select: none; transition: border-color .12s, background .12s; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot-time { font-weight: 700; font-size: 14px; }
.slot-price { font-size: 13px; color: var(--muted); font-weight: 600; }
label.slot:hover { border-color: var(--brand-2); }
label.slot:has(input:checked) { background: var(--accent); border-color: var(--accent); }
label.slot:has(input:checked) .slot-price { color: var(--accent-ink); }
label.slot:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(19, 92, 69, .25); }
.slot.is-booked, .slot.is-held, .slot.is-blocked { background: #eef1ef; border-color: #eef1ef; cursor: not-allowed; }
.slot.is-booked .slot-time, .slot.is-blocked .slot-time { text-decoration: line-through; color: #8c9891; }
.slot.is-held .slot-price { color: var(--warn); }
.slot.is-past, .slot.is-closed { opacity: .45; cursor: not-allowed; }
.sticky-bar { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--brand); color: #fff; padding: 12px 12px 12px 18px; border-radius: 16px; box-shadow: 0 12px 30px rgba(11, 61, 46, .35); margin-top: 12px; }
.sticky-bar .muted { color: #b8cfc2; }
.sticky-right { display: flex; align-items: center; gap: 14px; }
.sticky-bar .total { font-size: 20px; }

/* checkout & ticket */
.summary-venue { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.summary-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--ok-bg); display: grid; place-items: center; font-size: 24px; }
.summary-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.summary-rows span { color: var(--muted); }
.summary-total { border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 12px !important; font-size: 18px; }
.summary-total span { color: var(--ink) !important; font-weight: 700; }
.roster-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.roster-head h2 { margin: 0; }
.player-row { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr auto; gap: 8px; margin-top: 10px; align-items: center; }
.player-row input { margin: 0; }
.timer { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 12px; text-align: center; margin-bottom: 12px; font-weight: 600; }
.ticket-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ticket-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.ticket-grid div { box-shadow: none; background: #f5f7f5; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { margin: 0; font-size: 13px; }
.meter { height: 8px; background: #edf1ee; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), #7bc043); border-radius: 99px; }
.roster { list-style: none; padding: 0; margin: 8px 0 0; }
.roster li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.roster li:last-child { border-bottom: 0; }
.roster-info { flex: 1; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.add-player { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.add-player h3 { margin: 0; font-size: 14px; }
.add-player .player-row { grid-template-columns: 1.1fr 1fr 1.3fr auto; }

/* auth */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 16px; }

/* account */
.account-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.account-grid aside { position: sticky; top: 80px; margin-top: 70px; }
.list-card { padding: 6px 18px; }
.bk-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bk-item:last-child { border-bottom: 0; }
.bk-date { width: 54px; flex: none; background: var(--brand); color: #fff; border-radius: 12px; text-align: center; padding: 8px 0; line-height: 1.1; height: fit-content; }
.bk-date strong { display: block; font-size: 20px; }
.bk-date span { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.bk-main { flex: 1; min-width: 0; }
.bk-title { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bk-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.footer { background: #fff; border-top: 1px solid var(--line); padding: 22px 0; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 2px 0 0; }

@media (max-width: 820px) {
  .venue-hero { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-grid aside { position: static; margin-top: 0; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .card { padding: 18px 16px; }
  .search { flex-wrap: wrap; }
  .search input { flex: 1 1 100%; }
  .search select { flex: 1; max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .player-row, .add-player .player-row { grid-template-columns: 1fr 1fr auto; }
  .player-row input[type=email] { grid-column: 1 / 3; grid-row: 2; }
  .slot-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .legend { display: none; }
  .nav { gap: 12px; }
  .nav .nav-dim { display: none; }
  .sticky-bar { bottom: 8px; }
}
.ticket { margin-top: 18px; }
