@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f9ec;
  --surface: #ffffff;
  --surface-2: #eef4d8;
  --accent: #5c7d1f;
  --accent-2: #a7cb2c;
  --text: #1f2921;
  --muted: #657162;
  --danger: #b54a5a;
  --display-font: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(93,125,31,0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(167,203,44,0.12), transparent 24%),
    linear-gradient(180deg, #f8faef 0%, #eef3d9 100%);
}

h1,
h2,
h3,
.site-nav .nav-link,
.hero-button,
button,
.eyebrow,
.section-label,
.club-lockup span,
.date-pill,
.date-nav,
.legend-pill,
.schedule-section,
.schedule-grid .header,
.slot-button,
.summary-card span,
.summary-card strong,
.home-hero-stats strong {
  font-family: var(--display-font);
}

.app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.hero-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  min-height: 680px;
  margin: 0;
  padding: 132px clamp(24px, 5vw, 76px) 64px;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(21,70,35,0.94), rgba(88,143,28,0.88));
  color: #ffffff;
  border: none;
  box-shadow: none;
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: auto -140px -160px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,94,114,0.16), rgba(56,94,114,0));
  pointer-events: none;
}

.hero-header::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 160px;
  height: 140px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-brand,
.hero-panel,
.site-nav {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: grid;
  gap: 18px;
  width: min(780px, 100%);
  align-self: center;
  justify-items: center;
  text-align: center;
}

.hero-title-lockup {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 16px 40px rgba(56,94,114,0.18);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-brand h1 {
  margin: 0;
  white-space: normal;
  line-height: 1.02;
  font-size: clamp(3.2rem, 4.8vw, 5.2rem);
  text-wrap: balance;
  position: relative;
}

.hero-brand h1::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 32px;
  background: radial-gradient(circle at top left, rgba(75,184,167,0.18), transparent 45%);
}

