/* ============================================================
   Mi'ad — black & gold, taken from the Ghiath Salon logo.
   Modern dark UI: glass top bar, soft depth, gold accents.
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #09090a;
  --bg-2: #0f0f11;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: #1a1a1d;
  --surface-3: #222226;
  --ink: #f4f1ea;
  --ink-2: #d9d4c9;
  --muted: #9a958b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --accent: #c9a73a;
  --accent-rgb: 201, 167, 58;
  --accent-hi: #e6c862;
  --accent-ink: #120f05;
  --accent-soft: rgba(var(--accent-rgb), .12);
  --accent-line: rgba(var(--accent-rgb), .38);
  --gold-grad: linear-gradient(135deg, #f0d77a 0%, #c9a73a 48%, #a3841f 100%);
  --ok: #5ccf91;
  --ok-soft: rgba(92, 207, 145, .12);
  --info: #7fb0ff;
  --info-soft: rgba(127, 176, 255, .12);
  --warn: #f0c35a;
  --warn-soft: rgba(240, 195, 90, .12);
  --bad: #ff8080;
  --bad-soft: rgba(255, 128, 128, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .7);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -16px rgba(0, 0, 0, .85);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 15.5px/1.65 "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(var(--accent-rgb), .10), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(var(--accent-rgb), .05), transparent 60%),
    var(--bg);
  background-attachment: fixed; min-height: 100vh;
}
a { color: var(--accent-hi); text-decoration: none; transition: color .15s; }
a:hover { color: #fff3c4; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .55em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; }
h2 { font-size: 1.2rem; margin-top: 1.5em; }
h3 { font-size: 1.02rem; }
p { margin: .4em 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -.2em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
main.page { padding-top: 28px; padding-bottom: 48px; min-height: 72vh; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(9, 9, 10, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.12rem; min-width: 0; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { color: var(--accent-hi); }
.logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-grad); color: var(--accent-ink); box-shadow: 0 6px 18px -6px rgba(var(--accent-rgb), .7); }
.logo .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav > a:not(.btn):not(.icon-link) { color: var(--ink-2); padding: 6px 10px; border-radius: 10px; }
.nav > a:not(.btn):not(.icon-link):hover { color: var(--ink); background: var(--surface); }
.pill-link { border: 1px solid var(--line-2); border-radius: 999px !important; }
.icon-link { display: inline-flex; align-items: center; gap: 4px; height: 36px; min-width: 36px; padding: 0 9px; justify-content: center;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .82rem; cursor: pointer; }
.icon-link:hover { color: var(--ink); border-color: var(--line-2); }
.inline { display: inline; margin: 0; }
.impersonate-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; margin: 0;
  background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid rgba(240, 195, 90, .3); font-size: .9rem; }

.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--ink-2); font-size: .84rem; padding: 26px 16px 34px; border-top: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; position: relative;
  background: var(--gold-grad); color: var(--accent-ink); border: 0; border-radius: 12px;
  padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 22px -10px rgba(var(--accent-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s var(--ease), box-shadow .2s, filter .2s;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 26px -10px rgba(var(--accent-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--accent-line); color: var(--ink); }
.btn.danger.ghost { color: var(--bad); }
.btn.danger.ghost:hover { border-color: rgba(255, 128, 128, .5); color: var(--bad); }
.btn.danger:not(.ghost) { background: linear-gradient(135deg, #ff9b9b, #e05757); color: #2a0707; box-shadow: 0 8px 22px -10px rgba(224, 87, 87, .8); }
.btn.sm { padding: 6px 12px; font-size: .86rem; border-radius: 10px; }
.btn.big { width: 100%; padding: 14px 22px; font-size: 1.05rem; border-radius: 14px; }
.big-inline { padding: 13px 28px; font-size: 1.04rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }
.icon-btn { background: var(--surface-2); color: var(--accent-hi); border: 1px solid var(--line); border-radius: 9px; width: 34px; height: 34px; cursor: pointer; font: inherit; flex-shrink: 0; }

/* ---------- layout helpers ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.card > h2:first-child, .card > h3:first-child, .card > .row:first-child h3 { margin-top: 0; }
.card-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.narrow { max-width: 480px; margin-inline: auto; }
.page-head { margin-bottom: 18px; }
.page-head h1 { margin-bottom: 4px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 16px; }
.grid.opts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.checks { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.span2 { grid-column: span 2; }
@media (max-width: 560px) { .span2 { grid-column: auto; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.end { text-align: end; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.gold { color: var(--accent-hi); }
.plus { color: var(--ok); }
.minus { color: var(--bad); }
.back { display: inline-flex; gap: 6px; margin-bottom: 12px; font-size: .9rem; color: var(--ink-2); }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); font-size: .78rem; vertical-align: middle; }
.code-inline { background: var(--surface-3); border-radius: 8px; padding: 2px 10px; letter-spacing: .05em; margin-inline-start: 6px; }

/* ---------- forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.form > label, .form > .grid, .form > .row, .form > .map-field, .form > .lines { margin-bottom: 14px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 13px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #6f6b63; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .22); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #121214; }
input:disabled { opacity: .6; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); }
input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button { font: inherit; background: var(--surface-3); color: var(--ink); border: 0; border-radius: 8px; padding: 6px 12px; margin-inline-end: 10px; cursor: pointer; }
label.check { flex-direction: row; align-items: center; gap: 9px; color: var(--ink); cursor: pointer; }
.row input, .row select { width: auto; }
.row input.grow { flex: 1; }
.sm-input { padding: 6px 10px; font-size: .87rem; width: auto; max-width: 150px; }
.inline-label { flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; }
.prefix { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; }
.prefix em { font-style: normal; color: var(--muted); padding-inline-start: 12px; font-size: .8rem; white-space: nowrap; }
.prefix input { border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
.auth { margin-top: 4vh; }
.auth h1 { text-align: center; }

/* ---------- messages ---------- */
.flash, .banner { padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(92, 207, 145, .25); }
.flash.err, .banner.bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(255, 128, 128, .25); }
.banner.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(240, 195, 90, .25); }
.banner a { font-weight: 700; margin-inline-start: 8px; color: inherit; text-decoration: underline; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 9px 13px; margin: 0 0 12px; font-size: .92rem; }
.empty { color: var(--bad); }

