/* Favhillz — shared styles for the public site, booking flow and admin. Mobile first. */
:root {
  --brand: #0f766e;
  --brand-600: #0d6560;
  --brand-50: #ecf7f5;
  --brand-100: #d3eee9;
  --ink: #10201d;
  --ink-2: #3d4f4b;
  --muted: #6b7c78;
  --line: #e2e9e7;
  --bg: #f5f8f7;
  --card: #ffffff;
  --accent: #f59e0b;
  --danger: #b42318;
  --danger-50: #fef3f2;
  --warn: #b54708;
  --warn-50: #fffaeb;
  --ok: #067647;
  --ok-50: #ecfdf3;
  --info-50: #eff8ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 29, 0.05), 0 4px 16px rgba(16, 32, 29, 0.05);
  --shadow-lg: 0 10px 40px rgba(16, 32, 29, 0.14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --brand-text: #0f766e;
  --glow: #d3eee9;
  --surface-2: #fafcfb;
  --field-line: #cdd8d5;
  --hover-line: #9fcfc8;
  --header-bg: rgba(255, 255, 255, 0.92);
  --admin-bg: #f4f6f6;
  --info: #175cd3;
  --info-line: #b2ddff;
  --warn-line: #fedf89;
  --ok-line: #abefc6;
  --danger-line: #fecdca;
  --violet: #6941c6;
  --violet-50: #faf5ff;
  --violet-line: #e9d7fe;
  --shadow-color: rgba(16, 32, 29, 0.08);
  color-scheme: light;
}

/* ---------- Dark mode: follows the system unless the visitor picks one (html[data-theme]) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-text: #5fd4c4;
    --brand-50: #12302c;
    --brand-100: #1c4740;
    --ink: #e6efed;
    --ink-2: #b9c8c5;
    --muted: #8a9e9a;
    --line: #24332f;
    --bg: #0c1513;
    --card: #131e1c;
    --danger: #f97066;
    --danger-50: #2d1715;
    --warn: #fdb022;
    --warn-50: #2b2010;
    --ok: #47cd89;
    --ok-50: #10261b;
    --info-50: #102033;
    --glow: #12322d;
    --surface-2: #182523;
    --field-line: #31443f;
    --hover-line: #2f6f66;
    --header-bg: rgba(12, 21, 19, 0.88);
    --admin-bg: #0c1513;
    --info: #84caff;
    --info-line: #1e3a5c;
    --warn-line: #5a4316;
    --ok-line: #1b4a33;
    --danger-line: #5a2621;
    --violet: #c4b5fd;
    --violet-50: #1f1830;
    --violet-line: #3b2f5c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-text: #5fd4c4;
  --brand-50: #12302c;
  --brand-100: #1c4740;
  --ink: #e6efed;
  --ink-2: #b9c8c5;
  --muted: #8a9e9a;
  --line: #24332f;
  --bg: #0c1513;
  --card: #131e1c;
  --danger: #f97066;
  --danger-50: #2d1715;
  --warn: #fdb022;
  --warn-50: #2b2010;
  --ok: #47cd89;
  --ok-50: #10261b;
  --info-50: #102033;
  --glow: #12322d;
  --surface-2: #182523;
  --field-line: #31443f;
  --hover-line: #2f6f66;
  --header-bg: rgba(12, 21, 19, 0.88);
  --admin-bg: #0c1513;
  --info: #84caff;
  --info-line: #1e3a5c;
  --warn-line: #5a4316;
  --ok-line: #1b4a33;
  --danger-line: #5a2621;
  --violet: #c4b5fd;
  --violet-50: #1f1830;
  --violet-line: #3b2f5c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-color: rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-text); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: 0.85rem; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.logo span.sub { color: var(--muted); font-weight: 600; font-size: 0.8rem; display: none; }
@media (min-width: 640px) { .logo span.sub { display: inline; } }
.header-actions { display: flex; gap: 8px; align-items: center; }
.site-footer { padding: 40px 0 100px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); margin-top: 48px; background: var(--card); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
  background: var(--brand); color: #fff; transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--brand-text); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-danger { background: #b42318; color: #fff; }
.btn-danger:hover { background: #912018; }
.btn-wa { background: #25d366; color: #073b1e; }
.btn-wa:hover { background: #1fbd5a; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.05rem; padding: 0 26px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-title h2, .card-title h3 { margin: 0; }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 650; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='date'], input[type='time'],
input[type='search'], input[type='url'], input[type='password'], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--field-line); border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7c78' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
input[aria-invalid='true'], select[aria-invalid='true'] { border-color: var(--danger); }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

/* Chips (single/multi choice) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--field-line); background: var(--card);
  font: inherit; font-weight: 600; font-size: 0.93rem; color: var(--ink-2); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: all 0.12s;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Stepper (- 2 +) */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.stepper .s-label { font-weight: 650; font-size: 0.95rem; }
.stepper .s-ctrl { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--field-line); background: var(--card); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.stepper button:hover { border-color: var(--brand); color: var(--brand-text); }
.stepper output { min-width: 22px; text-align: center; font-weight: 750; font-size: 1.1rem; }

/* Toggle tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; text-align: left; padding: 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--card); font: inherit; cursor: pointer; color: var(--ink); transition: all 0.12s; min-height: 64px;
}
.tile:hover { border-color: var(--hover-line); }
.tile[aria-pressed='true'] { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.tile[aria-pressed='true']::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: var(--brand-text); font-weight: 800; }
.tile .t-icon { font-size: 1.3rem; }
.tile .t-name { font-weight: 700; display: block; font-size: 0.95rem; }
.tile .t-meta { font-size: 0.82rem; color: var(--muted); }
.tile .t-badge { display: inline-block; margin-top: 4px; font-size: 0.75rem; font-weight: 750; color: var(--ok); background: var(--ok-50); padding: 2px 8px; border-radius: 999px; }

/* Service cards */
.services { display: grid; gap: 12px; }
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } }
.svc {
  display: block; width: 100%; text-align: left; padding: 18px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--card); font: inherit; color: var(--ink); cursor: pointer; transition: all 0.15s; box-shadow: var(--shadow);
}
.svc:hover { border-color: var(--hover-line); transform: translateY(-1px); }
.svc[aria-pressed='true'] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand), var(--shadow); }
.svc .svc-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.svc .svc-name { font-weight: 750; font-size: 1.05rem; }
.svc .svc-from { font-weight: 700; color: var(--brand-text); white-space: nowrap; font-size: 0.92rem; }
.svc .svc-tag { color: var(--muted); font-size: 0.92rem; margin: 4px 0 0; }
details.incl { margin-top: 10px; font-size: 0.9rem; }
details.incl summary { cursor: pointer; color: var(--brand-text); font-weight: 650; list-style: none; padding: 4px 0; }
details.incl summary::-webkit-details-marker { display: none; }
details.incl summary::after { content: ' ▾'; }
details[open].incl summary::after { content: ' ▴'; }
ul.ticks, ul.plus { list-style: none; padding: 0; margin: 6px 0 10px; }
ul.ticks li, ul.plus li { padding-left: 24px; position: relative; margin: 4px 0; color: var(--ink-2); }
ul.ticks li::before { content: '✓'; position: absolute; left: 2px; color: var(--brand-text); font-weight: 800; }
ul.plus li::before { content: '+'; position: absolute; left: 4px; color: var(--warn); font-weight: 800; }

