:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #161616;
  --surface: #1c1c1c;
  --surface2: #242424;
  --gold: #C9A84C;
  --gold-light: #E5CB80;
  --gold-dark: #A88A3A;
  --gold-glow: rgba(201,168,76,0.10);
  --text: #F0EBE0;
  --text2: #B0A898;
  --text3: #706858;
  --border: #2a2420;
  --border-gold: rgba(201,168,76,0.28);
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 28px rgba(0,0,0,0.55);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-gold);
}
.header .container {
  display: flex; justify-content: space-between; align-items: center; padding: 13px 20px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { font-size: 1.6rem; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub {
  font-size: 0.58rem; letter-spacing: 0.12em; font-weight: 500;
  color: rgba(201,168,76,0.55); text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav-link {
  color: var(--text2); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  transition: var(--transition); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.lang-switch { display: flex; gap: 4px; padding: 3px; background: rgba(255,255,255,0.04); border-radius: 999px; }
.lang-btn {
  padding: 6px 12px; border: none;
  background: transparent; border-radius: 999px; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; color: var(--text2);
  transition: var(--transition); display: inline-flex; align-items: center; gap: 4px;
  min-width: 56px; justify-content: center;
}
.lang-btn.active { background: var(--gold); color: var(--bg); }
.lang-btn:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ======== Theme toggle (sun / moon) — customer pages ======== */
.theme-toggle {
  display: inline-flex; gap: 4px; padding: 3px;
  background: rgba(255,255,255,0.04); border-radius: 999px; margin-left: 6px;
}
.theme-btn {
  padding: 6px 10px; border: none; background: transparent;
  border-radius: 999px; cursor: pointer; font-size: 1rem; line-height: 1;
  color: var(--text2); transition: var(--transition);
  min-width: 36px; min-height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-btn.active { background: var(--gold); color: var(--bg); }
.theme-btn:not(.active):hover { background: rgba(255,255,255,0.06); }

/* In Maniko light theme, active state uses burgundy */
html[data-maniko="light"] .theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--border);
}
html[data-maniko="light"] .theme-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}
html[data-maniko="light"] .theme-btn:not(.active):hover { background: rgba(123,31,56,0.06); }

/* ======== Modular site banner (admin-configurable) ======== */
.site-banner {
  display: block; width: 100%; max-height: 280px; overflow: hidden;
  position: relative; background: var(--bg2); cursor: pointer;
}
.site-banner img,
.site-banner video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  max-height: 280px;
}

.logo-img { max-height: 38px; max-width: 160px; object-fit: contain; }

/* ======== Video slides ======== */
.slide-with-video { background: #000 !important; }
.slide-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.slide-with-video .hero-content { position: relative; z-index: 1; }
.slide-with-video::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
  z-index: 0; pointer-events: none;
}

.btn-signin {
  padding: 8px 20px; border: 1.5px solid var(--gold);
  background: transparent; border-radius: 20px; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-signin:hover { background: var(--gold); color: var(--bg); }

.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.8rem; cursor: pointer; color: var(--gold);
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 50vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: 80px; overflow: hidden; background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.09) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.05) 0%, transparent 50%),
              var(--bg);
  z-index: 0;
}
/* Slideshow container — fixed wide-screen aspect ratio so uploaded
   16:9 images (e.g. 1672×941 from chị's design) fit without being
   cropped at the top/bottom. background-size:cover (set inline by
   app.js) then perfectly fills the box.
   - aspect-ratio: 16/9 matches the design's intended frame.
   - max-height: 640px caps the slideshow on very tall viewports so it
     doesn't dominate the page on 27" monitors.
   - overflow:hidden trims any rounding artifact on transition.
   On mobile (<768px) we relax to 4:3 so the image stays a sensible
   height and text-baked designs remain readable. */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  overflow: hidden;
  z-index: 1;
}
.hero-slideshow .slide {
  position: absolute; inset: 0; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease; pointer-events: none;
  /* Keep background-size:cover (set inline by app.js) reading the
     whole frame. Image-baked design at edges may still be partially
     covered by the gradient overlay below, so the safe zone for
     critical text is the centre ~70% of the image. */
  background-position: center;
}
.hero-slideshow .slide.active { opacity: 1; pointer-events: auto; }
/* Dim overlay so HTML text (.hero-content) stays readable on bright
   image backgrounds. Sits between image and content. */
