/* =========================================================
   EZCheckedIn – Customer QR page (Version A)
   Mobile-first. One stylesheet for every page.
   ========================================================= */

:root {
  /* Colors live in theme.css (one block per color scheme). */
  --white: #FFFFFF;

  --radius-tile: 18px;
  --radius-card: 22px;
  --radius-input: 14px;
  --radius-pill: 999px;

  --gutter: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.4;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- App shell ---------- */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100dvh - 48px); border-radius: 28px; box-shadow: 0 10px 40px rgba(var(--ink-rgb),0.08); overflow: hidden; }
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px var(--gutter) 20px;
}
.page--center { text-align: center; }
.page--roomy { gap: 24px; padding-top: 24px; }

/* ---------- Home header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  min-height: 72px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.salon {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.salon__name {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 30px; line-height: 1.1; letter-spacing: -1px;
}
.salon__sub {
  font-size: 13px; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Size tiers, chosen by app.js after measuring the real text width */
.topbar[data-name-size="md"] .salon__name { font-size: 21px; line-height: 1.15; letter-spacing: -0.5px; }
.topbar[data-name-size="sm"] .salon__name {
  font-size: 20px; line-height: 1.15; letter-spacing: -0.4px;
  white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
/* Phone: full pill on short names, round icon otherwise */
.topbar .call-pill { display: inline-flex; }
.topbar .call-icon { display: none; }
.topbar[data-name-size="md"] .call-pill,
.topbar[data-name-size="sm"] .call-pill { display: none; }
.topbar[data-name-size="md"] .call-icon,
.topbar[data-name-size="sm"] .call-icon { display: inline-flex; }

.icon-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: none; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  cursor: pointer; text-decoration: none;
}
.icon-btn--solid { background: var(--brand); color: var(--white); }
.icon-btn--solid:hover { color: var(--white); background: var(--brand-dark); }
.call-pill {
  flex-shrink: 0;
  align-items: center; gap: 8px;
  height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--brand); color: var(--white);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.call-pill:hover { color: var(--white); background: var(--brand-dark); }

/* ---------- Inner page header ---------- */
.appbar {
  position: sticky; top: 0; z-index: 10;
  height: 64px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.appbar__back {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand); text-decoration: none;
  background: none; border: none; padding: 0; cursor: pointer;
}
.appbar__title {
  flex: 1; min-width: 0; margin: 0;
  text-align: center; font-weight: 800; color: var(--brand);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 24px; letter-spacing: -0.5px;
}
.appbar[data-name-size="md"] .appbar__title { font-size: 19px; letter-spacing: -0.3px; }
.appbar[data-name-size="sm"] .appbar__title {
  font-size: 17px; line-height: 1.15; letter-spacing: -0.2px; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.appbar__spacer { flex-shrink: 0; width: 44px; }

/* ---------- Type ---------- */
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.eyebrow--brand { color: var(--brand-ink); }
.h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.h1--xl { font-size: 30px; letter-spacing: -0.8px; }
.lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 20px;
  border: none; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--white);
  font-size: 17px; font-weight: 700; text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: var(--white); }
.btn--secondary { background: var(--grey-btn); color: var(--ink); }
.btn--secondary:hover { background: var(--grey-btn-hover); color: var(--ink); }
.btn--outline { background: var(--white); color: var(--brand); border: 1.5px solid var(--brand); }
.btn--outline:hover { background: var(--brand-soft); color: var(--brand); }
.btn--text { min-height: 44px; background: none; color: var(--brand); font-size: 15px; font-weight: 600; }
.btn--text:hover { background: none; color: var(--brand-dark); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Bottom action area: stays at the bottom of the screen */
.actions {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto;
  padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
}
.actions--plain { border-top: none; }
.actions__note { text-align: center; font-size: 14px; color: var(--body); }

/* ---------- Home ---------- */
.greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.greeting__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.greeting__hello { font-size: 14px; font-weight: 500; color: var(--muted); }
.greeting__meta { flex-shrink: 0; text-align: right; font-size: 13px; color: var(--muted); }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 100px; padding: 12px 6px;
  border-radius: var(--radius-tile);
  background: var(--brand-soft); color: var(--brand);
  text-decoration: none; text-align: center;
}
.tile:hover { background: var(--brand-tint); color: var(--brand); }
.tile__label { font-size: 14px; font-weight: 600; color: var(--ink); }
/* When the grid has 7 tiles the last one sits in the middle column */
.tile-grid > .tile:last-child:nth-child(3n + 1) { grid-column: 2; }