/* ---------- Booking wizard ---------- */
.wizard { padding-top: 16px; padding-bottom: 140px; }
.progress { display: flex; gap: 4px; margin: 4px 0 18px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress span.done { background: var(--brand); }
.step-head { margin-bottom: 18px; }
.step-head .kicker { font-size: 0.8rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-text); }
.step-head h1 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); margin: 4px 0 4px; }
.step-head p { color: var(--muted); margin: 0; }
.section-label { font-weight: 750; margin: 22px 0 10px; font-size: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--muted); font-weight: 600; background: none; border: 0; font: inherit; cursor: pointer; padding: 6px 0; }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px var(--shadow-color); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.bar-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar .bar-price { flex: 1; min-width: 0; cursor: pointer; background: none; border: 0; text-align: left; font: inherit; padding: 0; color: var(--ink); }
.bar .bar-price .amt { font-weight: 800; font-size: 1.2rem; display: block; }
.bar .bar-price .sub { font-size: 0.8rem; color: var(--muted); }
.bar .btn { min-width: 150px; }

.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.93rem; display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.notice.ok { background: var(--ok-50); color: var(--ok); }
.notice.err { background: var(--danger-50); color: var(--danger); }
.notice.warn { background: var(--warn-50); color: var(--warn); }
.notice.info { background: var(--info-50); color: var(--info); }
.notice.brand { background: var(--brand-50); color: var(--brand-text); }