.hero-slideshow .slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-slideshow .hero-content { position: relative; z-index: 2; }
@media (max-width: 768px) {
  .hero-slideshow { aspect-ratio: 4 / 5; max-height: none; }
}
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(201,168,76,0.3); cursor: pointer;
  transition: var(--transition); border: none;
}
.hero-dot.active { background: var(--gold); transform: scale(1.3); }
.hero-content { text-align: center; padding: 60px 20px; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700;
  margin-bottom: 14px; line-height: 1.2;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.05rem; color: var(--text2); margin-bottom: 28px; max-width: 550px; margin-left: auto; margin-right: auto; }
.hero-decoration {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.3); }
.btn-secondary { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--bg); }
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #D32F2F; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #388E3C; }

/* ── SECTIONS ── */
section { padding: 90px 0; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; text-align: center; margin-bottom: 50px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── LOCATIONS SECTION ── */
.locations { background: var(--bg2); padding: 80px 0; }
.locations-info-bar {
  display: flex; justify-content: center; align-items: center;
  gap: 36px; margin-bottom: 48px; flex-wrap: wrap;
  padding: 14px 24px; border: 1px solid var(--border-gold);
  border-radius: var(--radius); background: var(--surface);
  max-width: 600px; margin-left: auto; margin-right: auto;
  margin-bottom: 48px;
}
.locations-info-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text2); }
.locations-info-item a { color: var(--gold); text-decoration: none; }
.locations-info-item a:hover { text-decoration: underline; }

.locations-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.location-city-col {}
.location-city-header {
  font-size: 0.95rem; font-weight: 700;
  color: var(--gold); font-family: 'Playfair Display', serif;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: flex; align-items: center; gap: 6px;
}
.location-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.location-card:hover { border-color: var(--border-gold); background: var(--surface2); }
.location-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; color: var(--text); }
.location-card-address { color: var(--text3); font-size: 0.82rem; line-height: 1.5; margin-bottom: 8px; }
.location-card-phone { color: var(--gold); font-size: 0.85rem; font-weight: 600; }

/* ── SERVICES SECTION ── */
.services { background: var(--bg3); }
.services-slideshow {
  display: flex; align-items: center; gap: 16px;
}
.slideshow-window {
  flex: 1; overflow: hidden; border-radius: var(--radius-lg);
}
.slideshow-track {
  display: flex; gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.slideshow-track .service-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}
@media (max-width: 768px) {
  .slideshow-track .service-card { flex: 0 0 100%; }
}
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border-gold); background: var(--surface);
  cursor: pointer; font-size: 1.3rem; color: var(--gold);
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; flex: 1;
}
.service-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px 22px 22px;
  transition: var(--transition); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: 0 10px 40px rgba(201,168,76,0.08); }
.service-icon { font-size: 2.8rem; margin-bottom: 16px; }
.service-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.service-description { color: var(--text3); font-size: 0.85rem; margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-duration-row { color: var(--text3); font-size: 0.85rem; margin-bottom: 14px; }
.service-book-btn {
  width: 100%; padding: 12px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg); font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.service-book-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.3); }

.carousel-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; margin-top: 28px;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(201,168,76,0.25); cursor: pointer; transition: var(--transition);
}
.carousel-dot.active { background: var(--gold); width: 28px; border-radius: 5px; }