.home-footer { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-align: center; }
.home-footer a { font-weight: 600; text-decoration: none; }

/* ---------- Slogan slider ---------- */
.slider {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 7 / 4;
  background: var(--slide-1);
  color: var(--white);
}
.slider__track { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.5s ease;
  background-color: var(--slide-color, var(--slide-1));
  background-size: cover; background-position: center;
}
.slide.is-active { opacity: 1; }
.slide:nth-child(3n+1) { --slide-color: var(--slide-1); }
.slide:nth-child(3n+2) { --slide-color: var(--slide-2); }
.slide:nth-child(3n)   { --slide-color: var(--slide-3); }
.slide::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: linear-gradient(to top, rgba(26,10,18,0.78), rgba(26,10,18,0));
}
.slide__text {
  position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 34px;
  margin: 0; font-size: clamp(20px, 6vw, 25px); font-weight: 800; line-height: 1.15; letter-spacing: -0.5px;
}
.slider__bar {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600;
}
.slider__dots { display: flex; gap: 4px; }
.slider__dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 4px;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: width 0.25s ease;
}
.slider__dot[aria-current="true"] { width: 18px; background: var(--white); }
/* Larger tap area for the dots without changing how they look */
.slider__dot { position: relative; }
.slider__dot::before { content: ""; position: absolute; inset: -14px -3px; }

/* ---------- Bottom sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(var(--ink-rgb),0.45);
}
.sheet__panel {
  width: 100%; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--white);
  max-height: 92dvh; overflow-y: auto;
}
.sheet__handle { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--handle); }
.sheet__title { margin: 20px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.sheet__text { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.sheet__steps { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.sheet__step { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.4; }
.sheet__step-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.sheet__actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
body.has-sheet { overflow: hidden; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 600; }
.field__hint { font-weight: 400; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--brand-line); border-radius: var(--radius-input);
  background: var(--white);
  font-size: 16px; /* 16px stops iOS from zooming in */
}
.textarea { padding: 12px 16px; min-height: 92px; line-height: 1.4; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.15); }
.input[readonly] { background: var(--page-bg); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--body); }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--brand); }

/* ---------- Chips (checkbox chips need no JS) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .chip-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--brand-line); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip input:checked + span,
.chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.chip-btn--soft { background: var(--brand-soft); color: var(--brand-muted); }

/* ---------- Check-in keypad ---------- */
.phone-display {
  height: 64px; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--brand-soft);
  font-size: clamp(24px, 8vw, 30px); font-weight: 700; letter-spacing: 2px;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.key {
  height: 64px; border: 1.5px solid var(--brand-line); border-radius: 16px;
  background: var(--white); color: var(--ink);
  font-size: 26px; font-weight: 600; cursor: pointer;
  touch-action: manipulation;
}
.key:active { background: var(--brand-soft); }
.key--small { font-size: 16px; }
@media (max-height: 700px) { .key { height: 54px; } .phone-display { height: 56px; } }

