/* ============================================================
   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;

  /* Button semantic colors — override ได้ผ่าน TenantConfig (_tenant_theme.html) */
  --text-over-dark:   #f0ead8;
  --btn-primary:      var(--gold);
  --btn-secondary:    var(--border-light);
  --btn-success:      var(--green);
  --btn-alert:        var(--red);
  --btn-primary-text: #111;
  --btn-success-text: #fff;
  --btn-alert-text:   #fff;

  /* Heading colors — override ได้ต่อ level ผ่าน TenantConfig */
  --h1-color: var(--gold);
  --h2-color: var(--text-primary);
  --h3-color: var(--text-primary);
  --h4-color: var(--text-secondary);
  --h5-color: var(--text-secondary);
  --h6-color: var(--text-muted);
}

/* ---- 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: 1fr 2fr 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: rgba(10,10,10,0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 60px;
  text-align: center;
}
.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;
  justify-content: center;
}

/* ============================================================
   BUTTONS — Design System (5 Variants)
   primary / secondary / success / alert / link
   Override สีได้ผ่าน TenantConfig → _tenant_theme.html
   ============================================================ */

/* ── Base ── */
.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;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.loading { opacity: 0.7; cursor: wait; pointer-events: none; }

/* ── Size utilities (3 ขนาด — ใช้คู่กับ variant: btn btn-primary btn-lg) ── */
.btn-sm { padding: 5px 14px;  font-size: 12px; gap: 4px; }
.btn-md { padding: 9px 20px;  font-size: 13px; gap: 6px; }
.btn-lg { padding: 14px 32px; font-size: 15px; gap: 8px; letter-spacing: 0.3px; }

/* ── 1. Primary — CTA หลัก ── */
.btn-primary,
.btn-gold {
  background: linear-gradient(135deg, var(--btn-primary), var(--gold-dark));
  color: var(--btn-primary-text);
}
.btn-primary:hover,
.btn-gold:hover {
  background: linear-gradient(135deg, var(--btn-primary), var(--gold-dark));
  color: var(--btn-primary-text);
  filter: brightness(0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,169,110,0.35);
}
.btn-primary:active, .btn-gold:active { transform: scale(0.98); box-shadow: none; }

/* ── 2. Primary Outline — ขอบทอง ตัวหนังสือทอง hover เติมสีทอง ── */
.btn-primary-outline {
  background: transparent;
  border: 1px solid var(--btn-primary);
  color: var(--btn-primary);
}
.btn-primary-outline:hover {
  background: var(--btn-primary);
  color: var(--btn-primary-text);
  filter: brightness(0.9);
  box-shadow: 0 4px 16px rgba(201,169,110,0.3);
  transform: translateY(-1px);
}
.btn-primary-outline:active { transform: scale(0.98); box-shadow: none; }
.btn-primary-outline.added  { background: var(--btn-primary); color: var(--btn-primary-text); }

/* ── 3. Secondary — action รอง ── */
.btn-secondary,
.btn-outline {
  background: transparent;
  border: 1px solid var(--btn-secondary);
  color: var(--text-secondary);
}
.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--btn-primary);
  color: var(--btn-primary);
}

/* ── 3. Ghost — minimal ── */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border); color: var(--text-primary); }

/* ── 4. Success — ยืนยัน/บันทึก ── */
.btn-success {
  background: var(--btn-success);
  color: var(--btn-success-text);
  border: none;
}
.btn-success:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-success:active { filter: brightness(0.95); transform: scale(0.98); }

/* ── 5. Alert — ลบ/อันตราย ── */
.btn-alert {
  background: var(--btn-alert);
  color: var(--btn-alert-text);
  border: none;
}
.btn-alert:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-alert:active { filter: brightness(0.95); transform: scale(0.98); }

/* ── 6. Link — inline action ── */
.btn-link {
  background: none;
  border: none;
  color: var(--btn-primary);
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-link:hover { color: var(--gold-light); text-decoration: none; }

/* ── Backward-compat: service card small buttons ── */
.btn-add {
  background: transparent;
  border: 1px solid var(--btn-primary);
  color: var(--btn-primary);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-add:hover, .btn-add.added {
  background: var(--btn-primary);
  color: var(--btn-primary-text);
}

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

/* ── Full-width CTA (Booking Wizard) ── */
.btn-continue {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--btn-primary), var(--gold-dark));
  color: var(--btn-primary-text);
  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(--btn-primary));
  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;
}

/* ============================================================
   TYPOGRAPHY — Heading System H1–H6
   Override สีได้ผ่าน TenantConfig → _tenant_theme.html
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  font-weight: 600;
}
h1 { font-size: 2rem;     color: var(--h1-color); }
h2 { font-size: 1.5rem;   color: var(--h2-color); }
h3 { font-size: 1.25rem;  color: var(--h3-color); }
h4 { font-size: 1.1rem;   color: var(--h4-color); }
h5 { font-size: 1rem;     color: var(--h5-color); }
h6 { font-size: 0.875rem; color: var(--h6-color); font-weight: 500; }

/* ============================================================
   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(--h1-color);
}
.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; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
  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: var(--bg-card-hover);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold);
}

.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-secondary);
  margin-bottom: 6px;
}

/* Duration selector pills */
.duration-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.duration-pill {
  padding: 5px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.duration-pill:hover { border-color: var(--btn-primary); color: var(--btn-primary); }
.duration-pill.selected {
  background: linear-gradient(135deg, var(--btn-primary), var(--gold-dark));
  border-color: var(--btn-primary);
  color: var(--btn-primary-text);
}

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

/* 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: 14px;
  color: var(--gold);
  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(--h3-color);
  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(--h2-color);
}
.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; color: var(--gold); }
.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); }

/* Reviews Ticker (continuous scroll) */
.reviews-ticker { overflow: hidden; position: relative; }
.reviews-ticker::before,
.reviews-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 1;
  pointer-events: none;
}
.reviews-ticker::before { left: 0;  background: linear-gradient(to right, var(--bg-primary), transparent); }
.reviews-ticker::after  { right: 0; background: linear-gradient(to left,  var(--bg-primary), transparent); }
.reviews-ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.reviews-ticker:hover .reviews-ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-ticker-card {
  width: 300px;
  min-width: 300px;
  flex-shrink: 0;
}