/* ---------- tags & status ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; background: var(--surface-3); color: var(--ink-2); padding: 2px 9px; border-radius: 999px; font-weight: 500; vertical-align: middle; }
.tag.vip { background: var(--gold-grad); color: var(--accent-ink); font-weight: 700; }
.tag.paid { background: var(--ok-soft); color: var(--ok); }
.tag.info { background: var(--info-soft); color: var(--info); }
.status { font-size: .78rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.status.confirmed, .status.approved { background: var(--ok-soft); color: var(--ok); }
.status.pending { background: var(--warn-soft); color: var(--warn); }
.status.done { background: var(--info-soft); color: var(--info); }
.status.cancelled, .status.no_show, .status.rejected { background: var(--bad-soft); color: var(--bad); }

.avatar { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-hi); display: grid; place-items: center; font-weight: 700; font-size: 1.35rem; flex-shrink: 0; font-style: normal; border: 1px solid var(--accent-line); }
.avatar.img { object-fit: cover; padding: 0; background: #000; }
.avatar.lg { width: 76px; height: 76px; font-size: 2rem; border-radius: 22px; }
.avatar.sm { width: 38px; height: 38px; font-size: 1rem; border-radius: 11px; }
.avatar.xs { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); font-size: .9rem; transition: all .15s; }
.tabs a:hover { color: var(--ink); border-color: var(--line-2); }
.tabs a.on { background: var(--gold-grad); color: var(--accent-ink); border-color: transparent; font-weight: 600; }

/* ---------- public: home ---------- */
.hero { text-align: center; padding: 56px 0 34px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.15; margin-bottom: 14px;
  background: linear-gradient(180deg, #fffaf0 0%, var(--accent-hi) 55%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--ink-2); font-size: 1.08rem; max-width: 560px; margin: 0 auto 26px; }
.search { display: flex; gap: 8px; max-width: 680px; margin: 0 auto; padding: 8px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow-lift); }
.search input { flex: 2 1 220px; border: 0; background: transparent; box-shadow: none !important; }
.search select { flex: 1 1 140px; width: auto; border: 0; background: var(--surface-2); }
.salon-card { display: flex; gap: 14px; align-items: center; color: var(--ink); margin: 0; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.salon-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-lift); color: var(--ink); }
.salon-card h3 { margin-bottom: 2px; }
.salon-card p { margin: 0 0 6px; }
.salon-card.off { opacity: .55; }
.track { margin-top: 28px; }
.track .row input { flex: 1; }