.hero-brand p {
  margin: 0;
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.hero-button:hover {
  transform: translateY(-1px);
}

.hero-button.primary {
  background: linear-gradient(90deg, #8cbf1d, #78a109);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(22,55,18,0.28);
}

.hero-button.secondary-link {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.schedule-toolbar input {
  width: 100%;
  min-width: 0;
  max-width: 620px;
}

.stat-card {
  padding: 14px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(95,117,36,0.14);
}

.stat-card strong {
  display: block;
  color: #ffffff;
  font-size: 1.3rem;
}

.stat-card span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: min(720px, 100%);
  margin-inline: auto;
}

.hero-panel::after {
  content: none;
}

.hero-graphic {
  position: relative;
  min-height: 270px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(56,94,114,0.22), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(75,184,167,0.18), transparent 20%),
    linear-gradient(180deg, #ffffff, #f2f7f8);
  border: 1px solid rgba(31,41,55,0.06);
}

.login-selection {
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 0 32px;
}

.login-selection h2 {
  margin: 0 0 12px;
  text-align: center;
  color: var(--accent);
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
}

.tournament-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tournament-list {
  display: grid;
  gap: 14px;
}

.tournament-item {
  padding: 18px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(95,117,36,0.12);
}

/* Tournament badges (participants / paid / unpaid) */
.tournament-badges { display:flex; gap:8px; align-items:center; margin-top:6px }
.tournament-badges .badge { background:#f3f4f6; padding:6px 8px; border-radius:999px; font-size:0.85rem; color:#111827; }
.tournament-badges .badge.paid { background: linear-gradient(90deg,#ecfccb,#bbf7d0); }
.tournament-badges .badge.unpaid { background: linear-gradient(90deg,#fee2e2,#fecaca); }

.tournament-item .details-toggle {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(31,41,55,0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.tournament-item .booking-details {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(56,94,114,0.08);
}

.tournament-item .booking-details.hidden {
  display: none;
}

.tournament-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.tournament-item p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.login-choice-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.login-card {
  padding: 28px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.booking-actions {
  margin-top: 18px;
}

.details-link,
.booking-actions .hero-button.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.12);
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.details-link:hover,
.booking-actions .hero-button.secondary-link:hover {
  background: rgba(75,184,167,0.08);
}

.login-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.35rem;
}

.login-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.profile-card {
  padding: 28px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.profile-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.profile-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(31,41,55,0.08);
  background: #f8fafb;
}

.profile-card h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.6rem;
}

.profile-card p.profile-bio {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

.admin-form label {
  display: block;
  margin-bottom: 14px;
}

.admin-form input[type="email"],
.admin-form input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.12);
  background: #f8fafb;
  color: var(--text);
}

.admin-form input[type="email"]:focus,
.admin-form input[type="password"]:focus {
  outline: none;
  border-color: rgba(56,94,114,0.9);
  box-shadow: 0 10px 28px rgba(56,94,114,0.08);
}

.login-card .hero-button {
  width: 100%;
}

.login-card .message {
  margin-top: 12px;
  min-height: 22px;
  color: var(--danger);
}

.court-outline {
  position: absolute;
  inset: 24px;
  border-radius: 18px;
  border: 2px solid rgba(56,94,114,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.30));
}

.court-net {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(31,41,55,0.16), rgba(31,41,55,0.08));
}

.court-shuttle {
  position: absolute;
  top: 36px;
  left: 40px;
  width: 58px;
  height: 58px;
  border-radius: 50% 50% 50% 20%;
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  box-shadow: 0 16px 30px rgba(31,41,55,0.12);
  transform: rotate(-18deg);
}

/* Admin login styles (extracted from admin.php) */
.admin-table { width:100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding:8px; border:1px solid rgba(0,0,0,0.06); }
.controls { margin-bottom:12px; }
.admin-msg { margin-top:12px; padding:12px; background:#fff6f6; border-radius:8px; color:var(--muted); border:1px solid rgba(181,74,90,0.06); }
.admin-form label { display:block; margin:8px 0; }
.admin-form input[type="text"], .admin-form input[type="password"], .admin-form input[type="email"], .admin-form input[type="date"] {
  width:100%; max-width:460px; padding:10px 12px; border-radius:10px; border:1px solid rgba(31,41,55,0.06); background:#ffffff; box-shadow: 0 6px 18px rgba(31,41,55,0.04);
}
.admin-form input:focus { outline: none; border-color: rgba(56,94,114,0.9); box-shadow: 0 8px 26px rgba(56,94,114,0.08); }
.admin-form button { margin-top:10px; padding:12px 18px; border-radius:12px; border:0; cursor:pointer; }
.admin-form button.primary { background: linear-gradient(90deg, rgba(56,94,114,0.92), rgba(75,184,167,0.92)); color:white; box-shadow: 0 8px 20px rgba(56,94,114,0.10); }
.login-center { display:flex; align-items:center; justify-content:center; min-height: calc(100vh - 88px); }
.login-box { width:480px; max-width:calc(100% - 48px); padding:22px; border-radius:14px; background: linear-gradient(180deg,#ffffff,#fbfdfe); border:1px solid rgba(31,41,55,0.04); box-shadow: 0 12px 30px rgba(31,41,55,0.05); }
.login-center { position: relative; z-index: 50; }
.login-box { position: relative; z-index: 60; }
.login-box .logo { width:112px; height:112px; }
.login-logo { width:140px; height:140px; border-radius:12px; object-fit:cover; display:block; margin:0 auto 12px; }
.login-title { margin:0 0 10px 0; color:var(--accent); font-weight:800; line-height:1.06; font-size: clamp(1.2rem, 3vw, 1.9rem); max-width:100%; word-break:break-word; white-space:normal; }

/* Login form specific layout: center controls and align inputs */
#adminLoginForm { display:flex; flex-direction:column; align-items:center; gap:10px; }
#adminLoginForm label { width:100%; max-width:460px; }
#adminLoginForm input[type="text"], #adminLoginForm input[type="password"], #adminLoginForm input[type="email"], #adminLoginForm input[type="date"] { width:100%; box-sizing:border-box; }
#adminLoginForm .remember-row { justify-content:flex-start; width:100%; max-width:460px; }
#adminLoginForm button.primary { align-self:center; min-width:170px; font-weight:800; }
.login-sub { margin:0 0 16px 0; color:var(--muted); font-size:0.95rem; }
.remember-row { display:flex; align-items:center; gap:10px; margin-top:8px; }
.remember-row input { width:auto; }
.small-muted { color:var(--muted); font-size:0.9rem; }
@media (max-width:520px) {
  .login-box { width:100%; padding:18px; }
}

.court-shuttle::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 14px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: linear-gradient(180deg, #b0b8bf, #7b8794);
}

.court-orb {
  position: absolute;
  border-radius: 50%;
}

.court-orb-one {
  top: 34px;
  right: 28px;
  width: 68px;
  height: 68px;
  background: rgba(56,94,114,0.18);
}

.court-orb-two {
  right: 64px;
  bottom: 34px;
  width: 94px;
  height: 94px;
  background: rgba(75,184,167,0.14);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-panel-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56,94,114,0.10);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-panel-grid div {
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(31,41,55,0.06);
}

.hero-panel-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-panel-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  min-height: 72px;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  width: auto;
  margin: 0;
  padding: 0 clamp(24px, 5vw, 76px);
  background: rgba(13, 58, 31, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 28px rgba(9,38,19,0.14);
  z-index: 5;
}

.site-nav .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.site-nav .nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 26px 18px 23px;
  border-radius: 0;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
}

.site-nav .nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.site-nav .nav-link.book-button {
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.site-nav .nav-link.book-button:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.site-nav .nav-link.accent-button {
  background: transparent;
  color: #ffffff;
}

.site-nav .nav-link.accent-button:hover {
  background: rgba(255,255,255,0.08);
}

.site-nav .nav-link.active {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-bottom-color: #a7cb2c;
  box-shadow: none;
}

.logo {
  width: 160px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--bg);
  background: transparent;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: visible;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.nav-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-logo {
  display: block;
  width: 96px;
  height: auto;
  margin: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 2.6rem);
}

p {
  margin: 4px 0 0;
  color: var(--muted);
}

main {
  display: grid;
  gap: 28px;
  width: 100%;
}

.booking-panel,
.schedule-panel {
  padding: 48px clamp(24px, 5vw, 76px) 64px;
  border-radius: 0;
  border: none;
  background: linear-gradient(180deg, #fbfcf8 0%, #f3f6f0 100%);
  box-shadow: none;
  backdrop-filter: none;
}

.booking-panel h2,
.schedule-panel h2 {
  margin-top: 0;
}

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 16px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(95,117,36,0.14);
}

.summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.08);
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.selection-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(167,203,44,0.16);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

#bookButton {
  background: var(--accent);
  color: #ffffff;
}

.secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(31,41,55,0.08);
}

.message {
  min-height: 24px;
  margin-top: 16px;
  color: var(--accent-2);
}

.message.error {
  color: var(--danger);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(31,41,55,0.24);
  z-index: 60;
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(520px, calc(100vw - 40px));
  padding: 22px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.98);
  box-shadow: none;
}

.modal-content .receipt-metadata {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.modal-content #receiptContent {
  margin-top: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.input-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.input-hint.valid {
  color: var(--accent-2);
}

.input-hint.invalid {
  color: var(--danger);
}

.payment-note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(238, 244, 216, 0.9);
  border: 1px solid rgba(92, 125, 31, 0.16);
  color: #30401b;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 700;
}

.payment-note div:first-child {
  margin-bottom: 2px;
}

.modal-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(246, 251, 252, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.modal-status.success {
  background: rgba(71, 143, 125, 0.12);
  border-color: rgba(75, 184, 167, 0.28);
  color: #0d3f34;
}

.modal-status.error {
  background: rgba(181, 74, 90, 0.12);
  border-color: rgba(181, 74, 90, 0.28);
  color: #7a2931;
}

.modal-content input:invalid {
  outline: 2px solid rgba(194,65,12,0.12);
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.98) 30%);
}

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.98);
  color: var(--text);
  border: 1px solid rgba(56,94,114,0.08);
  box-shadow: 0 6px 18px rgba(31,41,55,0.12);
  transform-origin: right bottom;
  transition: transform 200ms ease, opacity 200ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.hide {
  transform: translateY(10px);
  opacity: 0;
}

.slot-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(56,94,114,0.08);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(148,163,184,0.12);
}

th {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(56,94,114,0.03);
}

.slot-button {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(95,117,36,0.24);
  background: #f6f8e2;
  color: #2d5e12;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.slot-button.free:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(59,130,246,0.12);
}

.slot-button.booked {
  background: rgba(226,232,240,0.95);
  color: #475569;
}

.slot-button.pending {
  background: #fff0c9;
  border-color: #e8c96e;
  color: #805b11;
}

.slot-state {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.slot-button.selected {
  background: rgba(191,219,254,0.95);
  color: #1e40af;
  box-shadow: 0 18px 38px rgba(59,130,246,0.14);
}

.slot-button.range-start {
  background: rgba(219,234,254,0.95);
  border: 1px solid rgba(59,130,246,0.3);
}

.range-toggle-active {
  background: linear-gradient(90deg, rgba(56,94,114,0.12), rgba(75,184,167,0.08));
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(56,94,114,0.08);
}

.slot-cell {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border: none;
  background: transparent;
}

.slot-cell .cell-left,
.slot-cell .status {
  display: none;
}

.slot-cell .slot-action {
  width: 100%;
  margin: 0;
}

.slot-cell.selected .slot-button {
  outline: 2px solid rgba(59,130,246,0.24);
}

.status.free {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(75,184,167,0.12);
  color: var(--accent);
}

.status.unavailable {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(181,74,90,0.08);
  color: var(--danger);
}

.schedule-info {
  margin-bottom: 2px;
  color: var(--muted);
}

.schedule-header {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}

.schedule-heading-row,
.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.schedule-heading-row {
  justify-content: space-between;
}

.schedule-toolbar {
  justify-content: flex-end;
  gap: 8px;
}

.schedule-toolbar input {
  width: auto;
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.12);
  background: #ffffff;
  color: var(--text);
}

