/* ═══════════════════════════════════════════════════════════════
   JESSICA BEAUTY MASSAGE — PREMIUM UI v2.0
   Dark luxury aesthetic with rich micro-animations
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  --gold: #B8975A;
  --gold-light: #D4B483;
  --gold-bright: #E8C97A;
  --gold-dim: rgba(184,151,90,0.12);
  --gold-border: rgba(184,151,90,0.18);
  --gold-glow: rgba(184,151,90,0.35);
  --bg: #0A0907;
  --surface: #111009;
  --surface2: #141210;
  --surface3: #1A1712;
  --surface4: #211D16;
  --text: #EAE3D6;
  --text-muted: rgba(234,227,214,0.5);
  --text-faint: rgba(234,227,214,0.22);
  --text-dim: rgba(234,227,214,0.35);
  --green: #6ECFA0;
  --red: #E07A7A;
  --amber: #E0B96A;
  --rose: #D4896A;
  --rose-light: #F0C4AE;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 0.38s cubic-bezier(0.34,1.56,0.64,1);
  --transition-bounce: 0.45s cubic-bezier(0.34,1.7,0.64,1);
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
  --touch: 48px;
  --shimmer: linear-gradient(90deg, transparent 0%, rgba(184,151,90,0.08) 50%, transparent 100%);
}

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh; min-height: 100dvh;
  font-size: 14px; font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

button, input, select, textarea { touch-action: manipulation; }
button { -webkit-appearance: none; border: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(184,151,90,0.25); border-radius: 2px; }

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  will-change: transform; transform: translateZ(0);
}

nav, .site, .btn-book-wrap, .modal-overlay, #pwaInstallBanner {
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════════
   NAV BAR
══════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
  background: rgba(10,9,7,0.9);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(184,151,90,0.12);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

nav::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(184,151,90,0.4) 50%, transparent 100%);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400; color: var(--gold-light);
  letter-spacing: 0.08em; line-height: 1.2;
  transition: color var(--transition);
}
.nav-brand em { font-style: italic; color: rgba(212,180,131,0.6); font-size: 1.1rem; }
.nav-brand:hover { color: var(--gold-bright); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-history-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--surface3);
  border: 1px solid var(--gold-border);
  border-radius: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-spring);
  position: relative;
  flex-shrink: 0;
}
.nav-history-btn:hover {
  color: var(--gold-light); border-color: rgba(184,151,90,0.5);
  background: var(--gold-dim); transform: scale(1.05);
}
.nav-history-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--gold); color: #1C1712;
  border-radius: 50px; font-size: 0.55rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(184,151,90,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(184,151,90,0); }
}

.sync-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(110,207,160,0.08); border: 1px solid rgba(110,207,160,0.18);
  border-radius: 50px; padding: 4px 10px;
  font-size: 0.58rem; letter-spacing: 0.12em;
  color: rgba(110,207,160,0.8); text-transform: uppercase;
  transition: all var(--transition);
}
.sync-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: syncPulse 2.4s ease-in-out infinite;
}
@keyframes syncPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(110,207,160,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 3px rgba(110,207,160,0); }
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.site {
  max-width: 700px; margin: 0 auto;
  padding: 0 16px;
  padding-bottom: calc(96px + var(--sab));
}

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero {
  background: var(--surface2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg); margin: 14px 0 22px;
  padding: 28px 24px 22px;
  overflow: hidden; position: relative;
  animation: heroReveal 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero::before {
  content: '';
  position: absolute; top: -100px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,151,90,0.09) 0%, transparent 65%);
  pointer-events: none; animation: orbDrift 8s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(184,151,90,0.6) 50%, transparent 100%);
}

@keyframes orbDrift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-20px,20px) scale(1.1); }
}

.hero-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 14px;
  position: relative; z-index: 1;
}

.hero-text { flex: 1; min-width: 0; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold-light); font-size: 0.6rem; letter-spacing: 0.22em; font-weight: 400;
  padding: 5px 13px; border-radius: 50px; margin-bottom: 14px;
  text-transform: uppercase;
  animation: pillFade 0.5s ease 0.3s both;
}
@keyframes pillFade { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:translateX(0); } }

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem; font-weight: 400;
  color: var(--text); line-height: 1.15; margin-bottom: 10px;
  letter-spacing: 0.02em;
  animation: headingReveal 0.6s ease 0.15s both;
}
@keyframes headingReveal {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}
.hero h1 em {
  color: var(--gold-light); font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.77rem; color: var(--text-muted);
  line-height: 1.75; max-width: min(280px, 100%);
  animation: headingReveal 0.6s ease 0.25s both;
}

.hero-stats {
  display: flex; gap: 22px; margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(184,151,90,0.1);
  animation: headingReveal 0.6s ease 0.35s both;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem; font-weight: 400; color: var(--gold-light); line-height: 1;
  letter-spacing: 0.02em;
}
.stat-lbl {
  font-size: 0.55rem; color: var(--text-faint);
  letter-spacing: 0.16em; margin-top: 4px; text-transform: uppercase;
}

.hero-orb {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(184,151,90,0.12), rgba(184,151,90,0.04));
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; margin-top: 2px;
  box-shadow: 0 0 40px rgba(184,151,90,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: orbFloat 4s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0); box-shadow: 0 0 40px rgba(184,151,90,0.12); }
  50% { transform: translateY(-6px); box-shadow: 0 12px 50px rgba(184,151,90,0.22); }
}

/* ══════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════ */
.sec-eyebrow {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.58rem; letter-spacing: 0.22em; font-weight: 500;
  color: var(--gold); text-transform: uppercase; margin-bottom: 5px;
}
.step-badge {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1C1712; font-size: 0.62rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 8px rgba(184,151,90,0.4);
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400; line-height: 1.2;
  margin-bottom: 4px; letter-spacing: 0.03em;
}
.sec-sub { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }

.ornament-divider {
  display: flex; align-items: center; gap: 1rem; margin: 6px 0 18px;
}
.ornament-divider::before, .ornament-divider::after {
  content: ''; flex: 1; height: 1px;
}
.ornament-divider::before { background: linear-gradient(90deg, transparent, var(--gold-border)); }
.ornament-divider::after { background: linear-gradient(90deg, var(--gold-border), transparent); }
.ornament-divider span { color: var(--gold); font-size: 0.62rem; letter-spacing: 0.22em; white-space: nowrap; opacity: 0.65; }

/* ══════════════════════════════════════════
   WIZARD PROGRESS
══════════════════════════════════════════ */
.wizard-progress {
  display: flex; align-items: center; gap: 0;
  margin: 4px 0 22px; padding: 0;
}
.wp-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex: 1; position: relative; cursor: pointer;
  transition: opacity var(--transition);
}
.wp-step::after {
  content: ''; position: absolute;
  top: 13px; left: 50%; width: 100%; height: 1.5px;
  background: var(--gold-border); z-index: 0;
  transition: background var(--transition-slow);
}
.wp-step:last-child::after { display: none; }
.wp-step.done::after { background: rgba(184,151,90,0.4); }

.wp-dot {
  width: 27px; height: 27px; border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 500; color: var(--text-muted);
  position: relative; z-index: 1;
  transition: all var(--transition-spring);
}
.wp-step.active .wp-dot {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold); color: #1C1712;
  box-shadow: 0 0 0 3px rgba(184,151,90,0.15), 0 4px 12px rgba(184,151,90,0.4);
  transform: scale(1.1);
}
.wp-step.done .wp-dot {
  background: rgba(184,151,90,0.15); border-color: rgba(184,151,90,0.5);
  color: var(--gold);
}
.wp-lbl {
  font-size: 0.5rem; letter-spacing: 0.1em; color: var(--text-faint);
  text-transform: uppercase; white-space: nowrap;
  transition: color var(--transition);
}
.wp-step.active .wp-lbl { color: var(--gold-light); font-weight: 500; }
.wp-step.done .wp-lbl { color: var(--gold); opacity: 0.7; }

/* ══════════════════════════════════════════
   STEP ANIMATIONS
══════════════════════════════════════════ */
.step-hidden { display: none !important; }
.step-reveal {
  animation: stepReveal 0.42s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes stepReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   TERAPIS GRID
══════════════════════════════════════════ */
.terapis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 24px;
}

.ter-card {
  background: var(--surface3); border-radius: var(--radius);
  padding: 16px 14px; cursor: pointer;
  border: 1px solid rgba(184,151,90,0.12);
  transition: all 0.32s cubic-bezier(0.34,1.2,0.64,1);
  position: relative; overflow: hidden;
  transform: translateY(0) scale(1);
  will-change: transform;
}
.ter-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(184,151,90,0.06) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.ter-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.25), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.ter-card:hover::before, .ter-card:hover::after { opacity: 1; }
.ter-card:hover {
  border-color: rgba(184,151,90,0.4);
  background: var(--surface4); transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 2px 8px rgba(184,151,90,0.08);
}
.ter-card.selected {
  border-color: rgba(184,151,90,0.7);
  background: rgba(184,151,90,0.08);
  box-shadow: 0 0 0 1.5px rgba(184,151,90,0.2), 0 10px 35px rgba(184,151,90,0.15);
  transform: translateY(-2px) scale(1.01);
}
.ter-card.selected::before { opacity: 1; }
.ter-card.selected::after {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.55), transparent);
  animation: shimmerTop 2s linear infinite;
}
@keyframes shimmerTop {
  0% { background-position: -200% center; opacity: 0.4; }
  50% { opacity: 1; }
  100% { background-position: 200% center; opacity: 0.4; }
}
.ter-card:active { opacity: 0.88; }

.ter-chk {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1C1712; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.2) rotate(-45deg);
  transition: all var(--transition-bounce);
  box-shadow: 0 2px 10px rgba(184,151,90,0.5);
}
.ter-card.selected .ter-chk { opacity: 1; transform: scale(1) rotate(0deg); }

.ter-avatar-wrap {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--surface4); border: 1px solid rgba(184,151,90,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 11px;
  transition: all var(--transition-spring);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ter-card.selected .ter-avatar-wrap {
  background: rgba(184,151,90,0.1); border-color: rgba(184,151,90,0.3);
  transform: scale(1.04);
}

.ter-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 500; margin-bottom: 2px; letter-spacing: 0.03em;
  line-height: 1.2;
}
.ter-title { font-size: 0.62rem; color: var(--text-muted); margin-bottom: 7px; line-height: 1.5; }
.ter-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.62rem; color: var(--gold-light);
}
.ter-spec-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ter-spec-tag {
  font-size: 0.56rem; font-weight: 400;
  padding: 3px 8px; border-radius: 50px;
  background: rgba(255,255,255,0.03); color: var(--text-faint);
  border: 1px solid rgba(184,151,90,0.12); letter-spacing: 0.05em;
  transition: all var(--transition);
}
.ter-card.selected .ter-spec-tag {
  background: rgba(184,151,90,0.1); color: var(--gold-light);
  border-color: rgba(184,151,90,0.25);
}

