/* ==========================================================================
   ubook — app (client booking + owner dashboard)
   ========================================================================== */

.app-body { min-height: 100vh; }

/* top bar */
.appbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(228, 228, 231, 0.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 20px rgba(10, 10, 10, .0.04);
}
.appbar-inner { display: flex; align-items: center; gap: 16px; height: 66px; }
.appbar .brand { font-size: 19px; }
.appbar-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); font-weight: 500; padding: 8px 12px; border-radius: var(--r-pill); transition: background .2s,color .2s; }
.appbar-back:hover { background: var(--pink-50); color: var(--plum-900); }
.appbar-back svg { width: 16px; height: 16px; }
.appbar-spacer { flex: 1; }

/* view tabs */
.view-tabs { display: inline-flex; padding: 4px; background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: var(--r-pill); }
.view-tabs button { border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--text-muted); padding: 8px 16px; border-radius: var(--r-pill); transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.view-tabs button svg { width: 16px; height: 16px; }
.view-tabs button.active { background: #fff; color: var(--primary-ink); box-shadow: var(--shadow-xs); }

.reset-btn { border: 1px solid var(--line); background: #fff; color: var(--text-muted); font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-pill); transition: all .2s; }
.reset-btn:hover { color: var(--danger); border-color: #E4A9A2; }

.status-banner { border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 20px; font-size: 15px; font-weight: 500; }
.status-banner.status-pending { background: #F6EAD8; border: 1px solid #EBD3AE; color: #7A4B16; }
.status-banner.status-suspended, .status-banner.status-rejected { background: #F8E3E0; border: 1px solid #E4A9A2; color: var(--danger); }

.app-main { max-width: 940px; margin: 0 auto; padding: 34px 20px 80px; }

/* ---------- CLIENT BOOKING ---------- */
.booking-shell { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }

.booking-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.salon-hero { background: linear-gradient(135deg, var(--pink-500), var(--violet-500)); color: #fff; padding: 26px 26px 22px; }
.salon-hero .row { display: flex; align-items: center; gap: 14px; }
.salon-hero .logo { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.salon-hero h2 { font-family: var(--font-display); font-size: 24px; }
.salon-hero p { margin: 3px 0 0; opacity: .9; font-size: 14px; }
.salon-hero .meta { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; opacity: .95; }
.salon-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.salon-hero .meta svg { width: 15px; height: 15px; }

/* stepper */
.stepper { display: flex; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); gap: 6px; }
.stepper .st { display: flex; align-items: center; gap: 8px; flex: 1; }
.stepper .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--pink-50); color: var(--text-muted); border: 1.5px solid var(--line); flex: none; }
.stepper .st.active .dot { background: var(--cta); color: #fff; border-color: var(--cta); }
.stepper .st.done .dot { background: var(--success); color: #fff; border-color: var(--success); }
.stepper .st .lbl { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.stepper .st.active .lbl, .stepper .st.done .lbl { color: var(--plum-900); }
.stepper .bar { height: 2px; background: var(--line); flex: 1; margin: 0 4px; border-radius: 2px; }
.stepper .bar.done { background: var(--success); }

.step-body { padding: 24px 26px; }
.step-title { font-family: var(--font-display); font-size: 21px; color: var(--plum-900); margin-bottom: 18px; }

/* option lists */
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 15px 18px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: 10px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.opt:hover { border-color: var(--pink-300); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.opt.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.opt .info h4 { font-size: 16px; color: var(--plum-900); margin-bottom: 2px; }
.opt .info p { margin: 0; font-size: 13px; color: var(--text-muted); }
.opt .right { text-align: right; flex: none; }
.opt .price { font-weight: 700; color: var(--primary-ink); font-size: 16px; }
.opt .dep { font-size: 12px; color: var(--text-muted); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.opt.sel .radio { border-color: var(--primary); }
.opt.sel .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }

.staff-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; flex: none; }
/* A portrait is never the square the camera took. object-fit keeps the face
   centred and uncrushed inside the circle instead of stretching it. */
.staff-av.has-photo { overflow: hidden; background: var(--pink-100); }
.staff-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Portrait with the stylist's own score under it. */
.staff-id { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.staff-stars { display: flex; align-items: center; gap: 1px; font-size: 10px; line-height: 1;
  color: var(--line); letter-spacing: -.5px; }
.staff-stars span.on { color: #E8A33D; }
.staff-stars b { font-size: 10.5px; color: var(--text-muted); margin-left: 3px; font-weight: 700; }

.opt .left { display: flex; align-items: center; gap: 13px; }

/* discounts on booking */
.opt .right .price .was { text-decoration: line-through; color: var(--text-muted); font-weight: 500; font-size: 13px; margin-right: 3px; }
.disc-badge { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--acc-coral); padding: 1px 6px; border-radius: var(--r-pill); vertical-align: middle; }
.offer-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FDF5EC, var(--pink-50)); border: 1px solid var(--pink-200); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 18px; }
.offer-banner .ob-tag { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--acc-coral); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.offer-banner .ob-list { font-size: 13.5px; color: var(--plum-900); }
.offer-banner .ob-list strong { color: var(--primary-ink); }

/* date chips */
.date-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; }
.date-chip { flex: none; width: 68px; text-align: center; padding: 12px 0; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; transition: all .18s; }
.date-chip:hover { border-color: var(--pink-300); }
.date-chip.sel { background: var(--cta); border-color: var(--cta); color: #fff; }
.date-chip .dow { font-size: 12px; font-weight: 600; opacity: .8; }
.date-chip .dnum { font-size: 20px; font-weight: 800; margin: 2px 0; }
.date-chip .mon { font-size: 11px; opacity: .8; }

.slot-group { margin-bottom: 18px; }
.slot-group h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); gap: 9px; }
.slot { text-align: center; padding: 11px 0; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 14.5px; color: var(--text); transition: all .16s; }
.slot:hover:not(.off) { border-color: var(--pink-300); transform: translateY(-1px); }
.slot.off { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.slot.sel { background: var(--cta); border-color: var(--cta); color: #fff; }
.empty-slots { text-align: center; color: var(--text-muted); padding: 30px; font-size: 15px; }

/* form */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--plum-900); margin-bottom: 7px; }
.field input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: 16px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .18s, box-shadow .18s; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.field input::placeholder { color: var(--pink-400); }
.field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: 16px; font-family: inherit; color: var(--text); background: #fff; resize: vertical; line-height: 1.5; transition: border-color .18s, box-shadow .18s; }
.field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.field textarea::placeholder { color: var(--pink-400); }
.field select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: 16px; font-family: inherit; color: var(--text); background: #fff; }
.field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }

/* payment box */
.pay-box { background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: var(--r-md); padding: 18px; margin-bottom: 18px; }
.pay-line { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 9px; color: var(--text); }
.pay-line.total { font-weight: 800; font-size: 17px; color: var(--plum-900); padding-top: 10px; border-top: 1px dashed var(--pink-300); margin-bottom: 0; }
.pay-line .muted { color: var(--text-muted); }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.pay-secure svg { width: 15px; height: 15px; color: var(--success); }

.step-actions { display: flex; gap: 12px; margin-top: 6px; }
.step-actions .btn { flex: 1; }

/* summary sidebar */
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-xs); position: sticky; top: 90px; }
.summary h3 { font-size: 17px; color: var(--plum-900); margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row .k { color: var(--text-muted); }
.sum-row .v { font-weight: 600; color: var(--plum-900); text-align: right; }
.sum-empty { color: var(--text-muted); font-size: 14px; text-align: center; padding: 20px 0; }
.sum-total { margin-top: 14px; padding: 15px; background: linear-gradient(135deg, var(--violet-600), var(--pink-600)); border-radius: var(--r-md); color: #fff; }
.sum-total .dep { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total .dep .big { font-family: var(--font-display); font-size: 30px; }
.sum-total .cap { font-size: 12px; opacity: .9; }

/* reviews on booking page */
.reviews-section { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow-xs); }
.reviews-section h3 { font-family: var(--font-display); font-size: 22px; color: var(--plum-900); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.reviews-section .rev-avg { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--warning); background: #F6EAD8; padding: 4px 12px; border-radius: var(--r-pill); }
.rev-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rev-item { background: var(--pink-50); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.rev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rev-stars span { color: var(--line); font-size: 15px; }
.rev-stars span.on { color: var(--acc-amber); }
.rev-name { font-size: 13px; font-weight: 600; color: var(--plum-900); }
.rev-item p { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.5; }
@media (max-width: 640px) { .rev-list { grid-template-columns: 1fr; } }

/* success */
.success { text-align: center; padding: 44px 26px; }
.success .check { width: 84px; height: 84px; border-radius: 50%; background: var(--success-bg); display: grid; place-items: center; margin: 0 auto 22px; animation: pop .5s var(--ease); }
.success .check svg { width: 44px; height: 44px; color: var(--success); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.success h2 { font-family: var(--font-display); font-size: 28px; color: var(--plum-900); margin-bottom: 10px; }
.success p { color: var(--text-muted); margin-bottom: 20px; }
.conf-code { display: inline-block; background: var(--pink-50); border: 1px dashed var(--pink-300); border-radius: var(--r-md); padding: 12px 22px; margin-bottom: 24px; }
.conf-code .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.conf-code .code { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--primary-ink); letter-spacing: .12em; }
.success-detail { max-width: 340px; margin: 0 auto 26px; text-align: left; }

/* ---------- OWNER DASHBOARD ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-head h1 { font-family: var(--font-display); font-size: 30px; color: var(--plum-900); }
.dash-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }

.link-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fff, var(--pink-50)); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 26px; box-shadow: var(--shadow-xs); flex-wrap: wrap; }
.link-card .ig { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg,#8C6A57,#4E372A); display: grid; place-items: center; color: #fff; flex: none; }
.link-card .ig svg { width: 22px; height: 22px; }
.link-card .lc-body { flex: 1; min-width: 180px; }
.link-card .lc-body .lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.link-card .lc-body .url { font-size: 16px; font-weight: 700; color: var(--plum-900); }
.copy-btn { border: 0; background: var(--cta); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: var(--r-pill); transition: background .2s, transform .2s; display: inline-flex; align-items: center; gap: 7px; }
.copy-btn:hover { background: var(--cta-ink); transform: translateY(-1px); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.ok { background: var(--success); }

.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }

/* plan + company cards */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; align-items: start; }
.plan-body { padding: 20px 22px; }
.plan-hero { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.plan-hero .plan-name { font-family: var(--font-display); font-size: 26px; color: var(--plum-900); }
.plan-hero .plan-price { font-weight: 700; color: var(--primary-ink); font-size: 17px; }
.plan-hero .plan-price small { color: var(--text-muted); font-weight: 500; font-size: 12px; }
.plan-feats { display: grid; gap: 9px; margin: 0 0 16px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--text); }
.plan-feats li svg { flex: none; width: 19px; height: 19px; color: var(--success); margin-top: 1px; }
/* ---------- dashboard day calendar (#8) ---------- */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-nav { display: inline-flex; align-items: center; gap: 4px; }
.cal-nav button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--plum-900); display: grid; place-items: center; }
.cal-nav button:hover { border-color: var(--primary); color: var(--primary-ink); }
.cal-nav svg { width: 16px; height: 16px; }
.cal-date { font-weight: 800; color: var(--plum-900); font-size: 15px; min-width: 190px; text-align: center; }
.cal-today { font-size: 13px; font-weight: 700; color: var(--primary-ink); background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: 9px; padding: 7px 13px; }

.cal-wrap { overflow-x: auto; padding: 4px 18px 18px; }
.cal-grid { display: grid; min-width: 520px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.cal-head { display: contents; }
.cal-head > div { background: var(--pink-50); border-bottom: 1px solid var(--line); padding: 10px 8px; font-size: 12.5px; font-weight: 800; color: var(--plum-900); text-align: center; }
.cal-head > div:first-child { text-align: left; padding-left: 12px; }
.cal-row { display: contents; }
.cal-time { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px 12px; font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; background: #fff; }
.cal-cell { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 34px; padding: 3px; position: relative; }
.cal-cell:last-child { border-right: 0; }
.cal-ev { border-radius: 8px; padding: 5px 8px; font-size: 12px; line-height: 1.3; color: #fff; cursor: pointer; overflow: hidden; }
.cal-ev b { display: block; font-weight: 800; font-size: 12px; }
.cal-ev span { opacity: .92; font-size: 11px; }
.cal-ev.pending   { background: linear-gradient(135deg, #D2A468, var(--acc-amber)); }
.cal-ev.confirmed { background: linear-gradient(135deg, #8C6A57, #4E372A); }
.cal-ev.completed { background: linear-gradient(135deg, #B09A88, #6E5A4A); }
.cal-ev.noshow    { background: linear-gradient(135deg, #D97A6B, #C0463F); }
.cal-empty { padding: 34px; text-align: center; color: var(--text-muted); font-size: 14px; }
.cal-closed { padding: 30px; text-align: center; color: #7A4B16; background: #F6EAD8; font-weight: 700; font-size: 14px; }

.hist-link { font-size: 14px; font-weight: 700; color: var(--primary-ink); white-space: nowrap; }
.hist-link:hover { color: var(--plum-900); }

.plan-usage { display: grid; gap: 11px; margin: 4px 0 16px; }
.pu-row { display: grid; gap: 5px; }
.pu-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.pu-top b { color: var(--plum-900); font-weight: 700; }
.pu-top b.pu-full { color: var(--danger); }
.pu-bar { height: 6px; border-radius: 999px; background: var(--pink-100); overflow: hidden; }
.pu-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink-500), var(--violet-500)); transition: width .3s var(--ease); }
.plan-change { font-size: 14px; font-weight: 600; color: var(--cta-ink); }
.plan-empty { padding: 4px 0; color: var(--text-muted); font-size: 14.5px; }
.company-body { padding: 16px 22px 20px; }
.company-rows { margin: 0; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 10px 16px; align-items: baseline; }
.company-rows dt { color: var(--text-muted); font-size: 13.5px; overflow-wrap: anywhere; }
.company-rows dd { margin: 0; color: var(--plum-900); font-weight: 600; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 760px) { .info-cols { grid-template-columns: 1fr; } }

/* Plan & company modal: stack the two panels so each gets the full modal width. */
#planInfoModal .info-cols { grid-template-columns: 1fr; gap: 16px; margin-bottom: 0; }

/* ---- onboarding / setup checklist ---- */
.setup-card { background: linear-gradient(135deg, #fff, var(--pink-50)); border: 1px solid var(--pink-200); border-radius: var(--r-xl); padding: 20px 24px; margin-bottom: 22px; box-shadow: 0 10px 28px rgba(10, 10, 10, .08); }
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.setup-head h3 { font-family: var(--font-display); font-size: 20px; color: var(--plum-900); }
.setup-head p { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.setup-count { font-size: 15px; color: var(--text-muted); white-space: nowrap; }
.setup-count b { font-size: 22px; color: var(--primary-ink); }
.setup-steps { display: flex; flex-direction: column; gap: 8px; }
.setup-step { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.setup-step.done { background: var(--success-bg); border-color: #CBE0D2; }
.setup-tick { width: 24px; height: 24px; border-radius: 999px; flex: none; display: grid; place-items: center; border: 2px solid var(--pink-200); color: #fff; }
.setup-step.done .setup-tick { background: var(--success); border-color: var(--success); }
.setup-tick svg { width: 15px; height: 15px; }
.setup-label { flex: 1; font-size: 15.5px; font-weight: 600; color: var(--plum-900); }
.setup-step.done .setup-label { color: var(--text-muted); font-weight: 500; }
.setup-cta { font-size: 14px; font-weight: 700; color: var(--cta-ink); white-space: nowrap; }
.setup-cta:hover { color: var(--primary-ink); }
.dstat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; box-shadow: var(--shadow-xs); }
.dstat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; }
.dstat .ic svg { width: 20px; height: 20px; }
.dstat.b1 .ic { background: var(--pink-100); color: var(--primary-ink); }
.dstat.b2 .ic { background: #DCEBE1; color: var(--success); }
.dstat.b3 .ic { background: #F8E3E0; color: var(--danger); }
.dstat.b4 .ic { background: var(--pink-100); color: var(--cta-ink); }
.dstat .num { font-family: var(--font-display); font-size: 30px; color: var(--plum-900); line-height: 1; }
.dstat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-bottom: 22px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 17px; color: var(--plum-900); }
.panel-head .rev { font-size: 13px; color: var(--text-muted); }
.panel-head .rev b { color: var(--success); font-size: 15px; }

.booking-table { width: 100%; }
.brow { display: grid; grid-template-columns: 1.4fr 1.3fr 1.4fr 0.9fr 1.4fr; gap: 12px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.brow:last-child { border-bottom: 0; }
.brow.head { background: var(--pink-50); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.brow .cli { display: flex; align-items: center; gap: 10px; }
.brow .cli .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.brow .cli .nm { font-weight: 600; color: var(--plum-900); }
.brow .cli .ph { font-size: 12px; color: var(--text-muted); }
.brow .dep-amt { font-weight: 700; color: var(--success); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.badge.confirmed { background: var(--pink-100); color: var(--cta-ink); }
.badge.completed { background: #DCEBE1; color: var(--success); }
.badge.noshow { background: #F8E3E0; color: var(--danger); }
.badge.pending { background: #F6EAD8; color: #7A4B16; }
.badge.cancelled { background: var(--pink-50); color: var(--text-muted); }
.paid-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); vertical-align: middle; }
.row-actions { display: flex; gap: 6px; }

/* ==========================================================================
   Owner panel on a phone
   ========================================================================== */
@media (max-width: 780px) {
  /* The top bar carries five destinations plus the brand, the branch switcher
     and log out. Labels are what breaks it, not the icons — so below this width
     the links become icon-only and stay on one row. */
  .appbar-inner .appbar-back span { display: none; }
  .appbar-inner .appbar-back {
    padding: 8px; width: 38px; justify-content: center; gap: 0;
  }
  .appbar-inner .appbar-back svg { width: 18px; height: 18px; }
  /* "back to panel" links read as a word, not an icon — keep those labelled */
  .appbar-inner .appbar-back:first-child span { display: inline; }
  .appbar-inner .appbar-back:first-child { width: auto; padding: 8px 12px; gap: 6px; }
  .appbar-inner { gap: 6px; }
  .appbar .brand { font-size: 17px; }
  .appbar .brand span:not(.brand-mark) { display: inline; }
}

@media (max-width: 480px) {
  /* Even icon-only, the owner bar carries brand + four destinations + language
     + log out, which is more than 390px holds. The language switch is the one
     thing an owner sets once and never touches again, so it goes; it is still
     on every public page and on the login screen. */
  .owner-bar .lang { display: none; }
  .owner-bar .reset-btn { padding: 7px 10px; font-size: 13px; }
  .owner-bar .appbar-back:first-child span { display: none; }
  .owner-bar .appbar-back:first-child { width: 38px; padding: 8px; gap: 0; }
}

@media (max-width: 700px) {
  /* A booking was a five-column grid squeezed to three, so the deposit and the
     action buttons wrapped onto a second row under unrelated headings. Stack it
     into a card instead: one field per line, buttons full width. */
  .brow.head { display: none; }
  .brow {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 14px 16px;
  }
  .brow .col-when, .brow > div:nth-child(3) { font-size: 13.5px; color: var(--text-muted); }
  .brow .cli .nm { font-size: 15px; }
  .brow .dep-amt { font-size: 15px; }
  .brow .col-status { margin-top: 4px; }
  /* real touch targets — these were 28px tall and side by side */
  .row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .row-actions .mini-btn { padding: 12px 8px; font-size: 14px; border-radius: 10px; }
}
.mini-btn { border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; color: var(--text-muted); transition: all .18s; }
.mini-btn:hover { border-color: var(--pink-300); color: var(--plum-900); }
.mini-btn.ok:hover { color: var(--success); border-color: #AFD0BC; background: #F2F8F4; }
.mini-btn.no:hover { color: var(--danger); border-color: #E4A9A2; background: #FCF3F1; }
.table-empty { padding: 40px; text-align: center; color: var(--text-muted); font-size: 15px; }

.svc-list { padding: 8px 22px 18px; }
.svc-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.svc-item:last-child { border-bottom: 0; }
.svc-item .n { font-weight: 600; color: var(--plum-900); }
.svc-item .m { font-size: 13px; color: var(--text-muted); }
.svc-item .p { text-align: right; }
.svc-item .p .price { font-weight: 700; color: var(--plum-900); }
.svc-item .p .dep { font-size: 12px; color: var(--text-muted); }

.hidden { display: none !important; }

/* ---------- admin panel ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.admin-tabs { display: flex; flex-wrap: wrap; }
.admin-tabs .tab-badge { background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; }
.atable { display: flex; flex-direction: column; }
.arow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.arow:last-child { border-bottom: 0; }
.acol { min-width: 0; }
.anm { font-weight: 600; color: var(--plum-900); font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.anm .rev-stars span { color: var(--line); font-size: 14px; } .anm .rev-stars span.on { color: var(--acc-amber); }
.asub { font-size: 13px; color: var(--text-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.arow-actions { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.badge.st-pending { background: #F6EAD8; color: #7A4B16; }
.badge.st-approved { background: #DCEBE1; color: var(--success); }
.badge.st-suspended { background: #F8E3E0; color: var(--danger); }
.badge.st-rejected { background: var(--pink-50); color: var(--text-muted); }
.badge.st-draft { background: var(--pink-50); color: var(--text-muted); }
.badge.st-sent { background: var(--pink-100); color: var(--cta-ink); }
.badge.st-paid { background: #DCEBE1; color: var(--success); }
.badge.st-void { background: #F8E3E0; color: var(--danger); }
@media (max-width: 820px) { .admin-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .arow { flex-direction: column; align-items: flex-start; } .arow-actions { justify-content: flex-start; } }

/* ==========================================================================
   Admin shell — fixed left rail + workspace
   --------------------------------------------------------------------------
   The rail is dark on purpose. It is chrome, not content: giving it a different
   surface means the eye never has to work out where navigation stops and data
   begins, and it stops the eight-item menu competing with the tables for
   attention the way the old row of tabs did.
   ========================================================================== */
/* The decorative .bg-mesh blobs are positioned past the right edge. They are
   clipped visually but still widen the document, leaving the panel with a few
   pixels of horizontal scroll on a phone. Setting overflow-x on the body does
   not help — the scroll lives on <html>. Behind a dark rail and opaque cards
   the mesh was contributing nothing anyway, so the admin drops it entirely and
   the overflow goes with it. */
body.admin .bg-mesh { display: none; }

.adm { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }

.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: #17110C; color: #C9B9AA; overflow-y: auto; z-index: 40; }
.adm-side::-webkit-scrollbar { width: 8px; }
.adm-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }

.adm-brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; color: #fff; }
.adm-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.adm-brand .brand-mark svg { width: 19px; height: 19px; }
.adm-brand-t { font-family: var(--font-display); font-size: 21px; line-height: 1; color: #fff; }
.adm-brand-t b { font-weight: 700; color: #E2A879; }
.adm-brand-t small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #8C7B6C; margin-top: 5px; font-weight: 600; }

.adm-nav { display: flex; flex-direction: column; padding: 4px 12px 12px; gap: 2px; }
.adm-grp { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: #6E5F52;
  font-weight: 700; padding: 16px 10px 7px; }
.adm-nav button, .adm-out { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: none; border: 0; color: #C9B9AA; font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .14s, color .14s; }
.adm-nav button svg, .adm-out svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.adm-nav button span, .adm-out span { flex: 1; min-width: 0; }
.adm-nav button:hover, .adm-out:hover { background: rgba(255,255,255,.07); color: #fff; }
.adm-nav button.active { background: var(--terra, #B4573A); color: #fff; font-weight: 600; }
.adm-nav button.active svg { opacity: 1; }

/* Badges count things that need a decision, so they stay legible on the rail. */
.adm-nav .tab-badge { font-style: normal; background: #C0463F; color: #fff; font-size: 11px; font-weight: 800;
  min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; display: none; place-items: center; flex: none; }
.adm-nav button.active .tab-badge { background: rgba(0,0,0,.28); }

.adm-side-foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 2px; }
.adm-side-foot .adm-out { font-size: 13.5px; }
.adm-out.danger:hover { background: rgba(192,70,63,.18); color: #F0B7B1; }

/* ---- workspace ---- */
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 20px 30px; background: rgba(253,250,246,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.adm-title { flex: 1; min-width: 0; }
.adm-title h1 { font-family: var(--font-display); font-size: 25px; color: var(--plum-900); line-height: 1.15; }
.adm-title p { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.adm-top-act { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.adm-burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 40px; height: 40px; place-items: center; color: var(--plum-900); flex: none; cursor: pointer; }
.adm-burger svg { width: 21px; height: 21px; }

.adm-body { padding: 26px 30px 60px; }
.adm-body .admin-stats:empty { display: none; }

/* Section heading inside a panel — the label that says what a table is. */
.adm-sec { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.adm-sec:first-child { margin-top: 0; }
.adm-sec h2 { font-family: var(--font-display); font-size: 18px; color: var(--plum-900); }
.adm-sec p { font-size: 13px; color: var(--text-muted); }
.adm-sec .adm-count { margin-left: auto; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

.adm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 5px 16px rgba(10,10,10,.05); overflow: hidden; margin-bottom: 20px; }
.adm-card-h { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.adm-card-h h3 { font-size: 15px; color: var(--plum-900); font-weight: 700; }
.adm-card-h .adm-count { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }

/* Key/value detail grid — used everywhere a row needs its facts spelled out.
   Columns are wide enough for a Georgian label plus its figure: at a narrower
   minmax the label ran straight into the number of the column beside it. */
.adm-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 30px; padding: 4px 0; }
.adm-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--pink-200); min-width: 0; }
.adm-kv .k { color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-kv .v { color: var(--plum-900); font-weight: 700; flex: none; }

/* Two-up settings inputs (pricing). minmax(0,…) so a long Georgian hint
   cannot floor the column and push the card sideways on a phone. */
.adm-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.adm-price-grid label { display: block; min-width: 0; }
.adm-price-grid label > span { display: block; font-size: 13px; font-weight: 700; color: var(--plum-900); margin-bottom: 6px; }
.adm-price-grid input { width: 100%; max-width: 100%; padding: 10px 12px; font-size: 15px; font-weight: 700;
  color: var(--plum-900); border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.adm-price-grid input:focus { outline: none; border-color: var(--pink-400, #d98cae); }
.adm-price-grid small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }

/* A running calculation reads top to bottom, never wrapped into columns —
   in three columns the eye follows the wrong order and the steps stop making
   sense. Labels wrap here instead of being cut off with an ellipsis. */
.adm-kv.one-col { grid-template-columns: 1fr; }
.adm-kv.one-col .k { white-space: normal; overflow: visible; text-overflow: clip; }

/* Invoice / package tables. Scrolls inside its own box: an invoice row has
   seven columns and would otherwise push the whole admin page sideways. */
.inv-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.inv-tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); padding: 9px 10px 7px; font-weight: 700; white-space: nowrap; }
.inv-tbl td { border-top: 1px solid var(--line); padding: 9px 10px; vertical-align: middle; color: var(--text); }
.inv-tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-tbl th.num { text-align: right; }

/* The bottom line of a calculation — the one figure the eye should land on. */
.adm-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin-top: 12px; padding: 12px 14px; border-radius: 11px; background: var(--pink-50);
  border: 1px solid var(--line); font-size: 14px; color: var(--plum-900); }
.adm-total b { font-size: 19px; font-weight: 800; white-space: nowrap; }
.adm-total.bad { background: rgba(192,57,43,.07); border-color: var(--danger); }
.adm-total.bad b { color: var(--danger); }

/* A line of small facts under a row title. */
.adm-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.adm-facts span { font-size: 12.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.adm-facts b { color: var(--plum-900); font-weight: 600; }

/* Health / attention strip. */
.adm-note { display: flex; gap: 13px; align-items: flex-start; padding: 14px 17px; border-radius: 13px;
  border: 1px solid var(--line); background: #fff; margin-bottom: 16px; font-size: 13.5px; }
.adm-note .t { font-weight: 700; color: var(--plum-900); margin-bottom: 3px; }
.adm-note .b { color: var(--text-muted); line-height: 1.55; }
.adm-note.warn { border-color: #E4B9A2; background: #FDF6F1; }
.adm-note.bad { border-color: #E4A9A2; background: #FCF3F1; }
.adm-note.ok { border-color: #AFD0BC; background: #F4F9F6; }
.adm-note .adm-note-act { margin-left: auto; flex: none; align-self: center; }

@media (max-width: 1000px) {
  /* minmax(0,1fr): without the 0 floor the column refuses to shrink below its
     widest child and the whole page scrolls sideways on a phone. */
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; inset: 0 auto 0 0; width: 264px; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .adm-side.open { transform: none; }
  .adm-burger { display: grid; }
  .adm-top { padding: 14px 16px; }
  .adm-body { padding: 18px 16px 60px; }
  .adm-title h1 { font-size: 20px; }
  .adm-title p { display: none; }
}
@media (max-width: 560px) {
  /* The action shrinks to its icon — a full label here squeezes the page title
     to nothing and pushes the layout wider than the screen. */
  .adm-top-act .btn span { display: none; }
  .adm-top-act .btn { padding-left: 13px; padding-right: 13px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* A flex item's default min-width is its longest word, and Georgian labels
     like "დამოწმებას" are long enough to push both cards past the screen. */
  .astat { padding: 13px 14px; gap: 11px; min-width: 0; }
  .astat-body { min-width: 0; }
  .astat-lbl { overflow-wrap: anywhere; }
  .astat-ic { width: 38px; height: 38px; border-radius: 11px; }
  .astat-ic svg { width: 19px; height: 19px; }
  .astat-num { font-size: 21px; }
  .astat-lbl { font-size: 11.5px; margin-top: 4px; }
  .adm-note { flex-direction: column; gap: 10px; }
  .adm-note .adm-note-act { margin-left: 0; align-self: stretch; }
  .adm-note .adm-note-act .mini-btn, .adm-note .adm-note-act .btn { width: 100%; }
}

/* Backdrop for the mobile drawer. */
.adm-scrim { position: fixed; inset: 0; background: rgba(20,14,10,.5); z-index: 35; display: none; }
.adm-scrim.on { display: block; }

/* ==========================================================================
   Admin panel — visual polish
   ========================================================================== */
/* Calm the background mesh so content reads clearly on the admin screens. */
body.admin .blob-1 { opacity: .22; }
body.admin .blob-2 { opacity: .14; }
body.admin .blob-3 { opacity: .12; }

.admin-main .dash-head { margin-bottom: 22px; }
.admin-main .dash-head h1 { letter-spacing: -0.01em; }

/* ---- stat cards (icon + number + label) ---- */
.admin-stats { gap: 18px; }
.astat { display: flex; align-items: center; gap: 15px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 20px; box-shadow: 0 6px 18px rgba(10, 10, 10, .06);
  transition: transform .16s ease, box-shadow .16s ease; }
.astat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 10, 10, .12); }
.astat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; box-shadow: 0 6px 14px rgba(10, 10, 10, .16); }
.astat-ic svg { width: 24px; height: 24px; }
.astat-num { font-family: var(--font-display); font-size: 27px; font-weight: 800; color: var(--plum-900); line-height: 1; }
.astat-lbl { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.astat.amber  .astat-ic { background: linear-gradient(135deg, #D2A468, var(--acc-amber)); }
.astat.red    .astat-ic { background: linear-gradient(135deg, #D97A6B, #C0463F); }
.astat.pink   .astat-ic { background: linear-gradient(135deg, #C4684A, #8A3A22); }
.astat.violet .astat-ic { background: linear-gradient(135deg, #B09A88, #6E5A4A); }
.astat.green  .astat-ic { background: linear-gradient(135deg, #6FA486, #3F7D58); }

/* ---- tabs (a touch larger, clearer) ---- */
.admin-tabs { padding: 5px; box-shadow: 0 4px 14px rgba(10, 10, 10, .05); }
.admin-tabs button { padding: 9px 18px; font-size: 14.5px; }

/* ---- rows: avatar + hover ---- */
.atable { padding: 4px 0; }
.arow { gap: 15px; padding: 15px 18px; border-radius: 14px; border-bottom: 0; transition: background .14s; }
.arow + .arow { border-top: 1px solid var(--line); }
.arow:hover { background: var(--pink-50); }
.arow:hover + .arow { border-top-color: transparent; }
.acol { flex: 1; }
.anm { font-size: 15.5px; }
.a-av { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 4px 10px rgba(10, 10, 10, .16); }
.a-av.sq { border-radius: 12px; }

/* ---- refined action buttons ---- */
.arow-actions { gap: 7px; }
.mini-btn { padding: 7px 12px; border-radius: 9px; }
.mini-btn.ok { color: var(--success); border-color: #CBE0D2; background: #F2F8F4; }
.mini-btn.ok:hover { border-color: #AFD0BC; background: #DCEBE1; }
.mini-btn.no:hover { color: var(--danger); border-color: #E4A9A2; background: #FCF3F1; }
.mini-btn.icon { padding: 7px; width: 32px; display: inline-grid; place-items: center; }
.mini-btn.icon svg { width: 15px; height: 15px; display: block; }

/* ---- section titles inside a tab (e.g. Payouts) ---- */
.tab-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); margin: 6px 6px 10px; }
.tab-title.mt { margin-top: 22px; }
/* modal field rows collapse on small screens (overrides inline grid templates) */
@media (max-width: 560px) { .modal-body .field-row { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 400px) { .modal-body .field-row { grid-template-columns: 1fr !important; } }

/* ---------- service editor ---------- */
.add-svc-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--cta); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: var(--r-pill); transition: background .2s, transform .2s; }
.add-svc-btn:hover { background: var(--cta-ink); transform: translateY(-1px); }
.add-svc-btn svg { width: 16px; height: 16px; }

.svc-item .svc-actions { display: flex; gap: 6px; align-items: center; }
.svc-item .archived-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); background: var(--pink-50); border: 1px solid var(--line); padding: 2px 8px; border-radius: var(--r-pill); margin-left: 8px; }
.svc-item .p { display: flex; align-items: center; gap: 14px; }
.off-pct { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--acc-coral); padding: 1px 8px; border-radius: var(--r-pill); margin-right: 4px; }

/* review action in client panel */
.mybk-action { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.rate-btn { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--pink-300); background: #fff; color: var(--primary-ink); font-weight: 600; font-size: 14px; padding: 8px 15px; border-radius: var(--r-pill); transition: all .18s; }
.rate-btn:hover { background: var(--pink-50); transform: translateY(-1px); }
.mybk-rated { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.mybk-rated .stars span { color: var(--line); font-size: 15px; }
.mybk-rated .stars span.on { color: var(--acc-amber); }

/* star picker in review modal */
/* Two questions in one modal — each needs a heading, or the second row of
   stars reads as more stars for the first. */
.rev-q { font-size: 13.5px; font-weight: 700; color: var(--plum-900); text-align: center; margin-bottom: 8px; }
.rev-q b { color: var(--primary-ink); }
#revStaffWrap { border-top: 1px solid var(--line); padding-top: 14px; margin-top: -4px; }
.star-pick { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.star-pick button { border: 0; background: none; font-size: 40px; line-height: 1; color: var(--line); cursor: pointer; transition: transform .12s, color .12s; padding: 0; }
.star-pick button:hover { transform: scale(1.12); }
.star-pick button.on { color: var(--acc-amber); }
.modal-body textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: 15px; font-family: inherit; resize: vertical; color: var(--text); }
.modal-body textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }

.modal-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(61,24,50,.42); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
/* A modal is never taller than the screen: the title and the buttons are
   pinned and only the middle scrolls. Without this the service form — which is
   the tallest one — ran off the bottom of a phone and its Save button could not
   be reached at all. dvh, because on mobile 100vh is the address-bar-less
   height and would still overflow; vh stays as the fallback. */
.modal { width: 100%; max-width: 460px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; animation: modalIn .22s var(--ease) both;
  display: flex; flex-direction: column; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
.modal-head, .modal-foot { flex: none; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--font-display); font-size: 21px; color: var(--plum-900); }
.modal-x { border: 0; background: var(--pink-50); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--plum-900); }
.modal-x:hover { background: var(--pink-100); }
.modal-body { padding: 22px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-body .field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.modal-body .field-row .field { margin-bottom: 0; }
.modal-body .field-row label { font-size: 12px; min-height: 30px; display: flex; align-items: flex-end; line-height: 1.25; }
.modal-body .field { margin-bottom: 16px; }
.modal-body .field:last-of-type { margin-bottom: 0; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text); margin-top: 6px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.modal-err { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 18px; }
.modal-foot { display: flex; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--line); }
.modal-foot .btn { flex: 1; }
.modal.modal-lg { max-width: 560px; }

/* On a phone the 20px overlay padding and 24px insets cost ~90px of a form
   that is already the tallest thing in the panel. */
@media (max-width: 560px) {
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .modal-head { padding: 16px 18px; }
  .modal-head h3 { font-size: 19px; }
  .modal-body { padding: 16px 18px; }
  .modal-foot { padding: 14px 18px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk-item { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.chk-item input { width: 17px; height: 17px; accent-color: var(--primary); }
.sched-list { display: grid; gap: 8px; }
.sched-row { display: flex; align-items: center; gap: 10px; }
.sched-day { display: flex; align-items: center; gap: 8px; width: 84px; flex: none; font-size: 14px; font-weight: 600; color: var(--plum-900); }
.sched-day input { width: 17px; height: 17px; accent-color: var(--primary); }
.sched-row input[type=time] { flex: 1; min-width: 0; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--text); background: #fff; }
.sched-row input[type=time]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.sched-dash { color: var(--text-muted); }
@media (max-width: 480px) { .chk-grid { grid-template-columns: 1fr; } .sched-day { width: 66px; } }
@media (max-width: 480px) { .modal-body .field-row { grid-template-columns: 1fr; } }

/* ---------- analytics ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-xs); margin-bottom: 22px; }
.presets { display: inline-flex; background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: var(--r-pill); padding: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.presets button { border: 0; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--text-muted); padding: 8px 15px; border-radius: var(--r-pill); transition: all .18s; }
.presets button.active { background: #fff; color: var(--primary-ink); box-shadow: var(--shadow-xs); }
.filter-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.filter-fields input, .filter-fields select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: 15px; font-family: inherit; background: #fff; color: var(--text); min-width: 140px; }
.filter-fields input:focus, .filter-fields select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.filter-fields .btn { padding: 11px 22px; }

.an-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.an-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-xs); }
.an-kpi .lbl { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.an-kpi .val { font-family: var(--font-display); font-size: 30px; color: var(--plum-900); line-height: 1; }
.an-kpi.hl { background: linear-gradient(160deg, var(--violet-600), var(--pink-600)); border: 0; }
.an-kpi.hl .lbl { color: rgba(255,255,255,.85); }
.an-kpi.hl .val { color: #fff; }

.chart-wrap { padding: 22px; overflow-x: auto; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 200px; padding-top: 10px; min-width: min-content; }
.chart .cbar { flex: 1 1 0; min-width: 5px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.chart .cbar .fill { background: linear-gradient(180deg, var(--pink-400), var(--violet-500)); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s var(--ease); }
.chart .cbar:hover .fill { background: linear-gradient(180deg, var(--pink-500), var(--violet-600)); }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 8px; padding: 0 2px; }
.chart-empty { text-align: center; color: var(--text-muted); padding: 40px; }

.an-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.an-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.an-row:last-child { border-bottom: 0; }
.an-row .an-name { font-weight: 600; color: var(--plum-900); }
.an-row .an-count { font-size: 12px; color: var(--text-muted); }
.an-row .an-dep { font-weight: 700; color: var(--success); }
.an-row.head { background: var(--pink-50); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.an-empty { padding: 34px; text-align: center; color: var(--text-muted); }

@media (max-width: 820px) { .an-kpis { grid-template-columns: 1fr 1fr; } .an-cols { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .an-kpis { grid-template-columns: 1fr 1fr; } .filter-fields input, .filter-fields select { min-width: 0; flex: 1; } .filter-fields label { flex: 1 1 40%; } }

/* ---------- salon settings ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.map-box { height: 320px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.leaflet-container { font-family: var(--font-body); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo-cell { position: relative; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; border: 2px solid var(--line); background: var(--pink-50); }
.photo-cell.cover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell .cover-tag { position: absolute; top: 8px; left: 8px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.photo-cell .pc-cover { position: absolute; bottom: 8px; left: 8px; background: rgba(255,255,255,.92); color: var(--plum-900); border: 0; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); cursor: pointer; opacity: 0; transition: opacity .18s; }
.photo-cell:hover .pc-cover { opacity: 1; }
.photo-cell .pc-del { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--danger); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .18s; }
.photo-cell:hover .pc-del { opacity: 1; }
/* touch devices have no hover, so the controls would never appear */
@media (hover: none) { .photo-cell .pc-del { opacity: 1; } }

/* ==========================================================================
   Account menu — the single sign-in control in the appbar (inc/account_menu.php)
   ========================================================================== */
.acct { position: relative; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 7px; max-width: 210px;
  border: 1px solid var(--line); background: var(--surface-solid);
  border-radius: var(--r-pill); padding: 7px 13px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--plum-900);
  transition: border-color .18s, box-shadow .18s;
}
.acct-btn:hover { border-color: var(--pink-300); box-shadow: var(--shadow-xs); }
.acct-btn svg { width: 16px; height: 16px; flex: none; color: var(--primary); }
.acct-btn .acct-chev { width: 14px; height: 14px; color: var(--text-muted); }
.acct-btn .acct-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn.on { border-color: var(--pink-300); background: var(--pink-50); }

.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 256px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 6px; display: grid; gap: 1px;
}
/* display:grid above outranks the [hidden] attribute's display:none */
.acct-menu[hidden] { display: none; }
.acct-sec {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); padding: 9px 11px 5px;
}
.acct-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: 9px; color: var(--plum-900);
}
.acct-item:hover { background: var(--pink-50); }
.acct-item .ai-ic {
  flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--pink-100); color: var(--primary);
}
.acct-item .ai-ic svg { width: 17px; height: 17px; }
.acct-item .ai-b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.acct-item .ai-n { font-size: 14px; font-weight: 600; }
.acct-item .ai-s { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-item.quiet .ai-n { font-weight: 500; font-size: 13.5px; color: var(--text-muted); }
.acct-item.quiet:hover .ai-n { color: var(--plum-900); }
.acct-sep { height: 1px; background: var(--line); margin: 5px 4px; }

@media (max-width: 640px) {
  .acct-btn { padding: 6px 10px; font-size: 13px; max-width: 130px; }
  .acct-menu { min-width: 220px; }
}

/* the role switcher's CSS lives inside inc/auth_roles.php — the sign-in pages
   do not load this stylesheet */

/* walk-in form on the dashboard */
.walkin { padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--pink-50); }
.walkin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 860px) { .walkin-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .walkin-grid { grid-template-columns: 1fr; } }

/* branch picker on the venue page — one swipeable row on a phone */
.salon-branch { font-weight: 500; color: var(--text-muted); }
.branch-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 26px; border-bottom: 1px solid var(--line); background: var(--pink-50);
}
.bs-label {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
}
.bs-label svg { width: 15px; height: 15px; color: var(--primary); }
.bs-items {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.bs-items::-webkit-scrollbar { display: none; }
.bs-item {
  flex: none; display: flex; flex-direction: column; gap: 1px;
  padding: 7px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-solid);
  transition: border-color .18s, box-shadow .18s;
}
.bs-item:hover { border-color: var(--pink-300); box-shadow: var(--shadow-xs); }
.bs-item strong { font-size: 14px; font-weight: 600; color: var(--plum-900); white-space: nowrap; }
.bs-item small { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.bs-item.on { border-color: var(--cta); background: var(--pink-100); }
.bs-item.on strong { color: var(--primary-ink); }
@media (max-width: 620px) {
  .branch-strip { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
  .bs-items { width: 100%; }
}

/* chain marker on a directory card */
.card-chain {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--pink-100); color: var(--primary-ink);
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.card-chain svg { flex: none; }

/* ==========================================================================
   Branches — the appbar switcher and the list in settings
   ========================================================================== */
.branch-pick { position: relative; }
.bp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface-solid);
  border-radius: var(--r-pill); padding: 7px 12px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--plum-900);
  transition: border-color .18s, box-shadow .18s;
}
.bp-btn:hover { border-color: var(--pink-300); box-shadow: var(--shadow-xs); }
.bp-btn svg { width: 15px; height: 15px; color: var(--primary); flex: none; }
.bp-btn .bp-chev { width: 14px; height: 14px; color: var(--text-muted); }
.bp-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 236px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 6px; display: grid; gap: 2px;
}
/* `display: grid` above beats the [hidden] attribute's display:none, so the
   menu would sit permanently open without this. */
.bp-menu[hidden] { display: none; }
.bp-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 9px 11px; border-radius: 9px; font: inherit; color: var(--plum-900);
}
.bp-item:hover { background: var(--pink-50); }
.bp-item.on { background: var(--pink-100); }
.bp-item .bp-n { font-size: 14px; font-weight: 600; }
.bp-item .bp-a { font-size: 12px; color: var(--text-muted); }
.bp-manage {
  display: block; margin-top: 4px; padding: 9px 11px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--primary-ink);
}
.bp-manage:hover { text-decoration: underline; }

.branch-list { display: grid; gap: 8px; }
.branch-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
  background: var(--surface-solid);
}
.branch-row.on { border-color: var(--primary); background: var(--pink-50); }
.br-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--pink-100); color: var(--primary);
}
.br-ic svg { width: 18px; height: 18px; }
.br-b { flex: 1; min-width: 0; }
.br-b strong { display: block; font-size: 14.5px; color: var(--plum-900); }
.br-b small { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.br-tag {
  flex: none; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--cta);
  padding: 3px 10px; border-radius: var(--r-pill);
}
/* A location that is not live yet. Amber, not the CTA colour: "current" and
   "waiting to be paid for" are opposite states and must not share a badge. */
.br-tag.warn { background: var(--warning); }
.branch-row .mini-btn.ok { flex: none; }
.branch-new { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.branch-new-acts { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

@media (max-width: 560px) {
  .bp-btn { padding: 6px 10px; font-size: 13px; }
  .bp-menu { right: auto; left: 0; min-width: 200px; }
}

/* the cover banner, previewed at the shape it is actually shown in */
.panel-hint { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; }
/* ==========================================================================
   Profile media — the cover and the galleries
   --------------------------------------------------------------------------
   These are the only things on the settings page a customer ever sees, so they
   sit at the top and are shown at the size and shape they are actually used
   at: 8:3 is the banner's ratio on the venue page, and a cover that looks right
   here looks right there.
   ========================================================================== */
.media-panel .panel-head { align-items: baseline; }
.media-head-note { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.media-body { padding: 18px 22px 22px; }
.media-hint { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 8px 0 0; }
.media-sec { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.media-sec-head { display: flex; align-items: baseline; gap: 10px; }
.media-sec-head h4 { font-size: 15px; font-weight: 800; color: var(--plum-900); }
.media-count { margin-left: auto; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.media-sec .photo-grid { margin-top: 12px; }

/* the cover, at the shape it is used */
.cover-hero {
  position: relative; aspect-ratio: 8 / 3; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--pink-50);
}
.cover-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-hero.empty {
  border: 2px dashed var(--pink-300); display: grid; place-items: center;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.cover-hero.empty:hover, .cover-hero.drop { border-color: var(--primary); background: var(--pink-100); }
.ch-empty { display: grid; justify-items: center; gap: 6px; color: var(--text-muted); text-align: center; padding: 16px; }
.ch-empty b { font-size: 15px; color: var(--plum-900); font-weight: 700; }
.ch-empty span { font-size: 13px; }

/* Actions live on the image. Always visible on touch, where there is no hover
   and an invisible control is simply a missing one. */
.cover-hero .ch-actions {
  position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px;
  opacity: 0; transition: opacity .18s;
}
.cover-hero:hover .ch-actions, .cover-hero:focus-within .ch-actions { opacity: 1; }
@media (hover: none) { .cover-hero .ch-actions { opacity: 1; } }
.ch-btn {
  border: 0; border-radius: var(--r-pill); padding: 8px 16px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--plum-900);
  background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(26,18,12,.18);
}
.ch-btn:hover { background: #fff; }
.ch-btn.danger { color: var(--danger); }

/* the add tile, at the end of a gallery row */
.photo-add {
  aspect-ratio: 4/3; border: 2px dashed var(--pink-300); border-radius: var(--r-md);
  background: var(--pink-50); color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: 4px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.photo-add:hover { border-color: var(--primary); color: var(--primary-ink); background: var(--pink-100); }

/* a refusal, said where the person is already looking */
.media-msg {
  margin-top: 12px; padding: 11px 14px; border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.5;
}
.media-msg.err { background: #FCF3F1; border: 1px solid #E4A9A2; color: #C0392B; }
.media-msg.info { background: var(--pink-50); border: 1px solid var(--pink-300); color: var(--text-muted); }

/* while a file is in flight */
.busy { position: relative; pointer-events: none; }
.busy::after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55);
  border-radius: inherit;
}

@media (max-width: 560px) {
  .media-body { padding: 14px 16px 18px; }
  .cover-hero { aspect-ratio: 3 / 2; }        /* a banner this wide is unreadable on a phone */
  .ch-btn { min-height: 44px; padding: 0 18px; font-size: 13.5px; }
}
.settings-save-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 0; margin-top: 6px; }
.save-msg { font-size: 14px; font-weight: 600; }
.save-msg.ok { color: var(--success); }
.save-msg.err { color: var(--danger); }
@media (max-width: 560px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- salon cover + gallery + map on booking page ---------- */
/* Two labelled strips — "our work" and "interior" — sharing one lightbox. */
.gallery-block + .gallery-block { margin-top: 20px; }
.gallery-title {
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--plum-900);
  margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px;
}
.gallery-title span {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--text-muted);
  background: var(--pink-100); border-radius: var(--r-pill); padding: 1px 8px;
}
.gallery-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 2px; scroll-snap-type: x proximity; }
.gallery-strip img { height: 128px; width: 168px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); flex: none; cursor: zoom-in; scroll-snap-align: start; transition: transform .18s var(--ease); }
.gallery-strip img:hover { transform: scale(1.03); }
@media (max-width: 560px) { .gallery-strip img { height: 104px; width: 138px; } }
.contact-block { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contact-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); }
.contact-item svg { width: 17px; height: 17px; color: var(--primary); flex: none; }
.contact-item a { color: var(--cta-ink); font-weight: 600; }
.about-text { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.book-map { height: 240px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); margin-top: 14px; z-index: 0; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(20,8,16,.88); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }

/* ---------- explore / directory ---------- */
.explore-head { text-align: center; margin-bottom: 26px; }
.explore-head h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); color: var(--plum-900); margin-bottom: 8px; }
.explore-head p { color: var(--text-muted); font-size: 17px; }
.chip-filters { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--text-muted); font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: var(--r-pill); transition: all .18s; }
.fchip:hover { border-color: var(--pink-300); color: var(--plum-900); }
.fchip.on { background: var(--cta); border-color: var(--cta); color: #fff; }
.fchip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.fchip.on .dot { background: #fff; }
.fchip .pct { font-weight: 800; }
.results-count { margin-left: auto; font-size: 14px; color: var(--text-muted); }

.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ==========================================================================
   Explore — split view (list + sticky map), TheFork-style
   ========================================================================== */
.explore-main { max-width: 1320px; }
.explore-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 22px; align-items: start; }
.explore-split .explore-grid { grid-template-columns: repeat(2, 1fr); }

.explore-map-col { position: sticky; top: 84px; }
.explore-map {
  height: calc(100vh - 140px); min-height: 460px; border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; background: var(--pink-50);
}
.map-note { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* List/map switch — full width, directly above the filter bar. Shown only on
   narrow screens (the wide layout has both panes side by side). */
.ex-view { display: flex; width: 100%; margin: 0 0 14px; }
.ex-view button { flex: 1; justify-content: center; padding: 12px 8px; font-size: 15px; }

/* map pins — labelled with the venue name */
.ub-pin {
  background: var(--primary); color: #fff; font-weight: 700; font-size: 12.5px;
  border-radius: 999px; padding: 5px 11px;
  max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 3px 10px rgba(30,28,25,.28); border: 2px solid #fff;
  /* the icon has no fixed size, so centre the label on its coordinate here */
  transform: translate(-50%, -50%) scale(1);
  transition: transform .16s var(--ease), background .16s;
}
.ub-pin.on, .ub-pin:hover { background: var(--plum-900); transform: translate(-50%, -50%) scale(1.08); z-index: 500; }
.leaflet-marker-icon.ub-pin-wrap { background: transparent; border: 0; width: auto !important; }

/* popup card */
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 244px !important; }
.mp { display: block; color: inherit; }
.mp-link { display: block; color: inherit; text-decoration: none; }
.mp-img { height: 96px; background: linear-gradient(135deg, var(--pink-400), var(--violet-500)); background-size: cover; background-position: center; }
.mp-b { padding: 11px 13px 4px; }
.mp-b h4 { font-size: 15px; color: var(--plum-900); margin-bottom: 3px; }
.mp-meta { font-size: 12.5px; color: var(--text-muted); }
.mp-addr { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mp-price { font-size: 13px; font-weight: 800; color: var(--primary-ink); margin-top: 7px; }
.mp-acts { display: flex; gap: 7px; padding: 10px 13px 12px; }
.mp-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 34px; border-radius: 8px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  transition: background .16s, color .16s;
}
.mp-btn.primary { background: var(--primary); color: #fff; }
.mp-btn.primary:hover { background: var(--pink-600); }
.mp-btn.ghost { background: #fff; color: var(--primary-ink); border: 1px solid var(--line); }
.mp-btn.ghost:hover { background: var(--pink-50); border-color: var(--primary); }

/* card highlight when its pin is hovered */
.salon-card.hl { border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100), var(--shadow-md); }

@media (max-width: 1100px) {
  .results-count { margin-left: auto; }
  .explore-split { grid-template-columns: 1fr; }
  .explore-map-col { position: static; display: none; }
  .explore-split .explore-grid { grid-template-columns: repeat(2, 1fr); }
  /* mobile/tablet: the toggle switches between the two */
  .explore-split.show-map .explore-list { display: none; }
  .explore-split.show-map .explore-map-col { display: block; }
  .explore-map { height: 70vh; }
}
@media (min-width: 1101px) { .ex-view { display: none; } }
@media (max-width: 700px) { .explore-split .explore-grid { grid-template-columns: 1fr; } }
.salon-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.salon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.salon-card .card-top { height: 84px; background: var(--tone-1); position: relative; display: flex; align-items: flex-end; padding: 14px; }
.salon-card.t1 .card-top { background: var(--tone-1); }
.salon-card.t2 .card-top { background: var(--tone-2); }
.salon-card.t3 .card-top { background: var(--tone-3); }
.salon-card.t4 .card-top { background: var(--tone-4); }
.salon-card.t5 .card-top { background: var(--tone-5); }
.salon-card.t6 .card-top { background: var(--tone-6); }
.salon-card .card-logo { position: absolute; left: 18px; bottom: -22px; width: 56px; height: 56px; border-radius: 16px; background: #fff; border: 3px solid #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--primary-ink); }
.salon-card .card-offer { margin-left: auto; background: linear-gradient(135deg, var(--acc-coral), var(--acc-coral-d)); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }
.salon-card .card-hot { position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.95); color: var(--acc-berry); font-weight: 800; font-size: 11px; letter-spacing: .04em; padding: 4px 9px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }
.salon-card .card-rating-row { margin-bottom: 8px; }
.card-rating { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--text-muted); }
.card-rating .star { color: var(--line); font-size: 14px; line-height: 1; }
.card-rating .star.on { color: var(--acc-amber); }
.card-rating b { color: var(--plum-900); margin-left: 4px; }
.card-rating .rc { margin-left: 2px; }
.card-rating.new { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cta-ink); background: var(--pink-100); padding: 2px 9px; border-radius: var(--r-pill); }
.fchip-hot.on { background: var(--acc-coral); border-color: var(--acc-coral); }
.fchip-hot svg { color: var(--acc-coral); }
.fchip-hot.on svg { color: #fff; }
.salon-card .card-body { padding: 30px 18px 16px; flex: 1; }
.salon-card h3 { font-size: 19px; color: var(--plum-900); margin-bottom: 6px; }
.salon-card .card-meta { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; }
.salon-card .card-meta svg { flex: none; }
.salon-card .card-offers { font-size: 12.5px; color: var(--acc-coral-d); background: #FCF3F1; border: 1px solid #F0C9C3; border-radius: 10px; padding: 7px 10px; margin-bottom: 12px; }
.salon-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.salon-card .card-price { font-weight: 700; color: var(--plum-900); font-size: 15px; }
.salon-card .card-svc { font-size: 13px; color: var(--text-muted); }
.salon-card .card-free { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--success); }
.salon-card .card-free .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
/* ---- the salon's own package block ---- */
.plan-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 20px; }
.plan-card > .plan-vip { grid-column: 1 / -1; }
/* The rule only separates VIP from the package above it. On commission terms
   there is no package, so the block would open with a stray line. */
.plan-card > .plan-vip:not(:first-child) { border-top: 1px solid var(--line); padding-top: 16px; }
.plan-lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 700; }
.plan-name { font-family: var(--font-display); font-size: 26px; color: var(--plum-900); margin-top: 3px; }
.plan-price { font-size: 21px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.plan-price span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.plan-feat { margin: 12px 0 0; padding-left: 18px; }
.plan-feat li { font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.plan-side { display: flex; flex-direction: column; gap: 8px; align-content: start; }
.plan-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13.5px; color: var(--text-muted); padding: 8px 0; border-bottom: 1px dashed var(--pink-200); }
.plan-kv b { color: var(--plum-900); font-weight: 700; white-space: nowrap; }
.plan-kv.bad b { color: var(--danger); }
.plan-warn { font-size: 12.5px; color: var(--danger); line-height: 1.5; margin: 4px 0 0; }
.plan-hint { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 6px 0 0; }
.plan-vip-on { display: flex; align-items: center; gap: 8px; font-size: 13.5px;
  color: var(--text); margin: 8px 0 0; flex-wrap: wrap; }
.vip-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 10px; margin-top: 12px; }
.vip-opt { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 13px; min-width: 0; }
.vip-opt.on { border-color: var(--primary); background: var(--pink-50); }
.vip-nm { font-weight: 800; font-size: 14px; color: var(--plum-900); }
.vip-pr { font-size: 18px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.vip-pr span { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.vip-opt ul { margin: 8px 0 10px; padding-left: 16px; }
.vip-opt li { font-size: 12.5px; color: var(--text-muted); margin-bottom: 3px; line-height: 1.4; }
.vip-opt .btn { width: 100%; justify-content: center; padding: 8px 10px; font-size: 13px; }
.badge.vip-tag { color: #fff; }
.badge.vip-tag.vip-s { background: linear-gradient(135deg, #C8A468, #9A7942); }
.badge.vip-tag.vip-m { background: linear-gradient(135deg, #A9B6C2, #6F7D8B); }
.badge.vip-tag.vip-x { background: linear-gradient(135deg, #C4684A, #8A3A22); }
@media (max-width: 720px) { .plan-card { grid-template-columns: 1fr; padding: 16px 16px; } }

/* ---- paid placement ----
   Three tiers, told apart by the frame colour rather than by size or position
   alone, so the difference survives on a phone where only one card is visible.
   The card keeps its own shadow; only the border and a small corner tag change,
   which is enough to read as "featured" without shouting over the photo. */
.salon-card.vip { position: relative; }
.salon-card .card-vip { position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .06em; color: #fff; box-shadow: 0 2px 8px rgba(10,10,10,.22); }

.salon-card.vip-s { border-color: #B08D57; box-shadow: 0 0 0 2px rgba(176,141,87,.28), var(--shadow-sm); }
.salon-card.vip-s .card-vip { background: linear-gradient(135deg, #C8A468, #9A7942); }

.salon-card.vip-m { border-color: #8E9BA8; box-shadow: 0 0 0 2px rgba(142,155,168,.32), var(--shadow-sm); }
.salon-card.vip-m .card-vip { background: linear-gradient(135deg, #A9B6C2, #6F7D8B); }

/* The top tier is the only one that gets the brand colour — if every tier
   glowed, none of them would mean anything. */
.salon-card.vip-x { border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100), var(--shadow-md); }
.salon-card.vip-x .card-vip { background: linear-gradient(135deg, #C4684A, #8A3A22); }

/* Deliberately quiet — this is a disclosure, not a selling point. Loud styling
   here would read as a warning and push clients away from paying venues. */
.salon-card .card-paid { display: inline-flex; align-items: center; margin-top: 10px; margin-left: 10px;
  padding: 3px 9px; border-radius: 999px; background: var(--pink-50); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.salon-card .card-free + .card-paid { margin-left: 10px; }
.salon-card .card-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line); color: var(--cta-ink); font-weight: 700; font-size: 15px; transition: background .2s; }
.salon-card:hover .card-cta { background: var(--pink-50); }
.explore-empty { grid-column: 1/-1; text-align: center; color: var(--text-muted); padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty-reset { display: inline-block; margin-left: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--pink-50); color: var(--primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.empty-reset:hover { background: var(--pink-100); }

@media (max-width: 860px) { .explore-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore-grid { grid-template-columns: 1fr; } .results-count { margin-left: 0; width: 100%; } }

/* ---------- clients ---------- */
.cl-search { width: 100%; max-width: 320px; padding: 11px 15px; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: 15px; font-family: inherit; background: #fff; }
.cl-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.cl-row { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr 1.1fr; gap: 12px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cl-row:last-child { border-bottom: 0; }
.cl-row.head { background: var(--pink-50); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.cl-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cl-name .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.cl-name .nm { font-weight: 600; color: var(--plum-900); }
.cl-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 1px; }
.cl-showphone { display: none; }
.cl-visits { font-weight: 700; color: var(--plum-900); }
.cl-dep { font-weight: 700; color: var(--success); }
.cl-acct { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--cta-ink); background: var(--pink-100); padding: 2px 7px; border-radius: var(--r-pill); vertical-align: middle; }
.cl-guest { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); background: var(--pink-50); border: 1px solid var(--line); padding: 2px 7px; border-radius: var(--r-pill); vertical-align: middle; }
@media (max-width: 640px) {
  .cl-row { grid-template-columns: 2fr 1fr 1fr; padding: 13px 16px; }
  .cl-hide { display: none; }
  .cl-showphone { display: block; }
}

/* responsive */
@media (max-width: 860px) {
  .booking-shell { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .stepper .st .lbl { display: none; }
  .stepper .st { flex: none; }
  .stepper .bar { min-width: 16px; }
  /* .brow used to be squeezed to three columns here with the time and the
     status column hidden outright — which meant the confirm and cancel buttons
     did not exist on a phone at all. The stacked card layout further down
     replaces this; nothing about .brow belongs in this block any more. */
}
@media (max-width: 620px) {
  /* The bar used to wrap onto two lines and hide every nav link. It now stays
     one row with icon-only links (see the 780px block), so it must not wrap
     and the links must not be hidden. */
  .appbar-spacer { display: none; }
  .appbar .brand { margin-right: auto; }
  .view-tabs { order: 5; width: 100%; }
  .view-tabs button { flex: 1; justify-content: center; }
}
@media (max-width: 560px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-head h1 { font-size: 24px; }
  .app-main { padding: 22px 14px 60px; }
}

/* ==========================================================================
   Crawlable index of every business (explore.php footer). The cards above are
   built by JavaScript, so these plain links are what a crawler follows.
   ========================================================================== */

/* ==========================================================================
   Homepage (index.php) — warm editorial directory.
   Order on the page: video hero with the search card on it → category rail →
   map behind a button → listings → why → locations → app → crawlable index.
   ========================================================================== */
.app-body.home { background: var(--bg); }
.appbar-link { font-size: 14.5px; font-weight: 600; color: var(--text-muted); padding: 8px 12px; border-radius: var(--r-pill); transition: background .2s, color .2s; }
.appbar-link:hover { background: var(--pink-100); color: var(--plum-900); }

/* --------------------------------------------------------------------------
   Hero. A muted looping clip sits behind a warm scrim that is heaviest on the
   left, where the headline is — so the type always has contrast no matter what
   frame is showing. If assets/hero.mp4 is missing the poster still shows, and
   if that is missing too the espresso background carries the section.
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--plum-900); color: #fff;
  padding: 78px 0 66px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* the scrim: warm, directional, plus a soft floor so the trust row stays legible */
.home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(102deg, rgba(18,11,7,.93) 0%, rgba(18,11,7,.78) 34%, rgba(18,11,7,.38) 68%, rgba(18,11,7,.55) 100%),
    linear-gradient(to top, rgba(18,11,7,.62), rgba(18,11,7,0) 42%);
}
.home-hero-in { position: relative; z-index: 1; text-align: left; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 11px; margin-bottom: 20px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: rgba(255, 255, 255, .45); }

.home-h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(33px, 5.1vw, 60px); line-height: 1.07; letter-spacing: -0.015em;
  color: #fff; max-width: 20ch; margin: 0 0 20px;
}
.home-h1 em { font-style: italic; color: #EFC4A6; }
.hero-sub {
  max-width: 48ch; margin: 0 0 34px;
  font-size: clamp(15.5px, 1.5vw, 18px); line-height: 1.65; color: rgba(255, 255, 255, .8);
}

/* search card — one white slab on the dark field, the brightest thing on screen */
.home-search {
  display: flex; align-items: stretch; gap: 0;
  background: var(--surface-solid); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 8px; max-width: 780px;
}
.hs-field { display: flex; align-items: center; gap: 11px; padding: 0 16px; flex: 1; min-width: 0; }
.hs-field svg { width: 19px; height: 19px; color: var(--primary); flex: none; }
.hs-field input, .hs-field select {
  border: 0; outline: none; background: transparent; font: inherit; font-size: 15.5px;
  color: var(--text); width: 100%; min-width: 0; padding: 14px 0; appearance: none;
}
.hs-field input::placeholder { color: var(--pink-400); }
.hs-area { flex: 0 1 230px; }
.hs-sep { width: 1px; background: var(--line); margin: 12px 0; flex: none; }
.hs-go {
  flex: none; border: 0; background: var(--cta); color: #fff;
  font-weight: 700; font-size: 14.5px; text-transform: uppercase; letter-spacing: .05em;
  padding: 0 32px; border-radius: var(--r-md);
  transition: background .18s var(--ease), box-shadow .18s var(--ease);
}
.hs-go:hover { background: var(--cta-ink); box-shadow: var(--shadow-glow); }

.home-trust {
  display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 30px;
  font-size: 14px; color: rgba(255, 255, 255, .68);
}
.home-trust b { color: #fff; font-weight: 700; }

/* --------------------------------------------------------------------------
   Category rail. A row of cards, not a squeezed 8-column grid: they share the
   width when they fit and become one swipeable row when they do not, so the
   longest Georgian label never forces a wrap.
   -------------------------------------------------------------------------- */
.cat-band { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cat-band-in { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.cat-rail {
  display: flex; gap: 10px; padding: 24px 0; overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.hcat {
  flex: 1 0 124px; min-width: 124px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  padding: 18px 10px 15px; border-radius: var(--r-lg);
  background: var(--surface-solid); border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.hcat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--pink-300); }
.ct-ic {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink-100); color: var(--primary); transition: background .18s, color .18s;
}
.ct-ic svg { width: 26px; height: 26px; }
.ct-n { font-size: 13px; font-weight: 600; color: var(--plum-900); text-align: center; white-space: nowrap; }
.hcat.on { background: var(--cta); border-color: var(--cta); }
.hcat.on .ct-ic { background: rgba(255, 255, 255, .2); color: #fff; }
.hcat.on .ct-n { color: #fff; }

/* --------------------------------------------------------------------------
   Section furniture shared by the blocks below the fold
   -------------------------------------------------------------------------- */
.home-sec-h,
.home-res-head h2,
.home-dir h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(23px, 2.6vw, 30px);
  color: var(--plum-900); letter-spacing: -0.01em;
}

/* "open the map" — the tiles only download once this is tapped */
.home-map-sec { margin: 6px 0 8px; }
.map-open {
  width: 100%; display: flex; align-items: center; gap: 15px; text-align: left;
  padding: 17px 19px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--pink-50);
  box-shadow: var(--shadow-xs); transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.map-open:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); border-color: var(--pink-300); }
.mo-ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--cta); color: #fff;
}
.mo-ic svg { width: 21px; height: 21px; }
.mo-t { flex: 1; min-width: 0; }
.mo-t strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--plum-900); }
.mo-t small { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.mo-ar { flex: none; color: var(--text-muted); line-height: 0; }
.mo-ar svg { width: 20px; height: 20px; }

.home-map-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.home-map-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--plum-900); }
.home-map-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.home-map {
  height: 400px; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden; background: var(--pink-50);
}

/* listings */
.home-results { margin-top: 44px; }
.home-res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.home-res-tools { display: flex; align-items: center; gap: 14px; }
.home-sort { padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-md); font: inherit; font-size: 14.5px; background: var(--surface-solid); color: var(--text); }
.home-sort:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.home-results .chip-filters { margin-top: 0; margin-bottom: 22px; }
.home-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* why us — three quiet cards rather than a bare row of icons */
.home-why {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line);
}
.why-item { background: var(--pink-50); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.why-ic {
  width: 50px; height: 50px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--primary); margin-bottom: 16px;
}
.why-ic svg { width: 26px; height: 26px; }
.why-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--plum-900); margin-bottom: 8px; }
.why-item p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* browse by location */
.home-dir { margin-top: 60px; padding-top: 44px; border-top: 1px solid var(--line); }
.home-dir h2 { margin-bottom: 18px; }
.home-dir h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin: 22px 0 11px; font-weight: 700; }
.dir-links { display: flex; flex-wrap: wrap; gap: 9px; }
.dir-links a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: 14.5px; color: var(--plum-900); transition: all .18s;
}
.dir-links a:hover { border-color: var(--primary); color: var(--primary-ink); }
.dir-links a span { font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--pink-100); border-radius: var(--r-pill); padding: 1px 8px; }

/* app block */
.home-app {
  display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: center;
  margin-top: 60px; padding: 44px 46px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--pink-100) 0%, var(--pink-50) 60%, #FFF6EC 100%);
  border: 1px solid var(--line);
}
.app-copy h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--plum-900); margin-bottom: 12px; }
.app-copy p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--text-muted); max-width: 480px; }
.app-shot { display: flex; justify-content: center; }
.as-phone {
  width: 188px; height: 326px; border-radius: 30px; background: var(--plum-900); padding: 8px;
  box-shadow: var(--shadow-lg); position: relative;
}
.as-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 62px; height: 15px; background: var(--plum-900); border-radius: 0 0 10px 10px; z-index: 2; }
.as-screen { height: 100%; border-radius: 23px; background: var(--bg); padding: 24px 12px 12px; overflow: hidden; }
.as-bar { text-align: center; margin-bottom: 12px; }
.as-logo { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--plum-900); }
.as-logo b { color: var(--primary); }
.as-search { height: 26px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line); margin-bottom: 12px; }
.as-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.as-tiles i { display: block; height: 34px; border-radius: 9px; background: var(--surface-solid); border: 1px solid var(--line); }
.as-card { height: 52px; border-radius: 11px; background: var(--surface-solid); border: 1px solid var(--line); margin-bottom: 8px; padding: 7px; display: flex; flex-direction: column; gap: 5px; }
.as-card span { display: block; height: 18px; border-radius: 5px; background: var(--tone-1); }
.as-card em { display: block; height: 7px; width: 60%; border-radius: 4px; background: var(--pink-100); }
.as-card:nth-of-type(3) span { background: var(--tone-2); }

/* --------------------------------------------------------------------------
   Owner CTA + footer
   -------------------------------------------------------------------------- */
.home-owner {
  background: var(--plum-900); color: #fff; margin-top: 64px; padding: 54px 0;
  position: relative; overflow: hidden;
}
.home-owner::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(180, 87, 58, .55), transparent 62%); pointer-events: none;
}
.home-owner-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.home-owner h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.home-owner p { margin: 0; color: rgba(255, 255, 255, .76); max-width: 540px; font-size: 15.5px; line-height: 1.65; }
.home-owner-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.home-owner .btn-primary { background: var(--cta); color: #fff; border: 0; }
.home-owner .btn-primary:hover { background: #C96A4B; }
.home-owner .btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .38); color: #fff; backdrop-filter: none; }
.home-owner .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.home-foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding: 48px 0 32px; }
.foot-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-muted); max-width: 300px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--plum-900); margin-bottom: 13px; font-weight: 700; }
.foot-col a { display: block; font-size: 14.5px; color: var(--text-muted); padding: 5px 0; }
.foot-col a:hover { color: var(--primary-ink); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); }
.home-copy { font-size: 13.5px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) {
  .home-why { grid-template-columns: 1fr; gap: 16px; }
  .home-app { grid-template-columns: minmax(0, 1fr); padding: 34px 28px; text-align: center; }
  .app-copy p { margin-left: auto; margin-right: auto; }
  /* .btn is white-space: nowrap, so this button's min-content width was the
     full length of its label — 349px. A grid track cannot be narrower than its
     widest item's min-content, so that single button held the whole block
     17px wider than a 375px phone and the page could be dragged sideways.
     Letting the label wrap drops the track to 289px. */
  .home-app .btn { white-space: normal; max-width: 100%; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 900px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) {
  .home-hero { padding: 48px 0 44px; }
  .home-h1 { max-width: none; }
  .hero-sub { margin-bottom: 26px; }
  /* the pill becomes a stacked card — a one-line search bar is unusable here */
  .home-search { flex-direction: column; padding: 8px; gap: 2px; }
  .hs-sep { width: auto; height: 1px; margin: 0 14px; }
  .hs-area { flex: 1 1 auto; }
  .hs-go { padding: 15px 20px; margin-top: 6px; }
  .home-trust { margin-top: 22px; font-size: 13px; gap: 8px 20px; }
  .cat-rail { padding: 18px 0; gap: 8px; }
  .hcat { flex: 0 0 106px; min-width: 106px; padding: 15px 8px 12px; }
  .ct-ic { width: 42px; height: 42px; } .ct-ic svg { width: 22px; height: 22px; }
  .ct-n { font-size: 12px; }
  .home-map { height: 320px; }
  .home-results { margin-top: 30px; }
}
@media (max-width: 640px) {
  /* the bar has to stay one row — wrapping pushed the language switcher onto
     a second line and shoved "log in" off the right edge */
  .appbar-inner { gap: 6px; height: 58px; min-width: 0; }
  .appbar-install { display: none !important; }
  .appbar-link, .appbar-back { padding: 6px 8px; font-size: 13.5px; }
  .appbar .brand { font-size: 17px; }
  .appbar .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .appbar .lang button { padding: 5px 9px; font-size: 12px; }

  /* Shrinking the items was still not enough at 375px: brand + "for business" +
     the account menu + the language switch came to ~460px, so the switch hung
     85px outside the bar and dragged the whole document with it — that is the
     sideways pull you feel on a phone.
     The nav links go instead of the account control or the language switch:
     both of those are the only route to what they do, while "for business" is
     also in the footer of every page. */
  .appbar-link { display: none !important; }
  .appbar .brand, .appbar .lang, .acct-wrap { flex: none; }
}
@media (max-width: 560px) {
  .home-grid { grid-template-columns: 1fr; }
  .map-open { padding: 14px; gap: 12px; }
  .mo-t small { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .as-phone { width: 160px; height: 280px; }
}

/* ==========================================================================
   "Add to home screen" bar (assets/js/pwa.js)
   ========================================================================== */
.a2hs {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9000;
  display: flex; align-items: center; gap: 13px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 13px 14px;
  transform: translateY(140%); opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
  max-width: 460px; margin: 0 auto;
}
.a2hs.on { transform: translateY(0); opacity: 1; }
.a2hs-ic img { display: block; width: 44px; height: 44px; border-radius: 12px; }
.a2hs-b { flex: 1; min-width: 0; }
.a2hs-b strong { display: block; font-size: 14.5px; color: var(--plum-900); line-height: 1.25; }
.a2hs-b span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.a2hs-acts { display: flex; gap: 8px; margin-top: 10px; }
.a2hs-go {
  border: 0; background: var(--cta); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 9px 18px; border-radius: 8px;
}
.a2hs-go:hover { background: var(--cta-ink); }
.a2hs-later { border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; padding: 9px 6px; }
.a2hs-x { border: 0; background: transparent; color: var(--text-muted); align-self: flex-start; padding: 2px; line-height: 0; }
.a2hs-x:hover { color: var(--plum-900); }

/* header "install app" link */
.appbar-install { display: none; }
@media (display-mode: browser) { .appbar-install { display: inline-flex; } }

/* ==========================================================================
   Booking / salon page — warm minimalist header, no coloured banner. The card
   border does the separating; the gradient wash gives it warmth.
   ========================================================================== */
body.booking .salon-hero {
  background: linear-gradient(135deg, #FFF7EF 0%, var(--pink-50) 55%, #FBF1E6 100%);
  color: var(--plum-900);
  border-bottom: 1px solid var(--line);
  padding: 28px 26px 24px;
}
/* Cover banner above the header block. The business picked this image, so it
   runs full-bleed and unfiltered; the header below carries the text instead of
   sitting on top of it. */
/* The height lives on the container and the image is told to fill it, rather
   than sizing the image by aspect-ratio alone. If the ratio ever fails to
   apply — an old browser, or a stale stylesheet — an unconstrained image would
   otherwise overflow this box and, because the box is positioned, paint on top
   of the venue name below it. overflow:hidden makes that impossible. */
.salon-cover {
  position: relative; background: var(--pink-100); line-height: 0; overflow: hidden;
  aspect-ratio: 16 / 5;
}
.salon-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@supports not (aspect-ratio: 16 / 5) { .salon-cover { height: 230px; } }
@media (max-width: 620px) {
  .salon-cover { aspect-ratio: 16 / 7; }
  @supports not (aspect-ratio: 16 / 7) { .salon-cover { height: 180px; } }
}
/* when a cover is present the logo tile overlaps the seam, Booksy-style */
.salon-cover + .salon-hero { padding-top: 20px; }
.salon-cover + .salon-hero .logo { margin-top: -46px; border: 3px solid #fff; }
body.booking .salon-hero .logo {
  background: var(--cta); color: #fff; border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
body.booking .salon-hero h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; }
body.booking .salon-hero p { color: var(--text-muted); }
body.booking .salon-hero .meta { color: var(--text-muted); }
body.booking .salon-hero .meta svg { color: var(--primary); opacity: .8; }
body.booking .stepper .st.done .dot { background: var(--pink-500); border-color: var(--pink-500); }
body.booking .stepper .bar.done { background: var(--pink-500); }
body.booking .success .check { background: var(--pink-100); }
body.booking .success .check svg { color: var(--pink-600); }

/* live "new booking" toast on the owner dashboard */
.live-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 9500;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--plum-900); color: #fff;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.live-toast.on { transform: translate(-50%, 0); opacity: 1; }
.live-toast svg { color: #EFC4A6; flex: none; }
@media (max-width: 560px) {
  .live-toast { left: 12px; right: 12px; bottom: 14px; transform: translateY(140%); justify-content: center; }
  .live-toast.on { transform: translateY(0); }
}

/* temporary admin-only "test payment" box under the pay button */
.testpay-box { margin-top: 12px; padding: 12px; border: 1px dashed var(--pink-300); border-radius: var(--r-md); background: var(--pink-50); }
.testpay-box p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); text-align: center; }

/* service description on the booking step */
.opt .info .svc-descr { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin: 3px 0 2px; }

/* ==========================================================================
   Merchant identification + accepted cards (inc/legal_footer.php)
   ========================================================================== */
.card-marks { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.card-marks svg { display: block; border-radius: 4px; }

.legal-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-muted);
}
.legal-foot .lf-id { font-weight: 600; color: var(--plum-900); }
.legal-foot .lf-contact a { color: var(--text-muted); }
.legal-foot .lf-contact a:hover { color: var(--primary-ink); text-decoration: underline; }
.legal-foot .card-marks { margin-left: auto; }
@media (max-width: 640px) {
  .legal-foot { gap: 8px; }
  .legal-foot .card-marks { margin-left: 0; }
}

/* labelled rows on contact.php and in the client offer */
.legal-id { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 10px 20px; margin: 0; }
.legal-id dt { font-size: 13px; color: var(--text-muted); }
.legal-id dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--plum-900); }
.legal-id dd a { color: var(--primary-ink); }
@media (max-width: 520px) {
  .legal-id { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-id dd { margin-bottom: 10px; }
}

/* legal line under the pay button (client offer + privacy) */
.pay-legal { font-size: 12px; line-height: 1.55; color: var(--text-muted); text-align: center; margin: 14px 0 0; }
.pay-legal a { color: var(--primary-ink); font-weight: 600; text-decoration: underline; }

/* small legal footer on the venue page */
.book-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-muted);
}
.book-legal a { color: var(--text-muted); }
.book-legal a:hover { color: var(--primary-ink); text-decoration: underline; }

/* ==========================================================================
   Bottom navigation (phones) + the search page
   ========================================================================== */

.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; }

/* ---- bottom tab bar ----
   The top bar cannot hold navigation on a phone — brand, links, account and
   language together overflowed the screen. This is where a thumb already is. */
.botnav { display: none; }
body.has-botnav { padding-bottom: 0; }

/* Jobs in the top bar, for the width where there is no bottom bar.
   The two are deliberately tied to the same 900px breakpoint below: above it
   the bottom bar is hidden and this link is the way to the board, under it the
   bottom bar carries it and this would be a second copy in a bar that is
   already short of room. */
.appbar-jobs.on { background: var(--pink-100); color: var(--plum-900); }

@media (max-width: 900px) {
  .appbar-jobs, .appbar-sec { display: none !important; }

  .botnav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid var(--line);
    /* clears the iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .botnav-i { display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 4px 8px; color: var(--text-muted); font-size: 11px; font-weight: 600;
    text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .botnav-i svg { width: 23px; height: 23px; }
  .botnav-i span { line-height: 1.1; text-align: center; }
  .botnav-i.on { color: var(--primary); }
  .botnav-i.on svg { stroke-width: 2.1; }
  /* Content must not end underneath the bar. */
  body.has-botnav { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body.has-botnav .home-foot { margin-bottom: 0; }
}

/* ---- "all filters and map" link beside the homepage chips ---- */
.cat-more { flex: none; align-self: center; margin-left: 10px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--primary); padding: 8px 12px;
  border-radius: var(--r-pill); }
.cat-more:hover { background: var(--pink-100); }
@media (max-width: 900px) {
  .cat-band-in { display: block; }
  .cat-more { display: block; margin: 8px 0 0; text-align: center; }
}

/* ---- search page ---- */
.search-main { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.srch-h1 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); color: var(--plum-900); margin-bottom: 16px; }
/* The sentence under a category heading. It is the only text on the page
   that is not a control or a venue name, which is what makes the page a
   page rather than the homepage with a filter applied. */
.srch-intro { max-width: 68ch; margin: -8px 0 18px; color: var(--ink-600, #6b5c55); font-size: 15px; line-height: 1.6; }

.srch-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.srch-form .hs-field { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: var(--r-md); background: var(--pink-50); }
.srch-form .hs-field svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.srch-form input, .srch-form select { flex: 1; min-width: 0; border: 0; background: none;
  font: inherit; font-size: 15px; color: var(--text); outline: none; }
.srch-form .hs-go { flex: none; }

/* The chips wrap into a grid here rather than scrolling: on a page whose whole
   job is filtering, a hidden filter is a missing one. */
.search-main .cat-rail { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible;
  padding: 0; margin-bottom: 14px; }
.search-main .hcat { flex: none; min-width: 0; flex-direction: row; align-items: center;
  gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); }
.search-main .hcat .ct-ic { width: 22px; height: 22px; border-radius: 7px; }
.search-main .hcat .ct-ic svg { width: 14px; height: 14px; }
.search-main .hcat .ct-n { font-size: 13.5px; }

.srch-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
.srch-view { flex: none; }
.srch-bar .results-count { margin-left: auto; }

.srch-body .srch-map-wrap { display: none; }
.srch-body.show-map .home-grid { display: none; }
.srch-body.show-map .srch-map-wrap { display: block; }
.srch-map-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.srch-map { height: min(70vh, 620px); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (max-width: 700px) {
  .search-main { padding: 16px 14px 40px; }
  .srch-map { height: 62vh; }
}

/* ---- search page: layout corrections ----
   A generic mobile rule elsewhere sets `.view-tabs { order: 5; width: 100% }`
   for a different filter bar. Full width suits a two-option switch, but order 5
   dropped it below the sort dropdown; it leads the bar here. */
.srch-bar .srch-view { order: -1; }

/* The form was a flex row: the two fields grew to fill and pushed the button on
   to a line of its own. A grid gives each part a defined share instead. */
.srch-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px) auto; align-items: center; }
@media (max-width: 760px) {
  .srch-form { grid-template-columns: minmax(0, 1fr); }
  .srch-form .hs-go { width: 100%; justify-content: center; }
  .srch-bar { gap: 10px; }
  .srch-bar .home-sort { flex: 1; }
  .srch-bar .results-count { margin-left: 0; }
}

/* ---- category rail: tiles size to their label ----
   The tiles were pinned to 106px, which fitted the old one-word categories
   ("სალონი") but not the service-led ones that replaced them: "წარბები და
   წამწამები" simply ran out over the tile beside it. Auto width with a floor
   keeps the row even without truncating anything. */
.cat-rail:not(.cat-wrap) .hcat { flex: 0 0 auto; min-width: 96px; }
.cat-rail:not(.cat-wrap) .ct-n { white-space: nowrap; }
@media (max-width: 900px) {
  .cat-rail:not(.cat-wrap) .hcat { flex: 0 0 auto; min-width: 92px; padding: 14px 14px 12px; }
}

/* ==========================================================================
   Vacancies — the public board (jobs.php) and the salon's own list.
   ========================================================================== */
.jobs-main { max-width: 1020px; }
.jobs-head h1 { font-family: var(--font-display); font-size: 34px; color: var(--plum-900); }
.jobs-head p { color: var(--text-muted); margin-top: 6px; font-size: 15px; }

.jobs-search { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow-sm); }
.jobs-search svg { color: var(--text-muted); flex: none; }
.jobs-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px;
  font-family: inherit; background: transparent; color: var(--text); padding: 10px 0; }
.jobs-search .btn { flex: none; }

/* Two rails: what the job is, then how and where. Wrapping rather than
   scrolling — a filter a thumb cannot find is a filter nobody uses. */
.jobs-filters { display: grid; gap: 8px; margin-bottom: 18px; }
.jf-row { display: flex; flex-wrap: wrap; gap: 7px; }
.jf { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600;
  color: var(--plum-900); text-decoration: none; transition: background .15s, border-color .15s; }
.jf:hover { border-color: var(--primary); }
.jf.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.jf.sm { font-size: 12.5px; padding: 5px 11px; color: var(--text-muted); font-weight: 500; }
.jf.sm.on { color: #fff; }

.jobs-count { color: var(--text-muted); font-size: 13.5px; margin-bottom: 10px; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 14px; }

.job-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 17px; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--pink-200); }
.jc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jc-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary-ink); background: var(--pink-50); padding: 3px 9px; border-radius: 999px; }
.jc-age { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.job-card h3 { font-size: 17px; color: var(--plum-900); margin: 10px 0 2px; line-height: 1.3; }
.jc-org { font-size: 13.5px; color: var(--text-muted); }
.jc-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 8px 0 0; }
.jc-foot { margin-top: auto; padding-top: 12px; }
.jc-pay { display: block; font-size: 15px; font-weight: 800; color: var(--primary-ink); }
.jc-meta { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.jobs-empty { text-align: center; padding: 48px 20px; }
.jobs-empty h1, .jobs-empty h2 { font-family: var(--font-display); font-size: 24px; color: var(--plum-900); }
.jobs-empty p { color: var(--text-muted); margin: 8px 0 16px; }

.jobs-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-top: 26px; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--pink-50); border: 1px solid var(--line); }
.jobs-cta strong { display: block; color: var(--plum-900); font-size: 15px; }
.jobs-cta span { font-size: 13.5px; color: var(--text-muted); }

/* ---- one posting ---- */
.jobs-back { display: inline-block; margin-bottom: 14px; color: var(--text-muted);
  text-decoration: none; font-size: 14px; }
.jobs-back:hover { color: var(--primary); }
.job-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px 30px; box-shadow: var(--shadow-sm); }
.job-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--primary-ink); }
.job-detail h1 { font-family: var(--font-display); font-size: 30px; color: var(--plum-900); margin: 6px 0 4px; }
.job-org { font-size: 15px; color: var(--primary); text-decoration: none; font-weight: 600; }
.job-org:hover { text-decoration: underline; }
.job-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.job-facts span { font-size: 13.5px; color: var(--text-muted); }

.job-pay { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 18px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--pink-50); }
.job-pay .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.job-pay .v { font-size: 21px; font-weight: 800; color: var(--primary-ink); }
.job-pay .t { font-size: 13px; color: var(--text-muted); }

.job-sec { margin-top: 20px; }
.job-sec h2 { font-size: 15px; color: var(--plum-900); margin-bottom: 8px; }
.job-sec p { font-size: 14.5px; color: var(--text); line-height: 1.65; margin-bottom: 8px; }
.job-sec ul { margin: 0 0 8px; padding-left: 20px; }
.job-sec li { font-size: 14.5px; color: var(--text); line-height: 1.6; margin-bottom: 5px; }

.job-apply { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.job-apply h2 { font-size: 17px; color: var(--plum-900); margin-bottom: 12px; }
.job-direct { display: flex; gap: 10px; flex-wrap: wrap; }
.job-or { font-size: 13.5px; color: var(--text-muted); margin: 14px 0 10px; }
.job-msg { font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.job-msg.ok { color: var(--success); }
.job-msg.err { color: var(--danger); }
@media (max-width: 560px) { .job-detail { padding: 20px 18px; } .job-detail h1 { font-size: 24px; } }

/* ---- the salon's own list ---- */
.vac-row { border-top: 1px solid var(--line); padding: 14px 20px; }
.vac-row:first-child { border-top: 0; }
.vac-row.off { opacity: .6; }
.vac-main { min-width: 0; }
.vac-t { font-weight: 700; color: var(--plum-900); font-size: 15px; display: flex;
  align-items: center; gap: 8px; flex-wrap: wrap; }
.vac-m { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.vac-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.vac-new { background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; }

.vac-apps { margin-top: 12px; border-left: 3px solid var(--pink-200); padding-left: 12px; }
.vac-apps-h { font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vac-app { padding: 9px 0; border-bottom: 1px dashed var(--pink-200); }
.vac-app:last-child { border-bottom: 0; }
.vac-app.new { background: linear-gradient(90deg, var(--pink-50), transparent); }
.va-n { font-weight: 700; color: var(--plum-900); font-size: 14px; }
.va-c { font-size: 13px; margin-top: 2px; }
.va-c a { color: var(--primary); text-decoration: none; }
.va-e { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.va-m { font-size: 13px; color: var(--text); margin-top: 5px; line-height: 1.5; white-space: pre-wrap; }
.va-d { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.va-noem { color: var(--text-muted); font-style: italic; }
/* A decided application steps back visually so the undecided ones stand out —
   the list is a queue of people waiting on an answer, and the ones who already
   have theirs are just history. */
.vac-app.s-accepted, .vac-app.s-rejected { opacity: .68; }
.va-iv { margin-top: 6px; padding: 8px 11px; border-radius: var(--r-md);
  background: var(--pink-50); font-size: 12.5px; color: var(--text); line-height: 1.5; }
.va-iv b { color: var(--plum-900); }
.va-iv .note, .va-iv.note { color: var(--text-muted); white-space: pre-wrap; margin-top: 3px; }
.va-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* interview / decision modal */
#decideModal .dc-who { font-weight: 700; color: var(--plum-900); margin-bottom: 12px; }
#decideModal .dc-warn { background: #fff7ed; border: 1px solid #fed7aa;
  color: #92400e; padding: 9px 12px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 14px; }
#decideModal .dc-msg { font-size: 13px; color: var(--text-muted); margin-top: 10px; min-height: 18px; }
#decideModal .af { display: block; margin-bottom: 12px; min-width: 0; }
#decideModal .af > span { display: block; font-size: 13px; font-weight: 700;
  color: var(--plum-900); margin-bottom: 6px; }
#decideModal .af input, #decideModal .af textarea {
  width: 100%; max-width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-size: 15px; font-family: inherit; color: var(--text);
  background: #fff; resize: vertical; }
#decideModal .af input:focus, #decideModal .af textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
#decideModal .af-row { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }

/* The apply form. .af/.af-row were defined inline on the signup page only, so
   the same markup arrived here with no styling at all — fields need to live in
   app.css if more than one page uses them. */
.job-apply .af { margin-bottom: 12px; min-width: 0; }
.job-apply .af label { display: block; font-size: 13px; font-weight: 700;
  color: var(--plum-900); margin-bottom: 6px; }
.job-apply .af input, .job-apply .af textarea {
  width: 100%; max-width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-size: 15px; font-family: inherit; color: var(--text);
  background: #fff; resize: vertical; }
.job-apply .af input:focus, .job-apply .af textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.job-apply .af-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px; }
.job-apply form .btn { margin-top: 4px; }

/* ==========================================================================
   SALON PANEL — side menu
   The panel was one column and seven panels tall. Everything below the fold
   was, in practice, unused: staff and services were four screens down, and
   vacancies further still. Each panel is a page now and the menu stays put.
   ========================================================================== */
.app-main.app-wide { max-width: 1240px; }

.dash-shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 26px; align-items: start; }

.dash-side { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(17,12,20,.05)); }
.ds-nav { display: flex; flex-direction: column; gap: 2px; }
.ds-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.ds-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px;
  border: 0; background: none; border-radius: var(--r-md); cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted);
  text-align: left; text-decoration: none; transition: background .16s, color .16s; }
.ds-i svg { width: 18px; height: 18px; flex: none; }
.ds-i span { flex: 1; min-width: 0; }
.ds-i:hover { background: var(--pink-50); color: var(--plum-900); }
.ds-i.on { background: var(--primary); color: #fff; }
.ds-i.on:hover { background: var(--primary); color: #fff; }
/* A count would be a lie the moment one is read; a dot only says "something
   is here", which is all the menu needs to say. */
.ds-badge { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.ds-i.on .ds-badge { background: #fff; }

.dash-page { display: none; }
.dash-page.on { display: block; }
.dash-page > .panel:first-child, .dash-page > .plan-card:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .dash-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* A strip that scrolls sideways, not a column that eats the screen. */
  .dash-side { position: sticky; top: 58px; z-index: 30; padding: 6px;
    border-radius: var(--r-md); display: flex; align-items: center; gap: 6px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .dash-side::-webkit-scrollbar { display: none; }
  .ds-nav { flex-direction: row; gap: 4px; }
  .ds-sep { width: 1px; height: 22px; margin: 0 2px; flex: none; }
  .ds-i { padding: 8px 12px; white-space: nowrap; font-size: 13.5px; }
  .ds-i span { flex: none; }
}

/* ---------- stylist portraits ---------- */
/* In the salon's own staff list. */
.stf-thumb { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px; flex: none; overflow: hidden; }
.stf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stf-score { font-size: 12px; font-weight: 700; color: #E8A33D; white-space: nowrap; }
.stf-score i { font-style: normal; color: var(--text-muted); font-weight: 600; }

/* The uploader in the staff editor. */
.staff-photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.staff-photo-pic { width: 76px; height: 76px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 800; font-size: 26px; background: var(--pink-200); }
.staff-photo-pic.has { background: var(--pink-100); }
.staff-photo-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-photo-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.staff-photo-hint { flex-basis: 100%; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.staff-photo-act .mini-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   SALON PANEL — overview page
   Two controls at the top, then the dashboard. Both controls are <details>,
   so they work before any JavaScript runs and take no room when shut.
   ========================================================================== */
.ov-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 14px; margin-bottom: 18px; }
.ov-drop { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ov-drop > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; list-style: none; user-select: none; }
.ov-drop > summary::-webkit-details-marker { display: none; }
.ov-drop > summary:hover { background: var(--pink-50); }
.ov-k { font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; flex: none; }
.ov-v { flex: 1; min-width: 0; font-size: 14px; color: var(--text);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.ov-v b { color: var(--plum-900); font-weight: 800; }
.ov-caret { width: 18px; height: 18px; flex: none; color: var(--text-muted); transition: transform .18s; }
.ov-drop[open] > summary .ov-caret { transform: rotate(180deg); }
.ov-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
/* Say it rather than rely on the browser's own details styling: the collapse
   is the whole point of the control, and it must not depend on a UA default. */
.ov-drop:not([open]) > .ov-body { display: none; }
.ov-kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px;
  border-bottom: 1px dashed var(--pink-200); }
.ov-kv:last-of-type { border-bottom: 0; }
.ov-kv b { color: var(--plum-900); }
.ov-kv.bad b { color: var(--danger); }
.ov-feat { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--text-muted); }
.ov-feat li { padding: 3px 0 3px 16px; position: relative; }
.ov-feat li::before { content: "·"; position: absolute; left: 5px; font-weight: 800; color: var(--primary); }
.ov-sub { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .05em; margin: 14px 0 8px; }
.ov-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.ov-plan { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 11px 12px; text-align: center; }
.ov-plan.on { border-color: var(--primary); background: var(--pink-50); }
.ov-plan-n { font-weight: 700; color: var(--plum-900); font-size: 14px; }
.ov-plan-p { font-size: 18px; font-weight: 800; color: var(--primary-ink); margin: 3px 0 8px; }
.ov-plan-p span { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.ov-plan-cur { font-size: 12px; font-weight: 700; color: var(--primary); }
.ov-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-top: 10px; }

/* how many days of VIP */
.vip-days { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 14px; }
.vip-day { padding: 7px 13px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-pill);
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s; }
.vip-day:hover { border-color: var(--primary); color: var(--plum-900); }
.vip-day.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.vip-total { font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.vip-total b { font-size: 16px; color: var(--plum-900); }

/* ---------- the dashboard proper ---------- */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 14px; margin-top: 18px; }
.ov-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px 17px; }
.ov-week { grid-column: span 2; }
@media (max-width: 700px) { .ov-week { grid-column: span 1; } }
.ov-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ov-card-h h3 { font-size: 14px; font-weight: 700; color: var(--plum-900); }
.ov-card-h span { font-size: 12.5px; color: var(--text-muted); }

/* seven bars, one per day */
.ov-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.ov-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; }
.ov-bar-n { font-size: 12px; font-weight: 800; color: var(--plum-900); height: 14px; }
.ov-bar-t { flex: 1; width: 100%; display: flex; align-items: flex-end;
  background: var(--pink-50); border-radius: 6px; overflow: hidden; }
.ov-bar-t i { display: block; width: 100%; background: linear-gradient(180deg, var(--primary), var(--primary-ink)); }
.ov-bar.today .ov-bar-t i { background: linear-gradient(180deg, #E8A33D, #C08A4E); }
.ov-bar-d { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.ov-big { font-size: 34px; font-weight: 800; color: var(--plum-900); line-height: 1.1; }
.ov-big span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.ov-next { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--pink-200); font-size: 13.5px; }
.ov-next b { color: var(--primary-ink); font-size: 15px; }
.ov-next-s { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.ov-next.quiet { color: var(--text-muted); }

.ov-list { display: flex; flex-direction: column; gap: 9px; }
.ov-lrow { display: grid; grid-template-columns: minmax(0, 1fr) 84px 26px; align-items: center; gap: 9px; }
.ov-lname { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-lname i { font-style: normal; font-size: 11.5px; color: #E8A33D; font-weight: 700; }
.ov-ltrack { height: 7px; background: var(--pink-50); border-radius: 4px; overflow: hidden; }
.ov-ltrack i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.ov-lnum { font-size: 12.5px; font-weight: 800; color: var(--plum-900); text-align: right; }
.ov-empty { font-size: 13px; color: var(--text-muted); padding: 6px 0; }

/* An unpaid job posting — not on the board until it is paid for. */
.vac-unpaid { margin-top: 5px; font-size: 12.5px; color: #92400e; background: #fff7ed;
  border: 1px solid #fed7aa; border-radius: var(--r-md); padding: 6px 10px; }

/* The price a new location will actually be billed, next to the package's list
   price when a chain discount applies. */
.chain-price {
  margin: 8px 0 0; padding: 9px 12px; border-radius: var(--r-md);
  background: var(--pink-50); border: 1px solid var(--pink-300);
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.chain-price b { color: var(--plum-900); }
.chain-price .cp-now { font-size: 15px; color: var(--primary-ink); margin-left: 4px; }
.chain-price s { color: var(--text-muted); opacity: .75; margin-left: 2px; }

/* ==========================================================================
   Invoices — their own page in the owner panel
   --------------------------------------------------------------------------
   They used to be a banner across the top of the whole panel. A business sees
   that every day for the ten days it has to pay, and a warning seen every day
   stops being read — so the debt now lives on a page of its own and colours the
   menu instead.
   ========================================================================== */
.ds-i.owing { color: var(--danger); font-weight: 700; }
.ds-i.owing svg { color: var(--danger); }
.ds-i.owing.on { color: #fff; }              /* selected wins: white on primary */
.ds-badge.red { background: var(--danger); }
.ds-i.on .ds-badge.red { background: #fff; }

.ph-note { margin-left: auto; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ph-note.danger { color: var(--danger); font-weight: 700; }

.inv-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.inv-row:last-child { border-bottom: 0; }
.inv-main { flex: 1; min-width: 0; }
.inv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--plum-900); }
.inv-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.inv-amt { flex: none; font-weight: 800; font-size: 16px; color: var(--plum-900); font-variant-numeric: tabular-nums; }
.inv-acts { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-acts .btn { padding: 7px 14px; font-size: 13px; }
.inv-pay-msg { font-size: 12.5px; color: var(--text-muted); }

.inv-st { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); color: #fff; }
.inv-st.paid { background: var(--success); }
.inv-st.open { background: var(--warning); }
.inv-st.late { background: var(--danger); }
.inv-st.void { background: var(--text-muted); }

/* Why a location is missing from the catalogue, said on the invoice that is
   holding it there rather than left for the business to work out. */
.inv-branch { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.inv-branch.off {
  color: #C0392B; background: #FCF3F1; border: 1px solid #E4A9A2;
  border-radius: var(--r-md); padding: 7px 10px; line-height: 1.45;
}
.inv-row.late .inv-amt { color: var(--danger); }

@media (max-width: 620px) {
  .inv-row { flex-wrap: wrap; }
  .inv-main { flex: 1 1 100%; }
  .inv-amt { order: 2; }
  .inv-acts { order: 3; margin-left: auto; }
  /* Pressed with a thumb here, so big enough to hit. */
  .inv-acts .btn, .inv-acts .mini-btn { min-height: 42px; display: inline-flex; align-items: center; }
}

/* ==========================================================================
   Vacancy moderation queue
   --------------------------------------------------------------------------
   The whole posting is on the card, because a decision made without reading it
   is not moderation — and a link to read it is a click nobody makes on a busy
   day.
   ========================================================================== */
.vq-card { margin-bottom: 12px; }
.vq-head { display: flex; align-items: flex-start; gap: 12px; }
.vq-head b { font-size: 15.5px; color: var(--plum-900); }
.vq-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.vq-sub a { color: var(--primary-ink); }
.vq-tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vq-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); color: #fff; white-space: nowrap; }
.vq-tag.paid   { background: var(--success); }
.vq-tag.unpaid { background: var(--danger); }
.vq-tag.free   { background: var(--text-muted); }
.vq-tag.warn   { background: var(--warning); }

.vq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 12px 0; }

.vq-text { margin: 10px 0; padding-left: 12px; border-left: 2px solid var(--line); }
.vq-text i { display: block; font-style: normal; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.vq-text p { font-size: 13.5px; line-height: 1.5; color: var(--text); margin: 0 0 4px; }

.vq-contact { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 0; }

.vq-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line); }
.vq-acts .btn { padding: 8px 16px; font-size: 13.5px; }
.vq-note { flex: 1; min-width: 200px; padding: 8px 11px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-family: inherit; font-size: 13px; }
.vq-note:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pink-100); }
.vq-msg { font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 620px) {
  .vq-head { flex-direction: column; }
  .vq-tags { margin-left: 0; justify-content: flex-start; }
  .vq-acts .btn, .vq-acts .mini-btn { min-height: 42px; display: inline-flex; align-items: center; }
  .vq-note { flex: 1 1 100%; min-height: 42px; }
}
/* A rejection is not the same as an unpaid posting — it needs a reason read, not
   a button pressed. */
.vac-unpaid.bad { color: #C0392B; background: #FCF3F1; border-color: #E4A9A2; }

/* ==========================================================================
   Candidate register
   --------------------------------------------------------------------------
   Two questions get asked of this screen, both of them late: who was hired, and
   what did that person's CV say. So the outcome sits in the table rather than
   behind a click, and the reason the business gave sits under it — a refusal
   without a reason is the row that generates the phone call.
   ========================================================================== */
.reg-filters { margin: 0 0 14px; }
.reg-filters .fchip { min-height: 42px; }

.reg-when { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; }
/* The business's own words, quoted. Wide rows already scroll, so this one wraps
   instead: a reason cut off at the edge is worse than no reason. */
.reg-note { font-size: 12px; color: var(--text); margin-top: 4px; padding-left: 8px;
  border-left: 2px solid var(--line); max-width: 260px; white-space: pre-wrap; }

/* Opening a CV is the one thing this table is tapped for on a phone, and a 30px
   link inside a sideways-scrolling table is a target you miss and scroll instead. */
@media (max-width: 620px) {
  .reg-tbl .mini-btn { min-height: 42px; display: inline-flex; align-items: center; }
  .reg-note { max-width: 200px; }
}
/* The cap, admitted. Quiet, but present whenever it applies. */
.reg-cap { margin: 0 20px 4px; font-size: 12.5px; color: var(--text-muted); }

/* ==========================================================================
   Blog — the public list and one article (blog.php)
   --------------------------------------------------------------------------
   Reading, not scanning. So: one column of measured width for the body, a real
   serif for headings, and enough line height that a long Georgian paragraph
   does not turn into a wall. Everything else on the site is a tool; this is the
   only place a person is expected to stay still and read.
   ========================================================================== */
.bl-main { max-width: 1080px; }

.bl-head { text-align: center; padding: 8px 0 4px; }
.bl-head h1 { font-family: var(--font-display); font-size: 40px; color: var(--plum-900); }
.bl-head p { color: var(--text-muted); margin-top: 8px; font-size: 16px; }

/* ---- the list ---- */
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px; margin: 26px 0 10px; }

.bl-card { display: flex; flex-direction: column; background: var(--surface-solid);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* A fixed 16:9 frame, so a set of covers of assorted sizes still reads as a
   tidy row rather than a ransom note. */
.bl-card-img { aspect-ratio: 16 / 9; background: var(--pink-100); overflow: hidden; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Only reachable through a hand-edited row: the editor will not save a post
   without a picture. Kept so such a row cannot collapse the card. */
.bl-card-noimg { background: linear-gradient(135deg, var(--pink-100), var(--pink-200)); }
.bl-card-b { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.bl-card-meta { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 600; }
.bl-card h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.3;
  color: var(--plum-900); }
.bl-card p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.bl-pages { display: flex; justify-content: center; gap: 8px; margin: 28px 0 10px; flex-wrap: wrap; }
.bl-pages a, .bl-pages span { min-width: 42px; min-height: 42px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px;
  color: var(--text-muted); }
.bl-pages a:hover { border-color: var(--pink-300); color: var(--plum-900); }
.bl-pages span.on { background: var(--cta); border-color: var(--cta); color: #fff; }

/* ---- one article ---- */
.bl-back { display: inline-flex; align-items: center; min-height: 42px; font-weight: 600;
  font-size: 14px; color: var(--primary-ink); }
.bl-back::before { content: "←"; margin-right: 8px; }

.bl-article { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 40px 40px; box-shadow: var(--shadow-sm); margin: 8px 0 24px; }
.bl-article > header h1 { font-family: var(--font-display); font-size: 36px; line-height: 1.22;
  color: var(--plum-900); }
.bl-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px;
  font-size: 13px; color: var(--text-muted); }
.bl-meta span { position: relative; }
.bl-meta span + span::before { content: "·"; position: absolute; left: -10px; }

.bl-hero { margin: 24px 0 8px; }
.bl-hero img { width: 100%; height: auto; display: block; border-radius: var(--r-md);
  background: var(--pink-100); }
.bl-hero figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 8px;
  text-align: center; }

/* The one line that decides whether the rest gets read. */
.bl-lead { font-size: 18.5px; line-height: 1.6; color: var(--plum-800); font-weight: 500;
  margin: 22px 0 4px; padding-left: 16px; border-left: 3px solid var(--pink-300); }

/* 68ch, so a line ends where the eye can still find the next one. */
.bl-body { max-width: 68ch; margin-top: 20px; }
.bl-body p { font-size: 16.5px; line-height: 1.75; color: var(--text); margin: 0 0 18px; }
.bl-body h2 { font-family: var(--font-display); font-size: 25px; line-height: 1.3;
  color: var(--plum-900); margin: 32px 0 12px; }
.bl-body h3 { font-size: 19px; font-weight: 700; color: var(--plum-900); margin: 26px 0 10px; }
.bl-body ul { margin: 0 0 18px; padding-left: 22px; }
.bl-body li { font-size: 16.5px; line-height: 1.7; color: var(--text); margin-bottom: 8px;
  list-style: disc; }
.bl-body blockquote { margin: 22px 0; padding: 16px 20px; background: var(--pink-50);
  border-left: 3px solid var(--primary); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 17px; line-height: 1.65; color: var(--plum-800); font-style: italic; }
.bl-body a { color: var(--primary-ink); text-decoration: underline;
  text-underline-offset: 2px; }
.bl-body strong { font-weight: 700; color: var(--plum-900); }

.bl-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: var(--r-lg);
  padding: 22px 26px; margin: 8px 0 28px; }
.bl-cta .t { font-family: var(--font-display); font-size: 21px; color: var(--plum-900); }
.bl-cta .b { font-size: 14.5px; color: var(--text-muted); margin-top: 5px; max-width: 52ch; }
.bl-cta-acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.bl-more-h { font-family: var(--font-display); font-size: 24px; color: var(--plum-900);
  margin: 6px 0 0; }

.bl-empty { text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 46px 24px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.bl-empty h1, .bl-empty h2 { font-family: var(--font-display); font-size: 26px; color: var(--plum-900); }
.bl-empty p { color: var(--text-muted); margin: 10px 0 20px; }

.bl-foot { margin-top: 20px; }

@media (max-width: 620px) {
  .bl-head h1 { font-size: 30px; }
  .bl-article { padding: 22px 18px 28px; border-radius: var(--r-md); }
  .bl-article > header h1 { font-size: 26px; }
  .bl-body p, .bl-body li { font-size: 16px; }
  .bl-lead { font-size: 17px; padding-left: 12px; }
  .bl-cta { padding: 18px; }
  .bl-cta-acts { margin-left: 0; width: 100%; }
  .bl-cta-acts .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Blog editor (admin panel)
   --------------------------------------------------------------------------
   The picture sits at the top and shows itself, because a post without one is
   refused and "choose a file" hidden under four text fields is how that
   happens. Everything else is the panel's own field styling.
   ========================================================================== */
.bl-form { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; }

.bl-img-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
/* 16:9, the shape the card and the article will use, so what is chosen here is
   what will be seen there. */
.bl-img-prev { flex: none; width: 260px; aspect-ratio: 16 / 9; border-radius: var(--r-md);
  background: var(--pink-100); border: 1.5px dashed var(--pink-300); overflow: hidden;
  display: grid; place-items: center; }
.bl-img-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-img-prev span { font-size: 12.5px; color: var(--text-muted); text-align: center; padding: 0 12px; }
.bl-img-b { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start; }
.bl-file { min-height: 42px; display: inline-flex; align-items: center; }
.bl-img-hint { font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.bl-img-name { font-size: 12.5px; font-weight: 700; color: var(--plum-900); word-break: break-all; }

.bl-fld { display: block; }
.bl-fld > span { display: block; font-size: 13px; font-weight: 700; color: var(--plum-900);
  margin-bottom: 6px; }
.bl-fld input, .bl-fld textarea { width: 100%; padding: 10px 12px; font-size: 15px;
  font-family: inherit; color: var(--plum-900); border: 1px solid var(--line);
  border-radius: 10px; background: #fff; }
/* The body is the field this screen exists for, so it gets a comfortable
   measure and line height rather than the site's default input treatment. */
.bl-fld textarea { line-height: 1.6; resize: vertical; }
.bl-fld input:focus, .bl-fld textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--pink-100); }
.bl-fld small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5;
  color: var(--text-muted); }
.bl-fld small b { color: var(--plum-900); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.bl-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--line); }
.bl-pub { display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
  font-size: 14px; font-weight: 600; color: var(--plum-900); }
.bl-pub input { width: 18px; height: 18px; accent-color: var(--primary); }
.bl-msg { font-size: 13px; font-weight: 600; }
.bl-msg.ok { color: var(--success); }
.bl-msg.err { color: var(--danger); }

.bl-adm-th { width: 64px; height: 40px; object-fit: cover; border-radius: 8px;
  display: block; background: var(--pink-100); }
.bl-adm-th.noimg { display: grid; place-items: center; color: var(--text-muted); font-size: 12px; }
.bl-adm-slug { font-size: 11.5px; color: var(--text-muted); margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.bl-adm-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 620px) {
  .bl-img-prev { width: 100%; }
  .bl-adm-acts .mini-btn { min-height: 42px; display: inline-flex; align-items: center; }
  .bl-acts .btn { flex: 1; justify-content: center; }
  /* 16px exactly: iOS zooms the whole page when a field smaller than that
     takes focus, and writing an article on a phone then happens at 130%
     with the toolbar off screen. */
  .bl-form input, .bl-form textarea { font-size: 16px; }
}

/* ==========================================================================
   Shop — the public grid and one product (shop.php)
   --------------------------------------------------------------------------
   A product is a picture and a price, in that order. So the cell is a square
   photograph with the price directly under it in the heaviest weight on the
   page, and the shop name in the lightest — a buyer decides on the thing
   first, then checks who has it.
   ========================================================================== */
.sp-main { max-width: 1180px; }

.sp-head { text-align: center; padding: 8px 0 2px; }
.sp-head h1 { font-family: var(--font-display); font-size: 38px; color: var(--plum-900); }
.sp-head p { color: var(--text-muted); margin-top: 8px; font-size: 15.5px; }

.sp-search { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow-sm); }
.sp-search svg { color: var(--text-muted); flex: none; }
.sp-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px;
  font-family: inherit; background: transparent; color: var(--text); padding: 10px 0; }
.sp-search .btn { flex: none; }

.sp-cats { margin: 0 0 12px; }

/* Sort and price sit on one line with the stock switch: three controls a buyer
   reaches for together should not be three separate places. */
.sp-tools { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--pink-50); border: 1px solid var(--pink-200);
  border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 18px; }
.sp-tool { display: block; }
.sp-tool > span { display: block; font-size: 12px; font-weight: 700; color: var(--plum-900);
  margin-bottom: 5px; }
.sp-tool select, .sp-tool input { padding: 9px 11px; font-size: 16px; font-family: inherit;
  color: var(--plum-900); border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  min-height: 42px; }
.sp-tool.narrow input { width: 104px; }
.sp-tool select:focus, .sp-tool input:focus { outline: none; border-color: var(--primary); }
.sp-check { display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
  font-size: 14px; font-weight: 600; color: var(--plum-900); }
.sp-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.sp-clear { align-self: center; font-size: 13.5px; font-weight: 600; color: var(--primary-ink);
  min-height: 42px; display: inline-flex; align-items: center; }

.sp-count { font-size: 13.5px; color: var(--text-muted); margin-bottom: 12px; }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px; margin-bottom: 10px; }

.sp-card { display: flex; flex-direction: column; background: var(--surface-solid);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-xs); transition: transform .16s, box-shadow .16s; }
.sp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sp-card-img { position: relative; aspect-ratio: 1 / 1; background: var(--pink-100); }
.sp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-noimg { position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200)); }
/* A sold-out card is dimmed rather than hidden: somebody searching for it should
   learn that this business stocks it, not that it does not exist. */
.sp-card.out .sp-card-img img { opacity: .45; }
.sp-off { position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: var(--r-pill);
  font-style: normal; }
.sp-off.big { top: 14px; left: 14px; font-size: 14px; padding: 5px 12px; }
.sp-out { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(26,18,12,.82);
  color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 6px 4px;
  font-style: normal; }

.sp-card-b { padding: 12px 13px 15px; display: flex; flex-direction: column; gap: 5px; }
.sp-brand { font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); }
.sp-brand.big { font-size: 13px; letter-spacing: .04em; margin-top: 2px; }
.sp-card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--plum-900); }
.sp-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sp-price b { font-size: 18px; font-weight: 800; color: var(--plum-900); }
.sp-price s { font-size: 13.5px; color: var(--text-muted); }
.sp-price .sp-unit { font-size: 12.5px; color: var(--text-muted); }
.sp-price.big b { font-size: 30px; }
.sp-price.big s { font-size: 17px; }
.sp-seller { font-size: 12.5px; color: var(--text-muted); }