.date-selection-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
}

.date-nav {
  min-width: 42px;
  min-height: 50px;
  border: 1px solid #d9e1d6;
  border-radius: 10px;
  background: #ffffff;
  color: #28593a;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.date-nav:hover {
  background: #edf3e8;
  border-color: #9cb88a;
}

.date-selection-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  padding: 6px 0;
}

.date-selection-list::-webkit-scrollbar {
  height: 6px;
}

.date-selection-list::-webkit-scrollbar-thumb {
  background: rgba(56,94,114,0.2);
  border-radius: 999px;
}

.date-pill {
  border: 1px solid #d9e1d6;
  border-radius: 10px;
  background: #ffffff;
  color: #28593a;
  padding: 12px 8px;
  display: grid;
  gap: 4px;
  text-align: center;
  min-width: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.date-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30,76,47,0.10);
  background: #f4f7f1;
}

.date-pill.active {
  border-color: #28593a;
  background: #28593a;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(30,76,47,0.18);
}

.date-pill-day {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #769f2b;
}

.date-pill.active .date-pill-day {
  color: #c7df79;
}

.date-pill-number {
  font-size: 0.92rem;
  font-weight: 800;
}

.schedule-panel .table-wrap {
  padding: 18px;
  border: 1px solid #dbe3d6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(30,76,47,0.06);
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.legend-pill.available {
  background: #e6f1d5;
  color: #376b1f;
}

.legend-pill.pending {
  background: #fff0c9;
  color: #805b11;
}

.legend-pill.booked {
  background: linear-gradient(180deg, rgba(254,228,228,0.96), rgba(255,244,244,0.98));
  color: #b91c1c !important;
  border: 1px solid rgba(248,113,113,0.35);
}

.legend-pill.payment-highlight {
  background: linear-gradient(180deg, rgba(238,244,216,0.98), rgba(219,233,183,0.98));
  color: #2e4012;
  border: 1px solid rgba(92,125,31,0.28);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(92,125,31,0.08);
}

.schedule-grid {
  display: grid;
  gap: 10px;
  padding: 0;
  align-items: stretch;
  grid-auto-rows: minmax(60px, auto);
}

.schedule-grid .header {
  padding: 14px 16px;
  border-radius: 10px;
  background: #edf3e8;
  border: 1px solid #d2dfca;
  color: #28593a;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  box-shadow: none;
}

.schedule-grid .header.court-a {
  background: #edf3e8;
  border-color: #c8dabb;
  color: #28593a;
}

.schedule-grid .header.court-b {
  background: #f3f5f1;
  border-color: #d6dfd1;
  color: #28593a;
}

.schedule-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 6px;
  color: #28593a;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.schedule-section::before {
  content: none;
}

.schedule-section:nth-child(odd)::before,
.schedule-section:nth-child(even)::before {
  content: none;
}

.slot-cell {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
}

.slot-cell .cell-left {
  display: none;
}

.slot-cell .slot-action {
  display: block;
  margin-left: 0;
}

.slot-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d6dfd1;
  background: #ffffff;
  color: #28593a;
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.2;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(30,76,47,0.04);
}

.slot-button .slot-label {
  display: block;
  width: 100%;
}

.slot-button.booked {
  background: #f8fafc;
  color: #475569;
  border-color: rgba(148,163,184,0.22);
}

.slot-button.free {
  border-color: #c8dabb;
}

/* Highlight booked slots with a red/pink treatment and a red strikethrough on the time */
.slot-button.booked {
  background: linear-gradient(180deg, rgba(245,230,231,0.95), rgba(255,244,244,0.95));
  color: #7a2730;
  border-color: rgba(181,74,90,0.22);
}
.slot-button.booked .slot-label {
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
}

/* Small, visually-hidden but interactive file input for mobile compatibility */
.visually-hidden-file {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* Ensure the upload label is a positioned container so the input can cover it */
#modalGCashUploadButton {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.slot-button.selected {
  background: #28593a;
  border-color: #28593a;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(30,76,47,0.18);
  transform: translateY(-1px);
}

.slot-cell.selected .slot-button {
  outline: 2px solid rgba(167,203,44,0.42);
}

.schedule-panel {
  scroll-margin-top: 24px;
}

.schedule-panel h2 {
  margin-top: 0;
}

.schedule-panel .message {
  margin-top: 10px;
}

.hero-panel-grid strong,
.summary-card strong,
.stat-card strong {
  letter-spacing: 0;
}

.hero-panel,
.summary-card,
.stat-card,
.slot-cell,
.slot-button,
.modal-content,
.schedule-panel,
.site-nav .nav-link {
  transition: box-shadow 0.12s ease, transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.hero-panel:hover,
.summary-card:hover,
.stat-card:hover,
.slot-cell:hover,
.slot-button:hover,
.site-nav .nav-link:hover {
  transform: translateY(-1px);
}

.range-tooltip {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  color: var(--text);
  border: 1px solid rgba(56,94,114,0.08);
  box-shadow: 0 8px 32px rgba(31,41,55,0.12);
  font-size: 0.9rem;
  pointer-events: none;
}

#confirmBookingButton {
  background: linear-gradient(90deg, #6e8b1d, #b7d36a);
  color: #ffffff;
}

#rangeToggleButton {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(31,41,55,0.08);
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }

  .hero-header {
    grid-template-columns: 1fr;
  }

  .hero-brand,
  .hero-panel {
    max-width: none;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-stats,
  .hero-panel-grid,
  .schedule-summary {
    grid-template-columns: 1fr;
  }

  .schedule-toolbar input {
    width: 100%;
    min-width: 0;
  }

  .modal-content {
    width: min(460px, calc(100vw - 32px));
  }

  .schedule-legend {
    gap: 8px;
  }

  .legend-pill.payment-highlight {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    padding-inline: 12px;
  }

  .payment-note {
    padding: 11px 12px;
    font-size: 0.92rem;
  }
}

@media (max-width: 600px) {
  .header-logo {
    width: 72px;
  }

  .logo {
    width: 120px;
    height: 72px;
  }

  .hero-brand h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .schedule-legend {
    flex-direction: column;
    align-items: stretch;
  }

  .legend-pill {
    width: 100%;
  }

  .legend-pill.payment-highlight {
    padding: 10px 12px;
    line-height: 1.35;
  }

  .payment-note {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .payment-note strong {
    font-size: 1.02em;
  }
}

/* About page */
.about-page {
  background: #f6f9ec;
}

.about-page main {
  gap: 0;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 8vw, 120px);
  min-height: 620px;
  padding: 156px clamp(24px, 8vw, 132px) 88px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8,28,15,0.88) 0%, rgba(10,38,19,0.68) 44%, rgba(10,38,19,0.26) 100%),
    url("COURT.png") center / cover no-repeat;
}

