/* ============================================================================
   TrimSpace v2 — warm editorial barbershop
   ========================================================================== */
:root {
  --bg: #efe7d8;
  --paper: #f8f2e7;
  --surface: #fcf8ef;
  --ink: #24201a;
  --ink-2: #4a4238;
  --taupe: #8b7d6a;
  --muted: #a99d88;
  --line: #e6dcc8;
  --line-2: #ddd0b8;
  --accent: #b07a3f;      /* caramel */
  --accent-deep: #90602d;
  --espresso: #2a231c;
  --amber: #cf9a3a;
  --ok: #6f8f5f;
  --danger: #b5544a;
  --gold: #c9a24a;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-1: 0 1px 3px rgba(60, 45, 25, 0.07);
  --shadow-2: 0 14px 34px -14px rgba(60, 45, 25, 0.22);
  --shadow-3: 0 30px 60px -22px rgba(40, 30, 15, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar: 74px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--sans); color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -20%, #4a3c28 0%, transparent 60%),
    #2c2418;
  -webkit-font-smoothing: antialiased;
  display: grid; place-items: center; overflow: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #e3cfa6; color: #2a1f0e; }

#frame {
  position: relative; width: 460px; height: min(940px, 100dvh);
  background: var(--bg); overflow: hidden;
  border-radius: 30px; box-shadow: var(--shadow-3);
}
#app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--tabbar) + var(--safe-bottom) + 12px); }
.scroll::-webkit-scrollbar { width: 0; }
@media (max-width: 480px) {
  body { display: block; overflow: auto; background: var(--bg); }
  #frame { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* subtle paper texture */
#frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(0deg, rgba(120,90,50,0.015) 0 1px, transparent 1px 3px);
}

.serif { font-family: var(--serif); }
.page { animation: fade 0.32s var(--ease) both; position: relative; z-index: 1; }
.pad { padding: 0 18px; }
.sec-title { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.row-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 14px; }
.row-h .more { font-size: 12.5px; font-weight: 650; color: var(--taupe); }

/* ---- Top bar ------------------------------------------------------------- */
.topbar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + var(--safe-top)) 18px 12px; position: relative; z-index: 2;
}
.tb-brand { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 9px; }
.tb-brand .mk { width: 30px; height: 30px; border-radius: 8px; }
.iconbtn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-1); transition: transform 0.15s var(--ease); }
.iconbtn:active { transform: scale(0.93); }

.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; color: #f3e9d6; letter-spacing: 0.02em; background: linear-gradient(140deg, #4a3c2b, #2a2118); box-shadow: var(--shadow-1); }