.ter-gender-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 5px; border-radius: 99px;
  font-size: 0.58rem; font-weight: 400; letter-spacing: 0.07em;
  margin-top: 7px; line-height: 1;
}
.ter-gender-badge .tgb-dot {
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ter-gender-badge.all    { background: rgba(184,151,90,0.09); border: 1px solid rgba(184,151,90,0.2); color: var(--gold-light); }
.ter-gender-badge.all    .tgb-dot { background: rgba(184,151,90,0.18); }
.ter-gender-badge.pria   { background: rgba(88,160,224,0.09); border: 1px solid rgba(88,160,224,0.22); color: #5aaae0; }
.ter-gender-badge.pria   .tgb-dot { background: rgba(88,160,224,0.18); }
.ter-gender-badge.wanita { background: rgba(210,120,150,0.09); border: 1px solid rgba(210,120,150,0.25); color: #d2789a; }
.ter-gender-badge.wanita .tgb-dot { background: rgba(210,120,150,0.2); }

/* ══════════════════════════════════════════
   SERVICES GRID
══════════════════════════════════════════ */
.services-section { transition: all 0.3s ease; }
.services-locked { opacity: 0.3; pointer-events: none; filter: blur(0.5px); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 24px;
}

.svc-card {
  background: var(--surface3); border-radius: var(--radius);
  padding: 16px 14px 14px;
  border: 1px solid rgba(184,151,90,0.12); cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34,1.2,0.64,1);
  position: relative; min-height: 120px; overflow: hidden;
  will-change: transform;
}
.svc-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.34,1.2,0.64,1);
}
.svc-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at bottom left, rgba(184,151,90,0.07) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.svc-card.selected::before { transform: scaleX(1); }
.svc-card.selected::after { opacity: 1; }
.svc-card:hover {
  border-color: rgba(184,151,90,0.4); transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25), 0 2px 8px rgba(184,151,90,0.08);
}
.svc-card.selected {
  border-color: rgba(184,151,90,0.65); background: rgba(184,151,90,0.08);
  box-shadow: 0 0 0 1.5px rgba(184,151,90,0.22), 0 10px 32px rgba(184,151,90,0.15);
  transform: translateY(-2px) scale(1.01);
}
.svc-card:active { opacity: 0.88; }

.svc-chk {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1C1712; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.2) rotate(-45deg);
  transition: all var(--transition-bounce);
  box-shadow: 0 2px 10px rgba(184,151,90,0.5);
  z-index: 2;
}
.svc-card.selected .svc-chk { opacity: 1; transform: scale(1) rotate(0deg); }

.svc-icon-wrap {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface4); border: 1px solid rgba(184,151,90,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 10px;
  transition: all var(--transition-spring); position: relative; z-index: 1;
}
.svc-card.selected .svc-icon-wrap {
  background: rgba(184,151,90,0.12); border-color: rgba(184,151,90,0.3);
  transform: scale(1.04);
}
.svc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 500; margin-bottom: 2px;
  line-height: 1.25; letter-spacing: 0.02em; position: relative; z-index: 1;
}
.svc-dur { font-size: 0.6rem; color: var(--text-faint); margin-bottom: 5px; position: relative; z-index: 1; }
.svc-price { font-size: 0.9rem; font-weight: 400; color: var(--gold-light); position: relative; z-index: 1; }
.svc-desc { font-size: 0.6rem; color: var(--text-muted); margin-top: 4px; line-height: 1.55; position: relative; z-index: 1; }
.svc-multi-hint {
  grid-column: 1 / -1; text-align: center;
  font-size: 0.66rem; color: rgba(184,151,90,0.6);
  padding: 6px 0 2px; letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════
   LOCATION PICKER
══════════════════════════════════════════ */
.loc-picker {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 2px;
}
.loc-card {
  position: relative; cursor: pointer;
  border-radius: 13px; border: 1px solid rgba(184,151,90,0.12);
  background: var(--surface3); padding: 15px 14px 14px;
  transition: all 0.28s cubic-bezier(0.34,1.2,0.64,1);
  overflow: hidden; user-select: none; -webkit-user-select: none;
  will-change: transform;
}
.loc-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(184,151,90,0.08) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.loc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.28s ease;
}
.loc-card:hover { border-color: rgba(184,151,90,0.35); transform: translateY(-2px); }
.loc-card:hover::before { opacity: 1; }
.loc-card.active {
  border-color: rgba(184,151,90,0.75); background: rgba(184,151,90,0.09);
  box-shadow: 0 0 0 1.5px rgba(184,151,90,0.25), 0 8px 28px rgba(184,151,90,0.18);
  transform: translateY(-2px) scale(1.015);
}
.loc-card.active::before { opacity: 1; }
.loc-card.active::after { transform: scaleX(1); }
.loc-card:active { opacity: 0.88; }

.loc-check {
  position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1C1712; font-size: 8px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.2) rotate(-45deg);
  transition: all var(--transition-bounce);
  box-shadow: 0 2px 10px rgba(184,151,90,0.5);
}
.loc-card.active .loc-check { opacity: 1; transform: scale(1) rotate(0deg); }

