/* ============ Perfect Health — Massage Chair Booking ============ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f1ede5;
  --surface: #ffffff;
  --ink: #1e2420;
  --ink-soft: #5b6660;
  --ink-faint: #98a29b;
  --sage: #3e6b52;
  --sage-deep: #2e523e;
  --sage-tint: #e4ede7;
  --gold: #c9a86a;
  --danger: #b6473b;
  --line: rgba(30, 36, 32, 0.08);
  --radius-lg: 1.75rem;
  --radius-md: 1.125rem;
  --radius-sm: 0.75rem;
  --shadow-soft: 0 20px 60px -24px rgba(30, 36, 32, 0.18), 0 4px 16px -8px rgba(30, 36, 32, 0.08);
  --shadow-lift: 0 30px 80px -30px rgba(30, 36, 32, 0.28), 0 8px 24px -12px rgba(30, 36, 32, 0.12);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* the hidden attribute always wins, even against display rules on the element */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 1rem 0;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 40px -18px rgba(30, 36, 32, 0.25);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.nav-link:hover { color: var(--ink); background: rgba(30, 36, 32, 0.05); }
.nav-link.active { background: var(--ink); color: #fff; }
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
}
.nav-badge[hidden] { display: none; }

/* ============ Views ============ */
.view { display: none; }
.view.active { display: block; animation: viewIn 0.7s var(--ease); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Hero ============ */
.hero { position: relative; padding: 6.5rem 1.5rem 5rem; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(540px, 82%);
  aspect-ratio: 977 / 918;
  transform: translate(-50%, -50%);
  background: url("assets/satori-chair.png") center / contain no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 55%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--sage);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero-sub {
  max-width: 560px;
  margin: 0 auto 2.2rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 3.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.1rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.meta-item { text-align: left; }
.meta-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); }
.meta-value { font-weight: 600; font-size: 0.95rem; }
.meta-divider { width: 1px; height: 2.2rem; background: var(--line); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), opacity 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(62, 107, 82, 0.6);
}
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.4; pointer-events: none; }
.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  transition: transform 0.5s var(--ease);
}
.btn-primary:hover .btn-icon { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(30, 36, 32, 0.16);
}
.btn-ghost:hover { background: rgba(30, 36, 32, 0.05); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9c382e; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* Emphasised primary CTA: periodic sheen sweep + breathing glow (GPU-safe) */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 18px 52px -10px rgba(62, 107, 82, 0.9);
  opacity: 0.35;
  z-index: -1;
  animation: ctaGlow 2.8s var(--ease) infinite;
}
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.38) 50%, transparent 80%);
  transform: translateX(-160%) skewX(-20deg);
  animation: ctaShine 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes ctaShine {
  0%   { transform: translateX(-160%) skewX(-20deg); }
  45%  { transform: translateX(320%) skewX(-20deg); }
  100% { transform: translateX(320%) skewX(-20deg); }
}
@keyframes ctaGlow {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-shine::before, .btn-shine::after { animation: none; }
}

/* ============ Sections ============ */
.section { padding: 5.5rem 1.5rem; max-width: 1080px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: var(--bg-alt);
}
.section-alt .split { max-width: 1080px; margin: 0 auto; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--ink-soft); }

/* ============ Service cards ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.service-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  text-align: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service-card-inner {
  background: var(--surface);
  border-radius: calc(var(--radius-lg) - 0.4rem);
  padding: 1.6rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-emoji { font-size: 1.7rem; }
.service-name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; }
.service-desc { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.service-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.6rem; }
.service-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--sage); }
.service-mins {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* selectable variant (booking step 1) */
.selectable .service-card { cursor: pointer; background: var(--bg-alt); border: 1px solid var(--line); }
.selectable .service-card.selected {
  background: var(--sage);
  border-color: var(--sage);
  box-shadow: var(--shadow-lift);
}
.selectable .service-card.selected .service-card-inner { background: var(--sage-tint); }
.selectable .service-card .service-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.selectable .service-card.selected .service-check { opacity: 1; transform: scale(1); }