/* ── BOOKING ── */
.booking { background: var(--bg); }
.booking-container {
  max-width: 700px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--border-gold);
}
.steps { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 20px; left: 10%; right: 10%;
  height: 2px; background: var(--border); z-index: 0;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-weight: 600; transition: var(--transition); border: 2px solid var(--border); color: var(--text3);
}
.step.active .step-number { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.step.completed .step-number { background: var(--success); color: white; border-color: var(--success); }
.step span { font-size: 0.8rem; color: var(--text3); text-align: center; }
.step.active span { color: var(--gold); font-weight: 600; }

.booking-step { min-height: 300px; }
.booking-step.hidden { display: none; }
.booking-step h3 { font-size: 1.3rem; margin-bottom: 25px; color: var(--gold); }

.salon-select { display: grid; gap: 12px; }
.salon-city-group { margin-bottom: 15px; }
.salon-city-label { font-size: 0.9rem; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.salon-option {
  display: flex; align-items: center; padding: 16px 18px;
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: var(--transition); margin-bottom: 6px;
  background: var(--bg2);
}
.salon-option:hover { border-color: var(--gold-dark); }
.salon-option.selected { border-color: var(--gold); background: var(--gold-glow); }
.salon-option input { display: none; }
.salon-option-icon { font-size: 1.6rem; margin-right: 14px; }
.salon-option-info { flex: 1; }
.salon-option-name { font-weight: 600; margin-bottom: 2px; color: var(--text); font-size: 0.95rem; }
.salon-option-address { font-size: 0.82rem; color: var(--text3); }
.salon-option-meta { font-size: 0.78rem; color: var(--text3); margin-top: 3px; }

.service-select { display: grid; gap: 12px; }
.service-option {
  display: flex; align-items: center; padding: 18px;
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: var(--transition); background: var(--bg2);
}
.service-option:hover { border-color: var(--gold-dark); }
.service-option.selected { border-color: var(--gold); background: var(--gold-glow); }
.service-option input { display: none; }
.service-option-icon { font-size: 1.8rem; margin-right: 14px; }
.service-option-info { flex: 1; }
.service-option-name { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.service-option-details { font-size: 0.85rem; color: var(--text3); }
.service-option-price { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.service-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: var(--gold-glow); border: 1px solid var(--gold);
  border-radius: var(--radius); font-weight: 600; color: var(--gold); margin-top: 8px;
}
.summary-total { font-weight: 700; font-size: 1.1rem; color: var(--gold); border-top: 1px solid var(--border-gold); padding-top: 12px; margin-top: 8px; }

.datetime-picker { display: grid; gap: 25px; }
.date-picker label, .time-picker label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--text2); }
.date-picker { position: relative; }
.date-picker input {
  width: 100%; padding: 14px 50px 14px 14px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 1rem;
  transition: var(--transition); background: var(--bg2); color: var(--text); cursor: pointer;
}
.date-picker input:focus { outline: none; border-color: var(--gold); }
.date-picker::after {
  content: '📅'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; pointer-events: none; filter: brightness(2);
}
.date-picker input::-webkit-calendar-picker-indicator {
  position: absolute; right: 0; top: 0; width: 50px; height: 100%; opacity: 0; cursor: pointer;
}

.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-slot {
  padding: 11px; border: 2px solid var(--border); border-radius: var(--radius);
  text-align: center; cursor: pointer; transition: var(--transition);
  font-weight: 500; background: var(--bg2); color: var(--text2); font-size: 0.95rem;
}
.time-slot:hover { border-color: var(--gold-dark); color: var(--gold); }
.time-slot.selected { background: var(--gold); color: var(--bg); border-color: var(--gold); }
/* Past slot (today only): grey out, no pointer events, strikethrough.
   Customer sees the full day grid but cannot click slots already in
   the past — prevents "đặt lịch quá khứ". Server also rejects
   past_time at the API layer (server.js:390) as defense-in-depth. */
.time-slot-past {
  opacity: 0.35;
  cursor: not-allowed !important;
  pointer-events: none;        /* block click + hover */
  text-decoration: line-through;
  background: transparent;
  border-style: dashed;
  border-color: var(--border);
  color: var(--text3);
}
.time-slot-past:hover { border-color: var(--border); color: var(--text3); }

.customer-form { display: grid; gap: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--text2); font-size: 0.95rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  transition: var(--transition); background: var(--bg2); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text3); }