/* ---------- Status screens (success / thanks) ---------- */
.badge-circle {
  align-self: center;
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--white);
}
.badge-circle--soft { background: var(--brand-soft); color: var(--brand); }
.points-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px; border-radius: var(--radius-card);
  background: var(--brand-soft); border: 1.5px solid var(--brand-line);
  text-align: left;
}
.points-card__label { font-size: 15px; font-weight: 500; color: var(--body); }
.points-card__value { display: flex; align-items: baseline; gap: 8px; color: var(--brand); }
.points-card__value strong { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.points-card__value span { font-size: 20px; font-weight: 700; }
.progress { height: 10px; border-radius: 5px; background: var(--brand-track); overflow: hidden; }
.progress__bar { height: 100%; border-radius: 5px; background: var(--brand); }
.progress-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.note-box {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: 16px; background: var(--page-bg);
  font-size: 14px; line-height: 1.45; color: var(--body); text-align: left;
}
.note-box svg { flex-shrink: 0; color: var(--brand); }

/* ---------- Review ---------- */
.faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 156px; border-radius: var(--radius-card);
  text-decoration: none; border: 1.5px solid;
}
.face__label { font-size: 15px; font-weight: 600; }
.face--bad { background: var(--page-bg); border-color: var(--face-bad-line); color: var(--face-bad); }
.face--okay { background: var(--brand-soft); border-color: var(--brand-line); color: var(--face-okay); }
.face--happy { background: var(--brand); border-color: var(--brand); color: var(--white); }
.face--bad .face__label, .face--okay .face__label { color: var(--ink); }
.face:hover { filter: brightness(0.98); }
.stars { display: flex; justify-content: center; gap: 6px; color: var(--brand); }

