/* ==========================================================================
   Nobat design system
   RTL-first (logical properties), mobile-first, light + dark, no framework.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --bg: #f5f5f9;
  --surface: #ffffff;
  --surface-2: #f0f0f6;
  --surface-3: #e7e7f0;
  --border: #e3e3ec;
  --border-strong: #cfcfdc;
  --text: #14141c;
  --text-2: #3d3d4c;
  --muted: #6c6c80;
  --faint: #9d9db0;

  --brand: #4f46e5;
  --accent: var(--brand);
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in oklab, var(--accent) 11%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 35%, var(--surface));
  --accent-strong: color-mix(in oklab, var(--accent) 82%, #000);

  --ok: #15a05a;
  --ok-soft: color-mix(in oklab, var(--ok) 12%, var(--surface));
  --warn: #c97a06;
  --warn-soft: color-mix(in oklab, var(--warn) 13%, var(--surface));
  --danger: #e0434b;
  --danger-soft: color-mix(in oklab, var(--danger) 11%, var(--surface));

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgb(20 20 40 / 0.05);
  --shadow: 0 1px 2px rgb(20 20 40 / 0.04), 0 6px 20px -6px rgb(20 20 40 / 0.1);
  --shadow-lg: 0 2px 6px rgb(20 20 40 / 0.05), 0 24px 60px -16px rgb(20 20 40 / 0.22);
  --ring: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c11;
    --surface: #15151c;
    --surface-2: #1c1c25;
    --surface-3: #252530;
    --border: #282834;
    --border-strong: #383846;
    --text: #ececf3;
    --text-2: #c9c9d6;
    --muted: #9a9aae;
    --faint: #6c6c80;
    --accent-soft: color-mix(in oklab, var(--accent) 20%, var(--surface));
    --accent-line: color-mix(in oklab, var(--accent) 45%, var(--surface));
    --accent-strong: color-mix(in oklab, var(--accent) 70%, #fff);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -8px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 24px 60px -16px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.01em; }
:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.center { text-align: center; }
.stack > * + * { margin-block-start: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: var(--gap, 10px); }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 24px; height: 24px; }
.icon.xl { width: 32px; height: 32px; }
.flip { transform: scaleX(-1); }

/* ---------- Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--btn-bd); border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .12s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { border-color: var(--border-strong); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: transparent; box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--accent) 65%, transparent); }
.btn-primary:hover { --btn-bg: var(--accent-strong); border-color: transparent; }
.btn-soft { --btn-bg: var(--accent-soft); --btn-fg: var(--accent-strong); --btn-bd: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-bd: transparent; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 24px; border-radius: var(--r-lg); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--btn-fg); border-inline-end-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ----------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.label .req { color: var(--danger); margin-inline-start: 2px; }
.label .opt { color: var(--faint); font-weight: 400; font-size: 12px; margin-inline-start: 4px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.8; }
.select { cursor: pointer; padding-inline-end: 38px; background-repeat: no-repeat; background-position: left 12px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6c80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.input-lg { min-height: 56px; font-size: 18px; border-radius: var(--r-lg); }
.input.ltr { text-align: left; letter-spacing: .02em; }
.hint { font-size: 12.5px; color: var(--muted); }
.error-text { font-size: 12.5px; color: var(--danger); font-weight: 500; }
.input-group { position: relative; display: flex; align-items: stretch; }
.input-group .input { flex: 1; }
.input-group .addon { display: inline-flex; align-items: center; padding: 0 12px; color: var(--muted); background: var(--surface-2);
  border: 1.5px solid var(--border); border-inline-end: 0; border-radius: var(--r) 0 0 var(--r); font-size: 14px; direction: ltr; white-space: nowrap; }
.input-group .addon + .input { border-start-start-radius: 0; border-end-start-radius: 0; }
[dir="rtl"] .input-group .addon { order: 2; border-radius: 0 var(--r) var(--r) 0; border-inline-end: 1.5px solid var(--border); border-inline-start: 0; }
[dir="rtl"] .input-group .addon + .input { border-radius: var(--r) 0 0 var(--r); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input { padding-inline-start: 44px; }

/* Toggle switch */
.switch { position: relative; display: inline-flex; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .22s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(-18px); }
[dir="ltr"] .switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.toggle-row > :first-child { flex: 1 1 auto; min-width: 0; }
.toggle-row > :last-child { flex: none; }
.toggle-row + .toggle-row { border-top: 1px solid var(--border); }
.toggle-row .t { font-weight: 600; font-size: 14.5px; }
.toggle-row .d { font-size: 12.5px; color: var(--muted); }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 5px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s; white-space: nowrap; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg input:checked + span.is-required { color: var(--accent-strong); }
.seg input:focus-visible + span { box-shadow: var(--ring); }