.price-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.price-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.price-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.price-table tr.discount td { color: var(--ok); }
.price-table tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 800; font-size: 1.1rem; padding-top: 10px; }
.price-table tr.pay td { border-bottom: 0; font-weight: 700; color: var(--brand-text); }
.price-table tr.muted td { color: var(--muted); border-bottom: 0; }

/* Date strip + slots */
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.dates::-webkit-scrollbar { height: 6px; }
.dates::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.date {
  flex: none; width: 64px; padding: 10px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
  text-align: center; cursor: pointer; scroll-snap-align: start; font: inherit; color: var(--ink);
}
.date .dw { font-size: 0.75rem; color: var(--muted); font-weight: 650; text-transform: uppercase; }
.date .dd { font-size: 1.25rem; font-weight: 800; }
.date .dm { font-size: 0.72rem; color: var(--muted); }
.date[disabled] { opacity: 0.35; cursor: not-allowed; background: var(--bg); }
.date[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.date[aria-pressed='true'] .dw, .date[aria-pressed='true'] .dm { color: #d3eee9; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot { min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-weight: 650; cursor: pointer; color: var(--ink); }
.slot:hover { border-color: var(--brand); }
.slot[aria-pressed='true'] { background: var(--brand); color: #fff; border-color: var(--brand); }

.summary-list { display: grid; gap: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.summary-list > div > span:first-child { color: var(--muted); flex: none; }
.summary-list > div > span:last-child { text-align: right; font-weight: 600; }
.edit-link { font-size: 0.85rem; }

.photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photos .ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--bg); position: relative; }
.upload-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.upload-btn input { display: none; }

/* Booking status page */
.status-hero { padding: 28px 0 8px; }
.status-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 12px; }
.status-icon.ok { background: var(--ok-50); color: var(--ok); }
.status-icon.wait { background: var(--warn-50); color: var(--warn); }
.status-icon.err { background: var(--danger-50); color: var(--danger); }
.pay-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 16px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--brand-100); }
.copy-row:last-of-type { border-bottom: 0; }
.copy-row .k { color: var(--muted); font-size: 0.85rem; }
.copy-row .v { font-weight: 750; font-size: 1.05rem; word-break: break-all; }
.copy-btn { flex: none; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--brand-100); background: var(--card); color: var(--brand-text); font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.choice-grid { display: grid; gap: 10px; }
@media (min-width: 520px) { .choice-grid { grid-template-columns: 1fr 1fr; } }

/* Floating help */
.help-fab { position: fixed; right: 16px; bottom: 16px; z-index: 35; }
body.has-bar .help-fab { bottom: 96px; right: 12px; }
body.has-bar .help-fab > button { width: 46px; height: 46px; opacity: 0.92; }
body.has-bar .help-fab > button svg { width: 24px; height: 24px; }
body.has-bar .help-menu { bottom: 56px; }
.help-fab > button {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: #25d366; color: #fff; box-shadow: var(--shadow-lg);
  cursor: pointer; display: grid; place-items: center;
}
.help-fab > button svg { width: 28px; height: 28px; }
.help-menu { position: absolute; right: 0; bottom: 66px; width: 250px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; border: 1px solid var(--line); }
.help-menu a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.help-menu a:hover { background: var(--bg); }
.help-menu .hm-title { padding: 8px 12px 4px; font-size: 0.8rem; color: var(--muted); font-weight: 650; }

