/* Fonts: B Titr for headings, field labels and buttons; B Nazanin for everything else */
@font-face { font-family: 'BTitr'; src: url('/fonts/BTitr.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'MjGhalam'; src: url('/fonts/MjGhalam.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'BNazanin'; src: url('/fonts/BNazanin.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --font-title: BTitr, Tahoma, 'Segoe UI', sans-serif;
  --font-body: BNazanin, Tahoma, 'Segoe UI', sans-serif;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1a202c;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #1e3a5f;
  --brand-2: #2b6cb0;
  --accent: #f6ad55;
  --ok: #2f855a;
  --bad: #c53030;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body), system-ui, -apple-system, "DejaVu Sans", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  padding-bottom: env(safe-area-inset-bottom);
}

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; }

/* ---- header ---- */
.topbar {
  background: var(--brand);
  color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 5;
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 700; }
.topbar .who { font-size: 13px; opacity: .85; }
.topbar button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 4px 12px; border-radius: 8px; font: inherit; font-size: 13px; }

.page { padding: 16px; }
.page h2 { font-size: 17px; margin: 4px 0 12px; }

/* ---- cards ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 12px;
}
.card.click { cursor: pointer; }
.card.click:active { background: #f8fafc; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.title { font-weight: 700; font-size: 16px; }
.price { color: var(--brand-2); font-weight: 700; }

/* ---- forms ---- */
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #cbd5e0;
  border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); border-color: transparent; }
input[type=tel], input[type=number], input[type=time], .ltr { direction: ltr; text-align: right; }
textarea { min-height: 80px; resize: vertical; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 12px; padding: 13px;
  font: inherit; font-weight: 700; color: #fff; background: var(--brand-2); margin-top: 16px;
}
.btn:active { opacity: .85; }
.btn:disabled { opacity: .5; }
.btn.ghost { background: transparent; color: var(--brand-2); border: 1px solid var(--brand-2); }
.btn.sm { display: inline-block; width: auto; padding: 6px 14px; margin: 0; font-size: 14px; border-radius: 9px; }
.btn.danger { background: var(--bad); }
.btn.ok { background: var(--ok); }
.btn-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---- choice chips ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid #cbd5e0; background: #fff; border-radius: 12px;
  padding: 8px 14px; font: inherit; font-size: 14px; color: var(--ink); text-align: center;
}
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots .chip { padding: 9px 0; direction: ltr; }

.seg { display: flex; gap: 8px; }
.seg .chip { flex: 1; padding: 12px; }