/* ============================================================
   HOME — Gallery (บรรยากาศในร้าน)
   ============================================================ */
.gallery-section {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
  margin-top: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card-hover);
}
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.85);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.65);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(5,5,5,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-over-dark);
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
}
.gallery-placeholder-icon { font-size: 28px; }

/* ============================================================
   HOME — Stats Bar
   ============================================================ */
.stats-bar-wrap {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats-item {
  background: var(--bg-card);
  padding: 24px 16px;
  text-align: center;
}
.stats-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stats-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   HOME — Staff Showcase
   ============================================================ */
.staff-section {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
}
.staff-carousel {
  overflow: hidden;
  margin-top: 16px;
  cursor: grab;
}
.staff-carousel:active { cursor: grabbing; }
.staff-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
}
.staff-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(201,169,110,0.12);
}
.staff-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.staff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.staff-dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 4px;
}
.staff-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
}
.staff-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.staff-specialty {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.staff-rating {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ============================================================
   HOME — Loyalty Teaser
   ============================================================ */
.loyalty-teaser {
  max-width: 1280px;
  margin: 40px auto 24px;
  padding: 0 24px;
}
.loyalty-teaser-inner {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.loyalty-teaser-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.loyalty-teaser-text p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   HOME — LINE OA Banner
   ============================================================ */
.line-oa-banner {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.line-oa-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.line-oa-text { font-size: 14px; color: var(--text-primary); }
.line-oa-text strong { color: var(--green); }

/* ============================================================
   HOME — Info Bar
   ============================================================ */
.info-bar {
  max-width: 1280px;
  margin: 0 auto 0;
  padding: 0 24px;
}
.info-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.info-item {
  background: var(--bg-card);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-item-icon { font-size: 20px; color: var(--gold); }
.info-item-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.info-item-value { font-size: 13px; color: var(--text-primary); font-weight: 500; }

/* ============================================================
   FOOTER — Luxury 4-column
   ============================================================ */
.footer {
  background: var(--bg-card);
  margin-top: 60px;
}

/* CTA Strip ด้านบน footer */
.footer-cta-strip {
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.footer-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.footer-cta-sub { font-size: 13px; color: var(--text-muted); }

/* Main columns */
.footer-main { padding: 48px 0 36px; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* Brand column */
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--text-primary);
}
.footer-tagline {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.footer-social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Contact column */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-icon { color: var(--gold); font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.footer-contact-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Copyright bar */
.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-back-top {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.footer-back-top:hover { color: var(--gold); }

/* ============================================================
   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: 640px;
  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: 28px;
  padding-right: 28px;
}
/* "หรือ" 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: 16px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-done-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 600;
}
.sidebar-done-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4caf50;
  color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-done-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.sidebar-done-item-name {
  font-size: 13px;
  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: 13px;
  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); }
  .stats-bar       { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid    { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gallery-item:first-child { grid-row: span 1; grid-column: span 2; }
  .staff-card      { width: 85vw; min-width: 85vw; }
  .info-bar-inner  { grid-template-columns: 1fr; }
  .loyalty-teaser-inner { flex-direction: column; text-align: center; }
  .line-oa-inner   { flex-direction: column; text-align: center; gap: 12px; }
  .footer-inner    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-cta-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-copy     { flex-direction: column; text-align: center; gap: 8px; }

  /* 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; }
}

/* ============================================================
   iOS / SAFARI FIXES
   ============================================================ */

/* Global touch: prevent double-tap zoom, remove gray flash on tap */
a, button, [role="button"],
.dt-wslot, .service-card, .therapist-select-card,
.cat-tab, .btn, .btn-continue, .btn-gold, .btn-outline,
.step-item, .dt-week-nav-btn, .mcb-toggle-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Fix 1: Input Auto-zoom — iOS Safari zooms when font-size < 16px */
@media (max-width: 900px) {
  .form-control,
  .form-control::placeholder,
  select.form-control,
  textarea.form-control {
    font-size: 16px !important;
  }
}

/* Fix 2: Hover on touch — disable hover effects on touch devices
   (prevents double-tap to select on iPhone) */
@media (hover: none) {
  .dt-wslot:hover {
    border-color: #4caf50;
    color: var(--text-primary);
    background: var(--bg-primary);
  }
  .dt-wslot--booked:hover,
  .dt-wslot--unavailable:hover {
    border-color: var(--border-light);
    color: var(--text-muted);
    background: transparent;
  }
  .dt-wslot--break:hover,
  .dt-wslot--past:hover {
    border-color: rgba(255,255,255,0.06);
    color: var(--text-muted);
    background: transparent;
  }
  .dt-week-nav-btn:hover {
    border-color: var(--border);
    color: var(--text-muted);
  }
  /* Use :active for visual feedback on tap instead */
  .dt-wslot:active {
    border-color: var(--gold);
    background: rgba(201,169,110,0.12);
  }
}

/* Fix 3: Safe area — already in mobile-cart-bar via env()
   Add viewport-fit=cover support reminder via meta (done in base.html) */

/* Fix 4: Smooth momentum scroll on iOS for all overflow containers */
.mcb-body,
.dt-day-col-slots,
.category-tabs,
.modal-box {
  -webkit-overflow-scrolling: touch;
}
