/* ════════════════════════════════════════════════════════════════════
   NomaDream — mockup v0.1.0 stylesheet
   Phone-frame chrome + AirBnB-warm design tokens + all routes.
   Self-contained: no inherited template chrome.
   16 May 2026
   ════════════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════════════
   NOMADREAM — phone-frame chrome + AirBnB-warm overrides
   Appended on top of the mockup-template base. The template's .shell /
   .topbar / .nav / .main / .chat layout is unused by NomaDream — it
   would render hidden because <body> contains .phone-stage instead.
   ═════════════════════════════════════════════════════════════════════ */

:root {
  --nd-coral: #E84855;
  --nd-coral-soft: #FCE9EB;
  --nd-coral-strong: #B83A48;
  --nd-coral-hover: #D63E4B;
  --nd-ink: #222222;
  --nd-ink-mute: #717171;
  --nd-ink-faint: #B0B0B0;
  --nd-cream: #F7F7F7;
  --nd-cream-deep: #EFEDE9;
  --nd-surface: #FFFFFF;
  --nd-border: #EBEBEB;
  --nd-border-strong: #DDDDDD;
  --nd-gold: #C18F45;
  --nd-green: #2C9A6F;
  --nd-amber: #D98316;

  --nd-shadow-sm: 0 2px 6px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --nd-shadow-md: 0 6px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --nd-shadow-lg: 0 24px 60px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.12);

  --nd-r-xs: 6px;
  --nd-r-sm: 10px;
  --nd-r-md: 12px;
  --nd-r-lg: 20px;
  --nd-r-xl: 28px;
  --nd-r-pill: 999px;

  --nd-display: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --nd-ui: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --phone-w: 412px;
  --phone-h: 892px;
  --phone-bezel: 12px;
  --phone-radius: 44px;
  --phone-screen-radius: 32px;
  --phone-status-h: 28px;
  --phone-appbar-h: 56px;
  --phone-bottomnav-h: 68px;
  --phone-gesture-h: 18px;
}

/* Force the template's grid shell to hide — NomaDream uses .phone-stage instead */

html, body { background: #E5E1DC; }
body {
  font-family: var(--nd-ui);
  color: var(--nd-ink);
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Phone stage (desktop backdrop) ──────────────────────────── */
.phone-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 48px 32px;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(232,72,85,.08), transparent 60%),
    radial-gradient(1000px 500px at 90% 90%, rgba(44,154,111,.07), transparent 60%),
    linear-gradient(180deg, #E9E4DC 0%, #DDD7CD 100%);
}

/* ── Phone frame (Android-shaped wrapper) ────────────────────── */
.phone-frame {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  background: linear-gradient(160deg, #1f1f1f 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-radius: var(--phone-radius);
  padding: var(--phone-bezel);
  box-shadow:
    var(--nd-shadow-lg),
    inset 0 0 0 1.5px rgba(255,255,255,.06),
    inset 0 0 0 4px rgba(0,0,0,.4);
  flex-shrink: 0;
  /* Clip the off-screen drawer (translateX(-100%)) so it doesn't leak into the stage area */
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: calc(var(--phone-bezel) + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  border-radius: 14px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}
.phone-notch__speaker {
  width: 40px; height: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}
.phone-notch__camera {
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a3a4a 0%, #050810 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

/* ── Phone screen (inner canvas) ─────────────────────────────── */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--nd-cream);
  border-radius: var(--phone-screen-radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: var(--phone-status-h) var(--phone-appbar-h) 1fr var(--phone-bottomnav-h) var(--phone-gesture-h);
}

/* Status bar (top OS row) */
.phone-status {
  background: var(--nd-cream);
  padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--nd-ink);
  font-feature-settings: "tnum" 1;
}
.phone-status__icons { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.phone-status__battery {
  display: inline-block; width: 22px; height: 11px;
  border: 1.5px solid var(--nd-ink); border-radius: 3px;
  position: relative;
  background: linear-gradient(90deg, var(--nd-ink) 0%, var(--nd-ink) 75%, transparent 75%);
}
.phone-status__battery::after {
  content: ""; position: absolute; right: -3px; top: 3px;
  width: 2px; height: 5px; background: var(--nd-ink); border-radius: 0 1.5px 1.5px 0;
}

/* App bar (under status) */
.app-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: var(--nd-surface);
  border-bottom: 1px solid var(--nd-border);
  padding: 0 8px;
}
.app-bar__left {
  position: relative;
  width: 44px; height: 44px;
}
.app-bar__left > .app-bar__btn {
  position: absolute; inset: 0;
}
.app-bar__btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: var(--nd-r-pill);
  color: var(--nd-ink); cursor: pointer; position: relative;
  transition: background .15s ease;
}
/* Author rule beats UA [hidden] in cascade — restore it explicitly so the
   hamburger and back button can't render in the same slot at the same time. */
.app-bar__btn[hidden] { display: none !important; }
.app-bar__btn:hover { background: var(--nd-cream); }
.app-bar__btn--right { justify-self: end; }
.app-bar__brand {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--nd-ink);
  font-weight: 700; font-size: 16px;
}
.app-bar__brand-icon { font-size: 18px; line-height: 1; }
.app-bar__brand-name { font-family: var(--nd-display); font-weight: 700; letter-spacing: -.01em; }
.app-bar__dot {
  position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nd-coral);
  box-shadow: 0 0 0 2px var(--nd-surface);
}

/* Hamburger + bell icons drawn in CSS */
.icon-hamburger {
  width: 18px; height: 12px; position: relative;
  background:
    linear-gradient(var(--nd-ink), var(--nd-ink)) top/100% 2px no-repeat,
    linear-gradient(var(--nd-ink), var(--nd-ink)) center/100% 2px no-repeat,
    linear-gradient(var(--nd-ink), var(--nd-ink)) bottom/100% 2px no-repeat;
}
.icon-back {
  display: inline-block;
  width: 12px; height: 12px;
  border-left: 2.5px solid var(--nd-ink);
  border-bottom: 2.5px solid var(--nd-ink);
  transform: rotate(45deg);
  margin-left: 4px;
  border-bottom-left-radius: 1px;
}
.icon-envelope {
  display: inline-block;
  color: var(--nd-ink);
}

/* App body (scrollable route container) */
.app-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 20px 36px;
  background: var(--nd-cream);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.app-body::-webkit-scrollbar { width: 4px; }
.app-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 4px; }

/* Bottom-tab nav */
.bottom-nav {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--nd-surface);
  border-top: 1px solid var(--nd-border);
  padding: 6px 4px 4px;
}
.bottom-nav__tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: transparent; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--nd-ink-mute);
  font-family: var(--nd-ui);
  font-size: 10px; font-weight: 600;
  transition: color .15s ease;
}
.bottom-nav__icon { font-size: 20px; line-height: 1; transform: translateY(-1px); transition: transform .2s ease; }
.bottom-nav__label { letter-spacing: .02em; }
.bottom-nav__tab:hover { color: var(--nd-ink); }
.bottom-nav__tab.active { color: var(--nd-coral); }
.bottom-nav__tab.active .bottom-nav__icon { transform: translateY(-2px) scale(1.05); }

/* Gesture bar (Android home indicator) */
.phone-gesture-bar {
  background: var(--nd-surface);
  display: flex; align-items: center; justify-content: center;
}
.phone-gesture-bar::after {
  content: ""; width: 120px; height: 4px; border-radius: 4px; background: var(--nd-ink);
}