/* ---------- Rewards ---------- */
.balance-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border-radius: var(--radius-card);
  background: var(--brand); color: var(--white);
}
.balance-card .progress { background: var(--brand-bright); height: 8px; }
.balance-card .progress__bar { background: var(--white); }
.reward-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.reward {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--brand-line);
}
.reward__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.reward__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reward__title { font-size: 15px; font-weight: 700; }
.reward__cost { font-size: 13px; color: var(--muted); }
.reward__btn { min-height: 40px; padding: 0 16px; border: none; border-radius: var(--radius-pill); background: var(--brand); color: var(--white); font-size: 14px; font-weight: 700; cursor: pointer; }
.reward__need { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------- Booking ---------- */
.steps-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.steps-bar span { height: 4px; border-radius: 2px; background: var(--line); }
.steps-bar span.is-done { background: var(--brand); }
.section { display: flex; flex-direction: column; gap: 10px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.scroller {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 56px; height: 66px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px solid var(--brand-line); border-radius: 16px;
  background: var(--white); color: var(--ink); cursor: pointer;
}
.day__dow { font-size: 12px; font-weight: 600; }
.day__num { font-size: 20px; font-weight: 800; }
.day[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.day--more { flex-basis: 64px; gap: 4px; border-style: dashed; border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.day--more .day__dow { font-weight: 700; }

.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.time {
  min-height: 48px; border: 1.5px solid var(--brand-line); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.time[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.time--other { grid-column: 1 / -1; border-style: dashed; border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.other-time { display: flex; align-items: center; gap: 12px; }
.other-time label { flex-shrink: 0; font-size: 14px; font-weight: 600; }
.other-time .input { min-height: 46px; border-radius: var(--radius-pill); }

.summary {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; background: var(--brand-soft);
}
.summary__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--white); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.summary__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.summary__label { font-size: 13px; color: var(--muted); }
.summary__value { font-size: 16px; font-weight: 800; }
.summary__btn { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--brand); border-radius: var(--radius-pill); background: var(--white); color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }

/* Calendar */
.cal-nav { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.cal-nav__btn { width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--brand-line); border-radius: 50%; background: var(--white); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cal-nav__btn[disabled] { border-color: var(--disabled-line); color: var(--faint); cursor: default; }
.cal-nav__title { font-size: 17px; font-weight: 800; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { margin-top: 12px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-grid { margin-top: 6px; }
.cal-day { height: 42px; padding: 0; border: none; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.cal-day[disabled] { background: transparent; color: var(--faint); cursor: default; }
.cal-day.is-today { border: 1.5px solid var(--brand); color: var(--brand); }
.cal-day[aria-pressed="true"] { background: var(--brand); color: var(--white); border: none; }

/* Receipt list (booking done) */
.receipt { display: flex; flex-direction: column; border: 1.5px solid var(--brand-line); border-radius: 20px; overflow: hidden; text-align: left; }
.receipt__row { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.receipt__row--stack { flex-direction: column; gap: 4px; }
.receipt__row:last-child { border-bottom: none; background: var(--brand-soft); }
.receipt dt { font-size: 14px; color: var(--muted); }
.receipt dd { margin: 0; font-size: 15px; font-weight: 700; text-align: right; }
.receipt__row--stack dd { text-align: left; line-height: 1.4; }

/* ---------- Promotions viewer ---------- */
.promo-page { background: var(--page-bg); }
.promo-head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 24px 0; }
.promo-stage {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0 0;
}
.promo-frame {
  width: min(78vw, 320px);
  aspect-ratio: 300 / 440;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(var(--ink-rgb),0.18);
  background: var(--white);
  touch-action: pan-y pinch-zoom;
}
.promo-slide { width: 100%; height: 100%; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; transition: transform 0.2s ease; }
.promo-btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; padding: 0; border: none; border-radius: 50%;
  background: var(--white); color: var(--ink);
  box-shadow: 0 4px 14px rgba(var(--ink-rgb),0.18);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.promo-btn--prev { left: 10px; top: 40%; }
.promo-btn--next { right: 10px; top: 40%; }
.promo-zoom { position: absolute; right: 10px; top: calc(40% + 150px); display: flex; flex-direction: column; gap: 8px; }
.promo-zoom .promo-btn { position: static; width: 44px; height: 44px; }
.promo-dots { margin-top: 16px; display: flex; gap: 6px; }
.promo-dots span { width: 7px; height: 7px; border-radius: 4px; background: var(--brand-dot); }
.promo-dots span.is-active { width: 20px; background: var(--brand); }
.promo-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.promo-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: var(--white); box-shadow: 0 -2px 12px rgba(var(--ink-rgb),0.06);
  position: sticky; bottom: 0;
}
.promo-actions .btn { border-radius: 16px; }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: var(--brand-dark); }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border: 1.5px solid var(--brand-line); border-radius: 16px;
  background: var(--white); text-align: left; text-decoration: none; color: var(--ink); cursor: pointer;
}
.option__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.option__text { display: flex; flex-direction: column; gap: 2px; }
.option__title { font-size: 16px; font-weight: 700; }
.option__sub { font-size: 13px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%);
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
}

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .tile { min-height: 92px; }
  .tile-grid, .keypad { gap: 10px; }
  .h1 { font-size: 24px; }
}

/* ---------- Rewards: redeem tool + history ---------- */
.redeem { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.redeem__row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: 8px; }
.redeem__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.redeem__box { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 12px; border: 1.5px solid var(--brand-line); border-radius: var(--radius-input); background: var(--white); }
.redeem__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.15); }
.redeem__input { flex: 1; min-width: 0; width: 100%; border: none; outline: none; background: none; font-size: 22px; font-weight: 800; color: var(--ink); -moz-appearance: textfield; }
.redeem__input::-webkit-outer-spin-button, .redeem__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.redeem__unit { font-size: 15px; font-weight: 700; color: var(--muted); }
.redeem__eq { padding-bottom: 14px; font-size: 20px; font-weight: 700; color: var(--muted); }
.redeem__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.redeem__msg { margin: 0; }
.redeem__msg.is-error { color: var(--brand-dark); font-weight: 600; }
.redeem__result { background: var(--brand-soft); }
.history { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.history__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--white); }
.history__item + .history__item { border-top: 1px solid var(--line); }
.history__main, .history__side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.history__side { align-items: flex-end; flex-shrink: 0; }
.history__amount { font-size: 15px; font-weight: 700; }
.history__meta { font-size: 13px; color: var(--muted); }
.history__pts { font-size: 14px; font-weight: 700; color: var(--body); }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.tag--used { background: var(--grey-btn); color: var(--muted); }
.tag--ready { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- Notice (small "good to know" line) ---------- */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--brand-line); border-radius: var(--radius-input); background: var(--white); text-align: left; }
.notice__icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.notice__text { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.notice__text strong { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.bday {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 10px;
}

.select {
    -webkit-appearance: none;
    appearance: none;
    color: var(--ink);
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B6478' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

    .select.is-empty {
        color: var(--muted);
    }

.bday__msg {
    margin: 0;
    color: var(--brand-dark);
    font-weight: 600;
}