@import url("/fonts.css");

h1, h2, h3 {
  font-family: var(--font-display);
  font-synthesis: none;
  letter-spacing: 0;
}

:root {
  --ink: #f8f5ed;
  --dark-ink: #202126;
  --muted: #b8c1b5;
  --bg: #07110d;
  --panel: #101914;
  --panel-strong: #16231b;
  --line: rgba(248, 245, 237, 0.16);
  --green: #6fc342;
  --green-soft: #bee078;
  --navy: #14395f;
  --gold: #c8a45d;
  --danger: #ed7f72;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
}

/* Legal consent, merchant disclosure, and payment acceptance */
.pricing-service-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 12px auto 0;
  max-width: 760px;
}

.legal-consent,
.auth-form .legal-consent {
  align-items: flex-start;
  display: flex !important;
  gap: 10px;
  margin: 2px 0;
}

.legal-consent input,
.auth-form .legal-consent input {
  accent-color: var(--green);
  flex: 0 0 auto;
  height: 18px;
  margin: 2px 0 0;
  min-height: 0;
  padding: 0;
  width: 18px;
}

.legal-consent span,
.auth-form .legal-consent > span {
  border: 0;
  clip: auto;
  clip-path: none;
  color: var(--muted);
  font-size: 13px;
  height: auto;
  line-height: 1.5;
  margin: 0;
  overflow: visible;
  padding: 0;
  position: static;
  white-space: normal;
  width: auto;
}

.legal-consent a {
  color: var(--green-soft);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-legal-consent {
  background: rgba(119, 207, 58, 0.06);
  border: 1px solid rgba(119, 207, 58, 0.24);
  border-radius: 6px;
  padding: 12px;
}

.accepted-payments,
.footer-payment-marks {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.accepted-payments {
  color: var(--muted);
  font-size: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}

.accepted-payments img,
.footer-payment-marks img {
  border-radius: 4px;
  display: block;
  height: 26px;
  width: auto;
}

.footer-company {
  margin-top: 18px !important;
}

.footer-company b {
  color: #f8f5ed;
  font-weight: 800;
}

.footer-payment-marks {
  justify-content: center;
}

.footer-payment-marks span {
  font-size: 12px;
}

.footer-payment-marks img {
  height: 24px;
}

.legal-body {
  background: var(--bg);
  color: var(--ink);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.legal-page {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 54px) 80px;
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
}

.legal-hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  margin: 12px 0 18px;
  max-width: 780px;
}

.legal-hero > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
}

.legal-hero .legal-effective-date {
  margin-top: 0.65rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.merchant-details {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 0;
}

.merchant-details div {
  border-top: 1px solid var(--line);
  padding: 18px 20px 16px 0;
}

.merchant-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.merchant-details dd {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.merchant-details a,
.legal-footer a {
  color: var(--green-soft);
}

.legal-nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 18px 0;
  scrollbar-width: thin;
}

.legal-nav a {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--green-soft);
}

.legal-section {
  border-bottom: 1px solid var(--line);
  padding: clamp(42px, 7vw, 72px) 0;
  scroll-margin-top: 88px;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 28px;
}