/* ---- HOME ---------------------------------------------------------------- */
.hero2 {
  margin: 4px 18px 0; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  padding: 22px 20px 20px; color: #f6eddc; box-shadow: var(--shadow-2);
  background:
    radial-gradient(120% 80% at 85% -10%, #5a4a32 0%, transparent 55%),
    linear-gradient(160deg, #3a2f22 0%, #241c14 100%);
}
.hero2::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(118deg, rgba(255,240,210,0.03) 0 2px, transparent 2px 20px); }
.hero2 .h-eye { position: relative; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.hero2 .h-name { position: relative; font-family: var(--serif); font-size: 33px; line-height: 1.02; font-weight: 600; letter-spacing: -0.01em; margin-top: 8px; }
.hero2 .h-sub { position: relative; font-size: 13px; color: #cdbfa6; margin-top: 8px; }
.hero2 .h-rate { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: #eaddc4; font-weight: 600; }
.hero2 .h-rate .stars { color: var(--gold); letter-spacing: 1px; }
.quick2 { position: relative; display: flex; gap: 8px; margin-top: 16px; }
.quick2 a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-radius: 12px; font-size: 12.5px; font-weight: 650; text-decoration: none; color: #f2e7d2; background: rgba(255,246,228,0.1); border: 1px solid rgba(255,240,210,0.14); transition: background 0.2s, transform 0.15s var(--ease); }
.quick2 a:active { transform: scale(0.96); background: rgba(255,246,228,0.2); }

.mt { margin-top: 26px; }
.next-card {
  margin: 0 18px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: 14px;
}
.date-chip { flex: none; width: 56px; height: 62px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #f3e9d6; background: linear-gradient(150deg, #3a2f22, #241c14); }
.date-chip .d { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; }
.date-chip .m { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c3b295; margin-top: 4px; }
.nc-body { flex: 1; min-width: 0; }
.nc-body .t { font-size: 15px; font-weight: 700; }
.nc-body .s { font-size: 12.5px; color: var(--taupe); margin-top: 3px; }
.nc-cost { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.empty-soft { margin: 0 18px; padding: 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--taupe); font-size: 13.5px; background: var(--paper); }

/* service rail */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 6px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 0; }
.svc-card { flex: none; width: 168px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); }
.svc-card .art { height: 92px; position: relative; }
.svc-card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-card .b { padding: 12px 13px 14px; }
.svc-card .n { font-size: 14px; font-weight: 700; }
.svc-card .m { font-size: 12px; color: var(--taupe); margin-top: 3px; }
.svc-card .p { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-top: 8px; }

/* team */
.team { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 4px; }
.team::-webkit-scrollbar { height: 0; }
.tm { flex: none; width: 118px; text-align: center; }
.tm .av { width: 78px; height: 78px; margin: 0 auto 9px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #f3e9d6; font-family: var(--serif); box-shadow: var(--shadow-1); border: 2px solid var(--surface); }
.tm .nm { font-size: 13px; font-weight: 700; }
.tm .rt { font-size: 11.5px; color: var(--taupe); margin-top: 3px; display: inline-flex; align-items: center; gap: 4px; }
.tm .rt .st { color: var(--gold); }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px; }
.tile { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); animation: fade 0.5s var(--ease) both; position: relative; }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- Bottom tab bar ------------------------------------------------------ */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  display: flex; align-items: stretch;
  background: rgba(248, 242, 231, 0.9); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 650; color: var(--taupe); transition: color 0.2s; }
.tab svg { transition: transform 0.2s var(--ease); }
.tab.on { color: var(--accent); }
.tab.on svg { transform: translateY(-1px); }
.tab.book { color: var(--ink); }
.tab.book .fab { width: 52px; height: 52px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; color: #f6eddc; background: linear-gradient(150deg, #3a2f22, #241c14); box-shadow: 0 10px 22px -8px rgba(40,30,15,0.6); border: 3px solid var(--paper); transition: transform 0.15s var(--ease); }
.tab.book:active .fab { transform: scale(0.92); }
.tab.book.on .fab { background: linear-gradient(150deg, var(--accent), var(--accent-deep)); }

/* ---- BOOK (single scroll) ------------------------------------------------ */
.book-head { padding: calc(14px + var(--safe-top)) 18px 6px; }
.book-head .eyebrow { display: block; margin-bottom: 6px; }
.book-head h1 { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -0.01em; }
.bsection { margin-top: 24px; }
.bsection .lbl { display: flex; align-items: center; gap: 9px; padding: 0 20px; margin-bottom: 12px; }
.bsection .lbl .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--espresso); color: #f3e9d6; }
.bsection .lbl .num.done { background: var(--ok); }
.bsection .lbl h3 { font-size: 15px; font-weight: 700; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 12px; }
.filters::-webkit-scrollbar { height: 0; }
.chip { flex: none; padding: 8px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--taupe); background: var(--surface); border: 1px solid var(--line-2); white-space: nowrap; transition: all 0.2s; }
.chip.on { color: #f3e9d6; background: var(--espresso); border-color: var(--espresso); }

.opt { width: calc(100% - 36px); margin: 0 18px 10px; display: flex; align-items: center; gap: 13px; padding: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); text-align: left; transition: border-color 0.2s, transform 0.12s var(--ease); }
.opt:active { transform: scale(0.99); }
.opt.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-1); }
.opt .av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #f3e9d6; font-family: var(--serif); }
.opt .grp { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2); }
.opt .o-body { flex: 1; min-width: 0; }
.opt .o-name { font-size: 15px; font-weight: 700; }
.opt .o-sub { font-size: 12.5px; color: var(--taupe); margin-top: 2px; line-height: 1.4; }
.opt .o-side { flex: none; text-align: right; }
.opt .o-price { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.opt .o-dur { font-size: 11.5px; color: var(--taupe); margin-top: 2px; }
.opt .rt { font-size: 11.5px; color: var(--taupe); margin-top: 3px; }
.opt .rt .st { color: var(--gold); }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; transition: background 0.2s, border-color 0.2s; }
.opt.sel .check { background: var(--accent); border-color: var(--accent); }
.check svg { opacity: 0; transition: opacity 0.15s; }
.opt.sel .check svg { opacity: 1; }