/* ---------- Landing ---------- */
.hero { padding: 48px 0 32px; background: radial-gradient(1200px 400px at 80% -10%, var(--glow) 0%, transparent 60%), linear-gradient(var(--card), var(--bg)); }
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 560px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--ink-2); font-size: 0.92rem; font-weight: 600; }
.trust span::before { content: '✓ '; color: var(--brand-text); font-weight: 800; }
.steps-3 { display: grid; gap: 12px; }
@media (min-width: 760px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } }
section.block { padding: 36px 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.badge.pending_payment, .badge.deposit_sent, .badge.balance_sent, .badge.requested { background: var(--warn-50); color: var(--warn); border-color: var(--warn-line); }
.badge.confirmed, .badge.deposit_paid, .badge.sent { background: var(--info-50); color: var(--info); border-color: var(--info-line); }
.badge.completed, .badge.paid, .badge.accepted { background: var(--ok-50); color: var(--ok); border-color: var(--ok-line); }
.badge.cancelled, .badge.expired, .badge.declined, .badge.refunded { background: var(--danger-50); color: var(--danger); border-color: var(--danger-line); }

/* ---------- Admin ---------- */
.admin-body { background: var(--admin-bg); }
.admin-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 232px minmax(0, 1fr); background: linear-gradient(90deg, #0f2421 232px, transparent 232px); } }
.admin-nav { background: #0f2421; color: #cfe3df; padding: 0; position: sticky; top: 0; z-index: 30; }
@media (min-width: 960px) { .admin-nav { height: 100vh; overflow-y: auto; padding: 18px 12px; } }
.admin-nav .an-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
@media (min-width: 960px) { .admin-nav .an-top { padding: 0 8px 16px; } }
.admin-nav .logo { color: #fff; }
.admin-nav .an-toggle { background: none; border: 1px solid #2b4743; color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (min-width: 960px) { .admin-nav .an-toggle { display: none; } }
.admin-nav nav { display: none; padding: 0 8px 12px; }
.admin-nav.open nav { display: block; }
@media (min-width: 960px) { .admin-nav nav { display: block; padding: 0; } }
.admin-nav nav a .ico { opacity: 0.85; }
.admin-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #cfe3df; text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.admin-nav nav a:hover { background: #17332f; color: #fff; }
.admin-nav nav a.active { background: var(--brand); color: #fff; }
.admin-nav nav .an-group { margin: 14px 12px 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7fa39d; font-weight: 700; }
.admin-nav nav .count { margin-left: auto; background: var(--accent); color: #3a2400; border-radius: 999px; font-size: 0.72rem; padding: 1px 7px; font-weight: 800; }
.admin-main { padding: 20px 16px 80px; min-width: 0; }
@media (min-width: 960px) { .admin-main { padding: 28px 32px 80px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.stat .s-k { font-size: 0.8rem; color: var(--muted); font-weight: 650; }
.stat .s-v { font-size: 1.5rem; font-weight: 800; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.table tr:last-child td { border-bottom: 0; }
table.table tr.click { cursor: pointer; }
table.table tr.click:hover td { background: var(--surface-2); }
table.table td.num, table.table th.num { text-align: right; }
table.table input, table.table select { min-height: 40px; padding: 8px 10px; font-size: 0.92rem; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: 0.88rem; white-space: nowrap; }
.tabs a.active { background: var(--ink); color: var(--card); border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; min-height: 42px; }
.two-col { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.two-col > * { min-width: 0; }
@media (min-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; font-size: 0.93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; word-break: break-word; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline .t-time { color: var(--muted); font-size: 0.78rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
details.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; }
details.panel > summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: '+'; float: right; color: var(--muted); }
details.panel[open] > summary::after { content: '–'; }
details.panel > .panel-body { padding: 0 16px 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.flash.ok { background: var(--ok-50); color: var(--ok); }
.flash.err { background: var(--danger-50); color: var(--danger); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.agenda-day { margin-bottom: 18px; }
.agenda-day h3 { font-size: 0.95rem; color: var(--muted); margin: 0 0 8px; }
.agenda-item { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: var(--ink); }
.agenda-item .ai-time { font-weight: 800; min-width: 74px; }
@media (min-width: 600px) { .kv { grid-template-columns: 130px minmax(0, 1fr); } }
.login-box { max-width: 400px; margin: 10vh auto; padding: 0 16px; }
.code-input { font-size: 1.8rem !important; letter-spacing: 0.5em; text-align: center; font-weight: 800; }
.hours-grid { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.hours-grid > span:empty { display: none; }
.hours-grid input[type='time'] { min-width: 0; width: 100%; }
@media (min-width: 640px) { .hours-grid { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr) 60px; } .hours-grid > span:empty { display: block; } }
@media print { .admin-nav, .help-fab, .bar { display: none !important; } }

/* =====================================================================
   Icons, help menu, footer
   ===================================================================== */
.ico { flex: none; vertical-align: middle; }
.btn .ico { margin: 0 -2px; }
.hm-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); flex: none; }
.hm-ico.wa { background: #25d366; color: #fff; }
.header-call .hide-sm { display: none; }
@media (min-width: 760px) { .header-call .hide-sm { display: inline; } }
.btn-light { background: #fff; color: #0d6560; }
.btn-light:hover { background: #ecf7f5; }

.site-footer { padding: 48px 0 110px; background: #0f2421; color: #a9c3be; border-top: 0; margin-top: 0; }
.site-footer .logo { color: #fff; }
.site-footer .muted { color: #8fb0aa; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr; } }
.footer-h { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a, .footer-list span { color: #cfe3df; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-list a:hover { color: #fff; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid #22403b; font-size: 0.85rem; }

/* =====================================================================
   Homepage
   ===================================================================== */
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 8px; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .why-grid h2, .coverage h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
section.block { padding: 64px 0; }
@media (max-width: 640px) { section.block { padding: 44px 0; } }

/* Hero */
.h-hero { padding: 36px 0 40px; background: radial-gradient(900px 500px at 85% 10%, var(--glow) 0%, transparent 60%), linear-gradient(180deg, var(--card) 0%, var(--bg) 100%); overflow: hidden; }
.h-hero-grid { display: grid; gap: 36px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .h-hero { padding: 64px 0 72px; } .h-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--brand-100); color: var(--brand-text); font-weight: 700; font-size: 0.82rem; margin-bottom: 18px; box-shadow: var(--shadow); }
.h-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 18px; }
.h-hero .lead { font-size: clamp(1.02rem, 2.2vw, 1.15rem); color: var(--ink-2); max-width: 540px; margin-bottom: 24px; }
.quick-start { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-lg); max-width: 620px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .quick-start { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: end; } }
.qs-field label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 4px 4px; }
.qs-field select, .qs-field input { border-color: var(--line); background-color: var(--bg); }
.qs-postal input { text-transform: uppercase; }
.quick-start .btn { height: 48px; min-height: 48px; }
.h-hero-alt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.h-hero-media { position: relative; margin: 0 8px; }
.h-hero-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(15, 36, 33, 0.35); }
@media (min-width: 640px) and (max-width: 1099px) { .h-hero-media img { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .h-hero-media img { aspect-ratio: 4 / 4.2; } }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 0.9rem; max-width: 260px; }
.float-card .small { font-size: 0.78rem; }
.fc-top { top: 18px; left: -8px; }
.fc-bottom { bottom: 20px; right: -8px; }
@media (min-width: 1100px) { .fc-top { top: 36px; left: -36px; } .fc-bottom { bottom: 40px; right: -28px; } }
.fc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); flex: none; }
.fc-ico.ok { background: var(--ok-50); color: var(--ok); }

/* Benefits */
.benefits { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 22px 16px; }
@media (min-width: 900px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit { display: flex; gap: 12px; align-items: center; }
.benefit strong { display: block; font-size: 0.92rem; }
.benefit span:not(.b-ico) { font-size: 0.82rem; color: var(--muted); }
.b-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-text); display: grid; place-items: center; flex: none; }

/* Service cards */
.svc-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.18s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-img { position: relative; aspect-ratio: 3 / 2; background: var(--brand-50); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-badge { position: absolute; left: 14px; bottom: -18px; width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35); border: 3px solid var(--card); }
.svc-body { padding: 28px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.svc-body .svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.svc-body h3 { font-size: 1.1rem; margin: 0; }
.svc-price { font-weight: 800; color: var(--brand-text); white-space: nowrap; font-size: 0.92rem; }
.svc-body p { margin: 6px 0 4px; }
.svc-body ul.ticks { margin-bottom: 14px; }
.svc-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 750; color: var(--brand-text); }
.svc-card:hover .svc-cta { gap: 10px; }

/* How it works */
.how { background: var(--card); }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: s; position: relative; }
@media (min-width: 860px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .how-steps::before { content: ''; position: absolute; top: 26px; left: 16%; right: 16%; border-top: 2px dashed var(--brand-100); }
}
.how-steps li { position: relative; text-align: center; padding: 0 8px; }
.how-num { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 0 0 8px var(--card), 0 0 0 9px var(--brand-100); }
.how-steps h3 { font-size: 1.1rem; }

/* Why us */
.why-grid { display: grid; gap: 36px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .why-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; } }
.why-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; }
@media (max-width: 899px) { .why-media img { aspect-ratio: 16 / 10; } }
.why-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 14px; }
.why-list p { margin: 2px 0 0; font-size: 0.95rem; }
.w-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand-text); display: grid; place-items: center; flex: none; }

/* Coverage */
.coverage { padding-top: 0; }
.coverage-card { display: grid; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--brand-50), var(--card)); border: 1px solid var(--brand-100); border-radius: 24px; padding: 28px 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .coverage-card { grid-template-columns: 1.2fr 1fr; padding: 40px; } }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.area-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--brand-100); font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.coverage-form input { text-transform: uppercase; }
.coverage-form .row input { flex: 1; min-width: 0; }

/* FAQ */
.faq-wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--brand-text); font-weight: 500; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

/* Final CTA */
.cta-band { background: radial-gradient(800px 300px at 90% 0%, #14958a 0%, transparent 60%), var(--brand-600); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 4px; }
.cta-band p { margin: 0; color: #d3eee9; }

/* =====================================================================
   Admin — booking detail
   ===================================================================== */
.bd { max-width: 1180px; }
.bd-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.bd-back:hover { color: var(--ink); }
.bd-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bd-who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.bd-avatar { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), #14958a); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.bd-who h1 { font-size: 1.5rem; margin: 0 0 4px; }
.bd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.9rem; color: var(--ink-2); }
.bd-ref { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.bd-ref:hover { border-color: var(--brand); color: var(--brand-text); }
.bd-contact { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 650; font-size: 0.88rem; text-decoration: none; cursor: pointer; }
.icon-btn:hover { border-color: var(--hover-line); color: var(--ink); }
.icon-btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.icon-btn.wa:hover { background: #1fbd5a; }
@media (max-width: 700px) { .icon-btn span { display: none; } .icon-btn { width: 42px; padding: 0; justify-content: center; } .icon-btn.wa { width: auto; padding: 0 12px; } .icon-btn.wa span { display: inline; } }

/* Progress tracker */
.bd-track { list-style: none; margin: 0 0 16px; padding: 14px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.bd-track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.bd-track li + li::before { content: ''; position: absolute; top: 13px; right: calc(50% + 18px); width: calc(100% - 28px); height: 2px; background: var(--line); }
.bd-track li.done + li::before, .bd-track li.done + li.done::before { background: var(--brand); }
.bd-track .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); font-weight: 800; font-size: 0.8rem; color: var(--muted); }
.bd-track li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.bd-track li.current .dot { border-color: var(--brand); color: var(--brand-text); background: var(--card); box-shadow: 0 0 0 4px var(--brand-50); }
.bd-track li.done .lbl, .bd-track li.current .lbl { color: var(--ink); font-weight: 700; }
.bd-track .when { font-size: 0.72rem; }

/* Alert + next step */
.bd-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--warn-50); border: 1px solid var(--warn-line); margin-bottom: 16px; }
.bd-alert p { white-space: pre-wrap; margin: 6px 0 10px; }
.bd-alert-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--card); color: var(--warn); display: grid; place-items: center; flex: none; }
.bd-next { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--brand-100); background: linear-gradient(135deg, var(--brand-50), var(--card) 70%); margin-bottom: 18px; box-shadow: var(--shadow); }
.bd-next h2 { font-size: 1.2rem; margin: 2px 0 4px; }
.bd-next p { color: var(--ink-2); margin: 0 0 12px; font-size: 0.93rem; }
.bd-next-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-text); }
.bd-next-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.bd-next.tone-warn { border-color: var(--warn-line); background: linear-gradient(135deg, var(--warn-50), var(--card) 70%); }
.bd-next.tone-warn .bd-next-ico { background: #f79009; }
.bd-next.tone-warn .bd-next-label { color: var(--warn); }
.bd-next.tone-ok { border-color: var(--ok-line); background: linear-gradient(135deg, var(--ok-50), var(--card) 70%); }
.bd-next.tone-ok .bd-next-ico { background: var(--ok); }
.bd-next.tone-ok .bd-next-label { color: var(--ok); }
.bd-next.tone-danger { border-color: var(--danger-line); background: linear-gradient(135deg, var(--danger-50), var(--card) 70%); }
.bd-next.tone-danger .bd-next-ico { background: var(--danger); }
.bd-next.tone-danger .bd-next-label { color: var(--danger); }
@media (max-width: 560px) { .bd-next { flex-direction: column; } }
.bd-payform { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.bd-payform select { width: auto; flex: 1 1 170px; min-height: 46px; }
.bd-payform .btn { flex: 1 1 200px; min-height: 46px; }
.bd-amount { display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background: var(--card); padding-left: 12px; flex: 0 1 140px; }
.bd-amount span { color: var(--muted); font-weight: 700; }
.bd-amount input { border: 0 !important; box-shadow: none !important; min-height: 44px; padding-left: 6px; font-weight: 700; }
.bd-amount:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.bd-next-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 0.9rem; }
.bd-next-links form { margin: 0; }
.bd-next-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bd-next-actions form { margin: 0; }
details.bd-inline summary { list-style: none; cursor: pointer; }
details.bd-inline summary::-webkit-details-marker { display: none; }
details.bd-inline[open] { flex-basis: 100%; }
details.bd-inline[open] summary { margin-bottom: 10px; }

/* Grid of cards */
.bd-grid { display: flex; flex-direction: column; gap: 16px; }
.bd-col { display: contents; }
.bd-card { margin: 0 !important; }
@media (min-width: 1100px) {
  .bd-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  .bd-col { display: flex; flex-direction: column; gap: 16px; }
  .bd-col > * { order: 0 !important; }
}
.bd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bd-card-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.bd-card-head h3 .ico { color: var(--brand-text); }
.bd-sub { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 16px 0 8px; }

.bd-appt { display: flex; gap: 16px; align-items: center; }
.bd-date { width: 72px; flex: none; border-radius: 14px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: var(--card); }
.bd-date .m { display: block; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; padding: 4px 0; letter-spacing: 0.06em; }
.bd-date .d { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.2; padding-top: 4px; }
.bd-date .w { display: block; font-size: 0.75rem; color: var(--muted); padding-bottom: 6px; font-weight: 650; }
.bd-appt-day { font-weight: 800; font-size: 1.1rem; }
.bd-appt-time { font-size: 1rem; margin: 2px 0 8px; }
.bd-team { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 650; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--bg); }
.bd-team .dot { width: 10px; height: 10px; border-radius: 50%; }