.legal-section h3 {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.4;
  margin: 34px 0 12px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.legal-alpha-list {
  list-style-type: lower-alpha;
}

.legal-policy {
  border-left: 3px solid var(--green);
  padding-left: clamp(18px, 3vw, 32px);
}

.legal-footer {
  align-items: center;
  background: #101914;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 16px 32px;
  justify-content: center;
  padding: 28px 20px;
}

@media (max-width: 640px) {
  .pricing-service-note {
    font-size: 13px;
    line-height: 1.55;
  }

  .accepted-payments {
    justify-content: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-payment-marks {
    justify-content: flex-start;
  }

  .legal-page {
    padding-bottom: 54px;
    padding-top: 36px;
  }

  .legal-hero h1 {
    font-size: 38px;
  }

  .legal-hero > p:not(.section-kicker) {
    font-size: 15px;
  }

  .merchant-details {
    grid-template-columns: 1fr;
  }

  .merchant-details div {
    padding-right: 0;
  }

  .legal-section p,
  .legal-section li {
    font-size: 14px;
    line-height: 1.75;
  }
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(111, 195, 66, 0.32);
  color: var(--ink);
}

* {
  scrollbar-color: rgba(111, 195, 66, 0.5) rgba(248, 245, 237, 0.06);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(111, 195, 66, 0.5);
  border-radius: 999px;
}

*::-webkit-scrollbar-track {
  background: rgba(248, 245, 237, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  background: var(--ink);
  border-radius: 0 0 8px 8px;
  color: var(--bg);
  font-weight: 700;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 160ms ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  backdrop-filter: none;
  background: transparent;
  border-bottom: 0;
  display: flex;
  font-family: var(--font-body);
  justify-content: space-between;
  left: 0;
  min-height: 86px;
  padding: 18px clamp(22px, 3.5vw, 68px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.nav,
.hero-actions,
.hero-stats,
.form-row,
.price-list,
.auth-tabs,
.admin-tools {
  display: flex;
}

.brand {
  align-items: center;
  font-weight: 700;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  background: #f6f8f5;
  border-radius: 50%;
  height: 44px;
  object-fit: cover;
  padding: 3px;
  width: 44px;
}

.brand-icon-transparent {
  background: transparent;
  border-radius: 0;
  object-fit: contain;
  padding: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.brand-meta {
  border-left: 1px solid rgba(248, 245, 237, 0.42);
  color: rgba(248, 245, 237, 0.76);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
  margin-left: 4px;
  padding-left: 14px;
  text-transform: uppercase;
}

.nav {
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav a,
.user-badge {
  color: rgba(248, 245, 237, 0.88);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.nav a {
  position: relative;
}

.nav a::after {
  display: none;
}

.nav a.active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.site-header.scrolled {
  background: rgba(7, 17, 13, 0.98);
  box-shadow: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav-divider {
  background: rgba(248, 245, 237, 0.42);
  height: 24px;
  width: 1px;
}

.lang-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(248, 245, 237, 0.44);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  gap: 10px;
  height: 36px;
  justify-content: center;
  min-width: 66px;
  padding: 0 14px;
}

.lang-toggle::after {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  height: 5px;
  transform: rotate(45deg) translateY(-2px);
  width: 5px;
}

.language-menu {
  position: relative;
  z-index: 30;
}

.language-trigger {
  align-items: center;
  background: rgba(7, 17, 13, 0.7);
  border: 1px solid rgba(248, 245, 237, 0.44);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  height: 38px;
  justify-content: space-between;
  min-width: 108px;
  padding: 0 13px 0 15px;
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-menu.is-open .language-trigger {
  border-color: var(--green-soft);
  color: var(--green-soft);
}

.language-trigger svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
  width: 15px;
}

.language-menu.is-open .language-trigger svg {
  transform: rotate(180deg);
}

.language-options {
  background: #f8f5ed;
  border: 1px solid rgba(7, 17, 13, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  display: grid;
  min-width: 154px;
  opacity: 0;
  overflow: hidden;
  padding: 4px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  transform: translateY(-5px);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
}

.language-menu.is-open .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.language-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #172019;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 11px;
  text-align: left;
  width: 100%;
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(111, 195, 66, 0.14);
}

.language-option > span:last-child {
  color: #39791d;
  opacity: 0;
}

.language-option.is-current > span:last-child {
  opacity: 1;
}

.auth-header .language-menu {
  margin-left: auto;
}

.booking-language-menu {
  margin-left: auto;
  margin-right: 18px;
}

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

.hero {
  --hero-bg-y: 0px;
  align-items: center;
  display: flex;
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 120px clamp(24px, 5vw, 78px) 150px;
  position: relative;
}

.hero::after {
  display: none;
}

.hero-media {
  background-image: url("/assets/hero-night-higgsfield-clean.webp");
  background-position: center;
  background-size: cover;
  filter: none;
  inset: 0;
  position: absolute;
  transform: translate3d(0, var(--hero-bg-y), 0) scale(1.07);
  transform-origin: center 58%;
  will-change: transform;
}

.hero-content {
  max-width: 620px;
  position: relative;
  text-shadow: none;
  z-index: 4;
}

.hero-cinematic h1 {
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 900;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 600px;
  text-transform: uppercase;
}

.hero-kicker {
  color: rgba(248, 245, 237, 0.88);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: 80px;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 24px;
}

h2 {
  font-size: 40px;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 16px;
}

.tagline {
  color: var(--green);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-copy {
  color: rgba(248, 245, 237, 0.86);
  font-size: 17px;
  line-height: 1.45;
  max-width: 500px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.hero-cinematic .button.primary {
  background: #b7ef52;
  border: 0;
  border-radius: 0;
  color: #07110d;
  font-size: 11px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 52px;
  min-width: 184px;
  padding: 0 20px;
  text-transform: uppercase;
}

.hero-cinematic .button.primary::after {
  content: "→";
  font-size: 20px;
  font-weight: 400;
  margin-left: 24px;
}

.hero-text-link {
  align-items: center;
  border-bottom: 1px solid rgba(248, 245, 237, 0.48);
  border-left: 1px solid rgba(248, 245, 237, 0.48);
  color: var(--ink);
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  min-height: 52px;
  padding: 0 4px 0 26px;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.hero-text-link::after {
  content: "→";
  margin-left: 16px;
}

.hero-text-link:hover {
  border-color: var(--green);
  color: var(--green-soft);
}

.hero-availability {
  align-items: stretch;
  backdrop-filter: none;
  background: #09100d;
  border-top: 1px solid rgba(248, 245, 237, 0.2);
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(360px, 2.4fr) minmax(170px, 0.8fr);
  left: 0;
  min-height: 94px;
  position: absolute;
  right: 0;
  z-index: 5;
}

.hero-availability-heading,
.hero-schedule-link {
  align-content: center;
  display: grid;
  padding: 18px clamp(24px, 4vw, 64px);
}

.hero-availability-heading {
  border-right: 1px solid var(--line);
  gap: 4px;
}

.hero-availability-heading strong {
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-availability-heading span {
  color: var(--muted);
  font-size: 11px;
}

.hero-availability-slots {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  padding: 16px 28px;
}

.hero-availability-slot {
  align-items: center;
  color: var(--muted);
  display: grid;
  flex: 0 0 auto;
  font-size: 11px;
  gap: 9px;
  justify-items: center;
}

.hero-availability-slot i {
  background: var(--green-soft);
  border-radius: 50%;
  box-shadow: none;
  height: 7px;
  width: 7px;
}

.hero-availability-loading {
  color: var(--muted);
  font-size: 12px;
}

.hero-schedule-link {
  align-items: center;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  grid-template-columns: 1fr auto;
  text-transform: uppercase;
}

.hero-schedule-link span:last-child {
  color: var(--green-soft);
  font-size: 20px;
  margin-left: 16px;
}

.hero-schedule-link:hover {
  background: rgba(111, 195, 66, 0.08);
}

@media (min-width: 981px) {
  .hero {
    padding: 120px clamp(32px, 5vw, 78px) 150px;
  }

  .hero-media {
    background-position: center center;
    transform: translate3d(0, var(--hero-bg-y), 0) scale(1.025);
    transform-origin: center center;
  }

  .hero-content {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(4, 18, 13, 0.82), rgba(4, 18, 13, 0.58));
    border: 1px solid rgba(190, 224, 120, 0.14);
    border-radius: 20px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
    max-width: 560px;
    padding: clamp(28px, 3vw, 42px);
  }

  .hero-cinematic h1 {
    font-size: clamp(56px, 4.7vw, 68px);
    margin-bottom: 20px;
    max-width: 510px;
  }

  .hero-kicker {
    color: #b7ef52;
    margin-bottom: 16px;
  }

  .hero-copy {
    color: rgba(248, 245, 237, 0.94);
    margin-bottom: 0;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 26px;
  }

  .hero-cinematic .button.primary,
  .hero-text-link {
    border-radius: 999px;
    min-height: 50px;
  }

  .hero-cinematic .button.primary {
    min-width: 196px;
    padding: 0 22px;
  }

  .hero-text-link {
    background: rgba(7, 17, 13, 0.3);
    border: 1px solid rgba(183, 239, 82, 0.62);
    justify-content: space-between;
    min-width: 196px;
    padding: 0 22px;
  }
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.4;
  min-height: 48px;
  padding: 12px 20px;
  position: relative;
  text-align: center;
  white-space: normal;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.button[aria-busy="true"]::before {
  animation: button-spin 700ms linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  height: 14px;
  margin-right: 8px;
  opacity: 0.72;
  width: 14px;
}

.button.primary {
  background: var(--green);
  color: var(--bg);
}

.button.primary:hover:not(:disabled) {
  background: #80ce56;
}

.button.ghost {
  background: rgba(248, 245, 237, 0.04);
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost:hover:not(:disabled) {
  background: rgba(248, 245, 237, 0.09);
  border-color: rgba(248, 245, 237, 0.32);
}

.button.danger {
  background: rgba(237, 127, 114, 0.12);
  border-color: rgba(237, 127, 114, 0.5);
  color: #ffaaa0;
}

.button.danger:hover:not(:disabled) {
  background: rgba(237, 127, 114, 0.2);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--green-soft);
  outline-offset: 3px;
}

.button.small {
  min-height: 44px;
  padding: 8px 14px;
}

.hero-stats {
  border-top: 1px solid var(--line);
  bottom: 0;
  gap: 1px;
  left: clamp(20px, 5vw, 72px);
  max-width: 920px;
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  z-index: 2;
}

.hero-stats div {
  background: rgba(7, 17, 13, 0.72);
  flex: 1;
  min-width: 0;
  padding: 18px;
}

.hero-stats strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.hero-stats span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 8px;
}

.section {
  padding: clamp(64px, 7vw, 104px) clamp(20px, 4vw, 64px);
}

.section-heading {
  max-width: 980px;
}

.intro-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 48px;
  max-width: 1100px;
}

.intro {
  --horse-progress: 0;
  --horse-scale: 0.9;
  --horse-x: 90px;
  --horse-y: 36px;
  background:
    radial-gradient(circle at 80% 48%, rgba(111, 195, 66, 0.11), transparent 30%),
    linear-gradient(135deg, #07110d 0%, #0d1812 54%, #07110d 100%);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  justify-content: center;
  min-height: 760px;
  overflow: hidden;
  position: relative;
}

.intro::after {
  background: linear-gradient(90deg, rgba(7, 17, 13, 0) 52%, rgba(7, 17, 13, 0.1) 70%, rgba(7, 17, 13, 0.52) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.intro .section-heading,
.intro .intro-grid {
  max-width: min(58vw, 760px);
  position: relative;
  z-index: 4;
}

.intro .section-heading {
  transform: translate3d(0, calc(18px - var(--horse-progress) * 36px), 0);
  transition: transform 80ms linear;
}

.intro .section-heading h2 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.1;
}

.intro-grid {
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 34px;
}

.intro-grid p {
  max-width: 660px;
}

.intro-horse-visual {
  inset: 0;
  overflow: hidden;
  perspective: 1200px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.intro-horse {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.74) 15%, #000 31%);
  filter: drop-shadow(0 34px 32px rgba(0, 0, 0, 0.48));
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.74) 15%, #000 31%);
  opacity: 0.78;
  position: absolute;
  right: 6vw;
  top: 51%;
  transform: translate3d(var(--horse-x), calc(-50% + var(--horse-y)), 40px) scale(var(--horse-scale));
  transform-origin: 58% 54%;
  transition: filter 180ms ease, transform 80ms linear;
  width: min(56vw, 840px);
  will-change: transform;
}

@media (max-width: 640px) {
  .language-trigger {
    font-size: 11px;
    height: 36px;
    min-width: 100px;
    padding-left: 13px;
  }

  .language-options {
    min-width: 148px;
  }

  .auth-header .language-trigger {
    background: rgba(7, 17, 13, 0.54);
    border-color: rgba(248, 245, 237, 0.58);
    height: 34px;
  }

  .booking-app-header:has(.booking-language-menu) {
    align-items: center;
    flex-wrap: wrap;
  }

  .booking-language-menu {
    margin-left: auto;
    margin-right: 0;
  }

  .booking-app-header:has(.booking-language-menu) .booking-user {
    flex-basis: 100%;
    width: 100%;
  }

  .legal-header-actions .button {
    display: none;
  }
}

.intro-horse-shadow {
  background: rgba(0, 0, 0, 0.42);
  border-radius: 50%;
  bottom: 19%;
  filter: blur(24px);
  height: 42px;
  position: absolute;
  right: 3vw;
  transform: perspective(500px) rotateX(68deg) scale(calc(0.84 + var(--horse-progress) * 0.2));
  width: min(48vw, 700px);
}

.intro-track-line {
  border: 1px solid rgba(200, 164, 93, 0.14);
  border-radius: 50%;
  height: min(64vw, 900px);
  position: absolute;
  right: -18vw;
  top: 50%;
  transform: translateY(-50%) rotate(-11deg);
  width: min(74vw, 1040px);
}

.intro-track-line-inner {
  border-color: rgba(111, 195, 66, 0.15);
  height: min(44vw, 620px);
  right: -4vw;
  transform: translateY(-50%) rotate(8deg);
  width: min(54vw, 760px);
}

.intro-grid p,
.why-card p,
.booking-copy p,
.pricing-heading p,
.auth-panel p,
.admin-header p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.82;
}

.racket-story {
  --copy-y: 20px;
  --racket-progress: 0;
  --racket-rotate: -17deg;
  --racket-scale: 0.86;
  --racket-tilt: -10deg;
  --racket-x: 70px;
  --racket-y: 70px;
  background: #050d09;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  height: 185vh;
  position: relative;
}

.racket-story-sticky {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 13, 9, 0.98) 0%, rgba(5, 13, 9, 0.89) 38%, rgba(5, 13, 9, 0.28) 68%, rgba(5, 13, 9, 0.78) 100%),
    linear-gradient(180deg, #07110d 0%, #0c1711 54%, #07110d 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
  padding: 112px clamp(24px, 6vw, 92px) 72px;
  position: sticky;
  top: 0;
}

.racket-story-sticky::after {
  background: linear-gradient(180deg, rgba(7, 17, 13, 0.15), transparent 22%, transparent 72%, rgba(7, 17, 13, 0.72));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.racket-court-lines {
  background-image:
    linear-gradient(90deg, transparent 49.82%, rgba(200, 164, 93, 0.2) 49.9%, rgba(200, 164, 93, 0.2) 50.1%, transparent 50.18%),
    linear-gradient(158deg, transparent 46%, rgba(111, 195, 66, 0.15) 46.12%, rgba(111, 195, 66, 0.15) 46.3%, transparent 46.42%),
    linear-gradient(22deg, transparent 62%, rgba(248, 245, 237, 0.09) 62.12%, rgba(248, 245, 237, 0.09) 62.28%, transparent 62.4%);
  inset: 0;
  opacity: 0.82;
  position: absolute;
  transform: scale(1.08);
  z-index: 0;
}

.racket-story-copy {
  max-width: 560px;
  position: relative;
  transform: translate3d(0, var(--copy-y), 0);
  transition: transform 80ms linear;
  z-index: 4;
}

.racket-story-copy .eyebrow {
  margin-bottom: 20px;
}

.racket-story-copy h2 {
  font-size: 52px;
  line-height: 1.08;
  max-width: 540px;
}

.racket-story-copy > p:last-of-type {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  margin: 28px 0 0;
  max-width: 500px;
}

.racket-details {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  padding-top: 22px;
}

.racket-details div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-right: 18px;
}

.racket-details div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.racket-details span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.racket-details strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.racket-visual {
  inset: 0;
  perspective: 1200px;
  pointer-events: none;
  position: absolute;
  transform-style: preserve-3d;
  z-index: 1;
}

.racket-product {
  filter: drop-shadow(0 42px 34px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 26px rgba(111, 195, 66, 0.09));
  height: 82vh;
  max-height: 820px;
  object-fit: contain;
  position: absolute;
  right: 3vw;
  top: 51%;
  transform: translate3d(var(--racket-x), calc(-50% + var(--racket-y)), 70px) rotateZ(var(--racket-rotate)) rotateY(var(--racket-tilt)) scale(var(--racket-scale));
  transform-origin: 55% 48%;
  transition: filter 180ms ease, transform 80ms linear;
  width: min(49vw, 760px);
  will-change: transform;
}

.racket-shadow {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  bottom: 9%;
  filter: blur(24px);
  height: 50px;
  position: absolute;
  right: 9vw;
  transform: perspective(500px) rotateX(66deg) scale(calc(0.8 + var(--racket-progress) * 0.32));
  width: min(38vw, 580px);
}

.racket-orbit {
  border: 1px solid rgba(111, 195, 66, 0.17);
  border-radius: 50%;
  position: absolute;
  right: -7vw;
  top: 50%;
  transform: translateY(-50%) rotate(-18deg);
}

.racket-orbit-outer {
  height: min(78vw, 1040px);
  width: min(78vw, 1040px);
}

.racket-orbit-inner {
  border-color: rgba(200, 164, 93, 0.16);
  height: min(58vw, 760px);
  right: 3vw;
  transform: translateY(-50%) rotate(16deg);
  width: min(58vw, 760px);
}

.racket-scroll-cue {
  align-items: center;
  bottom: 28px;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 10px;
  opacity: calc(1 - var(--racket-progress) * 1.4);
  position: absolute;
  right: clamp(24px, 6vw, 92px);
  text-transform: uppercase;
  z-index: 4;
}

.racket-scroll-cue span {
  background: var(--gold);
  display: block;
  height: 1px;
  width: 44px;
}

.why-section {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.why-heading {
  margin: 0 auto 42px;
  max-width: 860px;
  text-align: center;
}

.why-heading .eyebrow {
  font-size: 48px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  text-transform: none;
}

.why-grid {
  display: grid;
  gap: 16px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1040px;
}

.why-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  min-width: 0;
  padding: 0 28px;
}

.why-card + .why-card {
  border-left: 1px solid var(--line);
}

.why-icon {
  color: var(--green);
  display: block;
  height: 36px;
  width: 36px;
}

.why-card h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.why-card p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.how-section {
  background: #09140f;
  border-bottom: 1px solid var(--line);
  padding: 78px clamp(20px, 6vw, 92px);
}

.how-heading {
  margin: 0 auto 42px;
  max-width: 1040px;
}

.how-heading h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  margin: 12px 0 0;
  max-width: 700px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 1040px;
  padding: 0;
}

.how-steps li {
  display: grid;
  gap: 20px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px 28px;
}

.how-steps li:first-child { padding-left: 0; }
.how-steps li:last-child { padding-right: 0; }

.how-steps li + li {
  border-left: 1px solid var(--line);
}

.how-steps > li > span {
  color: var(--green-soft);
  font-size: 13px;
  font-weight: 800;
  padding-top: 5px;
}

.how-steps h3 {
  font-size: 21px;
  margin: 0 0 9px;
}

.how-steps p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.pricing-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 72px clamp(20px, 4vw, 64px);
  scroll-margin-top: 72px;
}

.pricing-heading {
  margin: 0 auto 36px;
  max-width: 760px;
  text-align: center;
}

.pricing-heading p {
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 620px;
}

.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1040px;
}

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--green);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 24px;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 28px;
}

.pricing-weekend {
  border-top-color: var(--gold);
}

.pricing-card-heading h3 {
  font-size: 26px;
  margin: 0 0 6px;
}

.pricing-card-heading p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.price-table {
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  width: 100%;
}

.price-table th,
.price-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.price-table thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 0 0 10px;
  vertical-align: bottom;
}

.price-table th:first-child {
  padding-right: 12px;
}

.price-table tbody th {
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
}

.price-table td {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.price-table th:last-child,
.price-table td {
  text-align: right;
}

.pricing-card .button {
  align-self: end;
  width: 100%;
}

.policy-box {
  align-items: center;
  background: #0d1812;
  border: 1px solid rgba(111, 195, 66, 0.34);
  border-left: 3px solid var(--green-soft);
  border-radius: 8px;
  margin: 32px auto 0;
  max-width: 1040px;
  padding: 22px 24px;
  text-align: left;
}

.policy-box h3 {
  color: var(--green-soft);
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
}

.location-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(480px, 1.2fr);
  min-height: 540px;
}

.location-copy {
  align-self: center;
  padding: 68px clamp(28px, 6vw, 92px);
}

.location-copy h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  margin: 14px 0 20px;
}

.location-copy > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.7;
  max-width: 540px;
}

.location-note {
  border-left: 2px solid var(--gold);
  display: grid;
  gap: 7px;
  margin: 30px 0;
  max-width: 560px;
  padding-left: 18px;
}

.location-note strong { color: var(--ink); }
.location-note span { color: var(--muted); font-size: 14px; line-height: 1.6; }

.location-button {
  align-items: center;
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  display: inline-flex;
  gap: 30px;
  justify-content: space-between;
  min-width: 240px;
}

.location-map {
  background: #14231b;
  min-height: 540px;
  overflow: hidden;
  position: relative;
}

.location-map-fallback {
  background:
    linear-gradient(32deg, transparent 0 43%, rgba(248, 245, 237, 0.16) 44% 46%, transparent 47% 100%),
    linear-gradient(105deg, transparent 0 34%, rgba(200, 164, 93, 0.22) 35% 37%, transparent 38% 100%),
    linear-gradient(154deg, transparent 0 54%, rgba(248, 245, 237, 0.1) 55% 58%, transparent 59% 100%),
    radial-gradient(circle at 74% 24%, rgba(111, 195, 66, 0.18), transparent 24%),
    #14231b;
  inset: 0;
  position: absolute;
}

.location-map-fallback::before,
.location-map-fallback::after {
  border: 1px solid rgba(248, 245, 237, 0.12);
  content: "";
  height: 42%;
  position: absolute;
  transform: rotate(-12deg);
  width: 70%;
}

.location-map-fallback::before { left: -18%; top: 12%; }
.location-map-fallback::after { bottom: 5%; right: -20%; }

.location-marker {
  align-items: center;
  background: rgba(7, 17, 13, 0.92);
  border: 1px solid rgba(190, 224, 120, 0.55);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  display: flex;
  gap: 12px;
  left: 50%;
  padding: 13px 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.location-marker img { height: 38px; width: 30px; }
.location-marker div { display: grid; gap: 2px; white-space: nowrap; }
.location-marker strong { color: var(--ink); font-size: 15px; }
.location-marker span { color: var(--muted); font-size: 11px; }

.location-map iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.admin-analytics-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 24px;
  padding: 26px;
}

.admin-analytics-heading {
  align-items: end;
}

.admin-analytics-period {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.admin-analytics-period span {
  color: var(--muted);
  font-size: 12px;
}

.admin-analytics-grid {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 22px;
}

.admin-analytics-grid > div {
  display: grid;
  gap: 4px;
  padding: 20px;
}

.admin-analytics-grid > div + div { border-left: 1px solid var(--line); }
.admin-analytics-grid span,
.admin-analytics-grid small { color: var(--muted); font-size: 12px; }
.admin-analytics-grid strong { color: var(--ink); font-size: 30px; }

.admin-analytics-note {
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0;
}

.admin-analytics-days {
  display: grid;
  gap: 0;
}

.admin-analytics-days > div {
  display: grid;
  gap: 16px;
  grid-template-columns: 100px repeat(3, minmax(0, 1fr));
  padding: 11px 4px;
}

.admin-analytics-days > div + div { border-top: 1px solid var(--line); }
.admin-analytics-days span { color: var(--muted); font-size: 13px; }

.policy-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.app-body {
  min-height: 100vh;
}

.auth-shell,
.booking-page,
.admin-page {
  padding: clamp(96px, 8vw, 120px) clamp(20px, 4vw, 64px) 72px;
}

.auth-shell {
  align-items: center;
  background: linear-gradient(90deg, rgba(7, 17, 13, 0.94), rgba(7, 17, 13, 0.66)), url("/assets/players.webp") center / cover;
  display: grid;
  justify-items: center;
  min-height: 100vh;
}

.auth-panel {
  background: linear-gradient(180deg, rgba(16, 25, 20, 0.78), rgba(7, 17, 13, 0.38));
  border: 1px solid rgba(248, 245, 237, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 26px;
  justify-items: center;
  max-width: 640px;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  width: min(640px, 100%);
}

.auth-panel h1,
.booking-copy h1,
.admin-header h1 {
  font-size: 40px;
  line-height: 1.05;
}

.auth-panel h1 {
  font-size: 40px;
  line-height: 1.08;
  max-width: 720px;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: keep-all;
}

.auth-intro {
  display: grid;
  justify-items: center;
}

.auth-intro p {
  max-width: 620px;
  overflow-wrap: normal;
}

.auth-choice {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
}

.auth-choice .button {
  border-radius: 8px;
}

.auth-form {
  background: rgba(16, 25, 20, 0.92);
  gap: 14px;
  max-width: 500px;
  padding: clamp(18px, 2.2vw, 28px) clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 32px);
  position: relative;
  text-align: left;
  width: min(500px, 100%);
}

.auth-form h2 {
  align-items: center;
  display: grid;
  font-size: 32px;
  line-height: 1.12;
  margin: -2px 36px 6px;
  min-height: 44px;
  overflow-wrap: normal;
  text-align: center;
  word-break: keep-all;
}

.auth-form label {
  gap: 7px;
}

.auth-form label span {
  font-size: 15px;
  line-height: 1.35;
}

.auth-form input {
  min-height: 46px;
}

.password-field {
  position: relative;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input,
.password-field input {
  width: 100%;
}

.auth-field-icon {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.auth-form-kicker {
  display: none;
}

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

.password-toggle {
  background: rgba(248, 245, 237, 0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  font-size: 18px;
  font-weight: 700;
  height: 32px;
  padding: 0;
  place-items: center;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
}

.password-toggle:hover {
  color: var(--ink);
}

.password-toggle svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.password-toggle .icon-eye-off,
.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.auth-form-active .auth-intro {
  display: none;
}

.auth-back {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 44px;
  justify-content: center;
  left: 28px;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: calc(clamp(18px, 2.2vw, 28px) - 2px);
  width: 44px;
}

.auth-tabs {
  background: rgba(248, 245, 237, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  flex: 1;
  font-weight: 700;
  min-height: 42px;
}

.auth-tabs button.active {
  background: var(--ink);
  color: var(--bg);
}

.register-only {
  display: none;
}

.register-mode .register-only {
  display: grid;
}

.register-mode .login-only {
  display: none;
}

.auth-switch {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.auth-switch span {
  display: inline;
}

.auth-switch .register-only {
  display: none;
}

.register-mode .auth-switch .register-only {
  display: inline;
}

.auth-switch button {
  background: transparent;
  border: 0;
  color: var(--green-soft);
  cursor: pointer;
  font-weight: 700;
  padding: 0 0 0 4px;
}

.auth-help {
  line-height: 1;
  margin: -4px 0 2px;
  text-align: right;
}

.auth-help button,
.auth-inline-action {
  background: transparent;
  border: 0;
  color: var(--green-soft);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 0;
}

.auth-login-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  margin: -2px 0 2px;
}

.register-mode .auth-login-options {
  display: none;
}

#authForm .remember-control {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  margin: 0;
  width: auto;
}

#authForm .remember-control > input[type="checkbox"] {
  accent-color: var(--green);
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 18px;
}

#authForm .remember-control > span {
  border: 0;
  clip: auto;
  clip-path: none;
  color: var(--muted);
  font-size: 14px;
  height: auto;
  line-height: 1.35;
  margin: 0;
  overflow: visible;
  padding: 0;
  position: static;
  white-space: nowrap;
  width: auto;
}

.auth-login-options .auth-help {
  margin: 0;
}

.auth-inline-action {
  justify-self: center;
  margin-top: -4px;
}

.auth-form-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: -2px 0 4px;
  text-align: center;
}

.auth-result {
  justify-items: center;
  padding-block: clamp(28px, 4vw, 44px);
  text-align: center;
}

.auth-result-mark {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  color: var(--bg);
  display: flex;
  font-size: 24px;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.auth-result.is-error .auth-result-mark {
  background: var(--danger);
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.booking-app-body {
  background:
    linear-gradient(180deg, rgba(7, 17, 13, 0.96), rgba(7, 17, 13, 0.98)),
    url("/assets/court-aerial.webp") center top / cover fixed;
  color: var(--ink);
}

.profile-body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.profile-body .booking-app-header {
  flex-shrink: 0;
}

.profile-body .profile-page {
  flex: 1;
  height: auto;
  min-height: 0;
  width: 100%;
}

.booking-app-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 13, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(16px, 3vw, 40px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.booking-app-header .brand {
  color: var(--ink);
}

.booking-user {
  align-items: center;
  display: flex;
  gap: 14px;
}

.booking-user span {
  color: var(--muted);
  font-size: 14px;
}

.user-avatar {
  align-items: center;
  background: var(--green);
  border: 2px solid rgba(248, 245, 237, 0.2);
  border-radius: 50%;
  color: #07110d !important;
  display: inline-flex;
  font-size: 13px !important;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.profile-name {
  color: var(--ink) !important;
  font-weight: 800;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-app {
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px clamp(16px, 2.4vw, 28px) 48px;
}

.booking-app-title {
  margin: 0 auto 18px;
  max-width: 680px;
  text-align: center;
}

.booking-app-title h1 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.booking-app-title p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.date-strip {
  display: grid;
  gap: 8px;
  grid-auto-columns: minmax(72px, 86px);
  grid-auto-flow: column;
  margin-bottom: 16px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.date-card {
  background: rgba(248, 245, 237, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 80px;
  padding: 10px 8px;
  place-items: center;
}

.date-card span {
  font-size: 14px;
  line-height: 1;
}

.date-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.date-card.active {
  background: var(--green);
  border-color: var(--green);
  color: #07110d;
}

.date-card.active strong {
  color: #07110d;
}

.duration-strip {
  background: rgba(248, 245, 237, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 16px;
  max-width: 600px;
  padding: 4px;
}

.duration-strip button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  min-height: 42px;
}

.duration-strip button.active {
  background: var(--green);
  border-color: var(--green);
  color: #07110d;
  font-weight: 700;
}

.location-card {
  background: rgba(16, 25, 20, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.location-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.location-heading h2 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.05;
  margin: 0;
}

.location-heading span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-align: right;
}

.time-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: min(280px, 38vh);
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.time-card {
  background: rgba(248, 245, 237, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  min-height: 48px;
}

.time-card.active {
  background: var(--green);
  border-color: var(--green);
  color: #07110d;
  font-weight: 700;
}

.no-slots {
  color: var(--muted);
  font-size: 20px;
  grid-column: 1 / -1;
  line-height: 1.4;
  margin: 50px 0;
  text-align: center;
  text-transform: uppercase;
}

.court-pick {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.court-pick-heading > span {
  color: var(--green);
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.court-pick h3 {
  color: var(--ink);
  font-size: 22px;
  margin: 0;
}

.selection-summary {
  background: rgba(111, 195, 66, 0.07);
  border: 1px solid rgba(111, 195, 66, 0.25);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 16px;
}

.selection-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 14px;
}

.selection-summary div:first-child {
  padding-left: 0;
}

.selection-summary div:last-child {
  padding-right: 0;
}

.selection-summary div + div {
  border-left: 1px solid var(--line);
}

.selection-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.selection-summary strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.selection-summary div:last-child strong {
  color: var(--green-soft);
}

.court-buttons {
  display: grid;
  gap: 12px;
}

.court-row {
  align-items: center;
  background: rgba(7, 17, 13, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

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

.court-row strong {
  color: var(--ink);
  font-size: 18px;
}

.court-row span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.court-row .button {
  min-width: 118px;
}

.booking-modal {
  align-items: center;
  background: rgba(7, 17, 13, 0.72);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 40;
}

.booking-modal:not(.hidden) {
  animation: modal-fade-in 160ms ease-out;
}

.booking-modal-card {
  background: #101914;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 22px;
  max-height: calc(100dvh - 32px);
  max-width: 680px;
  overflow: auto;
  padding: 28px;
  position: relative;
  width: min(680px, 100%);
}

.booking-modal:not(.hidden) .booking-modal-card {
  animation: modal-rise-in 180ms ease-out;
}

.booking-modal-card.small-modal {
  max-width: 620px;
}

.modal-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 36px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 14px;
  width: 42px;
}

.modal-close:hover {
  color: var(--green-soft);
}

body.modal-open {
  overflow: hidden;
}

.booking-modal-card h2 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.3;
  margin: 0;
  padding-right: 50px;
}

.booking-review,
.credit-confirmation,
.booking-confirmation {
  display: grid;
  gap: 18px;
}

.credit-confirmation {
  gap: 18px;
}

.booking-confirmation {
  justify-items: center;
  text-align: center;
}

.confirmation-mark {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  color: #07110d;
  display: flex;
  font-size: 36px;
  font-weight: 700;
  height: 72px;
  justify-content: center;
  line-height: 1;
  width: 72px;
}

.booking-confirmation h2 {
  padding-right: 0;
}

.confirmation-details {
  display: grid;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.confirmation-details div {
  align-items: center;
  background: rgba(248, 245, 237, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 16px;
}

.confirmation-details span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.confirmation-details strong {
  color: var(--ink);
  text-align: right;
}

.credit-confirm-box {
  background: rgba(111, 195, 66, 0.1);
  border: 1px solid rgba(111, 195, 66, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.credit-confirm-box div {
  align-items: center;
  background: rgba(7, 17, 13, 0.45);
  border: 1px solid rgba(248, 245, 237, 0.08);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
}

.credit-confirm-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.credit-confirm-box strong {
  color: var(--ink);
  text-align: right;
}

.confirmation-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.confirmation-actions .button {
  border-radius: 8px;
}

.payment-result-body {
  min-height: 100vh;
}

.payment-result-main {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: clamp(32px, 7vw, 96px) max(20px, 5vw);
}

.payment-result-card {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  background: rgba(11, 26, 20, 0.96);
  text-align: center;
}

.payment-result-card h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.payment-result-card > p:not(.eyebrow) {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
}

.payment-result-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2.25rem;
  font-weight: 800;
}

.payment-result-mark.is-success {
  color: #07140d;
  background: var(--accent);
}

.payment-result-mark.is-failed {
  color: #fff;
  background: #9c3535;
}

.payment-result-mark.is-pending {
  color: var(--accent);
  border: 1px solid var(--accent);
}

.payment-result-card .confirmation-details {
  margin: 28px 0;
  text-align: left;
}

.modal-note {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.booking-summary {
  background: rgba(248, 245, 237, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  padding: 0;
}

.booking-summary > div {
  min-width: 0;
  padding: 16px;
}

.booking-summary > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.booking-summary > div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.booking-summary span {
  color: var(--green);
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.booking-summary strong {
  color: var(--ink);
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.booking-summary p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.light-payment {
  border-color: var(--line);
  color: var(--ink);
}

.light-payment legend,
.light-payment label span {
  color: var(--muted);
}

.card-only-payment {
  background: rgba(111, 195, 66, 0.1);
  border: 1px solid rgba(111, 195, 66, 0.35);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.card-only-payment span {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.card-only-payment strong {
  color: var(--ink);
  font-size: 22px;
}

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

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

.payment-action-grid .button {
  border-radius: 8px;
  width: 100%;
}

.booking-page {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
}

.booking-copy {
  position: sticky;
  top: 110px;
}

.price-list {
  gap: 12px;
  margin-top: 30px;
}

.price-list div,
.booking-form,
.admin-booking,
.admin-tools {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-list div {
  flex: 1;
  padding: 18px;
}

.price-list span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.price-list strong {
  color: var(--green);
}

.booking-form {
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  padding: clamp(18px, 3vw, 34px);
}

.form-row {
  gap: 16px;
}

label {
  display: grid;
  flex: 1;
  gap: 8px;
}

label span,
.label-title,
legend {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

input,
select {
  background: #07110d;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

input::placeholder {
  color: rgba(184, 193, 181, 0.5);
}

input:hover:not(:disabled),
select:hover:not(:disabled) {
  border-color: rgba(248, 245, 237, 0.28);
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(111, 195, 66, 0.1);
}

label:focus-within > span {
  color: var(--green-soft);
}

.slot-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.slot-button {
  background: #0b1510;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  min-height: 66px;
  padding: 10px;
  text-align: left;
}

.slot-button strong,
.slot-button span {
  display: block;
  line-height: 1.35;
}

.slot-button span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.slot-button[disabled] {
  color: rgba(248, 245, 237, 0.35);
  cursor: not-allowed;
  opacity: 0.55;
}

.slot-button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.payment-options {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
}

.payment-options label {
  align-items: center;
  display: flex;
  gap: 10px;
}

.payment-options input {
  accent-color: var(--green);
  min-height: auto;
  width: auto;
}

.booking-total {
  align-items: center;
  background: var(--panel-strong);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.booking-total span {
  color: var(--muted);
}

.booking-total strong {
  color: var(--green);
  font-size: 28px;
}

.submit-button {
  width: 100%;
}

.form-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.form-message:empty {
  display: none;
}

.form-message:not(:empty) {
  align-items: center;
  background: rgba(248, 245, 237, 0.045);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px 9px 10px;
}

.form-message:not(:empty)::before {
  align-items: center;
  background: rgba(248, 245, 237, 0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  content: "i";
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.form-message.error {
  background: rgba(237, 127, 114, 0.08);
  border-color: rgba(237, 127, 114, 0.28);
  color: var(--danger);
}

.form-message.error::before {
  background: rgba(237, 127, 114, 0.14);
  border-color: rgba(237, 127, 114, 0.38);
  color: var(--danger);
  content: "!";
}

.form-message.success {
  background: rgba(111, 195, 66, 0.08);
  border-color: rgba(111, 195, 66, 0.28);
  color: var(--green-soft);
}

.form-message.success::before {
  background: rgba(111, 195, 66, 0.13);
  border-color: rgba(111, 195, 66, 0.34);
  color: var(--green-soft);
  content: "\2713";
}

.field-validation-message {
  align-items: flex-start;
  animation: validation-message-in 160ms ease-out both;
  background: rgba(237, 127, 114, 0.09);
  border: 1px solid rgba(237, 127, 114, 0.27);
  border-left: 3px solid var(--danger);
  border-radius: 6px;
  color: #f3a398 !important;
  display: flex !important;
  font-size: 12px !important;
  font-weight: 700;
  gap: 8px;
  line-height: 1.4 !important;
  margin: 7px 0 0 !important;
  min-height: 36px;
  padding: 8px 10px !important;
  position: static !important;
  width: 100% !important;
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
}

.field-validation-message::before {
  align-items: center;
  background: var(--danger);
  border-radius: 50%;
  color: var(--bg);
  content: "!";
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 11px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  line-height: 1;
  margin-top: 0;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(237, 127, 114, 0.11) !important;
}

input[type="checkbox"].is-invalid,
input[type="radio"].is-invalid {
  outline: 2px solid var(--danger);
  outline-offset: 3px;
}

.legal-consent + .field-validation-message {
  margin-bottom: 3px !important;
}

@keyframes validation-message-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 9px;
  justify-content: center;
  min-height: 72px;
}

.loading-state::before {
  animation: button-spin 700ms linear infinite;
  border: 2px solid rgba(184, 193, 181, 0.3);
  border-right-color: var(--green);
  border-radius: 50%;
  content: "";
  height: 18px;
  width: 18px;
}

.admin-calendar-loading {
  grid-column: 1 / -1;
}

.error-state {
  color: var(--danger) !important;
}

.empty-state:not(.large-empty),
.no-slots {
  align-items: center;
  background: rgba(248, 245, 237, 0.03);
  border: 1px dashed rgba(248, 245, 237, 0.14);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: center;
  margin: 0;
  min-height: 88px;
  padding: 18px;
  text-align: center;
}

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

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-page {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 24px clamp(16px, 3vw, 40px) 48px;
}

.profile-page {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: calc(100dvh - 64px);
  margin: 0 auto;
  max-width: 1120px;
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2.4vw, 28px) clamp(16px, 2vw, 24px);
}

.credit-balance {
  background: rgba(111, 195, 66, 0.12);
  border: 1px solid rgba(111, 195, 66, 0.34);
  border-radius: 999px;
  color: var(--green-soft) !important;
  font-weight: 700;
  padding: 8px 12px;
}

.profile-message {
  margin: 0;
}

.profile-message:empty {
  display: none;
}

.profile-tabs {
  background: rgba(248, 245, 237, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 340px;
  padding: 4px;
}

.profile-tabs button,
.sub-tabs button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
}

.profile-tabs button.active,
.sub-tabs button.active {
  background: var(--green);
  color: #07110d;
  font-weight: 700;
}

.profile-panel {
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.profile-panel-toolbar {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.profile-panel-heading h1,
.settings-section-heading h2 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  margin: 2px 0 0;
}

.profile-panel-heading p,
.settings-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.section-kicker {
  color: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sub-tabs {
  background: rgba(248, 245, 237, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 280px;
  margin: 0;
  max-width: 280px;
  padding: 4px;
}

.bookings-list {
  height: 100%;
}

.profile-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-list-item {
  align-items: center;
  background: rgba(7, 17, 13, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.profile-list-item strong,
.profile-list-item span,
.booking-id {
  display: block;
}

.profile-list-item strong {
  color: var(--ink);
  font-size: 16px;
}

.profile-list-item span,
.booking-id,
.empty-state {
  color: var(--muted);
  line-height: 1.5;
}

.booking-id {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 4px;
  text-transform: uppercase;
}

.booking-date-tile {
  align-items: center;
  background: rgba(111, 195, 66, 0.09);
  border: 1px solid rgba(111, 195, 66, 0.24);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-height: 64px;
  padding: 6px;
}

.booking-date-tile span,
.booking-date-tile small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.booking-date-tile strong {
  color: var(--green-soft);
  font-size: 22px;
  line-height: 1;
}

.profile-booking-copy {
  min-width: 0;
}

.profile-booking-copy > span {
  font-size: 13px;
}

.profile-booking-meta {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto auto minmax(68px, auto);
  justify-items: start;
}

.profile-booking-meta > strong:last-child {
  justify-self: end;
  text-align: right;
}

.cancel-booking-button {
  background: rgba(111, 195, 66, 0.12);
  border: 1px solid rgba(111, 195, 66, 0.42);
  border-radius: 8px;
  color: var(--green-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
  padding: 0 12px;
}

.cancel-booking-button.disabled,
.cancel-booking-button:disabled {
  background: rgba(248, 245, 237, 0.035);
  border-color: rgba(248, 245, 237, 0.1);
  color: rgba(184, 193, 181, 0.48);
  cursor: not-allowed;
  text-decoration: line-through;
}

.credit-refund {
  color: var(--green-soft) !important;
  font-size: 13px;
  font-weight: 700;
}

.booking-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex !important;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-width: 96px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.booking-status.upcoming {
  background: rgba(111, 195, 66, 0.16);
  border-color: rgba(111, 195, 66, 0.38);
  color: var(--green-soft);
}

.booking-status.completed {
  background: rgba(200, 164, 93, 0.12);
  border-color: rgba(200, 164, 93, 0.34);
  color: var(--gold);
}

.booking-status.pending {
  background: rgba(200, 164, 93, 0.12);
  border-color: rgba(200, 164, 93, 0.34);
  color: var(--gold);
}

.booking-status.cancelled {
  background: rgba(237, 127, 114, 0.12);
  border-color: rgba(237, 127, 114, 0.34);
  color: #ffaaa0;
}

.large-empty {
  align-content: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 220px;
  padding: 28px;
  text-align: center;
}

.large-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.large-empty span {
  color: var(--muted);
  font-size: 14px;
}

.settings-panel {
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.settings-main {
  background: rgba(248, 245, 237, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.settings-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.settings-heading h1 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  margin: 0;
}

.settings-table {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.settings-table div {
  background: rgba(7, 17, 13, 0.48);
  border: 1px solid rgba(248, 245, 237, 0.09);
  border-radius: 8px;
  display: block;
  min-width: 0;
  padding: 12px 14px;
}

.settings-table dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.settings-table dd {
  color: var(--ink);
  font-size: 15px;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.settings-transactions {
  background: rgba(248, 245, 237, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 160px;
  overflow: hidden;
  padding: 16px;
}

.settings-section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.settings-section-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.transaction-head {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 16px;
  grid-template-columns: 1fr 1fr 1fr auto;
  padding: 4px 12px 0;
  text-transform: uppercase;
}

.transaction-head span:last-child {
  text-align: right;
}

.transaction-list {
  max-height: 240px;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
}

.transaction-row {
  align-items: center;
  background: rgba(7, 17, 13, 0.48);
  border: 1px solid rgba(248, 245, 237, 0.09);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr 1fr auto;
  padding: 10px 12px;
}

.transaction-row span,
.transaction-row strong {
  color: var(--ink);
  font-size: 14px;
}

.transaction-row strong {
  text-align: right;
}

.transaction-status {
  color: var(--green-soft) !important;
  font-weight: 700;
}

.transaction-status.cancelled {
  color: var(--gold) !important;
}

.transaction-status.payment_pending {
  color: var(--gold) !important;
}

.transaction-status.failed {
  color: #ffaaa0 !important;
}

.account-security {
  background: rgba(248, 245, 237, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.settings-actions {
  display: grid;
  gap: 0;
}

.settings-actions .button {
  border-radius: 8px;
  min-width: 176px;
}

.settings-action-row {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 12px 0;
}

.settings-action-row + .settings-action-row {
  border-top: 1px solid var(--line);
}

.settings-action-row > div {
  display: grid;
  gap: 2px;
}

.settings-action-row strong {
  color: var(--ink);
  font-size: 14px;
}

.settings-action-row span {
  color: var(--muted);
  font-size: 12px;
}

.password-form {
  display: grid;
  gap: 14px;
  justify-self: end;
  max-width: 520px;
  width: 100%;
}

.admin-header {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  max-width: none;
}

.admin-header .eyebrow {
  margin-bottom: 6px;
}

.admin-header h1 {
  font-size: 32px;
  margin: 0 0 6px;
}

.admin-header > div > p:last-child {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.admin-tools {
  align-items: end;
  background: transparent;
  border: 0;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: none;
  padding: 0;
}

.admin-tools label {
  max-width: 190px;
}

.admin-quick-days {
  display: flex;
  gap: 8px;
}

.admin-tools .button,
.admin-tools input {
  min-height: 42px;
}

.admin-summary {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-summary div {
  display: grid;
  gap: 2px;
  padding: 13px 16px;
}

.admin-summary div + div {
  border-left: 1px solid var(--line);
}

.admin-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-summary strong {
  color: var(--ink);
  font-size: 22px;
}

.admin-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.72fr);
}

.admin-calendar-card,
.admin-manual-card,
.admin-closure-card,
.admin-settings-card,
.admin-list-card {
  background: rgba(16, 25, 20, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-settings-card {
  display: grid;
  gap: 16px;
}

.admin-settings-form {
  display: grid;
  gap: 16px;
}

.admin-settings-form fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  min-width: 0;
  padding: 14px 0 0;
}

.admin-settings-form legend {
  color: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px 0 0;
  text-transform: uppercase;
}

.admin-settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-price-settings {
  align-items: center;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: minmax(82px, 0.7fr) repeat(3, minmax(90px, 1fr));
}

.admin-price-settings > strong,
.admin-price-settings > span {
  font-size: 12px;
}

.admin-price-settings > strong {
  color: var(--muted);
  text-align: center;
}

.admin-price-settings > span {
  color: var(--ink);
  font-weight: 800;
}

.admin-settings-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.admin-settings-actions .form-message {
  margin: 0;
}

.admin-calendar-card {
  align-content: start;
}

.admin-actions-column {
  align-self: start;
  display: grid;
  gap: 16px;
}

.admin-section-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-section-heading h2 {
  font-size: 21px;
  line-height: 1.2;
  margin: 2px 0 0;
}

.admin-section-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  text-align: right;
}

.admin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-legend span {
  align-items: center;
  background: rgba(248, 245, 237, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
}

.admin-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.admin-legend i.free {
  background: rgba(184, 193, 181, 0.54);
}

.admin-legend i.paid {
  background: var(--gold);
}

.admin-legend i.admin_reserved {
  background: var(--green);
}

.admin-legend i.closed {
  background: #95a29a;
}

.admin-legend i.cancelled {
  background: var(--danger);
}

.admin-calendar {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 64px repeat(3, minmax(142px, 1fr));
  max-height: min(540px, 68vh);
  overflow: auto;
}

.admin-calendar-head,
.admin-calendar-time,
.admin-calendar-cell {
  border-bottom: 1px solid rgba(248, 245, 237, 0.09);
  border-right: 1px solid rgba(248, 245, 237, 0.09);
  min-height: 46px;
  padding: 8px;
}

.admin-calendar-head {
  align-items: center;
  background: rgba(16, 25, 20, 0.98);
  color: var(--green-soft);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-calendar-head.time,
.admin-calendar-time {
  left: 0;
  position: sticky;
  z-index: 3;
}

.admin-calendar-time {
  align-items: center;
  background: #0b1510;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 700;
}

.admin-calendar-cell {
  border-left: 0;
  border-top: 0;
  border-radius: 0;
  background: rgba(248, 245, 237, 0.028);
  color: rgba(184, 193, 181, 0.58);
  cursor: default;
  display: grid;
  font: inherit;
  gap: 4px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

button.admin-calendar-cell.free {
  cursor: pointer;
}

button.admin-calendar-cell.free:hover,
.admin-calendar-cell.selected {
  background: rgba(111, 195, 66, 0.13);
  color: var(--green-soft);
}

.admin-calendar-cell.selected {
  box-shadow: inset 0 0 0 1px rgba(111, 195, 66, 0.58);
  font-weight: 700;
}

.admin-calendar-cell.occupied {
  background: linear-gradient(180deg, rgba(200, 164, 93, 0.18), rgba(200, 164, 93, 0.08));
  border-color: rgba(200, 164, 93, 0.28);
  color: var(--ink);
}

.admin-calendar-cell.admin_reserved {
  background: linear-gradient(180deg, rgba(111, 195, 66, 0.22), rgba(111, 195, 66, 0.09));
}

.admin-calendar-cell.payment_pending {
  background: linear-gradient(180deg, rgba(200, 164, 93, 0.14), rgba(200, 164, 93, 0.06));
}

.admin-calendar-cell.paid {
  background: linear-gradient(180deg, rgba(200, 164, 93, 0.24), rgba(200, 164, 93, 0.09));
}

.admin-calendar-cell.closed {
  background: repeating-linear-gradient(
    135deg,
    rgba(149, 162, 154, 0.18),
    rgba(149, 162, 154, 0.18) 8px,
    rgba(149, 162, 154, 0.08) 8px,
    rgba(149, 162, 154, 0.08) 16px
  );
  border-color: rgba(149, 162, 154, 0.28);
}

.admin-calendar-cell.cancelled {
  background: rgba(237, 127, 114, 0.1);
  color: rgba(248, 245, 237, 0.46);
}

.admin-calendar-cell strong,
.admin-calendar-cell span,
.admin-calendar-cell small {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.admin-calendar-cell small {
  color: var(--gold);
  font-weight: 700;
}

.admin-calendar-cell .continued {
  color: var(--muted);
}

.admin-manual-form,
.admin-list {
  display: grid;
  gap: 12px;
}

.admin-selection-hint {
  background: rgba(111, 195, 66, 0.08);
  border-left: 2px solid var(--green);
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  padding: 9px 10px;
}

.admin-closure-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.admin-closure-row {
  align-items: center;
  background: rgba(248, 245, 237, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
}

.admin-closure-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-closure-row span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-manual-form label span,
.admin-status-control > span {
  font-size: 12px;
}

.admin-booking {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 12px;
}

.admin-booking-time {
  align-content: center;
  background: rgba(111, 195, 66, 0.09);
  border: 1px solid rgba(111, 195, 66, 0.25);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-height: 64px;
}

.admin-booking-time strong {
  color: var(--green-soft);
  font-size: 18px;
}

.admin-booking-time span,
.admin-booking-title small,
.admin-booking-copy > span,
.admin-booking-details {
  color: var(--muted);
  font-size: 12px;
}

.admin-booking-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-booking-title {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.admin-booking-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.admin-booking-details span {
  overflow-wrap: anywhere;
}

.admin-status-control {
  min-width: 150px;
}

.admin-booking select {
  min-width: 150px;
}

.footer {
  background: #282828;
  color: #e8edf0;
  padding: clamp(44px, 5vw, 70px) clamp(20px, 4vw, 64px) 30px;
}

.footer-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr;
  margin: 0 auto;
  max-width: 1180px;
}

.footer h3 {
  color: var(--green-soft);
  font-size: 16px;
  margin-bottom: 18px;
}

.footer a,
.footer p {
  color: #d9dee2;
  display: block;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.footer-brand strong {
  display: block;
  font-size: 24px;
  margin-top: 12px;
}

.footer-logo {
  background: #f6f8f5;
  border-radius: 50%;
  height: 54px;
  padding: 4px;
  width: 54px;
}

.footer-logo-transparent {
  background: transparent;
  border-radius: 0;
  object-fit: contain;
  padding: 0;
}

.footer-socials {
  margin-top: 24px;
}

.footer-socials h3 {
  margin-bottom: 12px;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-links a {
  align-items: center;
  border: 1px solid rgba(190, 247, 85, 0.38);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  margin: 0;
  min-height: 40px;
  padding: 8px 14px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  background: var(--green-soft);
  border-color: var(--green-soft);
  color: #07110d;
}

.footer-social-links svg {
  height: 16px;
  width: 16px;
}

.included-box {
  background: #00775e;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 14px;
  padding: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8c1c7;
  display: flex;
  justify-content: space-between;
  margin: 54px auto 0;
  max-width: 1180px;
  padding-top: 26px;
}

@media (max-height: 850px) and (min-width: 700px) {
  .booking-app-header {
    min-height: 60px;
    padding-bottom: 8px;
    padding-top: 8px;
  }

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

  .booking-app-title {
    margin-bottom: 18px;
  }

  .booking-app-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .booking-app-title p {
    font-size: 14px;
  }

  .date-strip {
    margin-bottom: 18px;
  }

  .date-card {
    min-height: 78px;
  }

  .duration-strip {
    margin-bottom: 18px;
  }

  .location-card {
    gap: 14px;
  }

  .time-grid {
    max-height: min(280px, 38vh);
  }

  .time-card {
    min-height: 48px;
  }

  .profile-page {
    height: calc(100dvh - 60px);
    padding-top: 14px;
  }

  .settings-main {
    gap: 12px;
  }

  .settings-table div {
    padding: 10px 14px;
  }

  .settings-transactions {
    min-height: 180px;
  }

  .transaction-list {
    max-height: 220px;
    min-height: 120px;
  }

  .auth-shell {
    padding-bottom: 28px;
    padding-top: 84px;
  }

  .auth-form {
    gap: 12px;
    max-width: 460px;
    padding: 16px 28px 20px;
  }

  .auth-form h2 {
    font-size: 30px;
    margin-bottom: 0;
  }

  .auth-back {
    top: 14px;
  }

  .auth-form label span {
    font-size: 14px;
  }

  .auth-form input {
    min-height: 42px;
  }
}

@media (max-width: 980px) {
  .intro {
    min-height: 700px;
  }

  .intro .section-heading,
  .intro .intro-grid {
    max-width: 68vw;
  }

  .intro-horse {
    opacity: 0.48;
    right: -24vw;
    width: 82vw;
  }

  .hero-media {
    background-position: 30% center;
    transform: translate3d(0, var(--hero-bg-y), 0) scale(1.08);
  }

  .hero::after {
    display: none;
  }

  .nav a:not(.lang-toggle),
  .nav-divider,
  .user-badge {
    display: none;
  }

  .hero {
    min-height: 820px;
    overflow: hidden;
    padding: 116px 36px 176px;
  }

  .hero-content {
    max-width: 54%;
  }

  .hero-cinematic h1 {
    font-size: 56px;
  }

  .hero-availability {
    grid-template-columns: minmax(160px, 0.7fr) minmax(320px, 2fr) minmax(150px, 0.7fr);
  }

  .hero-availability-heading,
  .hero-schedule-link {
    padding: 16px 22px;
  }

  .hero-availability-slots {
    justify-content: flex-start;
  }

  .hero-stats,
  .price-list {
    flex-direction: column;
  }

  .hero-stats {
    border-top: 0;
    display: grid;
    gap: 8px;
    left: auto;
    margin-top: 34px;
    max-width: 640px;
    position: relative;
    right: auto;
  }

  .hero-stats div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 12px;
  }

  .intro-grid,
  .why-grid,
  .pricing-grid,
  .booking-page,
  .admin-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .why-heading {
    text-align: center;
  }

  .why-grid {
    gap: 24px;
    max-width: 600px;
  }

  .why-card {
    gap: 14px;
    grid-row: auto;
    grid-template-rows: 36px auto auto;
    padding: 0;
  }

  .why-card + .why-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .profile-page {
    padding-top: 18px;
  }

  .profile-tabs button {
    min-height: 42px;
  }

  .settings-panel {
    gap: 14px;
  }

  .booking-copy {
    position: static;
  }

  .racket-story {
    height: 155vh;
  }

  .racket-story-sticky {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    min-height: 640px;
    padding-left: 36px;
    padding-right: 36px;
  }

  .racket-story-copy {
    max-width: 500px;
  }

  .racket-story-copy h2 {
    font-size: 40px;
    max-width: 460px;
  }

  .racket-product {
    height: 72vh;
    opacity: 0.72;
    right: -13vw;
    width: 62vw;
  }

  .racket-orbit-outer {
    right: -24vw;
  }

  .racket-orbit-inner {
    right: -12vw;
  }

  .pricing-section {
    padding-left: clamp(42px, 8vw, 78px);
    padding-right: clamp(42px, 8vw, 78px);
  }

  .pricing-heading {
    margin-bottom: 42px;
  }

  .pricing-grid {
    gap: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    width: 100%;
  }

  .pricing-card {
    padding: 28px;
  }

  .policy-box {
    max-width: 600px;
  }
}

@media (max-width: 640px) {
  .booking-app-header {
    align-items: start;
    gap: 12px;
  }

  .booking-user {
    display: grid;
    gap: 8px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-width: 0;
  }

  .booking-user .user-avatar {
    height: 32px;
    width: 32px;
  }

  .booking-user .profile-name {
    max-width: none;
    min-width: 0;
  }

  .booking-user .credit-balance {
    font-size: 12px;
    padding: 6px 8px;
  }

  .booking-user .button {
    grid-column: 2;
    grid-row: 2;
  }

  .booking-user .button:last-child {
    grid-column: 3;
  }

  .why-heading .eyebrow {
    font-size: 36px;
  }

  .booking-app-title h1 {
    font-size: 32px;
  }

  .booking-modal-card h2 {
    font-size: 26px;
  }

  .tagline {
    font-size: 22px;
  }

  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand-meta {
    display: none;
  }

  .booking-app-header .brand span {
    display: none;
  }

  .brand-name {
    display: inline;
    font-size: 16px;
  }

  .brand-icon {
    height: 38px;
    width: 38px;
  }

  .nav {
    gap: 8px;
  }

  .hero {
    align-items: flex-start;
    min-height: 780px;
    padding: 108px 18px 174px;
  }

  .hero::after {
    display: none;
  }

  .hero-media {
    background-position: 46% center;
    filter: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cinematic h1 {
    font-size: 46px;
    line-height: 1;
    max-width: 340px;
  }

  h1 {
    font-size: 48px;
    line-height: 1;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.58;
    max-width: 300px;
  }

  .hero-kicker {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .auth-shell {
    padding: 94px 18px 42px;
  }

  .auth-panel {
    gap: 20px;
    max-width: 100%;
    padding: 24px 18px;
  }

  .auth-panel h1 {
    font-size: 32px;
    line-height: 1.12;
    max-width: 420px;
  }

  .auth-intro p {
    font-size: 16px;
    line-height: 1.58;
    max-width: 340px;
  }

  .auth-choice {
    max-width: 340px;
  }

  .auth-form {
    gap: 16px;
    max-width: 420px;
    padding: 24px 18px;
  }

  .auth-form h2 {
    font-size: 28px;
    margin: 0 0 4px;
    min-height: 40px;
    padding: 0 36px;
  }

  .auth-back {
    font-size: 24px;
    height: 40px;
    left: 18px;
    top: 24px;
    width: 40px;
  }

  .auth-form label {
    gap: 7px;
  }

  .auth-form label span {
    font-size: 16px;
    line-height: 1.35;
  }

  .auth-form input {
    min-height: 54px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 28px;
  }

  .hero-cinematic .button.primary {
    min-width: 0;
  }

  .hero-text-link {
    font-size: 12px;
    justify-content: center;
  }

  .hero-text-link::after {
    margin-left: 8px;
  }

  .hero-availability {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 138px;
  }

  .hero-availability-heading,
  .hero-schedule-link {
    border: 0;
    padding: 14px 18px 4px;
  }

  .hero-availability-slots {
    border-top: 1px solid var(--line);
    gap: 26px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding: 12px 18px 16px;
  }

  .hero-schedule-link {
    white-space: nowrap;
  }

  .hero-stats {
    max-width: none;
  }

  .hero-stats div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
  }

  .section {
    padding: 58px 18px;
  }

  .intro-grid {
    gap: 18px;
    margin-top: 30px;
  }

  .intro-grid p,
  .why-card p,
  .pricing-heading p {
    font-size: 16px;
    line-height: 1.65;
  }

  .why-heading {
    margin-bottom: 26px;
    text-align: center;
  }

  .why-grid {
    gap: 24px;
  }

  .why-card {
    padding: 0;
  }

  .racket-story {
    height: 130vh;
    min-height: 790px;
  }

  .racket-story-sticky {
    display: block;
    min-height: 680px;
    padding: 96px 18px 44px;
  }

  .racket-story-sticky::after {
    background: linear-gradient(180deg, rgba(7, 17, 13, 0.04), rgba(7, 17, 13, 0.2) 46%, rgba(7, 17, 13, 0.9) 100%);
  }

  .racket-story-copy {
    max-width: 100%;
    transform: none;
  }

  .racket-story-copy h2 {
    font-size: 32px;
    line-height: 1.12;
    max-width: 350px;
  }

  .racket-story-copy > p:last-of-type {
    font-size: 16px;
    line-height: 1.62;
    margin-top: 20px;
    max-width: 330px;
  }

  .racket-details {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 28px;
    max-width: 260px;
    padding-top: 16px;
  }

  .racket-details div {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 24px 1fr;
    padding: 0;
  }

  .racket-details div + div {
    border-left: 0;
    padding-left: 0;
  }

  .racket-product {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 28%, #000 54%);
    height: 62vh;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 28%, #000 54%);
    max-height: 560px;
    opacity: 0.32;
    right: -18vw;
    top: 59%;
    width: 118vw;
  }

  .racket-shadow {
    bottom: 7%;
    right: -12vw;
    width: 88vw;
  }

  .racket-orbit-outer {
    height: 140vw;
    right: -76vw;
    width: 140vw;
  }

  .racket-orbit-inner {
    height: 102vw;
    right: -56vw;
    width: 102vw;
  }

  .racket-scroll-cue {
    bottom: 22px;
    right: 18px;
  }

  .pricing-section {
    padding: 58px clamp(22px, 8vw, 42px);
  }

  .pricing-heading {
    margin-bottom: 34px;
  }

  .pricing-grid {
    gap: 24px;
    max-width: 440px;
  }

  .pricing-card {
    gap: 20px;
    padding: 24px 20px;
  }

  .pricing-card-heading h3 {
    font-size: 24px;
  }

  .price-table td {
    font-size: 22px;
  }

  .form-row,
  .admin-booking,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-calendar {
    grid-template-columns: 62px repeat(3, minmax(124px, 1fr));
  }

  .admin-quick-days {
    width: 100%;
  }

  .admin-quick-days .button {
    flex: 1;
  }

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

  .time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 280px;
  }

  .date-card {
    min-height: 88px;
  }

  .duration-strip {
    gap: 8px;
  }

  .duration-strip button {
    min-height: 48px;
  }

  .booking-app {
    padding-left: 14px;
    padding-right: 14px;
  }

  .location-card {
    padding: 16px;
  }

  .time-card {
    font-size: 17px;
    min-height: 48px;
  }

  .selection-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .selection-summary div,
  .selection-summary div:first-child,
  .selection-summary div:last-child {
    padding: 12px;
  }

  .selection-summary div:nth-child(odd) {
    border-left: 0;
  }

  .selection-summary div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .court-row .button {
    width: 100%;
  }

  .booking-summary,
  .confirmation-actions,
  .payment-action-grid,
  .court-row,
  .location-heading,
  .settings-table div,
  .settings-actions,
  .transaction-row {
    grid-template-columns: 1fr;
  }

  .booking-summary > div:nth-child(even) {
    border-left: 0;
  }

  .booking-summary > div,
  .booking-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .booking-summary > div:last-child {
    border-bottom: 0;
  }

  .confirmation-details div {
    align-items: start;
    display: grid;
  }

  .credit-confirm-box div {
    align-items: start;
    display: grid;
  }

  .confirmation-details strong,
  .credit-confirm-box strong {
    text-align: left;
  }

  .profile-list-item {
    align-items: stretch;
    gap: 10px;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .settings-table dd {
    text-align: left;
  }

  .profile-booking-meta {
    align-items: center;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
  }

  .profile-booking-meta > strong:last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .profile-booking-meta .cancel-booking-button,
  .profile-booking-meta .credit-refund {
    grid-column: 1 / -1;
  }

  .booking-status {
    width: max-content;
  }

  .cancel-booking-button {
    width: 100%;
  }

  .profile-page {
    height: calc(100dvh - 64px);
    padding: 12px 12px 14px;
  }

  .profile-panel-toolbar {
    align-items: stretch;
    display: grid;
    gap: 12px;
  }

  .profile-panel-heading h1,
  .settings-section-heading h2 {
    font-size: 21px;
  }

  .booking-date-tile {
    min-height: 58px;
  }

  .booking-date-tile strong {
    font-size: 20px;
  }

  .profile-list-item {
    padding: 12px;
  }

  .profile-list-item strong {
    font-size: 16px;
  }

  .profile-list-item span {
    font-size: 13px;
  }

  .sub-tabs {
    flex: none;
    max-width: none;
  }

  .settings-table {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .settings-table div {
    gap: 4px;
  }

  .settings-actions {
    display: grid;
  }

  .settings-actions .button {
    min-width: 0;
    width: 100%;
  }

  .settings-panel {
    align-content: start;
    grid-template-rows: auto auto auto;
    overflow-y: auto;
    padding-bottom: 18px;
    padding-right: 0;
  }

  .settings-transactions {
    min-height: auto;
    overflow: visible;
  }

  .transaction-list {
    max-height: 220px;
    min-height: 160px;
    overflow-y: auto;
  }

  .transaction-head {
    display: none;
  }

  .transaction-row {
    gap: 5px;
    padding: 10px 12px;
  }

  .transaction-row > * {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    text-align: right;
  }

  .transaction-row > *::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    margin-right: 16px;
    text-transform: uppercase;
  }

  .settings-action-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .password-form {
    justify-self: stretch;
    max-width: none;
  }

  .location-heading {
    display: grid;
  }

  .location-heading span {
    text-align: left;
  }

}

@media (max-width: 980px) {
  .admin-header {
    align-items: stretch;
    display: grid;
    gap: 16px;
  }

  .admin-tools {
    justify-content: start;
  }

}

@media (max-width: 640px) {
  .admin-page {
    gap: 12px;
    padding: 16px 12px 36px;
  }

  .admin-header h1 {
    font-size: 28px;
  }

  .admin-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-tools label {
    max-width: none;
  }

  .admin-tools > .button {
    width: 100%;
  }

  .admin-summary div {
    padding: 10px 8px;
  }

  .admin-summary span {
    font-size: 9px;
  }

  .admin-summary strong {
    font-size: 18px;
  }

  .admin-calendar-card,
  .admin-manual-card,
  .admin-closure-card,
  .admin-settings-card,
  .admin-list-card {
    padding: 12px;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-price-settings {
    gap: 8px;
    grid-template-columns: minmax(70px, 0.7fr) repeat(3, minmax(64px, 1fr));
  }

  .admin-settings-actions {
    align-items: stretch;
    display: grid;
  }

  .admin-section-heading {
    align-items: start;
    display: grid;
    gap: 4px;
  }

  .admin-section-heading p {
    text-align: left;
  }

  .admin-calendar {
    grid-template-columns: 58px repeat(3, minmax(118px, 1fr));
    max-height: 480px;
  }

  .admin-calendar-head,
  .admin-calendar-time,
  .admin-calendar-cell {
    min-height: 44px;
    padding: 7px;
  }

  .admin-legend {
    gap: 6px;
  }

  .admin-legend span {
    font-size: 10px;
    min-height: 28px;
    padding: 0 8px;
  }

  .admin-booking {
    align-items: start;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .admin-booking-time {
    min-height: 58px;
  }

  .admin-booking-time strong {
    font-size: 16px;
  }

  .admin-booking-title {
    align-items: start;
    display: grid;
    gap: 2px;
  }

  .admin-booking-details {
    display: grid;
    gap: 2px;
  }

  .admin-status-control {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .admin-booking select {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .racket-story {
    height: auto;
  }

  .racket-story-sticky {
    position: relative;
  }

  .racket-product {
    transform: translate3d(0, -50%, 0) rotateZ(-8deg) scale(0.94);
  }

  .intro .section-heading {
    transform: none;
  }

  .intro-horse {
    transform: translate3d(0, -50%, 0) scale(0.94);
  }

  .racket-scroll-cue {
    display: none;
  }
}

.not-found-body {
  background: #07110d;
  color: var(--ink);
  min-height: 100vh;
}

.not-found-main {
  align-content: center;
  display: grid;
  justify-items: start;
  margin: 0 auto;
  min-height: calc(100vh - 88px);
  padding: 72px clamp(24px, 7vw, 112px);
  width: min(100%, 1280px);
}

.not-found-main h1 {
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.96;
  margin: 14px 0 20px;
  max-width: 760px;
}

.not-found-main > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 580px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 22px;
}

.not-found-main small {
  color: var(--muted);
}

@media (max-width: 640px) {
  .not-found-main {
    align-content: start;
    padding-top: 96px;
  }

  .not-found-actions {
    display: grid;
    width: 100%;
  }
}

/* Mobile refinement: preserve the desktop identity while improving phone rhythm. */
@media (max-width: 980px) {
  .profile-body {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .profile-body .profile-page,
  .profile-page {
    height: auto;
    min-height: calc(100dvh - 64px);
    overflow: visible;
  }

  .profile-panel,
  .profile-list,
  .settings-panel,
  .settings-transactions,
  .transaction-list {
    max-height: none;
    overflow: visible;
  }

  .bookings-list {
    height: auto;
  }

  .time-grid {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .pricing-section {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
}

@media (max-width: 640px) {
  .site-header {
    background: #06110d;
    border-bottom: 1px solid rgba(248, 245, 237, 0.12);
    min-height: 68px;
    padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }

  .site-header .brand {
    gap: 9px;
  }

  .site-header .brand-icon {
    height: 38px;
    width: 38px;
  }

  .site-header .brand-name {
    font-size: 16px;
  }

  .lang-toggle {
    height: 38px;
    min-width: 58px;
    padding: 0 12px;
  }

  .hero {
    align-items: initial;
    min-height: 100svh;
    padding: 68px 0 132px;
  }

  .hero-media {
    background-image: url("/assets/hero-mobile-private-club-bg.webp");
    background-position: center center;
    transform: translate3d(0, var(--hero-bg-y), 0) scale(1.025);
    transform-origin: center center;
  }

  .hero-content {
    backdrop-filter: blur(9px);
    background: linear-gradient(135deg, rgba(4, 18, 13, 0.84), rgba(4, 18, 13, 0.62));
    border: 1px solid rgba(190, 224, 120, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    left: max(16px, env(safe-area-inset-left));
    max-width: 320px;
    padding: 18px;
    position: absolute;
    top: clamp(150px, 26svh, 232px);
    width: min(calc(100vw - 32px), 320px);
  }

  .hero-cinematic h1 {
    font-size: clamp(34px, 10.2vw, 41px);
    line-height: 0.96;
    margin-bottom: 14px;
    max-width: 270px;
    text-wrap: balance;
  }

  .hero-kicker {
    color: #b7ef52;
    font-size: 10px;
    margin-bottom: 10px;
  }

  .hero-copy {
    color: rgba(248, 245, 237, 0.94);
    font-size: 13px;
    line-height: 1.48;
    margin-bottom: 0;
    max-width: 275px;
  }

  .hero-actions {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    margin-top: 18px;
    max-width: none;
  }

  .hero-cinematic .button.primary {
    border-radius: 999px;
    min-height: 46px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }

  .hero-text-link {
    background: rgba(7, 17, 13, 0.28);
    border: 1px solid rgba(183, 239, 82, 0.62);
    border-radius: 999px;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 20px;
    width: 100%;
  }

  .hero-availability {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 132px;
  }

  .hero-availability-heading,
  .hero-schedule-link {
    min-width: 0;
    padding: 13px 16px 8px;
  }

  .hero-availability-heading strong {
    font-size: 11px;
  }

  .hero-schedule-link {
    font-size: 10px;
  }

  .hero-schedule-link span:last-child {
    margin-left: 8px;
  }

  .hero-availability-slots {
    gap: 4px;
    justify-content: space-between;
    overflow-x: auto;
    padding: 11px 16px calc(12px + env(safe-area-inset-bottom));
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .hero-availability-slots::-webkit-scrollbar,
  .date-strip::-webkit-scrollbar {
    display: none;
  }

  .hero-availability-slot {
    flex: 1 1 0;
    font-size: 10px;
    min-width: 34px;
    scroll-snap-align: start;
  }

  .section {
    padding: 52px max(16px, env(safe-area-inset-right)) 52px max(16px, env(safe-area-inset-left));
  }

  .section-heading h2 {
    font-size: 29px;
    line-height: 1.12;
    text-wrap: balance;
  }

  .intro-grid {
    gap: 16px;
    margin-top: 24px;
  }

  .intro {
    justify-content: flex-start;
    min-height: 760px;
    padding-bottom: 250px;
  }

  .intro::after {
    background: linear-gradient(180deg, transparent 54%, rgba(7, 17, 13, 0.16) 70%, rgba(7, 17, 13, 0.72) 100%);
  }

  .intro .section-heading,
  .intro .intro-grid {
    max-width: 100%;
  }

  .intro .section-heading {
    transform: none;
  }

  .intro .section-heading h2 {
    font-size: 29px;
  }

  .intro-horse {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 16%, #000 34%);
    bottom: 54px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 16%, #000 34%);
    opacity: 0.48;
    right: 2vw;
    top: auto;
    transform: translate3d(calc(var(--horse-x) * 0.45), calc(var(--horse-y) * 0.35), 0) scale(var(--horse-scale));
    width: 110vw;
  }

  .intro-horse-shadow {
    bottom: 8%;
    right: -24vw;
    width: 112vw;
  }

  .intro-track-line {
    bottom: -8%;
    height: 110vw;
    right: -54vw;
    top: auto;
    width: 150vw;
  }

  .intro-track-line-inner {
    bottom: 1%;
    height: 82vw;
    right: -38vw;
    width: 112vw;
  }

  .intro-grid p,
  .why-card p,
  .pricing-heading p {
    font-size: 15px;
    line-height: 1.62;
  }

  .racket-story {
    height: 130svh;
    min-height: 780px;
  }

  .racket-story-sticky {
    min-height: 660px;
    padding: 92px max(16px, env(safe-area-inset-right)) 42px max(16px, env(safe-area-inset-left));
  }

  .racket-story-copy h2 {
    font-size: 30px;
    max-width: 330px;
    text-wrap: balance;
  }

  .racket-story-copy > p:last-of-type {
    font-size: 15px;
    max-width: 310px;
  }

  .racket-details {
    max-width: 285px;
  }

  .racket-product {
    height: 60vh;
    max-height: 540px;
    opacity: 0.38;
    right: -22vw;
    top: 60%;
    width: 120vw;
  }

  .why-section {
    padding-bottom: 38px;
  }

  .why-heading {
    margin-bottom: 8px;
    text-align: left;
  }

  .why-heading .eyebrow {
    font-size: 30px;
    line-height: 1.12;
  }

  .why-grid {
    gap: 0;
    max-width: none;
  }

  .why-card,
  .why-card + .why-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 5px 16px;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    padding: 22px 0;
  }

  .why-card:first-child {
    border-top: 0;
  }

  .why-icon {
    grid-row: 1 / 3;
    height: 30px;
    margin-top: 2px;
    width: 30px;
  }

  .why-card h3 {
    font-size: 19px;
    line-height: 1.3;
  }

  .pricing-section {
    padding: 52px max(16px, env(safe-area-inset-right)) 52px max(16px, env(safe-area-inset-left));
  }

  .pricing-heading {
    margin-bottom: 26px;
    text-align: left;
  }

  .pricing-heading h2 {
    font-size: 29px;
    line-height: 1.14;
  }

  .pricing-heading p {
    margin-left: 0;
    margin-right: 0;
  }

  .pricing-grid {
    gap: 18px;
    max-width: none;
  }

  .pricing-card {
    gap: 18px;
    padding: 21px 18px;
  }

  .pricing-card-heading h3 {
    font-size: 22px;
  }

  .price-table th,
  .price-table td {
    padding: 12px 0;
  }

  .price-table tbody th {
    font-size: 15px;
  }

  .price-table td {
    font-size: 20px;
  }

  .policy-box {
    text-align: left;
  }

  .footer {
    padding: 42px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .footer-grid {
    gap: 32px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer a,
  .footer p {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .included-box {
    padding: 11px;
  }

  .footer-bottom {
    gap: 5px;
    margin-top: 34px;
    padding-top: 20px;
  }

  .auth-shell {
    align-items: end;
    min-height: 100svh;
    padding: 76px 0 0;
  }

  .auth-panel {
    align-self: end;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    border-right: 0;
    box-shadow: none;
    gap: 22px;
    max-width: none;
    min-height: min(590px, calc(100svh - 76px));
    padding: 30px 20px calc(30px + env(safe-area-inset-bottom));
    width: 100%;
  }

  .auth-panel h1 {
    font-size: 30px;
  }

  .auth-intro p {
    font-size: 15px;
  }

  .auth-choice {
    max-width: 420px;
  }

  .auth-form {
    background: transparent;
    gap: 15px;
    max-width: 420px;
    padding: 0;
  }

  .auth-form h2 {
    font-size: 29px;
    margin: 0 40px 6px;
    min-height: 42px;
    padding: 0;
  }

  .auth-back {
    left: -4px;
    top: 0;
  }

  .auth-form label span {
    font-size: 14px;
  }

  .auth-form input {
    min-height: 52px;
  }

  .booking-app-header {
    align-items: start;
    gap: 10px;
    min-height: 72px;
    padding: 9px 12px;
  }

  .booking-app-header .brand {
    padding-top: 2px;
  }

  .booking-app-header .brand-icon {
    height: 36px;
    width: 36px;
  }

  .booking-user {
    display: grid;
    gap: 5px 7px;
    grid-template-columns: 30px minmax(70px, 1fr) auto auto;
    justify-content: end;
    min-width: 0;
  }

  .booking-user .user-avatar {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 30px;
    width: 30px;
  }

  .booking-user .profile-name {
    align-self: center;
    font-size: 12px;
    grid-column: 2;
    grid-row: 1;
    max-width: 118px;
  }

  .booking-user .credit-balance {
    align-self: center;
    font-size: 10px;
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    padding: 3px 7px;
  }

  .booking-user .button,
  .booking-user .button:last-child {
    font-size: 11px;
    grid-column: auto;
    grid-row: 1 / 3;
    min-height: 38px;
    padding: 6px 9px;
  }

  .booking-app {
    padding: 20px max(14px, env(safe-area-inset-right)) 40px max(14px, env(safe-area-inset-left));
  }

  .booking-app-title {
    margin: 0 0 18px;
    text-align: left;
  }

  .booking-app-title h1 {
    font-size: 29px;
    margin-bottom: 5px;
  }

  .booking-app-title p {
    font-size: 13px;
  }

  .date-strip {
    gap: 8px;
    grid-auto-columns: 70px;
    margin-left: -14px;
    margin-right: -14px;
    padding: 2px 14px 8px;
    scroll-padding-left: 14px;
    scroll-snap-type: x mandatory;
  }

  .date-card {
    min-height: 78px;
    padding: 9px 6px;
    scroll-snap-align: start;
  }

  .date-card span {
    font-size: 12px;
  }

  .date-card strong {
    font-size: 20px;
  }

  .duration-strip {
    gap: 3px;
    margin-bottom: 14px;
    max-width: none;
  }

  .duration-strip button {
    font-size: 14px;
    min-height: 46px;
  }

  .location-card {
    gap: 14px;
    padding: 15px;
  }

  .location-heading {
    gap: 5px;
  }

  .location-heading h2 {
    font-size: 21px;
  }

  .location-heading span {
    font-size: 12px;
  }

  .time-grid {
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .time-card {
    font-size: 15px;
    min-height: 46px;
  }

  .court-row {
    gap: 12px;
    padding: 13px;
  }

  .booking-modal {
    align-items: end;
    justify-items: stretch;
    padding: 0;
  }

  .booking-modal-card,
  .booking-modal-card.small-modal {
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    border-right: 0;
    gap: 18px;
    max-height: 92dvh;
    max-width: none;
    padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
    width: 100%;
  }

  .booking-modal-card h2 {
    font-size: 25px;
  }

  .modal-close {
    right: 10px;
    top: 8px;
  }

  .confirmation-actions,
  .payment-action-grid {
    gap: 9px;
  }

  .profile-page {
    align-content: start;
    display: grid;
    gap: 12px;
    grid-template-rows: auto auto auto;
    min-height: calc(100dvh - 72px);
    padding: 14px 12px 38px;
  }

  .profile-tabs {
    max-width: none;
    width: 100%;
  }

  .profile-panel {
    gap: 12px;
    grid-template-rows: auto auto;
  }

  .profile-panel-toolbar {
    gap: 13px;
  }

  .profile-panel-heading h1,
  .settings-section-heading h2 {
    font-size: 22px;
  }

  .sub-tabs {
    width: 100%;
  }

  .profile-list {
    gap: 9px;
    padding-right: 0;
  }

  .profile-list-item {
    gap: 11px;
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 13px;
  }

  .profile-booking-meta {
    gap: 8px;
  }

  .settings-panel {
    grid-template-rows: auto auto auto;
    padding-bottom: 0;
    padding-right: 0;
  }

  .settings-main,
  .settings-transactions,
  .account-security {
    padding: 15px;
  }

  .settings-transactions {
    grid-template-rows: auto auto auto;
  }

  .transaction-list {
    min-height: 0;
  }

  .transaction-row {
    padding: 12px;
  }
}

@media (max-width: 640px) and (max-height: 600px) {
  .hero {
    padding-bottom: 118px;
  }

  .hero-content {
    padding: 14px;
    top: 122px;
  }

  .hero-cinematic h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .hero-kicker {
    margin-bottom: 6px;
  }

  .hero-copy {
    font-size: 12px;
    line-height: 1.36;
  }

  .hero-actions {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-cinematic .button.primary,
  .hero-text-link {
    min-height: 40px;
  }

  .hero-availability {
    min-height: 118px;
  }
}

@media (max-width: 370px) {
  .hero-cinematic h1 {
    font-size: 38px;
  }

  .site-header .brand-name {
    font-size: 15px;
  }

  .booking-user {
    grid-template-columns: 30px minmax(54px, 1fr) auto auto;
  }

  .booking-user .profile-name {
    max-width: 82px;
  }

  .booking-user .button,
  .booking-user .button:last-child {
    padding-left: 7px;
    padding-right: 7px;
  }

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

  .footer-brand {
    grid-column: auto;
  }
}

/* The mobile auth screen follows the compact court-image composition. */
@media (max-width: 640px) {
  html:has(body.auth-body) {
    scrollbar-width: none;
  }

  html:has(body.auth-body)::-webkit-scrollbar {
    display: none;
  }

  .auth-body {
    background: #06110d;
    min-height: 100dvh;
    scrollbar-width: none;
  }

  .auth-body::-webkit-scrollbar {
    display: none;
  }

  .auth-header.site-header {
    backdrop-filter: none;
    background: transparent;
    border: 0;
    min-height: 58px;
    padding: 15px 18px;
    position: absolute;
  }

  .auth-header .brand {
    gap: 7px;
  }

  .auth-header .brand-icon {
    background: transparent;
    border-radius: 0;
    height: 25px;
    object-fit: contain;
    padding: 0;
    width: 20px;
  }

  .auth-header .brand span {
    font-size: 13px;
    font-weight: 700;
  }

  .auth-shell {
    --auth-image-height: clamp(250px, 48svh, 310px);
    align-items: initial;
    background:
      linear-gradient(180deg, rgba(2, 11, 8, 0.06) 0%, rgba(2, 11, 8, 0.12) 70%, rgba(6, 17, 13, 0.9) 100%),
      url("/assets/players.webp") center top / cover no-repeat;
    display: block;
    min-height: 100svh;
    padding: var(--auth-image-height) 0 0;
  }

  .auth-panel {
    align-content: start;
    background: linear-gradient(
      180deg,
      rgba(6, 17, 13, 0.06) 0%,
      rgba(6, 17, 13, 0.16) 44%,
      rgba(6, 17, 13, 0.68) 78%,
      #06110d 100%
    );
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 0;
    justify-items: stretch;
    max-width: none;
    min-height: calc(100svh - var(--auth-image-height));
    padding: 3px 24px calc(22px + env(safe-area-inset-bottom));
    text-align: left;
    width: 100%;
  }

  .auth-intro {
    align-content: start;
    display: grid;
    gap: 8px;
    justify-items: start;
    padding-top: 9px;
    text-align: left;
  }

  .auth-intro .eyebrow {
    color: var(--green-soft);
    font-size: 9px;
    letter-spacing: 1.4px;
    line-height: 1.2;
    margin: 0;
  }

  .auth-intro h1 {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.06;
    margin: 0;
    text-align: left;
  }

  .auth-intro p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 2px 0 0;
    max-width: 290px;
  }

  .auth-choice {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    max-width: none;
    width: 100%;
  }

  .auth-choice .button {
    border-radius: 4px;
    font-size: 11px;
    min-height: 44px;
    padding: 9px 16px;
  }

  .auth-form-active .auth-intro {
    display: none;
  }

  .auth-form,
  .auth-result {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 9px;
    max-width: none;
    padding: 0;
    width: 100%;
  }

  .auth-form-kicker {
    color: var(--green-soft) !important;
    display: block;
    font-size: 9px !important;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 22px !important;
    margin: 0 0 2px;
    text-transform: uppercase;
  }

  .auth-form h2 {
    color: var(--ink);
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.06;
    margin: 0 0 14px;
    min-height: 0;
    padding: 0;
    text-align: left;
  }

  .auth-back {
    color: var(--ink);
    font-size: 17px;
    height: 24px;
    left: -7px;
    top: 0;
    width: 24px;
  }

  .auth-form label {
    gap: 0;
  }

  .auth-form label > span {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .auth-input-wrap,
  .password-field {
    color: var(--muted);
    position: relative;
  }

  .auth-field-icon {
    display: block;
    height: 16px;
    left: 12px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    z-index: 1;
  }

  .auth-form input,
  .password-field input {
    background: rgba(7, 17, 13, 0.74);
    border-color: rgba(248, 245, 237, 0.72);
    border-radius: 4px;
    font-size: 12px;
    min-height: 40px;
    padding: 8px 42px 8px 38px;
  }

  .auth-form input::placeholder {
    color: rgba(184, 193, 181, 0.76);
    opacity: 1;
  }

  .password-toggle {
    background: transparent;
    border: 0;
    height: 32px;
    right: 5px;
    width: 32px;
  }

  .password-toggle svg {
    height: 16px;
    width: 16px;
  }

  .auth-panel .auth-help {
    font-size: 10px;
    line-height: 1;
    margin: -3px 0 -2px;
  }

  .auth-help button,
  .auth-inline-action {
    font-size: 10px;
    padding: 2px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .auth-form .submit-button,
  .auth-result .button {
    border-radius: 4px;
    font-size: 11px;
    min-height: 40px;
    margin-top: 0;
    padding: 8px 16px;
  }

  .auth-form .submit-button::after {
    content: "→";
    font-size: 16px;
    margin-left: 18px;
  }

  .auth-panel .auth-switch {
    font-size: 11px;
    line-height: 1.4;
    margin: 4px 0 0;
  }

  .auth-switch button {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .auth-form-note {
    font-size: 12px;
    line-height: 1.5;
  }

  .form-message:empty,
  .auth-inline-action.hidden {
    display: none;
  }
}

/* Responsive homepage additions */
@media (max-width: 980px) {
  .how-section {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .how-steps { grid-template-columns: 1fr; }

  .how-steps li,
  .how-steps li:first-child,
  .how-steps li:last-child { padding: 22px 0; }

  .how-steps li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .location-section { grid-template-columns: 1fr; }
  .location-map { min-height: 430px; }

  .admin-analytics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-analytics-grid > div:nth-child(4) { border-left: 0; }
  .admin-analytics-grid > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .how-section {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .how-heading { margin-bottom: 18px; }
  .how-heading h2 { font-size: 29px; }

  .how-steps li {
    gap: 14px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .how-steps h3 { font-size: 19px; }
  .how-steps p { font-size: 14px; }

  .location-copy {
    padding: 48px max(16px, env(safe-area-inset-right)) 38px max(16px, env(safe-area-inset-left));
  }

  .location-copy h2 { font-size: 30px; }
  .location-copy > p:not(.eyebrow) { font-size: 15px; }
  .location-button { width: 100%; }
  .location-map { min-height: 360px; }

  .admin-analytics-card { padding: 18px; }
  .admin-analytics-heading { align-items: stretch; }
  .admin-analytics-period { width: 100%; }
  .admin-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-analytics-grid > div { padding: 16px 10px; }
  .admin-analytics-grid > div:nth-child(odd) { border-left: 0; }
  .admin-analytics-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .admin-analytics-days > div {
    gap: 7px 14px;
    grid-template-columns: 1fr 1fr;
  }
}

/* Focused responsive corrections: profile history, horse artwork, and auth parity. */
.auth-form .legal-consent.register-only {
  display: none !important;
}

.register-mode .auth-form .legal-consent.register-only {
  display: flex !important;
}

.intro-horse {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 94%, transparent 100%);
  aspect-ratio: 3 / 2;
  height: auto;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 94%, transparent 100%);
  max-width: none;
  object-fit: contain;
  width: min(52vw, 790px);
}

@media (min-width: 641px) {
  .auth-header.site-header {
    backdrop-filter: none;
    background: transparent;
    border: 0;
    padding: 26px clamp(30px, 4vw, 72px);
    position: absolute;
  }

  .auth-header .brand {
    gap: 10px;
  }

  .auth-header .brand-icon {
    background: transparent;
    border-radius: 0;
    height: 48px;
    object-fit: contain;
    padding: 0;
    width: 38px;
  }

  .auth-header .brand span {
    font-size: 21px;
  }

  .auth-shell {
    align-items: stretch;
    background:
      linear-gradient(90deg, rgba(4, 15, 11, 0.96) 0%, rgba(4, 15, 11, 0.86) 36%, rgba(4, 15, 11, 0.28) 70%, rgba(4, 15, 11, 0.08) 100%),
      url("/assets/players.webp") center / cover no-repeat;
    display: grid;
    justify-items: start;
    min-height: 100svh;
    padding: 0;
  }

  .auth-panel {
    align-content: center;
    align-self: stretch;
    background: linear-gradient(90deg, rgba(5, 17, 12, 0.92) 0%, rgba(5, 17, 12, 0.68) 72%, transparent 100%);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 24px;
    justify-items: start;
    margin: 0;
    max-width: none;
    min-height: 100svh;
    padding: clamp(118px, 15vh, 172px) clamp(42px, 7vw, 108px) 64px;
    text-align: left;
    width: min(760px, 58vw);
  }

  .auth-intro,
  .auth-choice,
  .auth-form,
  .auth-result {
    justify-self: start;
    max-width: 440px;
    width: 100%;
  }

  .auth-intro {
    justify-items: start;
    text-align: left;
  }

  .auth-intro .eyebrow,
  .auth-form-kicker {
    color: var(--green-soft) !important;
    display: block;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1.3 !important;
    margin: 0 0 7px;
    text-transform: uppercase;
  }

  .auth-intro h1,
  .auth-form h2 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(38px, 3.2vw, 52px);
    line-height: 1.04;
    margin: 0 0 18px;
    min-height: 0;
    padding: 0;
    text-align: left;
  }

  .auth-intro p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    max-width: 390px;
    text-align: left;
  }

  .auth-choice {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
  }

  .auth-choice .button {
    border-radius: 4px;
    min-height: 50px;
  }

  .auth-form,
  .auth-result {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 12px;
    padding: 0;
  }

  #authForm label > span {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  #authForm .legal-consent > span {
    clip: auto;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
  }

  .auth-input-wrap,
  .password-field {
    color: var(--muted);
    position: relative;
  }

  .auth-field-icon {
    display: block;
    height: 18px;
    left: 14px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    z-index: 1;
  }

  #authForm input,
  #authForm .password-field input {
    background: rgba(7, 17, 13, 0.72);
    border-color: rgba(248, 245, 237, 0.66);
    border-radius: 4px;
    font-size: 14px;
    min-height: 48px;
    padding: 10px 46px 10px 42px;
  }

  .auth-panel .auth-help {
    font-size: 12px;
    margin: -2px 0 0;
  }

  .auth-help button,
  .auth-inline-action,
  .auth-switch button {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .auth-form .submit-button,
  .auth-result .button {
    border-radius: 4px;
    min-height: 48px;
    margin-top: 2px;
  }

  .auth-form .submit-button::after {
    content: "→";
    font-size: 18px;
    margin-left: 20px;
  }

  .auth-panel .auth-switch {
    font-size: 15px;
    margin: 4px 0 0;
  }
}

@media (max-width: 980px) {
  .profile-body .settings-transactions {
    max-height: none;
    overflow: hidden;
  }

  .profile-body .transaction-list {
    max-height: min(46svh, 390px);
    min-height: 0;
    overscroll-behavior: contain;
    overflow-y: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .intro-horse {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    bottom: 46px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    opacity: 0.44;
    right: -10vw;
    width: 105vw;
  }
}