/* ── Drawer (hamburger menu — overlays the screen) ──────────── */
.drawer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 84%;
  background: var(--nd-surface);
  z-index: 20;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  border-top-right-radius: var(--phone-screen-radius);
  border-bottom-right-radius: var(--phone-screen-radius);
  box-shadow: 8px 0 24px rgba(0,0,0,.12);
}
.drawer.is-open { transform: translateX(0); }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.32);
  z-index: 19;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  border-radius: var(--phone-screen-radius);
}
.drawer-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.drawer__head {
  display: grid; grid-template-columns: 48px 1fr 36px;
  align-items: center; gap: 12px;
  padding: 24px 18px 20px;
  background: linear-gradient(135deg, var(--nd-coral) 0%, var(--nd-coral-strong) 100%);
  color: #fff;
}
.drawer__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--nd-display); font-weight: 700; font-size: 22px;
  border: 2px solid rgba(255,255,255,.6);
}
.drawer__id { min-width: 0; }
.drawer__name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer__email { font-size: 12px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer__close {
  background: rgba(255,255,255,.18); border: 0; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 16px;
}
.drawer__nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer__section { padding: 8px 0; border-bottom: 1px solid var(--nd-border); }
.drawer__section:last-child { border-bottom: 0; }
.drawer__section-title {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--nd-ink-mute);
  padding: 12px 22px 6px;
}
.drawer__link {
  width: 100%;
  display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px;
  padding: 12px 22px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  color: var(--nd-ink); font-size: 14px; font-weight: 500;
  transition: background .15s ease;
}
.drawer__link:hover { background: var(--nd-cream); }
.drawer__link-icon { font-size: 18px; }
.drawer__foot { padding: 14px 22px 20px; }
.drawer__version { font-size: 11px; color: var(--nd-ink-faint); }

/* ── Common route building blocks ───────────────────────────── */
.route-title {
  font-family: var(--nd-display);
  font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -.01em;
  margin: 8px 0 4px;
  color: var(--nd-ink);
}
.route-subtitle {
  font-size: 14px; color: var(--nd-ink-mute);
  margin: 0 0 18px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--nd-surface); color: var(--nd-ink);
  border: 1px solid var(--nd-border-strong); border-radius: var(--nd-r-pill);
  padding: 10px 20px;
  font-family: var(--nd-ui); font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:hover { background: var(--nd-cream); }
.btn--primary {
  background: var(--nd-coral); color: #fff; border-color: var(--nd-coral);
  box-shadow: 0 2px 6px rgba(232,72,85,.28);
}
.btn--primary:hover { background: var(--nd-coral-hover); border-color: var(--nd-coral-hover); }
.btn--full { width: 100%; padding: 14px 20px; font-size: 15px; }