/* ---- badges ---- */
.badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #e2e8f0; color: #334155; }
.badge.booked { background: #ebf8ff; color: #2b6cb0; }
.badge.done { background: #e6fffa; color: var(--ok); }
.badge.cancelled { background: #fff5f5; color: var(--bad); }

/* ---- bottom navigation ---- */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 6;
}
.nav-inner { display: flex; width: 100%; max-width: 560px; }
.nav button {
  flex: 1; border: 0; background: transparent; padding: 12px 4px; font: inherit; font-size: 13px; color: var(--muted);
}
.nav button.on { color: var(--brand-2); font-weight: 700; box-shadow: inset 0 3px 0 var(--brand-2); }

/* ---- misc ---- */
.hours-row { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row label { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; }
.hours-row input[type=checkbox] { width: 20px; height: 20px; }
.hours-row select { padding: 8px 6px; min-width: 0; text-align: center; text-align-last: center; }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.hint { background: #fffaf0; border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-top: 12px; }
.back { background: none; border: 0; color: var(--brand-2); font: inherit; padding: 0; margin-bottom: 10px; }

.login-wrap { padding: 40px 20px; }
.logo { width: 84px; height: 84px; border-radius: 22px; display: block; margin: 0 auto 14px; }
.login-wrap h1 { text-align: center; font-size: 22px; margin: 0 0 4px; }
.login-wrap p.sub { text-align: center; color: var(--muted); margin: 0 0 24px; }

#toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a202c; color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 20; max-width: 90%; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--bad); }

/* ---- ad spots (image ratio 3:1, e.g. 1200x400) ---- */
.spot { position: relative; margin: 0 0 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; line-height: 0; }
.spot img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.spot a { display: block; }
.spot-tag { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; line-height: 1.5; padding: 0 8px; border-radius: 999px; }
.login-wrap .spot { margin: 22px 0 0; }

/* ---- font roles ---- */
.topbar h1, .page h2, .title, label, .btn, .badge, .hours-row label { font-family: var(--font-title); font-weight: 400; }
input, select, textarea, button { font-family: var(--font-body); }
.btn, .topbar h1, .title, label, .page h2 { font-family: var(--font-title); }
.muted, .small { font-size: 16px; }
label { font-size: 15px; }
.btn { font-size: 17px; }
.chip { font-size: 16px; }
.nav button { font-size: 15px; }

.brand-logo { display: block; width: auto; height: auto; max-width: min(100%, 320px); max-height: 230px; margin: 0 auto 6px; }
.login-wrap h1 { font-family: MjGhalam, var(--font-title); font-size: 60px; font-weight: 400; line-height: 1.3; color: var(--brand); margin: 6px 0 0; }

/* ---- v2: gender, provinces, photo, shifts ---- */
[hidden] { display: none !important; }
::placeholder { color: #a0aec0; opacity: 1; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.tip { background: #f0fff4; border: 1px dashed var(--ok); border-radius: 10px; padding: 8px 12px; font-size: 15px; margin: 8px 0 0; color: #276749; }

.combo { position: relative; }
.combo input { padding-left: 38px; }
.combo-btn { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 32px; border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.combo-list { position: absolute; z-index: 30; right: 0; left: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 230px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(26,47,79,.18); -webkit-overflow-scrolling: touch; }
.combo-list li { padding: 10px 12px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.combo-list li[data-v]:active, .combo-list li[data-v]:hover { background: #ebf4ff; }
.combo-list li.combo-empty { color: var(--muted); font-size: 14px; cursor: default; }

.photo-box { display: flex; gap: 12px; align-items: center; }
.photo-prev { width: 96px; height: 96px; flex: none; border-radius: 14px; border: 1px dashed var(--line); background: #f8fafc; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: 13px; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.photo-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.shop-row { display: flex; gap: 12px; align-items: flex-start; }
.shop-body { flex: 1; min-width: 0; }
.thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: #f1f5f9; }
.shop-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; display: block; }
.desc { margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { background: #fdf2f8; color: #97266d; border-radius: 999px; padding: 1px 10px; font-size: 13px; }

.words { min-height: 22px; margin-top: 6px; color: var(--brand-2); font-size: 15px; }
.words.bad { color: var(--bad); }

.day { padding: 10px 0; border-bottom: 1px solid var(--line); }
.day:last-of-type { border-bottom: 0; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.chk { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; }
.chk.two { font-size: 13px; color: var(--muted); }
.chk input[type=checkbox] { width: 20px; height: 20px; }
.shift { display: grid; grid-template-columns: 62px 1fr 1fr; gap: 8px; align-items: center; margin-top: 6px; }
.shift span { font-size: 13px; color: var(--muted); }
.shift select { padding: 8px 6px; min-width: 0; text-align: center; text-align-last: center; }

/* ---- v3: portfolio, avatar, bullet descriptions ---- */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: #f1f5f9; border: 1px solid var(--line); }
.shop-row { align-items: center; }
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.works img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f1f5f9; display: block; }
ul.bul { margin: 10px 0 0; padding: 0 18px 0 0; font-size: 15px; color: var(--muted); }
ul.bul li { margin: 3px 0; }
ul.bul li.more { list-style: none; letter-spacing: 2px; }
.card.click ul.bul li:not(.more) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.work-slot { position: relative; aspect-ratio: 1; }
.work-add { width: 100%; height: 100%; padding: 0; border: 1px dashed var(--muted); border-radius: 12px; background: #f8fafc; color: var(--muted); font-size: 28px; overflow: hidden; }
.work-add img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-rm { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 12px; padding: 0; }

/* ---- v3.1: nothing may stick out of its frame ---- */
.work-grid, .works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-slot { min-width: 0; }
.work-add { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; overflow: hidden; }
.work-add img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.works img, .thumb, .avatar, .photo-prev img { max-width: 100%; }
.photo-prev { overflow: hidden; }
.card { overflow-wrap: anywhere; }

.alert { background: #fff5f5; border: 1px solid var(--bad); color: var(--bad); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 15px; }

/* ---- v4: calendar, multi service, approval ---- */
.badge.pending { background: #fffaf0; color: #b7791f; }
.card.pend { border-color: #ecc94b; background: #fffff0; }
/* rules window */
.terms-row { align-items: flex-start; margin: 12px 0 4px; }
.terms-link { background: none; border: 0; padding: 0; color: #2b6cb0; text-decoration: underline; font: inherit; cursor: pointer; }
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(26,32,44,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; max-height: 78vh; display: flex; flex-direction: column; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 17px; }
.modal-x { border: 0; background: #edf2f7; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; padding: 0 20px 0 0; font-size: 15px; line-height: 1.9; flex: 1; }
.modal-body li { margin-bottom: 8px; }
button:disabled.btn, .btn:disabled { opacity: .5; }
.top-btns { display: flex; }
.no-fg .top-btns > * { margin-left: 8px; }
.top-btns { gap: 8px; }
.modal-body h3 { margin: 10px 0 4px; font-size: 16px; color: var(--brand); }
.modal-body.support { line-height: 2.4; font-size: 17px; }
.cap-row { display: flex; align-items: center; margin: 6px 0; }
.cap-img { height: 56px; width: 200px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f7fafc; }
.cap-refresh { margin-right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cbd5e0; background: #fff; font-size: 20px; cursor: pointer; }
.no-fg .cap-row > * { margin-left: 8px; }
.support-line { font-size: 17px; line-height: 2.2; margin: 4px 0; }
.rel { position: relative; }
.fav-btn { position: absolute; top: 6px; left: 8px; z-index: 2; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #a0aec0; cursor: pointer; padding: 4px 6px; }
.fav-btn.on { color: #d69e2e; }
.fav-switch { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-size: 16px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #cbd5e0; border-radius: 26px; transition: background .2s; cursor: pointer; }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; right: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + .slider { background: #2b6cb0; }
.switch input:checked + .slider::before { transform: translateX(-20px); }
.info-list { margin-top: 8px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-top: 1px solid #edf2f7; font-size: 16px; }
.info-row span { color: #718096; }
.info-row b { font-weight: normal; color: #1a202c; }
.sub-tabs { flex-wrap: wrap; margin: 6px 0 12px; }
.sub-tabs .chip { flex: 1 1 auto; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 8px; }
.svc-grid .card { margin: 0; padding: 10px; }
.svc .title { font-size: 16px; }
.svc .price { font-size: 15px; margin-top: 4px; }
.svc-note { font-size: 13px; color: #a0aec0; line-height: 1.6; margin-top: 2px; }
.cal-day.offday { background: #fff5f5; border-color: #feb2b2; }
.card.picked { border-color: var(--brand-2); background: #ebf4ff; }
.order { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-2); color: #fff; font-size: 13px; align-items: center; justify-content: center; margin-left: 8px; }
ol.items { margin: 6px 0; padding: 0 20px 0 0; }
ol.items li { margin: 3px 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-h { text-align: center; font-family: var(--font-title); font-size: 12px; color: var(--muted); padding: 2px 0; }
.cal-day { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 3px 0 4px; display: flex; flex-direction: column; align-items: center; min-height: 58px; font-family: var(--font-body); color: var(--ink); }
.cal-day small { font-size: 10px; color: var(--muted); height: 14px; line-height: 14px; }
.cal-day b { font-size: 17px; font-weight: 400; }
.cal-day em { font-style: normal; font-size: 10px; color: var(--bad); }
.cal-day.today { border-color: var(--accent); }
.cal-day.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.cal-day.on small { color: #dbeafe; }
.cal-day.closed { background: #f1f5f9; color: #a0aec0; }
.cal-empty { display: block; }

/* ---- older phones (iOS 13-14, Android 10): fallbacks ---- */
@supports not (aspect-ratio: 1) {
  .spot img { height: calc((min(100vw, 560px) - 32px) / 3); }
  .works img { height: calc((min(100vw, 560px) - 80px) / 4); }
  .work-slot::before { content: ""; display: block; padding-top: 100%; }
}
/* flex "gap" is missing in Safari before 14.5: the page adds class no-fg and margins replace it */
.no-fg .row > * { margin-left: 10px; margin-bottom: 5px; }
.no-fg .btn-row > * { margin-left: 8px; margin-bottom: 8px; }
.no-fg .chips > * { margin-left: 8px; margin-bottom: 8px; }
.no-fg .seg > * { margin-left: 8px; margin-bottom: 4px; }
.no-fg .photo-box > * { margin-left: 12px; margin-bottom: 12px; }
.no-fg .photo-btns > * { margin-left: 8px; margin-bottom: 8px; }
.no-fg .shop-row > * { margin-left: 12px; margin-bottom: 12px; }
.no-fg .tags > * { margin-left: 6px; margin-bottom: 6px; }
.no-fg .day-head > * { margin-left: 8px; margin-bottom: 4px; }
.no-fg .chk > * { margin-left: 6px; margin-bottom: 3px; }
.no-fg .photo-btns > * { margin-left: 0; }
.no-fg .row > *, .no-fg .chk > *, .no-fg .day-head > * { margin-bottom: 0; }

/* salon lines */
.line-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.line-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px; min-width: 0; font-size: 13px; }
.line-box input, .line-box select, .line-box textarea { font-size: 13px; padding: 6px 8px; margin-top: 6px; min-width: 0; width: 100%; box-sizing: border-box; }
.line-box .title { font-size: 14px; }
.line-x { border: 0; background: #edf2f7; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; padding: 0; }
.svc-list { margin-top: 6px; }
.chk.sm { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; margin: 3px 0; }
.chk.sm input { width: auto; margin: 3px 0 0; }
.add-row { display: flex; gap: 4px; align-items: center; }
.add-row .btn { width: auto; padding: 4px 10px; margin-top: 6px; }
.lp { border-top: 1px dashed #e2e8f0; margin-top: 6px; padding-top: 4px; }
.lp b { font-size: 12px; }
.lp .two { display: flex; gap: 4px; }
.lp .two input { width: 50%; }
.lw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.lw-grid .work-slot { aspect-ratio: auto; }
.line-pick .card.picked { border-color: var(--brand); }
.lw-view { display: flex; gap: 8px; margin-top: 8px; }
.lw-view img { width: 48%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #f1f5f9; }
.lb { z-index: 90; }
.lb img { max-width: 92vw; max-height: 80vh; border-radius: 14px; background: #fff; }

.modal-q { font-size: 19px; font-weight: 700; line-height: 1.9; text-align: center; margin: 8px 0 16px; }
.modal-box .btn-row { display: flex; gap: 8px; }
.modal-box .btn-row .btn { flex: 1; }

.push-banner { margin: 8px 16px; line-height: 2.2; }

.card-box { background: #f1f5f9; border-radius: 12px; padding: 10px; margin: 8px 0; text-align: center; }
.card-no { font-size: 22px; font-weight: 700; letter-spacing: 1px; direction: ltr; margin: 4px 0; }
.pay-card { border: 2px solid var(--brand); }

/* V23 */
.acct-opt { margin-top: 14px; padding: 12px; border: 2px solid var(--brand); border-radius: 14px; background: #f0f7ff; }
.acct-opt .seg { margin: 8px 0; }
.acct-opt .chip { font-size: 15px; padding: 10px 6px; font-weight: 700; }
.sel-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 13px; text-align: right; }
.sel-panel { border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px; margin-top: 4px; background: #f8fafc; }
.lw-grid .work-slot { aspect-ratio: auto; height: 96px; }
.no-fg .lw-grid .work-slot::before, .lw-grid .work-slot::before { padding-top: 0; }
.lw-grid .work-add { font-size: 12px; line-height: 1.7; border: 2px dashed #94a3b8; }
.card-box, .card-box .card-no { text-align: center !important; }
.man-head { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; font-size: 16px; padding: 0 0 6px; }

.price-help { margin-top: 8px; padding: 6px 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; font-size: 11px; line-height: 1.9; color: #78350f; }
.price-help b { font-size: 12px; }

.sub-tabs.scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; padding-bottom: 4px; }
.sub-tabs.scroll .chip { flex: 0 0 auto; white-space: nowrap; font-size: 12px; padding: 6px 12px; }
button.card-no { display: block; width: 100%; border: 0; background: transparent; font-family: inherit; color: inherit; cursor: pointer; padding: 6px 0; }

/* V27 */
.fav-btn { font-size: 24px; color: #cbd5e0; }
.fav-btn.on { color: #e53e3e; }
.kind-tabs { margin: 8px 0; }
.kind-tabs .chip { flex: 1; font-weight: 700; }
.search-box { padding: 8px; }
.search-box .srow { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.search-box .srow > * { flex: 1; min-width: 0; margin: 0; font-size: 14px; padding: 7px 8px; }
.search-box .srow .btn { flex: 0 0 auto; margin: 0; padding: 7px 16px; }
.fav-switch.compact { margin: 0; padding: 6px 8px; font-size: 14px; border: 0; background: #f8fafc; }
.stars { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; color: #cbd5e0; line-height: 1; }
.stars .on { color: #f6ad55; }
.stars small { color: #64748b; margin-right: 4px; font-size: 11px; }
.rate-row { margin-top: 6px; font-size: 13px; }
.rate-star { border: 0; background: transparent; font-size: 24px; color: #cbd5e0; padding: 0 2px; cursor: pointer; }
.rate-star.on { color: #f6ad55; }
.pg-link { border: 0; background: transparent; color: #2b6cb0; font-size: 13px; padding: 2px 0; text-decoration: underline; cursor: pointer; font-family: inherit; }
.guide-list { padding-right: 18px; line-height: 2; font-size: 14px; }
.err { border: 2px solid #e53e3e !important; }
.err-msg { color: #e53e3e; font-size: 12px; margin-top: 4px; line-height: 1.8; }
.push-banner { padding: 3px 10px !important; margin: 6px 0 !important; font-size: 12px; line-height: 1.8; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.push-banner .btn { padding: 2px 10px; font-size: 12px; margin: 0; }

/* ---- V28 ---- */
/* province + city side by side (signup, city gate) */
.two-sel { display: flex; gap: 8px; }
.two-sel select { flex: 1; min-width: 0; margin: 0; }
.no-fg .two-sel > * { margin-left: 8px; }
/* "change number" + "resend code": small, side by side */
.mini-row { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.mini-row .btn { flex: 0 0 auto; }
.no-fg .mini-row > * { margin-left: 8px; }
/* heart button that shows only the favourites */
.fav-toggle { display: flex; align-items: center; gap: 6px; margin-top: 6px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 5px 14px; font-family: inherit; font-size: 15px; color: var(--muted); cursor: pointer; }
.fav-toggle .h { font-size: 24px; line-height: 1; color: #cbd5e0; }
.fav-toggle.on { border-color: #e53e3e; color: #e53e3e; background: #fff5f5; }
.fav-toggle.on .h { color: #e53e3e; }
/* salons: two small cards per row */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-grid .card { margin: 0; padding: 12px 8px 10px; text-align: center; }
.shop-grid .title { font-size: 16px; line-height: 1.5; margin-top: 6px; }
.shop-grid .stars { justify-content: center; }
.avatar.lg { width: 68px; height: 68px; margin: 0 auto; display: block; }
.avatar.ph { display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 28px; color: var(--brand); background: #eef2f7; }
/* price guide: bigger and in a yellow box so it is noticed */
.pg-box { margin: 0; padding: 8px 12px; text-align: center; border-style: solid; }
.pg-link { font-size: 15px; }

/* V29 */
.tog-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fav-toggle.pop .h { font-size: 22px; }
.fav-toggle.pop.on { border-color: #d69e2e; color: #b7791f; background: #fffbeb; }
.fav-toggle.pop.on .h { color: #d69e2e; }
/* the lines on a salon's page: small and tidy (a tap on a photo still enlarges it) */
.line-pick .card.lp { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; margin-bottom: 8px; }
.line-pick .lp-txt { flex: 1; min-width: 0; }
.line-pick .lp .title { font-size: 15px; line-height: 1.5; }
.line-pick .lp .svc-note { font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-pick .lw-view { margin-top: 0; gap: 5px; flex: none; }
.line-pick .lw-view img { width: 46px; height: 46px; max-width: none; border-radius: 8px; }
.quick-box { margin-top: 12px; padding: 10px 12px; border: 1px dashed #d69e2e; background: #fffbeb; border-radius: 12px; }
.qs-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.qs { text-align: right; font-family: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; cursor: pointer; }
.qs.on { border-color: var(--brand); background: #ebf8ff; font-weight: 700; }

/* V30 */
.hs { width: 1em; height: 1em; display: block; }
.fav-btn { display: flex; align-items: center; justify-content: center; color: #a0aec0; }
.fav-btn.on { color: #e53e3e; }
.fav-btn .hs { width: 26px; height: 26px; }
.fav-btn.big .hs { width: 36px; height: 36px; }
.fav-toggle .h { display: flex; }
.fav-toggle .h .hs { width: 24px; height: 24px; }
.stars { font-size: 15px; }
.stars small { font-size: 12px; }
.rate-row { font-size: 14px; }
.rate-star { font-size: 28px; }
.line-pick .lw-view img { width: 62px; height: 62px; }
.line-pick .lp-first { margin-top: 3px; font-size: 13.5px; color: #276749; }
.line-pick .lp-first.none { color: #a0aec0; }
