/* ─── Cove Dashboard — shared styles for login, onboarding, dashboard ─── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:           #F8F8FA;
  --surface:      #FFFFFF;
  --border:       #E4E4E7;
  --border-focus: #A1A1AA;
  --text:         #18181B;
  --text-muted:   #71717A;
  --text-faint:   #A1A1AA;
  --accent:       #2563EB;
  --accent-dark:  #1D4ED8;
  --accent-faint: #EFF6FF;
  --accent-border:#BFDBFE;
  --green:        #16A34A;
  --green-faint:  #F0FDF4;
  --green-border: #BBF7D0;
  --red:          #DC2626;
  --red-faint:    #FEF2F2;
  --orange:       #D97706;
  --orange-faint: #FFFBEB;
  --sidebar-w:    224px;
  --top-h:        56px;
  --radius:       8px;
  --radius-sm:    6px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 1px 4px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── Utilities ─── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Logo ─── */
.cove-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
}
.cove-logo svg { flex-shrink: 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .12s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover { background: var(--bg); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--bg); color: var(--text); }
.btn--danger {
  background: var(--red-faint);
  color: var(--red);
  border-color: transparent;
}
.btn--danger:hover { background: #fee2e2; }
.btn--full { width: 100%; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--lg { padding: 11px 20px; font-size: 15px; }
.btn--icon { padding: 8px; border-radius: var(--radius-sm); }

/* ─── Inputs ─── */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  appearance: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
input::placeholder,
textarea::placeholder { color: var(--text-faint); }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }

/* ─── Status badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.badge--live { background: var(--green-faint); color: var(--green); border: 1px solid var(--green-border); }
.badge--setup { background: var(--orange-faint); color: var(--orange); border: 1px solid #fed7aa; }
.badge--paused { background: var(--bg); color: var(--text-faint); border: 1px solid var(--border); }
.badge--dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Lead status badges */
.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
}
.lead-badge--done { background: var(--green-faint); color: var(--green); }
.lead-badge--active { background: var(--accent-faint); color: var(--accent); }
.lead-badge--abandoned { background: var(--orange-faint); color: var(--orange); }
.lead-badge--stopped { background: var(--bg); color: var(--text-faint); border: 1px solid var(--border); }

/* ─── Divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Google button ─── */
.btn--google {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
  gap: 10px;
}
.btn--google:hover { background: var(--bg); }
.btn--google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   AUTH PAGES (login, signup)
═══════════════════════════════════════════ */

.auth-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-heading {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

.auth-error {
  background: var(--red-faint);
  border: 1px solid #fecaca;
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  display: none;
}
.auth-error.visible { display: block; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 20px;
}
.auth-back:hover { color: var(--text); }

/* ═══════════════════════════════════════════
   ONBOARDING WIZARD
═══════════════════════════════════════════ */

.ob-root {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.ob-topbar {
  height: var(--top-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.ob-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background .2s;
}
.ob-step-dot.done { background: var(--green); }
.ob-step-dot.active { background: var(--accent); }

.ob-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
}

.ob-panel {
  width: 100%;
  max-width: 520px;
}

.ob-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.ob-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 6px;
}

.ob-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.ob-section { display: flex; flex-direction: column; gap: 16px; }

.ob-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}
.ob-actions--right { justify-content: flex-end; }

/* Flow questions preview (step 2) */
.flow-questions { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }

.flow-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.flow-q-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.flow-q-text {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  font-family: inherit;
  resize: none;
  line-height: 1.5;
}
.flow-q-text:focus { outline: none; }

.flow-q-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.flow-opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-muted);
}
.flow-opt-chip strong { color: var(--text); font-weight: 600; }

.flow-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: var(--accent-faint);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-family: inherit;
  transition: background .12s;
  text-transform: none;
  letter-spacing: 0;
}
.flow-ai-btn:hover { background: #dbeafe; }
.flow-ai-btn svg { flex-shrink: 0; }

/* Loading state */
.ob-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  color: var(--text-muted);
}
.ob-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Call forwarding instructions */
.cf-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cf-platform {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cf-platform-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.cf-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
  margin: 12px 0;
}
.cf-step-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.cf-step-row .num {
  min-width: 20px;
  font-weight: 700;
  color: var(--accent);
}
.cf-code {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  color: var(--text);
}

/* Success screen */
.ob-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}
.ob-success-icon {
  width: 52px; height: 52px;
  background: var(--green-faint);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}

/* ═══════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════ */

.dash-root {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar__top {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--border);
}

.sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .1s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.sidebar__item:hover { background: var(--bg); color: var(--text); }
.sidebar__item.active { background: var(--accent-faint); color: var(--accent); font-weight: 600; }
.sidebar__item svg { flex-shrink: 0; opacity: .65; }
.sidebar__item.active svg { opacity: 1; }

.sidebar__bottom {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.sidebar__user {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}
.sidebar__user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__user-email {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Main content ─── */
.dash-main {
  flex: 1;
  min-width: 0;
  padding: 44px 52px 80px;
  max-width: 860px;
}

/* ─── Page header ─── */
.page-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.page-header__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.2;
}
.page-header__sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 56ch;
}

/* ─── Section ─── */
.section {
  margin-bottom: 40px;
}
.section__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.section__body { display: flex; flex-direction: column; gap: 14px; }

