/* ============================================================
   Bangkok Spa Thai Massage — Dark Theme Booking UI
   ============================================================ */

:root {
  --bg-primary:    #0f0f0f;
  --bg-card:       #1a1a1a;
  --bg-card-hover: #222222;
  --bg-sidebar:    #141414;
  --border:        #2a2a2a;
  --border-light:  #333333;
  --gold:          #c9a96e;
  --gold-light:    #e0c080;
  --gold-dark:     #a07840;
  --text-primary:  #f0ead8;
  --text-secondary:#b0a898;
  --text-muted:    #6b6560;
  --green:         #4caf78;
  --red:           #e05555;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 4px 20px rgba(0,0,0,0.5);
  --transition:    0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary) !important;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.brand-diamond {
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}
.brand-diamond.large { font-size: 32px; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--gold); }
.nav-link-active { color: var(--gold) !important; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.btn-nav-login {
  padding: 7px 18px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  color: var(--gold);
  font-size: 13px;
  transition: background var(--transition), color var(--transition);
}
.btn-nav-login:hover {
  background: var(--gold);
  color: #111;
}

/* ============================================================
   HERO BANNER (Home)
   ============================================================ */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.hero-images {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  height: 100%;
  gap: 3px;
}
.hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

/* Placeholder panels when no real images */
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-img-scene {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hero-img-scene svg {
  flex: 1;
  max-height: 200px;
  filter: drop-shadow(0 4px 16px rgba(201,169,110,0.15));
}
.hero-img-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  text-align: center;
  padding: 8px 0 4px;
  font-family: 'Playfair Display', serif;
  opacity: 0.8;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 60px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 500px;
}
.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border); color: var(--text-primary); }

.btn-add {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
}
.btn-add:hover, .btn-add.added {
  background: var(--gold);
  color: #111;
}
.btn-add.added::before { content: "✓ "; }

.btn-detail {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
}
.btn-detail:hover { border-color: var(--text-secondary); color: var(--text-primary); }