.about-hero::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -134px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}

.about-hero-copy,
.about-hero-mark {
  position: relative;
  z-index: 1;
}

.about-hero-copy {
  display: grid;
  justify-items: start;
  gap: 22px;
  min-width: 0;
  max-width: 680px;
}

.about-hero-copy h1,
.about-intro h2,
.booking-copy h2,
.about-cta h2 {
  margin: 0;
  color: inherit;
  line-height: 1.04;
  letter-spacing: 0;
}

.about-hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.about-hero-copy p {
  max-width: 58ch;
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
  line-height: 1.75;
}

.about-hero-mark {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  padding: 48px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  text-align: center;
}

.about-hero-mark img {
  width: min(178px, 42vw);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.22));
}

.about-hero-mark span {
  margin-top: 18px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.about-hero-mark small {
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 540px);
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.20);
}

.home-hero-stats div {
  display: grid;
  gap: 4px;
  padding: 18px 16px 0 0;
}

.home-hero-stats strong {
  color: #ffffff;
  font-size: 1.25rem;
}

.home-hero-stats span {
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
}

.home-hero-mark p {
  max-width: 23ch;
  margin: 18px 0 0;
  color: rgba(255,255,255,0.74);
  font-size: 0.95rem;
  line-height: 1.55;
}

.club-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.club-lockup img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: scale(1.28);
  transform-origin: center;
}

.club-lockup span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-hero-copy .club-lockup h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.home-hero-heading {
  margin: 6px 0 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.6rem, 2.6vw, 2.55rem) !important;
  font-weight: 800;
  line-height: 1.16 !important;
}

.home-hero {
  display: block;
  min-height: 590px;
  padding: 156px clamp(24px, 10vw, 164px) 84px;
  background:
    linear-gradient(90deg, rgba(8,28,15,0.88) 0%, rgba(10,38,19,0.68) 44%, rgba(10,38,19,0.26) 100%),
    url("COURT.png") center / cover no-repeat;
}

.home-hero .about-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero .court-image-panel {
  display: none;
}

.court-image-panel {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11,54,31,0.12), rgba(127,168,51,0.12)),
    url("COURT.png") center / cover no-repeat;
  box-shadow: 0 24px 46px rgba(7,39,19,0.20);
}

.court-image-panel::before,
.court-image-panel::after,
.court-image-lines {
  display: none;
}

.court-image-panel::before {
  inset: 10% 12%;
}

.court-image-panel::after {
  top: 10%;
  bottom: 10%;
  left: 50%;
  border-width: 0 0 0 2px;
}

.court-image-lines {
  top: 50%;
  right: 12%;
  left: 12%;
  border-width: 2px 0 0;
}

.about-intro,
.about-values,
.about-booking,
.about-cta {
  padding-inline: clamp(24px, 8vw, 132px);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 10vw, 160px);
  padding-top: 104px;
  padding-bottom: 104px;
  background: #ffffff;
}

.section-label {
  display: block;
  margin-bottom: 14px;
  color: #5c7d1f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-intro h2,
.booking-copy h2,
.about-cta h2 {
  color: #1f2921;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.about-intro > p {
  align-self: end;
  margin: 0;
  color: #526151;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #edf4d7;
}

.value-card {
  min-height: 290px;
  padding: 48px 36px;
  border-right: 1px solid rgba(92,125,31,0.18);
}

.value-card:last-child {
  border-right: 0;
}

.value-number {
  display: block;
  margin-bottom: 42px;
  color: #729b24;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.value-card h2 {
  margin: 0 0 12px;
  color: #24421a;
  font-size: 1.4rem;
}

.value-card p,
.booking-copy p {
  margin: 0;
  color: #526151;
  line-height: 1.7;
}

.about-booking {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(48px, 10vw, 160px);
  padding-top: 104px;
  padding-bottom: 104px;
  background: #ffffff;
}

.booking-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.booking-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: booking-step;
}

.booking-steps li {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 18px 0 18px 74px;
  border-top: 1px solid rgba(92,125,31,0.18);
  counter-increment: booking-step;
}