/* ---- one product ---- */
.sp-back { display: inline-flex; align-items: center; min-height: 42px; font-weight: 600;
  font-size: 14px; color: var(--primary-ink); }
.sp-back::before { content: "\2190"; margin-right: 8px; }

.sp-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); margin: 8px 0 26px; }
.sp-photo { position: relative; align-self: start; border-radius: var(--r-md);
  overflow: hidden; background: var(--pink-100); aspect-ratio: 1 / 1; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sp-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--primary-ink); }
.sp-info h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.25;
  color: var(--plum-900); margin-top: 6px; }
.sp-price.big { margin: 16px 0 10px; }

.sp-stock { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px;
  font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); }
.sp-stock.in { background: var(--success-bg); color: var(--success); }
.sp-stock.no { background: #FCF3F1; color: var(--danger); }

.sp-sold { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.sp-sold a { color: var(--primary-ink); font-weight: 700; }
.sp-sold span { display: block; font-size: 13px; margin-top: 3px; }

.sp-desc { margin-top: 18px; }
.sp-desc p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 10px; }

.sp-order { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sp-order h2 { font-family: var(--font-display); font-size: 21px; color: var(--plum-900); }
.sp-order-hint { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 6px 0 14px; }
.sp-order-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sp-order-row label { flex: 1 1 150px; min-width: 0; }
.sp-order-row .sp-qty { flex: 0 0 100px; }
.sp-order label, .sp-order-full { display: block; margin-bottom: 12px; }
.sp-order label > span { display: block; font-size: 12.5px; font-weight: 700;
  color: var(--plum-900); margin-bottom: 5px; }
/* 16px: below that iOS zooms the page when the field takes focus, and this is
   the one form on the page where that would cost a sale. */
.sp-order input, .sp-order textarea { width: 100%; padding: 11px 12px; font-size: 16px;
  font-family: inherit; color: var(--plum-900); border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; min-height: 44px; }
.sp-order textarea { min-height: 62px; resize: vertical; line-height: 1.5; }
.sp-order input:focus, .sp-order textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--pink-100); }
.sp-order-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-total { font-size: 17px; font-weight: 800; color: var(--plum-900); }
.sp-msg { margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.sp-msg.ok { color: var(--success); }
.sp-msg.err { color: var(--danger); }

.sp-more-h { font-family: var(--font-display); font-size: 23px; color: var(--plum-900);
  margin: 4px 0 14px; }

.sp-sell { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--plum-900); color: #fff; border-radius: var(--r-lg);
  padding: 22px 26px; margin: 26px 0 10px; }
