/* ============================================================
   DESIGN TOKENS — Ninja 400 KRT Rental
   Racing garage aesthetic: asphalt dark, KRT racing red, acid-lime accent
   ============================================================ */
:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f4f2ee;
  --color-surface: #ffffff;
  --color-surface-2: #faf9f6;
  --color-surface-offset: #ebe9e4;
  --color-surface-offset-2: #e2dfd8;
  --color-divider: #ddd9d2;
  --color-border: #cfcbc2;

  /* Text */
  --color-text: #15141a;
  --color-text-muted: #5c5a5f;
  --color-text-faint: #9a9791;
  --color-text-inverse: #f7f5f1;

  /* Primary Accent — KRT Racing Red */
  --color-primary: #d81324;
  --color-primary-hover: #ad0f1d;
  --color-primary-active: #870b16;
  --color-primary-highlight: #f4d5d8;

  /* Secondary Accent — Acid Lime (matches rim tape) */
  --color-accent: #6f9e00;
  --color-accent-hover: #5a8200;
  --color-accent-active: #476700;
  --color-accent-highlight: #e2ecc4;

  --color-success: #437a22;
  --color-warning: #964219;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.15 0.01 30 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.15 0.01 30 / 0.12);
  --shadow-lg: 0 16px 40px oklch(0.15 0.01 30 / 0.18);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Clash Display', 'Arial Narrow', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0c0c0e;
  --color-surface: #151519;
  --color-surface-2: #1a1a1f;
  --color-surface-offset: #1f1f25;
  --color-surface-offset-2: #26262d;
  --color-divider: #2a2a31;
  --color-border: #35353d;

  --color-text: #eceae6;
  --color-text-muted: #a3a09b;
  --color-text-faint: #67656a;
  --color-text-inverse: #15141a;

  --color-primary: #ff3145;
  --color-primary-hover: #ff5c6c;
  --color-primary-active: #ff8590;
  --color-primary-highlight: #3a1418;

  --color-accent: #b6e63e;
  --color-accent-hover: #c9f261;
  --color-accent-active: #d8f78c;
  --color-accent-highlight: #232b12;

  --color-success: #6daa45;
  --color-warning: #bb653b;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
}

/* Type Scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 6.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 700px) {
  .wrap {
    padding-inline: var(--space-10);
  }
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

h2.section-title {
  font-size: var(--text-xl);
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-text-faint);
  background: var(--color-surface-offset);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-block: var(--space-16) var(--space-20);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(0.1 0.02 30 / 0.35) 0%,
    oklch(0.08 0.02 30 / 0.35) 40%,
    oklch(0.05 0.02 30 / 0.92) 100%
  );
}
.hero-content {
  position: relative;
  color: #f7f5f1;
  max-width: 720px;
}
.hero .eyebrow {
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  background: oklch(0.05 0.02 30 / 0.55);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: var(--space-5);
}
.hero-title em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-sub {
  font-size: var(--text-lg);
  color: oklch(0.94 0.01 40 / 0.85);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.hero-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.18);
  color: #fff;
}
.hero-price strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.hero-price span {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.7);
}

.hero-stats {
  position: relative;
  margin-top: var(--space-16);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 720px;
}
@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  border-top: 1px solid oklch(1 0 0 / 0.22);
  padding-top: var(--space-3);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fff;
}
.stat span {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-compact {
  min-height: 58vh;
  padding-block: var(--space-14) var(--space-14);
}
.hero-compact .hero-title {
  font-size: var(--text-3xl);
}
.hero-compact .hero-stats {
  margin-top: var(--space-10);
}
.hero-note {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.6);
  margin-top: var(--space-2);
}

.hero-media.split {
  display: flex;
}
.hero-media.split img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}
.hero-media.split img:first-child {
  object-position: 60% 45%;
}
.hero-media.split img:last-child {
  object-position: 40% 45%;
}

.fleet-cta-cards {
  position: relative;
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-10);
  max-width: 640px;
}
@media (min-width: 560px) {
  .fleet-cta-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.fleet-cta-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.18);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.fleet-cta-card:hover {
  background: oklch(1 0 0 / 0.14);
  border-color: oklch(1 0 0 / 0.3);
}
.fleet-cta-card strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.fleet-cta-card span {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.72);
}
.fleet-cta-card em {
  font-style: normal;
  color: var(--color-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bike-section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

/* ============================================================
   OVERVIEW (asymmetric two-column)
   ============================================================ */
