/* Prestine Mobile Detailing — polished mobile-first styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:           #080e1a;
  --bg-elev:      #0d1526;
  --bg-card:      #111d33;
  --bg-card-2:    #142040;
  --border:       #1e2f4d;
  --border-light: #263d60;
  --text:         #e8f0fc;
  --text-dim:     #8fa3c0;
  --text-muted:   #5a7090;
  --accent:       #38bdf8;
  --accent-2:     #0ea5e9;
  --accent-glow:  rgba(56,189,248,0.18);
  --success:      #22c55e;
  --success-glow: rgba(34,197,94,0.18);
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
  --shadow:       0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 20px 50px rgba(0,0,0,0.55);
  --maxw:         1100px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--bg);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); text-decoration: none; }

h1,h2,h3,h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  gap: 1rem;
}
.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.btn { color: #ffffff; font-weight: 700; }
.nav-links a.btn:hover { color: #ffffff; background: transparent; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.15s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56,189,248,0.35);
  text-decoration: none;
  color: #03111d;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-muted);
  box-shadow: none;
  color: var(--text);
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
.btn-danger:hover { box-shadow: 0 6px 20px rgba(239,68,68,0.35); }
.btn-sm { padding: 0.38rem 0.85rem; font-size: 0.82rem; border-radius: 7px; }
.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 5.5rem 1.25rem 6.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(56,189,248,0.13) 0%, transparent 65%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: drift 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(14,165,233,0.15), transparent);
  top: -100px; left: -80px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(56,189,248,0.1), transparent);
  top: 20px; right: -60px;
  animation-delay: -4s;
}
.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s ease both;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero p.lede {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.25rem;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
}
.trust-item strong { color: var(--text); }
.trust-icon {
  font-size: 1rem;
  color: var(--accent);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 4rem 0; }
section > .container > h2,
section > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.section-alt { background: var(--bg-elev); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
}
.services-grid .card {
  flex: 0 1 380px;
  min-width: 280px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: fadeUp 0.5s ease both;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(56,189,248,0.1);
  border-color: var(--border-light);
}
.card:hover::before { opacity: 1; }

/* stagger card entrance */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }

.card h3 { color: var(--accent); font-size: 1.05rem; margin-bottom: 0.25rem; }
.card .price { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin: 0.5rem 0 0.2rem; }
.card .duration { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.card p.desc { color: var(--text-dim); flex: 1; font-size: 0.9rem; margin: 0.75rem 0 1.25rem; line-height: 1.65; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* Vehicle pricing cards */
.vehicle-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.vehicle-price-list { display: flex; flex-direction: column; gap: 0; width: 100%; }
.vehicle-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-dim);
}
.vehicle-price-row:last-child { border-bottom: none; }
.vehicle-price-val {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.services-disclaimer {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
  margin: 1.5rem auto 0;
  max-width: 560px;
  line-height: 1.6;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-row { margin-bottom: 1.1rem; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
input, select, textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card-2);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7090' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; cursor: pointer; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-row input { width: auto; }

/* ============================================================
   BOOKING FLOW
   ============================================================ */
.booking-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.booking-page-wrap h1 { margin-bottom: 0.25rem; }
.booking-page-wrap .page-sub { color: var(--text-dim); margin-bottom: 0.25rem; font-size: 0.95rem; }

/* Progress steps */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 1.75rem 0 2rem;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  flex: 1;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(50% + 15px);
  top: 13px;
  right: calc(-50% + 15px);
  height: 2px;
  background: var(--border);
  transition: background 0.35s ease;
}
.step-item.done:not(:last-child)::after { background: var(--success); }
.step-item.active:not(:last-child)::after { background: var(--accent); }

.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.25s ease;
  z-index: 1;
}
.step-item.active .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #03111d;
  box-shadow: 0 0 0 4px rgba(56,189,248,0.2);
}
.step-item.done .step-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.step-item.active .step-label { color: var(--accent); }
.step-item.done .step-label  { color: var(--success); }

/* Step wrappers */
.booking-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1rem;
  animation: scaleIn 0.22s ease both;
}
.booking-section h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }

/* Date grid */
.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
}
.date-btn {
  padding: 0.8rem 0.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
  user-select: none;
}
.date-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56,189,248,0.15);
}
.date-btn.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
  color: #03111d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56,189,248,0.3);
}
.date-btn.disabled { opacity: 0.28; cursor: not-allowed; transform: none; box-shadow: none; }
.date-btn .dow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; opacity: 0.7; }
.date-btn .dnum { font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.date-btn .mon { font-size: 0.7rem; opacity: 0.65; font-weight: 500; }

/* Slot grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}
.slot {
  padding: 0.8rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  user-select: none;
  animation: popIn 0.18s ease both;
}
.slot:nth-child(1) { animation-delay: 0.03s; }
.slot:nth-child(2) { animation-delay: 0.06s; }
.slot:nth-child(3) { animation-delay: 0.09s; }
.slot:nth-child(4) { animation-delay: 0.12s; }
.slot:nth-child(5) { animation-delay: 0.15s; }
.slot:nth-child(n+6) { animation-delay: 0.18s; }
.slot:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56,189,248,0.18);
  background: var(--bg-card);
}
.slot.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
  color: #03111d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56,189,248,0.35);
}

/* Service selection cards in booking */
.service-choice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  margin-bottom: 0.6rem;
  animation: fadeUp 0.2s ease both;
}
.service-choice:hover {
  border-color: var(--accent);
  transform: translateX(3px);
  box-shadow: -3px 0 0 var(--accent), var(--shadow-sm);
}
.service-choice:nth-child(1) { animation-delay: 0.05s; }
.service-choice:nth-child(2) { animation-delay: 0.1s; }
.service-choice:nth-child(3) { animation-delay: 0.15s; }
.service-choice-info { flex: 1; }
.service-choice-name { font-weight: 700; font-size: 1rem; }
.service-choice-desc { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.1rem; }
.service-choice-meta { text-align: right; white-space: nowrap; }
.service-choice-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.service-choice-dur { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 2.5rem 2rem;
  animation: scaleIn 0.3s ease both;
}
.confirm-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
}
.confirm-icon-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success-glow);
  animation: pulse-ring 1.8s ease-out infinite;
}
.confirm-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--success), #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1;
  box-shadow: 0 8px 24px var(--success-glow);
}
.confirmation h2 { color: var(--success); font-size: 1.5rem; margin-bottom: 0.75rem; }
.confirmation p { color: var(--text-dim); line-height: 1.7; }
.confirmation code {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Booking summary strip */
.booking-summary-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.booking-summary-strip strong { color: var(--text); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.admin-header-brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.admin-header-brand span { color: var(--accent); }
.admin-header-right { display: flex; gap: 0.5rem; align-items: center; }

.admin-tabs {
  display: flex;
  gap: 0;
  padding: 0 1.25rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.admin-tabs button:hover { color: var(--text-dim); }
.admin-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-body { padding: 1.75rem 1.25rem; max-width: 1200px; margin: 0 auto; }

/* Prevent landing-page section styles from bleeding into admin */
.admin-body section { padding: 0; }
.admin-body section > h2 {
  text-align: left;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 640px;
}
th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
th {
  background: var(--bg-elev);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}
tr:last-child td { border-bottom: none; }
tr { transition: background 0.12s ease; }
tr:hover td { background: rgba(56,189,248,0.04); }
td small { color: var(--text-muted); font-size: 0.78rem; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-pending   { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.25); }
.badge-confirmed { background: rgba(56,189,248,0.12); color: var(--accent);  border: 1px solid rgba(56,189,248,0.22); }
.badge-completed { background: rgba(34,197,94,0.12);  color: var(--success); border: 1px solid rgba(34,197,94,0.22); }
.badge-cancelled { background: rgba(239,68,68,0.12);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.22); }

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}
.filters .form-row { margin-bottom: 0; flex: 1; min-width: 140px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(4, 10, 22, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
  animation: fadeIn 0.15s ease;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s ease both;
  position: relative;
}
.modal h3 { margin-top: 0; font-size: 1.15rem; }
.modal-divider { height: 1px; background: var(--border); margin: 1.25rem -1.75rem; }
.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   CALENDAR
   ============================================================ */
.week-grid-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.week-grid {
  display: grid;
  grid-template-columns: 72px repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  min-width: 680px;
}
.week-grid > div {
  background: var(--bg-card);
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  min-height: 42px;
}
.week-grid .wh-head {
  background: var(--bg-elev);
  font-weight: 600;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 0.5rem;
}
.week-grid .wh-time {
  background: var(--bg-elev);
  text-align: right;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  padding-right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.week-grid .wh-cell { cursor: pointer; transition: background 0.1s ease; }
.week-grid .wh-cell:hover { background: rgba(56,189,248,0.07); }
.week-grid .wh-cell.booked {
  background: rgba(56,189,248,0.15);
  border-left: 2px solid var(--accent);
  cursor: pointer;
}
.week-grid .wh-cell.booked:hover { background: rgba(56,189,248,0.22); }
.week-grid .wh-cell.booked-completed {
  background: rgba(34,197,94,0.12);
  border-left: 2px solid var(--success);
}
.week-grid .wh-cell.closed {
  background: rgba(0,0,0,0.2);
  cursor: not-allowed;
}
.week-grid .wh-cell.buffer {
  background: repeating-linear-gradient(
    45deg, transparent, transparent 5px,
    rgba(245,158,11,0.07) 5px, rgba(245,158,11,0.07) 10px
  );
  cursor: default;
}
.cal-progress { display: block; color: var(--text-muted); font-size: 0.67rem; margin-top: 1px; }

/* Week nav */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.cal-nav-label { font-weight: 600; flex: 1; text-align: center; font-size: 0.9rem; }

/* ============================================================
   AVAILABILITY
   ============================================================ */
.avail-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 680px;
}
@media (max-width: 580px) { .avail-top-row { grid-template-columns: 1fr; } }

/* Toggle switch — must come before hours-row overrides */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  display: none !important;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(239,68,68,0.7);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.toggle-switch input:checked + .toggle-slider { background: rgba(34,197,94,0.85); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.hours-grid { display: flex; flex-direction: column; gap: 0.5rem; max-width: 560px; }
.hours-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.hours-row:has(input:checked) { border-color: var(--border-light); }
.hours-row .day-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  width: 100px;
  flex-shrink: 0;
}
.hours-row .day-times {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.hours-row .day-times input[type="time"] {
  width: 120px !important;
  flex-shrink: 0;
  padding: 0.4rem 0.6rem !important;
  font-size: 0.88rem !important;
}
.hours-row .day-times span {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}
.hours-row .day-closed-label {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist-list { display: flex; flex-direction: column; gap: 0.3rem; }
.checklist-item { display: flex; align-items: center; }
.checklist-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 0.88rem;
  transition: background 0.12s ease;
}
.checklist-label:hover { background: rgba(56,189,248,0.05); }
.checklist-label.done { text-decoration: line-through; color: var(--text-muted); }
.checklist-label input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--success);
  cursor: pointer;
}

.checklist-template-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  transition: border-color 0.12s;
  animation: fadeUp 0.15s ease both;
}
.checklist-template-item:hover { border-color: var(--border-light); }