.sp-sell .t { font-family: var(--font-display); font-size: 21px; }
.sp-sell .b { font-size: 14px; opacity: .85; margin-top: 5px; max-width: 60ch; line-height: 1.55; }
.sp-sell .btn { margin-left: auto; }

.sp-empty { text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 46px 24px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.sp-empty h1, .sp-empty h2 { font-family: var(--font-display); font-size: 25px; color: var(--plum-900); }
.sp-empty p { color: var(--text-muted); margin: 10px 0 20px; }

@media (max-width: 820px) {
  .sp-detail { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .sp-photo { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 620px) {
  .sp-head h1 { font-size: 29px; }
  .sp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .sp-info h1 { font-size: 24px; }
  .sp-price.big b { font-size: 26px; }
  .sp-tools { padding: 12px; }
  .sp-tool, .sp-tool select { width: 100%; }
  .sp-tool.narrow { flex: 1; }
  .sp-tool.narrow input { width: 100%; }
  .sp-tools .btn { flex: 1 1 100%; justify-content: center; }
  .sp-sell .btn { margin-left: 0; width: 100%; justify-content: center; }
  .sp-order-foot .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Shop — the salon panel (dashboard.php) and the product editor
   --------------------------------------------------------------------------
   The commission is the first thing on the page and again above the button,
   because a business that discovers a percentage after the fact stops trusting
   everything else in the panel. It is a statement, not fine print, so it gets
   the size to match.
   ========================================================================== */
.prod-terms { display: flex; align-items: center; gap: 16px; margin: 0 20px 16px;
  background: var(--pink-50); border: 1px solid var(--pink-200);
  border-radius: var(--r-md); padding: 14px 16px; }
.prod-terms .pt-pc { flex: none; font-size: 26px; font-weight: 800; color: var(--primary);
  font-variant-numeric: tabular-nums; }
.prod-terms .pt-b b { display: block; font-size: 14.5px; color: var(--plum-900); }
.prod-terms .pt-b span { display: block; font-size: 12.5px; line-height: 1.5;
  color: var(--text-muted); margin-top: 4px; }

/* ---- one listing in the panel ---- */
.prod-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px;
  border-top: 1px solid var(--line); }
.prod-row:first-child { border-top: 0; }

.prod-thumb { position: relative; flex: none; width: 68px; height: 68px;
  border-radius: 10px; overflow: hidden; background: var(--pink-100); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-thumb span { position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200)); }
.prod-thumb i { position: absolute; top: 3px; left: 3px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: var(--r-pill);
  font-style: normal; }

.prod-main { flex: 1; min-width: 0; }
.prod-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prod-t b { font-size: 15px; color: var(--plum-900); }
.prod-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* What the buyer pays, what we take, what is left — on one line, so the
   business never has to work out the percentage itself. */
.prod-money { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.prod-money b { font-size: 17px; font-weight: 800; color: var(--plum-900); }
.prod-money s { font-size: 13px; color: var(--text-muted); }
.prod-fee { font-size: 12px; color: var(--text-muted); }

.prod-note { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin-top: 7px;
  padding-left: 10px; border-left: 2px solid var(--line); }
.prod-note.bad { color: #C0392B; border-color: #E4A9A2; }

.prod-stock { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px;
  font-size: 12.5px; color: var(--text-muted); }

.prod-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; }
.prod-acts .mini-btn { min-height: 34px; display: inline-flex; align-items: center;
  justify-content: center; white-space: nowrap; }

/* ---- orders ---- */
.ord-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px;
  border-top: 1px solid var(--line); }
.ord-row:first-child { border-top: 0; }
/* An unanswered order is the only thing on this screen that costs money when it
   is missed, so it is the only thing that is marked. */
.ord-row.fresh { background: var(--pink-50); }
.ord-main { flex: 1; min-width: 0; }
.ord-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px;
  color: var(--plum-900); }
.ord-who { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.ord-who a { color: var(--primary-ink); }
.ord-note { font-size: 12.5px; line-height: 1.5; color: var(--text); margin-top: 6px;
  padding-left: 10px; border-left: 2px solid var(--line); white-space: pre-wrap; }
.ord-money { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 7px;
  font-size: 13px; color: var(--text-muted); }
.ord-money b { font-size: 16px; color: var(--plum-900); }
.ord-acts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.ord-acts .mini-btn { min-height: 34px; display: inline-flex; align-items: center;
  justify-content: center; white-space: nowrap; }

/* ---- the editor ---- */
.prod-photo-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 16px; }
/* Square, the shape the shop will draw it in, so what is chosen here is what
   will be seen there. */
.prod-photo-prev { flex: none; width: 132px; height: 132px; border-radius: var(--r-md);
  background: var(--pink-100); border: 1.5px dashed var(--pink-300); overflow: hidden;
  display: grid; place-items: center; }
.prod-photo-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-photo-prev span { font-size: 12px; color: var(--text-muted); text-align: center; padding: 0 10px; }
.prod-photo-b { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start; }
.prod-file { min-height: 42px; display: inline-flex; align-items: center; }
.prod-photo-hint { font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.prod-photo-name { font-size: 12.5px; font-weight: 700; color: var(--plum-900); word-break: break-all; }

.prod-ack { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0;
  background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--text); }
.prod-ack input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); }
.prod-ack b { color: var(--plum-900); }