.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.bd-chips span.hl { background: var(--warn-50); border-color: var(--warn-line); color: var(--warn); }
.bd-chips span.extra { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-text); }
.bd-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--brand-100); background: var(--bg); border-radius: 0 10px 10px 0; white-space: pre-wrap; font-size: 0.93rem; }
.bd-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.bd-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.bd-addr { font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; }
.bd-addr .muted { font-weight: 500; font-size: 0.92rem; }
.bd-rows > div { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.bd-rows .ico { color: var(--muted); }
.bd-rows .k { color: var(--muted); width: 70px; flex: none; }
.bd-private { margin-top: 12px; border: 1px solid var(--violet-line); background: var(--violet-50); border-radius: 12px; overflow: hidden; }
.bd-private-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 0.82rem; font-weight: 750; color: var(--violet); border-bottom: 1px solid var(--violet-line); }
.bd-private-head span { margin-left: auto; font-weight: 600; font-size: 0.75rem; opacity: 0.8; }
.bd-private-body { padding: 10px 12px; white-space: pre-wrap; font-weight: 600; }

.bd-activity { list-style: none; margin: 0; padding: 0; }
.bd-activity li { display: flex; gap: 12px; padding: 0 0 14px; position: relative; }
.bd-activity li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.a-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.a-ico.ok { background: var(--ok-50); color: var(--ok); }
.a-title { font-weight: 700; font-size: 0.92rem; }
.a-text { font-size: 0.88rem; color: var(--ink-2); white-space: pre-wrap; }
.a-meta { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.bd-cust { display: grid; gap: 10px; }
.bd-cust a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-all; }
.bd-cust a .ico { color: var(--muted); }
.bd-cust a:hover { color: var(--brand-text); }