.loc-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(184,151,90,0.12); background: var(--surface4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 11px; transition: all var(--transition-spring);
}
.loc-card.active .loc-icon-wrap {
  background: rgba(184,151,90,0.12); border-color: rgba(184,151,90,0.35);
}
.loc-icon-wrap svg {
  width: 16px; height: 16px; stroke: rgba(212,180,131,0.55);
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s ease;
}
.loc-card.active .loc-icon-wrap svg { stroke: rgba(212,180,131,0.9); }

.loc-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  line-height: 1.2; margin-bottom: 3px; letter-spacing: 0.02em;
}
.loc-sub { font-size: 0.58rem; color: var(--text-faint); line-height: 1.55; letter-spacing: 0.04em; }
.loc-price-tag {
  display: inline-flex; align-items: center; margin-top: 8px;
  font-size: 0.65rem; color: var(--gold-light);
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 50px; padding: 2px 9px; letter-spacing: 0.04em;
  transition: all var(--transition);
}
.loc-price-tag.free { color: var(--green); background: rgba(110,207,160,0.08); border-color: rgba(110,207,160,0.2); }
.loc-price-tag.distance {
  color: #a8b8d0; background: rgba(120,150,200,0.08); border-color: rgba(120,150,200,0.2);
  font-style: italic; display: inline-flex; align-items: center;
}
.loc-card.active .loc-price-tag { background: rgba(184,151,90,0.15); border-color: rgba(184,151,90,0.35); }
.loc-card.active .loc-price-tag.distance { color: var(--gold-light); background: rgba(184,151,90,0.12); border-color: rgba(184,151,90,0.3); }

@keyframes locShimmer { 0%,100% { opacity:.3; } 50% { opacity:.7; } }
.loc-empty {
  grid-column: 1/-1; text-align: center; padding: 18px;
  font-size: .75rem; color: var(--text-faint);
  animation: locShimmer 2s infinite;
}
@media (max-width: 360px) { .loc-picker { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════
   LOADING STATES
══════════════════════════════════════════ */
.loading-card {
  background: var(--surface3); border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  padding: 32px; text-align: center; color: var(--text-muted);
  font-size: 0.8rem; grid-column: 1/-1;
  animation: loadPulse 1.5s ease-in-out infinite;
}
@keyframes loadPulse { 0%,100% { opacity:0.7; } 50% { opacity:1; } }

.spinner {
  width: 26px; height: 26px;
  border: 2px solid rgba(184,151,90,0.15);
  border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.85s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   BOOKING CARD
══════════════════════════════════════════ */
.booking-card {
  background: var(--surface2); border-radius: var(--radius-lg);
  padding: 22px 18px; border: 1px solid rgba(184,151,90,0.14);
  margin-bottom: 24px; position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.booking-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.3), transparent);
}

.section-divider { border: none; border-top: 1px solid rgba(184,151,90,0.1); margin: 18px 0; }

/* ══════════════════════════════════════════
   TERAPIS BANNER
══════════════════════════════════════════ */
.terapis-banner {
  display: none;
  background: var(--surface3); border: 1px solid rgba(184,151,90,0.15);
  border-radius: 13px; padding: 13px 15px;
  margin-bottom: 18px; align-items: center; gap: 13px;
}
.terapis-banner.show { display: flex; animation: bannerReveal 0.35s cubic-bezier(0.34,1.2,0.64,1) both; }
@keyframes bannerReveal {
  from { opacity:0; transform:translateY(-8px) scale(0.98); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
.tb-avatar {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(184,151,90,0.1); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.tb-info { flex: 1; }
.tb-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 400; margin-bottom: 2px; color: var(--gold-light);
  letter-spacing: 0.02em;
}
.tb-note { font-size: 0.66rem; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════
   FORM FIELDS
══════════════════════════════════════════ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.full { grid-column: 1 / -1; }
.fg label {
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(234,227,214,0.55); font-weight: 500;
}
.fg input, .fg select, .fg textarea {
  width: 100%; background: var(--surface3);
  border: 1px solid rgba(184,151,90,0.14); border-radius: 11px;
  padding: 0 14px; height: var(--touch);
  color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem; font-weight: 300; letter-spacing: 0.02em; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.fg textarea {
  height: auto; min-height: 78px; padding: 12px 14px; resize: none;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-faint); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: rgba(184,151,90,0.5);
  box-shadow: 0 0 0 3px rgba(184,151,90,0.08), 0 0 20px rgba(184,151,90,0.05);
  background: var(--surface4);
}
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(234,227,214,0.35)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  background-color: var(--surface3); padding-right: 38px; cursor: pointer;
}
.fg select option { background: var(--surface2); color: var(--text); }
.fg input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5) sepia(1) saturate(0.5) hue-rotate(10deg); cursor: pointer; opacity: 0.5;
}

/* ══════════════════════════════════════════
   TIME SLOTS
══════════════════════════════════════════ */
.slots-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.slot {
  height: 46px; border-radius: 10px;
  background: var(--surface3); border: 1px solid rgba(184,151,90,0.12);
  font-size: 0.74rem; font-weight: 300; cursor: pointer;
  transition: all var(--transition-spring); text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.04em; position: relative; overflow: hidden;
}
.slot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(184,151,90,0.04));
  opacity: 0; transition: opacity 0.2s ease;
}
.slot:hover:not(.unavail):not(.selected)::after { opacity: 1; }
.slot:hover:not(.unavail):not(.selected) {
  border-color: rgba(184,151,90,0.45); color: var(--text);
  background: rgba(184,151,90,0.05); transform: scale(1.03);
}
.slot.selected {
  background: rgba(184,151,90,0.14); border-color: rgba(184,151,90,0.7);
  color: var(--gold-light); font-weight: 500;
  box-shadow: 0 0 0 1.5px rgba(184,151,90,0.18), 0 4px 16px rgba(184,151,90,0.2);
  transform: scale(1.05);
}
.slot:active:not(.unavail) { opacity: 0.85; }
.slot.unavail {
  opacity: 0.22; cursor: not-allowed;
  text-decoration: line-through; font-size: 0.62rem;
}