.form-field { display: block; margin-bottom: 14px; }
.form-field__label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--nd-ink-mute);
  margin-bottom: 6px;
}
.form-field__input {
  width: 100%; box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--nd-border-strong); border-radius: var(--nd-r-md);
  background: var(--nd-surface);
  font-family: var(--nd-ui); font-size: 15px; color: var(--nd-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field__input:focus {
  outline: none; border-color: var(--nd-coral);
  box-shadow: 0 0 0 3px rgba(232,72,85,.12);
}

.sub-tabs {
  display: flex; gap: 8px;
  margin: 16px 0 18px;
  border-bottom: 1px solid var(--nd-border);
  overflow-x: auto;
}
.sub-tab {
  background: transparent; border: 0;
  padding: 10px 4px 12px; margin-right: 12px;
  font-family: var(--nd-ui); font-weight: 600; font-size: 14px;
  color: var(--nd-ink-mute); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.sub-tab.active { color: var(--nd-ink); border-bottom-color: var(--nd-coral); }
.sub-panel { animation: fadeIn .2s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Home: greet block ──────────────────────────────────────── */
.greet { margin: 8px 0 18px; }
.greet__hello {
  font-family: var(--nd-display);
  font-weight: 600; font-size: 30px; line-height: 1.1;
  margin: 0 0 6px;
  color: var(--nd-ink);
  letter-spacing: -.01em;
}
.greet__hi { display: block; color: var(--nd-ink-mute); font-style: italic; font-weight: 400; font-size: 18px; }
.greet__name { display: block; color: var(--nd-coral); }
.greet__sub { margin: 6px 0 0; color: var(--nd-ink-mute); font-size: 14px; max-width: 28ch; }

/* ── Home: search pill ──────────────────────────────────────── */
.search-pill {
  width: 100%;
  display: grid; grid-template-columns: 44px 1fr;
  align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-pill);
  box-shadow: var(--nd-shadow-sm);
  cursor: pointer; text-align: left;
  transition: box-shadow .15s ease, transform .15s ease;
}
.search-pill:hover { box-shadow: var(--nd-shadow-md); transform: translateY(-1px); }
.search-pill__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--nd-coral-soft); color: var(--nd-coral);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.search-pill__primary { display: block; font-weight: 600; font-size: 14px; color: var(--nd-ink); }
.search-pill__secondary { display: block; font-size: 12px; color: var(--nd-ink-mute); }

/* ── Sections (deals + regions) ─────────────────────────────── */
.deal-section, .region-section { margin: 26px 0; }
.deal-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.deal-section__title {
  font-family: var(--nd-display);
  font-weight: 700; font-size: 20px;
  margin: 0; color: var(--nd-ink);
  letter-spacing: -.01em;
}
.deal-section__sub { margin: 0; font-size: 12px; color: var(--nd-ink-mute); }

.deal-carousel {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -20px; padding: 4px 20px 8px;
  scrollbar-width: none;
}
.deal-carousel::-webkit-scrollbar { display: none; }
.deal-card-skel {
  flex: 0 0 220px;
  height: 240px;
  border-radius: var(--nd-r-lg);
  background: linear-gradient(110deg, var(--nd-cream-deep) 8%, #f3efe9 18%, var(--nd-cream-deep) 33%);
  background-size: 200% 100%;
  animation: skel 1.4s linear infinite;
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.region-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* ── Phase-1 note banner ────────────────────────────────────── */
.phase-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 18px 0;
  padding: 12px 14px;
  background: var(--nd-coral-soft);
  color: var(--nd-coral-strong);
  border-radius: var(--nd-r-md);
  font-size: 12px; line-height: 1.4;
}
.phase-note strong { font-weight: 700; }

/* ── Modal (approval popup, Phase 3-trigger-ready) ──────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.modal__sheet {
  position: relative;
  width: 100%; max-width: 360px;
  background: var(--nd-surface); color: var(--nd-ink);
  border-radius: var(--nd-r-xl);
  padding: 28px 24px 24px;
  box-shadow: var(--nd-shadow-lg);
  text-align: center;
  animation: rise .25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__emoji { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.modal__title { font-family: var(--nd-display); font-weight: 700; font-size: 22px; margin: 4px 0 10px; letter-spacing: -.01em; }
.modal__body { font-size: 14px; color: var(--nd-ink-mute); line-height: 1.5; margin: 0 0 16px; }
.modal__body strong { color: var(--nd-ink); font-weight: 600; }
.modal__channels {
  list-style: none; padding: 0; margin: 0 0 18px;
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.modal__channels li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--nd-cream);
  border-radius: var(--nd-r-md);
  font-size: 12px;
}
.channel-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; flex-shrink: 0;
}
.channel-dot--email    { background: #E0EAFF; color: #2B59C3; }
.channel-dot--whatsapp { background: #DCF8DB; color: #1FAF38; }
.channel-dot--platform { background: var(--nd-coral-soft); color: var(--nd-coral); }

/* ── Stage caption (desktop-only sidebar info) ──────────────── */
.stage-caption {
  max-width: 280px;
  color: rgba(34,34,34,.75);
  font-family: var(--nd-ui);
}
.stage-caption__line { margin: 4px 0; font-size: 13px; line-height: 1.5; }
.stage-caption__line--title { font-family: var(--nd-display); font-weight: 700; font-size: 22px; color: var(--nd-ink); margin-bottom: 8px; }
.stage-caption__line--meta { font-size: 11px; color: var(--nd-ink-mute); text-transform: uppercase; letter-spacing: .12em; margin-top: 16px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stage-caption { display: none; }
  .phone-stage { padding: 24px 16px; }
}
@media (max-width: 480px) {
  .phone-stage {
    padding: 0; gap: 0;
    background: var(--nd-cream);
  }
  .phone-frame {
    width: 100vw; height: 100dvh;
    border-radius: 0; padding: 0;
    box-shadow: none;
    background: var(--nd-cream);
  }
  .phone-notch { display: none; }
  .phone-screen { border-radius: 0; }
  .drawer, .drawer-backdrop { border-radius: 0; }
  .drawer { border-top-right-radius: 0; border-bottom-right-radius: 0; }
}

/* ── Phase 2: deal cards (personalized carousel on Home) ─── */
.deal-card {
  flex: 0 0 240px;
  background: var(--nd-surface);
  border-radius: var(--nd-r-lg);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  box-shadow: var(--nd-shadow-sm);
  border: 1px solid var(--nd-border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.deal-card:hover, .deal-card:focus-visible { transform: translateY(-2px); box-shadow: var(--nd-shadow-md); outline: none; }
.deal-card__media {
  position: relative;
  width: 100%; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.deal-card__discount {
  position: absolute; top: 10px; right: 10px;
  background: var(--nd-ink); color: #fff;
  padding: 5px 10px; border-radius: var(--nd-r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.deal-card__loyalty {
  position: absolute; bottom: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,.96);
  color: var(--chip-color, var(--nd-ink));
  border-radius: var(--nd-r-pill);
  font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.deal-card__loyalty-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--chip-color, var(--nd-ink));
}
.deal-card__body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.deal-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.deal-card__name {
  font-family: var(--nd-display);
  font-weight: 600; font-size: 15px; line-height: 1.15;
  margin: 0; color: var(--nd-ink);
  letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-card__rating { font-size: 11px; font-weight: 700; color: var(--nd-ink); white-space: nowrap; }
.deal-card__location { margin: 0; font-size: 11px; color: var(--nd-ink-mute); letter-spacing: .02em; }
.deal-card__tagline { margin: 4px 0 0; font-size: 12px; color: var(--nd-ink-mute); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-card__price { margin: 6px 0 0; font-size: 12px; color: var(--nd-ink); }
.deal-card__price strong { font-weight: 700; font-size: 14px; color: var(--nd-coral); }

/* ── Phase 2: region tiles (Home grid) ──────────────────── */
.region-tile {
  display: flex; flex-direction: column;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  overflow: hidden;
  cursor: pointer; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 0;
}
.region-tile:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-sm); }
.region-tile__media {
  width: 100%; aspect-ratio: 16/11;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.region-tile__body { padding: 10px 12px 12px; }
.region-tile__name { display: block; font-family: var(--nd-display); font-weight: 700; font-size: 15px; color: var(--nd-ink); }
.region-tile__tagline { display: block; font-size: 11px; color: var(--nd-ink-mute); margin-top: 2px; }

/* ═════════════════════════════════════════════════════════════════════
   PHASE 3 — Search, Hotel detail, Room detail, Booking, Confirmation, Profile
   ═════════════════════════════════════════════════════════════════════ */

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--nd-ink-mute);
}
.empty-state__emoji { font-size: 36px; margin-bottom: 6px; }
.empty-state__title { font-family: var(--nd-display); font-weight: 700; font-size: 18px; color: var(--nd-ink); margin: 4px 0; }
.empty-state__body { font-size: 13px; max-width: 26ch; margin: 0 auto; line-height: 1.5; }

/* ── Search results ─────────────────────────────────────────── */
.search-form { margin-bottom: 18px; }
.results-summary {
  font-size: 12px; color: var(--nd-ink-mute);
  padding: 6px 0 12px;
}
.results-summary strong { color: var(--nd-ink); font-weight: 600; }
.result-list { display: flex; flex-direction: column; gap: 14px; }
.result-row {
  display: flex; gap: 12px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--nd-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 0;
  text-align: left;
}
.result-row:hover, .result-row:focus-visible { transform: translateY(-2px); box-shadow: var(--nd-shadow-md); outline: none; }
.result-row__media {
  position: relative;
  flex: 0 0 120px;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
  min-height: 120px;
}
.result-row__media .deal-card__loyalty {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 9px;
  padding: 4px 7px;
}
.result-row__body { flex: 1; padding: 12px 14px; min-width: 0; }
.result-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.result-row__name {
  font-family: var(--nd-display); font-weight: 600; font-size: 15px; line-height: 1.15;
  margin: 0; color: var(--nd-ink); letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.result-row__rating { font-size: 11px; font-weight: 700; white-space: nowrap; }
.result-row__reviews { color: var(--nd-ink-mute); font-weight: 500; }
.result-row__location { margin: 2px 0 0; font-size: 11px; color: var(--nd-ink-mute); }
.result-row__tagline {
  margin: 4px 0; font-size: 12px; color: var(--nd-ink-mute); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.result-row__foot { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.result-row__price { font-size: 13px; color: var(--nd-ink); }
.result-row__price strong { color: var(--nd-coral); font-weight: 700; font-size: 14px; }
.result-row__discount {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  background: var(--nd-coral-soft); color: var(--nd-coral-strong);
  border-radius: var(--nd-r-pill);
}

/* ── Hotel detail ──────────────────────────────────────────── */
.hd-hero {
  position: relative;
  width: calc(100% + 40px); margin: -20px -20px 0;
  height: 240px;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.hd-hero .deal-card__loyalty {
  position: absolute; bottom: 12px; left: 12px;
  font-size: 12px; padding: 7px 12px;
}
.hd-head { margin: 16px 0 12px; }
.hd-title {
  font-family: var(--nd-display); font-weight: 700;
  font-size: 26px; line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 4px; color: var(--nd-ink);
}
.hd-location { margin: 2px 0; font-size: 13px; color: var(--nd-ink-mute); }
.hd-rating { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--nd-ink); }
.hd-rating__count { font-weight: 500; color: var(--nd-ink-mute); font-size: 12px; }
.hd-loyalty-banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--nd-coral-soft) 0%, #FFEAD1 100%);
  border-radius: var(--nd-r-md);
  font-size: 13px; line-height: 1.4;
  color: var(--nd-coral-strong);
  margin: 4px 0 16px;
  border: 1px solid rgba(232,72,85,.18);
}
.hd-loyalty-banner--neutral {
  background: var(--nd-cream-deep); color: var(--nd-ink);
  border-color: var(--nd-border);
}
.hd-loyalty-banner__emoji { font-size: 18px; line-height: 1; flex-shrink: 0; }
.hd-loyalty-banner strong { font-weight: 700; color: var(--nd-ink); }
.hd-loyalty-banner--neutral strong { color: var(--nd-coral); }
.hd-desc { font-size: 14px; line-height: 1.55; color: var(--nd-ink); margin: 0 0 8px; }

.hd-section-title {
  font-family: var(--nd-display); font-weight: 700; font-size: 17px;
  margin: 22px 0 10px; color: var(--nd-ink); letter-spacing: -.01em;
}
.hd-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.hd-amenity-chip {
  padding: 6px 11px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border-strong);
  border-radius: var(--nd-r-pill);
  font-size: 12px; color: var(--nd-ink);
}

.hd-cta-row {
  margin: 16px 0 4px;
  padding: 14px;
  background: var(--nd-cream-deep);
  border-radius: var(--nd-r-lg);
  text-align: center;
}
.hd-cta-row .btn { margin: 0; }
.hd-cta-row__hint {
  font-size: 11px; color: var(--nd-ink-mute);
  margin: 8px 0 0;
}

.hd-rooms { display: flex; flex-direction: column; gap: 10px; }
.room-card {
  display: flex; gap: 12px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  overflow: hidden;
  cursor: pointer; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 0;
}
.room-card:hover, .room-card:focus-visible { transform: translateY(-2px); box-shadow: var(--nd-shadow-sm); outline: none; }
.room-card__media {
  flex: 0 0 96px;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.room-card__body { flex: 1; padding: 10px 12px; }
.room-card__name { font-family: var(--nd-display); font-weight: 600; font-size: 14px; color: var(--nd-ink); margin: 0; }
.room-card__meta { font-size: 11px; color: var(--nd-ink-mute); margin: 2px 0; }
.room-card__price { font-size: 12px; color: var(--nd-ink); margin: 4px 0 0; }
.room-card__price strong { color: var(--nd-coral); font-weight: 700; font-size: 13px; }

.hd-beach {
  width: 100%; aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
  border-radius: var(--nd-r-lg);
}

.hd-map {
  width: 100%; height: 220px;
  border-radius: var(--nd-r-lg);
  background: var(--nd-cream-deep);
  overflow: hidden;
}
/* Leaflet attribution + zoom positioning inside the rounded map container */
.hd-map .leaflet-control-attribution { font-size: 9px; }
.nd-map-pin {
  background: transparent !important; border: 0 !important;
}
.nd-map-pin__inner {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 0;
  background: var(--nd-coral);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  transform: rotate(-45deg);
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}
.nd-map-pin__inner > * { transform: rotate(45deg); }
.nd-map-pin--muted .nd-map-pin__inner {
  width: 22px; height: 22px;
  background: rgba(34,34,34,.7);
  font-size: 12px;
}

/* ── Room detail ────────────────────────────────────────────── */
.rd-hero {
  width: calc(100% + 40px); margin: -20px -20px 0;
  height: 280px;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.rd-head { margin: 14px 0 10px; }
.rd-breadcrumb { font-size: 11px; color: var(--nd-ink-mute); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.rd-title { font-family: var(--nd-display); font-weight: 700; font-size: 24px; line-height: 1.1; margin: 0 0 4px; letter-spacing: -.01em; }
.rd-meta { font-size: 13px; color: var(--nd-ink-mute); margin: 4px 0; }
.rd-desc { font-size: 14px; line-height: 1.55; margin: 8px 0 16px; }

.price-breakdown {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 13px; }
.price-row--discount { color: var(--nd-coral); }
.price-row--total {
  font-size: 15px; font-weight: 700;
  border-top: 1px solid var(--nd-border); margin-top: 8px; padding-top: 12px;
}
.price-row--total strong { font-size: 22px; color: var(--nd-ink); font-family: var(--nd-display); }

.rd-cta { margin: 16px 0 8px; }
.rd-cta__note { font-size: 11px; color: var(--nd-ink-mute); text-align: center; margin: 8px 0 0; }

/* ── Date picker on room detail ─────────────────────────────── */
.rd-dates-hint { font-size: 12px; color: var(--nd-ink-mute); margin: 0 0 10px; }
.date-picker {
  display: grid; grid-template-columns: 1fr 20px 1fr;
  gap: 10px; align-items: stretch;
  margin: 8px 0 6px;
}
.date-field {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border-strong);
  border-radius: var(--nd-r-md);
  padding: 8px 12px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.date-field:focus-within {
  border-color: var(--nd-coral);
  box-shadow: 0 0 0 3px rgba(232,72,85,.12);
}
.date-field__label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--nd-ink-mute);
  margin-bottom: 2px;
}
.date-field__input {
  border: 0; padding: 0; background: transparent;
  font-family: var(--nd-ui); font-size: 14px; font-weight: 600;
  color: var(--nd-ink);
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-feature-settings: "tnum" 1;
}
/* Strip the native calendar-icon padding so the date sits flush */
.date-field__input::-webkit-calendar-picker-indicator {
  margin-left: 2px; opacity: .55; cursor: pointer;
}
.date-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--nd-ink-faint); font-size: 18px;
}
.rd-duration {
  font-size: 12px; color: var(--nd-ink);
  margin: 6px 0 4px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .02em;
}
.rd-warning {
  font-size: 12px;
  color: var(--nd-coral-strong);
  background: var(--nd-coral-soft);
  border-radius: var(--nd-r-md);
  padding: 8px 12px;
  margin: 6px 0 10px;
  border: 1px solid rgba(232,72,85,.18);
}
.btn[disabled] {
  background: var(--nd-cream-deep) !important;
  color: var(--nd-ink-faint) !important;
  border-color: var(--nd-border-strong) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* ── Booking flow ──────────────────────────────────────────── */
.bk-summary {
  display: flex; gap: 12px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  overflow: hidden;
  margin: 0 0 18px;
}
.bk-summary__media {
  flex: 0 0 96px;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.bk-summary__body { flex: 1; padding: 10px 12px; }
.bk-summary__hotel { font-family: var(--nd-display); font-weight: 600; font-size: 14px; color: var(--nd-ink); margin: 0; }
.bk-summary__room { font-size: 12px; color: var(--nd-ink-mute); margin: 2px 0; }
.bk-summary__dates { font-size: 12px; color: var(--nd-ink); margin: 4px 0; }
.bk-summary__price { font-size: 13px; color: var(--nd-ink); margin: 4px 0 0; }
.bk-summary__price strong { color: var(--nd-coral); font-weight: 700; font-size: 16px; font-family: var(--nd-display); }

.bk-stages {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.bk-stage {
  display: flex; gap: 14px;
  padding: 12px 0;
  position: relative;
}
/* Inter-stage connector — explicit child element so JS can animate fill + show counter.
   Replaces the old `::after` line and supports a progress-bar fill BETWEEN stages. */
.bk-stage__connector {
  position: absolute;
  left: 0; right: 0;
  top: 36px; bottom: -8px;
  pointer-events: none;
}
.bk-stage:last-child .bk-stage__connector { display: none; }
.bk-stage__connector-track {
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: var(--nd-border);
}
.bk-stage__connector-fill {
  position: absolute;
  left: 11px; top: 0;
  width: 2px; height: 0%;
  background: var(--nd-green);
}
.bk-stage.is-done .bk-stage__connector-fill { height: 100%; }
/* Upgrade stage: yellow fill */
.bk-stage--upgrade .bk-stage__connector-fill,
.bk-stage--upgrade.is-done .bk-stage__connector-fill { background: #F5B935; }
/* Blue (payment-authorised) stage in the confirmation timeline: gradient blue→green */
.bk-stage--blue .bk-stage__connector-fill {
  background: linear-gradient(180deg, #2B59C3 0%, var(--nd-green) 100%);
}
/* Inline day-counter — appended to the end of the last-done stage's caption.
   Black, slightly larger than the caption, monospaced so digits tick cleanly. */
.bk-stage__inline-counter {
  display: inline;
  color: var(--nd-ink);
  font-weight: 700;
  font-size: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .02em;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.bk-stage__inline-counter[hidden] { display: none !important; }
.bk-stage__bullet {
  position: relative;
  flex: 0 0 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--nd-cream-deep);
  border: 2px solid var(--nd-border);
  color: var(--nd-ink-mute);
  font-size: 11px; font-weight: 700;
  z-index: 2;
}
.bk-stage__index { display: block; }
.bk-stage__spinner, .bk-stage__check { display: none; }
.bk-stage.is-active .bk-stage__bullet {
  background: var(--nd-coral); border-color: var(--nd-coral); color: #fff;
  box-shadow: 0 0 0 4px rgba(232,72,85,.15);
}
.bk-stage.is-active .bk-stage__index { display: none; }
.bk-stage.is-active .bk-stage__spinner {
  display: block;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: bk-spin .8s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }
.bk-stage.is-done .bk-stage__bullet {
  background: var(--nd-green); border-color: var(--nd-green); color: #fff;
}
.bk-stage.is-done .bk-stage__index { display: none; }
.bk-stage.is-done .bk-stage__check { display: block; font-size: 14px; }
.bk-stage__body { flex: 1; padding-top: 1px; }
.bk-stage__label {
  font-family: var(--nd-display); font-weight: 600; font-size: 15px;
  color: var(--nd-ink);
  margin-bottom: 2px;
}
.bk-stage.is-pending .bk-stage__label { color: var(--nd-ink-faint); }
.bk-stage.is-active .bk-stage__label { color: var(--nd-coral-strong); }
.bk-stage__caption { font-size: 12px; color: var(--nd-ink-mute); line-height: 1.4; }
.bk-stage.is-pending .bk-stage__caption { color: var(--nd-ink-faint); }

.bk-foot-note { font-size: 11px; color: var(--nd-ink-mute); text-align: center; margin: 14px 0 0; line-height: 1.5; }

/* ── Confirmation ──────────────────────────────────────────── */
.cf-celebrate { text-align: center; padding: 16px 0 4px; }
.cf-celebrate__emoji { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.cf-celebrate__title {
  font-family: var(--nd-display); font-weight: 700; font-size: 22px; line-height: 1.2;
  margin: 4px 0 6px; color: var(--nd-ink); letter-spacing: -.01em;
}
.cf-celebrate__sub { font-size: 14px; color: var(--nd-ink-mute); margin: 0; }

.cf-ticket {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-xl);
  margin: 20px 0;
  overflow: hidden;
  box-shadow: var(--nd-shadow-sm);
  position: relative;
}
.cf-ticket::before, .cf-ticket::after {
  content: ""; position: absolute;
  left: -10px; right: -10px; height: 20px;
  background:
    radial-gradient(circle 10px at 10px 50%, var(--nd-cream) 99%, transparent 100%) left/20px 100% repeat-x,
    radial-gradient(circle 10px at calc(100% - 10px) 50%, var(--nd-cream) 99%, transparent 100%) right/20px 100% repeat-x;
  pointer-events: none;
}
.cf-ticket::before { top: 168px; display: none; }
.cf-ticket__media {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.cf-ticket__body { padding: 16px 20px 20px; }
.cf-ticket__id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .12em;
  color: var(--nd-ink-mute);
  margin: 0 0 4px;
}
.cf-ticket__hotel { font-family: var(--nd-display); font-weight: 700; font-size: 18px; margin: 0; color: var(--nd-ink); }
.cf-ticket__room { font-size: 13px; color: var(--nd-ink-mute); margin: 2px 0 12px; }
.cf-ticket__dates {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--nd-border); border-bottom: 1px dashed var(--nd-border);
}
.cf-ticket__dates div { display: flex; flex-direction: column; }
.cf-ticket__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--nd-ink-mute); margin-bottom: 2px; }
.cf-ticket__dates strong { font-size: 14px; color: var(--nd-ink); font-family: var(--nd-ui); }
.cf-ticket__total { font-size: 13px; color: var(--nd-ink-mute); margin: 12px 0 0; }
.cf-ticket__total strong { color: var(--nd-coral); font-weight: 700; font-size: 18px; font-family: var(--nd-display); }

.cf-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ── Profile ──────────────────────────────────────────────── */
.profile-card {
  display: flex; gap: 14px; align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--nd-coral-soft) 0%, #FFF1F2 100%);
  border-radius: var(--nd-r-lg);
  margin-bottom: 16px;
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--nd-coral); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--nd-display); font-weight: 700; font-size: 24px;
  flex-shrink: 0;
}
.profile-id__name { font-family: var(--nd-display); font-weight: 700; font-size: 18px; color: var(--nd-ink); }
.profile-id__email { font-size: 13px; color: var(--nd-ink-mute); margin-top: 2px; }
.profile-id__since { font-size: 11px; color: var(--nd-coral); margin-top: 4px; font-weight: 600; }

.profile-detail-list {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  padding: 4px 14px;
  margin: 0 0 14px;
}
.profile-detail-list div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--nd-border);
}
.profile-detail-list div:last-child { border-bottom: 0; }
.profile-detail-list dt { font-size: 12px; color: var(--nd-ink-mute); margin: 0; }
.profile-detail-list dd { font-size: 13px; color: var(--nd-ink); font-weight: 500; margin: 0; }