.booking-steps li::before {
  content: counter(booking-step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 0;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #edf4d7;
  color: #5c7d1f;
  font-size: 0.75rem;
  font-weight: 900;
}

.booking-steps strong {
  color: #24421a;
  font-size: 1.08rem;
}

.booking-steps span {
  color: #657162;
  line-height: 1.55;
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
  color: #ffffff;
  background: #244c25;
}

.about-cta .section-label,
.about-cta h2 {
  color: #ffffff;
}

@media (max-width: 900px) {
  .about-hero,
  .about-intro,
  .about-booking {
    grid-template-columns: 1fr;
  }

  .about-hero {
    gap: 42px;
    min-height: auto;
  }

  .about-hero-mark {
    min-height: 220px;
  }

  .court-image-panel {
    min-height: 260px;
  }

  .home-hero-stats {
    width: 100%;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .value-card,
  .value-card:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(92,125,31,0.18);
  }

  .value-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .about-hero {
    padding-top: 100px;
    padding-bottom: 56px;
  }

  .about-hero-mark {
    display: none;
  }

  .about-hero-copy h1 {
    font-size: clamp(1.75rem, 11vw, 3.5rem);
    overflow-wrap: anywhere;
  }

  .club-lockup {
    gap: 12px;
  }

  .club-lockup img {
    width: 88px;
    height: 88px;
    padding: 0;
    transform: scale(1.18);
  }

  .about-hero-copy .club-lockup h1 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .about-intro,
  .about-booking {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .value-card {
    padding: 38px 24px;
  }

  /* Ensure booked slot styling remains visible on small screens */
  .slot-button.booked {
    background: linear-gradient(180deg, rgba(250,230,232,0.98), rgba(255,244,244,0.98)) !important;
    color: #7a2730 !important;
    border-color: rgba(181,74,90,0.42) !important;
    box-shadow: 0 10px 20px rgba(181,74,90,0.08) !important;
    opacity: 1 !important;
  }
  .slot-button.booked .slot-label {
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 2px;
  }

  .about-cta {
    display: grid;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about-cta .hero-button {
    width: 100%;
  }

  .home-hero-stats div {
    padding-right: 8px;
  }
}

@media (max-width: 700px) {
  .site-nav {
    top: 0;
    left: 0;
    right: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    min-height: 60px;
    padding: 0 12px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav .brand-link {
    flex: 0 0 auto;
    gap: 8px;
    margin-right: 4px;
    padding: 8px 10px;
  }

  .site-nav .nav-link {
    flex: 0 0 auto;
    padding: 20px 12px 17px;
    font-size: 0.86rem;
  }

  .nav-logo {
    width: 34px;
    height: 34px;
  }

  .hero-header {
    padding-top: 112px;
  }
}

/* Player authentication */
.auth-page {
  background: #173f27;
}

.auth-page main {
  display: block;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  min-height: 100vh;
  padding: 144px clamp(24px, 8vw, 132px) 80px;
  gap: clamp(48px, 9vw, 150px);
  align-items: center;
  background:
    radial-gradient(circle at 86% 88%, rgba(167,203,44,0.20), transparent 32%),
    linear-gradient(135deg, #153f25 0%, #285f2f 64%, #4f802c 100%);
}

.auth-intro {
  max-width: 510px;
}

.auth-logo {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 0 30px;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: left center;
}

.auth-intro h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.8rem, 4.4vw, 4.6rem);
  line-height: 0.98;
}

.auth-intro > p {
  margin: 22px 0 0;
  color: rgba(255,255,255,0.80);
  font-size: 1.08rem;
  line-height: 1.75;
}

.auth-intro .auth-footnote {
  margin-top: 32px;
  font-size: 0.96rem;
}

.auth-footnote a,
.auth-admin-link a {
  color: #8fc42e;
  font-weight: 700;
}

.auth-card {
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(8,35,17,0.26);
}

.auth-card-heading {
  margin-bottom: 30px;
}

.auth-card-heading .section-label {
  margin-bottom: 10px;
}

.auth-card h2 {
  margin: 0;
  color: #1d472c;
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.auth-card-heading p {
  margin: 10px 0 0;
  color: #657162;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #264630;
  font-size: 0.94rem;
  font-weight: 700;
}

.auth-form label span {
  margin-left: 6px;
  color: #7a897d;
  font-size: 0.78rem;
  font-weight: 500;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d4ddd1;
  border-radius: 8px;
  background: #fbfcfa;
  color: #1f2921;
  font: inherit;
}

.auth-form input:focus {
  outline: 0;
  border-color: #5e8c48;
  box-shadow: 0 0 0 3px rgba(167,203,44,0.18);
}

.auth-file-field input[type="file"] {
  padding: 11px;
  background: #f7f9f5;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #78a109, #94c52f);
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-submit:hover {
  background: linear-gradient(90deg, #68920b, #84b422);
}

.auth-card .message {
  min-height: 22px;
  margin: 0;
}

.auth-admin-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e1e7de;
  color: #657162;
  font-size: 0.94rem;
}

.auth-message {
  margin-top: 16px !important;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-intro {
    max-width: 640px;
  }
}

@media (max-width: 600px) {
  .auth-layout {
    gap: 38px;
    padding-top: 108px;
    padding-bottom: 48px;
  }

  .auth-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }

  .auth-intro h1 {
    font-size: clamp(2.4rem, 13vw, 3.3rem);
  }

  .auth-card {
    padding: 28px 22px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-admin-link {
    display: grid;
  }
}

/* Player profile */
.profile-page {
  background: var(--bg);
}

.profile-page main {
  display: block;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  min-height: 100vh;
  padding-top: 72px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(44px, 6vw, 92px) clamp(24px, 5vw, 72px);
  color: #ffffff;
  background:
    radial-gradient(circle at 5% 80%, rgba(167,203,44,0.18), transparent 38%),
    linear-gradient(160deg, #1f2921, #38551b);
}

.profile-sidebar .profile-image {
  width: 138px;
  height: 138px;
  margin-bottom: 34px;
  border: 2px solid rgba(255,255,255,0.34);
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  object-fit: cover;
}

.profile-sidebar .section-label {
  color: #b9d866;
}

.profile-sidebar h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3.6vw, 3.7rem);
  line-height: 0.98;
}

.profile-email,
.profile-location {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}

.profile-location {
  margin-top: 6px;
  color: rgba(255,255,255,0.62);
}

.profile-stat {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.20);
}

.profile-stat strong {
  color: #ffffff;
  font-family: var(--display-font);
  font-size: 2.1rem;
}

.profile-stat span {
  color: rgba(255,255,255,0.66);
  font-size: 0.9rem;
}

.profile-logout {
  margin-top: auto;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.32);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: 800 0.95rem var(--display-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-content {
  padding: clamp(44px, 6vw, 88px) clamp(24px, 6vw, 96px);
  background: var(--bg);
}

.profile-page-heading {
  max-width: 700px;
  margin-bottom: 52px;
}

.profile-page-heading h2,
.profile-section-heading h3 {
  margin: 0;
  color: var(--text);
}

.profile-page-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
}

.profile-page-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.profile-bookings,
.profile-settings {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #dce5d8;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(30,76,47,0.06);
}

.profile-settings {
  margin-top: 26px;
}

.profile-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.profile-section-heading .section-label {
  margin-bottom: 8px;
}

.profile-section-heading h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

.profile-action-link,
.profile-view-booking {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.profile-inline-action {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: 800 1rem var(--display-font);
}

.profile-booking-list {
  display: grid;
  gap: 0;
}

.profile-booking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #e1e8de;
}

.profile-booking-item:first-child {
  border-top: 0;
}

.booking-date {
  display: block;
  margin-bottom: 8px;
  color: #1d472c;
  font: 800 1.15rem var(--display-font);
  letter-spacing: 0.04em;
}

.profile-booking-item p {
  margin: 5px 0 0;
  color: #657162;
  line-height: 1.5;
}

.profile-booking-item p strong {
  display: inline-block;
  min-width: 78px;
  margin-right: 8px;
  color: #3e5844;
}

.profile-view-booking {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #cbdcc1;
  border-radius: 7px;
  background: #f3f8ed;
}

.profile-tournament-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 7px;
  background: var(--accent-2);
  color: #1f2921;
  font: 800 1rem var(--display-font);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
}

.profile-tournament-action:hover {
  background: #b6d843;
}

.profile-empty-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: 800 1rem var(--display-font);
  text-decoration: underline;
}

.profile-dialog {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 31, 18, 0.72);
}

.profile-dialog.hidden {
  display: none;
}