.bd-total { font-size: 1.35rem; font-weight: 800; }
.bd-progress { position: relative; height: 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); overflow: visible; margin: 2px 0 14px; }
.bd-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #14958a); }
.bd-progress i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-2); opacity: 0.35; }
.bd-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-money > div { background: var(--bg); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.bd-money span { font-size: 0.75rem; color: var(--muted); font-weight: 650; }
.bd-money strong { font-size: 1rem; }
.bd-money strong.due { color: var(--warn); }
.bd-money em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--warn); }
.bd-money em.ok { color: var(--ok); }
.bd-payments { list-style: none; padding: 0; margin: 14px 0 0; }
.bd-payments li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.bd-breakdown { margin-top: 12px; }
.bd-breakdown summary { cursor: pointer; font-weight: 650; color: var(--brand-text); font-size: 0.9rem; }
.bd-breakdown table { margin-top: 8px; font-size: 0.88rem; }

.bd-tools { display: flex; flex-direction: column; gap: 10px; }
.bd-tools details.panel, .bd-danger { margin: 0; }
details.panel > summary { display: flex; align-items: center; gap: 8px; }
details.panel > summary::after { margin-left: auto; }
details.panel > summary .ico { color: var(--brand-text); }
.bd-resend { display: flex; gap: 8px; }
.bd-resend select { flex: 1; min-width: 0; }
.bd-danger > summary, .bd-danger > summary .ico { color: var(--danger) !important; }
.bd-refund { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bd-refund input { flex: 1; min-width: 0; }

.photo-preview { width: 100%; max-width: 360px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; background: var(--bg); }
.photo-pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.photo-pair > * { min-width: 0; }
.photo-pair input[type='file'], .field input[type='file'] { max-width: 100%; }

[id] { scroll-margin-top: 76px; }
.coverage-form input::placeholder, .qs-postal input::placeholder { text-transform: none; }
/* Quick-start: one row on desktop; service gets the spare width so full names show */
@media (min-width: 640px) {
  .quick-start { width: fit-content; max-width: 100%; grid-template-columns: max-content 112px auto; }
  .quick-start .qs-field select { width: auto; min-width: 200px; }
  .quick-start .qs-field select { padding-left: 12px; padding-right: 30px; background-position: right 11px center; }
  .quick-start .btn { padding: 0 18px; }
}
@media (min-width: 1100px) { .h-hero-grid { grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr); gap: 48px; } }