.profile-note { font-size: 11px; color: var(--nd-ink-faint); text-align: center; margin: 8px 0; font-style: italic; }
.profile-section-intro { font-size: 12px; color: var(--nd-ink-mute); margin: 0 0 12px; }

.loyalty-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.loyalty-card {
  position: relative;
  padding: 16px;
  border-radius: var(--nd-r-lg);
  background: linear-gradient(135deg, var(--card-color, var(--nd-ink)) 0%, color-mix(in srgb, var(--card-color, #333) 70%, #000) 100%);
  color: #fff;
  overflow: hidden;
}
.loyalty-card::after {
  content: ""; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.loyalty-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.loyalty-card__program { font-family: var(--nd-display); font-weight: 700; font-size: 15px; }
.loyalty-card__status {
  font-size: 9px; font-weight: 700; padding: 3px 8px;
  background: rgba(255,255,255,.18); border-radius: var(--nd-r-pill);
  letter-spacing: .08em;
}
.loyalty-card--expired { opacity: .65; }
.loyalty-card--expired .loyalty-card__status { background: rgba(0,0,0,.4); color: #FFD9DC; }
.loyalty-card__tier {
  font-family: var(--nd-display); font-weight: 700; font-size: 22px;
  margin: 14px 0 4px;
}
.loyalty-card__id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: .08em;
  opacity: .85;
}
.loyalty-card__foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; font-size: 10px; letter-spacing: .04em;
  text-transform: uppercase; opacity: .8;
}

.reservation-list { display: flex; flex-direction: column; gap: 10px; }
.reservation-row {
  display: flex; gap: 12px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  overflow: hidden;
}
.reservation-row__media {
  flex: 0 0 88px;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.reservation-row__body { flex: 1; padding: 10px 12px; }
.reservation-row__hotel { font-family: var(--nd-display); font-weight: 600; font-size: 14px; color: var(--nd-ink); margin: 0; }
.reservation-row__room { font-size: 12px; color: var(--nd-ink-mute); margin: 2px 0; }
.reservation-row__dates { font-size: 12px; color: var(--nd-ink); margin: 4px 0; }
.reservation-row__price { font-size: 12px; color: var(--nd-coral); margin: 4px 0 0; font-weight: 600; }

/* Clickable upcoming reservation rows + a big day counter on the right */
.reservation-row--clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.reservation-row--clickable:hover,
.reservation-row--clickable:focus-visible { transform: translateY(-2px); box-shadow: var(--nd-shadow-sm); outline: none; }
.reservation-row__counter {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 14px;
  border-left: 1px dashed var(--nd-border);
  text-align: center;
  flex-shrink: 0;
  min-width: 78px;
}
.reservation-row__counter-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--nd-coral);
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.reservation-row__counter-label {
  font-size: 9px;
  color: var(--nd-ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 6px;
  font-weight: 700;
  line-height: 1.2;
}
/* Past stays — slightly muted treatment */
.reservation-row--past .reservation-row__media { filter: saturate(.92) brightness(.97); }
.reservation-row--past .reservation-row__price { color: var(--nd-ink-mute); font-weight: 500; }

/* ═════════════════════════════════════════════════════════════════════
   PHASE 4 — Hotel dashboard (drawer-only)
   ═════════════════════════════════════════════════════════════════════ */

.hd-dash__head { margin: 4px 0 16px; }
.hd-dash__badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--nd-ink); color: #fff;
  border-radius: var(--nd-r-pill);
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hd-dash__title { margin-top: 2px; }
.hd-dash__subtitle { margin: 4px 0 12px; }
.hd-dash__switcher {
  display: flex; align-items: center; gap: 8px;
  margin: 6px 0 14px;
}
.hd-dash__switcher-label { font-size: 11px; color: var(--nd-ink-mute); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hd-dash__select {
  flex: 1; max-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--nd-border-strong);
  border-radius: var(--nd-r-md);
  background: var(--nd-surface);
  font-family: var(--nd-ui); font-size: 13px; color: var(--nd-ink);
}

.hd-dash__tabs { margin-bottom: 14px; }

.hd-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 6px 0 12px;
}
.hd-toolbar__count { font-size: 12px; color: var(--nd-ink-mute); }
.hd-toolbar__btn { padding: 6px 14px; font-size: 12px; }

.hd-list { display: flex; flex-direction: column; gap: 10px; }
.hd-list-row {
  display: flex; gap: 12px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  overflow: hidden;
}
.hd-list-row__media {
  flex: 0 0 80px;
  background-size: cover; background-position: center;
  background-color: var(--nd-cream-deep);
}
.hd-list-row__body { flex: 1; padding: 10px 12px; min-width: 0; }
.hd-list-row__name { font-family: var(--nd-display); font-weight: 600; font-size: 14px; color: var(--nd-ink); margin: 0; }
.hd-list-row__meta { font-size: 11px; color: var(--nd-ink-mute); margin: 2px 0; }
.hd-list-row__desc { font-size: 12px; color: var(--nd-ink-mute); margin: 4px 0 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hd-list-row__actions {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 8px 8px 0;
}
.btn-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--nd-border-strong);
  border-radius: 50%;
  background: var(--nd-surface);
  color: var(--nd-ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.btn-icon:hover { background: var(--nd-cream); }

.hd-image-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hd-image-tile {
  margin: 0; background: var(--nd-surface);
  border: 1px solid var(--nd-border); border-radius: var(--nd-r-md);
  overflow: hidden;
}
.hd-image-tile__media { aspect-ratio: 1; background-size: cover; background-position: center; background-color: var(--nd-cream-deep); }
.hd-image-tile__cap {
  display: block; font-size: 10px; color: var(--nd-ink-mute);
  padding: 6px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hd-price-table {
  width: 100%; border-collapse: collapse;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-md);
  overflow: hidden;
  font-size: 12px;
}
.hd-price-table th, .hd-price-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--nd-border);
  text-align: left;
}
.hd-price-table th {
  background: var(--nd-cream); font-weight: 700; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--nd-ink-mute);
}
.hd-price-table tr:last-child td { border-bottom: 0; }
.hd-list__hint {
  font-size: 11px; color: var(--nd-ink-mute);
  margin: 10px 0 0;
  font-style: italic;
}