/* calendar */
.cal { margin: 0 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 12px; }
.cal-head .my { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.cal-nav button:disabled { opacity: 0.35; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 650; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cell { aspect-ratio: 1/1; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid transparent; position: relative; transition: all 0.18s; }
.cell.empty { background: transparent; }
.cell.pd { color: var(--muted); background: transparent; pointer-events: none; opacity: 0.5; }
.cell.full { color: var(--muted); pointer-events: none; }
.cell.full::after { content: ""; position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.cell.avail { border-color: var(--line-2); }
.cell.avail:active { background: var(--paper); }
.cell.sel { background: var(--espresso); color: #f3e9d6; border-color: var(--espresso); }
.cell.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 11.5px; color: var(--taupe); }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .sw { width: 9px; height: 9px; border-radius: 50%; }

/* time slots */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px; }
.slot { padding: 12px 4px; border-radius: 12px; font-size: 13.5px; font-weight: 650; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); text-align: center; transition: all 0.16s; }
.slot:active { transform: scale(0.96); }
.slot.taken { color: var(--muted); background: var(--paper); border-color: var(--line); text-decoration: line-through; pointer-events: none; }
.slot.sel { color: #f3e9d6; background: var(--espresso); border-color: var(--espresso); }
.slots-empty { grid-column: 1/-1; text-align: center; color: var(--taupe); font-size: 13px; padding: 18px; }
.pick-first { padding: 0 18px; color: var(--taupe); font-size: 13px; }

/* tip + notes */
.tips { display: flex; gap: 8px; padding: 0 18px; }
.tip { flex: 1; padding: 12px 4px; border-radius: 12px; font-size: 13px; font-weight: 650; text-align: center; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); transition: all 0.16s; }
.tip .sub { display: block; font-size: 10.5px; color: var(--taupe); margin-top: 2px; }
.tip.on { background: var(--espresso); color: #f3e9d6; border-color: var(--espresso); }
.tip.on .sub { color: #cbbb9f; }
.notes { margin: 12px 18px 0; }
.notes textarea { width: 100%; min-height: 66px; resize: none; padding: 13px 15px; font-size: 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); outline: none; }
.notes textarea:focus { border-color: var(--accent); }

/* sticky confirm */
.confirm-bar { position: absolute; left: 0; right: 0; bottom: var(--tabbar); padding: 12px 18px calc(12px + var(--safe-bottom)); background: linear-gradient(180deg, rgba(239,231,216,0), var(--bg) 45%); z-index: 20; }
.confirm { width: 100%; padding: 16px; border-radius: 16px; font-size: 15px; font-weight: 700; color: #f6eddc; background: var(--espresso); box-shadow: 0 12px 26px -10px rgba(40,30,15,0.55); display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; transition: transform 0.15s var(--ease), opacity 0.2s; }
.confirm:active { transform: scale(0.99); }
.confirm:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.confirm .c-price { font-family: var(--serif); font-size: 17px; }

/* ---- BOOKINGS ------------------------------------------------------------ */
.subtabs { display: flex; gap: 8px; padding: 0 18px 14px; }
.subtab { padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--taupe); background: var(--surface); border: 1px solid var(--line-2); }
.subtab.on { color: #f3e9d6; background: var(--espresso); border-color: var(--espresso); }
.bk { margin: 0 18px 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bk.cancelled { opacity: 0.6; }
.bk-top { display: flex; gap: 14px; align-items: center; }
.bk-top .date-chip { width: 52px; height: 58px; }
.bk-body { flex: 1; min-width: 0; }
.bk-body .t { font-size: 15px; font-weight: 700; }
.bk-body .s { font-size: 12.5px; color: var(--taupe); margin-top: 3px; }
.bk-cost { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.bk-actions { display: flex; gap: 8px; margin-top: 14px; }
.bk-actions button { flex: 1; padding: 11px; border-radius: 12px; font-size: 13px; font-weight: 650; }
.btn-ghost { background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); }
.btn-danger { background: #f7ebe8; border: 1px solid #edd6d1; color: var(--danger); }
.status-pill { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status-pill.upcoming { background: #efe6d3; color: var(--accent-deep); }
.status-pill.past { background: #e7e2d6; color: var(--taupe); }
.status-pill.cancelled { background: #f2e0dc; color: var(--danger); }

/* ---- ACCOUNT ------------------------------------------------------------- */
.acct-head { display: flex; align-items: center; gap: 15px; padding: 8px 18px 4px; }
.acct-head .avatar { width: 62px; height: 62px; font-size: 20px; font-family: var(--serif); }
.acct-head .a-name { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.acct-head .a-meta { font-size: 12.5px; color: var(--taupe); margin-top: 2px; }
.loyalty { margin: 18px; padding: 18px; border-radius: var(--radius-lg); color: #f6eddc; background: radial-gradient(120% 80% at 90% -10%, #5a4a32 0, transparent 55%), linear-gradient(160deg, #3a2f22, #241c14); box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.loyalty .lp-eye { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.loyalty .lp-num { font-family: var(--serif); font-size: 34px; font-weight: 600; margin-top: 4px; }
.loyalty .lp-sub { font-size: 12.5px; color: #cdbfa6; margin-top: 2px; }
.loyalty .lp-bar { height: 7px; border-radius: 999px; background: rgba(255,246,228,0.18); margin-top: 14px; overflow: hidden; }
.loyalty .lp-bar span { display: block; height: 100%; background: var(--gold); }
.alist { margin: 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.alist a { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background 0.16s; }
.alist a:first-child { border-top: none; }
.alist a:active { background: var(--paper); }
.alist a svg { color: var(--taupe); }
.alist a .chev { margin-left: auto; color: var(--muted); }
.signout { margin: 16px 18px 0; width: calc(100% - 36px); padding: 14px; border-radius: 14px; font-weight: 700; color: var(--danger); background: var(--surface); border: 1px solid var(--line-2); }

/* ---- success + toast ----------------------------------------------------- */
.success { position: absolute; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 8px; animation: fade 0.3s var(--ease) both; }
.success .badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #f3e9d6; background: linear-gradient(150deg, var(--accent), var(--accent-deep)); box-shadow: var(--shadow-2); margin-bottom: 14px; animation: pop 0.4s var(--ease) both; }
.success h2 { font-family: var(--serif); font-size: 25px; font-weight: 600; }
.success p { color: var(--taupe); font-size: 14px; max-width: 280px; line-height: 1.5; }
.success .done { margin-top: 22px; padding: 14px 34px; border-radius: 14px; font-weight: 700; color: #f6eddc; background: var(--espresso); }

.toast { position: absolute; left: 50%; bottom: calc(var(--tabbar) + 20px + var(--safe-bottom)); transform: translateX(-50%); z-index: 70; padding: 11px 18px; border-radius: 999px; background: var(--espresso); color: #f3e9d6; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-2); animation: toastIn 0.3s var(--ease) both; white-space: nowrap; }

/* ---- Stepped booking ----------------------------------------------------- */
.book-top { flex: none; padding: calc(14px + var(--safe-top)) 18px 6px; }
.bt-bar { display: flex; align-items: center; gap: 12px; }
.bt-back { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
.bt-title { flex: 1; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.bprog { display: flex; gap: 6px; margin: 15px 2px 2px; }
.bseg { flex: 1; height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bseg .f { height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.bseg.active .f, .bseg.done .f { transform: scaleX(1); }
.bseg.done .f { background: var(--ok); }
.bbody { flex: 1; overflow: hidden; position: relative; }
.bpanes { display: flex; height: 100%; width: 400%; transition: transform 0.36s var(--ease); }
.bpane { width: 25%; height: 100%; overflow-y: auto; padding: 16px 0 24px; }
.bpane::-webkit-scrollbar { width: 0; }
.book-foot { flex: none; padding: 12px 18px calc(12px + var(--safe-bottom)); background: linear-gradient(180deg, rgba(239,231,216,0), var(--bg) 45%); }
.book-foot .primary { width: 100%; padding: 16px; border-radius: 16px; font-size: 15px; font-weight: 700; color: #f6eddc; background: var(--espresso); display: inline-flex; align-items: center; justify-content: space-between; box-shadow: 0 12px 26px -10px rgba(40,30,15,0.55); transition: transform 0.15s var(--ease), opacity 0.2s; }
.book-foot .primary:active { transform: scale(0.99); }
.book-foot .primary:disabled { opacity: 0.4; box-shadow: none; }
.book-foot .primary .c-price { font-family: var(--serif); font-size: 17px; }
.tsl { font-family: var(--serif); font-size: 16px; font-weight: 600; padding: 0 20px; margin: 20px 0 12px; }
#timeSection { margin-top: 4px; }

.review { margin: 0 18px; }
.rv-when { padding: 17px 18px; border-radius: 18px; color: #f6eddc; position: relative; overflow: hidden; background: radial-gradient(120% 80% at 88% -10%, #5a4a32 0, transparent 55%), linear-gradient(160deg, #3a2f22, #241c14); box-shadow: var(--shadow-2); }
.rv-day { font-size: 21px; font-weight: 600; }
.rv-time { font-size: 12.5px; color: #cbbb9f; margin-top: 5px; }
.rv-lines { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), var(--shadow-1); }
.rv-line { display: flex; justify-content: space-between; padding: 12px 0; font-size: 14px; border-top: 1px solid var(--line); }
.rv-line:first-child { border-top: none; }
.rv-line.sub { color: var(--taupe); }
.rv-line.total { font-family: var(--serif); font-weight: 600; font-size: 18px; border-top: 1.5px solid var(--line-2); }

/* ---- Premium polish: film grain + gold accents + crisp edges ------------- */
.hero2::after, .loyalty::after, .rv-when::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.avatar, .tm .av, .opt .av, .date-chip, .date-chip { box-shadow: inset 0 1px 0 rgba(255,240,210,0.16), 0 8px 16px -8px rgba(30,20,10,0.5); }
.tm .av, .opt .av, .avatar { border: 1px solid rgba(201,162,74,0.3); }
.next-card, .svc-card, .bk, .opt, .alist, .rv-lines { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), var(--shadow-1); }
.hero2 { box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,240,210,0.08); }
.hero2 .h-name, .rv-day, .lp-num { text-shadow: 0 1px 0 rgba(0,0,0,0.15); }
.tm .av { position: relative; }
.tm .av::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(201,162,74,0.35); }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