/* ============================================================
   TRUST ITEM EDITOR (admin)
   ============================================================ */
.trust-editor-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.trust-editor-row input {
  flex: 1;
}

/* ============================================================
   ABOUT CARD EDITOR (admin)
   ============================================================ */
.about-card-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem 0.5rem;
  margin-bottom: 0.85rem;
  background: var(--bg-elev);
}
.about-card-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.about-card-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   NOTES LOG
   ============================================================ */
.notes-log {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.note-entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  animation: slideIn 0.18s ease both;
}
.note-meta { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.note-text { font-size: 0.875rem; white-space: pre-wrap; word-break: break-word; color: var(--text-dim); }
.note-add-row { display: flex; flex-direction: column; gap: 0.4rem; }

/* ============================================================
   AUTH / LOGIN
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 65%);
  top: -150px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: scaleIn 0.25s ease both;
}
.auth-box-logo {
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.auth-box-logo span { color: var(--accent); }
.auth-box h2 { font-size: 1.35rem; margin-top: 0; }
.auth-box .subtitle { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 1.75rem; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.empty-state p { margin: 0; }

/* ============================================================
   ERROR
   ============================================================ */
.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.2rem;
  margin: 0.4rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.contact-phone-link {
  display: inline-block;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-decoration: none;
  margin: 0.5rem 0 1.5rem;
  transition: opacity 0.15s ease;
}
.contact-phone-link:hover { opacity: 0.8; }

.footer {
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.muted { color: var(--text-dim); }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 200px; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.loading {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   RESPONSIVE — TABLET  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Nav: hide text links, keep Book Now button */
  .nav-links a:not(.btn) { display: none; }

  /* Hero */
  .hero { padding: 3.5rem 1.25rem 4.25rem; }

  /* Trust bar */
  .trust-items { gap: 1rem; }

  /* Sections */
  section { padding: 3rem 0; }

  /* Service cards: allow narrower */
  .services-grid .card { flex: 1 1 260px; }

  /* Admin availability grid */
  .avail-top-row { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE  ≤ 540px
   ============================================================ */
@media (max-width: 540px) {
  /* Base */
  .container { padding: 0 1rem; }

  /* Nav */
  .nav-inner { padding: 0.75rem 1rem; gap: 0.5rem; }
  .nav-brand { font-size: 0.95rem; }

  /* Hero */
  .hero { padding: 2.75rem 1rem 3.5rem; }
  .hero p.lede { font-size: 0.95rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn-lg { width: 100%; max-width: 320px; }

  /* Trust bar */
  .trust-bar { padding: 1rem; }
  .trust-items { gap: 0.6rem; justify-content: flex-start; }
  .trust-item { font-size: 0.82rem; }

  /* Sections */
  section { padding: 2.25rem 0; }

  /* Service cards: full-width stack */
  .services-grid { gap: 0.75rem; }
  .services-grid .card { flex: 1 1 100%; min-width: 0; }
  .services-disclaimer { font-size: 0.75rem; margin: 1rem 0 0; }

  /* Booking page */
  .booking-page-wrap { padding: 1.25rem 1rem 3rem; }
  .booking-section { padding: 1.1rem; }
  .booking-section h2 { font-size: 1.05rem; margin-bottom: 1rem; }

  /* Progress steps */
  .steps { max-width: 100%; margin-bottom: 1.25rem; }
  .step-label { font-size: 0.6rem; }
  .step-dot { width: 24px; height: 24px; font-size: 0.68rem; }
  .step-item:not(:last-child)::after { top: 11px; }

  /* Date grid: tighter cells */
  .date-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.35rem; }
  .date-btn { padding: 0.6rem 0.25rem; }
  .date-btn .dnum { font-size: 1.2rem; }
  .date-btn .dow { font-size: 0.6rem; }
  .date-btn .mon { font-size: 0.62rem; }

  /* Slot grid */
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 0.45rem; }

  /* Service selection: stack info above price */
  .service-choice { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.85rem 1rem; }
  .service-choice-meta { text-align: left; display: flex; gap: 0.75rem; align-items: baseline; }
  .service-choice-price { font-size: 1.1rem; }

  /* Confirmation */
  .confirmation { padding: 1.75rem 1rem; }

  /* Contact form rows: stack to single column */
  .row { flex-direction: column; gap: 0; }
  .row > * { min-width: 0; }

  /* Admin header */
  .admin-header { padding: 0.7rem 1rem; }
  .admin-header-brand { font-size: 0.85rem; }
  .admin-body { padding: 1.1rem 1rem; }

  /* Filters: stack vertically */
  .filters { flex-direction: column; gap: 0.5rem; }
  .filters .form-row { min-width: 0; width: 100%; }

  /* Modal */
  .modal { padding: 1.1rem; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; justify-content: center; }

  /* Working hours: wrap time inputs below day toggle */
  .hours-row { flex-wrap: wrap; padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .hours-row .day-name { flex: 1; width: auto; }
  .hours-row .day-times { width: 100%; order: 3; }
  .hours-row .day-times input[type="time"] { flex: 1; width: auto !important; min-width: 0; }
  .hours-row .day-closed-label { order: 3; width: 100%; }

  /* Auth box */
  .auth-box { padding: 1.5rem 1.25rem; }

  /* Footer */
  .footer { padding: 1.25rem 1rem; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  ≤ 375px
   ============================================================ */
@media (max-width: 375px) {
  .nav-brand { font-size: 0.88rem; }
  .btn-sm { padding: 0.32rem 0.7rem; font-size: 0.78rem; }
  .date-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-tag { font-size: 0.7rem; }
  .auth-box { padding: 1.25rem 1rem; }
}

/* ============================================================
   RESPONSIVE — LANDSCAPE PHONE  (short + wide)
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 2rem 1.25rem 2.5rem; }
  .hero-tag { margin-bottom: 0.75rem; }
  .hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
  .hero p.lede { margin-bottom: 1.25rem; }
  .auth-page { align-items: flex-start; padding-top: 1rem; padding-bottom: 1rem; }
  .auth-box { margin: auto; }
}