.hd-staff-row {
  display: flex; gap: 12px; align-items: center;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  padding: 12px;
}
.hd-staff-row__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--nd-cream-deep); color: var(--nd-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--nd-display); font-weight: 700; font-size: 14px;
}
.hd-staff-row__body { flex: 1; min-width: 0; }
.hd-staff-row__name { font-family: var(--nd-display); font-weight: 600; font-size: 14px; color: var(--nd-ink); margin: 0; }
.hd-staff-row__role { font-size: 11px; color: var(--nd-ink-mute); margin: 2px 0; }
.hd-staff-row__email { font-size: 11px; color: var(--nd-ink-faint); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-staff-row__access {
  font-size: 10px; font-weight: 700; padding: 4px 8px;
  border-radius: var(--nd-r-pill); letter-spacing: .04em;
  flex-shrink: 0;
}
.hd-staff-row__access--owner   { background: var(--nd-coral-soft); color: var(--nd-coral-strong); }
.hd-staff-row__access--manager { background: #E4F1FB; color: #1B4E7A; }
.hd-staff-row__access--staff   { background: var(--nd-cream-deep); color: var(--nd-ink-mute); }

.hd-res-row {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.hd-res-row--pending { border-color: var(--nd-amber); }
.hd-res-row__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hd-res-row__guest { font-family: var(--nd-display); font-weight: 600; font-size: 14px; margin: 0; color: var(--nd-ink); }
.hd-res-row__badge {
  font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: var(--nd-r-pill); letter-spacing: .04em;
}
.hd-res-row__badge--pending   { background: #FFF1D6; color: #8A5800; }
.hd-res-row__badge--confirmed { background: #DCF8DB; color: #176B2A; }
.hd-res-row__badge--completed { background: var(--nd-cream-deep); color: var(--nd-ink-mute); }
.hd-res-row__room { font-size: 12px; color: var(--nd-ink-mute); margin: 0; }
.hd-res-row__total { font-size: 13px; color: var(--nd-ink); margin: 0; font-weight: 600; }
.hd-res-row__actions { display: flex; gap: 8px; margin-top: 4px; }
.hd-res-row__btn { flex: 1; padding: 8px 12px; font-size: 12px; }

/* ── Toast (theatre actions) ────────────────────────────────── */
.nd-toast {
  position: fixed;
  bottom: 110px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--nd-ink); color: #fff;
  padding: 10px 18px;
  border-radius: var(--nd-r-pill);
  font-size: 12px; font-weight: 500;
  box-shadow: var(--nd-shadow-md);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nd-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ═════════════════════════════════════════════════════════════════════
   PHASE 5 — Hotel onboarding · User auth (login/register)
   ═════════════════════════════════════════════════════════════════════ */

.onb-progress {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px;
  margin: 14px 0 22px;
  position: relative;
}
.onb-progress::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px;
  background: var(--nd-border); z-index: 0;
}
.onb-progress__step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1;
}
.onb-progress__step span {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--nd-cream-deep); color: var(--nd-ink-mute);
  border: 2px solid var(--nd-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.onb-progress__step label { font-size: 10px; color: var(--nd-ink-mute); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.onb-progress__step.is-active span { background: var(--nd-coral); color: #fff; border-color: var(--nd-coral); }
.onb-progress__step.is-active label { color: var(--nd-coral); }
.onb-progress__step.is-done span { background: var(--nd-green); color: #fff; border-color: var(--nd-green); }

.onb-form { display: block; }
.onb-step {
  border: 0; padding: 0; margin: 0 0 16px;
}
.onb-step__title {
  font-family: var(--nd-display); font-weight: 700; font-size: 18px;
  color: var(--nd-ink); padding: 0 0 12px;
  letter-spacing: -.01em;
}
.onb-step__hint { font-size: 12px; color: var(--nd-ink-mute); margin: 0 0 12px; line-height: 1.5; }

.onb-actions { display: flex; gap: 8px; margin-top: 10px; }
.onb-actions .btn { flex: 1; }
.onb-room-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.onb-room-mini input { padding: 10px 12px; font-size: 12px; }

.onb-checks { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.onb-check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-md);
  font-size: 13px; color: var(--nd-ink);
  cursor: pointer;
}
.onb-check input { width: 16px; height: 16px; accent-color: var(--nd-coral); }

.onb-contract {
  background: var(--nd-cream-deep);
  border-radius: var(--nd-r-md);
  padding: 14px;
  font-size: 13px; color: var(--nd-ink); line-height: 1.55;
  margin-bottom: 12px;
}
.onb-contract strong { color: var(--nd-coral); }

.onb-loyalty { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
.loyalty-add-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 16px;
  background: var(--nd-surface);
  border: 1px dashed var(--nd-border-strong);
  border-radius: var(--nd-r-md);
  cursor: pointer; text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.loyalty-add-tile:hover { background: var(--nd-cream); border-color: var(--nd-coral); }
.loyalty-add-tile__emoji { font-size: 22px; line-height: 1; }
.loyalty-add-tile__name { font-family: var(--nd-display); font-weight: 700; font-size: 14px; color: var(--nd-ink); margin-top: 4px; }
.loyalty-add-tile__sub { font-size: 11px; color: var(--nd-ink-mute); }

/* ── Auth screen (login/register chrome) ──────────────────── */
.auth-screen { padding: 8px 0 16px; }
.auth-screen__brand {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--nd-coral-soft); color: var(--nd-coral-strong);
  padding: 4px 12px; border-radius: var(--nd-r-pill);
  font-family: var(--nd-display); font-weight: 700; font-size: 13px;
  margin-bottom: 14px;
}
.auth-screen__title { font-family: var(--nd-display); font-weight: 700; font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.auth-screen__sub { font-size: 14px; color: var(--nd-ink-mute); margin: 0 0 18px; max-width: 32ch; }

.btn--google {
  background: #fff; color: var(--nd-ink);
  border: 1px solid var(--nd-border-strong);
  font-weight: 600;
}
.btn--google:hover { background: var(--nd-cream); }
.btn-google-glyph { display: inline-flex; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--nd-ink-faint); text-transform: uppercase; letter-spacing: .12em;
  margin: 14px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--nd-border);
}

.auth-footer {
  font-size: 13px; color: var(--nd-ink-mute); text-align: center; margin: 14px 0 0;
}
.link-btn {
  background: transparent; border: 0;
  color: var(--nd-coral); font-weight: 600; cursor: pointer;
  text-decoration: underline; padding: 0; font-size: inherit;
}

.auth-success { text-align: center; padding: 24px 0 8px; }
.auth-success__emoji { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.auth-success__title { font-family: var(--nd-display); font-weight: 700; font-size: 22px; margin: 0 0 6px; }
.auth-success__sub { font-size: 13px; color: var(--nd-ink-mute); margin: 0 0 18px; }

/* ═════════════════════════════════════════════════════════════════════
   PHASE 6 polish — Settings page list + toggle
   ═════════════════════════════════════════════════════════════════════ */

.settings-list {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  padding: 4px 14px;
  margin: 14px 0;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--nd-border);
}
.settings-row:last-child { border-bottom: 0; }
.settings-row__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.settings-row__name { font-size: 14px; font-weight: 600; color: var(--nd-ink); }
.settings-row__hint { font-size: 11px; color: var(--nd-ink-mute); margin-top: 2px; }

.settings-toggle {
  position: relative;
  display: inline-block;
  width: 42px; height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.settings-toggle input { display: none; }
.settings-toggle__slider {
  position: absolute; inset: 0;
  background: var(--nd-border-strong);
  border-radius: 24px;
  transition: background .2s ease;
}
.settings-toggle__slider::before {
  content: ""; position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.settings-toggle input:checked + .settings-toggle__slider { background: var(--nd-coral); }
.settings-toggle input:checked + .settings-toggle__slider::before { transform: translateX(18px); }

.settings-version {
  font-size: 10px; color: var(--nd-ink-faint);
  text-align: center;
  margin: 14px 0;
  letter-spacing: .04em;
}

/* ═════════════════════════════════════════════════════════════════════
   Save (heart) button — Saved-tab feature
   ═════════════════════════════════════════════════════════════════════ */

.save-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  border: 0; border-radius: 50%;
  color: var(--nd-ink);
  cursor: pointer;
  font-size: 20px; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: transform .12s ease, background .15s ease;
  z-index: 3;
}
.save-btn:hover { transform: scale(1.08); }
.save-btn.is-saved { color: var(--nd-coral); background: #fff; }
.save-btn.is-saved span { animation: heart-pop .25s ease; }
@keyframes heart-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.result-row__media .save-btn { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 16px; }
.deal-card__media .save-btn { top: 10px; right: auto; left: 10px; }

/* ═════════════════════════════════════════════════════════════════════
   Card "Book" CTA — explicit primary action on hotel cards
   ═════════════════════════════════════════════════════════════════════ */

.card-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px;
  background: var(--nd-coral); color: #fff;
  border: 0; border-radius: var(--nd-r-pill);
  padding: 8px 22px;
  font-family: var(--nd-ui); font-weight: 700; font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(232,72,85,.28);
  transition: background .15s ease, transform .12s ease;
  align-self: flex-start;
}
.card-cta:hover { background: var(--nd-coral-hover); transform: translateY(-1px); }
.card-cta--inline { margin: 0 0 0 auto; padding: 6px 14px; font-size: 11px; }

/* ═════════════════════════════════════════════════════════════════════
   Payment route — card on file + order summary
   ═════════════════════════════════════════════════════════════════════ */

.pay-card {
  position: relative;
  background: linear-gradient(135deg, #1a3a5f 0%, #0d2138 100%);
  color: #fff;
  border-radius: var(--nd-r-lg);
  padding: 20px;
  margin: 10px 0 8px;
  overflow: hidden;
  box-shadow: var(--nd-shadow-md);
}
.pay-card::before, .pay-card::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.pay-card::before { width: 140px; height: 140px; top: -40px; right: -30px; }
.pay-card::after  { width: 90px;  height: 90px;  bottom: -30px; left: -20px; }
.pay-card__brand {
  position: relative;
  font-family: var(--nd-display); font-weight: 800;
  font-size: 18px; letter-spacing: .2em;
}
.pay-card__chip {
  position: absolute; top: 18px; right: 20px;
  width: 36px; height: 26px; border-radius: 5px;
  background: linear-gradient(135deg, #C9A14C 0%, #8E6A2E 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.pay-card__number {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; letter-spacing: .15em;
  margin: 28px 0 18px;
}
.pay-card__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  position: relative;
}
.pay-card__row > div { display: flex; flex-direction: column; }
.pay-card__label {
  display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7; margin-bottom: 3px;
}
.pay-card__row strong { font-weight: 600; font-size: 13px; }

.pay-saved {
  font-size: 11px; color: var(--nd-ink-mute);
  margin: 6px 0 12px;
  font-style: italic;
}

/* ═════════════════════════════════════════════════════════════════════
   Confirmation timeline — clickable, expandable stage history
   ═════════════════════════════════════════════════════════════════════ */

.cf-timeline-hint { font-size: 11px; color: var(--nd-ink-mute); margin: 0 0 10px; }

.cf-stages {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column;
  position: relative;
}
.cf-stage { position: relative; }
.cf-stage:not(:last-child)::after {
  content: ""; position: absolute;
  left: 23px; top: 38px; bottom: -6px;
  width: 2px; background: var(--nd-green);
  z-index: 0;
}
.cf-stage__head {
  width: 100%;
  display: grid; grid-template-columns: 32px 1fr 18px;
  gap: 14px; align-items: center;
  background: transparent; border: 0; padding: 10px 4px;
  cursor: pointer; text-align: left;
  font-family: var(--nd-ui);
  border-radius: var(--nd-r-sm);
  transition: background .15s ease;
}
.cf-stage__head:hover { background: var(--nd-cream-deep); }
.cf-stage__bullet {
  position: relative; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--nd-green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.cf-stage[data-cf-stage="payment"] .cf-stage__bullet { background: #2B59C3; }
.cf-stage__head-body { min-width: 0; }
.cf-stage__label {
  font-family: var(--nd-display); font-weight: 600;
  font-size: 14px; color: var(--nd-ink);
  letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cf-stage__time { font-size: 11px; color: var(--nd-ink-mute); line-height: 1.4; }
.cf-stage__caret {
  font-size: 14px; color: var(--nd-ink-mute);
  transition: transform .2s ease;
}
.cf-stage.is-open .cf-stage__caret { transform: rotate(180deg); }
.cf-stage__detail {
  padding: 4px 8px 14px 60px;
  font-size: 13px; line-height: 1.55; color: var(--nd-ink);
  animation: fadeIn .2s ease;
}
.cf-stage__detail p { margin: 0; }
.cf-stage__detail strong { color: var(--nd-coral-strong); font-weight: 600; }

/* ═════════════════════════════════════════════════════════════════════
   Review variant of bk-stages — used on the confirmation screen.
   Same visual spine as the in-progress booking timeline, plus a
   tap-to-expand detail panel hung off each row.
   ═════════════════════════════════════════════════════════════════════ */

.bk-stages--review { margin: 8px 0 18px; }
.bk-stage--review {
  align-items: stretch;
  padding: 0;
}
/* Override default bk-stage padding so the row remains tight and the connector lines up */
.bk-stages--review .bk-stage { padding: 6px 0; }
/* Review-variant connectors render fully filled (every stage is done) — handled
   by the .is-done .bk-stage__connector-fill rule above. .bk-stage--blue rule
   above gives the payment-authorised row its blue→green gradient. */
.bk-stage--blue .bk-stage__bullet {
  background: #2B59C3 !important;
  border-color: #2B59C3 !important;
  color: #fff !important;
}
.bk-stage--review .bk-stage__bullet {
  background: var(--nd-green);
  border-color: var(--nd-green);
  color: #fff;
}
.bk-stage--review .bk-stage__check { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

.bk-stage__head-btn {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 6px 8px 6px 0;
  cursor: pointer;
  text-align: left;
  border-radius: var(--nd-r-sm);
  position: relative;
  transition: background .15s ease;
  display: block;
}
.bk-stage__head-btn:hover { background: var(--nd-cream-deep); }
.bk-stage__label-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.bk-stage__time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--nd-ink-mute);
  letter-spacing: .04em;
  white-space: nowrap;
}
.bk-stage__caret {
  position: absolute;
  top: 8px; right: 6px;
  font-size: 12px; color: var(--nd-ink-mute);
  transition: transform .2s ease;
}
.bk-stage.is-open .bk-stage__caret { transform: rotate(180deg); }

.bk-stage__detail {
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--nd-cream);
  border-radius: var(--nd-r-md);
  font-size: 12px; line-height: 1.55;
  color: var(--nd-ink);
  animation: fadeIn .2s ease;
}
.bk-stage__detail p { margin: 0; }
.bk-stage__detail strong { color: var(--nd-coral-strong); font-weight: 600; }

/* ═════════════════════════════════════════════════════════════════════
   Payment-captured modal — refund-policy three-row list
   ═════════════════════════════════════════════════════════════════════ */

.refund-list {
  list-style: none; padding: 0; margin: 0 0 18px;
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.refund-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--nd-cream);
  border-radius: var(--nd-r-md);
  font-size: 12px; line-height: 1.45;
}
.refund-list li strong { font-weight: 600; color: var(--nd-ink); }
.refund-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; flex-shrink: 0; font-weight: 700;
}
.refund-dot--ok   { background: #DCF8DB; color: #176B2A; }
.refund-dot--warn { background: #FFEFD0; color: #8A5800; }
.refund-dot--no   { background: var(--nd-coral-soft); color: var(--nd-coral); }

/* ═════════════════════════════════════════════════════════════════════
   Booking-stage upgrade variant — yellow bullet with ★ instead of green ✓
   Applies in both the in-progress flow (.bk-stages) and the confirmation
   review timeline (.bk-stages--review).
   ═════════════════════════════════════════════════════════════════════ */

.bk-stage--upgrade.is-active .bk-stage__bullet {
  background: #F5B935 !important;
  border-color: #F5B935 !important;
  color: #fff !important;
  box-shadow: 0 0 0 4px rgba(245,185,53,.20) !important;
}
.bk-stage--upgrade.is-done .bk-stage__bullet {
  background: #F5B935 !important;
  border-color: #F5B935 !important;
  color: #fff !important;
}
.bk-stage--upgrade.is-active .bk-stage__label,
.bk-stage--upgrade.is-done   .bk-stage__label {
  color: #8A5800;
}
.bk-stage--upgrade .bk-stage__check {
  font-size: 14px;
}
/* Yellow connector fill for the upgrade stage is handled by the connector
   rule earlier in the file (`.bk-stage--upgrade .bk-stage__connector-fill`). */
/* Spinner stroke against the yellow bullet — make it pop */
.bk-stage--upgrade.is-active .bk-stage__spinner {
  border-color: rgba(255,255,255,.45);
  border-top-color: #fff;
}

/* ═════════════════════════════════════════════════════════════════════
   Bill list inside the checkout modal
   ═════════════════════════════════════════════════════════════════════ */

.bill-list {
  list-style: none; padding: 14px 16px; margin: 0 0 18px;
  text-align: left;
  background: var(--nd-cream);
  border-radius: var(--nd-r-md);
}
.bill-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
  color: var(--nd-ink);
}
.bill-list li strong { font-family: var(--nd-ui); font-weight: 600; }
.bill-list__final {
  border-top: 1px solid var(--nd-border);
  margin-top: 6px;
  padding-top: 12px !important;
  font-weight: 700;
}
.bill-list__final span { font-size: 14px; }
.bill-list__final strong {
  color: var(--nd-coral);
  font-size: 20px !important;
  font-family: var(--nd-display) !important;
  font-weight: 700;
}
.bill-list__group-head {
  display: block !important;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--nd-ink-mute);
  border-top: 1px dashed var(--nd-border);
  margin-top: 6px;
  padding-top: 12px !important;
  padding-bottom: 2px !important;
}
.bill-item {
  display: inline-flex; align-items: center; gap: 8px;
}
.bill-item__icon { font-size: 14px; line-height: 1; }
.bill-item-free {
  color: var(--nd-green) !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
}
/* Bill can be tall — let the modal sheet scroll if it overflows the viewport */
.modal__sheet { max-height: 90vh; overflow-y: auto; }

/* ═════════════════════════════════════════════════════════════════════
   Inter-stage countdown — visible 8-second wait between deposit→checkin
   and checkin→checkout, with a coral progress bar and live second counter.
   ═════════════════════════════════════════════════════════════════════ */

.stage-countdown {
  margin: 16px 0 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--nd-cream-deep) 0%, #FFF2EE 100%);
  border: 1px solid rgba(232,72,85,.18);
  border-radius: var(--nd-r-lg);
}
.stage-countdown__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.stage-countdown__label {
  font-family: var(--nd-display);
  font-weight: 700; font-size: 14px;
  color: var(--nd-coral-strong);
  letter-spacing: -.005em;
}
.stage-countdown__time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; font-weight: 700; color: var(--nd-coral);
  letter-spacing: .04em;
  font-feature-settings: "tnum" 1;
}
.stage-countdown__sub {
  font-size: 11px; color: var(--nd-ink-mute);
  margin-bottom: 10px;
}
.stage-countdown__bar {
  height: 6px;
  background: rgba(232,72,85,.12);
  border-radius: 3px;
  overflow: hidden;
}
.stage-countdown__bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--nd-coral) 0%, var(--nd-coral-strong) 100%);
  border-radius: 3px;
}

/* ═════════════════════════════════════════════════════════════════════
   Inbox — list of messages with tap-to-expand-and-mark-read
   ═════════════════════════════════════════════════════════════════════ */

.inbox-list {
  list-style: none; padding: 0; margin: 12px 0 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.inbox-row {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-r-lg);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.inbox-row.is-unread { border-color: rgba(232,72,85,.35); box-shadow: 0 1px 6px rgba(232,72,85,.08); }
.inbox-row.is-open  { border-color: var(--nd-border-strong); }

.inbox-row__head {
  width: 100%;
  display: grid; grid-template-columns: 44px 1fr 12px;
  gap: 12px; align-items: flex-start;
  background: transparent;
  border: 0;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--nd-ui);
}
.inbox-row__head:hover { background: var(--nd-cream); }
.inbox-row__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nd-cream-deep);
  font-size: 18px;
  flex-shrink: 0;
}
.inbox-row__icon--deal     { background: var(--nd-coral-soft);  color: var(--nd-coral); }
.inbox-row__icon--booking  { background: #DCF8DB;               color: #176B2A; }
.inbox-row__icon--loyalty  { background: #FFEFD0;               color: #8A5800; }
.inbox-row__icon--system   { background: var(--nd-cream-deep);  color: var(--nd-ink); }

.inbox-row__body { min-width: 0; }
.inbox-row__head-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 2px;
}
.inbox-row__sender {
  font-family: var(--nd-display); font-weight: 600;
  font-size: 13px; color: var(--nd-ink);
  letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inbox-row.is-unread .inbox-row__sender { font-weight: 700; }
.inbox-row__time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--nd-ink-mute);
  letter-spacing: .04em; white-space: nowrap;
}
.inbox-row__subject {
  font-size: 13px; font-weight: 600;
  color: var(--nd-ink);
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inbox-row.is-unread .inbox-row__subject { color: var(--nd-coral-strong); }
.inbox-row__preview {
  font-size: 12px; color: var(--nd-ink-mute); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.inbox-row__unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nd-coral);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--nd-surface);
}
.inbox-row__detail {
  padding: 4px 14px 16px 70px;
  border-top: 1px dashed var(--nd-border);
  animation: fadeIn .2s ease;
}
.inbox-row__detail-body {
  font-size: 13px; line-height: 1.55; color: var(--nd-ink);
  margin: 12px 0 12px;
}
.inbox-row__cta {
  padding: 8px 18px; font-size: 12px;
}