/* ─── Info rows (key-value) ─── */
.info-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row__key {
  width: 140px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.info-row__val { color: var(--text); font-weight: 500; }

/* ─── Stats strip ─── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.stat-item__val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item__key {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider { display: none; }

/* ─── Leads table ─── */
.leads-table {
  width: 100%;
  border-collapse: collapse;
}
.leads-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
}
.leads-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}
.leads-table tr:last-child td { border-bottom: none; }
.leads-table td:last-child { text-align: right; }
.leads-table .name { font-weight: 500; color: var(--text); }
.leads-table .need { color: var(--text-muted); }
.leads-table .time { color: var(--text-faint); font-size: 12.5px; }

.leads-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--text-faint);
  font-size: 13.5px;
}
.leads-empty span { display: block; font-size: 22px; margin-bottom: 6px; }

/* ─── Setup card (provisioning state) ─── */
.setup-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-lg); padding: 16px 18px;
  margin-bottom: 14px;
}
.setup-card__icon { color: #d97706; flex-shrink: 0; margin-top: 1px; }
.setup-card__title { font-size: 14px; font-weight: 700; color: #92400e; margin-bottom: 4px; }
.setup-card__sub { font-size: 13px; color: #78350f; line-height: 1.6; margin-bottom: 12px; }
.setup-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.setup-steps {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.setup-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.setup-step__dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--border); border: 2px solid var(--border);
}
.setup-step__dot--done { background: var(--green); border-color: var(--green); }
.setup-step__dot--spin {
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite; background: transparent;
}

/* ─── Flow explainer ─── */
.flow-explainer {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.flow-explainer__item {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text); flex: 1; min-width: 150px;
}
.flow-explainer__icon { font-size: 20px; flex-shrink: 0; }
.flow-explainer__item strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 1px; }
.flow-explainer__item span { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.flow-explainer__arrow { color: var(--text-faint); font-size: 18px; flex-shrink: 0; padding: 0 4px; }

/* ─── Flow hint ─── */
.flow-hint {
  font-size: 13px; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 16px; padding: 12px 16px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ─── Flow section ─── */
.flow-section { display: flex; flex-direction: column; gap: 12px; }

.flow-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.flow-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.flow-card__header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}
.flow-card__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.flow-card__body { padding: 16px 18px 18px; }
.flow-card__badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 99px; background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border);
}
.flow-card__badge--free { background: #eff6ff; color: var(--accent); border-color: var(--accent-border); }
.flow-card__label {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px;
}
.flow-opts-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin-top: 12px; margin-bottom: 6px;
}
.flow-free-note {
  margin-top: 10px; font-size: 12.5px; color: var(--accent);
  background: var(--accent-faint); border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm); padding: 8px 10px; line-height: 1.5;
}

.flow-question-input {
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  font-family: inherit;
  resize: none;
  line-height: 1.65;
  overflow: hidden;
  min-height: 2.2em;
}
.flow-question-input:focus { outline: none; }

.flow-opts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* ─── Form section (notifications) ─── */
.form-section { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-group .hint {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 3px;
  line-height: 1.5;
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row__info { display: flex; flex-direction: column; gap: 2px; }
.toggle-row__label { font-size: 14px; font-weight: 500; color: var(--text); }
.toggle-row__sub { font-size: 12.5px; color: var(--text-muted); }

.toggle {
  position: relative;
  width: 38px; height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 11px;
  transition: background .15s;
}
.toggle input:checked + .toggle__track { background: var(--accent); }
.toggle__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .15s;
}
.toggle input:checked ~ .toggle__thumb { transform: translateX(16px); }

/* ─── Operating hours sub-form ─── */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.days-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.day-chip {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
  transition: all .1s;
}
.day-chip.closed {
  background: var(--accent-faint);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ─── Billing card ─── */
.billing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.billing-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.billing-plan-price {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.billing-plan-price strong { color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }

/* ─── Notification banners ─── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert--info { background: var(--accent-faint); color: var(--accent); border: 1px solid var(--accent-border); }
.alert--success { background: var(--green-faint); color: var(--green); border: 1px solid var(--green-border); }
.alert--warn { background: var(--orange-faint); color: var(--orange); border: 1px solid #fed7aa; }

/* ─── Save bar ─── */
.save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.save-bar .saved {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  display: none;
}
.save-bar .saved.visible { display: inline; }

/* ─── Tablet ─── */
@media (max-width: 1024px) {
  .dash-main { padding: 36px 32px 64px; }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .dash-root { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    min-height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar__top { padding: 12px 16px; border-bottom: none; border-right: 1px solid var(--border); }
  .sidebar__nav { flex-direction: row; padding: 8px; gap: 0; flex: 1; border-bottom: 1px solid var(--border); }
  .sidebar__bottom { display: none; }
  .dash-main { padding: 24px 16px 48px; }
  .stats-strip { grid-template-columns: 1fr; gap: 10px; }
  .hours-grid { grid-template-columns: 1fr; }
  .page-header { margin-bottom: 24px; padding-bottom: 20px; }
  .page-header__title { font-size: 20px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 24px; }
  .ob-body { padding: 24px 16px 48px; }
}