/* ══════════════════════════════════════════
   SUMMARY BOX
══════════════════════════════════════════ */
.sum-box {
  background: var(--surface3); border: 1px solid rgba(184,151,90,0.14);
  border-radius: 15px; padding: 20px 17px; margin-top: 16px;
  position: relative; overflow: hidden;
}
.sum-box::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.4), transparent);
}
.sum-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 400; color: var(--gold-light);
  margin-bottom: 15px; letter-spacing: 0.1em;
}
.sum-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.76rem; margin-bottom: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(184,151,90,0.06);
  transition: background var(--transition);
}
.sum-row:last-of-type { border-bottom: none; }
.sum-row .lbl { color: rgba(234,227,214,0.55); flex-shrink: 0; }
.sum-row .val { color: var(--text); font-weight: 300; text-align: right; max-width: 58%; word-break: break-word; }
.sum-div { border: none; border-top: 1px solid rgba(184,151,90,0.12); margin: 14px 0 12px; }
.sum-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.sum-total .lbl { color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 4px; flex-shrink: 0; }
.sum-total .val-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sum-total .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 400; color: var(--gold-light); line-height: 1;
  animation: priceReveal 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes priceReveal { from { transform:scale(0.85); opacity:0; } to { transform:scale(1); opacity:1; } }
.sum-total .val-note {
  font-size: 0.62rem; color: #a8b8d0; font-style: italic;
  display: flex; align-items: center; gap: 3px; opacity: 0.8;
}

/* ══════════════════════════════════════════
   PAYMENT METHOD CARDS
══════════════════════════════════════════ */
.pay-method-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface3); border: 1px solid rgba(184,151,90,0.12);
  border-radius: 14px; padding: 14px 15px; cursor: pointer;
  transition: all var(--transition); margin-bottom: 8px; user-select: none;
}
.pay-method-card:last-child { margin-bottom: 0; }
.pay-method-card:hover { border-color: rgba(184,151,90,0.45); background: rgba(184,151,90,0.05); }
.pay-method-card.active {
  border-color: rgba(184,151,90,0.7); background: rgba(184,151,90,0.09);
  box-shadow: 0 0 0 1.5px rgba(184,151,90,0.18), 0 4px 16px rgba(184,151,90,0.1);
}
.pay-method-icon { font-size: 1.35rem; width: 38px; text-align: center; flex-shrink: 0; }
.pay-method-info { flex: 1; min-width: 0; }
.pay-method-name { font-size: 0.8rem; font-weight: 500; color: var(--text); letter-spacing: 0.02em; }
.pay-method-sub { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.pay-method-check { font-size: 0.8rem; color: rgba(184,151,90,0.25); flex-shrink: 0; transition: color var(--transition); }
.pay-method-card.active .pay-method-check { color: var(--gold); }

/* ── BANK LIST ── */
.bank-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface3); border: 1px solid rgba(184,151,90,0.12);
  border-radius: 12px; padding: 12px 14px;
}
.bank-logo {
  width: 46px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.04em; flex-shrink: 0;
}
.bank-info { flex: 1; min-width: 0; }
.bank-name { font-size: 0.66rem; color: var(--text-muted); margin-bottom: 1px; }
.bank-num { font-size: 0.9rem; font-weight: 600; color: var(--text); letter-spacing: 0.06em; }
.bank-an { font-size: 0.62rem; color: var(--text-muted); margin-top: 1px; }
.copy-btn {
  flex-shrink: 0; height: 30px; padding: 0 13px;
  background: rgba(184,151,90,0.1); border: 1px solid rgba(184,151,90,0.3);
  border-radius: 8px; font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-light); cursor: pointer;
  transition: all var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.copy-btn:hover { background: rgba(184,151,90,0.2); border-color: rgba(184,151,90,0.55); }
.copy-btn:active { transform: scale(0.95); }

/* ══════════════════════════════════════════
   WIZARD NAVIGATION BUTTONS
══════════════════════════════════════════ */
.wizard-nav {
  display: flex; gap: 10px; margin-top: 18px;
  justify-content: center; align-items: center;
}

.btn-back {
  flex: 0 0 auto; height: 42px; padding: 0 18px;
  background: transparent; border: 1px solid rgba(184,151,90,0.2);
  border-radius: 50px; color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.66rem;
  font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.btn-back:hover {
  border-color: rgba(184,151,90,0.5); color: var(--gold-light);
  background: var(--gold-dim); transform: translateX(-2px);
  box-shadow: 0 0 18px rgba(184,151,90,0.12);
}
.btn-back:active { transform: scale(0.96); }

.btn-next {
  flex: 0 1 auto; max-width: 280px; overflow: hidden;
  height: 42px; padding: 0 24px;
  background: linear-gradient(135deg, #B8975A 0%, #D4B483 50%, #B8975A 100%);
  background-size: 200% auto;
  border: none; border-radius: 50px;
  color: #1C1712; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer;
  transition: all var(--transition), background-position 0.5s ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 20px rgba(184,151,90,0.45), 0 1px 6px rgba(184,151,90,0.3);
}
.btn-next:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,151,90,0.6), 0 2px 10px rgba(184,151,90,0.4);
}
.btn-next:active { transform: scale(0.97) translateY(0); }
.btn-next:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }

.locked-hint {
  text-align: center; padding: 26px 16px;
  background: var(--surface3); border-radius: var(--radius);
  border: 1px dashed rgba(184,151,90,0.15); margin-bottom: 22px;
}
.locked-hint .lock-icon { font-size: 1.6rem; margin-bottom: 8px; opacity: 0.4; }
.locked-hint p { font-size: 0.76rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   FIXED BOOK BUTTON
══════════════════════════════════════════ */
.btn-book-wrap {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 14px 18px; padding-bottom: calc(14px + var(--sab));
  background: linear-gradient(to top, rgba(10,9,7,1) 55%, rgba(10,9,7,0));
  pointer-events: none;
}
.btn-book {
  width: 100%; max-width: 700px; margin: 0 auto; display: flex;
  align-items: center; justify-content: center; gap: 8px; height: 54px;
  background: linear-gradient(135deg, #B8975A 0%, #D4B483 50%, #B8975A 100%);
  background-size: 200% auto;
  border: none; border-radius: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: #1C1712; cursor: pointer;
  transition: all var(--transition), background-position 0.5s ease;
  box-shadow: 0 8px 32px rgba(184,151,90,0.35), 0 2px 8px rgba(184,151,90,0.25);
  pointer-events: all;
}
.btn-book:hover {
  background-position: right center; transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(184,151,90,0.5), 0 4px 14px rgba(184,151,90,0.35);
}
.btn-book:active { transform: scale(0.97); box-shadow: 0 4px 14px rgba(184,151,90,0.25); }
.btn-book:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-book-desktop {
  display: none; width: 100%; margin-top: 18px;
  align-items: center; justify-content: center; gap: 8px; height: 52px;
  background: linear-gradient(135deg, #B8975A 0%, #D4B483 50%, #B8975A 100%);
  background-size: 200% auto;
  border: none; border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: #1C1712; cursor: pointer;
  transition: all var(--transition), background-position 0.5s ease;
  box-shadow: 0 4px 20px rgba(184,151,90,0.28);
}
.btn-book-desktop:hover { background-position: right center; opacity: 0.92; transform: translateY(-1px); }
.btn-book-desktop:active { transform: scale(0.98); }
.btn-book-desktop:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: calc(82px + var(--sab));
  left: 50%; transform: translateX(-50%) translateY(12px);
  max-width: calc(100vw - 48px);
  background: rgba(20,18,14,0.95); color: var(--text);
  border: 1px solid rgba(184,151,90,0.2);
  padding: 10px 22px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 300; z-index: 9999;
  opacity: 0; white-space: normal; text-align: center;
  pointer-events: none; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  letter-spacing: 0.03em; backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.2,0.64,1);
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal {
  background: var(--surface2);
  border: 1px solid rgba(184,151,90,0.15);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px; padding-bottom: calc(28px + var(--sab));
  width: 100%; max-width: 500px; text-align: center;
  animation: sheetUp 0.35s cubic-bezier(0.34,1.1,0.64,1) both;
  position: relative; overflow: hidden;
}
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.55), transparent);
}
@keyframes sheetUp {
  from { opacity:0; transform:translateY(50px); }
  to { opacity:1; transform:translateY(0); }
}

.modal-handle {
  width: 36px; height: 3px; background: rgba(184,151,90,0.25);
  border-radius: 50px; margin: 0 auto 22px;
}
.modal h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 400; margin-bottom: 8px;
  color: var(--text); letter-spacing: 0.04em;
}
.modal p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.modal-code {
  background: var(--surface3); border: 1px solid var(--gold-border);
  border-radius: 11px; padding: 13px 17px;
  font-size: 1.1rem; font-weight: 400; color: var(--gold-light);
  letter-spacing: 0.2em; margin-bottom: 6px; display: block;
  font-family: 'Cormorant Garamond', serif;
}
.modal-close {
  width: 100%; margin-top: 13px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1C1712; border: none; border-radius: 13px; height: 52px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; letter-spacing: 0.15em; text-transform: uppercase;
  transition: all var(--transition);
}
.modal-close:hover { opacity: 0.9; transform: translateY(-1px); }
.modal-close:active { transform: scale(0.97); }

/* ══════════════════════════════════════════
   SLOT CHECKING OVERLAY
══════════════════════════════════════════ */
.slot-checking-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10,9,7,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.slot-checking-overlay.show { opacity: 1; pointer-events: all; }
.slot-checking-box {
  background: var(--surface2);
  border: 1px solid rgba(184,151,90,0.2);
  border-radius: var(--radius-lg); padding: 38px 44px;
  text-align: center; box-shadow: 0 28px 70px rgba(0,0,0,0.45);
  position: relative; overflow: hidden;
  animation: scaleIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes scaleIn { from { transform:scale(0.85); opacity:0; } to { transform:scale(1); opacity:1; } }
.slot-checking-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.55), transparent);
}
.slot-checking-ring {
  width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%;
  border: 2px solid rgba(184,151,90,0.15);
  border-top-color: var(--gold); border-right-color: rgba(184,151,90,0.45);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(184,151,90,0.15);
}
.slot-checking-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 400; color: var(--text); letter-spacing: 0.04em; margin-bottom: 7px;
}
.slot-checking-sub { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; }
.slot-checking-dots span {
  display: inline-block; animation: dotBounce 1.2s infinite ease-in-out; color: var(--gold);
}
.slot-checking-dots span:nth-child(2) { animation-delay: 0.2s; }
.slot-checking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%,80%,100%{opacity:0.2} 40%{opacity:1} }