.overview {
  display: grid;
  gap: var(--space-12);
}
@media (min-width: 900px) {
  .overview {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}
.overview-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.overview-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.overview-text p {
  margin-bottom: var(--space-4);
  max-width: 52ch;
}
.overview-text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
  color: var(--color-text);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ============================================================
   SPECS GRID
   ============================================================ */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.spec-cell {
  background: var(--color-surface);
  padding: var(--space-6) var(--space-5);
}
.spec-cell .icon {
  color: var(--color-primary);
  width: 22px;
  height: 22px;
  margin-bottom: var(--space-4);
}
.spec-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.spec-cell span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-interactive);
}
.gallery-grid a:hover img {
  transform: scale(1.04);
}

/* ============================================================
   PROTECTION / PRICING
   ============================================================ */
.protection-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 800px) {
  .protection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}
.plan-card.is-featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan-tag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.plan-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.plan-deductible {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-block: var(--space-3) var(--space-1);
}
.plan-deductible span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-weight: 500;
}
.plan-card ul {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.plan-card li {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.plan-card li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--color-accent);
}

.receipt {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.receipt-head {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px dashed var(--color-border);
}
.receipt-model {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  margin-top: var(--space-2);
}
.receipt-model span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-faint);
}
.receipt-dates {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.receipt-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.receipt-row span {
  max-width: 70%;
}
.receipt-row small {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}
.receipt-row strong {
  flex-shrink: 0;
  font-weight: 600;
  white-space: nowrap;
}
.receipt-row.muted {
  color: var(--color-text-muted);
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-display);
}
.receipt-total span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.receipt-total strong {
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.insight-card {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-accent-highlight);
  border: 1px solid color-mix(in oklab, var(--color-accent) 30%, var(--color-border));
}
.insight-card svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}
.insight-card p {
  color: var(--color-text);
  font-size: var(--text-sm);
}
.insight-card strong {
  color: var(--color-text);
}

/* ============================================================
   RULES / REQUIREMENTS
   ============================================================ */
.rules-list {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 720px) {
  .rules-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.rule-item {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.rule-item .num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  flex-shrink: 0;
  width: 2.2ch;
}
.rule-item h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.rule-item p {
  font-size: var(--text-sm);
}

/* ============================================================
   BOOKING CTA
   ============================================================ */
.booking {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-active), var(--color-primary));
  color: #fff;
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  isolation: isolate;
}
[data-theme='dark'] .booking {
  background: linear-gradient(135deg, #4a0b12, var(--color-primary));
}
.booking::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 85% 20%, oklch(1 0 0 / 0.18), transparent 55%);
}
.booking h2 {
  font-size: var(--text-2xl);
  color: #fff;
  max-width: 20ch;
  margin-bottom: var(--space-4);
}
.booking p {
  color: oklch(1 0 0 / 0.85);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}
.booking .btn-primary {
  background: #fff;
  color: var(--color-primary-active);
}
.booking .btn-primary:hover {
  background: oklch(0.95 0 0);
}
.booking .btn-ghost {
  border-color: oklch(1 0 0 / 0.4);
  color: #fff;
}
.booking .btn-ghost:hover {
  background: oklch(1 0 0 / 0.12);
  border-color: #fff;
}
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.booking-meta {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  border-top: 1px solid oklch(1 0 0 / 0.2);
  padding-top: var(--space-6);
}
.booking-meta div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.9);
}
.booking-meta svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* ============================================================
   BOOKING WIDGET — CALENDAR + LIVE PRICING
   ============================================================ */