/* ============ Meet the chair ============ */
.chair-section { max-width: 1120px; }
.chair-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.chair-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.8rem 0 1rem; }
.new-badge {
  display: inline-block;
  vertical-align: middle;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-right: 0.5rem;
}
.chair-sub { color: var(--ink-soft); margin-bottom: 1.4rem; }
.chair-benefits { list-style: none; margin-bottom: 1.8rem; display: grid; gap: 0.45rem; }
.chair-benefits li { padding-left: 1.5rem; position: relative; font-size: 0.95rem; }
.chair-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* the interactive stage: hover reveals feature icons around the chair */
.chair-stage { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.chair-img { width: 100%; height: auto; position: relative; z-index: 2; transition: filter 0.6s var(--ease); }
.chair-stage::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 90px;
  background: radial-gradient(ellipse at center, rgba(30, 36, 32, 0.18) 0%, transparent 70%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}
.chair-stage:hover .chair-img { animation: chairGlow 3s ease-in-out infinite; }
@keyframes chairGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(62, 107, 82, 0)); }
  50%      { filter: drop-shadow(0 0 22px rgba(62, 107, 82, 0.35)); }
}

.chair-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(62, 107, 82, 0.25);
  box-shadow: 0 6px 18px -6px rgba(30, 36, 32, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  transition: all 0.5s var(--ease);
  cursor: default;
  z-index: 2;
  pointer-events: none; /* don't block the image while hidden */
}
.chair-stage:hover .chair-icon { pointer-events: auto; }
.chair-icon:hover { z-index: 99; }
/* tooltip bubble — default: above the icon, centered */
.chair-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 36, 32, 0.94);
  color: #fff;
  padding: 7px 11px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  border-radius: 8px;
  width: max-content;
  max-width: 190px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 60;
}
.chair-icon:hover::after { opacity: 1; }

/* Top-row icons (arc crest) — flip the tooltip BELOW so it never clips off the top */
.i8::after, .i9::after, .i10::after, .i11::after, .i12::after, .i13::after, .i14::after {
  bottom: auto;
  top: calc(100% + 10px);
}
/* Right-edge icons — anchor the tooltip's right side so it stays on screen */
.i12::after, .i13::after, .i14::after {
  left: auto;
  right: 0;
  transform: none;
  text-align: right;
}
/* Left-edge icons — anchor the tooltip's left side */
.i1::after, .i2::after, .i3::after {
  left: 0;
  transform: none;
  text-align: left;
}

/* arc positions (same curve as the brand site) — revealed on stage hover */
.chair-stage:hover .chair-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.chair-stage:hover .i1  { top: 84%; left: -2%; }
.chair-stage:hover .i2  { top: 72%; left: -1%; }
.chair-stage:hover .i3  { top: 61%; left: 2%; }
.chair-stage:hover .i4  { top: 51%; left: 6%; }
.chair-stage:hover .i5  { top: 42%; left: 12%; }
.chair-stage:hover .i6  { top: 32%; left: 19%; }
.chair-stage:hover .i7  { top: 24%; left: 26%; }
.chair-stage:hover .i8  { top: 17%; left: 34%; }
.chair-stage:hover .i9  { top: 11%; left: 44%; }
.chair-stage:hover .i10 { top: 7%;  left: 55%; }
.chair-stage:hover .i11 { top: 3%;  left: 65%; }
.chair-stage:hover .i12 { top: 2%;  left: 75%; }
.chair-stage:hover .i13 { top: 2%;  left: 86%; }
.chair-stage:hover .i14 { top: 3%;  left: 97%; }

/* feature video rows */
.chair-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3.5rem;
  margin: 0 auto 3.5rem;
  max-width: 960px;
}
.chair-feature.reverse .feature-video { order: 2; }
.chair-feature:last-child { margin-bottom: 0; }
.feature-video { min-width: 0; }
.feature-video video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lift);
  display: block;
  background: var(--bg-alt);
}
.feature-copy h3 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin-bottom: 0.8rem; }
.feature-copy p { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }

/* tablet & down: stack text over chair, videos become single column */
@media (max-width: 900px) {
  .chair-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .chair-text { text-align: center; }
  .chair-benefits { display: inline-grid; text-align: left; }
  .chair-text .btn { margin: 0 auto; }
  .chair-stage { max-width: 480px; }

  .chair-feature { grid-template-columns: 1fr; gap: 1.5rem; max-width: 520px; text-align: center; }
  .chair-feature.reverse .feature-video { order: 0; }

  /* no hover on touch — reveal the icons permanently along the arc */
  .chair-icon { opacity: 1; transform: translate(-50%, -50%) scale(0.8); pointer-events: auto; }
  .i1  { top: 84%; left: 0%; }
  .i2  { top: 72%; left: 0%; }
  .i3  { top: 61%; left: 3%; }
  .i4  { top: 51%; left: 7%; }
  .i5  { top: 42%; left: 13%; }
  .i6  { top: 32%; left: 20%; }
  .i7  { top: 24%; left: 27%; }
  .i8  { top: 17%; left: 35%; }
  .i9  { top: 11%; left: 45%; }
  .i10 { top: 7%;  left: 55%; }
  .i11 { top: 3%;  left: 65%; }
  .i12 { top: 2%;  left: 75%; }
  .i13 { top: 2%;  left: 85%; }
  .i14 { top: 3%;  left: 95%; }
}

/* phones: shrink the badges so the arc fits, hide hover tooltips (no hover) */
@media (max-width: 560px) {
  .chair-icon { width: 34px; height: 34px; font-size: 0.9rem; transform: translate(-50%, -50%) scale(1); }
  .chair-icon::after, .chair-icon::before { display: none; }
  .chair-stage { max-width: 400px; }
}

/* ============ Split / visit ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 0;
}
.split-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.address {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.6rem;
  color: var(--ink);
}
.visit-rows { display: flex; flex-direction: column; gap: 1rem; }
.visit-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
}
.visit-icon { font-size: 1.2rem; line-height: 1.5; }
.split-card { display: flex; justify-content: center; }
.map-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 25%, rgba(62, 107, 82, 0.16), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(201, 168, 106, 0.18), transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1.5rem;
}
.map-pin { font-size: 2.4rem; animation: bob 3s var(--ease) infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.map-label { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.map-sub { color: var(--ink-soft); font-size: 0.9rem; }

/* ============ CTA band ============ */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.6rem; }
.cta-band p { color: var(--ink-soft); margin-bottom: 1.8rem; }