/* ══════════════════════════════════════════
   HISTORY DRAWER
══════════════════════════════════════════ */
.history-overlay {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.history-overlay.show { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.history-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  max-height: 86vh; background: var(--surface2);
  border: 1px solid rgba(184,151,90,0.15);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.34,1.1,0.64,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.history-drawer.show { transform: translateY(0); }
.history-drawer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.5), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.history-handle {
  width: 36px; height: 3px; background: rgba(184,151,90,0.2);
  border-radius: 50px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
}
.history-header {
  padding: 20px 20px 15px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid rgba(184,151,90,0.1); flex-shrink: 0;
}
.history-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400; color: var(--gold-light); letter-spacing: 0.04em;
}
.history-close {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--surface3); border: 1px solid rgba(184,151,90,0.14);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; transition: all var(--transition);
}
.history-close:hover { color: var(--gold-light); border-color: rgba(184,151,90,0.4); }
.history-body { overflow-y: auto; flex: 1; padding: 14px 16px 20px; }
.history-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-faint); font-size: 0.78rem; line-height: 1.8;
}
.history-empty .empty-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.4; }
.history-search { margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.history-search input {
  flex: 1; background: var(--surface3);
  border: 1px solid rgba(184,151,90,0.14); border-radius: 50px;
  padding: 8px 16px; height: 40px;
  color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem; outline: none; letter-spacing: 0.02em;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.history-search input::placeholder { color: var(--text-faint); }
.history-search input:focus {
  border-color: rgba(184,151,90,0.45);
  box-shadow: 0 0 0 3px rgba(184,151,90,0.07);
}

/* Booking history cards */
.hbk-card {
  background: var(--surface3); border: 1px solid rgba(184,151,90,0.12);
  border-radius: 15px; padding: 15px 16px; margin-bottom: 10px;
  position: relative; overflow: hidden; animation: fadeUp 0.3s ease both;
  transition: border-color 0.2s, transform 0.2s;
}
.hbk-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.3), transparent);
}
.hbk-card:active { transform: scale(0.99); }
.hbk-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.hbk-code {
  font-size: 0.58rem; letter-spacing: 0.18em; color: var(--gold);
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 50px; padding: 2px 10px; font-weight: 500;
}
.hbk-status {
  font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 50px; padding: 2px 9px; font-weight: 500;
}
.hbk-status.baru { background: rgba(110,207,160,0.1); color: var(--green); border: 1px solid rgba(110,207,160,0.22); }
.hbk-status.selesai { background: rgba(184,151,90,0.09); color: var(--gold-light); border: 1px solid var(--gold-border); }
.hbk-status.batal { background: rgba(224,122,122,0.09); color: var(--red); border: 1px solid rgba(224,122,122,0.18); }
.hbk-layanan {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 500; color: var(--text);
  margin-bottom: 2px; letter-spacing: 0.02em;
}
.hbk-terapis { font-size: 0.66rem; color: rgba(234,227,214,0.6); margin-bottom: 10px; }
.hbk-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.hbk-chip {
  font-size: 0.6rem; color: rgba(234,227,214,0.6);
  background: var(--surface2); border: 1px solid rgba(184,151,90,0.1);
  border-radius: 50px; padding: 3px 10px; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 4px;
}
.hbk-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(184,151,90,0.1);
}
.hbk-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; color: var(--gold-light); font-weight: 400;
}
.hbk-rebooking {
  font-size: 0.62rem; color: var(--gold); letter-spacing: 0.1em;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 50px; padding: 5px 14px; cursor: pointer;
  transition: all var(--transition); font-weight: 500;
}
.hbk-rebooking:hover { background: rgba(184,151,90,0.22); }
.hbk-rebooking:active { transform: scale(0.95); }

.history-clear-btn {
  display: block; width: 100%; margin-top: 14px;
  background: transparent; border: 1px dashed rgba(224,122,122,0.22);
  border-radius: 11px; padding: 10px;
  color: rgba(224,122,122,0.45); font-size: 0.66rem;
  letter-spacing: 0.12em; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all var(--transition); text-transform: uppercase;
}
.history-clear-btn:hover { border-color: rgba(224,122,122,0.5); color: var(--red); background: rgba(224,122,122,0.05); }

