/* ==========================================================================
   PlayBook – court-side design system
   Court green · scoreboard ink · chalk · signal orange
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../lib/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(../lib/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(../lib/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(../lib/fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url(../lib/fonts/inter-latin-wght-normal.woff2) format("woff2"); }

:root {
  --ink: #0d1b14;
  --ink-2: #1a2c22;
  --chalk: #f1f4ee;
  --paper: #ffffff;
  --court: #0b6e3c;
  --court-deep: #064d29;
  --signal: #ff5a1f;
  --signal-deep: #e2460c;
  --go: #0a8a40;
  --rule: #d3dbd3;
  --muted: #55655b;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;

  --bs-body-bg: var(--chalk);
  --bs-body-color: #15231b;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .94rem;
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--rule);
  --bs-link-color: var(--court);
  --bs-link-color-rgb: 11, 110, 60;
  --bs-link-hover-color: var(--court-deep);
  --bs-link-hover-color-rgb: 6, 77, 41;
  --bs-success: #0e8040;
  --bs-success-rgb: 14, 128, 64;
  --bs-light-rgb: 233, 240, 231;
}

body { background: var(--chalk); padding-bottom: 0; -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- Headlines ---------- */
h1, h2, h3, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  color: var(--ink);
}
h1.h4, .h4 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.page-title { margin-bottom: 1.1rem; }

/* ---------- Navigation ---------- */
.pb-nav { background: var(--ink); border-bottom: 3px solid var(--signal); padding-block: .55rem; }
.pb-nav .navbar-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.75rem; letter-spacing: .02em; padding: 0; }
.pb-nav .navbar-brand svg { width: 32px; height: 32px; }
.pb-nav .nav-link { color: rgba(255, 255, 255, .78); font-weight: 600; padding: .55rem .85rem; border-radius: 999px; }
.pb-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pb-nav .nav-link.active { color: var(--ink); background: #fff; }
.pb-nav .nav-manage { border: 1.5px solid rgba(255, 255, 255, .35); }
.pb-nav .dropdown-menu { border-radius: 14px; padding: .4rem; }
.pb-nav .dropdown-item { border-radius: 8px; }

/* ---------- Hero: a painted court on mown turf ---------- */
.hero { position: relative; overflow: hidden; background: var(--court); color: #fff; padding: 3rem 0 6.5rem; isolation: isolate; }
.hero::before, .auth-visual::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 64px, transparent 64px 128px),
    radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .14), transparent 55%);
}
.hero-title { color: #fff; font-size: clamp(3rem, 8vw, 5.6rem); line-height: .9; margin: 0 0 1rem; max-width: 9ch; }
.hero-sub { font-size: 1.1rem; max-width: 30ch; margin: 0; color: rgba(255, 255, 255, .92); }
.hero-inner { position: relative; z-index: 1; }

.court-lines { position: absolute; z-index: -1; pointer-events: none; }
.hero .court-lines { right: -6%; top: 50%; width: min(880px, 78%); transform: translateY(-50%); }
.auth-visual .court-lines { left: 50%; top: 42%; width: 190%; transform: translate(-50%, -50%) rotate(90deg); opacity: .6; }
.court-lines .cl { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 0; }
.court-lines .net { stroke: rgba(255, 255, 255, .85); stroke-width: 1.3; }
@media (prefers-reduced-motion: no-preference) {
  .court-lines .cl { animation: draw-line 1.5s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * .11s); }
  @keyframes draw-line { from { stroke-dashoffset: 1; } }
}
@media (max-width: 768px) {
  .hero { padding: 2.2rem 0 5.6rem; }
  .hero .court-lines { width: 150%; right: -45%; opacity: .26; }
}

/* ---------- Page body ---------- */
.pb-main { padding: 1.75rem 12px 6.5rem; }
.hero + .pb-main { padding-top: 0; }

/* ---------- Finder card ---------- */
.finder { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: 1.25rem 1.35rem 1.1rem; margin-top: -4rem; margin-bottom: 1.5rem; box-shadow: 0 22px 44px -26px rgba(4, 40, 22, .55); }
.finder .form-label { font-weight: 600; margin-bottom: .3rem; }