/* ============ Booking flow ============ */
.book-wrap { max-width: 860px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.book-head { text-align: center; margin-bottom: 2.5rem; }
.book-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

.stepper {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.step-num {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.78rem;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.step.active { color: var(--ink); border-color: var(--sage); }
.step.active .step-num { background: var(--sage); color: #fff; }
.step.done { color: var(--sage); }
.step.done .step-num { background: var(--sage-tint); color: var(--sage); }

.book-step { display: none; }
.book-step.active { display: block; animation: viewIn 0.6s var(--ease); }

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

/* ============ Panels ============ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}
.panel-title { font-size: 1.05rem; margin-bottom: 1.1rem; }
.panel-hint { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--ink-faint); margin-left: 0.4rem; }

.datetime-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem; align-items: start; }

/* Date strip */
.date-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.3rem, 1fr)); gap: 0.5rem; }
.date-chip {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.3rem;
  text-align: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.date-chip:hover { transform: translateY(-2px); border-color: var(--sage); }
.date-chip .d-dow { display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }
.date-chip .d-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.date-chip .d-mon { display: block; font-size: 0.7rem; color: var(--ink-soft); }
.date-chip.selected { background: var(--sage); border-color: var(--sage); }
.date-chip.selected .d-dow, .date-chip.selected .d-num, .date-chip.selected .d-mon { color: #fff; }

/* The two shortcuts above the slot grid: earliest free time, or an exact time */
.time-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.pick-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pick-box[hidden] { display: none; }
.pick-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.eb-flash { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage); }
.eb-time { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.eb-go { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }

.earliest-box { border-color: var(--sage); background: var(--sage-tint); }
.earliest-box.selected { background: var(--sage); border-color: var(--sage-deep); color: #fff; }
.earliest-box.selected .eb-flash,
.earliest-box.selected .eb-go { color: rgba(255, 255, 255, 0.85); }

.exact-box .eb-flash { color: #8a6f3d; }
.exact-box.open { border-color: #c9a86a; background: rgba(201, 168, 106, 0.12); }

.exact-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.exact-panel[hidden] { display: none; }
.exact-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.exact-row input[type="time"] {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.exact-row input[type="time"]:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.exact-msg { font-size: 0.85rem; color: var(--ink-soft); }
.exact-msg.ok { color: var(--sage-deep); font-weight: 600; }
.exact-msg.err { color: #b6473b; font-weight: 600; }

/* Slot grid */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 0.5rem; min-height: 4rem; }
.slot {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.slot:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--sage); }
.slot.selected { background: var(--sage); border-color: var(--sage); color: #fff; }
.slot:disabled {
  background: repeating-linear-gradient(-45deg, var(--bg-alt), var(--bg-alt) 6px, #e9e4da 6px, #e9e4da 12px);
  color: var(--ink-faint);
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.slot-left { font-size: 0.68rem; font-weight: 600; color: #8a6f3d; letter-spacing: 0.02em; }
.slot.selected .slot-left { color: rgba(255, 255, 255, 0.85); }
.slot-empty { grid-column: 1 / -1; color: var(--ink-faint); font-size: 0.9rem; padding: 1rem 0; text-align: center; }
.slot-legend { margin-top: 1rem; font-size: 0.78rem; color: var(--ink-faint); display: flex; align-items: center; gap: 0.45rem; }
.legend-dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 4px; border: 1px solid var(--line); }
.legend-dot.free { background: var(--bg); }
.legend-dot.busy { background: repeating-linear-gradient(-45deg, var(--bg-alt), var(--bg-alt) 3px, #e0dacd 3px, #e0dacd 6px); margin-left: 1rem; }

/* ============ Chair picker (1 or 2 chairs, each with its own session) ============ */
.chair-pick {
  margin-bottom: 2rem;
  padding: 1.6rem 1.6rem 1.8rem;
  background: var(--sage-tint);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  text-align: center;
}
.chair-pick-title { font-size: 1.45rem; margin-bottom: 0.3rem; }
.chair-pick-sub { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.chair-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 34rem;
  margin: 0 auto;
}
.chair-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.chair-btn:hover { border-color: var(--sage); transform: translateY(-2px); }
.chair-btn.selected { background: var(--sage); border-color: var(--sage-deep); color: #fff; }
.chair-btn-icon { font-size: 1.7rem; line-height: 1; }
.chair-btn-name { font-size: 1.05rem; font-weight: 700; }
.chair-btn-sub { font-size: 0.82rem; color: var(--ink-soft); }
.chair-btn.selected .chair-btn-sub { color: rgba(255, 255, 255, 0.85); }

.chair-grid-title { font-size: 1.05rem; margin-bottom: 0.7rem; }
.chair2-wrap { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.chair2-hint { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.9rem; }

/* ============ Form ============ */
.form-panel { display: flex; flex-direction: column; gap: 1.2rem; max-width: 560px; margin: 0 auto; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.req { color: var(--danger); }
.opt { color: var(--ink-faint); font-weight: 500; font-size: 0.8rem; }
.form-row input, .form-row textarea {
  border: 1px solid rgba(30, 36, 32, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(62, 107, 82, 0.14);
}
.form-row input.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.8rem; min-height: 1rem; }

/* ============ Review & success ============ */
.review-panel { max-width: 560px; margin: 0 auto; }
.review-title { font-size: 1.1rem; margin-bottom: 1.2rem; }
.review-rows { display: flex; flex-direction: column; }
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.review-row:last-child { border-bottom: none; }
.review-row .rk { color: var(--ink-soft); }
.review-row .rv { font-weight: 600; text-align: right; }
.review-total { font-family: var(--font-display); font-size: 1.15rem; }
.review-total .rv { color: var(--sage); font-size: 1.3rem; }

.success-panel { text-align: center; max-width: 560px; margin: 0 auto; padding: 2.6rem 2rem; }
.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sage-tint);
  color: var(--sage);
  font-size: 1.8rem;
  animation: pop 0.6s var(--ease);
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-panel h3 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.success-code { font-size: 1.05rem; margin-bottom: 0.8rem; }
.success-code strong { color: var(--sage); letter-spacing: 0.08em; }
.success-detail { color: var(--ink-soft); margin-bottom: 1.2rem; }
.success-note { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.8rem; }
.success-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ============ My bookings ============ */
.booking-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}
.booking-card.past { opacity: 0.55; }
.bk-main { flex: 1; min-width: 220px; }
.bk-code { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }
.bk-service { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.bk-when { color: var(--ink-soft); font-size: 0.92rem; }
.bk-who { color: var(--ink-faint); font-size: 0.85rem; }
.bk-side { display: flex; align-items: center; gap: 1rem; }
.bk-price { font-family: var(--font-display); font-weight: 700; color: var(--sage); font-size: 1.15rem; }
.bk-cancel {
  border: 1px solid rgba(182, 71, 59, 0.3);
  background: transparent;
  color: var(--danger);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.35s var(--ease);
}
.bk-cancel:hover { background: rgba(182, 71, 59, 0.08); }
.bk-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-faint);
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface);
  border: 1px dashed rgba(30, 36, 32, 0.18);
  border-radius: var(--radius-lg);
}
.empty-state .empty-emoji { font-size: 2.4rem; margin-bottom: 0.8rem; }
.empty-state h3 { margin-bottom: 0.4rem; }
.empty-state p { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* ============ Admin ============ */
/* wider container so the data tables fit without horizontal scrolling */
.staff-wrap { max-width: min(1280px, 96vw); padding-left: 1.25rem; padding-right: 1.25rem; }
.pin-panel {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 2.6rem 2rem;
}
.pin-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.pin-panel h3 { margin-bottom: 0.4rem; }
.pin-hint { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.4rem; }
#pinForm { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
#pinInput {
  border: 1px solid rgba(30, 36, 32, 0.16);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-align: center;
  width: 10rem;
  background: var(--bg);
}
#pinInput:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(62, 107, 82, 0.14); }
.pin-panel .field-error { display: block; margin-top: 0.8rem; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--sage); }
.stat-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }

/* Earnings analytics */
.analytics-panel { margin-bottom: 1.6rem; }
.analytics-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.analytics-head .panel-title { margin-bottom: 0; }
.period-tabs { display: flex; gap: 0.3rem; background: var(--bg-alt); border-radius: 999px; padding: 0.25rem; }
.period-tabs button {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.period-tabs button.active { background: var(--sage); color: #fff; }
.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 180px;
  padding: 0.5rem 0.25rem 0;
}
.chart .col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
}
.chart .bar {
  width: 100%;
  max-width: 52px;
  min-height: 3px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--sage), var(--sage-deep));
  transition: height 0.6s var(--ease);
}
.bar-val { font-size: 0.68rem; font-weight: 700; color: var(--sage); white-space: nowrap; }
.bar-label { font-size: 0.68rem; font-weight: 600; color: var(--ink-faint); white-space: nowrap; }
.analytics-totals {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.analytics-totals strong { color: var(--ink); }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.members-toolbar { margin-top: 2rem; gap: 1rem; flex-wrap: wrap; }
.member-search {
  border: 1px solid rgba(30, 36, 32, 0.16);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--ink);
  min-width: 240px;
}
.member-search:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(62, 107, 82, 0.12); }
.btn-tiny { padding: 0.4rem 0.9rem; font-size: 0.82rem; margin-bottom: 0.4rem; }
.modal-wide { max-width: 460px; }
.card-in-modal { box-shadow: none; border: none; padding: 0; margin-top: 1rem; text-align: center; }
.card-in-modal .stamp-grid { grid-template-columns: repeat(4, minmax(0, 66px)); }
.card-adjust { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.card-adjust h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 0.5rem; }
.adjust-quick { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.7rem 0; }
.adjust-quick .btn-tiny { margin-bottom: 0; }
.adjust-row { display: flex; gap: 0.6rem; }
.adjust-row input {
  flex: 1;
  border: 1px solid rgba(30, 36, 32, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
}
.adjust-row input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(62, 107, 82, 0.12); }

/* Insights */
.insight-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.insight-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.insight-block h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 0.9rem; }
.mix-row { display: grid; grid-template-columns: minmax(110px, auto) 1fr minmax(90px, auto); align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; font-size: 0.85rem; }
.mix-label { font-weight: 600; white-space: nowrap; }
.mix-track { background: var(--bg-alt); border-radius: 999px; height: 0.6rem; overflow: hidden; }
.mix-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sage), var(--sage-deep)); transition: width 0.6s var(--ease); }
.mix-val { color: var(--ink-soft); text-align: right; white-space: nowrap; font-size: 0.8rem; }
.insight-empty { color: var(--ink-faint); font-size: 0.85rem; }
@media (max-width: 700px) {
  .insight-lists { grid-template-columns: 1fr; }
}
.admin-table-wrap { padding: 0.5rem; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
.admin-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.row-past { opacity: 0.5; }
.cell-code { font-weight: 700; letter-spacing: 0.06em; color: var(--gold); font-size: 0.78rem; white-space: nowrap; }
.cell-sub { color: var(--ink-soft); font-size: 0.82rem; }
.cell-notes { max-width: 200px; color: var(--ink-soft); }
.tag-up { background: var(--sage-tint); color: var(--sage); }
.tag-cancelled { background: rgba(182, 71, 59, 0.1); color: var(--danger); }
.tag-live { background: rgba(201, 168, 106, 0.18); color: #8a6f3d; animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.row-live { background: rgba(201, 168, 106, 0.06); }
.cell-actions { white-space: nowrap; }
.cell-actions > * { margin-left: 0.35rem; }
.bk-action {
  border: 1px solid rgba(30, 36, 32, 0.16);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.bk-action:hover { background: rgba(30, 36, 32, 0.05); color: var(--ink); }
.bk-del { padding: 0.45rem 0.7rem; }
.bk-del:hover { background: rgba(182, 71, 59, 0.08); color: var(--danger); border-color: rgba(182, 71, 59, 0.3); }
.edit-note { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.modal .form-row { margin-bottom: 0.9rem; }
.modal select, .modal input[type="date"] {
  border: 1px solid rgba(30, 36, 32, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.admin-empty { text-align: center; color: var(--ink-faint); padding: 2rem !important; }

.privacy-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  background: var(--sage-tint);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  line-height: 1.5;
}

/* ============ Account & loyalty ============ */
.auth-panel .btn { align-self: flex-start; }
.auth-alt { font-size: 0.9rem; color: var(--ink-soft); }
.auth-alt a { font-weight: 600; }
.register-sub { color: var(--ink-soft); margin-top: 0.6rem; }

/* PIN field with show/hide toggle */
.pin-wrap { position: relative; }
.pin-wrap input { width: 100%; padding-right: 3rem; }
.eye {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1.15rem;
  padding: 0.35rem;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.3s var(--ease);
}
.eye:hover { background: rgba(30, 36, 32, 0.06); }

.account-head-panel { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.account-head-panel h3 { font-size: 1.4rem; }
.acc-sub { color: var(--ink-soft); font-size: 0.9rem; }

.stamp-panel { text-align: center; }
.stamp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.4rem; }
.stamp-count { font-family: var(--font-display); font-weight: 700; color: var(--sage); font-size: 1.1rem; }
.stamp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 0.9rem; justify-content: center; margin-bottom: 1.4rem; }
.stamp {
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px dashed rgba(30, 36, 32, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--bg);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.stamp.filled { border: 2px solid var(--sage); background: var(--sage-tint); }
.stamp.partial {
  border: 2px solid var(--sage);
  /* solid sage slice for the earned portion, light track for the rest */
  background: conic-gradient(var(--sage) calc(var(--p) * 1%), #eaf1ea 0);
}
.stamp-min {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}
.stamp-hint { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.2rem; }
.stamp-actions { margin-bottom: 1.2rem; }
.stamp-rule { font-size: 0.8rem; color: var(--ink-faint); border-top: 1px dashed var(--line); padding-top: 1rem; }

.reward-banner { background: var(--sage-tint); color: var(--sage-deep); border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.was-price { color: var(--ink-faint); font-weight: 400; margin-right: 0.4rem; }
/* ============ Staff day schedule ============ */
.sched-nav { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.sched-nav input[type="date"] {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--ink);
}
.sched-head, .sched-body { display: grid; grid-template-columns: 4.5rem 1fr 1fr; gap: 0.5rem; }
.sched-head {
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}
.sched-hours { position: relative; }
.sched-hour {
  position: absolute;
  right: 0.5rem;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.sched-line {
  position: absolute;
  left: 4.6rem;
  right: -200%;
  border-top: 1px dashed var(--line);
  pointer-events: none;
}
.sched-lane {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sched-free {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.sched-block {
  position: absolute;
  left: 3px;
  right: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--sage-deep);
  border-radius: var(--radius-sm);
  background: var(--sage);
  color: #fff;
  text-align: left;
  line-height: 1.15;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.sched-block:hover { transform: translateX(2px); }
.sched-block.past { background: #b6b1a6; border-color: #9d988c; }
.sched-block.live { background: var(--sage-deep); box-shadow: 0 0 0 2px rgba(201, 168, 106, 0.5); }
.sb-time { font-size: 0.72rem; font-weight: 700; }
.sb-who { font-size: 0.78rem; font-weight: 600; }
.sb-svc { font-size: 0.72rem; opacity: 0.85; }

.tag-reward { background: rgba(201, 168, 106, 0.18); color: #8a6f3d; }
.tag-chairs { background: var(--sage-tint); color: var(--sage-deep); margin-left: 0.35rem; }
.cell-service { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.price-pill {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}
.price-pill.free { background: #8a6f3d; }
.row-past .price-pill { opacity: 0.75; }

.chairs-used { color: var(--ink-faint); }
.chairs-used.full { color: #8a6f3d; font-weight: 600; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 3.5rem 1.5rem 1.5rem; margin-top: 2rem; }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand { color: #fff; margin-bottom: 0.5rem; }
.footer-col strong { color: #fff; display: block; margin-bottom: 0.5rem; }
.footer-copy { text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.4rem; max-width: 1080px; margin: 0 auto; }
.footer-staff {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-decoration: underline;
  transition: color 0.35s var(--ease);
}
.footer-staff:hover { color: rgba(255, 255, 255, 0.75); }

/* ============ Modal & toast ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 24, 21, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.modal-backdrop[hidden] { display: none; }
.toast[hidden] { display: none; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lift);
  animation: pop 0.45s var(--ease);
}
.modal h3 { margin-bottom: 0.6rem; }
.modal p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.7rem; flex-wrap: wrap; }

.toast {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  animation: toastIn 0.5s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .datetime-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 1rem 3.5rem; }
  .section { padding: 3.8rem 1rem; }
  .meta-divider { display: none; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 0.5rem 0.5rem 0.5rem 0.85rem; }
  .brand-text { display: none; }
  .nav-link { padding: 0.5rem 0.7rem; font-size: 0.85rem; }
  .step-label { display: none; }
  .step { padding: 0.45rem 0.6rem; }
  .step-actions { flex-direction: column-reverse; align-items: stretch; }
  .step-actions .btn { justify-content: center; }
}