/* ══════════════════════════════════════════
   SUCCESS MODAL STATES
══════════════════════════════════════════ */
.suc-row { display:flex; justify-content:space-between; align-items:flex-start; font-size:.76rem; gap:8px; }
.suc-lbl { display:flex; align-items:center; gap:6px; color:rgba(234,227,214,0.5); flex-shrink:0; white-space:nowrap; }
.suc-lbl svg { opacity:.7; flex-shrink:0; }
.suc-val { color:#EAE3D6; text-align:right; font-weight:400; line-height:1.4; }
.suc-div { height:1px; background:rgba(184,151,90,0.12); margin:3px 0; }
.suc-btn-primary {
  width:100%; height:52px;
  background:linear-gradient(135deg,#4CAF82 0%,#6ECFA0 50%,#4CAF82 100%);
  background-size: 200% auto;
  border:none; border-radius:14px;
  font-family:'Plus Jakarta Sans',sans-serif; font-size:.78rem; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase; color:#0d2b1e;
  cursor:pointer; transition:all 0.28s ease;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 4px 24px rgba(110,207,160,0.4), 0 0 40px rgba(110,207,160,0.15);
}
.suc-btn-primary:hover { background-position: right center; opacity:.93; transform:translateY(-1px); }
.suc-btn-primary:active { transform:scale(.97); }
.suc-btn-secondary {
  width:100%; height:46px; background:transparent;
  border:1px solid rgba(184,151,90,0.22); border-radius:13px;
  font-family:'Plus Jakarta Sans',sans-serif; font-size:.73rem; font-weight:400;
  letter-spacing:.16em; text-transform:uppercase; color:rgba(234,227,214,0.5);
  cursor:pointer; transition:all 0.25s ease;
}
.suc-btn-secondary:hover { border-color:rgba(184,151,90,0.5); color:rgba(234,227,214,0.8); background:rgba(184,151,90,0.05); }
.suc-btn-secondary:active { transform: scale(0.97); }

#sucLoading { transition: opacity .35s ease; }
#sucLoading.hide { opacity: 0; pointer-events: none; }
#sucContent { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
#sucContent.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

@keyframes suc-spin { to { transform: rotate(360deg); } }
.suc-spinner {
  width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%;
  border: 2px solid rgba(184,151,90,0.12);
  border-top-color: #D4B483; animation: suc-spin 0.9s linear infinite;
}
.suc-loading-dots span {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(184,151,90,0.55); margin: 0 3px;
}
.suc-loading-dots span:nth-child(1) { animation: dotBounce 1.2s ease-in-out infinite; }
.suc-loading-dots span:nth-child(2) { animation: dotBounce 1.2s ease-in-out .2s infinite; }
.suc-loading-dots span:nth-child(3) { animation: dotBounce 1.2s ease-in-out .4s infinite; }

@keyframes suc-check-pop { 0%{ opacity:0; transform:scale(.65); } 60%{ transform:scale(1.1); } 100%{ opacity:1; transform:scale(1); } }
#sucCheckIcon { animation: suc-check-pop 0.6s cubic-bezier(.22,1,.36,1) both; }

/* ══════════════════════════════════════════
   GENERAL ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to { opacity:1; transform:translateY(0); }
}
.animate { animation: fadeUp 0.5s ease both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

/* Ripple effect */
.ripple-ring {
  position: absolute; border-radius: 50%;
  background: rgba(184,151,90,0.2);
  transform: scale(0); pointer-events: none;
  animation: rippleOut 0.6s ease-out forwards; z-index: 10;
}
@keyframes rippleOut { to { transform: scale(3.5); opacity: 0; } }

/* Shimmer skeleton */
@keyframes shimmerAnim {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ══════════════════════════════════════════
   SCROLL HINT
══════════════════════════════════════════ */
.scroll-hint {
  position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%); z-index: 999;
  flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; background: rgba(18,14,9,0.88);
  border: 1px solid rgba(184,151,90,0.3); border-radius: 50px;
  padding: 5px 14px 4px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  pointer-events: auto;
}
.scroll-hint-text {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.5rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light); opacity: 0.8; white-space: nowrap;
}
.scroll-hint-arrow { color: var(--gold-light); opacity: 0.9; animation: scrollBounce 1.2s ease-in-out infinite; display: flex; }
@keyframes scrollBounce { 0%,100% { transform:translateY(0); } 50% { transform:translateY(4px); } }

/* ══════════════════════════════════════════
   PWA INSTALL BANNER
══════════════════════════════════════════ */
#pwaInstallBanner {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ══════════════════════════════════════════
   LOADING SCREEN
══════════════════════════════════════════ */
@keyframes loaderSpin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .fg.full { grid-column: 1; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 22px 17px 20px; }
  .booking-card { border-radius: 18px; }
  .ter-card { border-radius: 13px; }
  .btn-next { font-size: 0.65rem; padding: 0 18px; }
  .sum-row { font-size: 0.75rem; }
}
@media (min-width: 481px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .slots-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 641px) {
  .site { padding: 0 24px; padding-bottom: 24px; }
  nav { padding: 0 24px; height: 64px; }
  .hero { padding: 32px 30px 28px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-orb { width: 88px; height: 88px; }
  .terapis-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .slots-grid { grid-template-columns: repeat(6, 1fr); }
  .booking-card { padding: 28px 26px; }
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-lg); padding-bottom: 26px; }
  .modal-handle { display: none; }
  .btn-book-wrap { display: none; }
  .btn-book-desktop { display: flex; }
  .nav-brand { font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 1.75rem; }
  .terapis-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 12px 16px 10px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-orb { width: 54px; height: 54px; }
  nav { height: 48px; }
  .site { padding-bottom: 58px; }
}

/* ══════════════════════════════════════════
   PERFORMANCE
══════════════════════════════════════════ */
.step-hidden { content-visibility: hidden; contain: strict; }
img { content-visibility: auto; }

/* Active states — JS handles pop animation, CSS just dims opacity */
button:active { opacity: 0.88; }
.ter-card:active, .svc-card:active, .loc-card:active { opacity: 0.85; }
.slot:active:not(.unavail) { opacity: 0.85; }