.btn-continue {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.btn-continue:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,169,110,0.4);
}
.btn-continue:disabled {
  background: var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   BOOKING LAYOUT (2-column: list + sidebar)
   ============================================================ */
.booking-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* ============================================================
   STEP PROGRESS BAR
   ============================================================ */
.steps-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.steps-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step-item:last-child { flex: 0; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.step-item.active .step-num {
  border-color: var(--gold);
  background: var(--gold);
  color: #111;
}
.step-item.done .step-num {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.step-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.step-item.active .step-label { color: var(--gold); font-weight: 500; }
.step-item.done .step-label { color: var(--green); }
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 12px;
}
.step-item.done + .step-line { background: var(--green); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  margin-bottom: 20px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}
.page-header p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ============================================================
   CATEGORY FILTER TABS
   ============================================================ */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cat-tab {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-tab:hover { border-color: var(--gold); color: var(--gold); }
.cat-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 500;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-list { display: flex; flex-direction: column; gap: 2px; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.service-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.service-card.selected {
  border-color: var(--gold);
  background: rgba(201,169,110,0.05);
}

.service-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.service-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2010, #3a3020);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold-dark);
}

.service-info { flex: 1; min-width: 0; }
.service-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-name-th {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Duration selector pills */
.duration-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.duration-pill {
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
}
.duration-pill:hover { border-color: var(--gold); color: var(--gold); }
.duration-pill.selected {
  background: rgba(201,169,110,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.service-meta-icon { font-size: 11px; }

/* Price + actions */
.service-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.service-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}
.service-price .currency {
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  margin-right: 1px;
}
.service-price .original {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
}
.service-actions { display: flex; gap: 8px; }

/* Category section header */
.category-section { margin-bottom: 8px; }
.category-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-icon { font-size: 14px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.booking-sidebar {
  position: sticky;
  top: 84px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-spa-header {
  padding: 24px 20px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(201,169,110,0.08) 0%, transparent 100%);
}
.sidebar-diamond {
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(201,169,110,0.5);
}
.sidebar-spa-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.sidebar-spa-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sidebar-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}
.star { color: var(--gold); font-size: 13px; }
.star.empty { color: var(--border-light); }
.sidebar-rating-text { font-size: 11px; color: var(--text-muted); }
.sidebar-address {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Summary list */
.sidebar-summary {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.summary-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.summary-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 12px 0;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42,42,42,0.5);
}
.summary-item:last-child { border-bottom: none; }
.summary-item-name {
  font-size: 12px;
  color: var(--text-primary);
  flex: 1;
  line-height: 1.4;
}
.summary-item-duration {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}
.summary-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
.summary-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
  transition: color var(--transition);
  flex-shrink: 0;
}
.summary-item-remove:hover { color: var(--red); }

/* Total */
.sidebar-total {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.total-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.total-amount {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}
.total-amount .currency { font-size: 13px; font-family: 'Inter', sans-serif; }

/* Sidebar actions */
.sidebar-actions { padding: 16px 20px; }
.sidebar-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* ============================================================
   DETAIL MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-body { padding: 24px; }
.modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.modal-name-th { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.modal-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--gold); }
.form-control option { background: var(--bg-card); }

/* Time slots grid */
.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.time-slot {
  padding: 8px 4px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.time-slot:hover { border-color: var(--gold); color: var(--gold); }
.time-slot.selected {
  background: rgba(201,169,110,0.15);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 500;
}
.time-slot.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Slot status styles (real-data grid) ── */
.time-slot.ts-available {
  border-color: rgba(201,169,110,0.4);
  color: var(--text-primary);
  cursor: pointer;
}
.time-slot.ts-available:hover,
.time-slot.ts-available.selected {
  background: rgba(201,169,110,0.15);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

.time-slot.ts-booked {
  background: rgba(239,83,80,0.08);
  border-color: rgba(239,83,80,0.35);
  color: rgba(239,83,80,0.7);
  cursor: not-allowed;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 4px 2px;
}
.time-slot.ts-booked span:first-child {
  font-size: 12px;
  line-height: 1;
}

.time-slot.ts-break {
  background: rgba(120,120,120,0.06);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.25);
  cursor: not-allowed;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 4px 2px;
}
.time-slot.ts-break span:first-child {
  font-size: 12px;
  line-height: 1;
}

.time-slot.ts-past {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

.time-slot.ts-unavailable {
  opacity: 0.18;
  cursor: not-allowed;
  pointer-events: none;
}

/* Badge inside slot (จอง / พัก) */
.ts-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  padding: 1px 4px;
  border-radius: 3px;
  background: currentColor;
  color: var(--bg-primary);
  opacity: 0.9;
}
.time-slot.ts-booked .ts-badge { background: rgba(239,83,80,0.7); color: #fff; }
.time-slot.ts-break  .ts-badge { background: rgba(1, 97, 49, 0.15); color: rgba(255,255,255,0.5); }

/* Legend dots */
.slot-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid;
}
.dot-available  { background: rgba(201,169,110,0.2);  border-color: rgba(201,169,110,0.6); }
.dot-booked     { background: rgba(239,83,80,0.15);   border-color: rgba(239,83,80,0.5); }
.dot-break      { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
.dot-past       { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }

/* Therapist cards */
.therapist-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.therapist-card {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.therapist-card:hover { border-color: var(--gold); }
.therapist-card.selected {
  border-color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.therapist-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 2px solid var(--border-light);
}
.therapist-card.selected img { border-color: var(--gold); }
.therapist-card-name { font-size: 11px; color: var(--text-primary); }
.therapist-card-any {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-muted);
}

.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.checkout-section:last-of-type {
  margin-bottom: 0;
}
.checkout-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2px;
}
.section-icon { color: var(--gold); font-size: 16px; }

/* ============================================================
   CONFIRM PAGE
   ============================================================ */
.confirm-card {
  max-width: 520px;
  margin: 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.confirm-icon { font-size: 56px; margin-bottom: 16px; }
.confirm-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.confirm-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.confirm-details {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row-label { color: var(--text-muted); }
.confirm-row-value { color: var(--text-primary); font-weight: 500; }

/* ============================================================
   HOME PAGE
   ============================================================ */
.featured-section {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--text-primary);
}
.section-link { font-size: 13px; color: var(--gold); }
.section-link:hover { color: var(--gold-light); }

/* Why Us grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.why-icon { font-size: 32px; margin-bottom: 12px; }
.why-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.why-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Reviews */
.reviews-section {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.review-stars { margin-bottom: 10px; }
.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.review-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.review-date { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0 20px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--text-primary);
  margin-top: 6px;
}
.footer-sub { font-size: 12px; color: var(--text-muted); }
.footer-info p { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  max-width: 280px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--gold); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-gold { background: rgba(201,169,110,0.15); color: var(--gold); }
.badge-green { background: rgba(76,175,120,0.15); color: var(--green); }
.badge-new { background: rgba(201,169,110,0.2); color: var(--gold-light); border: 1px solid var(--gold-dark); }

/* ============================================================
   THERAPIST SELECTION (Step 2)
   ============================================================ */
.therapist-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.therapist-select-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.therapist-select-card:hover {
  border-color: var(--gold-dark);
  background: var(--bg-card-hover);
}
.therapist-select-card.selected {
  border-color: var(--gold);
  background: rgba(201,169,110,0.06);
}
.therapist-select-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border);
}
.therapist-select-card.selected .therapist-select-avatar {
  border-color: var(--gold);
}
.any-avatar {
  background: linear-gradient(135deg, rgba(201,169,110,0.15), rgba(201,169,110,0.05));
}
.therapist-select-info {
  flex: 1;
  min-width: 0;
}
.therapist-select-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.therapist-select-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.therapist-select-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.therapist-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.therapist-tag.tag-gold {
  background: rgba(201,169,110,0.12);
  color: var(--gold);
  border-color: rgba(201,169,110,0.3);
}
.therapist-select-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   BOOKING RECEIPT SIDEBAR
   ============================================================ */

.receipt-body {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.receipt-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 0 8px;
}

/* Service rows */
.receipt-svc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.receipt-svc-row:last-child { border-bottom: none; }

.receipt-svc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.receipt-svc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.receipt-svc-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.receipt-svc-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Divider */
.receipt-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Appointment rows */
.receipt-appt-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0;
}
.receipt-appt-row {
  display: grid;
  grid-template-columns: 18px 68px 1fr;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.receipt-appt-icon {
  color: var(--gold);
  font-size: 12px;
  line-height: 1.4;
}
.receipt-appt-label {
  color: var(--text-muted);
  flex-shrink: 0;
}
.receipt-appt-value {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
}

/* Total */
.receipt-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0 6px;
}
.receipt-total-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.receipt-total-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

/* ============================================================
   CHECKOUT — Smart login / guest
   ============================================================ */

/* Login shortcut card (guest view) */
.login-shortcut-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.login-shortcut-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.login-shortcut-body { flex: 1; }
.login-shortcut-title {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 3px;
}
.login-shortcut-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.btn-login-shortcut {
  display: inline-block;
  padding: 8px 18px;
  background: var(--gold);
  color: #111;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}
.btn-login-shortcut:hover { opacity: .85; }

/* Divider with text */
.checkout-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Appointment details grid (logged-in confirm view) */
.appt-details-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.appt-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.appt-detail-label {
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 130px;
}
.appt-detail-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

/* Sidebar user profile card */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(76,175,80,0.06);
}
.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-detail {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   CHECKOUT — SINGLE CARD LAYOUT
   ============================================================ */
.checkout-single-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.checkout-single-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
/* Override inner padding for the wider single card */
.checkout-single-card .sidebar-spa-header,
.checkout-single-card .sidebar-user-card,
.checkout-single-card .sidebar-done-section,
.checkout-single-card .receipt-body,
.checkout-single-card .sidebar-actions {
  padding-left: 24px;
  padding-right: 24px;
}
/* "หรือ" divider inside guest form */
.checkout-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 11px;
}
.checkout-or-divider::before,
.checkout-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
/* Login row inside guest section */
.checkout-login-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 10px;
}

/* ============================================================
   SIDEBAR — DONE STEP SECTIONS (steps 2, 3, 4+)
   ============================================================ */
.sidebar-done-section {
  padding: 10px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-done-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 600;
}
.sidebar-done-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-done-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}
.sidebar-done-item-name {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}
.sidebar-done-item-price {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  flex-shrink: 0;
}
.sidebar-done-subtotal {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 5px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.sidebar-done-single {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Tier badge */
.sidebar-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: 0.5px;
}
.tier-bronze  { background: rgba(121,85,72,0.25);  color: #a1887f; border: 1px solid rgba(121,85,72,0.4); }
.tier-silver  { background: rgba(158,158,158,0.2); color: #bdbdbd; border: 1px solid rgba(158,158,158,0.35); }
.tier-gold    { background: rgba(201,169,110,0.2); color: var(--gold); border: 1px solid rgba(201,169,110,0.4); }
.tier-platinum{ background: rgba(77,208,225,0.18); color: #4dd0e1; border: 1px solid rgba(77,208,225,0.35); }

/* Avatar color per tier */
.avatar-bronze   { background: #795548; }
.avatar-silver   { background: #9e9e9e; }
.avatar-gold     { background: var(--gold); color: #1a1205 !important; }
.avatar-platinum { background: #26c6da; }

/* ============================================================
   MOBILE CART BAR (hidden on desktop)
   ============================================================ */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.45);
}
.mobile-cart-info { flex: 1; min-width: 0; }
.mobile-cart-count { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.mobile-cart-total {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.mobile-cart-total .currency { font-size: 13px; font-family: 'Inter', sans-serif; }
.mobile-cart-bar .btn-continue {
  width: auto;
  padding: 11px 22px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   CHECKOUT / CONFIRM — single-column centered wrap
   (Steps 4-6: no sidebar, no mobile cart bar needed)
   ============================================================ */
.booking-single-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Booking layout (steps 1-3): stack to 1-col */
  .booking-layout {
    grid-template-columns: 1fr;
    padding-bottom: 90px;
  }
  /* Sidebar replaced by floating cart bar */
  .booking-sidebar { display: none; }
  .mobile-cart-bar { display: flex; }

  /* Category tabs: horizontal scroll, no wrap */
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex-shrink: 0; }

  /* Home page grids */
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid  { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .therapist-cards { grid-template-columns: repeat(4, 1fr); }

  /* Single-wrap (steps 4-6) */
  .booking-single-wrap { padding: 24px 16px; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .hero { height: 280px; }
  .hero-title { font-size: 26px; }
  .navbar-links .nav-link { display: none; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .therapist-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }

  /* Steps bar: numbers only */
  .step-label { display: none; }
  .step-item  { gap: 0; }
  .step-line  { margin: 0 4px; }
  .steps-inner { justify-content: center; padding: 0 16px; }

  /* Booking layout (steps 1-3) */
  .booking-layout { padding: 14px 12px 90px; }
  .page-header h1 { font-size: 18px; }
  .page-header p  { font-size: 12px; }

  /* Service cards */
  .service-card { padding: 10px 12px; gap: 10px; }
  .service-thumb, .service-thumb-placeholder { width: 52px; height: 52px; font-size: 20px; }
  .service-name     { font-size: 13px; white-space: normal; line-height: 1.3; }
  .service-name-th  { font-size: 11px; }
  .service-meta     { font-size: 10px; }
  .service-price    { font-size: 14px; }
  .service-actions  { gap: 6px; }
  .btn-detail { padding: 5px 8px;  font-size: 10px; }
  .btn-add    { padding: 5px 10px; font-size: 11px; }
  .cat-tab    { padding: 7px 14px; font-size: 12px; touch-action: manipulation; }

  /* Therapist cards (step 2) */
  .therapist-select-card   { padding: 12px; gap: 12px; }
  .therapist-select-avatar { width: 48px; height: 48px; font-size: 22px; }
  .therapist-select-name   { font-size: 14px; }
  .therapist-select-sub    { font-size: 11px; }
  .therapist-select-check  { width: 24px; height: 24px; font-size: 12px; }
  .therapist-tag           { font-size: 10px; padding: 2px 7px; }

  /* Modal: bottom sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { max-width: 100%; width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }

  /* Single-wrap (steps 4-6) */
  .booking-single-wrap { padding: 16px 12px; }
}
