:root {
  --forest-950: #0b2018;
  --forest-900: #102a20;
  --forest-800: #183b2d;
  --forest-700: #24513d;
  --forest-600: #356b51;
  --sage-500: #6f967e;
  --sage-300: #b9cdbf;
  --sage-100: #e8f0ea;
  --chalk: #f7f6ef;
  --white: #fffef9;
  --ink: #18231d;
  --muted: #66716b;
  --line: #dfe5df;
  --clay: #c66f45;
  --hard: #547d8e;
  --indoor: #7669a6;
  --success: #26734b;
  --warning: #9b651d;
  --danger: #a33c36;
  --shadow: 0 20px 60px rgba(16, 42, 32, 0.11);
  --shadow-soft: 0 8px 28px rgba(16, 42, 32, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--chalk);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 10%, rgba(111, 150, 126, 0.14), transparent 26rem),
    radial-gradient(circle at 95% 90%, rgba(198, 111, 69, 0.10), transparent 30rem),
    var(--chalk);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: 14%;
  left: -110px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(53, 107, 81, 0.12);
}

.ambient-two {
  right: -180px;
  bottom: 10%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(198, 111, 69, 0.12);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest-900);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(15, 42, 31, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-name {
  max-width: 220px;
  margin-right: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.center-stage {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid var(--sage-100);
  border-top-color: var(--forest-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-layout {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding: 40px 4vw 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--forest-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-story h1,
.section-heading h1,
.club-hero h1 {
  margin: 0;
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.auth-story h1 {
  max-width: 700px;
  font-size: clamp(48px, 6.8vw, 84px);
  line-height: 0.98;
}

.auth-story h1 em {
  color: var(--clay);
  font-weight: 400;
}

.auth-lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.court-summary {
  width: min(520px, 100%);
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(24, 59, 45, 0.18);
  border-bottom: 1px solid rgba(24, 59, 45, 0.18);
}

.court-summary div {
  padding: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.court-summary div + div {
  padding-left: 24px;
  border-left: 1px solid rgba(24, 59, 45, 0.18);
}

.court-summary strong {
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
}

.court-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-card {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(24, 59, 45, 0.11);
  border-radius: var(--radius-xl);
  background: rgba(255, 254, 249, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.secure-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57a976;
  box-shadow: 0 0 0 5px rgba(87, 169, 118, 0.12);
}

.auth-card h2 {
  margin: 24px 0 8px;
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.auth-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card form {
  margin-top: 30px;
}

label {
  display: block;
  margin: 0 0 8px;
  color: var(--forest-800);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #ccd6cf;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgba(53, 107, 81, 0.1);
}

.auth-card input {
  margin-bottom: 18px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 62px;
}

.password-field button {
  position: absolute;
  top: 0;
  right: 4px;
  height: 48px;
  border: 0;
  color: var(--forest-600);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-primary {
  color: #fff;
  background: var(--forest-800);
  box-shadow: 0 9px 24px rgba(24, 59, 45, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--forest-900);
}

.button-secondary {
  border-color: var(--line);
  color: var(--forest-800);
  background: #fff;
}

.button-danger {
  border-color: rgba(163, 60, 54, 0.18);
  color: var(--danger);
  background: #fff8f7;
}

.button-ghost {
  color: var(--forest-700);
  background: transparent;
}

.button-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 12px;
}

.button-full {
  width: 100%;
  margin-top: 8px;
}

.form-error {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(163, 60, 54, 0.18);
  border-radius: 9px;
  color: var(--danger);
  background: #fff5f3;
  font-size: 13px;
  line-height: 1.45;
}

.auth-footnote {
  margin-top: 24px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55 !important;
}

.club-stage {
  min-height: calc(100vh - 190px);
  display: grid;
  place-content: center;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.section-heading > p:last-child {
  margin: 14px auto 0;
  color: var(--muted);
}

.club-grid {
  width: min(720px, 100%);
  margin: 44px auto 0;
}

.club-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid rgba(24, 59, 45, 0.12);
  border-radius: var(--radius-xl);
  text-align: left;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.club-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.club-card-main {
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.club-card-logo {
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px solid rgba(201, 169, 100, 0.45);
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 12px 28px rgba(21, 38, 31, 0.16);
}

.club-card-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateX(-3px);
}

.club-card-copy {
  min-width: 0;
}

.club-card h2 {
  margin: 10px 0 9px;
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
}

.club-card p {
  margin: 0;
  color: var(--muted);
}

.club-card-courts {
  min-width: 160px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #fff;
  background: var(--forest-800);
}

.club-card-courts strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
}

.club-card-courts span {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.dashboard > * {
  min-width: 0;
}

.club-hero {
  min-height: 244px;
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    linear-gradient(110deg, rgba(16, 42, 32, 0.98), rgba(36, 81, 61, 0.92)),
    var(--forest-900);
  box-shadow: var(--shadow);
}

.club-hero .eyebrow {
  margin-top: 28px;
  color: #bcd2c3;
}

.club-hero h1 {
  color: #fff;
  font-size: clamp(44px, 6vw, 70px);
}

.club-hero p:last-child {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.status-pill,
.role-pill {
  min-height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill > span:first-child {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #95d47c;
  box-shadow: 0 0 0 4px rgba(149, 212, 124, 0.12);
}

.hero-stat {
  min-width: 190px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.hero-stat span,
.hero-stat small,
.hero-stat strong {
  display: block;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat strong {
  margin: 8px 0 1px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 500;
}

.hero-stat strong.text-value {
  font-size: 30px;
}

.hero-stat small {
  color: rgba(255, 255, 255, 0.58);
}

.tabs,
.manager-nav {
  padding: 6px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.74);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar,
.manager-nav::-webkit-scrollbar {
  display: none;
}

.tab,
.manager-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  white-space: nowrap;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.tab.active,
.manager-tab.active {
  color: var(--forest-900);
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 42, 32, 0.08);
}

.tab-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(24, 59, 45, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 254, 249, 0.92);
  box-shadow: var(--shadow-soft);
}

.access-card {
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.access-card.approved {
  border-color: rgba(38, 115, 75, 0.24);
  background: linear-gradient(135deg, #f4fbf6, #fff);
}

.access-card.pending {
  border-color: rgba(155, 101, 29, 0.22);
  background: linear-gradient(135deg, #fffaf1, #fff);
}

.access-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  border-radius: 16px;
  color: #fff;
  background: var(--forest-700);
  font-size: 24px;
}

.access-copy {
  flex: 1;
}

.access-copy h2 {
  margin: 0 0 7px;
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.access-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.panel-heading h2,
.manager-section h2 {
  margin: 0;
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.date-control {
  width: 190px;
}

.date-control input {
  min-height: 42px;
}

.availability-toolbar {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.surface-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.surface-filter {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.surface-filter.active {
  border-color: var(--forest-700);
  color: #fff;
  background: var(--forest-700);
}

.surface-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.surface-dot.clay { background: var(--clay); }
.surface-dot.hard { background: var(--hard); }
.surface-dot.indoor { background: var(--indoor); }

.availability-view-tabs {
  padding: 3px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sage-100);
}

.availability-view-tab {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  transition: color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.availability-view-tab.active {
  color: var(--forest-900);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(16, 42, 32, 0.09);
}

.inline-status,
.empty-state {
  padding: 30px 20px;
  color: var(--muted);
  text-align: center;
}

.availability-overview {
  min-height: 0;
  margin-bottom: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(38, 115, 75, 0.16);
  border-radius: 13px;
  color: var(--forest-800);
  background: #f4faf6;
}

.availability-overview:empty {
  display: none;
}

.availability-overview > strong {
  font-size: 13px;
}

.availability-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.availability-breakdown span {
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.availability-breakdown .hours-pill {
  color: var(--forest-800);
  background: #e7f3eb;
}

.availability-grid {
  display: grid;
  gap: 14px;
}

.availability-grid.view-court {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.time-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
}

.time-label {
  padding-top: 14px;
}

.time-label strong,
.time-label small {
  display: block;
}

.time-label strong {
  color: var(--forest-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
}

.time-label small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.slot-button {
  min-height: 96px;
  padding: 10px 10px 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.slot-button.clay {
  background: linear-gradient(135deg, #fff 62%, #f7e9e0);
}

.slot-button.hard {
  background: linear-gradient(135deg, #fff 62%, #e5eff5);
}

.slot-button.indoor_hard {
  background: linear-gradient(135deg, #fff 62%, #e8eaf0);
}

.slot-button:hover {
  transform: translateY(-1px);
  border-color: var(--sage-500);
  box-shadow: 0 7px 18px rgba(16, 42, 32, 0.08);
}

.slot-copy {
  min-width: 0;
  flex: 1;
}

.slot-button strong,
.slot-button small {
  display: block;
}

.slot-button strong {
  margin-bottom: 3px;
  color: var(--forest-900);
  font-size: 13px;
}

.slot-button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.court-visual {
  --court-color: #4f83a5;
  --court-frame: #dce9ef;
  position: relative;
  width: 86px;
  aspect-ratio: 1.55;
  flex: 0 0 auto;
  overflow: hidden;
  border: 5px solid var(--court-frame);
  border-radius: 9px;
  background: var(--court-color);
  box-shadow:
    inset 0 0 0 1px rgba(15, 32, 38, 0.08),
    0 3px 10px rgba(16, 42, 32, 0.10);
}

.court-visual.wide {
  width: 142px;
  border-width: 6px;
  border-radius: 11px;
}

.court-visual.clay {
  --court-color: #bd6b43;
  --court-frame: #ead0be;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.05), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(89, 43, 22, 0.035) 8px),
    var(--court-color);
}

.court-visual.hard {
  --court-color: #3979a8;
  --court-frame: #d8e7f0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 55%),
    var(--court-color);
}

.court-visual.indoor_hard {
  --court-color: #526f86;
  --court-frame: #263740;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(8, 23, 31, 0.10) 19px 20px),
    var(--court-color);
  box-shadow:
    inset 0 8px 12px rgba(6, 17, 23, 0.22),
    0 3px 10px rgba(16, 42, 32, 0.14);
}

.court-boundary {
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.94);
}

.court-boundary::before,
.court-boundary::after,
.court-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.court-boundary::before {
  top: 50%;
  right: 25%;
  left: 25%;
  border-top: 1px solid rgba(255, 255, 255, 0.88);
}

.court-boundary::after {
  inset: 0 25%;
  border-right: 1px solid rgba(255, 255, 255, 0.88);
  border-left: 1px solid rgba(255, 255, 255, 0.88);
}

.court-visual::after {
  top: 3px;
  bottom: 3px;
  left: calc(50% - 1px);
  width: 2px;
  background: rgba(245, 248, 247, 0.96);
  box-shadow: 1px 0 1px rgba(14, 32, 39, 0.35);
}

.court-row {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(16, 42, 32, 0.05);
}

.court-row.clay {
  background: linear-gradient(145deg, #fff 68%, #f8ebe3);
}

.court-row.hard {
  background: linear-gradient(145deg, #fff 68%, #e8f1f6);
}

.court-row.indoor_hard {
  background: linear-gradient(145deg, #fff 68%, #e6ebed);
}

.court-row-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.court-row-title {
  min-width: 0;
}

.court-row-title strong,
.court-row-title small {
  display: block;
}

.court-row-title strong {
  margin-bottom: 5px;
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
}

.court-row-title small,
.court-time-heading {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.court-time-heading {
  margin: 16px 0 8px;
}

.court-time-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.court-time-button {
  min-height: 54px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--forest-900);
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.court-time-button:hover {
  transform: translateY(-1px);
  border-color: var(--sage-500);
  box-shadow: 0 5px 13px rgba(16, 42, 32, 0.09);
}

.court-time-button strong,
.court-time-button small {
  display: block;
}

.court-time-button strong {
  font-size: 14px;
}

.court-time-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slot-surface {
  width: 10px;
  height: 32px;
  border-radius: 999px;
}

.slot-surface.clay { background: var(--clay); }
.slot-surface.hard { background: var(--hard); }
.slot-surface.indoor_hard { background: var(--indoor); }

.reservation-list,
.request-list,
.member-list {
  display: grid;
  gap: 10px;
}

.reservation-card,
.request-card,
.member-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.reservation-date {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 13px;
  color: var(--forest-900);
  background: var(--sage-100);
}

.reservation-date strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.reservation-date span {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.reservation-main {
  flex: 1;
}

.reservation-main strong {
  color: var(--forest-900);
}

.reservation-main p,
.request-card p,
.member-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.reservation-status,
.mini-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--success);
  background: #edf8f0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reservation-status.cancelled {
  color: var(--muted);
  background: #f0f1f0;
}

.manager-nav {
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
  background: #f4f6f3;
}

.manager-section h2 {
  margin-bottom: 8px;
}

.manager-section > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.manager-section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.manager-section-heading .eyebrow {
  margin-bottom: 8px;
}

.manager-section-heading h2,
.manager-section-heading p {
  margin: 0;
}

.manager-section-heading p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.manager-heading-actions,
.schedule-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.count-badge,
.schedule-summary span {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest-800);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.manager-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.manager-stat {
  min-height: 180px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.manager-stat.attention {
  border-color: rgba(155, 101, 29, 0.28);
  background: linear-gradient(145deg, #fffaf0, #fff);
}

.manager-stat > strong {
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
}

.manager-stat > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manager-stat button {
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--forest-700);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.manager-quick-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-quick-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest-800);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.manager-quick-actions button:hover,
.manager-stat button:hover {
  color: var(--forest-950);
}

.manager-toolbar {
  margin-bottom: 20px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-radius: var(--radius-md);
  background: #f4f6f3;
}

.manager-toolbar > div {
  flex: 1;
}

.manager-toolbar .button {
  min-height: 42px;
}

.manager-search {
  width: min(290px, 100%);
}

.request-actions,
.member-actions {
  display: flex;
  gap: 7px;
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.manager-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.manager-card h3 {
  margin: 0 0 17px;
  color: var(--forest-900);
  font-size: 15px;
}

.closure-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 18px;
}

.closure-form .button {
  width: 100%;
  margin-top: 16px;
}

.closure-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.closure-court-field,
.closure-reason-field {
  grid-column: 1 / -1;
}

.compact-card-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact-card-heading h3 {
  margin: 0;
}

.closure-list {
  display: grid;
  gap: 9px;
}

.closure-card {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfa;
}

.closure-card strong,
.closure-card p,
.closure-card span {
  display: block;
}

.closure-card p {
  margin: 4px 0;
  color: var(--forest-700);
  font-size: 12px;
  font-weight: 700;
}

.closure-card span {
  color: var(--muted);
  font-size: 11px;
}

.coach-management-grid {
  align-items: start;
}

.coach-create-form {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 9px;
}

.compact-list .member-card {
  padding: 14px;
}

.manager-schedule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.release-mode-field {
  margin-bottom: 16px;
}

.release-mode-field select {
  width: 100%;
}

.weekly-release-controls {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.weekly-release-controls h4 {
  margin: 0;
  color: var(--forest-900);
  font-size: 13px;
}

.weekly-release-header,
.weekly-release-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(135px, 1fr) 105px;
  align-items: center;
  gap: 10px;
}

.weekly-release-header {
  margin-top: 16px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.weekly-release-list {
  margin-top: 7px;
  display: grid;
  gap: 7px;
}

.weekly-release-row {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faf7;
}

.weekly-release-row strong {
  color: var(--forest-800);
  font-size: 12px;
}

.weekly-release-row select,
.weekly-release-row input {
  width: 100%;
  min-height: 40px;
}

.operating-hours-card {
  grid-column: 1 / -1;
}

.operating-hours-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.operating-hours-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 130px auto 130px minmax(90px, auto);
  align-items: center;
  gap: 10px;
}

.operating-hours-row input[type="time"] {
  min-height: 42px;
}

.operating-hours-row.closed {
  opacity: 0.62;
}

.closed-toggle {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.closed-toggle input {
  width: 17px;
  min-height: 17px;
}

.settings-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.settings-save-state {
  color: var(--warning);
  font-size: 11px;
  font-weight: 750;
}

.settings-save-state.saved {
  color: var(--success);
}

.report-toolbar {
  margin-bottom: 22px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-radius: var(--radius-md);
  background: #f4f6f3;
}

.report-toolbar > div {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}

th {
  color: var(--muted);
  background: #f7f8f6;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.report-total {
  color: var(--forest-800);
  font-weight: 800;
}

.confirm-dialog {
  width: min(500px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(5, 20, 13, 0.3);
}

.confirm-dialog::backdrop {
  background: rgba(7, 24, 16, 0.55);
  backdrop-filter: blur(5px);
}

.confirm-dialog form {
  position: relative;
  padding: 34px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f3f0;
  font-size: 20px;
}

.confirm-dialog h2 {
  margin: 0;
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.confirm-details {
  margin: 24px 0 14px;
  padding: 20px;
  display: grid;
  gap: 10px;
  border-radius: var(--radius-md);
  background: var(--sage-100);
}

.confirm-details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.confirm-details span {
  color: var(--muted);
}

.confirm-details strong {
  color: var(--forest-900);
  text-align: right;
}

.confirm-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.manager-booking-fields {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8f9f7;
}

.manager-booking-fields select,
.manager-booking-fields input {
  min-height: 43px;
}

#manager-target-area {
  margin-top: 13px;
}

#manager-target-area > label:not(:first-child) {
  margin-top: 12px;
}

.member-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.dialog-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.toast-region {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 9px;
}

.toast {
  width: min(380px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(24, 59, 45, 0.12);
  border-radius: 12px;
  color: #fff;
  background: var(--forest-900);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.45;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  background: var(--danger);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-inline: 0;
  }

  .auth-story {
    text-align: center;
  }

  .auth-lead,
  .court-summary {
    margin-right: auto;
    margin-left: auto;
  }

  .time-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .availability-grid.view-court {
    grid-template-columns: 1fr;
  }

  .manager-grid {
    grid-template-columns: 1fr;
  }

  .manager-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closure-layout {
    grid-template-columns: 1fr;
  }

  .coach-create-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .app-shell {
    width: min(1180px, calc(100% - 24px));
  }

  .site-header {
    height: 74px;
  }

  .app-shell {
    padding-top: 18px;
  }

  .brand small,
  .session-name,
  #change-club-button {
    display: none !important;
  }

  .auth-layout {
    padding-top: 20px;
  }

  .auth-story h1 {
    font-size: 44px;
  }

  .auth-lead {
    font-size: 15px;
  }

  .court-summary div {
    padding: 16px 0;
    display: grid;
    justify-items: center;
    gap: 2px;
  }

  .court-summary div + div {
    padding-left: 0;
  }

  .auth-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .club-card {
    grid-template-columns: 1fr;
  }

  .club-card-main {
    padding: 26px 22px;
    gap: 18px;
  }

  .club-card-logo {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .club-card-courts {
    min-height: 100px;
    grid-auto-flow: column;
    gap: 8px;
  }

  .club-hero {
    min-height: 0;
    padding: 28px 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .club-hero h1 {
    font-size: 48px;
  }

  .hero-stat {
    width: 100%;
  }

  .tab-panel {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .access-card,
  .panel-heading,
  .manager-section-heading,
  .reservation-card,
  .request-card,
  .member-card {
    align-items: stretch;
    flex-direction: column;
  }

  .access-icon {
    width: 44px;
    height: 44px;
  }

  .date-control {
    width: 100%;
  }

  .availability-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .availability-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .availability-breakdown {
    justify-content: flex-start;
  }

  .availability-view-tabs {
    width: 100%;
  }

  .time-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .time-label {
    padding-top: 8px;
  }

  .time-slots {
    grid-template-columns: 1fr;
  }

  .slot-button {
    min-height: 92px;
  }

  .court-row {
    padding: 14px;
  }

  .court-row-header {
    align-items: flex-start;
  }

  .court-visual.wide {
    width: 124px;
  }

  .court-time-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .request-actions,
  .member-actions {
    width: 100%;
  }

  .manager-stat-grid,
  .closure-fields {
    grid-template-columns: 1fr;
  }

  .closure-court-field,
  .closure-reason-field {
    grid-column: auto;
  }

  .manager-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-toolbar .button,
  .manager-search {
    width: 100%;
  }

  .closure-card {
    align-items: stretch;
    flex-direction: column;
  }

  .closure-card .button {
    width: 100%;
  }

  .coach-create-form,
  .operating-hours-row {
    grid-template-columns: 1fr;
  }

  .operating-hours-row > span {
    display: none;
  }

  .manager-schedule-actions {
    justify-content: space-between;
  }

  .request-actions .button,
  .member-actions .button {
    flex: 1;
  }

  .field-grid,
  .report-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .weekly-release-header {
    display: none;
  }

  .weekly-release-row {
    grid-template-columns: 1fr 1fr;
  }

  .weekly-release-row > strong {
    grid-column: 1 / -1;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