/* Stepper (number with +/-) */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stepper button { width: 38px; height: 42px; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.stepper button:hover { background: var(--surface-2); color: var(--text); }
.stepper input { width: 46px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield; min-height: 42px; padding: 0; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper .unit { padding-inline-end: 12px; color: var(--muted); font-size: 13px; }

/* ---------- Cards, badges, misc ---------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 16px; font-weight: 700; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; background: var(--surface-2); color: var(--text-2); }
.alert .icon { margin-top: 3px; }
.alert.warn { background: var(--warn-soft); color: color-mix(in oklab, var(--warn) 80%, var(--text)); }
.alert.danger { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--ok-soft); color: color-mix(in oklab, var(--ok) 80%, var(--text)); }
.alert.accent { background: var(--accent-soft); color: var(--accent-strong); }
.empty { display: grid; place-items: center; gap: 8px; text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--faint); stroke-width: 1.5; }
.kbd { font-family: ui-monospace, monospace; font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 20px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.avatar.sm { width: 36px; height: 36px; border-radius: 12px; font-size: 15px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toasts */
.toasts { position: fixed; inset-inline: 0; bottom: 20px; z-index: 100; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 440px; padding: 12px 16px; border-radius: var(--r); background: #1c1c26; color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease); }
.toast.error { background: var(--danger); }
.toast.ok .icon { color: #5be49b; }
.toast.out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* Sheet / modal */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgb(10 10 20 / .45); backdrop-filter: blur(2px); animation: fade .2s; }
.sheet { position: fixed; z-index: 81; inset-inline: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg); animation: sheet-up .3s var(--ease); padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--surface-3); margin: 4px auto 12px; }
@media (min-width: 640px) {
  .sheet { inset: 50% auto auto 50%; transform: translate(-50%, -50%); bottom: auto; width: min(440px, calc(100% - 32px)); border-radius: var(--r-xl); animation: pop .25s var(--ease); padding: 18px 22px 22px; }
  .sheet::before { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }

/* ==========================================================================
   Site (marketing) layout
   ========================================================================== */
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.nav-top { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.nav-top.scrolled { border-bottom-color: var(--border); }
.nav-top .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 60%, #c026d3)); color: #fff; box-shadow: 0 6px 14px -6px color-mix(in oklab, var(--brand) 70%, transparent); }
.logo-mark .icon { width: 20px; height: 20px; stroke-width: 2.4; }

.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 640px; background: radial-gradient(50% 50% at 70% 40%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 70%), radial-gradient(40% 40% at 25% 30%, color-mix(in oklab, #c026d3 12%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); }
.eyebrow .dot { color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 850; margin: 18px 0 14px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(15px, 2.2vw, 18px); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof .icon { color: var(--ok); width: 18px; height: 18px; }
.mock { position: relative; justify-self: center; width: min(380px, 100%); }
.mock-phone { border-radius: 36px; padding: 10px; background: linear-gradient(160deg, #23232f, #0f0f16); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .06); }
.mock-screen { border-radius: 28px; overflow: hidden; background: var(--bg); }
.mock-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; animation: float 5s ease-in-out infinite; }
.mock-float .icon { color: var(--ok); }
.mock-float.a { inset-inline-start: -34px; top: -18px; }
.mock-float.b { inset-inline-end: -26px; bottom: 8%; animation-delay: -2.5s; }
@media (max-width: 520px) { .mock-float.a { inset-inline-start: -6px; } .mock-float.b { inset-inline-end: -6px; } }
@keyframes float { 50% { transform: translateY(-8px); } }
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.feature { padding: 22px; }
.feature .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 14px; }
.feature h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }
.steps-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps-3 .card { padding: 24px; position: relative; }
.steps-3 .card::before { counter-increment: s; content: counter(s, persian); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--surface); font-weight: 800; margin-bottom: 14px; }
.steps-3 h3 { font-size: 16.5px; margin-bottom: 6px; }
.steps-3 p { color: var(--muted); font-size: 14px; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.cta-band { margin: 24px 0 64px; padding: 40px 24px; border-radius: var(--r-xl); text-align: center; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #c026d3 0%, transparent 50%), linear-gradient(135deg, var(--brand), #312e81); box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { opacity: .85; margin-bottom: 22px; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: #1e1b4b; --btn-bd: transparent; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

@media (min-width: 960px) {
  .hero { padding: 80px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* Error page */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.error-code { font-size: 72px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--brand), #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Auth / onboarding layout (split screen on desktop)
   ========================================================================== */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; }
.auth-side { display: none; }
.auth-main { display: flex; flex-direction: column; padding: 20px 16px 32px; }
.auth-main > .logo { margin-bottom: auto; }
.auth-card { width: min(420px, 100%); margin: 32px auto; }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-foot { margin-top: auto; text-align: center; color: var(--faint); font-size: 12.5px; }
@media (min-width: 960px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-main { padding: 32px 48px; }
  .auth-side { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding: 48px; margin: 12px; border-radius: var(--r-xl); color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(90% 70% at 100% 0%, #c026d3 0%, transparent 55%), radial-gradient(80% 60% at 0% 100%, #0ea5e9 0%, transparent 55%), linear-gradient(160deg, var(--brand), #1e1b4b); }
  .auth-side h2 { font-size: 30px; font-weight: 800; max-width: 420px; }
  .auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .auth-side li { display: flex; gap: 10px; align-items: center; opacity: .92; }
  .auth-side li .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgb(255 255 255 / .18); }
  .auth-side .glass { position: absolute; top: 56px; inset-inline-end: 48px; width: 280px; padding: 16px; border-radius: var(--r-lg); background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); backdrop-filter: blur(10px); }
}

/* OTP boxes */
.otp { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.otp input { width: 54px; height: 62px; border-radius: var(--r); border: 1.5px solid var(--border); background: var(--surface); text-align: center; font-size: 26px; font-weight: 800; transition: border-color .15s, box-shadow .15s, transform .15s; caret-color: var(--accent); }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.otp input.filled { border-color: var(--accent-line); background: var(--accent-soft); }
.otp.error input { border-color: var(--danger); animation: shake .35s; }
.otp.success input { border-color: var(--ok); background: var(--ok-soft); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (max-width: 360px) { .otp { gap: 6px; } .otp input { width: 46px; height: 56px; } }
.otp-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-strong); font-weight: 600; cursor: pointer; }
.linkish[disabled] { color: var(--faint); cursor: default; }
.dev-hint { margin-top: 14px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 12.5px; text-align: center; }

/* Onboarding */
.slug-preview { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; direction: ltr; transition: border-color .15s, box-shadow .15s; }
.slug-preview:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.slug-preview .host { padding: 0 4px 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.slug-preview input { flex: 1; min-width: 0; border: 0; min-height: 48px; padding: 0 14px 0 0; background: transparent; font-size: 16px; font-weight: 600; }
.slug-preview input:focus { outline: none; }
.slug-preview .state { padding: 0 12px; display: grid; place-items: center; }
.slug-preview.ok { border-color: var(--ok); }
.slug-preview.ok .state { color: var(--ok); }
.slug-preview.bad { border-color: var(--danger); }
.slug-preview.bad .state { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radio span { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 500; transition: all .15s; }
.chip-radio input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.chip-radio input:focus-visible + span { box-shadow: var(--ring); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .25); transition: transform .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); transform: scale(1.05); }
.swatch input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 4px; }

/* ==========================================================================
   Public booking page
   ========================================================================== */
.bk { min-height: 100vh; padding-bottom: 120px; }
.bk-hero { position: relative; padding: 18px 0 64px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in oklab, var(--accent) 55%, #fff) 0%, transparent 55%), linear-gradient(150deg, var(--accent), color-mix(in oklab, var(--accent) 55%, #0b0b1a)); }
.bk-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.bk-hero .container { position: relative; z-index: 1; }
.bk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.bk-top .btn { --btn-bg: rgb(255 255 255 / .16); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .2); backdrop-filter: blur(6px); }
.bk-id { display: flex; align-items: center; gap: 14px; }
.bk-id .avatar { background: #fff; color: var(--accent); box-shadow: 0 8px 22px -8px rgb(0 0 0 / .4); }
.bk-id h1 { font-size: clamp(20px, 4.4vw, 26px); font-weight: 800; }
.bk-id p { opacity: .85; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bk-id p span { display: inline-flex; align-items: center; gap: 4px; }
.bk-id p .icon { width: 15px; height: 15px; }
.bk-wrap { width: min(1080px, 100% - 24px); margin: -44px auto 0; position: relative; z-index: 2; display: grid; gap: 16px; align-items: start; }
.bk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.bk-section { padding: 20px 18px; }
.bk-section + .bk-section { border-top: 1px solid var(--border); }
.bk-section h2 { font-size: 16px; font-weight: 800; }
@media (min-width: 640px) { .bk-section { padding: 24px 26px; } }
@media (min-width: 960px) {
  .bk-wrap { grid-template-columns: minmax(0, 1fr) 340px; }
  .bk-aside { position: sticky; top: 20px; }
}

/* Progress */
.progress { display: flex; gap: 6px; padding: 16px 18px 0; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .3s; }
.progress i.on { background: var(--accent); }
.step-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (min-width: 640px) { .progress { padding: 18px 26px 0; } .step-title { padding: 12px 26px 0; } }

/* Nearest banner */
.nearest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); border: 1px dashed var(--accent-line); }
.nearest .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); flex: none; }
.nearest b { color: var(--accent-strong); }
.nearest .t { font-size: 12.5px; color: var(--muted); }

/* Day strip */
.days-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 10px; }
.days-head .month { font-weight: 800; font-size: 15px; }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; padding: 4px 18px 10px; margin: 0 -18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.days::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .days { margin: 0 -26px; padding-inline: 26px; scroll-padding-inline: 26px; } }
.day {
  position: relative; flex: none; scroll-snap-align: start; width: 64px; padding: 9px 0 8px; display: grid; justify-items: center; gap: 1px;
  border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface); transition: all .15s var(--ease);
}
.day .wd { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.day .dn { font-size: 21px; font-weight: 800; line-height: 1.25; }
.day .st { font-size: 10.5px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.day:hover { border-color: var(--border-strong); }
.day.is-off { background: var(--surface-2); border-color: transparent; }
.day.is-off .dn, .day.is-off .st { color: var(--faint); }
.day.is-holiday .dn, .day.is-holiday .wd { color: var(--danger); }
.day.is-holiday .st { color: var(--danger); opacity: .8; }
.day.is-full .st { color: var(--warn); }
.day.is-selected { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 20px -10px color-mix(in oklab, var(--accent) 80%, transparent); transform: translateY(-2px); }
.day.is-selected .wd, .day.is-selected .st, .day.is-selected .dn { color: var(--accent-ink); opacity: 1; }
.day .today { position: absolute; top: -7px; inset-inline-start: 50%; transform: translateX(50%); font-size: 10px; font-weight: 700; padding: 0 7px; border-radius: 99px; background: var(--text); color: var(--surface); }
.day-more { flex: none; width: 64px; display: grid; place-items: center; gap: 2px; border: 1.5px dashed var(--border-strong); border-radius: 16px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 8px 0; }

.day-note { margin-top: 6px; }

/* Slots */
.slots-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.slots-head h3 { font-size: 15px; font-weight: 800; }
.slot-group { margin-top: 14px; }
.slot-group h4 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.slot-group h4::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  position: relative; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; transition: all .14s var(--ease);
}
.slot:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.slot.is-selected { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.slot.is-taken { background: var(--surface-2); border-color: transparent; color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; cursor: not-allowed; font-weight: 500; }
.slot .seats { position: absolute; top: -7px; inset-inline-end: 6px; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: var(--warn); color: #fff; text-decoration: none; }
.slot.is-nearest:not(.is-selected)::before { content: "نزدیک‌ترین"; position: absolute; top: -8px; inset-inline-start: 50%; transform: translateX(50%); font-size: 9.5px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.slots-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 12px; border-radius: var(--r-lg); background: var(--surface-2); color: var(--muted); margin-top: 14px; }
.slots-empty .icon { width: 34px; height: 34px; color: var(--faint); stroke-width: 1.6; }
.slots-loading { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 14px; }
.slots-loading i { height: 48px; border-radius: 14px; }

/* Summary pill */
.summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.summary .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); flex: none; }
.summary .t { font-weight: 800; }
.summary .s { font-size: 12.5px; color: var(--muted); }

/* Sticky CTA bar */
.cta-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid var(--border); transform: translateY(0); transition: transform .3s var(--ease); }
.cta-bar.hide { transform: translateY(110%); }
.cta-bar .inner { width: min(1080px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.cta-bar .sel { flex: 1; min-width: 0; line-height: 1.4; }
.cta-bar .sel .a { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-bar .sel .b { font-size: 12px; color: var(--muted); }
.cta-bar .btn { min-width: 132px; }
@media (min-width: 960px) {
  .cta-bar { position: static; background: transparent; backdrop-filter: none; border: 0; padding: 0; transform: none !important; }
  .cta-bar .inner { width: auto; }
  .bk { padding-bottom: 48px; }
  .bk-card .cta-slot { padding: 0 26px 24px; }
}

/* Success */
.success { text-align: center; padding: 32px 20px 26px; }
.success-mark { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop-in .5s var(--ease); }
.success-mark .icon { width: 42px; height: 42px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s var(--ease) forwards; }
.success.pending .success-mark { background: var(--warn-soft); color: var(--warn); }
@keyframes pop-in { from { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.ticket { margin: 22px auto 0; max-width: 380px; text-align: start; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.ticket-row + .ticket-row { border-top: 1px dashed var(--border-strong); }
.ticket-row span:first-child { color: var(--muted); }
.ticket-row b { font-weight: 800; }
.ticket-ref { font-family: ui-monospace, "SFMono-Regular", monospace; letter-spacing: .12em; direction: ltr; }

/* Info aside */
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.info-item .icon { color: var(--muted); margin-top: 3px; }
.hours { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: left; color: var(--text-2); }
.hours tr.is-today td { color: var(--accent-strong); font-weight: 700; }
.hours .closed { color: var(--faint); }
.powered { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 26px 0; color: var(--faint); font-size: 12.5px; }
.powered a { color: var(--muted); font-weight: 700; }

/* Month calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head h3 { font-size: 16px; font-weight: 800; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .wh { font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 0; }
.cal .wh:last-child { color: var(--danger); }
.cal button { aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 15px; position: relative; display: grid; place-items: center; }
.cal button.open { background: var(--surface-2); }
.cal button.open:hover { background: var(--accent-soft); color: var(--accent-strong); }
.cal button.open::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.cal button.full { color: var(--warn); background: var(--warn-soft); }
.cal button.off, .cal button.past, .cal button.beyond { color: var(--faint); cursor: default; }
.cal button.holiday, .cal button.fri { color: var(--danger); }
.cal button.holiday:not(.past) { background: var(--danger-soft); }
.cal button.off.fri, .cal button.past.fri { color: color-mix(in oklab, var(--danger) 45%, var(--faint)); }
.cal button.sel { background: var(--accent) !important; color: var(--accent-ink) !important; }
.cal button.sel::after { background: var(--accent-ink); }
.cal button.today { box-shadow: inset 0 0 0 1.5px var(--text); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Manage page */
.manage-status { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dash { min-height: 100vh; }
.dash-side { display: none; }
.dash-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 14px; background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--border); }
.dash-main { padding: 18px 14px 110px; width: 100%; max-width: 1080px; margin: 0 auto; }
.dash-tabs { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid var(--border); }
.dash-tabs a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
.dash-tabs a .icon { width: 22px; height: 22px; }
.dash-tabs a.on { color: var(--accent-strong); }
.dash-tabs a.on .icon { stroke-width: 2.4; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { font-size: 24px; font-weight: 800; }
.page-head p { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
  .dash-side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-inline-end: 1px solid var(--border); background: var(--surface); }
  .dash-side .logo { padding: 4px 10px 18px; }
  .dash-side nav { display: grid; gap: 2px; }
  .dash-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: background .15s; }
  .dash-side nav a:hover { background: var(--surface-2); }
  .dash-side nav a.on { background: var(--accent-soft); color: var(--accent-strong); }
  .dash-side .biz { margin-top: auto; padding: 12px; border-radius: var(--r); background: var(--surface-2); }
  .dash-top, .dash-tabs { display: none; }
  .dash-main { padding: 32px 36px 48px; }
}

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 28px; font-weight: 850; line-height: 1.3; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--faint); }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 1000px) { .grid-2 { grid-template-columns: 1.4fr 1fr; } }

/* Share link card */
.share { padding: 18px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border-color: var(--accent-line); }
.share-url { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); direction: ltr; }
.share-url code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-weight: 700; font-size: 15px; }