/* ---------- public: salon home ---------- */
.salon-hero { position: relative; text-align: center; padding: 48px 16px 34px; margin: -28px -16px 8px; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(var(--accent-rgb), .22), transparent 70%); }
.salon-hero::after { content: ""; position: absolute; inset: auto 10% 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-line), transparent); }
.hero-logo { width: 128px; height: 128px; border-radius: 50%; font-size: 3rem; margin: 0 auto 16px; border: 2px solid var(--accent); box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .08), 0 20px 50px -20px rgba(var(--accent-rgb), .7); }
.salon-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 6px;
  background: linear-gradient(180deg, #fffaf0, var(--accent-hi) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: 1.08rem; max-width: 560px; margin: 0 auto 6px; color: var(--ink-2); }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 16px; }
.hero-actions .btn.big { width: auto; padding: 15px 38px; }
.contact { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: .92rem; }
.contact a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.contact a:hover { color: var(--ink); border-color: var(--accent-line); }
.home-sec { margin: 34px 0; }
.home-sec h2 { margin-top: 0; }
.svc { display: flex; flex-direction: column; gap: 3px; padding: 18px; border-radius: var(--radius); color: var(--ink);
  border: 1px solid var(--accent-line); background: linear-gradient(140deg, rgba(var(--accent-rgb), .16), rgba(255, 255, 255, .02) 65%);
  transition: transform .2s var(--ease), box-shadow .2s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.svc span { color: var(--accent-hi); font-weight: 700; font-size: 1.12rem; }
.svc small { color: var(--muted); }
.price-list { padding: 4px 20px; }
.price-row { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row:hover { color: var(--accent-hi); }
.price-row span small { display: block; color: var(--muted); font-size: .8rem; }
.price-row i { flex: 1; border-bottom: 1px dashed var(--line-2); transform: translateY(-4px); }
.price-row b { color: var(--accent-hi); white-space: nowrap; }
.team { display: flex; gap: 20px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.member { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 112px; text-align: center; }
.member .avatar { width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--accent-line); font-size: 2rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.two-col .card { margin: 0; }
.perks { padding-inline-start: 18px; color: var(--ink-2); }
.hours-list { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; }
.hours-list dd { margin: 0; text-align: end; }
.loyalty { background: linear-gradient(150deg, rgba(var(--accent-rgb), .14), rgba(255, 255, 255, .02) 60%); border-color: var(--accent-line); }
.cut-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cut-strip figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.cut-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cut-strip figure:hover img { transform: scale(1.05); }
.cut-strip figcaption { position: absolute; inset: auto 0 0; padding: 22px 10px 8px; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.map { height: 260px; border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; z-index: 0; }
.small-map { height: 200px; margin: 10px 0; }
.map-field .map-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .88rem; color: var(--ink-2); }
.leaflet-container { background: #1b1b1e; font: inherit; }

/* ---------- public: booking ---------- */
#bookForm { counter-reset: step; }
.step { margin: 30px 0; counter-increment: step; }
.step h2 { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: .92rem; flex-shrink: 0; background: var(--gold-grad); color: var(--accent-ink); font-weight: 700; }
.n:empty::before { content: counter(step); }
.vip-title { color: var(--accent-hi); margin-top: 20px; }
.opt { position: relative; display: block; cursor: pointer; color: var(--ink); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; height: 100%;
  transition: border-color .15s, background .15s, transform .15s var(--ease); }
.opt:hover > span { border-color: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.opt small { font-size: .85rem; color: var(--muted); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt.vip > span { border-color: var(--accent-line); background: linear-gradient(140deg, rgba(var(--accent-rgb), .15), rgba(255, 255, 255, .02) 70%); }
.opt .with-avatar { flex-direction: row; align-items: center; gap: 11px; }
.opt .with-avatar > span { display: flex; flex-direction: column; }
.opt.plan > span { text-align: center; padding: 20px; }
.opt.plan strong { font-size: 1.4rem; color: var(--accent-hi); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day { position: relative; flex: 0 0 auto; cursor: pointer; scroll-snap-align: start; color: var(--ink); }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 10px 6px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); transition: all .15s; }
.day:hover span { border-color: rgba(255, 255, 255, .24); }
.day b { font-size: 1.4rem; line-height: 1.2; }
.day small { font-size: .74rem; color: var(--muted); }
.day input:checked + span { background: var(--gold-grad); border-color: transparent; color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgba(var(--accent-rgb), .9); }
.day input:checked + span small { color: rgba(0, 0, 0, .62); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-weight: 600; min-width: 94px; text-align: center; transition: all .15s; }
.chip:hover span { border-color: var(--accent-line); }
.chip input:checked + span { background: var(--gold-grad); border-color: transparent; color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-hi); }
.chip.taken { cursor: not-allowed; }
.chip.taken span { background: transparent; border-style: dashed; border-color: var(--line); color: #5b5750; text-decoration: line-through; }
.slots .empty { flex-basis: 100%; margin: 0 0 6px; }
.legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.chip-demo { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--line-2); background: var(--surface-2); }
.chip-demo.taken { border-style: dashed; background: transparent; margin-inline-start: 12px; }
.summary { color: var(--accent-hi); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 14px; padding: 12px 15px; margin-bottom: 16px; font-weight: 600; }
#details { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; scroll-margin-top: 90px; box-shadow: var(--shadow-lift); }
#details > label, #details .grid { margin-bottom: 14px; }
.style-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.style-opt { position: relative; cursor: pointer; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; border: 2px solid var(--line); background: var(--surface); transition: border-color .15s, transform .15s var(--ease); }
.style-opt:hover { transform: translateY(-2px); }
.style-opt input { position: absolute; opacity: 0; }
.style-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-opt span { position: absolute; inset: auto 0 0; padding: 18px 8px 7px; font-size: .8rem; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.style-opt.none { display: grid; place-items: center; text-align: center; padding: 10px; color: var(--ink-2); }
.style-opt.none span { position: static; background: none; padding: 0; font-size: .9rem; }
.style-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.style-opt:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--accent-ink); font-weight: 800; }
.style-chosen { width: 110px; border-radius: 12px; display: block; }

.ticket { text-align: center; }
.ok-mark { width: 70px; height: 70px; border-radius: 50%; background: var(--gold-grad); color: var(--accent-ink); font-size: 2rem; display: grid; place-items: center; margin: 4px auto 12px; box-shadow: 0 0 0 10px var(--accent-soft); }
.code { font-size: 1.1rem; margin-bottom: 0; }
.code b { font-size: 1.6rem; letter-spacing: 4px; color: var(--accent-hi); }
.details { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; text-align: start; margin: 18px 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; }
.empty-state { text-align: center; padding: 48px 0; }
.empty-state .big { font-size: 4.5rem; font-weight: 700; color: var(--surface-3); }

/* ---------- shop ---------- */
.grid.products { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 16px; }
.product { display: flex; flex-direction: column; gap: 5px; padding: 10px; margin: 0; color: var(--ink); scroll-margin-top: 90px; transition: transform .2s var(--ease), border-color .2s; }
a.product:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--accent-line); }
.product img, .product .ph-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px; background: var(--surface-2); }
.ph-img { display: grid; place-items: center; font-size: 2rem; color: var(--surface-3); }
.product.soldout, .product.off { opacity: .5; }
.product.in-cart { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qty { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.qty button { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.qty button:hover { border-color: var(--accent); color: var(--accent-hi); }
.qty output { font-weight: 700; font-size: 1.1rem; }
.cart-bar { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--gold-grad); color: var(--accent-ink); border-radius: 16px; padding: 10px 14px; font-weight: 700; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); }
.cart-bar .btn { background: var(--accent-ink); color: var(--accent-hi); box-shadow: none; }
.checkout { scroll-margin-top: 90px; }

/* ---------- loyalty card ---------- */
.loyalty-card { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; margin-bottom: 14px; aspect-ratio: 1.6; max-width: 440px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--accent-ink);
  background: var(--gold-grad); box-shadow: 0 24px 50px -18px rgba(var(--accent-rgb), .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.loyalty-card::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 80%; height: 120%; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 60%); transform: rotate(20deg); pointer-events: none; }
.lc-top { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.lc-top span { margin-inline-start: auto; font-size: .85rem; opacity: .8; }
.lc-top .avatar { background: #000; color: var(--accent-hi); width: 42px; height: 42px; border: 0; }
.lc-points b { font-size: 3.2rem; font-weight: 700; line-height: 1; display: block; }
.lc-points span { font-size: .9rem; opacity: .85; }
.lc-bottom { display: flex; justify-content: space-between; font-weight: 600; letter-spacing: .05em; }
.log-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }

/* ---------- dashboard shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 26px; padding-top: 22px; padding-bottom: 48px; align-items: start; }
.content { min-width: 0; min-height: 72vh; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 2px; padding: 10px; max-height: calc(100vh - 100px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; scrollbar-width: thin; }
.side a { display: flex; align-items: center; gap: 11px; color: var(--ink-2); padding: 8px 11px; border-radius: 12px; font-size: .93rem; white-space: nowrap; transition: background .15s, color .15s; }
.side a .ic { color: var(--muted); transition: color .15s; }
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a:hover .ic { color: var(--accent-hi); }
.side a.on { background: var(--gold-grad); color: var(--accent-ink); font-weight: 600; box-shadow: 0 8px 20px -12px rgba(var(--accent-rgb), .9); }
.side a.on .ic { color: var(--accent-ink); }
.side .ext { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 12px; color: var(--accent-hi); }
.side-group { font-size: .72rem; color: var(--muted); padding: 14px 11px 5px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; gap: 14px; padding-top: 12px; }
  .side { position: sticky; top: 64px; z-index: 20; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 6px; max-height: none; border-radius: 16px;
    margin: 0 -4px; background: rgba(15, 15, 17, .92); backdrop-filter: blur(12px); scrollbar-width: none; }
  .side-group { display: none; }
  .side a { padding: 7px 12px; }
  .side .ext { margin: 0; border: 0; padding-top: 7px; border-radius: 12px; }
}

/* ---------- dashboard bits ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar h1, .toolbar h2 { margin: 0; }
.toolbar input[type=date] { width: auto; }
.month { margin: 0; min-width: 110px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 15px 17px; overflow: hidden; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.stat b { display: block; font-size: clamp(1.05rem, 1.5vw, 1.45rem); font-weight: 700; white-space: nowrap; }
.stat span { color: var(--muted); font-size: .86rem; }
a.stat:hover { color: var(--ink); border-color: var(--accent-line); transform: translateY(-2px); }
.stat.hot { border-color: var(--accent); }
.gold-stat { border-color: var(--accent-line); background: linear-gradient(140deg, rgba(var(--accent-rgb), .16), rgba(255, 255, 255, .02)); }
.gold-stat b { color: var(--accent-hi); }
.loss-stat { border-color: rgba(255, 128, 128, .35); background: var(--bad-soft); }
.loss-stat b { color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: linear-gradient(150deg, rgba(var(--accent-rgb), .12), rgba(255, 255, 255, .02) 60%); border: 1px solid var(--accent-line); border-radius: 18px; padding: 16px 18px; }
.kpi span { color: var(--ink-2); font-size: .86rem; display: block; }
.kpi b { display: block; font-size: 1.6rem; color: var(--accent-hi); margin: 2px 0; white-space: nowrap; }
.kpi small { color: var(--muted); }
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.seg { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all .15s; }
.seg b { font-size: 1.5rem; color: var(--ink); }
.seg:hover { color: var(--ink); border-color: var(--line-2); }
.seg.ok b { color: var(--ok); }
.seg.info b { color: var(--info); }
.seg.warn b { color: var(--warn); }
.seg.bad b { color: var(--bad); }
.seg.mute b { color: var(--muted); }
.seg.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--ink); }
.salon-list { display: flex; flex-direction: column; gap: 10px; }
.salon-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 1fr 1fr auto 1fr; gap: 14px; align-items: center; margin: 0; color: var(--ink); padding: 15px 18px; transition: border-color .2s, transform .2s var(--ease); }
.salon-row:hover { color: var(--ink); border-color: var(--accent-line); transform: translateY(-1px); }
.salon-row small { display: block; }
@media (max-width: 760px) { .salon-row { grid-template-columns: 1fr 1fr; } .salon-row .grow { grid-column: 1 / -1; } }
.attention { border-color: rgba(240, 195, 90, .35); }
.danger-zone { border-color: rgba(255, 128, 128, .2); }
.wrap-row { flex-wrap: wrap; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-of-type { border-bottom: 0; }
.time-sm { min-width: 72px; }
.list .appt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 10px; transition: border-color .2s; }
.list .appt:hover { border-color: var(--line-2); }
.appt.cancelled, .appt.no_show { opacity: .5; }
.appt .time { font-weight: 700; font-size: 1.06rem; min-width: 86px; text-align: center; padding-inline-end: 12px; border-inline-end: 1px solid var(--line); }
.appt .time small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.appt .actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
@media (max-width: 640px) { .appt .actions { width: 100%; } }
.style-thumb { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; color: var(--muted); }
.style-thumb img { width: 46px; height: 58px; object-fit: cover; border-radius: 10px; border: 1px solid var(--accent-line); }
.day-title { display: flex; align-items: center; gap: 8px; }
.setup ol { margin: 0; padding-inline-start: 20px; }
.setup li { margin: 5px 0; }
.setup li.done a { color: var(--ok); text-decoration: line-through; }
.new-booking select[name=time] { min-width: 150px; }
.search-row { margin-bottom: 14px; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); font-size: .88rem; border: 1px solid var(--accent-line); }
details > summary { cursor: pointer; font-weight: 600; color: var(--accent-hi); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 10px; margin: 9px 0; font-size: .92rem; }
.bar-row i { height: 10px; border-radius: 999px; background: var(--gold-grad); width: var(--w); min-width: 4px; }
.order-card p { margin: 8px 0 4px; }
.order-card .actions { margin-top: 10px; }
.att .edit-times { display: inline-flex; gap: 6px; align-items: center; }
.att .edit-times[open] { flex-wrap: wrap; }
.att .edit-times input { width: 124px; padding: 6px 8px; }
.att .edit-times[open] > summary { margin: 0; }
.hours { display: grid; gap: 8px; margin-bottom: 18px; }
.hour-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.day-name { min-width: 112px; font-weight: 600; }
.shift { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.shift input { width: 124px; padding: 7px 9px; }
.shift.second input { border-style: dashed; }
.thumb { max-width: 170px; border-radius: 14px; display: block; margin-bottom: 12px; }
.upload-box { border-style: dashed; border-color: var(--accent-line); }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.style-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.style-card.off { opacity: .5; }
.style-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.style-card figcaption { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.style-title { display: flex; gap: 6px; margin: 0; }
.style-title input { padding: 6px 9px; font-size: .88rem; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 14px; }
.extra-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--ink); }
.extra-row .qty-in { width: 76px; }

/* box & lines */
.box-top { margin-bottom: 4px; }
.box-top .card { margin-bottom: 12px; }
.lines { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 9px; }
.line select, .line input { width: auto; }
.line select[name=ref], .line select[name=product_id] { flex: 1 1 200px; }
.line .qty-in { width: 76px; }
.line .price-in { width: 128px; }
.line-kind { font-size: .72rem; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; }
.line.kind-extra { border-style: dashed; border-color: var(--accent-line); background: rgba(var(--accent-rgb), .05); }
.line.kind-extra .line-kind { background: var(--accent-soft); color: var(--accent-hi); }
.totals { margin-top: 14px; }
.total { font-size: 1.1rem; }
.total b { color: var(--accent-hi); }

/* tables */
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; color: var(--muted); font-weight: 500; white-space: nowrap; letter-spacing: .02em; }
td { white-space: nowrap; }
td.muted, td.wrap { white-space: normal; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tr:last-child td { border-bottom: 0; }
tr.off td { opacity: .5; }
tr.low-row td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
tr.today-row td { background: var(--accent-soft); }
tfoot td { font-weight: 700; border-top: 1px solid var(--line-2); color: var(--accent-hi); }
td form { margin: 0; }
td select { width: auto; padding: 5px 9px; }
.count-in { width: 92px; }
.pl-tag { font-size: .7rem; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.pl-tag.up { background: var(--ok-soft); color: var(--ok); }
.pl-tag.down { background: var(--bad-soft); color: var(--bad); }

@media print {
  .topbar, .side, .btn, .tabs, .foot, .impersonate-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; box-shadow: none; background: #fff; }
  .shell { display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) {
  body { font-size: 15px; }
  .card { padding: 16px; border-radius: 16px; }
  .hero { padding: 36px 0 24px; }
  .appt .time { border: 0; padding: 0; min-width: auto; text-align: start; }
  .nav > a:not(.btn):not(.icon-link) { display: none; }
}
.steps-list { margin: 0; padding-inline-start: 20px; color: var(--ink-2); }
.steps-list li { margin: 6px 0; }

/* closed days and the nearest-free-time hint */
.day.closed { cursor: not-allowed; }
.day.closed span { opacity: .38; border-style: dashed; background: transparent; }
.day.closed .day-sub { color: var(--bad); }
.nearest { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 10px; padding: 12px 14px;
  border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink-2); }
.nearest p { margin: 0; }
.slots .hint { color: var(--accent-hi); font-weight: 500; }

/* salon colour picker */
.brand-pick { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.brand-pick .label { color: var(--ink-2); }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 7px; background: var(--c); border: 1px solid var(--line-2); vertical-align: middle; }
.color-in { width: 46px; height: 32px; padding: 2px; border-radius: 9px; cursor: pointer; }

/* ============================================================
   Landing (main home page)
   ============================================================ */
html, body { overflow-x: clip; }
.landing { position: relative; }
/* Decorations span the whole screen width, behind the centred content. */
.l-deco { position: absolute; top: -28px; left: 50%; width: 100vw; height: 1000px; transform: translateX(-50%); overflow: hidden; z-index: -1; pointer-events: none;
  mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb-a { width: 560px; height: 560px; background: rgba(var(--accent-rgb), .2); top: -180px; right: 4%; animation: drift 14s ease-in-out infinite alternate; }
.orb-b { width: 460px; height: 460px; background: rgba(120, 90, 255, .09); top: 300px; left: 2%; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.grid-bg { position: absolute; inset: 0 0 auto; height: 760px;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .85rem;
  background: rgba(var(--accent-rgb), .1); border: 1px solid var(--accent-line); color: var(--accent-hi); margin-bottom: 18px; }
.lead { color: var(--ink-2); font-size: 1.1rem; line-height: 1.8; max-width: 560px; }

.l-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 40px 0 30px; min-height: 560px; }
.l-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }
.shine { background: linear-gradient(100deg, var(--accent-hi), #fffaf0 40%, var(--accent) 70%, var(--accent-hi));
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }

.l-search { display: flex; gap: 8px; padding: 8px; margin: 26px 0 22px; max-width: 640px; flex-wrap: wrap;
  background: rgba(20, 20, 23, .7); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9); backdrop-filter: blur(14px); }
.l-field { flex: 2 1 220px; flex-direction: row; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--muted); }
.l-field.l-city { flex: 1 1 160px; }
.l-field input, .l-field select { border: 0; background: transparent; padding: 12px 0; box-shadow: none !important; }
.l-field:focus-within { outline: 2px solid var(--accent-line); }
.l-search .btn { padding-inline: 26px; }
.l-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.l-stats div { display: flex; flex-direction: column; }
.l-stats b { font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.l-stats span { color: var(--muted); font-size: .86rem; }

/* phone mockup */
.l-mock { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone { width: 270px; padding: 18px 16px 20px; border-radius: 34px; background: linear-gradient(180deg, #17171a, #0e0e10);
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 0 8px rgba(255, 255, 255, .02), 0 0 80px -20px rgba(var(--accent-rgb), .35);
  transform: rotate(-4deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-4deg) translateY(-10px); } }
.phone-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .95rem; }
.phone-top .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-grad); }
.m-label { font-size: .7rem; color: var(--muted); margin: 10px 0 6px; }
.m-barbers { display: flex; gap: 8px; }
.m-barbers i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--accent-hi); background: rgba(var(--accent-rgb), .1); border: 1px solid var(--line); }
.m-barbers i.on { background: var(--gold-grad); color: var(--accent-ink); border-color: transparent; }
.m-days { display: flex; gap: 6px; }
.m-days span { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: .62rem; color: var(--muted); padding: 6px 0; border-radius: 10px; border: 1px solid var(--line); }
.m-days b { font-size: .95rem; color: var(--ink); }
.m-days .on { background: var(--gold-grad); border-color: transparent; color: rgba(0, 0, 0, .6); }
.m-days .on b { color: var(--accent-ink); }
.m-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-times span { text-align: center; font-size: .74rem; padding: 6px 0; border-radius: 8px; border: 1px solid var(--line-2); }
.m-times .x { color: #57534c; border-style: dashed; text-decoration: line-through; }
.m-times .on { background: var(--gold-grad); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.m-btn { margin-top: 14px; text-align: center; padding: 10px; border-radius: 12px; background: var(--gold-grad); color: var(--accent-ink); font-weight: 700; font-size: .88rem; }
.toast { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: .84rem; white-space: nowrap;
  background: rgba(22, 22, 25, .9); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); backdrop-filter: blur(10px); }
.toast .ic { color: var(--ok); }
.toast.t1 { top: 70px; inset-inline-end: -6px; animation: float2 5s ease-in-out infinite; }
.toast.t2 { bottom: 70px; inset-inline-start: -10px; animation: float2 6s ease-in-out infinite reverse; }
.toast.t2 .ic { color: var(--accent-hi); }
@keyframes float2 { 50% { transform: translateY(-8px); } }

/* governorate chips */
.rotator { display: inline-block; }
.h1-line { display: inline-block; white-space: nowrap; }
.rotator .shine { vertical-align: baseline; }
.rotator .shine { display: inline-block; transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.rotator .shine.out { opacity: 0; transform: translateY(-.35em); filter: blur(4px); }
.kind-bar { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
.kind-bar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--muted); text-align: center; font-size: .84rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.kind-bar a:hover { transform: translateY(-3px); color: var(--ink); border-color: var(--accent-line); background: var(--accent-soft); }
.kind-bar .k-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.kind-bar .k-ic .ic { width: 24px; height: 24px; }
.kind-bar .k-name { line-height: 1.3; }
.kind-bar small { position: absolute; top: 8px; inset-inline-start: 8px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 600; }
.kind-bar a.on { color: var(--ink); border-color: transparent; background: rgba(var(--accent-rgb), .16); box-shadow: inset 0 0 0 1.5px var(--accent); }
.kind-bar a.on .k-ic { background: var(--gold-grad); color: var(--accent-ink); }
@media (max-width: 900px) { .kind-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kind-bar { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .kind-bar a { flex: 0 0 92px; } }
.s-mark { position: absolute; inset-inline-start: 14px; bottom: -14px; z-index: 1; color: rgba(255, 255, 255, .22); }
.s-mark .ic { width: 84px; height: 84px; }
.s-kind { display: inline-flex; align-items: center; gap: 5px; }
.s-kind .ic { width: 13px; height: 13px; }
.city-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; margin-bottom: 8px; }
.city-chips a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: .92rem; transition: all .15s; }
.city-chips a small { color: var(--muted); font-size: .76rem; }
.city-chips a:hover { color: var(--ink); border-color: var(--line-2); }
.city-chips a.on { background: var(--gold-grad); color: var(--accent-ink); border-color: transparent; }
.city-chips a.on small { color: rgba(0, 0, 0, .55); }

.l-section { margin: 34px 0 46px; scroll-margin-top: 80px; }
.l-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.l-head h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }

/* salon cards — each card wears its own salon's colour */
.salon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.s-card { --c: var(--accent); --c-rgb: var(--accent-rgb); position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.s-card:hover { transform: translateY(-5px); color: var(--ink); border-color: rgba(var(--c-rgb), .55); box-shadow: 0 26px 50px -24px rgba(var(--c-rgb), .55); }
.s-cover { height: 92px; position: relative; background: var(--c-grad); }
.s-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .35), transparent 55%), linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35)); }
.s-kind { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(6px); }
.s-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s-logo { width: 72px; height: 72px; border-radius: 20px; margin-top: -38px; position: relative; z-index: 1; font-size: 1.8rem;
  border: 3px solid #121214; background: #121214; color: var(--c); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9); }
.s-body h3 { margin: 6px 0 0; font-size: 1.15rem; }
.s-where { color: var(--muted); font-size: .88rem; margin: 0; display: flex; align-items: center; gap: 5px; }
.s-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.s-tags span { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; padding: 3px 10px; border-radius: 999px; background: rgba(var(--c-rgb), .12); color: var(--ink-2); border: 1px solid rgba(var(--c-rgb), .25); }
.s-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.s-price { font-weight: 600; }
.s-price small { color: var(--muted); font-weight: 400; }
.s-cta { font-weight: 600; color: var(--c); filter: brightness(1.25); }
.l-empty { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 20px; }
.l-empty .ic { width: 36px; height: 36px; margin-bottom: 8px; }

/* how it works */
.steps-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.how { position: relative; padding: 24px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.how i { position: absolute; top: 4px; inset-inline-end: 16px; font-style: normal; font-size: 4.5rem; font-weight: 700; color: rgba(255, 255, 255, .04); line-height: 1; }
.how > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(var(--accent-rgb), .12); color: var(--accent-hi); margin-bottom: 14px; }
.how h3 { margin-bottom: 6px; }
.how p { color: var(--muted); margin: 0; }

/* booking code lookup */
.l-track { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 46px; }
.l-track > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.l-track > div .ic { color: var(--accent-hi); width: 22px; height: 22px; }
.l-track form input { width: 180px; }
.l-track .recent { flex-basis: 100%; margin: 0; }

/* for salon owners */
.l-owners { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 36px; border-radius: 28px; margin-bottom: 30px;
  background: radial-gradient(600px 300px at 0% 0%, rgba(var(--accent-rgb), .22), transparent 70%), linear-gradient(160deg, rgba(var(--accent-rgb), .08), rgba(255, 255, 255, .02));
  border: 1px solid var(--accent-line); }
.l-owners h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.o-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.o-feat { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); font-size: .92rem; }
.o-feat .ic { color: var(--accent-hi); width: 20px; height: 20px; }