/* The arithmetic of one sale, redrawn as the price is typed. */
.prod-split { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.prod-split b { color: var(--plum-900); }

@media (max-width: 620px) {
  .prod-terms { flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 14px 14px; }
  .prod-row, .ord-row { flex-wrap: wrap; padding: 14px; }
  .prod-acts, .ord-acts { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .prod-acts .mini-btn, .ord-acts .mini-btn { min-height: 42px; flex: 1 1 auto; }
  .prod-photo-prev { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 260px; }
}

/* The moderation card. Photograph beside the facts, because the two questions
   asked here are "is that really the product" and "is that really the price". */
.sq-card { margin-bottom: 12px; }
.sq-top { display: flex; align-items: flex-start; gap: 14px; }
.sq-photo { flex: none; width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  background: var(--pink-100); display: grid; place-items: center; }
.sq-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-nophoto { font-size: 11px; color: var(--danger); text-align: center; padding: 0 6px; }
.sq-head { flex: 1; min-width: 0; }
.sq-head > b { font-size: 15.5px; color: var(--plum-900); }
.sq-money { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.sq-money b { font-size: 19px; font-weight: 800; color: var(--plum-900); }
.sq-money s { font-size: 13.5px; color: var(--text-muted); }
.sq-money i { font-size: 11.5px; font-weight: 800; font-style: normal; color: #fff;
  background: var(--danger); padding: 2px 7px; border-radius: var(--r-pill); }

@media (max-width: 620px) {
  .sq-top { flex-wrap: wrap; }
  .sq-photo { width: 76px; height: 76px; }
}

/* ==========================================================================
   The venue header on the booking page
   --------------------------------------------------------------------------
   The cover used to sit inside the left column of a two-column grid, which drew
   a photograph the business chose at roughly half the page width. It now spans
   the page, with the venue's details directly beneath it and the booking flow
   under that — the order a person actually reads in: what is this place, then
   book it.

   On a phone the cover runs edge to edge. A 14px gutter either side of a photo
   is the difference between a header and a thumbnail.
   ========================================================================== */
.venue-head {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

/* Wider than it was, because it is no longer competing with a form beside it.
   16:5 at 940px is 294px tall — enough to read as a photograph. */
.venue-head .salon-cover { aspect-ratio: 16 / 5; }

.venue-head .salon-hero { padding: 20px 26px 22px; }

/* The identity line and the facts sit side by side while there is room: the
   name is what you look for, the hours are what you check. */
.venue-head .salon-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.venue-head .salon-hero .row { flex: 1 1 auto; min-width: 0; }
.venue-head .salon-hero .meta { margin-top: 0; flex: 0 0 auto; }

/* The logo tile still overlaps the seam between photograph and detail. */
.venue-head .salon-cover + .salon-hero .logo { margin-top: -46px; }

.venue-head .branch-strip { border-top: 1px solid var(--line); }

/* The booking card no longer carries the header, so its own top edge shows. */
.booking-shell .booking-card > .stepper { border-top: 0; }

@media (max-width: 900px) {
  .venue-head .salon-hero { align-items: flex-start; }
  .venue-head .salon-hero .meta { flex-basis: 100%; margin-top: 4px; }
}

@media (max-width: 620px) {
  /* Edge to edge. .app-main has a 14px gutter at this width, so the header is
     pulled out by exactly that much and its corners squared off at the sides. */
  .venue-head {
    margin-left: -14px; margin-right: -14px;
    border-left: 0; border-right: 0;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    margin-bottom: 18px;
  }
  .venue-head .salon-cover { aspect-ratio: 16 / 9; }
  .venue-head .salon-hero { padding: 16px 16px 18px; }
  .venue-head .salon-cover + .salon-hero .logo { margin-top: -38px; }
  .venue-head .salon-hero h2,
  body.booking .venue-head .salon-hero h2 { font-size: 22px; }
  .venue-head .salon-hero .meta { gap: 12px; font-size: 12.5px; flex-wrap: wrap; }
}

/* The venue menu, under the details.
   A table of contents for what is further down the page — the work, the
   interior, where the place is. Nothing linked to those sections before, so a
   visitor had to scroll past the whole booking flow to find out they existed.
   It scrolls sideways on a phone rather than wrapping: three items on two lines
   read as a broken row. */
.venue-nav {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 26px 14px; border-top: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.venue-nav::-webkit-scrollbar { display: none; }
.venue-nav a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  transition: border-color .18s, color .18s, background .18s;
}
.venue-nav a:hover { border-color: var(--pink-300); color: var(--plum-900); background: var(--pink-50); }
.venue-nav a svg { width: 16px; height: 16px; color: var(--primary); opacity: .85; }

/* The sections the menu points at. scroll-margin keeps a heading clear of the
   sticky top bar when it is jumped to. */
#v-work, #v-interior, #v-where { scroll-margin-top: 84px; }

@media (max-width: 620px) {
  .venue-nav { padding: 10px 14px 12px; gap: 6px; }
  .venue-nav a { padding: 8px 12px; font-size: 13px; }
  #v-work, #v-interior, #v-where { scroll-margin-top: 70px; }
}

/* ---------- salon activity report ---------- */
.rep-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; }
.rep-bar label { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px;
                 font-weight: 600; color: var(--plum-900); }
.rep-bar input[type=date] { font: inherit; font-size: 14px; padding: 8px 11px;
                            border: 1.5px solid var(--line); border-radius: var(--r-md);
                            background: #fff; color: var(--plum-900); }
.rep-bar input[type=date]:focus { outline: none; border-color: var(--primary); }
.rep-quick { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: 4px; }
.rep-note { background: #FFF8E8; border: 1px solid #E8D08A; color: #7A5B12;
            border-radius: var(--r-md); padding: 11px 14px; font-size: 13.5px; margin-bottom: 14px; }
.rep-foot { font-size: 12.5px; color: var(--text-muted); padding: 12px 16px 2px; line-height: 1.55; }

/* The table scrolls inside its own box: ten columns do not fit a laptop, and a
   page that scrolls sideways loses the salon name you were reading along. */
.rep-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rep-table { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 13.5px; }
.rep-table th { text-align: right; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
                color: var(--text-muted); font-weight: 600; padding: 10px 12px;
                border-bottom: 1px solid var(--line); white-space: nowrap; }
.rep-table th:first-child { text-align: left; }
.rep-table td { text-align: right; padding: 11px 12px; border-bottom: 1px solid var(--line-soft, #F0EAE6);
                font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-table td:first-child { text-align: left; }
.rep-table tbody tr:hover td { background: #FCFAF9; }
.rep-table td small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }
.rep-table td small.bad { color: #C0392B; font-weight: 600; }
.rep-nm b { font-weight: 600; color: var(--plum-900); }
.rep-table tfoot td { border-top: 2px solid var(--line); border-bottom: none;
                      background: #FBF8F6; font-size: 14px; }
@media (max-width: 640px) {
  .rep-bar label { flex: 1 1 46%; }
  .rep-bar input[type=date] { width: 100%; }
}

/* ---------- unconfirmed bookings, until they are dealt with ----------
   The toast is gone in six seconds; this stays. Not dismissible on purpose:
   the only thing that should make it go away is confirming the booking. */
.pending-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 60;
               display: none; align-items: center; gap: 10px;
               padding: 11px 16px; cursor: pointer;
               background: #B4573A; color: #fff; font-size: 14.5px; font-weight: 600;
               box-shadow: 0 2px 14px rgba(26,18,12,.22); }
.pending-bar.on { display: flex; }
.pending-bar .pb-ic { flex: none; animation: pb-ring 2.4s ease-in-out infinite;
                      transform-origin: 50% 10%; }
.pending-bar > span { flex: 1; min-width: 0; }
.pb-sound { flex: none; display: inline-flex; align-items: center; gap: 6px;
            font: inherit; font-size: 13px; font-weight: 600;
            border-radius: 999px; padding: 5px 11px; }
.pb-sound.on { background: rgba(255,255,255,.16); color: #fff; }
.pb-sound.off { background: #fff; color: #B4573A; border: 0; cursor: pointer; }
.pb-sound.off:hover { background: #FFF3EE; }
@keyframes pb-ring {
  0%, 70%, 100% { transform: rotate(0); }
  75% { transform: rotate(9deg); }
  80% { transform: rotate(-8deg); }
  85% { transform: rotate(6deg); }
  90% { transform: rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) { .pending-bar .pb-ic { animation: none; } }
/* The bar sits over the top of the page, so push the content out from under
   it. :has() is not everywhere yet, hence the class the script also sets. */
body.has-pending { padding-top: 44px; }
@media (max-width: 560px) {
  .pending-bar { font-size: 13.5px; padding: 10px 12px; gap: 8px; }
  .pb-sound { padding: 5px 9px; font-size: 12px; }
  body.has-pending { padding-top: 42px; }
}