.book-widget {
  width: 100%;
  margin-top: var(--space-10);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .book-widget {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.book-widget p,
.book-widget span,
.book-widget strong,
.book-widget div {
  color: inherit;
}
.book-panel {
  min-width: 0;
  padding: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 860px) {
  .book-panel {
    border-bottom: none;
    border-right: 1px solid var(--color-divider);
  }
}
.book-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.book-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
.book-tab:hover {
  border-color: var(--color-text-faint);
  color: var(--color-text);
}
.book-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.calendar-month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}
.calendar-nav {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: var(--color-surface);
}
.calendar-nav svg {
  width: 16px;
  height: 16px;
}
.calendar-nav:hover:not(:disabled) {
  background: var(--color-surface-offset);
  border-color: var(--color-text-faint);
}
.calendar-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: transparent;
  border: none;
  font-family: var(--font-body);
}
.calendar-cell:not(.is-empty):not(.is-disabled) {
  cursor: pointer;
}
.calendar-cell:hover:not(.is-disabled):not(.is-empty):not(.is-selected) {
  background: var(--color-surface-offset);
}
.calendar-cell.is-empty {
  visibility: hidden;
}
.calendar-cell.is-disabled {
  color: var(--color-text-faint);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.5;
}
.calendar-cell.is-today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}
.calendar-cell.is-selected {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.calendar-cell.is-range {
  background: var(--color-primary-highlight);
  color: var(--color-text);
  border-radius: var(--radius-sm);
}
.calendar-legend {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-selected {
  background: var(--color-primary);
}
.dot-unavailable {
  background: var(--color-text-faint);
}

.book-summary {
  min-width: 0;
  padding: var(--space-8);
  background: var(--color-surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.book-summary-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.summary-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.summary-dates > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.summary-dates span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
}
.summary-dates strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.book-empty-note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin: 0;
}
.price-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
}
.price-summary[hidden] {
  display: none;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-display);
}
.price-total span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.price-total strong {
  font-size: var(--text-xl);
  color: var(--color-primary);
}
.book-summary .btn {
  width: 100%;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
@media (max-width: 480px) {
  .book-summary .btn.btn-lg {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
    font-size: var(--text-sm);
  }
}
.book-summary .btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.book-summary .btn-primary:hover {
  background: var(--color-primary-hover);
}
.book-copy-fallback {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-1) 0;
  margin-top: calc(var(--space-2) * -1);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: center;
}
.book-copy-fallback:hover {
  color: var(--color-primary);
}

.book-fine-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin: 0;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}
.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--color-text);
}
.footer-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-6);
  max-width: 70ch;
}

/* Utility */
.text-center {
  text-align: center;
  margin-inline: auto;
}

/* Booking form fields (name/email/phone) + submit states */
.book-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  text-align: left;
}
.book-field label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.book-field label span {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--color-text-faint);
}
.book-field input {
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.book-field input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}
.book-summary .btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.book-form-error {
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-align: center;
  margin: 0;
}

.book-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.book-success svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}
.book-success strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.book-success p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   ACCOUNT / AUTH PAGES
   ============================================================ */
.auth-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-1);
  white-space: nowrap;
}
.auth-link:hover {
  color: var(--color-text);
}
.auth-slot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.auth-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
}
.auth-shell {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}
.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(var(--space-6), 5vw, var(--space-10));
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.auth-card .auth-sub {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.auth-card .btn {
  margin-top: var(--space-4);
  width: 100%;
}
.auth-foot {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.auth-foot a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-foot a:hover {
  text-decoration: underline;
}
.auth-error {
  font-size: var(--text-sm);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .auth-error {
  background: oklch(from var(--color-primary) l c h / 0.18);
  color: #ff8a92;
}

.account-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 800px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}
.account-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
}
.account-panel h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.account-panel form {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.account-panel .btn {
  margin-top: var(--space-4);
  align-self: flex-start;
}
.account-status {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}
.account-status.is-success {
  color: var(--color-accent);
}
.account-status.is-error {
  color: var(--color-primary);
}

.booking-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.booking-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}
.booking-row .booking-bike {
  font-family: var(--font-display);
  font-size: var(--text-base);
}
.booking-row .booking-dates {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.booking-status {
  align-self: center;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}
.booking-status.is-confirmed {
  background: oklch(from var(--color-accent) l c h / 0.15);
  color: var(--color-accent);
}
.booking-status.is-declined,
.booking-status.is-cancelled {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.empty-note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 720px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}
.admin-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.admin-table select {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-xs);
}