.consent-group {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
}
.consent-check {
  width: 16px !important;
  height: 16px;
  min-width: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-wa { color: var(--gold); }

.booking-summary { background: var(--bg2); border-radius: var(--radius); padding: 22px; }
.summary-item {
  display: flex; justify-content: space-between; padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.summary-item:last-child { border-bottom: none; font-weight: 600; font-size: 1.05rem; color: var(--gold); }
.summary-label { color: var(--text3); }

.success-message { text-align: center; padding: 40px 20px; }
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-message h3 { color: var(--warning); margin-bottom: 15px; font-size: 1.4rem; }
.booking-code-box {
  background: var(--bg2); border: 2px solid var(--gold);
  padding: 20px; border-radius: var(--radius); margin: 25px 0;
}
.booking-code-box strong {
  display: block; font-size: 1.8rem; margin-top: 8px;
  color: var(--gold); letter-spacing: 4px;
}
.booking-nav {
  display: flex; justify-content: space-between;
  margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--border);
}

/* ── CONTACT ── */
.contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-icon { font-size: 1.4rem; }
.contact-item a { color: var(--gold); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.footer { background: var(--bg); border-top: 1px solid var(--border-gold); padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--gold); margin-bottom: 12px; }
.footer-about { color: var(--text3); font-size: 0.88rem; line-height: 1.6; margin-bottom: 14px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { font-size: 1.2rem; text-decoration: none; transition: var(--transition); }
.footer-social a:hover { transform: scale(1.2); }
.footer-heading { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 14px; font-weight: 600; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a, .footer-menu span { color: var(--text3); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-menu a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; color: var(--text3); font-size: 0.85rem; }

/* ── MISC ── */
.loading { text-align: center; padding: 60px 20px; }
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 20px; gap: 15px;
    border-bottom: 1px solid var(--border-gold);
  }
  .nav.open { display: flex; }
  .hero-title { font-size: 1.8rem; }
  .services-grid { grid-template-columns: 1fr; }
  .carousel-btn { display: none; }
  .locations-grid { grid-template-columns: 1fr; }
  .steps { flex-wrap: wrap; gap: 12px; }
  .steps::before { display: none; }
  .step { width: 30%; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-brand { justify-content: center; }
  .booking-container { padding: 24px; }
}
@media (max-width: 480px) {
  .time-slots { grid-template-columns: repeat(2, 1fr); }
  .booking-nav { flex-direction: column; gap: 10px; }
  .booking-nav .btn { width: 100%; }
  .locations-info-bar { flex-direction: column; gap: 12px; }
}

/* ──────────────────────────────────────────────────────────────────
   Tablet / PWA touch UX
   ────────────────────────────────────────────────────────────────── */
@media (pointer: coarse) {
  button, .btn, .time-slot, .service-card, .salon-card,
  input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="number"], input[type="date"],
  input[type="time"], input[type="search"], select, textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
}

@media (display-mode: standalone) {
  body { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
  input, textarea { user-select: text; -webkit-user-select: text; }
}

/* Deep-link landing — /book/:salonId
   When customer arrives via QR scan or direct salon link, hide the hero
   slideshow / services list / locations grid so the booking form is the
   FIRST content under the header. No scroll, no flash of homepage. The
   site-banner above-header decoration is also hidden because it would
   push the booking section down. */
html.deep-link .site-banner,
html.deep-link .hero,
html.deep-link .services,
html.deep-link #locations {
  display: none !important;
}
/* Tighten spacing — booking section was designed with a hero above it. */
html.deep-link .booking {
  padding-top: 32px;
}
html.deep-link .section-title {
  margin-top: 0;
}
