/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan: #0d6efd;
  --cyan-dim: rgba(13,110,253,0.14);
  --cyan-border: rgba(13,110,253,0.38);
  --bg: #ffffff;
  --bg2: #ffffff;
  --bg3: #f5f6f8;
  --bg4: #eceef1;
  --border: rgba(15,23,42,0.10);
  --border2: rgba(15,23,42,0.18);
  --text: #101418;
  --text2: #5b6470;
  --text3: #8b939e;
  --success: #00b450;
  --danger: #e04040;
  --warning: #e09000;
  --radius: 10px;
  --radius-lg: 14px;
  --nav-h: 64px;
  --header-h: 56px;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.app-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 0.5px solid var(--border); height: var(--header-h); }
.header-inner { max-width: 480px; margin: 0 auto; padding: 0 1rem; height: 100%; display: flex; align-items: center; gap: 12px; }
.logo-mark { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--cyan); background: var(--cyan-dim); border: 0.5px solid var(--cyan-border); padding: 3px 8px; border-radius: 5px; flex-shrink: 0; }
.page-title { font-size: 15px; font-weight: 500; color: var(--text); flex: 1; }
.header-right { display: flex; align-items: center; }
.icon-btn { background: var(--cyan); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.icon-btn:hover { opacity: 0.85; }

/* ── Main content ─────────────────────────────────────────────────────────── */
.main-content { flex: 1; max-width: 480px; margin: 0 auto; width: 100%; padding: 1rem 1rem calc(var(--nav-h) + max(env(safe-area-inset-bottom, 0px), 10px) + 1rem); }

/* ── Bottom nav ─────────────────────────────────────────────────────────── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--nav-h) + max(env(safe-area-inset-bottom, 0px), 10px)); padding-bottom: max(env(safe-area-inset-bottom, 0px), 10px); background: var(--bg2); border-top: 0.5px solid var(--border); display: flex; z-index: 50; }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: none; cursor: pointer; color: var(--text3); font-size: 10px; letter-spacing: 0.3px; padding: 8px 4px; transition: color 0.15s; }
.nav-btn.active { color: var(--cyan); }
.nav-btn svg { flex-shrink: 0; }

/* ── Stats grid ─────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.125rem; }
.stat-card.accent { background: var(--cyan-dim); border-color: var(--cyan-border); }
.stat-label { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.stat-value { font-size: 26px; font-weight: 600; color: var(--text); letter-spacing: -0.5px; }
.stat-card.accent .stat-value { color: var(--cyan); }

/* ── Section header ─────────────────────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.section-title { font-size: 13px; font-weight: 500; color: var(--text2); text-transform: uppercase; letter-spacing: 0.8px; }
.link-btn { background: none; border: none; color: var(--cyan); font-size: 13px; cursor: pointer; }

/* ── Booking card ─────────────────────────────────────────────────────────── */
.booking-card { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 0.875rem 1rem; margin-bottom: 0.625rem; }
.booking-card.from-web { border-color: var(--cyan-border); }
.bc-top { display: flex; align-items: flex-start; gap: 10px; }
.bc-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--cyan-dim); border: 0.5px solid var(--cyan-border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--cyan); flex-shrink: 0; }
.bc-info { flex: 1; min-width: 0; }
.bc-name { font-size: 14px; font-weight: 500; color: var(--text); }
.bc-meta { font-size: 12px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.bc-price { font-size: 14px; font-weight: 600; color: var(--cyan); }
.bc-bottom { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.bc-datetime { font-size: 12px; color: var(--text3); }
.web-badge { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: var(--cyan-dim); color: var(--cyan); border: 0.5px solid var(--cyan-border); }
.ad-badge { background: #eef4ff; color: #0d6efd; border-color: rgba(13,110,253,.25); font-weight: 600; }
.bc-actions { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 0.5px solid var(--border); }
.act-btn { flex: 1; padding: 6px; background: var(--bg4); border: 0.5px solid var(--border2); border-radius: 7px; color: var(--text2); font-size: 12px; cursor: pointer; }
.act-btn:hover { background: var(--border); color: var(--text); }
.act-btn.danger { color: var(--danger); border-color: rgba(224,64,64,0.2); }
.act-btn.danger:hover { background: rgba(224,64,64,0.1); }

/* ── Status badges ─────────────────────────────────────────────────────────── */
.status-badge { font-size: 10px; padding: 2px 7px; border-radius: 5px; font-weight: 500; }
.status-today { background: rgba(224,144,0,0.15); color: var(--warning); }
.status-upcoming { background: var(--bg4); color: var(--text2); }
.status-done { background: rgba(0,180,80,0.15); color: var(--success); }
.status-cancel { background: rgba(224,64,64,0.12); color: var(--danger); }

/* ── Revenue chart ──────────────────────────────────────────────────────── */
.rev-chart { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
.rev-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rev-row:last-child { margin-bottom: 0; }
.rev-label { font-size: 12px; color: var(--text2); width: 56px; flex-shrink: 0; }
.rev-bar-wrap { flex: 1; height: 6px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.rev-bar { height: 100%; background: var(--cyan); border-radius: 3px; transition: width 0.4s; min-width: 2px; }
.rev-val { font-size: 12px; color: var(--text); width: 48px; text-align: right; flex-shrink: 0; }

/* ── Progress bar ──────────────────────────────────────────────────────── */
.progress-bar { display: flex; align-items: center; margin-bottom: 1.25rem; }
.prog-step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }
.prog-step.active { color: var(--cyan); }
.prog-step.done { color: var(--text2); }
.prog-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.prog-step.done .prog-dot { background: var(--text2); border-color: var(--text2); color: var(--bg); }
.prog-step.active .prog-dot { background: var(--cyan); border-color: var(--cyan); color: #fff; font-weight: 700; }
.prog-line { flex: 1; height: 1px; background: var(--border); margin: 0 4px; }

/* ── Booking form steps ─────────────────────────────────────────────────── */
.step-content { display: flex; flex-direction: column; gap: 0; }
.step-label { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 0.625rem; margin-top: 0.25rem; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svc-card { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0.875rem 0.75rem; cursor: pointer; position: relative; transition: border-color 0.15s; }
.svc-card:hover { border-color: var(--border2); }
.svc-card.selected { border-color: var(--cyan); background: var(--cyan-dim); }
.svc-card.popular { }
.pop-badge { display: block; font-size: 9px; color: var(--cyan); letter-spacing: 0.5px; margin-bottom: 4px; text-transform: uppercase; }
.svc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.svc-price { font-size: 11px; color: var(--cyan); margin: 3px 0; }
.svc-desc { font-size: 10px; color: var(--text3); line-height: 1.4; margin-top: 4px; }

.size-opts { display: flex; gap: 8px; margin-bottom: 1rem; }
.size-opt { flex: 1; padding: 8px 4px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text2); font-size: 12px; cursor: pointer; text-align: center; transition: all 0.15s; }
.size-opt:hover { border-color: var(--border2); color: var(--text); }
.size-opt.selected { border-color: var(--cyan); background: var(--cyan-dim); color: var(--cyan); }

.addon-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); cursor: pointer; margin-top: 0.25rem; }
.addon-label input { accent-color: var(--cyan); width: 15px; height: 15px; cursor: pointer; }

/* ── Calendar ─────────────────────────────────────────────────────────────── */
.cal-wrap { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal-nav { background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.cal-nav:hover { color: var(--text); }
.cal-month { font-size: 14px; font-weight: 500; color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-label { text-align: center; font-size: 10px; color: var(--text3); padding: 4px 0; }
.cal-day { text-align: center; font-size: 13px; padding: 7px 2px; border-radius: 7px; cursor: pointer; color: var(--text); }
.cal-day:hover:not(.empty):not(.past) { background: var(--bg4); }
.cal-day.selected { background: var(--cyan); color: #fff; font-weight: 600; }
.cal-day.past { color: var(--text3); opacity: 0.4; cursor: default; }
.cal-day.empty { cursor: default; }

/* ── Time slots ─────────────────────────────────────────────────────────── */
.slot-section { margin-top: 0.75rem; }
.slot-label { font-size: 12px; color: var(--text2); margin-bottom: 0.5rem; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.slot { background: var(--bg3); border: 1px solid var(--border); border-radius: 7px; padding: 8px 4px; text-align: center; font-size: 12px; cursor: pointer; color: var(--text2); }
.slot:hover:not(:disabled) { border-color: var(--border2); color: var(--text); }
.slot.selected { border-color: var(--cyan); background: var(--cyan-dim); color: var(--cyan); }
.slot.booked { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* ── Form ─────────────────────────────────────────────────────────────────── */
.form-grid { display: flex; flex-direction: column; gap: 0.625rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--text2); }
.field input, .field textarea, .field select { background: var(--bg3); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; color: var(--text); font-family: inherit; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field textarea { height: 72px; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }

/* ── Summary ──────────────────────────────────────────────────────────────── */
.summary-card { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 0.75rem; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 1rem; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.sum-row:last-child { border-bottom: none; }
.sum-row span { color: var(--text2); }
.sum-row strong { color: var(--text); }
.sum-row.total { background: var(--cyan-dim); }
.sum-row.total strong { color: var(--cyan); font-size: 15px; }
.discount-note { font-size: 12px; color: var(--cyan); background: var(--cyan-dim); border: 0.5px solid var(--cyan-border); border-radius: var(--radius); padding: 8px 12px; text-align: center; margin-bottom: 0.75rem; }

/* ── Step footer & buttons ──────────────────────────────────────────────── */
.step-footer { margin-top: 1.25rem; }
.step-footer.two-btn { display: flex; gap: 8px; }
.step-footer.two-btn .btn-primary { flex: 1; }
.btn-primary { background: var(--cyan); color: #fff; border: none; border-radius: var(--radius); padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; letter-spacing: 0.2px; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.35; cursor: default; }
.btn-back { background: var(--bg3); border: 0.5px solid var(--border2); color: var(--text2); border-radius: var(--radius); padding: 12px 18px; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.btn-back:hover { background: var(--bg4); }
.btn-outline { background: none; border: 0.5px solid var(--border2); color: var(--text2); border-radius: var(--radius); padding: 10px 18px; font-size: 14px; cursor: pointer; }
.btn-outline:hover { background: var(--bg3); color: var(--text); }
.btn-danger { background: rgba(224,64,64,0.12); border: 0.5px solid rgba(224,64,64,0.3); color: var(--danger); border-radius: var(--radius); padding: 10px 18px; font-size: 14px; cursor: pointer; }
.btn-danger:hover { background: rgba(224,64,64,0.2); }

/* ── Success screen ──────────────────────────────────────────────────────── */
.success-screen { text-align: center; padding: 2rem 1rem; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--cyan-dim); border: 1.5px solid var(--cyan-border); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--cyan); margin: 0 auto 1.25rem; }
.success-screen h2 { font-size: 20px; font-weight: 600; margin-bottom: 0.5rem; }
.success-screen p { font-size: 13px; color: var(--text2); margin-bottom: 1.5rem; }
.success-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── Admin ───────────────────────────────────────────────────────────────── */
.admin-view { }
.admin-search input { width: 100%; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; color: var(--text); font-family: inherit; margin-bottom: 0.75rem; }
.admin-search input:focus { outline: none; border-color: var(--cyan); }
.filter-tabs { display: flex; gap: 6px; margin-bottom: 0.75rem; overflow-x: auto; padding-bottom: 2px; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { background: var(--bg3); border: 0.5px solid var(--border); border-radius: 6px; padding: 5px 12px; font-size: 12px; color: var(--text2); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.filter-tab.active { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.booking-count { font-size: 11px; color: var(--text3); margin-bottom: 0.75rem; }

/* ── Settings ────────────────────────────────────────────────────────────── */
.settings-view { display: flex; flex-direction: column; gap: 1.25rem; }
.settings-section { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.125rem; }
.settings-heading { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.settings-desc { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 0.75rem; }
.api-key-box { margin-bottom: 0.875rem; }
.api-key-box label { font-size: 11px; color: var(--text3); display: block; margin-bottom: 5px; }
.key-row { display: flex; align-items: center; gap: 8px; }
.key-row code { flex: 1; background: var(--bg4); border: 0.5px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 11px; color: var(--cyan); font-family: monospace; word-break: break-all; }
.copy-btn { background: var(--bg4); border: 0.5px solid var(--border2); border-radius: 6px; color: var(--text2); font-size: 12px; padding: 6px 10px; cursor: pointer; flex-shrink: 0; }
.copy-btn:hover { background: var(--border); color: var(--text); }
.code-block { background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.code-label { font-size: 11px; color: var(--text3); padding: 8px 12px; border-bottom: 0.5px solid var(--border); }
.code-block pre { padding: 10px 12px; font-size: 10px; color: var(--text2); font-family: monospace; overflow-x: auto; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.code-block .copy-btn { display: block; width: 100%; border-radius: 0; border-top: 0.5px solid var(--border); border-left: none; border-right: none; border-bottom: none; }
.danger-zone { border-color: rgba(224,64,64,0.2); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--text3); font-size: 14px; }
.empty-state .btn-primary { margin-top: 1rem; width: auto; padding: 10px 20px; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast { position: fixed; bottom: calc(var(--nav-h) + max(env(safe-area-inset-bottom, 0px), 10px) + 12px); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bg3); border: 0.5px solid var(--border2); color: var(--text); border-radius: var(--radius); padding: 10px 18px; font-size: 13px; z-index: 999; opacity: 0; transition: all 0.25s; white-space: nowrap; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-success { border-color: rgba(0,180,80,0.4); color: var(--success); }
.toast.toast-error { border-color: rgba(224,64,64,0.4); color: var(--danger); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  .svc-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.bc-address { font-size: .8rem; color: var(--muted, #888); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }

/* ── Clients tab ─────────────────────────────────────────────────────────── */
.client-card { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 0.875rem 1rem; margin-bottom: 0.625rem; }
.client-visits { font-size: 11px; color: var(--text3); }
.client-card .bc-actions { margin-top: 10px; padding-top: 10px; border-top: 0.5px solid var(--border); }
.act-btn.book { border-color: var(--cyan-border); color: var(--cyan); background: var(--cyan-dim); }
.act-btn.book:hover { background: rgba(0,212,255,0.2); }
.act-btn.link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ── Working hours (settings) ────────────────────────────────────────────── */
.hours-grid { display: flex; flex-direction: column; gap: 6px; }
.hours-row { display: flex; align-items: center; gap: 8px; }
.hours-day { font-size: 12px; color: var(--text2); width: 34px; flex-shrink: 0; }
.hours-select { flex: 1; background: var(--bg4); border: 0.5px solid var(--border2); border-radius: 7px; padding: 7px 6px; font-size: 12px; color: var(--text); font-family: inherit; color-scheme: dark; min-width: 0; }
.hours-select:focus { outline: none; border-color: var(--cyan); }
.hours-dash { color: var(--text3); font-size: 12px; flex-shrink: 0; }
.hours-closed-label { flex: 1; font-size: 12px; color: var(--text3); font-style: italic; }
.hours-toggle { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text2); cursor: pointer; flex-shrink: 0; }
.hours-toggle input { accent-color: var(--cyan); width: 14px; height: 14px; cursor: pointer; }
.hours-row.is-closed .hours-day { opacity: 0.5; }
.dayoff-add { display: flex; gap: 8px; margin-bottom: 0.75rem; }
.dayoff-add input[type="date"] { flex: 1; background: var(--bg4); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 8px 12px; font-size: 14px; color: var(--text); font-family: inherit; color-scheme: dark; min-width: 0; }
.dayoff-add .btn-outline { flex-shrink: 0; }
.dayoff-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dayoff-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg4); border: 0.5px solid var(--border2); border-radius: 6px; padding: 4px 6px 4px 10px; font-size: 12px; color: var(--text); }
.dayoff-chip button { background: none; border: none; color: var(--danger); font-size: 15px; cursor: pointer; line-height: 1; padding: 2px 4px; }

/* ── Calendar closed days ────────────────────────────────────────────────── */
.cal-day.closed { color: var(--text3); opacity: 0.35; cursor: default; text-decoration: line-through; }
.cal-day.closed:hover { background: none; }

/* ── 6-item bottom nav ───────────────────────────────────────────────────── */
.nav-btn { font-size: 9px; padding: 8px 2px; letter-spacing: 0.2px; }

/* ── Revenue tab ─────────────────────────────────────────────────────────── */
.rev-custom { display: flex; gap: 10px; margin-bottom: 0.75rem; }
.rev-custom .field { flex: 1; }
.rev-custom label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.rev-custom input[type="date"] { width: 100%; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: var(--radius); color: var(--text); padding: 10px 12px; font-size: 15px; font-family: inherit; color-scheme: dark; }
.rev-period-label { font-size: 13px; color: var(--text2); margin-bottom: 0.75rem; }
.rev-upcoming-note { font-size: 12px; color: var(--warning); background: rgba(224,144,0,0.1); border: 0.5px solid rgba(224,144,0,0.25); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 1.25rem; }
.rev-count { color: var(--text3); font-weight: 400; }

/* ── Sign-in screen ──────────────────────────────────────────────────────── */
.auth-screen { max-width: 340px; margin: 0 auto; padding: 6rem 1.25rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.auth-screen .logo-mark { font-size: 15px; padding: 6px 14px; }
.auth-screen h2 { font-size: 20px; font-weight: 600; margin-top: 0.5rem; }
.auth-sub { font-size: 13px; color: var(--text2); line-height: 1.55; }
.auth-screen .field { width: 100%; text-align: left; margin-top: 0.5rem; }
.auth-screen .btn-primary { width: 100%; }
.auth-note { width: 100%; font-size: 13px; border-radius: var(--radius); padding: 10px 14px; line-height: 1.5; }
.auth-note.ok { color: var(--success); background: rgba(0,180,80,0.1); border: 0.5px solid rgba(0,180,80,0.35); }
.auth-note.err { color: var(--danger); background: rgba(224,64,64,0.1); border: 0.5px solid rgba(224,64,64,0.35); }


/* ── Services manager (light, Setmore-style cards) ────────────────────────── */
.sm-list { display: flex; flex-direction: column; gap: 12px; }
.sm-card { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--cyan);
            border-radius: var(--radius-lg); padding: 14px 14px 12px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.sm-off { border-left-color: var(--text3); opacity: .75; }
.sm-name { font-size: 15.5px; font-weight: 650; }
.sm-hidden-tag { font-size: 11px; font-weight: 600; color: var(--text3); background: var(--bg3);
                  border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.sm-meta { font-size: 13.5px; color: var(--text2); margin-top: 2px; }
.sm-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sm-copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border2); background: var(--bg);
            color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sm-copy:hover { border-color: var(--cyan); color: var(--cyan); }
.sm-btn { border: none; background: none; color: var(--text2); font-size: 13px; font-weight: 600;
           cursor: pointer; padding: 7px 8px; border-radius: 8px; }
.sm-btn:hover { background: var(--bg3); color: var(--text); }
.sm-danger:hover { color: var(--danger); }
.sm-note { font-size: 12.5px; color: var(--text3); margin-top: 6px; line-height: 1.5; }
.sm-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.sm-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.sm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0 16px; cursor: pointer; }
.sm-check input { width: 17px; height: 17px; accent-color: var(--cyan); }
.sm-form-btns { display: flex; flex-direction: column; gap: 10px; }

/* ── Revenue: mode toggle, stock chart, delta ─────────────────────────────── */
.rev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.rev-total-line { font-size: 26px; font-weight: 750; letter-spacing: -0.5px; margin-top: 2px; }
.rev-delta { font-size: 13px; font-weight: 650; margin-left: 8px; vertical-align: 3px; }
.rev-delta.up { color: var(--success); }
.rev-delta.down { color: var(--danger); }
.rev-mode-toggle { display: inline-flex; background: var(--bg3); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.rev-mode-toggle button { border: none; background: none; font-size: 13px; font-weight: 600; color: var(--text2);
                          padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.rev-mode-toggle button.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,0.12); }
.rev-chart-wrap { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
                  padding: 10px 6px 4px; margin-bottom: 14px; }
.rev-chart-wrap svg { width: 100%; height: auto; display: block; touch-action: none; }
.rev-tip { position: absolute; top: 8px; pointer-events: none; background: var(--text); color: var(--bg);
           font-size: 12px; padding: 5px 9px; border-radius: 7px; white-space: nowrap; }

/* ── Calendar tab: month grid, holidays, day panel ────────────────────────── */
.ac-mode { margin-bottom: 12px; }
.ac-today-line { font-size: 13.5px; color: var(--text2); display: flex; align-items: center; gap: 10px;
                 justify-content: space-between; margin-bottom: 8px; }
.ac-today-btn { border: 1px solid var(--border2); background: var(--bg); color: var(--cyan); font-size: 12.5px;
                font-weight: 600; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.ac-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 6px; }
.ac-day { position: relative; aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center;
          justify-content: center; cursor: pointer; border: 1px solid transparent; font-size: 14px; }
.ac-day:hover { background: var(--bg3); }
.ac-day.empty { cursor: default; }
.ac-day.empty:hover { background: none; }
.ac-day.today { border-color: var(--cyan); font-weight: 700; }
.ac-day.selected { background: var(--cyan); color: #fff; font-weight: 700; }
.ac-day.selected .ac-count { background: #fff; color: var(--cyan); }
.ac-count { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 999px;
            background: var(--cyan); color: #fff; font-size: 10px; font-weight: 700; display: flex;
            align-items: center; justify-content: center; padding: 0 4px; }
.ac-hol-dot { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px;
              border-radius: 50%; background: var(--warning); }
.ac-day.selected .ac-hol-dot { background: #fff; }
.ac-legend { font-size: 12px; color: var(--text3); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.ac-legend-count { min-width: 16px; height: 16px; border-radius: 999px; background: var(--cyan); color: #fff;
                   font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ac-hol-name { color: var(--warning); font-weight: 650; }


/* ── Calendar day bottom sheet ────────────────────────────────────────────── */
.ac-sheet-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 190;
                    animation: acFade .18s ease; }
.ac-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--bg);
            border-radius: 18px 18px 0 0; max-height: 78vh; display: flex; flex-direction: column;
            box-shadow: 0 -8px 32px rgba(15,23,42,0.22); animation: acSlideUp .22s ease;
            padding-bottom: env(safe-area-inset-bottom); }
.ac-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
                 padding: 16px 16px 10px; border-bottom: 1px solid var(--border); }
.ac-sheet-title { font-size: 17px; font-weight: 750; }
.ac-sheet-sub { font-size: 13px; color: var(--text2); margin-top: 2px; }
.ac-sheet-close { border: none; background: var(--bg3); color: var(--text2); width: 32px; height: 32px;
                  border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.ac-sheet-body { overflow-y: auto; padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
@keyframes acSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes acFade { from { opacity: 0; } to { opacity: 1; } }

.brand-word { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--text); }
.brand-word b { color: var(--cyan); font-weight: 800; }
.auth-screen .brand-word { font-size: 32px; }

/* Client history sheet */
.client-card .bc-top { cursor: pointer; }
.cl-stats { display: flex; gap: 8px; }
.cl-stat { flex: 1; background: var(--bg3); border: 0.5px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; font-size: 11px; color: var(--text2); }
.cl-stat b { display: block; font-size: 16px; color: var(--text); margin-bottom: 2px; letter-spacing: -0.3px; }
.cl-actions { display: flex; gap: 8px; }
.cl-actions .btn-primary, .cl-actions .btn-outline { flex: 1; text-align: center; text-decoration: none; }
.cl-notes label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cl-notes-hint { font-weight: 400; color: var(--text3); font-size: 12px; }
.cl-notes textarea { width: 100%; min-height: 72px; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; color: var(--text); resize: vertical; margin-bottom: 8px; }
.cl-history-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text2); margin-top: 4px; }
.ac-sheet { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Weekly daily breakdown */
.rev-daily { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.rev-day-row { display: flex; align-items: center; gap: 12px; background: var(--bg3); border: 0.5px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.rev-day-row.today { border-color: var(--cyan-border); background: var(--cyan-dim); }
.rev-day-chip { background: var(--cyan-dim); border: 0.5px solid var(--cyan-border); color: var(--cyan); font-size: 12px; font-weight: 700; border-radius: 8px; padding: 6px 10px; min-width: 44px; text-align: center; }
.rev-day-row.today .rev-day-chip { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.rev-day-date { flex: 1; font-size: 13px; color: var(--text2); }
.rev-day-amt { font-size: 15px; font-weight: 700; color: var(--text); }
.rev-daily-avg { font-size: 12px; color: var(--text2); }
/* Revenue: source filter + breakdown */
.rev-src-tabs { margin-top: -4px; }
.rev-top-card { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 0.875rem 1.125rem; margin: -0.75rem 0 1.5rem; }
.rev-top-name { font-size: 18px; font-weight: 700; margin-top: 2px; letter-spacing: -0.2px; }
.rev-top-meta { font-size: 12px; color: var(--text2); margin-top: 2px; }
.rev-src { margin-bottom: 1.5rem; }
.rev-src-row { padding: 10px 0; border-bottom: 0.5px solid var(--border); cursor: pointer; }
.rev-src-row:first-child { padding-top: 0; }
.rev-src-row:last-child { border-bottom: none; padding-bottom: 0; }
.rev-src-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.rev-src-name { font-size: 13px; font-weight: 600; color: var(--text); }
.rev-src-row.active .rev-src-name { color: var(--cyan); }
.rev-src-amt { font-size: 12px; color: var(--text); white-space: nowrap; }
.rev-src-top { font-size: 12px; color: var(--text2); margin-top: 6px; }
.rev-src-clear { background: none; border: none; font-size: 12px; color: var(--cyan); cursor: pointer; padding: 0; font-family: inherit; }
.rev-bar.meta { background: #1877f2; }
.rev-bar.google { background: #34a853; }
.rev-bar.web { background: var(--cyan); }
.rev-bar.app { background: var(--text3); }

/* Signup wizard */
.setup-screen { max-width: 420px; }
.setup-dots { display: flex; gap: 8px; justify-content: center; margin: 14px 0 20px; }
.setup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); }
.setup-dot.on { background: var(--cyan); }
.slug-preview { font-size: 14px; color: var(--text2); margin: 6px 0 4px; }
.slug-preview b { color: var(--text); }
.slug-status { min-height: 18px; font-size: 13px; margin-bottom: 10px; }
.slug-status.ok { color: #16a34a; }
.slug-status.err { color: #dc2626; }
.setup-svcs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.setup-svc-row { display: flex; justify-content: space-between; background: var(--bg3); border: 0.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.setup-price-row { display: flex; gap: 8px; }
.setup-price-row .field { flex: 1; }
.setup-screen .btn-primary, .setup-screen .btn-outline { width: 100%; margin-top: 6px; }
.setup-screen .hours-row { text-align: left; }

/* ─── Booking-page customization (Settings) ─────────────────────────────── */
.bp-banner { height: 96px; border-radius: 10px; background: var(--bg3) center/cover no-repeat; border: 0.5px solid var(--border2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.bp-banner span { color: var(--text3); font-size: 13px; }
.bp-img-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bp-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--bg3); border: 0.5px solid var(--border2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.bp-photo img { width: 100%; height: 100%; object-fit: cover; }
.bp-photo span { font-weight: 700; font-size: 16px; color: var(--text2); }
.bp-img-btns { display: flex; flex-direction: column; gap: 6px; }
.bp-img-btns .btn-outline { margin: 0; }
.settings-section .field { margin-bottom: 10px; }
.settings-section textarea { height: auto; resize: vertical; }

/* ─── Service colors ────────────────────────────────────────────────────── */
.svc-colors { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.svc-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.08) inset; transition: transform .12s; }
.svc-swatch.on { border-color: var(--text); transform: scale(1.12); box-shadow: 0 0 0 2px var(--bg) inset; }
.svc-swatch.none { background: var(--bg3); color: var(--text2); font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.sm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; position: relative; top: -1px; }
.ac-svc-dots { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.ac-svc-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; }
.ac-day.selected .ac-svc-dots i { box-shadow: 0 0 0 1px rgba(255,255,255,0.7); }
.ac-day .ac-svc-dots + .ac-hol-dot { left: 6px; transform: none; }

/* ─── Settings hub ──────────────────────────────────────────────────────── */
.settings-hub { display: flex; flex-direction: column; gap: 10px; }
.settings-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px 14px; cursor: pointer; font: inherit; color: var(--text); }
.settings-row:active { background: var(--bg4); }
.settings-row-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--cyan-tint, rgba(13,110,253,0.10)); color: var(--cyan); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-row-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.settings-row-txt b { font-size: 15px; font-weight: 600; }
.settings-row-txt small { font-size: 12.5px; color: var(--text2); }
.settings-row-chev { color: var(--text3); display: flex; }
.settings-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; color: var(--cyan); font: inherit; font-size: 15px; font-weight: 600; padding: 2px 0; cursor: pointer; align-self: flex-start; margin-bottom: -6px; }
.settings-page-title { font-size: 20px; font-weight: 700; margin: 0 0 2px; letter-spacing: -0.2px; }

/* ─── Service options editor ────────────────────────────────────────────── */
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt-row { display: flex; align-items: center; gap: 6px; }
.opt-row .opt-label { flex: 1; min-width: 0; }
.opt-plus { font-size: 13px; color: var(--text2); flex-shrink: 0; }
.opt-row .opt-delta { width: 74px; flex-shrink: 0; }
.opt-del { width: 30px; height: 30px; border-radius: 8px; border: 0.5px solid var(--border2); background: var(--bg3); color: var(--text2); font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.opt-del:hover { color: var(--danger, #c93030); border-color: var(--danger, #c93030); }
.opt-add { margin-top: 8px; background: none; border: 1px dashed var(--border2); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--cyan); cursor: pointer; width: 100%; }
.opt-add:hover { border-color: var(--cyan); }
.opt-row input.opt-label, .opt-row input.opt-delta { background: var(--bg3); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; color: var(--text); font-family: inherit; }
.opt-row input:focus { outline: none; border-color: var(--cyan); }
.sm-opts { font-size: 12px; color: var(--text3); margin-top: 3px; line-height: 1.5; }
.field .opt-row input.opt-delta { width: 74px; }
.field .opt-row input.opt-label { width: auto; }

/* ─── Share CTA / links rows / activity feed ─────────────────────────────── */
.share-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--cyan); color: #fff; border: none; border-radius: var(--radius-lg); padding: 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.share-cta:active { opacity: .9; }
.share-url { background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--text); word-break: break-all; cursor: pointer; }
.bp-link-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bp-link-lbl { width: 78px; flex-shrink: 0; font-size: 13px; color: var(--text2); }
.field .bp-link-row input { width: auto; flex: 1; min-width: 0; }
.act-group { margin-bottom: 14px; }
.act-day { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; margin: 4px 0 8px; }
.act-row { display: flex; gap: 10px; align-items: flex-start; background: var(--bg3); border: 0.5px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.act-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.act-body { flex: 1; min-width: 0; }
.act-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.act-top b { font-size: 14px; }
.act-time { font-size: 12px; color: var(--text3); white-space: nowrap; }
.act-sum { font-size: 13.5px; color: var(--text); margin-top: 2px; }
.act-det { font-size: 12.5px; color: var(--text2); margin-top: 2px; }

/* ─── Your route ─────────────────────────────────────────────────────────── */
.route-view { display: flex; flex-direction: column; gap: 12px; }
.rt-head { display: flex; align-items: center; gap: 8px; }
.rt-nav { width: 34px; height: 34px; border-radius: 50%; border: 0.5px solid var(--border2); background: var(--bg3); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.rt-day { flex: 1; text-align: center; display: flex; flex-direction: column; }
.rt-day b { font-size: 15px; }
.rt-day small { font-size: 12px; color: var(--text2); }
.rt-today { align-self: center; background: none; border: none; color: var(--cyan); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rt-map { position: relative; overflow: hidden; border-radius: 14px; border: 0.5px solid var(--border); max-width: 100%; background: var(--bg3); }
.rt-tile { position: absolute; width: 256px; height: 256px; }
.rt-map-skel { height: 160px; border-radius: 14px; background: var(--bg3); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 13px; }
.rt-pin { position: absolute; transform: translate(-50%, -100%); min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px 11px 11px 2px; background: var(--cyan); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 1.5px solid #fff; }
.rt-attr { position: absolute; right: 4px; bottom: 3px; font-size: 9px; color: #333; background: rgba(255,255,255,.75); padding: 1px 4px; border-radius: 4px; }
.rt-all { width: 100%; }
.rt-list { display: flex; flex-direction: column; gap: 8px; }
.rt-stop { display: flex; gap: 10px; align-items: center; background: var(--bg3); border: 0.5px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.rt-num { width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rt-info { flex: 1; min-width: 0; }
.rt-time { font-size: 13px; font-weight: 700; }
.rt-time span { font-weight: 500; color: var(--text2); }
.rt-name { font-size: 14px; margin-top: 1px; }
.rt-addr { font-size: 12.5px; color: var(--text2); margin-top: 1px; }
.rt-acts { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.rt-acts .act-btn { padding: 6px 10px; font-size: 12px; }
.rt-map { max-width: 100%; margin: 0 auto; }
.ac-route-link { background: none; border: none; color: var(--cyan); font: inherit; font-size: 13px; font-weight: 600; padding: 4px 0 0; cursor: pointer; }
.rt-hint { text-align: center; margin: -4px 0 0; }
.rt-stop { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.rt-stop-main { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: none; font: inherit; color: var(--text); padding: 10px 12px; cursor: pointer; }
.rt-stop-main:disabled { cursor: default; }
.rt-stop-main .rt-info { display: flex; flex-direction: column; }
.rt-stop.open { background: var(--bg4, var(--bg3)); }
.rt-chev { color: var(--text3); display: flex; transition: transform .18s; flex-shrink: 0; }
.rt-chev.up { transform: rotate(180deg); }
.rt-expand { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.rt-expand .rt-acts { flex-direction: row; gap: 8px; }
.rt-expand .btn-primary, .rt-expand .btn-outline { flex: 1; margin: 0; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }

/* ─── Booking form field config ──────────────────────────────────────────── */
.bp-field-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bp-field-lbl { flex: 1; min-width: 0; font-size: 13.5px; }
.bp-seg { display: flex; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 9px; padding: 2px; flex-shrink: 0; }
.bp-seg button { background: none; border: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--text2); padding: 5px 9px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.bp-seg button.on { background: var(--cyan); color: #fff; }

/* ─── Billing: paywall + settings card ─── */
.paywall .pay-card { background: var(--bg2); border: 0.5px solid var(--border2); border-radius: var(--radius-lg); padding: 22px 20px; margin-top: 18px; width: 100%; max-width: 340px; box-shadow: 0 6px 24px rgba(16,20,24,.06); }
.pay-price { font-size: 2.2rem; font-weight: 800; color: var(--text); }
.pay-price span { font-size: 1rem; font-weight: 600; color: var(--text2); }
.pay-list { list-style: none; padding: 0; margin: 14px 0 18px; text-align: left; }
.pay-list li { padding: 5px 0 5px 26px; position: relative; font-size: 13px; color: var(--text); }
.pay-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--cyan); font-weight: 700; }
.paywall .btn-primary { width: 100%; }
.billing-card { display: flex; align-items: center; gap: 12px; background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; margin-top: 14px; }
.billing-card .billing-txt { flex: 1; min-width: 0; }
.billing-card b { font-size: 14px; color: var(--text); }
.billing-card small { display: block; color: var(--text2); font-size: 12px; margin-top: 2px; }
.billing-card .act-btn { flex: 0 0 auto; padding: 8px 14px; }
.billing-card.past-due { border-color: rgba(224,64,64,.35); background: rgba(224,64,64,.06); }

/* Payments (Stripe Connect) */
.pay-status { border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; border: 0.5px solid var(--border2); background: var(--bg4); }
.pay-status b { font-size: 14px; display: block; color: var(--text); }
.pay-status small { color: var(--text2); font-size: 12px; display: block; margin-top: 2px; }
.pay-status.ok { border-color: rgba(0,180,80,0.4); }
.pay-status.ok b { color: var(--success); }
.pay-status.warn { border-color: rgba(245,158,11,0.5); }
.pay-status.warn b { color: #f59e0b; }
.pay-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-btns .btn-primary, .pay-btns .btn-outline { flex: 1; width: auto; margin: 0; text-align: center; }
.pay-fee { margin-top: 10px; font-size: 12px; }
.pay-list { margin: 0 0 12px; padding-left: 18px; color: var(--text2); font-size: 13px; line-height: 1.6; }
.pay-seg { margin-bottom: 10px; width: 100%; }
.pay-seg button { flex: 1; }
.paid-badge { font-size: 11px; font-weight: 600; color: var(--success); background: rgba(0,180,80,0.1); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }

/* ── Assistant tab (as-*) ── */
.main-content.as-main { padding: 0; display: flex; flex-direction: column; flex: none; min-height: 0; overflow: hidden;
                        height: calc(100dvh - var(--header-h)); }
.as-view { flex: 1; min-height: 0; display: flex; flex-direction: column;
           padding-bottom: calc(var(--nav-h) + max(env(safe-area-inset-bottom, 0px), 10px)); }

.as-day { margin: 12px 1rem 0; display: flex; align-items: stretch; gap: 0; background: var(--bg3);
          border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; }
.as-stat { flex: none; padding-right: 16px; }
.as-stat + .as-stat { padding-left: 16px; border-left: 0.5px solid var(--border); }
.as-n { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.15; }
.as-l { font-size: 12px; color: var(--text2); }
.as-next { flex: 1; min-width: 0; padding-left: 16px; border-left: 0.5px solid var(--border); }
.as-who { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-next .as-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.as-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 1rem; display: flex; flex-direction: column; gap: 10px;
           -webkit-overflow-scrolling: touch; }
.as-intro h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; margin: 6px 0 4px; }
.as-intro p { font-size: 13.5px; color: var(--text2); margin-bottom: 14px; max-width: 44ch; }
.as-brief-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--cyan);
                color: #fff; border: none; border-radius: var(--radius-lg); padding: 13px; font: inherit; font-size: 15px;
                font-weight: 600; cursor: pointer; margin-bottom: 14px; }
.as-brief-btn:active { opacity: .9; }
.as-chips { display: flex; flex-direction: column; gap: 8px; }
.as-chip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--bg);
           border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 11px 12px; font: inherit;
           font-size: 14px; color: var(--text); cursor: pointer; }
.as-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.as-chip-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(13,110,253,0.10); color: var(--cyan);
              display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.as-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; word-wrap: break-word; }
.as-bot { align-self: flex-start; background: var(--bg3); border: 0.5px solid var(--border); border-bottom-left-radius: 5px; }
.as-me { align-self: flex-end; background: var(--cyan); color: #fff; border-bottom-right-radius: 5px; }
.as-msg p { margin: 0 0 7px; } .as-msg p:last-child { margin: 0; }
.as-msg ul { margin: 3px 0 7px; padding-left: 18px; } .as-msg li { margin: 2px 0; }
.as-draft { margin: 8px 0; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--cyan);
            border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.as-draft-actions { display: flex; gap: 6px; margin-top: 8px; }
.as-draft-btn { border: 1px solid var(--border2); background: var(--bg); color: var(--text); border-radius: 999px;
                padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.as-draft-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.as-activity { align-self: flex-start; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text3);
               margin: -3px 0 0 4px; }
.as-activity::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.as-booked { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
             color: var(--success); background: rgba(0,180,80,0.10); border-radius: 999px; padding: 5px 11px; }
.as-thinking { color: var(--text3); }
@media (prefers-reduced-motion: no-preference) { .as-thinking { animation: asPulse 1.4s ease-in-out infinite; } }
@keyframes asPulse { 50% { opacity: .4; } }

.as-notif { align-self: stretch; display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--radius-lg);
            background: var(--bg); border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(15,23,42,0.06); font-size: 13.5px; }
.as-notif-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--cyan); flex: none; display: grid; place-items: center; }
.as-notif-top { display: flex; justify-content: space-between; color: var(--text3); font-size: 11.5px; }
.as-brief { align-self: stretch; max-width: none; background: var(--bg); border: 1px solid var(--cyan-border); }
.as-brief h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 8px; }
.as-brief h3 { font-size: 12px; font-weight: 500; color: var(--text2); text-transform: uppercase; letter-spacing: 0.8px; margin: 12px 0 4px; }
.as-brief strong { color: var(--cyan); }

.as-compose { display: flex; align-items: center; gap: 8px; padding: 10px 1rem; border-top: 0.5px solid var(--border); background: var(--bg); }
.as-compose input { flex: 1; min-width: 0; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 999px;
                    padding: 11px 16px; font: inherit; font-size: 15px; color: var(--text); }
.as-compose input:focus { outline: none; border-color: var(--cyan); }
.as-compose input::placeholder { color: var(--text3); }
.as-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--cyan); color: #fff; flex: none;
           display: flex; align-items: center; justify-content: center; cursor: pointer; }
.as-send[disabled] { opacity: .35; cursor: default; }

/* switch (Settings → Notifications & App → Morning brief) */
.as-sw { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; border: 0; background: var(--cyan); cursor: pointer; padding: 0; transition: background .15s; }
.as-sw::after { content: ""; position: absolute; top: 3px; left: 21px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.as-sw[aria-checked="false"] { background: var(--bg4); }
.as-sw[aria-checked="false"]::after { left: 3px; }
.as-n-blue { color: var(--cyan); }
.as-error { border-color: rgba(224,64,64,0.3); color: var(--danger); }
.as-brief-date { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); margin-bottom: 8px; }
.as-new { width: 40px; height: 40px; border-radius: 50%; border: 0.5px solid var(--border2); background: var(--bg3); color: var(--text2);
          flex: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.as-confirm { align-self: stretch; background: var(--bg); border: 1px solid var(--cyan-border); border-radius: var(--radius-lg); padding: 14px; }
.as-confirm-done { border-color: var(--border); opacity: .8; }
.as-confirm-h { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.as-confirm-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; border-top: 0.5px solid var(--border); }
.as-confirm-row span { color: var(--text2); flex-shrink: 0; }
.as-confirm-row b { font-weight: 600; text-align: right; }
.as-confirm-btns { display: flex; gap: 8px; margin-top: 12px; }
.as-confirm-btns .btn-primary, .as-confirm-btns .btn-outline { flex: 1; width: auto; margin: 0; }
.as-confirm-note { font-size: 12.5px; color: var(--text2); margin-top: 10px; }
.settings-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brief-row { display: flex; align-items: flex-start; gap: 14px; }

/* ── Customer history page ─────────────────────────────────────────────── */
.cl-chev { color: var(--text3); display: flex; align-self: center; margin-left: 2px; }
.cl-page { display: flex; flex-direction: column; gap: 14px; }
.cl-head { display: flex; align-items: center; gap: 12px; }
.cl-avatar { width: 52px; height: 52px; font-size: 17px; }
.cl-car { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; }
.cl-car + .cl-car { margin-top: -6px; }
.cl-car-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; }
.cl-car-svcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cl-svc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: var(--bg3); border-radius: 999px; padding: 4px 10px; }
.cl-svc-chip i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.cl-hist { display: flex; flex-direction: column; gap: 8px; }
.cl-hist-row { display: flex; justify-content: space-between; gap: 12px; background: var(--bg3); border: 0.5px solid var(--border); border-left: 4px solid var(--border2); border-radius: 12px; padding: 10px 12px; }
.cl-hist-off { opacity: .6; }
.cl-hist-main, .cl-hist-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-hist-main b { font-size: 14px; } .cl-hist-main span { font-size: 12px; color: var(--text2); }
.cl-hist-side { align-items: flex-end; flex-shrink: 0; } .cl-hist-side b { font-size: 14px; color: var(--cyan); }
.cl-actions .btn-primary { flex: 1.7; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.cl-actions .btn-outline { padding-left: 10px; padding-right: 10px; }

/* ── Agency view: Accounts screen + account switcher ───────────────────── */
.logo-switch { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-family: inherit; }
.ag-screen { max-width: 480px; margin: 0 auto; width: 100%; padding: max(env(safe-area-inset-top, 0px), 18px) 1rem 2rem; display: flex; flex-direction: column; gap: 14px; }
.ag-top { display: flex; align-items: center; justify-content: space-between; }
.ag-top .brand-word { font-size: 20px; }
.ag-title { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; }
.ag-list { display: flex; flex-direction: column; gap: 10px; }
.ag-card { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; font: inherit; color: var(--text); cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.ag-card:hover { border-color: var(--cyan); }
.ag-card:active { background: var(--bg3); }
.ag-card-top { display: flex; align-items: center; gap: 12px; }
.ag-logo { width: 44px; height: 44px; border-radius: 11px; background: rgba(13,110,253,0.10); color: var(--cyan); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.ag-logo img { width: 100%; height: 100%; object-fit: cover; }
.ag-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-name b { font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-name small { font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ag-nums span { background: var(--bg3); border-radius: 10px; padding: 8px 4px; text-align: center; font-size: 10.5px; color: var(--text2); }
.ag-nums b { display: block; font-size: 15px; color: var(--text); letter-spacing: -0.3px; }
.ag-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-pill { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: var(--bg3); color: var(--text2); }
.ag-ok { background: rgba(0,180,80,0.12); color: var(--success); }
.ag-warn { background: rgba(224,144,0,0.15); color: var(--warning); }
.ag-off { background: rgba(224,64,64,0.10); color: var(--danger); }
.ag-last { font-size: 11.5px; color: var(--text3); margin-left: auto; }

/* ══════════════════════════════════════════════════════════════════════════
   Redesign 2026-09-19: dark band on top, bento tiles below, floating pill nav.
   Plus Jakarta Sans. Everything here overrides the rules above on purpose.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --band: #0d1117;
  --band-mut: #9aa4b2;
  --bg3: #f4f6f9;
  --bg4: #e9ecf1;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 72px;
}
html, body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
button, input, select, textarea { font-family: inherit; }
.splash-mark, .brand-word { font-family: inherit; }

/* ── Band ── */
.app-header.band { position: static; z-index: auto; height: auto; background: var(--band); color: #fff; border-bottom: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 40px; }
.band-inner { max-width: 480px; margin: 0 auto; padding: 0 1.125rem; }
.band-row { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.band-right { display: flex; align-items: center; gap: 10px; }
.band-logo { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--band-mut); }
.band-logo img, .band-initials { width: 40px; height: 40px; border-radius: 12px; display: block; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16); }
.band-initials { display: grid; place-items: center; background: rgba(77,148,255,0.18); color: #8ab8ff;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }
.band-logo.lg img, .band-logo.lg .band-initials { width: 52px; height: 52px; border-radius: 16px; font-size: 16px; }
.band-switch { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.band-word { color: #fff; font-size: 19px; }
.band-word b { color: #4d94ff; }
.band-ic { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.08); color: #c9d1dc;
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.band-ic.on { background: #fff; color: var(--band); }
.band-ic.add { background: var(--cyan); color: #fff; }
.band-ic:active { opacity: 0.8; }
.band-hello { color: var(--band-mut); font-size: 13.5px; margin-top: 18px; }
.band-big { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-top: 2px;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.band-big small { font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--band-mut); }
.band-delta { font-size: 13px; font-weight: 700; letter-spacing: 0; }
.band-delta.up { color: #4ade80; }
.band-delta.down { color: #ff8a8a; }
.band-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.band-title-ic { display: inline-flex; align-items: center; gap: 8px; }
.band-title-ic svg { color: #8ab8ff; }
.band-sub { color: var(--band-mut); font-size: 13px; margin-top: 2px; }
.band-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.band-arrows button { width: 36px; height: 36px; border-radius: 11px; border: 0; background: rgba(255,255,255,0.08);
  color: #c9d1dc; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.band-arrows button:active { background: rgba(255,255,255,0.18); }
.band-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255,255,255,0.08);
  border-radius: 12px; padding: 3px; margin-top: 14px; }
.band-seg button { border: 0; background: none; color: var(--band-mut); font-size: 13px; font-weight: 600; padding: 8px 0;
  border-radius: 9px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.band-seg button.active { background: #fff; color: var(--band); }
.band-search { width: 100%; margin-top: 14px; background: rgba(255,255,255,0.08); border: 1px solid transparent; border-radius: 12px;
  padding: 11px 14px; font-size: 16px; color: #fff; -webkit-appearance: none; appearance: none; }
.band-search::placeholder { color: var(--band-mut); }
.band-search:focus { outline: none; border-color: rgba(255,255,255,0.35); }
.band-biz { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.band-biz > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.band-biz b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.band-biz a { color: var(--band-mut); font-size: 12.5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Sheet: the white page rises into the band ── */
.main-content { position: relative; z-index: 1; background: var(--bg); border-radius: 24px 24px 0 0; margin-top: -22px; padding-top: 1.125rem; }
#app.app-fixed { height: 100dvh; min-height: 0; overflow: hidden; }
.main-content.as-main { flex: 1 1 0; height: auto; }

/* ── Floating pill nav ── */
.pill-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(env(safe-area-inset-bottom, 0px), 14px); z-index: 50;
  display: flex; gap: 2px; background: #101418; border-radius: 999px; padding: 6px; max-width: calc(100vw - 16px);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06); }
.pill-btn { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: #aab3c0; padding: 11px 13px;
  border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.pill-btn svg { flex-shrink: 0; }
.pill-btn.ai { color: #8ab8ff; }
.pill-btn.active { background: var(--cyan); color: #fff; }
@media (max-width: 360px) { .pill-btn { padding: 10px 10px; font-size: 12px; gap: 5px; } }
@media (max-width: 330px) { .pill-btn span { display: none; } }

/* ── Tiles everywhere ── */
.booking-card, .client-card, .stat-card, .rev-chart, .as-day { border-color: transparent; }
.filter-tab { border: 0; border-radius: 999px; padding: 7px 13px; font-weight: 600; }
.filter-tab.active { background: #101418; color: #fff; }
.btn-primary { border-radius: 14px; font-weight: 700; }
.share-cta { font-weight: 700; }
.act-btn { border-radius: 10px; font-weight: 600; }
.bc-avatar { border-radius: 13px; border: 0; font-weight: 800; }
.bc-name { font-weight: 700; }
.bc-price { font-weight: 800; color: var(--text); }
.stat-value, .rev-total-line { font-weight: 800; letter-spacing: -0.03em; }
.section-title { font-weight: 700; font-size: 11.5px; letter-spacing: 1px; color: var(--text3); }
.settings-page-title { font-weight: 800; letter-spacing: -0.02em; }
.rev-head { align-items: center; }

/* ── Home ── */
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-tile { border: 0; text-align: left; font: inherit; color: var(--text); border-radius: var(--radius-lg); padding: 14px; background: var(--bg3);
  display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.hm-tile:active { background: var(--bg4); }
.hm-wide { grid-column: span 2; }
.hm-grid.limited > .hm-tile:nth-child(2) { grid-column: span 2; }
.hm-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.hm-hero { background: var(--cyan); color: #fff; cursor: default; }
.hm-hero .hm-label { color: rgba(255,255,255,0.8); }
.hm-hero-main { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 3px;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hm-hero-name { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.hm-hero-meta { font-size: 13px; color: rgba(255,255,255,0.9); overflow-wrap: anywhere; }
.hm-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 10px; }
.hm-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 8px; border-radius: 12px; border: 0; font: inherit;
  font-size: 13.5px; font-weight: 700; background: #fff; color: var(--band); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hm-btn.ghost { background: rgba(255,255,255,0.18); color: #fff; }
.hm-btn:active { opacity: 0.85; }
.hm-num { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-num small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text2); }
.hm-segs { display: grid; gap: 4px; margin-top: 6px; }
.hm-segs i { display: block; height: 6px; border-radius: 3px; background: var(--border2); overflow: hidden; }
.hm-segs i.f, .hm-segs i b { background: var(--success); }
.hm-segs i b { display: block; height: 100%; }
.hm-spark { width: 100%; height: 28px; display: block; margin-top: 2px; }
.hm-fine { font-size: 12px; color: var(--text2); }
.hm-fine.up { color: var(--success); font-weight: 700; }
.hm-fine.down { color: var(--danger); font-weight: 700; }
.hm-brief { background: #101418; color: #e8ecf2; }
button.hm-brief:active { background: #1b2330; }
.hm-brief .hm-label { color: #8ab8ff; display: flex; align-items: center; gap: 6px; }
.hm-brief .hm-label svg { width: 14px; height: 14px; }
.hm-brief .hm-label em { font-style: normal; letter-spacing: 0.04em; background: var(--cyan); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 10px; margin-left: 2px; }
.hm-brief-text { font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-act { flex-direction: row; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.hm-act i { width: 34px; height: 34px; border-radius: 11px; background: var(--bg); display: grid; place-items: center; color: var(--cyan); flex-shrink: 0; }

/* ── Calendar: the chosen day's jobs sit inline under the grid ── */
.ac-day { aspect-ratio: 1 / 0.9; border-radius: 12px; }
.ac-dayjobs { margin-top: 18px; padding-top: 16px; border-top: 0.5px solid var(--border); scroll-margin-top: 16px; }
.ac-dj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ac-dj-head .ac-route-link { flex-shrink: 0; }

/* ── Settings hub as tiles ── */
.settings-hub.settings-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.settings-tile { border: 0; text-align: left; font: inherit; color: var(--text); background: var(--bg3); border-radius: var(--radius-lg); padding: 14px;
  display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; -webkit-tap-highlight-color: transparent; }
.settings-tile:active { background: var(--bg4); }
.settings-tile .settings-row-ic { background: var(--bg); margin-bottom: 8px; border-radius: 12px; }
.settings-tile b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.settings-tile small { font-size: 12px; color: var(--text2); line-height: 1.4; }
.settings-view .share-cta { margin-bottom: 12px; }

/* ══ 2026-09-20: Leads page ══ */
.tile-count { font-style: normal; font-size: 11px; font-weight: 700; background: var(--cyan); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.lead-card { background: var(--bg3); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.lead-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lead-who { min-width: 0; }
.lead-who b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lead-who small { font-size: 13px; color: var(--text2); overflow-wrap: anywhere; }
.lead-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; background: var(--cyan-dim); color: var(--cyan); }
.lead-pill-qualified, .lead-pill-booked { background: rgba(0,180,80,0.15); color: var(--success); }
.lead-pill-maybe { background: rgba(224,144,0,0.16); color: var(--warning); }
.lead-pill-unqualified { background: var(--bg4); color: var(--text2); }
.lead-facts { display: grid; gap: 4px; font-size: 13.5px; }
.lead-facts span { display: grid; grid-template-columns: 74px 1fr; gap: 8px; overflow-wrap: anywhere; }
.lead-facts em { font-style: normal; color: var(--text3); font-size: 12.5px; }
.lead-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); }
.lead-status { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 6px; }
.lead-status button { border: 1px solid var(--border2); background: var(--bg); color: var(--text); border-radius: 10px; padding: 9px 4px; font-size: 12.5px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lead-status button.on-qualified { background: var(--success); border-color: var(--success); color: #fff; }
.lead-status button.on-maybe { background: var(--warning); border-color: var(--warning); color: #fff; }
.lead-status button.on-unqualified { background: var(--text2); border-color: var(--text2); color: var(--bg); }
.lead-booked { font-size: 13px; font-weight: 600; color: var(--success); }
.lead-notes { width: 100%; background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius); padding: 10px 12px; font-size: 16px; color: var(--text); resize: vertical; }
.lead-notes:focus { outline: none; border-color: var(--cyan); }
.lead-card .bc-actions { margin-top: 0; padding-top: 0; border-top: 0; flex-wrap: wrap; }
.lead-card .act-btn { background: var(--bg); text-align: center; text-decoration: none; }
.lead-unqualified { opacity: 0.72; }
.hm-lead { background: var(--cyan-dim); box-shadow: inset 0 0 0 1px var(--cyan-border); }
.hm-lead .hm-label { color: var(--cyan); }
.hm-lead-line { font-size: 14px; line-height: 1.45; }
.theme-seg { display: flex; }
.theme-seg button { flex: 1; }

/* ══ 2026-09-20: dark theme (Settings > Notifications & App > Appearance) ══ */
html[data-theme="dark"] {
  color-scheme: dark;
  --cyan: #3d8bff;
  --cyan-dim: rgba(61,139,255,0.16);
  --cyan-border: rgba(61,139,255,0.42);
  --bg: #0b0e13;
  --bg2: #0b0e13;
  --bg3: #161b24;
  --bg4: #212936;
  --border: rgba(255,255,255,0.09);
  --border2: rgba(255,255,255,0.17);
  --text: #eef1f5;
  --text2: #9aa4b2;
  --text3: #6f7987;
  --success: #35c46f;
  --danger: #ff6b6b;
  --warning: #e7a23a;
  --band: #161c27;
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] #splash { background: #0b0e13; }
html[data-theme="dark"] .splash-mark, html[data-theme="dark"] .brand-word { color: #eef1f5; }
html[data-theme="dark"] .filter-tab.active { background: #eef1f5; color: #0b0e13; }
html[data-theme="dark"] .pill-nav { background: #1c232f; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.10); }
html[data-theme="dark"] .hm-brief { background: #1c232f; }
html[data-theme="dark"] button.hm-brief:active { background: #252e3c; }
html[data-theme="dark"] .hm-btn { color: #0d1117; }
html[data-theme="dark"] .ad-badge { background: rgba(61,139,255,0.16); color: #8ab8ff; }
html[data-theme="dark"] .rev-mode-toggle button.active { background: var(--bg4); box-shadow: none; }
html[data-theme="dark"] .ac-sheet, html[data-theme="dark"] .toast { box-shadow: 0 0 0 1px var(--border2); }
html[data-theme="dark"] .lead-status button.on-unqualified { color: #0b0e13; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color-scheme: dark; }
html:not([data-theme="dark"]) input[type="date"], html:not([data-theme="dark"]) select { color-scheme: light; }

/* ══ 2026-09-21: Insights, What's new, lead alerts (version 2.0 round 1) ══ */
:root { --s1: #0d6efd; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --h1: #cde2fb; --h2: #86b6ef; --h3: #3987e5; --h4: #184f95; }
html[data-theme="dark"] { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --h1: #184f95; --h2: #256abf; --h3: #5598e7; --h4: #b7d3f6; }
.ins-view { display: flex; flex-direction: column; gap: 10px; }
.ins-after { margin-top: 4px; }
.ins-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ins-tile { background: var(--bg3); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ins-tt { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.ins-sub { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.ins-lab { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.ins-big { font-size: 27px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ins-fine { font-size: 12px; color: var(--text2); }
.ins-fine.up { color: var(--success); font-weight: 700; }
.ins-fine.down { color: var(--danger); font-weight: 700; }
.ins-note { font-size: 12.5px; color: var(--text2); margin-top: 6px; line-height: 1.45; }
.ins-bars { display: grid; gap: 10px; margin-top: 4px; }
.ins-bar-row { display: grid; grid-template-columns: minmax(0, 96px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.ins-bar-row[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ins-bar-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-bar { height: 8px; border-radius: 4px; background: var(--border2); overflow: hidden; }
.ins-bar i { display: block; height: 100%; border-radius: 4px; background: var(--cyan); }
.ins-val { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ins-val small { color: var(--text2); font-weight: 500; }
.ins-mo { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding: 5px 0; }
.ins-mo b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ins-mo small { color: var(--text3); font-size: 12px; }
.ins-mo-cur { background: var(--bg); border-radius: 14px; padding: 11px 12px; margin: 5px 0; box-shadow: inset 0 0 0 1.5px var(--cyan); }
.ins-mo-cur div { display: flex; justify-content: space-between; color: var(--cyan); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.ins-mo-cur i { display: block; height: 6px; border-radius: 3px; background: var(--border2); margin: 8px 0 6px; overflow: hidden; }
.ins-mo-cur i em { display: block; height: 100%; background: var(--cyan); border-radius: 3px; }
.ins-mo-cur small { font-size: 12px; color: var(--text2); }
.ins-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.ins-heat em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--text3); padding-bottom: 2px; }
.ins-hc { aspect-ratio: 1 / 0.86; border: 0; border-radius: 9px; font: inherit; font-size: 12px; font-weight: 700; background: var(--bg4); color: var(--text2); cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.ins-hc.s1 { background: var(--h1); color: #0d366b; } .ins-hc.s2 { background: var(--h2); color: #0d366b; }
.ins-hc.s3 { background: var(--h3); color: #fff; } .ins-hc.s4 { background: var(--h4); color: #fff; }
html[data-theme="dark"] .ins-hc.s1, html[data-theme="dark"] .ins-hc.s2 { color: #fff; }
html[data-theme="dark"] .ins-hc.s3, html[data-theme="dark"] .ins-hc.s4 { color: #0b0e13; }
.ins-hc.today { box-shadow: inset 0 0 0 1.5px var(--text); }
.ins-hc.on { box-shadow: 0 0 0 2px var(--bg3), 0 0 0 4px var(--cyan); }
.ins-key { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 11.5px; color: var(--text2); margin-top: 10px; }
.ins-key i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.ins-key i.s1 { background: var(--h1); } .ins-key i.s2 { background: var(--h2); } .ins-key i.s3 { background: var(--h3); } .ins-key i.s4 { background: var(--h4); }
.ins-key-note { margin-left: auto; color: var(--text); }
.ins-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ins-svg text { font-size: 9.5px; font-weight: 600; fill: var(--text3); font-family: inherit; }
.ins-svg .ins-callout { fill: var(--text); font-weight: 800; font-size: 10.5px; }
.ins-grid { stroke: var(--border); stroke-width: 1; }
.ins-area { fill: var(--cyan); fill-opacity: 0.10; }
.ins-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ins-dot { fill: var(--cyan); stroke: var(--bg3); stroke-width: 2; }
.ins-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 124px; align-items: end; margin-top: 4px; }
.ins-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.ins-col span { font-size: 11px; font-weight: 800; min-height: 14px; }
.ins-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--h2); min-height: 3px; flex-shrink: 0; max-height: calc(100% - 38px); }
.ins-col.top i { background: var(--cyan); }
.ins-col em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--text3); }
.ins-stack { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; margin: 6px 0 8px; }
.ins-stack i { display: block; height: 100%; min-width: 2px; }
.ins-stack .c1, .ins-leg .c1 { background: var(--s1); } .ins-stack .c2, .ins-leg .c2 { background: var(--s2); }
.ins-leg { display: grid; gap: 4px; font-size: 13px; }
.ins-leg span { display: inline-flex; align-items: center; gap: 7px; }
.ins-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ins-leg b { font-weight: 800; }
.ins-funnel { display: grid; gap: 6px; }
.ins-funnel div { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.ins-funnel b { font-weight: 800; font-variant-numeric: tabular-nums; }
.ins-funnel small { color: var(--text2); font-weight: 500; }

.wn-overlay { position: fixed; inset: 0; z-index: 320; background: rgba(10,14,20,0.55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.wn-card { background: var(--bg); color: var(--text); border-radius: 26px; padding: 22px 20px 18px; width: 100%; max-width: 400px; max-height: calc(100dvh - 36px); overflow-y: auto; display: grid; gap: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.wn-ver { justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); background: var(--cyan-dim); border-radius: 999px; padding: 4px 10px; }
.wn-card h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
.wn-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.wn-card li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: start; font-size: 13.5px; color: var(--text2); line-height: 1.4; }
.wn-card li i { width: 32px; height: 32px; border-radius: 10px; background: var(--bg3); color: var(--cyan); display: grid; place-items: center; }
.wn-card li b { display: block; color: var(--text); font-size: 14.5px; }
.wn-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px; padding: 13px; font: inherit; font-size: 15px; font-weight: 700; background: #101418; color: #fff; cursor: pointer; }
.wn-btn svg { width: 17px; height: 17px; color: #8ab8ff; }
.wn-btn.ghost { background: var(--bg3); color: var(--text); }
html[data-theme="dark"] .wn-btn:not(.ghost) { background: var(--cyan); }
html[data-theme="dark"] .wn-btn:not(.ghost) svg { color: #fff; }
.wn-foot { text-align: center; margin-top: 6px; }

/* ══ 2026-09-21: plans (Basic / Pro) ══ */
.plan-card-wrap { gap: 12px; }
.plan-card { border: 1.5px solid var(--border2); border-radius: 20px; padding: 16px; display: grid; gap: 10px; }
.plan-card.best { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-top b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.plan-top b em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); background: var(--cyan-dim); border-radius: 999px; padding: 3px 8px; margin-left: 8px; vertical-align: 3px; }
.plan-top span { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-top span small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text2); }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-card li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 13.5px; color: var(--text2); line-height: 1.4; }
.plan-card li::before { content: "\2713"; color: var(--success); font-weight: 800; font-size: 12px; }
.billing-card .act-btn + .act-btn { margin-left: 6px; }

/* ══ 2026-09-21: password sign-in ══ */
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.auth-form .field { margin-top: 0; }
.auth-form .btn-primary, .auth-form .btn-outline { width: 100%; margin-top: 4px; }
.auth-screen .field input { font-size: 16px; }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; min-width: 0; padding-right: 44px; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--text3); display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.pw-eye.on { color: var(--cyan); }
.auth-forgot { align-self: flex-end; font-size: 13px; font-weight: 600; color: var(--cyan); text-decoration: none; margin-top: 2px; }
.auth-link { font-size: 13.5px; font-weight: 600; color: var(--cyan); text-decoration: none; }
.acct-pw { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.acct-pw .pw-wrap input { background: var(--bg3); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 10px 44px 10px 12px; font-size: 16px; color: var(--text); font-family: inherit; }

/* Booking flow picker (Settings > Business Settings), 2026-09-28 */
.bp-flows { display: flex; flex-direction: column; gap: 8px; }
.bp-flow { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: var(--radius-lg); background: var(--bg2); border: 0.5px solid var(--border2); cursor: pointer; }
.bp-flow.on { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); background: var(--cyan-dim); }
.bp-flow-r { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border2); background: var(--bg2); }
.bp-flow.on .bp-flow-r { box-shadow: inset 0 0 0 5.5px var(--cyan); }
.bp-flow-t { min-width: 0; }
.bp-flow-t b { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.bp-flow-t small { display: block; font-size: 12px; color: var(--text2); line-height: 1.4; margin-top: 1px; }
.bp-flow-prev { font-size: 12px; font-weight: 700; color: var(--cyan); text-decoration: none; padding: 6px 2px; }


/* Custom site setup (Settings > Business Settings > Your website), 2026-09-28 */
.pro-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--cyan); border-radius: 4px; padding: 1px 5px; vertical-align: 2px; margin-left: 4px; }
.bp-flow.locked .bp-flow-t { opacity: .75; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpl { border: 0.5px solid var(--border2); background: var(--bg2); border-radius: var(--radius-lg); padding: 8px; text-align: left; font: inherit; color: var(--text); cursor: pointer; display: grid; gap: 4px; }
.tpl.on { border-color: var(--cyan); box-shadow: inset 0 0 0 1.5px var(--cyan); background: var(--cyan-dim); }
.tpl b { font-size: 13px; font-weight: 700; }
.tpl small { font-size: 11.5px; color: var(--text2); line-height: 1.35; }
.tpl-thumb { display: grid; gap: 3px; padding: 5px; height: 78px; border-radius: 8px; background: var(--bg); border: 0.5px solid var(--border); overflow: hidden; align-content: start; }
.tpl-thumb i { display: block; border-radius: 2px; background: var(--bg4); }
.tpl-thumb .dk { background: #0d1117; }
.tpl-thumb .bl { background: var(--cyan); }
.tpl-thumb .gr { background: linear-gradient(135deg, var(--cyan), #7c3aed); }
.sw-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sw.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.sw-custom { position: relative; background: var(--bg3); display: grid; place-items: center; color: var(--text2); font-weight: 600; overflow: hidden; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.site-actions { display: flex; gap: 10px; }
.site-actions .btn-outline, .site-actions .btn-primary { flex: 1; text-align: center; text-decoration: none; }

/* Jobs update (v2.2): complete sheet, clock, line items, log a job, delete customer */
.jb-dim { position: fixed; inset: 0; z-index: 320; background: rgba(16,20,24,0.45); display: flex; align-items: flex-end; justify-content: center; }
.jb-sheet { background: var(--bg); border-radius: 22px 22px 0 0; width: 100%; max-width: 480px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -12px 40px rgba(0,0,0,0.25); max-height: 92vh; overflow-y: auto; }
.jb-sheet h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.jb-sub { margin: 0; font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.jb-big { display: flex; align-items: center; gap: 8px; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 14px; padding: 8px 14px; }
.jb-big span { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.jb-big i { font-style: normal; font-size: 26px; font-weight: 800; color: var(--text3); margin-left: auto; }
.jb-big input { width: 130px; background: none; border: 0; font: inherit; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); text-align: left; padding: 4px 0; }
.jb-big input:focus { outline: none; }
.jb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jb-chip { font: inherit; font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 999px; background: var(--bg); border: 0.5px solid var(--border2); color: var(--text); cursor: pointer; }
.jb-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.jb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jb-two .field span { font-size: 12px; color: var(--text2); }
.jb-two .field span small { color: var(--text3); }
.jb-mins { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; padding: 8px 0 0; }
.jb-sheet .btn-outline { width: 100%; text-align: center; }
.btn-outline.danger { color: var(--danger); border-color: rgba(224,64,64,0.35); }
.jb-del-btn { width: 100%; margin-top: 10px; }
.jb-del-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 0.5px solid var(--border); font-size: 13px; }
.jb-del-row small { display: block; color: var(--text2); font-size: 12px; }
.jb-del-row .act-btn { flex: 0 0 auto; padding: 7px 12px; }
.bc-tag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); background: var(--bg4); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.bc-quoted { font-size: 11px; color: var(--text3); text-align: right; }
.bc-clock { margin-top: 8px; font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.bc-clock.live { color: var(--success); font-weight: 600; }
.bc-clock.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(0,180,80,0.2); }
.bc-actions-2 { margin-top: 6px; padding-top: 6px; border-top: 0; }
.jb-line { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 12px; margin-bottom: 10px; }
.jb-line .svc-grid { margin-top: 10px; }
.jb-line .size-opts { margin-bottom: 0.5rem; }
.jb-line-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.jb-line-title { font-size: 13px; font-weight: 700; }
.jb-line-title small { font-weight: 500; color: var(--text2); }
.jb-input { width: 100%; background: var(--bg); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; color: var(--text); font-family: inherit; }
.jb-input:focus { outline: none; border-color: var(--cyan); }
.jb-line-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--text2); }
.jb-line-foot b { color: var(--text); font-size: 15px; }
.jb-line-total { background: var(--cyan-dim); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
.jb-add { width: 100%; margin-bottom: 12px; }
.jb-price { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 12px; margin-bottom: 0.75rem; display: grid; gap: 8px; }
.jb-price label { font-size: 13px; font-weight: 700; display: grid; gap: 2px; }
.jb-price label span { font-size: 11.5px; font-weight: 500; color: var(--text2); }
.jb-price-row { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 6px 12px; }
.jb-price-row i { font-style: normal; font-weight: 800; color: var(--text3); }
.jb-price-row input { flex: 1; border: 0; background: none; font: inherit; font-size: 20px; font-weight: 800; color: var(--text); width: 100%; }
.jb-price-row input:focus { outline: none; }
.jb-log .step-label { margin-bottom: 8px; }
.jb-picked { display: flex; align-items: center; gap: 10px; background: var(--cyan-dim); border: 0.5px solid var(--cyan-border); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin-top: 8px; }
.jb-picked span { color: var(--text2); flex: 1; }
.jb-matches { display: grid; gap: 6px; margin-top: 8px; }
.jb-match { text-align: left; font: inherit; background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 9px 12px; color: var(--text); cursor: pointer; display: grid; gap: 1px; }
.jb-match span { font-size: 12px; color: var(--text2); }
.jb-log .field select { background: var(--bg3); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; color: var(--text); font-family: inherit; width: 100%; }
.ins-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.ins-kv div { background: var(--bg3); border-radius: 10px; padding: 8px 10px; }
.ins-kv small { display: block; font-size: 10.5px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.ins-kv b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.ins-kv b.up { color: var(--success); } .ins-kv b.down { color: var(--danger); }
/* Get paid sheet: the payment link, selectable so it can be long-pressed and copied */
.gp-link { font-size: 12.5px; color: var(--text2); background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 10px; padding: 9px 11px; word-break: break-all; user-select: all; -webkit-user-select: all; }
/* Get paid: QR screen, paid state; Settings > Payments > Take a payment list */
.gp-qr { display: flex; justify-content: center; align-items: center; min-height: 236px; background: #fff; border-radius: 16px; padding: 8px; }
.gp-qr canvas { display: block; border-radius: 8px; }
.gp-scan { margin: 0; text-align: center; font-size: 15px; color: var(--text); }
.gp-wait { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan, #0d6efd); animation: gpPulse 1.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes gpPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.gp-paid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 6px; text-align: center; color: var(--success, #12b981); }
.gp-paid b { font-size: 26px; color: var(--text); letter-spacing: -0.02em; }
.gp-paid span { font-size: 13px; color: var(--text2); }
.tp-list { display: flex; flex-direction: column; gap: 6px; }
.tp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font: inherit; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 12px; padding: 10px 12px; color: var(--text); cursor: pointer; }
.tp-row span { display: flex; flex-direction: column; min-width: 0; }
.tp-row small { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-row em { font-style: normal; font-weight: 800; font-size: 15px; }