@media (max-width: 900px) {
  .l-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 18px; text-align: center; }
  .l-hero .lead { margin-inline: auto; }
  .l-search { margin-inline: auto; }
  .l-stats { justify-content: center; }
  .l-mock { min-height: 420px; }
  .l-owners { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 560px) {
  .l-mock { display: none; }
  .l-search .btn { width: 100%; }
  .l-stats { gap: 18px; }
  .l-stats b { font-size: 1.4rem; }
  .o-grid { grid-template-columns: 1fr 1fr; }
  .l-track form, .l-track form input { width: 100%; }
}

/* admin: contact messages */
.msg.done { opacity: .6; }
.msg-body { white-space: pre-wrap; margin: 12px 0 0; color: var(--ink-2); line-height: 1.7; }

/* platform landing page */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: 680px; }
.door { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: rgba(20, 20, 23, .72);
  border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9); }
.door.alt { background: radial-gradient(400px 200px at 100% 0%, rgba(var(--accent-rgb), .2), transparent 70%), rgba(20, 20, 23, .72); border-color: var(--accent-line); }
.door-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(var(--accent-rgb), .12); color: var(--accent-hi); }
.door-ic .ic { width: 22px; height: 22px; }
.door h3 { margin: 4px 0 0; font-size: 1.2rem; }
.door p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; line-height: 1.7; flex: 1; }
.door .row { gap: 8px; flex-wrap: wrap; }
.door .btn .ic { width: 18px; height: 18px; }
.l-stats-band { justify-content: center; gap: 56px; padding: 22px; margin: 10px 0 0; border-block: 1px solid var(--line); text-align: center; }
.l-stats-band div { align-items: center; }
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feat { padding: 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.feat > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: rgba(var(--accent-rgb), .12); color: var(--accent-hi); margin-bottom: 12px; }
.feat h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feat p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan.hot { border: 1.5px solid var(--accent); background: radial-gradient(400px 220px at 50% 0%, rgba(var(--accent-rgb), .16), transparent 70%), var(--surface);
  box-shadow: 0 30px 70px -36px rgba(var(--accent-rgb), .7); }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan p { margin: 0; }
.plan-price { font-size: 1.7rem; font-weight: 700; margin: 14px 0 16px !important; }
.plan-price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-tag { position: absolute; top: -12px; inset-inline-start: 22px; padding: 3px 12px; border-radius: 999px; background: var(--gold-grad); color: var(--accent-ink); font-size: .78rem; font-weight: 600; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; padding: 36px; border-radius: 28px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(var(--accent-rgb), .16), transparent 70%), rgba(255, 255, 255, .02); border: 1px solid var(--line-2); }
.contact h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.c-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink); font-size: 1.02rem; width: fit-content; }
.c-line .ic { color: var(--accent-hi); width: 20px; height: 20px; }
.contact-form { margin: 0; }
.contact-form .btn .ic { width: 18px; height: 18px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .doors { margin-inline: auto; text-align: start; }
  .contact { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 560px) {
  .doors { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .l-stats-band { gap: 26px; }
}

@media (max-width: 720px) { .hide-sm { display: none; } }
.l-hero-text { min-width: 0; }
.warn-text { color: var(--warn); margin: 4px 0; }
.ok-text { color: var(--ok); margin: 4px 0; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--accent-line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-hi); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.8; }
.share { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.share .btn .ic { width: 16px; height: 16px; }