/* Adjust price panel */
.bd-adj-extras { display: grid; gap: 8px; }
.bd-adj-extras .check, #adjust .check { align-items: center; }
.bd-adj-line { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .bd-adj-line { grid-template-columns: 120px minmax(0, 1fr) 120px; } }
.bd-adj-line .bd-amount { flex: none; }
.ok-text { color: var(--ok); }

/* ---------- Light / dark toggle ---------- */
.theme-toggle > span { display: none; align-items: center; gap: 10px; }
:root:not([data-theme-pref]) .theme-toggle .tt-system,
:root[data-theme-pref='system'] .theme-toggle .tt-system,
:root[data-theme-pref='light'] .theme-toggle .tt-light,
:root[data-theme-pref='dark'] .theme-toggle .tt-dark { display: inline-flex; }
.header-actions .theme-toggle { min-width: 38px; padding: 0 10px; color: var(--ink-2); }
.theme-toggle.an-link { all: unset; display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #cfe3df; cursor: pointer; font-weight: 600; font-size: 0.93rem; border-radius: 9px; }
.theme-toggle.an-link:hover { background: #17332f; color: #fff; }
.theme-toggle.an-link:focus-visible { outline: 2px solid var(--brand-100); }
.quote-needed { margin-top: 20px; border-color: var(--warn-line); background: var(--warn-50); }