/* ═════════════════════════════════════════════════════════════════════
   Auth gate (Google Sign-In splash — shown until the user is on the
   OAuth Consent Screen's Test Users list and has signed in).
   ═════════════════════════════════════════════════════════════════════ */

body.is-gated { overflow: hidden; }
body.is-gated .phone-stage { filter: blur(8px) saturate(.85); pointer-events: none; }

.auth-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(232,72,85,.10), transparent 60%),
    radial-gradient(1000px 500px at 90% 90%, rgba(44,154,111,.08), transparent 60%),
    linear-gradient(180deg, #E9E4DC 0%, #DDD7CD 100%);
  animation: gateFade .25s ease;
}
@keyframes gateFade { from { opacity: 0; } to { opacity: 1; } }

.auth-gate__card {
  background: #FFFFFF;
  padding: 40px 32px 28px;
  border-radius: 28px;
  max-width: 380px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.10);
  animation: gateRise .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes gateRise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.auth-gate__brand   { font-size: 52px; line-height: 1; margin-bottom: 6px; }
.auth-gate__title   {
  font-family: 'Fraunces', 'Instrument Serif', Georgia, serif;
  font-weight: 700; font-size: 34px;
  margin: 0 0 4px;
  color: #222222;
  letter-spacing: -.02em;
}
.auth-gate__sub     {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px; color: #717171; margin: 0 0 28px;
  letter-spacing: .02em;
}
.auth-gate__intro   {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px; color: #222222; margin: 0 0 20px;
  line-height: 1.55; max-width: 28ch; margin-left: auto; margin-right: auto;
}
#g-signin-btn {
  display: flex; justify-content: center;
  margin: 18px 0 6px;
  min-height: 44px;
}
.auth-gate__error {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px; color: #B83A48;
  background: #FCE9EB;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 14px 0 0;
  text-align: left;
  line-height: 1.45;
  border: 1px solid rgba(232,72,85,.18);
}
.auth-gate__foot {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px; color: #B0B0B0; margin: 28px 0 0;
  letter-spacing: .08em; text-transform: uppercase;
}