/* Week strip in dashboard */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week a { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; background: var(--surface-2); font-size: 12px; }
.week a b { font-size: 17px; }
.week a .bar { width: 60%; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.week a .bar i { display: block; height: 100%; background: var(--accent); }
.week a.off { opacity: .5; }
.week a.holiday b { color: var(--danger); }

/* Appointment list */
.appt-list { display: grid; }
.appt { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); }
.appt:first-child { border-top: 0; }
.appt .time { text-align: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.appt .time small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; }
.appt .who { font-weight: 700; }
.appt .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.appt .meta span { display: inline-flex; align-items: center; gap: 4px; }
.appt .meta .icon { width: 14px; height: 14px; }
.appt.is-cancelled { opacity: .55; }
.appt.is-cancelled .who { text-decoration: line-through; }
.appt-extra { grid-column: 2 / -1; display: grid; gap: 2px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 12px; }
.appt-actions { display: flex; gap: 6px; }
.day-group-title { position: sticky; top: 60px; z-index: 2; padding: 10px 18px; font-size: 13px; font-weight: 800; background: var(--surface-2); border-top: 1px solid var(--border); color: var(--text-2); }
@media (min-width: 900px) { .day-group-title { top: 0; } }
.menu { position: relative; }
.menu-pop { position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 6px); min-width: 180px; padding: 6px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: fade .15s; }
.menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; text-align: start; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop button.danger { color: var(--danger); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.datenav { display: inline-flex; align-items: center; gap: 4px; }
.datenav .cur { min-width: 170px; text-align: center; font-weight: 800; }
.tabs { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.tabs a { padding: 6px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tabs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Schedule editor */
.weekday { display: grid; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.weekday:first-child { border-top: 0; }
.weekday-head { display: flex; align-items: center; gap: 12px; }
.weekday-head .name { font-weight: 700; width: 84px; }
.weekday-head .closed-label { color: var(--faint); font-size: 13.5px; }
.ranges { display: grid; gap: 8px; padding-inline-start: 58px; }
.range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range .select { width: 112px; min-height: 42px; padding: 6px 12px; padding-inline-end: 34px; font-weight: 600; }
.range .sep { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .ranges { padding-inline-start: 0; } .range .select { width: 104px; } }
.rules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.closure { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 14px; }
.holiday-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.holiday-row:last-child { border-bottom: 0; }
.holiday-row .d { color: var(--danger); font-weight: 700; white-space: nowrap; }

/* Form builder */
.fb { display: grid; gap: 16px; }
@media (min-width: 1100px) { .fb { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .fb-preview { position: sticky; top: 24px; } }
.fb-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.fb-item:first-child { border-top: 0; }
.fb-item.is-hidden .fb-label { opacity: .55; }
.fb-move { display: grid; gap: 0; }
.fb-move button { width: 28px; height: 20px; border: 0; background: transparent; color: var(--faint); display: grid; place-items: center; border-radius: 6px; }
.fb-move button:hover { background: var(--surface-2); color: var(--text); }
.fb-move .icon { width: 16px; height: 16px; }
.fb-label { display: grid; gap: 2px; }
.fb-label input { border: 0; background: transparent; font-weight: 700; padding: 2px 6px; margin: -2px -6px; border-radius: 8px; width: 100%; min-width: 0; }
.fb-label input:hover { background: var(--surface-2); }
.fb-label input:focus { outline: none; background: var(--surface-2); box-shadow: var(--ring); }
.fb-label small { color: var(--faint); font-size: 12px; }
.fb-ctrl { display: flex; align-items: center; gap: 6px; }
.fb-options { grid-column: 2 / -1; }
.fb-locked { background: var(--surface-2); }
@media (max-width: 560px) { .fb-item { grid-template-columns: auto minmax(0, 1fr); } .fb-ctrl { grid-column: 1 / -1; justify-content: flex-end; } }
.phone-frame { border-radius: 30px; padding: 8px; background: linear-gradient(160deg, #23232f, #0f0f16); box-shadow: var(--shadow-lg); }
.phone-frame .screen { border-radius: 23px; background: var(--surface); padding: 18px 16px; max-height: 640px; overflow: auto; }

/* Settings sections */
.settings-grid { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.save-bar { position: sticky; bottom: 78px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 10px 10px 16px; border-radius: var(--r-lg); background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease); }
.save-bar .btn { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: transparent; }
@media (min-width: 900px) { .save-bar { bottom: 20px; } }

/* Welcome */
.welcome { position: relative; overflow: hidden; padding: 22px; border-radius: var(--r-xl); color: #fff; background: radial-gradient(100% 120% at 100% 0%, #c026d3 0%, transparent 55%), linear-gradient(135deg, var(--accent), #1e1b4b); margin-bottom: 18px; }
.welcome h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.welcome p { opacity: .85; font-size: 14px; }
.welcome .btn { --btn-bg: #fff; --btn-fg: #1e1b4b; --btn-bd: transparent; }
.checklist { display: grid; gap: 8px; margin-top: 14px; }
.checklist a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .12); font-size: 14px; font-weight: 600; }
.checklist a:hover { background: rgb(255 255 255 / .2); }
.checklist .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgb(255 255 255 / .2); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .dash-side, .dash-top, .dash-tabs, .cta-bar, .nav-top { display: none !important; }
  body { background: #fff; }
}