.profile-dialog-content {
  width: min(840px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #dce5d8;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 64px rgba(8, 28, 15, 0.32);
}

.profile-dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.profile-dialog-heading h2,
.profile-tournament-item h3,
.profile-court-column h3 {
  margin: 0;
  color: var(--text);
}

.profile-dialog-close {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbdcc1;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font: 800 0.9rem var(--display-font);
}

.profile-dialog-list {
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.profile-tournament-item {
  padding: 20px;
  border: 1px solid #dce5d8;
  border-left: 4px solid var(--accent-2);
  border-radius: 7px;
  background: #fbfcfa;
}

.profile-tournament-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-tournament-item span {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
}

.profile-date-selection {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  gap: 14px;
  margin-bottom: 24px;
}

.profile-date-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-date-list::-webkit-scrollbar {
  display: none;
}

.profile-date-nav,
.profile-date-pill {
  border: 1px solid #d8e1d3;
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--accent);
}

.profile-date-nav {
  min-height: 74px;
  padding: 0;
  font-size: 1.4rem;
}

.profile-date-pill {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 12px 10px;
  text-align: center;
}

.profile-date-pill span {
  font: 800 0.78rem var(--display-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-date-pill strong {
  font: 800 1.1rem var(--display-font);
}

.profile-date-pill.active {
  border-color: #285f2f;
  background: #285f2f;
  color: #ffffff;
}

.profile-availability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
}

.profile-court-header {
  padding: 14px;
  border-radius: 7px;
  background: #315c2c;
  color: #ffffff;
  font: 800 1.1rem var(--display-font);
  text-align: center;
}

.profile-schedule-section {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 8px 0 0;
  color: var(--accent);
  font: 800 1rem var(--display-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-slot-button {
  min-height: 52px;
  padding: 10px;
  border: 1px solid rgba(95,117,36,0.24);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  background: #eaf3d7;
  color: #395718;
}

.profile-slot-button.is-booked {
  background: #f5e3e6;
  color: #8a3542;
  cursor: not-allowed;
}

.profile-slot-button.is-selected {
  border-color: #315c2c;
  background: #315c2c;
  color: #ffffff;
}

.profile-booking-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #dce5d8;
  color: var(--muted);
}

.profile-booking-actions button,
.profile-tournament-join {
  background: var(--accent-2);
  color: #1f2921;
}

.profile-booking-actions button:disabled,
.profile-tournament-join:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.profile-booking-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.profile-tournament-join {
  margin-top: 16px;
  border-radius: 7px;
}

.profile-empty-state {
  padding: 30px;
  border: 1px dashed #cbdcc1;
  border-radius: 8px;
  background: #f8faf6;
}

.profile-empty-state p {
  margin: 0 0 10px;
  color: #657162;
}

.profile-empty-state a {
  color: #28593a;
  font-weight: 800;
}

.profile-form {
  display: grid;
  gap: 18px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-form label {
  display: grid;
  gap: 8px;
  color: #264630;
  font-size: 0.94rem;
  font-weight: 700;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4ddd1;
  border-radius: 8px;
  background: #fbfcfa;
  color: #1f2921;
  font: inherit;
}

.profile-form input {
  min-height: 50px;
}

.profile-form textarea {
  min-height: 120px;
  resize: vertical;
}

.profile-form input:focus,
.profile-form textarea:focus {
  outline: 0;
  border-color: #5e8c48;
  box-shadow: 0 0 0 3px rgba(167,203,44,0.18);
}

.profile-form input[type="file"] {
  padding: 11px;
}

.profile-form .message {
  min-height: 22px;
  margin: 0;
}

@media (max-width: 900px) {
  .profile-dashboard {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    min-height: 0;
  }

  .profile-logout {
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .profile-dashboard {
    padding-top: 60px;
  }

  .profile-sidebar,
  .profile-content {
    padding: 42px 24px;
  }

  .profile-sidebar .profile-image {
    width: 112px;
    height: 112px;
  }

  .profile-section-heading,
  .profile-booking-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-dialog {
    padding: 12px;
  }

  .profile-dialog-content {
    max-height: calc(100vh - 24px);
    padding: 24px;
  }

  .profile-dialog-heading {
    align-items: center;
  }

  .profile-availability-list {
    grid-template-columns: 1fr;
  }
}

/* Tournaments */
.tournaments-page {
  background: #f4f7f1;
}

.tournaments-page main {
  display: block;
}

.tournaments-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  min-height: 430px;
  padding: 144px clamp(24px, 8vw, 132px) 76px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8,28,15,0.88) 0%, rgba(10,38,19,0.68) 44%, rgba(10,38,19,0.26) 100%),
    url("COURT.png") center / cover no-repeat;
}

.tournaments-hero > div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.tournaments-hero .section-label {
  color: #c3df73;
}

.tournaments-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  line-height: 0.94;
}

.tournaments-hero p {
  max-width: 60ch;
  margin: 20px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  line-height: 1.7;
}

.tournaments-hero img {
  flex: 0 0 auto;
  width: min(220px, 26vw);
  height: auto;
  transform: scale(1.18);
  filter: drop-shadow(0 20px 28px rgba(0,0,0,0.22));
}

.tournaments-content {
  padding: 74px clamp(24px, 8vw, 132px) 96px;
  background: #f8faf6;
}

.tournaments-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.tournaments-heading .section-label {
  margin-bottom: 9px;
}

.tournaments-heading h2 {
  margin: 0;
  color: #1d472c;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1;
}

.tournaments-browse-link,
.tournament-details-link {
  color: #28593a;
  font-weight: 800;
  text-decoration: none;
}

.tournament-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tournament-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 28px;
  border: 1px solid #dbe5d7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(30,76,47,0.06);
}

.tournament-item h3 {
  margin: 16px 0 12px;
  color: #1d472c;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1;
}

.tournament-item h3 a {
  color: inherit;
  text-decoration: none;
}

.tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  color: #59715e;
  font: 700 0.9rem var(--display-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tournament-meta span + span::before {
  content: "/";
  margin-right: 16px;
  color: #a6b8a4;
}

.tournament-description {
  min-height: 52px;
  margin: 0;
  color: #657162;
  line-height: 1.65;
}

.tournament-fee {
  margin: 20px 0 0 !important;
  color: #28593a !important;
  font-weight: 800;
}

.tournament-badges {
  flex-wrap: wrap;
  margin-top: 18px;
}

.tournament-badges .badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf3e8;
  color: #376b1f;
  font: 700 0.82rem var(--display-font);
}

.tournament-badges .badge.paid {
  background: #e0efd3;
  color: #376b1f;
}

.tournament-badges .badge.unpaid {
  background: #fff0c9;
  color: #805b11;
}

.tournament-participants {
  display: none;
}

.tournament-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e1e8de;
}