.dates { display: flex; gap: .5rem; overflow-x: auto; padding: .9rem .1rem .55rem; margin-top: .35rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.date-chip { flex: 0 0 auto; width: 64px; padding: .5rem 0 .45rem; text-align: center; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 14px; scroll-snap-align: start; transition: border-color .12s, transform .12s; }
.date-chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.date-chip .dow { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); }
.date-chip .num { display: block; font-family: var(--display); font-weight: 800; font-size: 1.85rem; line-height: 1.05; }
.date-chip .mon { display: block; font-size: .7rem; color: var(--muted); }
.date-chip.is-weekend .dow { color: var(--signal-deep); }
.date-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.date-chip.active .dow, .date-chip.active .mon { color: rgba(255, 255, 255, .72); }
.date-chip.active.is-weekend .dow { color: #ffb08f; }

.sport-tabs { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .65rem; border-top: 1px solid var(--rule); margin-top: .4rem; }
.sport-tab { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1.05rem .5rem .65rem; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .12s; }
.sport-tab:hover { border-color: var(--ink); color: var(--ink); }
.sport-tab .sport-ico { width: 28px; height: 28px; color: var(--court); }
.sport-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sport-tab.active .sport-ico { color: #4ee28a; }

/* ---------- Day heading + legend ---------- */
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .35rem; }
.day-title { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0; }
.rate-pill { font-size: .8rem; font-weight: 600; padding: .22rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--court) 16%, white); color: var(--court-deep); }
.rate-pill.weekend { background: #ffe1d3; color: #9a3207; }
.legend-row { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: 1.1rem; font-size: .85rem; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: .45rem; }
.legend .sw { width: 22px; height: 16px; border-radius: 5px; border: 1.5px solid #b8c4ba; background: #fff; display: inline-block; }
.legend .sw.go { background: var(--go); border-color: var(--go); }
.legend .sw.off { border-color: #d6ddd5; background: repeating-linear-gradient(135deg, #eef1ec 0 4px, #e0e5de 4px 8px); }

/* ---------- Ground panels & slot tiles ---------- */
.ground { background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; margin-bottom: 1.1rem; }
.ground-head { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.15rem; background: var(--court-deep); color: #fff; position: relative; }
.ground-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 18px, transparent 18px 30px); }
.ground-head .sport-ico { width: 30px; height: 30px; color: #7ff0ac; flex: none; }
.ground-name { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.55rem; line-height: 1; margin: 0; color: #fff; }
.ground-open { margin-left: auto; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.ground-body { padding: 1.1rem 1.15rem 1.2rem; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.slot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .12rem; padding: .6rem .75rem .6rem; text-align: left; color: var(--ink); background: var(--paper); border: 1.5px solid #b8c4ba; border-radius: 12px; cursor: pointer; transition: transform .12s, background-color .12s, border-color .12s, color .12s, box-shadow .12s; }
.slot .slot-time { font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.05; white-space: nowrap; }
.slot .slot-price { font-size: .78rem; color: var(--muted); }
.slot-free:hover { border-color: var(--go); transform: translateY(-2px); }
.slot.selected { background: var(--go); border-color: var(--go); color: #fff; box-shadow: 0 0 0 3px rgba(10, 138, 64, .28); }
.slot.selected .slot-price { color: rgba(255, 255, 255, .9); }
.slot.selected::after { content: ""; position: absolute; top: 8px; right: 9px; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.slot-off, .slot:disabled { cursor: not-allowed; color: #7d8a81; border-color: #d6ddd5; background: repeating-linear-gradient(135deg, #eef1ec 0 6px, #e1e6df 6px 12px); }
.slot-off .slot-price { font-size: .76rem; font-weight: 500; }

/* ---------- Floating selection bar ---------- */
.selection-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(680px, calc(100% - 24px)); z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .75rem .7rem 1.2rem; background: var(--ink); color: #fff; border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); }
.sel-info { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.sel-total { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2rem; line-height: 1; }
.sel-count { color: rgba(255, 255, 255, .78); font-size: .88rem; }

/* ---------- Venue picker (no location chosen yet) ---------- */
.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.venue { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 18px; padding: 1.1rem 1.2rem; transition: border-color .12s, transform .12s; }
.venue:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.venue-name { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.venue-meta { color: var(--muted); margin: .3rem 0 .8rem; }
.venue-cta { font-weight: 600; color: var(--court); }

/* ---------- Auth pages ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); border: 1px solid var(--rule); border-radius: 26px; overflow: hidden; min-height: 540px; }
.auth-visual { position: relative; isolation: isolate; overflow: hidden; background: var(--court); color: #fff; padding: 2.3rem; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--court-deep) 80%, black) 0%, color-mix(in srgb, var(--court-deep) 55%, transparent) 40%, transparent 72%); }
.auth-title { color: #fff; font-size: clamp(2.6rem, 5vw, 3.9rem); line-height: .92; margin: 0 0 .8rem; }
.auth-sub { margin: 0; max-width: 28ch; color: rgba(255, 255, 255, .92); }
.auth-form { padding: 2.5rem 2.4rem; align-self: center; width: 100%; max-width: 440px; margin-inline: auto; }
@media (max-width: 768px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { min-height: 190px; padding: 1.4rem; }
  .auth-visual .court-lines { width: 150%; top: 30%; transform: translate(-50%, -50%) rotate(0); opacity: .4; }
  .auth-title { font-size: 2.4rem; }
  .auth-form { padding: 1.6rem 1.3rem 1.9rem; }
}

/* ---------- Scoreboard (admin) ---------- */
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: #fff; border-radius: 22px; overflow: hidden; margin-bottom: 1.5rem; }
.sb-cell { padding: 1.25rem 1.4rem 1.1rem; }
.sb-cell + .sb-cell { border-left: 2px dashed rgba(255, 255, 255, .26); }
.sb-num { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: .95; }
.sb-num.hot { color: var(--signal); }
.sb-label { margin-top: .3rem; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.sb-label a { color: #ffb08f; }
@media (max-width: 768px) {
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .sb-cell:nth-child(3) { border-left: 0; }
  .sb-cell:nth-child(n + 3) { border-top: 2px dashed rgba(255, 255, 255, .26); }
}

/* ---------- Buttons ---------- */
.btn { --bs-btn-border-radius: 999px; font-weight: 600; }
.btn-success {
  --bs-btn-color: var(--on-signal, var(--ink)); --bs-btn-bg: var(--signal); --bs-btn-border-color: var(--signal);
  --bs-btn-hover-color: var(--on-signal, var(--ink)); --bs-btn-hover-bg: color-mix(in srgb, var(--signal) 85%, white); --bs-btn-hover-border-color: color-mix(in srgb, var(--signal) 85%, white);
  --bs-btn-active-color: var(--on-signal, var(--ink)); --bs-btn-active-bg: var(--signal-deep); --bs-btn-active-border-color: var(--signal-deep);
  --bs-btn-disabled-color: var(--on-signal, var(--ink)); --bs-btn-disabled-bg: var(--signal); --bs-btn-disabled-border-color: var(--signal);
  --bs-btn-focus-shadow-rgb: 255, 90, 31;
  font-weight: 700;
}
.btn-outline-success {
  --bs-btn-color: var(--court); --bs-btn-border-color: var(--court);
  --bs-btn-hover-bg: var(--court); --bs-btn-hover-border-color: var(--court); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--court-deep); --bs-btn-active-border-color: var(--court-deep);
}
.btn-outline-secondary { --bs-btn-color: var(--ink); --bs-btn-border-color: #aebbb1; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: #fff; }
.btn-link { --bs-btn-color: var(--court); --bs-btn-hover-color: var(--court-deep); }

/* ---------- Cards, tables, forms, badges ---------- */
.card { --bs-card-bg: #fff; --bs-card-border-color: var(--rule); --bs-card-border-radius: 18px; --bs-card-inner-border-radius: 17px; --bs-card-cap-bg: var(--paper); border: 1px solid var(--rule); box-shadow: none; }
.card-header { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; padding: .7rem 1.15rem; border-bottom: 1px solid var(--rule); }
.card-body { padding: 1.1rem 1.15rem; }
.list-group { --bs-list-group-bg: #fff; --bs-list-group-color: var(--ink); --bs-list-group-action-color: var(--ink); --bs-list-group-action-hover-color: var(--ink); --bs-list-group-action-hover-bg: #eef3ec; --bs-list-group-border-color: #e3e9e2; }
.list-group-item-action:hover { background: #eef3ec; }

.table { --bs-table-bg: transparent; --bs-table-border-color: #e3e9e2; }
.table > thead > tr > th { font-size: .78rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; }

.form-control, .form-select { border-color: #bdc9bf; border-radius: 12px; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--court); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--court) 22%, transparent); }
.form-check-input:checked { background-color: var(--court); border-color: var(--court); }
.form-check-input:focus { border-color: var(--court); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--court) 22%, transparent); }
.form-label { font-weight: 600; font-size: .88rem; }
.input-group > .btn { border-radius: 12px; }

.badge { font-weight: 600; border-radius: 999px; padding: .42em .75em; }
.alert { border: 0; border-radius: 14px; }
.nav-pills .nav-link { border-radius: 999px; font-weight: 600; }
.bg-light { background-color: rgb(var(--bs-light-rgb)) !important; }

.stat { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1; }
.qr-box img { max-width: 240px; width: 100%; border: 1px solid var(--rule); border-radius: 16px; background: #fff; padding: .6rem; }

/* ---------- Staff slot manager ---------- */
.slot-admin { min-width: 96px; padding: .4rem .5rem; border-radius: 12px; border: 1px solid var(--rule); background: #fff; text-align: center; font-size: .78rem; }
.slot-admin .t { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.slot-admin .d { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.slot-admin.st-booked, .slot-admin.st-held { background: #fff1c9; border-color: #f2d98a; }
.slot-admin.st-member { background: #d4eef7; border-color: #a6d9ea; }
.slot-admin.st-tournament { background: #e6dcf6; border-color: #cdbbe9; }
.slot-admin.st-closed, .slot-admin.st-maintenance { background: #f9d9d9; border-color: #efb3b3; }
.slot-admin.st-past { background: #eceee9; color: #8b958d; }
.slot-admin form { margin-top: .2rem; }
.slot-admin .btn { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .55rem; --bs-btn-font-size: .72rem; }

/* ---------- Footer ---------- */
.pb-foot { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 2.4rem 0 1.2rem; font-size: .88rem; border-top: 3px solid var(--court); }
.pb-foot strong { color: #fff; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }

@media (max-width: 576px) {
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .finder { padding: 1rem; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Ground size facts ---------- */
.ground-title { min-width: 0; }
.ground-facts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.fact { font-size: .74rem; font-weight: 600; padding: .12rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; }
.fact-size { background: var(--signal); color: var(--on-signal, var(--ink)); }
.ground-desc { margin: 0; padding: .6rem 1.15rem 0; color: var(--muted); font-size: .86rem; }

/* ---------- Closures & ground rows ---------- */
.closure-list { display: grid; gap: .6rem; }
.closure { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--rule); border-left: 5px solid var(--signal); border-radius: 12px; background: #fff; }
.closure.is-over { border-left-color: #b8c4ba; opacity: .7; }
.ground-rows { display: grid; gap: .5rem; }
.ground-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .85rem; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.ground-row.is-off { opacity: .6; }

/* ==========================================================================
   Website: brand, hero with photo, sections, gallery, reviews, contact
   ========================================================================== */
.brand-logo { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.pb-nav .brand-name { line-height: 1; }
.pre-line { white-space: pre-line; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.validation-summary-valid { display: none; }
.text-danger { color: #b3261e !important; }

.hero.has-image { background: var(--ink); }
.hero.has-image::before {
  background:
    linear-gradient(to top, rgba(0, 0, 0, calc(var(--overlay, .5) * .6)), transparent 60%),
    linear-gradient(rgba(0, 0, 0, var(--overlay, .5)), rgba(0, 0, 0, var(--overlay, .5))),
    var(--hero-image) center / cover no-repeat;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn-ghost { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .7); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #fff; --bs-btn-active-bg: #fff; --bs-btn-active-color: var(--ink); }
.hero:has(.hero-cta) { padding-bottom: 5rem; }

/* page heads, panels, empty states */
.page-head { margin-bottom: 1.3rem; }
.page-h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 .25rem; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 1.15rem 1.25rem; }
.panel-title { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; color: var(--ink); font-size: 1.45rem; margin: 0 0 .9rem; }
.empty { background: var(--paper); border: 2px dashed var(--rule); border-radius: 18px; padding: 2rem 1.2rem; text-align: center; }
.pb-main:has(> .page-head:first-child) { padding-top: 2rem; }

/* sections */
.sec { padding: 2.6rem 0 .4rem; }
.hero + .pb-main > .sec:first-child { padding-top: 2.4rem; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: 1rem; }
.sec-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.sec-link { font-weight: 600; }

.sport-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.sport-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.2rem 1.1rem; border-radius: 20px; text-decoration: none; color: #fff; background: var(--ink); position: relative; overflow: hidden; transition: transform .14s; }
.sport-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--court); opacity: .55; }
.sport-card:hover { transform: translateY(-3px); color: #fff; }
.sport-card .sport-ico { width: 44px; height: 44px; color: var(--signal); position: relative; z-index: 1; }
.sport-card-name { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2rem; line-height: 1; position: relative; z-index: 1; }
.sport-card-meta { font-size: .84rem; color: rgba(255, 255, 255, .78); position: relative; z-index: 1; }

.about-card { background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--signal); border-radius: 20px; padding: 1.6rem 1.7rem; max-width: 880px; }
.about-card p { margin: .8rem 0 0; font-size: 1.05rem; line-height: 1.6; }

/* gallery */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gallery-grid { columns: 3 260px; column-gap: .75rem; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--ink); cursor: zoom-in; }
.gallery-strip .g-item { aspect-ratio: 4 / 3; }
.gallery-strip .g-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .g-item { break-inside: avoid; margin-bottom: .75rem; }
.gallery-grid .g-item img { width: 100%; height: auto; display: block; }
.g-item img { transition: transform .35s; }
.g-item:hover img { transform: scale(1.04); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: #fff; font-size: .86rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
@media (max-width: 576px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: .7rem; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.5rem; line-height: 1; }
.lb-btn:hover { background: rgba(255, 255, 255, .3); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close { top: 18px; right: 14px; transform: none; }

/* reviews & stars */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 18px; height: 18px; }
.stars .on { fill: #f5a300; }
.stars .off { fill: #d3d9d3; }
.rating-sum { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.rating-num { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.2rem; line-height: 1; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.review-list { display: grid; gap: .8rem; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 1.1rem 1.2rem; }
.review.is-pending { border-style: dashed; background: #fffaf0; }
.review blockquote { margin: .5rem 0; font-size: 1rem; line-height: 1.5; }
.review figcaption { font-weight: 600; font-size: .88rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; line-height: 0; }
.star-input svg { width: 34px; height: 34px; fill: #d3d9d3; transition: fill .1s, transform .1s; }
.star-input label:hover svg, .star-input label:hover ~ label svg, .star-input input:checked ~ label svg { fill: #f5a300; }
.star-input label:hover svg { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* contact */
.contact-band { margin-top: 2.8rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; background: var(--court); color: #fff; border-radius: 24px; padding: 1.8rem 2rem; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 64px, transparent 64px 128px); }
.band-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .5rem; }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.band-list a { color: #fff; margin-left: .7rem; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.contact-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 1rem 1.1rem; }
.contact-label { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.35rem; margin-bottom: .2rem; }
.contact-line { display: block; font-weight: 600; word-break: break-all; }
.info-row { display: grid; grid-template-columns: 90px 1fr; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #e3e9e2; }
.info-row:last-child { border-bottom: 0; }
.info-k { font-weight: 600; color: var(--muted); }

/* footer */
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; }
.foot-brand { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.7rem; color: #fff; line-height: 1; margin-bottom: .5rem; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: .55rem; }
.foot-text { margin: 0 0 .5rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.foot-links a, .foot-social a { color: rgba(255, 255, 255, .8); }
.foot-links a:hover, .foot-social a:hover { color: #fff; }
.foot-social { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .8rem; }
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr; gap: 1.3rem; } }

/* ==========================================================================
   Admin shell
   ========================================================================== */
.is-manage .pb-main { padding-top: 1.6rem; }
.admin-shell { display: grid; grid-template-columns: 232px 1fr; gap: 1.6rem; align-items: start; }
.admin-side { position: sticky; top: 12px; background: var(--ink); border-radius: 20px; padding: .9rem; color: #fff; }
.admin-side-toggle { display: none; width: 100%; text-align: left; background: transparent; border: 0; color: #fff; font-weight: 700; padding: .3rem .4rem; }
.side-group { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); padding: .9rem .6rem .3rem; }
.side-group:first-child { padding-top: .2rem; }
.side-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .7rem; border-radius: 10px; color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; }
.side-link:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side-link.active { background: #fff; color: var(--ink); font-weight: 700; }
.side-badge { background: var(--signal); color: var(--on-signal, var(--ink)); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .05rem .5rem; }
.side-ext { margin-top: .8rem; border: 1px dashed rgba(255, 255, 255, .3); }
.admin-body { min-width: 0; }
@media (max-width: 991px) {
  .admin-shell { grid-template-columns: 1fr; gap: 1rem; }
  .admin-side { position: static; }
  .admin-side-toggle { display: block; }
}

/* branding admin */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch-card { display: block; border: 2px solid var(--rule); border-radius: 14px; padding: .55rem; background: #fff; }
.swatch input:checked + .swatch-card { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
.swatch input:focus-visible + .swatch-card { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch-chips { display: flex; height: 30px; border-radius: 8px; overflow: hidden; }
.swatch-chips i { flex: 1; }
.swatch-name { display: block; font-size: .8rem; font-weight: 600; margin-top: .4rem; }
.theme-preview { --tp-primary: var(--court); --tp-accent: var(--signal); --tp-ink: var(--ink); border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }
.tp-nav { display: flex; justify-content: space-between; align-items: center; background: var(--tp-ink); color: #fff; padding: .6rem .9rem; border-bottom: 3px solid var(--tp-accent); font-weight: 700; }
.tp-pill { background: #fff; color: var(--tp-ink); border-radius: 999px; padding: .1rem .7rem; font-size: .78rem; }
.tp-hero { background: var(--tp-primary); color: #fff; padding: 1.2rem .9rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 1.5rem; }
.tp-btn { background: var(--tp-accent); color: var(--tp-ink); border-radius: 999px; padding: .25rem .9rem; font-size: .8rem; font-weight: 700; font-family: var(--bs-body-font-family); font-style: normal; text-transform: none; white-space: nowrap; }
.thumb { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#eef1ec 0 25%, #fff 0 50%) 0 0 / 14px 14px; margin-bottom: .5rem; }
.thumb img { display: block; width: 100%; }
.thumb-logo { width: 120px; padding: .5rem; } .thumb-logo img { max-height: 60px; object-fit: contain; }
.thumb-wide img { max-height: 170px; object-fit: cover; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.ag-card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ag-card.is-off { opacity: .65; }
.ag-img { aspect-ratio: 4 / 3; background: var(--ink); }
.ag-img img { width: 100%; height: 100%; object-fit: cover; }
.ag-form { padding: .7rem .8rem 0; }
.ag-actions { padding: .5rem .8rem .8rem; display: flex; gap: .35rem; flex-wrap: wrap; margin-top: auto; }
.msg-list { display: grid; gap: .7rem; }
.msg { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 1rem 1.1rem; }
.msg.is-unread { border-left: 5px solid var(--signal); }

/* ==========================================================================
   Booking flow: steps, tickets, plan cards
   ========================================================================== */
.steps { display: flex; gap: .4rem; list-style: none; margin: 0 0 1.2rem; padding: 0; flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .85rem .3rem .35rem; border-radius: 999px; background: #e4eae3; color: var(--muted); font-size: .82rem; font-weight: 600; }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; font-size: .78rem; }
.steps li.done { background: color-mix(in srgb, var(--court) 16%, white); color: var(--court-deep); }
.steps li.now { background: var(--ink); color: #fff; }
.steps li.now .step-n { background: var(--signal); color: var(--on-signal, var(--ink)); }
@media (max-width: 576px) { .steps li:not(.now) .step-t { display: none; } }
.step-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--bs-body-font-family); font-style: normal; font-size: .9rem; margin-right: .35rem; vertical-align: .12em; }

.ticket { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.ticket.is-void { opacity: .72; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.2rem; background: var(--ink); color: #fff; position: relative; }
.ticket-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--signal) 0 16px, transparent 16px 28px); }
.ticket-venue { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.ticket-date { font-size: .86rem; color: rgba(255, 255, 255, .78); margin-top: .2rem; }
.ticket-amount { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--signal); }
.ticket-body { padding: .5rem 1.2rem 1.1rem; }
.ticket-line { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--rule); }
.ticket-total { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.5rem; border-bottom: 0; padding-bottom: 0; }
.ticket-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding-top: .8rem; }
.ticket-list { display: grid; gap: 1rem; }
.hold-timer { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; padding: .6rem .9rem; border-radius: 12px; background: #fff3e6; color: #8a3a05; }
.hold-timer strong { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; }

fieldset.panel { min-width: 0; }
fieldset.panel legend { float: none; width: 100%; padding: 0; }
.plan-card { position: relative; display: block; margin-bottom: .6rem; cursor: pointer; }
.plan-input { position: absolute; opacity: 0; }
.plan-body { display: block; border: 2px solid var(--rule); border-radius: 14px; padding: .85rem 1rem; background: #fff; transition: border-color .12s, box-shadow .12s; }
.plan-head { display: flex; justify-content: space-between; gap: .8rem; }
.plan-amt { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.plan-note { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.plan-input:checked + .plan-body { border-color: var(--court); box-shadow: 0 0 0 3px color-mix(in srgb, var(--court) 20%, transparent); }
.plan-input:focus-visible + .plan-body { outline: 3px solid var(--ink); outline-offset: 2px; }
.plan-tag { position: absolute; top: -9px; right: 12px; background: var(--signal); color: var(--on-signal, var(--ink)); font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .1rem .6rem; }

/* error / state pages, narrow auth */
.state-page { text-align: center; padding: 3.5rem 1rem 2rem; max-width: 520px; margin: 0 auto; }
.state-code { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(5rem, 20vw, 9rem); line-height: .85; color: var(--signal); }
.state-title { font-size: clamp(2rem, 6vw, 3rem); margin: .4rem 0 .8rem; }
.auth-narrow { max-width: 920px; margin-inline: auto; min-height: 420px; }
.auth.auth-narrow .auth-visual { min-height: 0; }

/* auth photo */
.auth-visual.has-image::before { background: var(--auth-image) center / cover no-repeat; }
.auth-visual.has-image::after { background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .25) 70%); }

/* staff desk */
.count-chip { display: inline-block; vertical-align: middle; font-family: var(--bs-body-font-family); font-style: normal; font-size: .9rem; background: var(--signal); color: var(--on-signal, var(--ink)); border-radius: 999px; padding: .1rem .7rem; margin-left: .3rem; }
.pay-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.pay-card { background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--signal); border-radius: 16px; padding: .95rem 1.05rem; }
.pay-card-top { display: flex; justify-content: space-between; gap: .8rem; margin-bottom: .5rem; }
.pay-amt { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.9rem; line-height: 1; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 .2rem; border-left: 3px solid var(--ink); display: grid; gap: .7rem; }
.tl-item { position: relative; display: grid; grid-template-columns: 118px 1fr; gap: .8rem; padding-left: 1rem; }
.tl-item::before { content: ""; position: absolute; left: -9px; top: .9rem; width: 13px; height: 13px; border-radius: 50%; background: var(--signal); border: 3px solid var(--chalk); }
.tl-time { font-family: var(--display); font-weight: 700; font-size: 1.25rem; padding-top: .45rem; white-space: nowrap; }
.tl-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: .7rem .95rem; }
@media (max-width: 576px) { .tl-item { grid-template-columns: 1fr; gap: 0; } .tl-time { padding-top: 0; } }

.nav-pills { --bs-nav-pills-link-active-bg: var(--ink); --bs-nav-link-color: var(--ink); --bs-nav-link-hover-color: var(--court); }

/* marketplace */
.pending-box { border-left: 6px solid var(--signal); }
.stmt th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.stmt td { white-space: nowrap; }
.setup-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .6rem; }
.setup-list li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: .7rem; align-items: center; }
.setup-list li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.setup-list li.done::before { content: "✓"; background: var(--court); }
.setup-list a { font-weight: 700; }
.setup-list span { color: var(--muted); font-size: .86rem; }