.tournament-join-button {
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  background: #28593a;
  color: #ffffff;
  cursor: pointer;
  font: 800 0.94rem var(--display-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tournament-join-button:hover {
  background: #1d472c;
}

.tournament-join-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.tournaments-empty-state {
  padding: 42px;
  border: 1px dashed #c9dbc1;
  border-radius: 10px;
  background: #ffffff;
  color: #657162;
  text-align: center;
}

@media (max-width: 700px) {
  .tournaments-hero {
    min-height: 0;
    padding-top: 118px;
    padding-bottom: 58px;
  }

  .tournaments-hero img {
    display: none;
  }

  .tournaments-heading,
  .tournament-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Booking and tournament details */
.booking-detail-layout { display:grid; grid-template-columns:minmax(250px,.62fr) minmax(0,1.38fr); min-height:100vh; padding-top:72px; }
.booking-detail-sidebar { min-height:calc(100vh - 72px); }
.booking-back-link { margin-top:32px; color:#c3df73; font-weight:800; text-decoration:none; }
.booking-detail-content { padding:clamp(44px,6vw,88px) clamp(24px,6vw,96px); background:#f8faf6; }
.booking-info-card,.booking-edit-card { padding:clamp(24px,4vw,40px); border:1px solid #dce5d8; border-radius:10px; background:#fff; box-shadow:0 16px 36px rgba(30,76,47,.06); }
.booking-edit-card { margin-top:26px; }
.booking-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:0; }
.booking-info-grid div { padding-bottom:16px; border-bottom:1px solid #e1e8de; }.booking-info-grid .booking-info-wide { grid-column:1 / -1; }
.booking-info-grid dt { margin-bottom:7px; color:#59715e; font:700 .85rem var(--display-font); letter-spacing:.06em; text-transform:uppercase; }.booking-info-grid dd { margin:0; color:#1d472c; font-weight:700; line-height:1.45; }
.tournament-detail-page { background:#f8faf6; }.tournament-detail-page main { display:block; }
.tournament-detail-hero { padding:142px clamp(24px,8vw,132px) 68px; color:#fff; background:linear-gradient(135deg,#153f25,#285f2f 65%,#4f802c); }.tournament-detail-hero .section-label { color:#c3df73; }.tournament-detail-hero h1 { max-width:14ch; margin:0; font-size:clamp(3rem,5vw,5rem); line-height:.95; }.tournament-detail-hero p { margin:20px 0 0; color:rgba(255,255,255,.8); font:700 1rem var(--display-font); letter-spacing:.05em; text-transform:uppercase; }
.tournament-detail-content { max-width:1180px; margin:0 auto; padding:64px clamp(24px,6vw,80px) 96px; }.tournament-detail-summary { max-width:760px; }.tournament-detail-summary p { color:#5d6b60; font-size:1.08rem; line-height:1.75; }.tournament-detail-summary .tournament-detail-fee { color:#28593a; font-weight:800; }
.tournament-detail-actions { display:flex; align-items:center; gap:16px; margin:30px 0 48px; }.tournament-detail-actions a { color:#28593a; font-weight:800; text-decoration:none; }
.tournament-participants-section { padding:clamp(24px,4vw,40px); border:1px solid #dce5d8; border-radius:10px; background:#fff; box-shadow:0 16px 36px rgba(30,76,47,.06); }.participants-table { width:100%; border-collapse:collapse; }.participants-table th,.participants-table td { padding:14px 12px; border-bottom:1px solid #e1e8de; text-align:left; }.participants-table th { color:#59715e; font:700 .82rem var(--display-font); letter-spacing:.06em; text-transform:uppercase; }
@media (max-width:900px) { .booking-detail-layout { grid-template-columns:1fr; }.booking-detail-sidebar { min-height:0; }.booking-info-grid { grid-template-columns:1fr; }.booking-info-grid .booking-info-wide { grid-column:auto; } }
@media (max-width:600px) { .booking-detail-layout { padding-top:60px; }.booking-detail-content { padding:42px 24px; }.tournament-detail-hero { padding-top:118px; }.tournament-detail-actions { align-items:flex-start; flex-direction:column; }.tournament-participants-section { overflow-x:auto; } }

/* Admin workspace baseline */
.admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 112px clamp(24px, 5vw, 72px) 72px;
  display: grid;
  gap: 24px;
  background: #f4f7f1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px clamp(24px, 5vw, 72px) 72px;
}

.admin-page {
  background: #f4f7f1;
}

.admin-site-header {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 72px;
  background: #173b27;
  box-shadow: 0 10px 28px rgba(9,38,19,0.14);
}

.admin-site-header {
  position: relative !important;
}

body.admin-page .admin-site-header .site-nav {
  position: relative !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px;
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 0 clamp(24px, 5vw, 72px) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.admin-page .admin-site-header .site-nav .brand-link {
  flex: 0 0 auto !important;
  margin-right: auto !important;
}

body.admin-page .admin-site-header .site-nav .nav-link {
  flex: 0 0 auto !important;
  padding: 18px 16px !important;
}

.admin-page .admin-shell {
  padding-top: 48px;
}

.admin-filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
  gap: 14px;
  align-items: end;
}

.admin-filter-form label {
  margin: 0;
}

.admin-filter-form input {
  margin-top: 6px;
}

.tournament-admin-list {
  display: grid;
  gap: 18px;
}

.tournament-admin-card {
  padding: 22px;
  border: 1px solid #dce5d8;
  border-radius: 8px;
  background: #fbfcfa;
}

.tournament-admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e1e8de;
}

.tournament-admin-heading h2 {
  margin: 0;
}

.tournament-admin-description {
  margin: 16px 0 0;
  color: #405447;
  line-height: 1.55;
}

.tournament-admin-fee {
  margin: 12px 0 16px;
  color: #28593a;
  font-weight: 800;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce5d8;
}

.admin-title,
.container > h1 {
  margin: 0;
  color: #1d472c;
  font: 800 clamp(2rem, 3.6vw, 3.5rem) var(--display-font);
  line-height: 1;
}

.admin-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-actions a,
.admin-actions button,
.admin-table button,
.actions button,
.admin-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #cbdcc1;
  border-radius: 7px;
  background: #ffffff;
  color: #28593a;
  cursor: pointer;
  font: 800 0.88rem var(--display-font);
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-actions .primary,
.admin-form button.primary,
.admin-form button[type="submit"] {
  border-color: #28593a;
  background: #28593a;
  color: #ffffff;
}

.admin-section,
.container {
  border: 1px solid #dce5d8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(30,76,47,.06);
}

.admin-section {
  padding: clamp(22px, 3vw, 34px);
}

.admin-section h2 {
  color: #1d472c;
  font: 800 1.65rem var(--display-font);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e1e8de;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #59715e;
  font: 800 .82rem var(--display-font);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-table td {
  color: #405447;
  font-size: .92rem;
}

.admin-table tr:hover td {
  background: #f7faf4;
}

.admin-form input,
.admin-form textarea,
.admin-section input,
.admin-section textarea,
.admin-section select {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4ddd1;
  border-radius: 7px;
  background: #fbfcfa;
  color: #1f2921;
  font: inherit;
}

.admin-form textarea,
.admin-section textarea {
  min-height: 110px;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-section input:focus,
.admin-section textarea:focus {
  outline: 0;
  border-color: #5e8c48;
  box-shadow: 0 0 0 3px rgba(167,203,44,.18);
}

.admin-msg,
.message.success {
  border: 1px solid #cbe0b8;
  background: #edf7e5;
  color: #376b1f;
}

.message.error {
  border: 1px solid #f1c3ca;
  background: #fff1f2;
  color: #9a3445;
}

.back-link,
.admin-topbar a {
  color: #28593a;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 700px) {
  .admin-shell,
  .container { padding: 92px 18px 46px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-table { min-width: 720px; }
  .admin-section { overflow-x: auto; }
  .admin-filter-form { grid-template-columns: 1fr; }
  .tournament-admin-heading { flex-direction: column; }

  .admin-site-header .site-nav {
    min-height: 60px;
    padding-inline: 18px;
    justify-content: flex-start;
  }

  .admin-site-header .site-nav .brand-link {
    flex: 0 0 auto;
    margin-right: 12px;
  }

  .admin-site-header .site-nav .nav-link {
    flex: 0 0 auto;
    padding: 16px 12px;
  }

  .admin-page .admin-shell {
    gap: 18px;
    padding: 32px 18px 46px;
  }

  .admin-topbar {
    gap: 16px;
    padding-bottom: 18px;
  }

  .admin-title {
    font-size: 2rem;
  }

  .admin-topbar .admin-actions,
  .tournament-admin-heading .admin-actions {
    width: 100%;
  }

  .admin-topbar .admin-actions a,
  .tournament-admin-heading .admin-actions a,
  .tournament-admin-heading .admin-actions form {
    flex: 1 1 140px;
  }

  .admin-topbar .admin-actions a,
  .tournament-admin-heading .admin-actions a,
  .tournament-admin-heading .admin-actions button {
    width: 100%;
  }

  .admin-section {
    padding: 18px;
  }

  .admin-form label {
    margin-top: 16px;
  }

  .admin-form input,
  .admin-form textarea,
  .admin-section input:not([type="checkbox"]):not([type="file"]),
  .admin-section textarea,
  .admin-section select {
    width: 100%;
  }

  .tournament-admin-card {
    padding: 16px;
  }

  .admin-table-wrap {
    margin-inline: -18px;
    padding-inline: 18px;
  }
}

.nav-menu-toggle {
  display: none;
}

@media (max-width: 700px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-height: 60px;
    padding: 0 16px;
    overflow: visible;
  }

  .site-nav .nav-link {
    display: none;
  }

  .nav-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 7px;
    background: rgba(255,255,255,0.10);
  }

  .nav-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
  }

  .site-nav.menu-open {
    align-content: flex-start;
    padding-bottom: 12px;
  }

  .site-nav.menu-open .nav-menu-toggle {
    margin-bottom: 8px;
  }

  .site-nav.menu-open .nav-link {
    display: block;
    flex: 0 0 100%;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    text-align: left;
  }

  .site-nav.menu-open .nav-link.active {
    border-bottom-color: #a7cb2c;
  }
}

@media (max-width: 600px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }

  main > section {
    min-width: 0;
  }

  .schedule-panel {
    padding: 32px 16px 48px;
  }

  .schedule-summary {
    display: none;
  }

  .schedule-header,
  .schedule-heading-row,
  .date-selection-row,
  .schedule-toolbar {
    min-width: 0;
  }

  .date-selection-row {
    gap: 8px;
    padding: 0;
  }

  .date-nav {
    min-width: 34px;
    min-height: 44px;
    padding: 0;
  }

  .date-selection-list {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: visible;
    padding: 2px 0;
    scroll-snap-type: none;
  }

  .date-pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 4px;
  }

  .date-pill-day {
    font-size: 0.62rem;
  }

  .date-pill-number {
    font-size: 0.82rem;
  }

  .schedule-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #confirmBookingButton {
    grid-column: 1 / -1;
    min-height: 52px;
  }

  .schedule-toolbar button {
    min-height: 44px;
    padding: 10px 8px;
  }

  .schedule-panel .table-wrap {
    padding: 12px;
  }

  .schedule-grid {
    gap: 8px;
    grid-auto-rows: minmax(52px, auto);
  }

  .schedule-grid .header {
    padding: 12px 6px;
    font-size: 0.85rem;
  }

  .schedule-section {
    padding: 12px 2px 4px;
    font-size: 0.8rem;
  }

  .slot-button {
    min-height: 52px;
    padding: 10px 4px;
    border-radius: 9px;
    font-size: 0.8rem;
  }

  .slot-button.booked {
    background: linear-gradient(180deg, rgba(250,230,232,0.98), rgba(255,244,244,0.98)) !important;
    color: #7a2730 !important;
    border-color: rgba(181,74,90,0.42) !important;
    box-shadow: 0 10px 20px rgba(181,74,90,0.08) !important;
    opacity: 1 !important;
  }

  .slot-button.booked .slot-label {
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
  }

  .modal {
    align-items: center;
    padding: 12px;
  }

  .modal-content {
    width: min(100%, 520px);
    max-height: calc(100dvh - 24px);
    margin: 0;
    padding: 20px;
    border-radius: 18px;
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    padding: 12px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.98) 30%);
  }

  body.has-mobile-reservation {
    padding-bottom: 184px;
  }

  .mobile-reservation-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    gap: 14px;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(27,72,46,0.98), rgba(19,57,37,0.98));
    border-top: 1px solid rgba(167,203,44,0.28);
    box-shadow: 0 -18px 36px rgba(8,28,15,0.38);
    backdrop-filter: blur(10px);
    border-radius: 24px 24px 0 0;
    transform: translateY(110%);
    transition: transform 0.2s ease;
  }

  .mobile-reservation-bar.is-visible {
    transform: translateY(0);
  }

  .mobile-reservation-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
  }

  .mobile-reservation-count {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    font: 800 1.2rem var(--display-font);
  }

  .mobile-reservation-summary strong,
  .mobile-reservation-summary span:not(.mobile-reservation-count) {
    display: block;
  }

  .mobile-reservation-summary strong {
    font: 800 1.75rem var(--display-font);
  }

  .mobile-reservation-summary span:not(.mobile-reservation-count) {
    margin-top: 2px;
    color: rgba(255,255,255,0.74);
    font-size: 0.82rem;
  }

  #mobileReserveButton {
    min-height: 58px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fff3, #e8f6c7);
    color: #214b31;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 18px rgba(8,28,15,0.22);
    text-transform: uppercase;
  }
}

@media (min-width: 601px) {
  .mobile-reservation-bar {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(460px, calc(100vw - 56px));
    padding: 16px;
    border-radius: 8px;
    background: #173b27;
    box-shadow: 0 16px 36px rgba(8,28,15,0.28);
    transform: translateY(calc(100% + 36px));
    transition: transform 0.2s ease;
  }

  .mobile-reservation-bar.is-visible {
    transform: translateY(0);
  }

  .mobile-reservation-summary {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 12px;
    color: #ffffff;
  }

  .mobile-reservation-count {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    font: 800 1.15rem var(--display-font);
  }

  .mobile-reservation-summary strong,
  .mobile-reservation-summary span:not(.mobile-reservation-count) {
    display: block;
  }

  .mobile-reservation-summary strong {
    font: 800 1.45rem var(--display-font);
  }

  .mobile-reservation-summary span:not(.mobile-reservation-count) {
    margin-top: 2px;
    color: rgba(255,255,255,0.74);
    font-size: 0.82rem;
  }

  #mobileReserveButton {
    min-height: 46px;
    padding-inline: 20px;
    border-radius: 7px;
    background: #ffffff;
    color: #28593a;
    font-size: 1rem;
    text-transform: uppercase;
  }
}

/* Hide the floating range tooltip on small/mobile screens where touch interaction is used */
@media (max-width: 600px) {
  #rangeTooltip,
  .range-tooltip {
    display: none !important;
    pointer-events: none !important;
  }
}
