/* ═══════════════════════════════════════════════════════════
   Nexus Booking — base tokens & global styles
   Palette: #1b1d24 (primary), #131419 (secondary), #efa403 (accent)
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Geomanist";
  src: url("fonts/geomanist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* core */
  --primary: #f4f5f7;
  --secondary: #ffffff;
  --accent: #efa403;
  --accent-soft: rgba(239, 164, 3, 0.16);
  --accent-hover: #ffb423;

  /* surfaces */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --surface-3: #e2e5eb;
  --surface-hover: #f7f8fa;

  /* text */
  --text: #171923;
  --text-muted: #626977;
  --text-faint: #98a0ad;

  /* border */
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);

  /* status */
  --success: #15803d;
  --warn: #efa403;
  --danger: #dc2626;

  /* shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* type */
  --font: "Geomanist", "Geomanist-fallback", system-ui, -apple-system, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}


button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* utility resets */
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

.file-fallback {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.file-fallback-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.file-fallback-card .sb-mark {
  margin: 0 auto 14px;
}
.file-fallback-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
}
.file-fallback-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.5;
}
.file-fallback-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); background-clip: padding-box; border: 2px solid transparent; }

/* ───────── App shell ───────── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ───────── Sidebar ───────── */
.sidebar {
  width: 240px;
  background: var(--secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
}
.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
}
.sb-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-logo-bg, linear-gradient(140deg, #2a2d38, #16181f));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--brand-logo-fg, var(--accent));
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  line-height: 1;
}
.sb-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sb-brand-name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }

.sb-nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 400;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  transition: background 120ms ease, color 120ms ease;
}
.sb-nav-item:hover { background: var(--surface-hover); color: var(--text); }
.sb-nav-item.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.sb-nav-item.is-active .sb-icon { color: var(--accent); }
.sb-icon { width: 16px; height: 16px; flex-shrink: 0; color: currentColor; }

.sb-quick {
  margin: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.sb-quick h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 500; letter-spacing: -0.005em; }
.sb-quick p { margin: 0 0 10px; font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.sb-quick .link {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin: 8px 0 10px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.sb-copy {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--secondary);
  font-weight: 500;
  font-size: 12.5px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 120ms ease;
}
.sb-copy:hover { background: var(--accent-hover); }
.sb-admin { margin: 4px 12px 0; }

.sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 500;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.brand-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.brand-preview-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.brand-preview-url {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-info .name { font-size: 13px; font-weight: 500; }
.sb-user-info .email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-more {
  background: transparent; border: 0; color: var(--text-faint); padding: 4px;
  border-radius: 6px;
}
.sb-user-more:hover { background: var(--surface-hover); color: var(--text); }

/* ───────── Layout ───────── */
.workspace { flex: 1; display: flex; min-height: 100vh; }
.main { flex: 1; padding: 56px 36px 40px; min-width: 0; background: var(--primary); }
.floating-preview { left: 264px; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}
.topbar h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.topbar h1 .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%,60%,100%{transform:rotate(0)} 10%{transform:rotate(14deg)} 20%{transform:rotate(-8deg)} 30%{transform:rotate(14deg)} 40%{transform:rotate(-4deg)} 50%{transform:rotate(10deg)} }
.topbar .sub { color: var(--text-muted); font-size: 13.5px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); display: grid; place-items: center;
  transition: background 120ms;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-size: 13px;
}
.user-pill .chev { color: var(--text-muted); }

/* date range pill (in welcome bar) */
.date-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; color: var(--text);
}
.date-pill svg { color: var(--text-muted); }

/* ───────── Cards & sections ───────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card-h h3 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.card-h .sub { font-size: 12px; color: var(--text-muted); margin-left: 6px; font-weight: 400; }
.card-link { background: 0; border: 0; color: var(--text-muted); font-size: 12px; font-weight: 500; }
.card-link:hover { color: var(--accent); }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.kpi-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kpi-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-muted); }
.kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.01em; }
.kpi-value { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.kpi-delta strong { color: var(--success); font-weight: 500; }
.kpi-delta.neg strong { color: var(--danger); }

/* Two-column dashboard region */
.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; margin-bottom: 24px; }

/* Bookings table */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255,255,255,0.015); }
.cell-date { display: flex; align-items: center; gap: 8px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-date svg { color: var(--text-faint); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill.confirmed { background: rgba(74,222,128,.10); color: #6ee7a3; border-color: rgba(74,222,128,.18); }
.pill.pending { background: var(--accent-soft); color: var(--accent); border-color: rgba(239,164,3,.22); }
.pill.cancelled { background: rgba(248,113,113,.10); color: #f87171; border-color: rgba(248,113,113,.18); }
.pill.dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; opacity:.85; }

.row-actions { background: 0; border: 0; color: var(--text-faint); padding: 6px; border-radius: 6px; }
.row-actions:hover { background: var(--surface-hover); color: var(--text); }

/* Event types list */
.evt-list { display: flex; flex-direction: column; padding: 6px 0; }
.evt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 12px;
}
.evt-row + .evt-row { border-top: 1px solid var(--border); }
.evt-name { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.evt-name .swatch { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.evt-meta { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Availability list */
.avail { padding: 4px 0; }
.avail-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  padding: 11px 20px;
  font-size: 13px;
}
.avail-row + .avail-row { border-top: 1px solid var(--border); }
.avail-row .day { color: var(--text-muted); font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.avail-row .hours { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; font-size: 12.5px; }
.avail-row.off .hours { color: var(--text-faint); }

/* Integrations list */
.intg-list { display: flex; flex-direction: column; }
.intg-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
}
.intg-row + .intg-row { border-top: 1px solid var(--border); }
.intg-logo {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--surface-2); flex-shrink: 0;
  font-weight: 700; font-size: 13px;
  color: #fff;
}
.intg-info { flex: 1; min-width: 0; }
.intg-info .name { font-size: 13.5px; font-weight: 500; }
.intg-info .email { font-size: 12px; color: var(--text-muted); }
.intg-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--success); }
.intg-status svg { width: 14px; height: 14px; }

/* ───────── Booking page (public) ───────── */
.public {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.setup-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* ── Login page ─────────────────────────────────────────── */
.login-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px 28px;
}
.login-sub {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-msg {
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: 8px;
}
.login-msg.is-error  { background: rgba(248,113,113,.12); color: #f87171; }
.login-msg.is-info   { background: rgba(110,231,163,.12); color: #6ee7a3; }
.login-toggle {
  display: block;
  width: 100%;
  margin-top: 16px;
  text-align: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px;
}
.login-toggle:hover { color: var(--text); }

/* ── Loading shell ──────────────────────────────────────── */
.loading-shell {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-dots { display: flex; gap: 7px; }
.loading-dots span {
  width: 8px; height: 8px;
  background: var(--text-faint);
  border-radius: 50%;
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dot-pulse {
  0%, 80%, 100% { opacity: .25; transform: scale(.8); }
  40%            { opacity: 1;   transform: scale(1);  }
}
.setup-page {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: .86fr 1.4fr;
  gap: 44px;
  align-items: center;
}
.setup-copy {
  max-width: 420px;
}
.setup-copy .sb-mark {
  margin-bottom: 22px;
}
.setup-copy h1 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.setup-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.setup-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  padding: 20px;
  transition: transform 140ms, border-color 140ms, background 140ms;
}
.setup-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-hover);
}
.setup-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.setup-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--secondary);
  font-weight: 700;
}
.setup-arrow {
  color: var(--text-muted);
}
.setup-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.setup-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.setup-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}
.setup-services span {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 5px 8px;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}
.public-bar .brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; }
.public-back {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 7px 14px; border-radius: 8px; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.public-back:hover { background: var(--surface); color: var(--text); }

.public-body { flex: 1; padding: 48px 24px; max-width: 1180px; margin: 0 auto; width: 100%; }
.bk-hero { text-align: center; margin-bottom: 36px; }
.bk-hero .avatar.lg { margin: 0 auto 18px; }
.bk-hero h2 { margin: 0 0 8px; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.bk-hero p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

.bk-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

/* calendar */
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-h .month { font-size: 14.5px; font-weight: 500; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button {
  width: 30px; height: 30px; border-radius: 8px; background: transparent;
  border: 1px solid var(--border); color: var(--text-muted);
  display: grid; place-items: center;
}
.cal-nav button:hover { background: var(--surface-2); color: var(--text); }

.cal-section-label { font-size: 13.5px; font-weight: 500; margin: 0 0 14px; color: var(--text); }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-grid .dow {
  font-size: 10.5px; color: var(--text-faint); text-align: center;
  padding: 6px 0; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}
.cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  display: grid; place-items: center;
  position: relative;
  font-weight: 400;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.cal-day.has-slots { color: var(--text); }
.cal-day.has-slots::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.cal-day:hover:not(:disabled):not(.is-selected) { background: var(--surface-2); border-color: var(--border-strong); }
.cal-day.is-selected {
  background: var(--accent); color: var(--secondary); font-weight: 600;
  border-color: var(--accent);
}
.cal-day.is-selected::after { background: var(--secondary); }
.cal-day.is-other-month { color: var(--text-faint); }
.cal-day:disabled { color: var(--text-faint); cursor: not-allowed; }

/* times list */
.times-section { display: flex; flex-direction: column; min-width: 0; }
.times {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 340px; overflow-y: auto;
  padding-right: 4px;
}
.time-btn {
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition: all 120ms;
}
.time-btn.has-capacity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.time-label { font-size: 13.5px; font-weight: 500; }
.slot-spaces {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.3px;
}
.slot-spaces.is-low { color: #f87171; background: rgba(248,113,113,0.12); }
.time-btn.is-selected .slot-spaces { color: var(--secondary); background: rgba(0,0,0,0.18); }
.time-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.time-btn.is-selected {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--accent);
}
.time-btn:disabled { color: var(--text-faint); cursor: not-allowed; opacity: 0.5; }

.bk-section-h { font-size: 13.5px; font-weight: 500; margin: 0 0 14px; }

/* form */
.bk-form { display: flex; flex-direction: column; gap: 14px; }
.bk-field { display: flex; flex-direction: column; gap: 6px; }
.bk-field label { font-size: 12px; color: var(--text-muted); }
.bk-field label .opt { color: var(--text-faint); margin-left: 4px; }
.bk-field label .req { color: var(--accent); margin-left: 2px; }
.bk-input, .bk-textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 13.5px;
  outline: 0;
  transition: border-color 120ms, background 120ms;
  width: 100%;
  font-family: inherit;
}
.bk-input:focus, .bk-textarea:focus { border-color: var(--accent); background: rgba(239,164,3,.04); }
.bk-input.invalid, .bk-textarea.invalid { border-color: var(--danger); }
.bk-textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.bk-counter { font-size: 11px; color: var(--text-faint); text-align: right; margin-top: 2px; font-variant-numeric: tabular-nums; }

.bk-confirm-btn {
  margin-top: 4px;
  padding: 13px 16px;
  border: 0; border-radius: 10px;
  background: var(--accent);
  color: var(--secondary);
  font-size: 14px; font-weight: 600;
  transition: background 120ms, transform 80ms;
}
.bk-confirm-btn:hover:not(:disabled) { background: var(--accent-hover); }
.bk-confirm-btn:active:not(:disabled) { transform: scale(0.99); }
.bk-confirm-btn:disabled { background: var(--surface-2); color: var(--text-faint); cursor: not-allowed; }

.bk-secure {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: var(--text-faint);
  line-height: 1.5;
  margin-top: 4px;
}
.bk-secure svg { flex-shrink: 0; margin-top: 1px; color: var(--text-muted); }
.bk-extra-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.payment-box {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px;
}
.payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.payment-head h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
}
.payment-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}
.payment-paid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}
.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.payment-options.invalid .payment-option {
  border-color: var(--danger);
}
.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.payment-option.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(239,164,3,.12);
}
.pay-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.pay-logo.stripe { background: #635BFF; }
.pay-logo.paypal { background: #0070BA; }
.payment-button {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: var(--secondary);
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
}
.payment-button:disabled {
  background: var(--surface-2);
  color: var(--text-faint);
  cursor: not-allowed;
}
.terms-check,
.mini-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.terms-check {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.terms-check.invalid {
  border-color: var(--danger);
}

.selected-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.selected-summary .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.selected-summary .val { font-size: 13.5px; color: var(--text); font-weight: 500; }

.public-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  background: var(--secondary);
  font-size: 12px;
  color: var(--text-muted);
}
.public-foot .links { display: flex; gap: 18px; }
.public-foot a { color: var(--text-muted); text-decoration: none; }
.public-foot a:hover { color: var(--text); }

/* confirmation */
.confirm-card {
  max-width: 520px; margin: 60px auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px 32px;
}
.confirm-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin: 0 auto 22px;
  color: var(--accent);
  animation: pop 360ms cubic-bezier(.2,.9,.4,1.4);
}
@keyframes pop { 0%{transform:scale(0)} 100%{transform:scale(1)} }
.confirm-card h2 { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.confirm-card p.sub { margin: 0 0 24px; color: var(--text-muted); font-size: 14px; }
.confirm-detail {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  text-align: left;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 13.5px;
}
.confirm-detail dt { color: var(--text-muted); }
.confirm-detail dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }
.confirm-actions button {
  padding: 11px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
}
.confirm-actions button:hover { background: var(--surface-3); }
.confirm-actions .primary { background: var(--accent); color: var(--secondary); border-color: var(--accent); }
.confirm-actions .primary:hover { background: var(--accent-hover); }

/* generic placeholder for non-overview tabs */
.placeholder {
  display: grid; place-items: center;
  height: calc(100vh - 100px);
  text-align: center;
}
.placeholder-inner { max-width: 400px; }
.placeholder-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; margin: 0 auto 16px;
  color: var(--accent);
}
.placeholder h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.placeholder p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }

/* macOS window chrome */
.win-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}
.win-chrome .dot { width: 12px; height: 12px; border-radius: 50%; }
.win-chrome .dot.r { background: #ff5f57; }
.win-chrome .dot.y { background: #ffbd2e; }
.win-chrome .dot.g { background: #28c941; }

/* small toast */
.toast {
  position: fixed;
  left: 50%; top: 24px;
  transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 13px;
  padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 999;
  display: flex; align-items: center; gap: 8px;
  animation: toast-in 200ms ease-out;
}
.toast svg { color: var(--accent); }
@keyframes toast-in { from{opacity:0; transform:translate(-50%, -8px)} to{opacity:1; transform:translate(-50%, 0)} }

/* ═══════════════════════════════════════════════════════════
   Internal views: Bookings / Event Types / Availability / Teams /
   Integrations / Billing / Settings
   ═══════════════════════════════════════════════════════════ */

.view-h {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 24px;
}
.view-h h1 { margin: 0 0 4px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.view-h .sub { color: var(--text-muted); font-size: 13.5px; }
.view-h .view-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 500;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  transition: background 120ms, border-color 120ms;
}
.btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn.primary { background: var(--accent); color: var(--secondary); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(248,113,113,0.06); border-color: rgba(248,113,113,0.2); }

/* search + filters bar */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; min-width: 280px;
  color: var(--text-muted);
}
.search input {
  background: transparent; border: 0; color: var(--text); outline: 0;
  font-size: 13px; width: 100%;
}
.search input::placeholder { color: var(--text-faint); }
.chips { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.chip {
  padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500;
  background: transparent; border: 0; color: var(--text-muted);
}
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip .count { color: var(--text-faint); margin-left: 6px; font-variant-numeric: tabular-nums; }

.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted);
}
.pagination .nums { display: flex; gap: 4px; }
.pagination button {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.pagination button:hover { background: var(--surface-2); color: var(--text); }
.pagination button.is-active { background: var(--accent); color: var(--secondary); border-color: var(--accent); font-weight: 600; }
.pagination button:disabled { color: var(--text-faint); cursor: not-allowed; }

/* Event Types cards */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.evt-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: border-color 120ms, transform 120ms;
}
.evt-card:hover { border-color: var(--border-strong); }
.evt-card.is-off { opacity: 0.55; }
.evt-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.evt-card-title { display: flex; align-items: center; gap: 10px; }
.evt-card-title .swatch-lg { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.evt-card h3 { margin: 0; font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; }
.evt-card .duration { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.evt-card .desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; min-height: 36px; }
.evt-location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  min-height: 34px;
}
.evt-location svg {
  flex: 0 0 auto;
  margin-top: 2px;
}
.evt-card-meta { display: flex; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); align-items: center; }
.evt-card-meta .price { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.evt-card-meta .bookings-count { font-size: 11.5px; color: var(--text-muted); margin-left: auto; }
.evt-card-meta .saving-badge { background: #dcfce7; color: #15803d; border-radius: 5px; padding: 2px 7px; font-weight: 600; margin-left: 0; }
.term-saving-preview { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #15803d; background: #dcfce7; border-radius: 8px; padding: 8px 12px; }
.evt-card-actions { display: flex; gap: 6px; }
.evt-card-actions button {
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); display: grid; place-items: center;
}
.evt-card-actions button:hover { background: var(--surface-2); color: var(--text); }

/* toggle switch */
.switch { position: relative; width: 32px; height: 18px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0;
  background: var(--surface-3); border-radius: 999px;
  transition: background 160ms;
  cursor: pointer;
}
.switch .knob {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform 160ms;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track .knob { transform: translateX(14px); }

.add-card {
  background: transparent;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 180px;
  font-size: 13.5px;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.add-card:hover { background: rgba(239,164,3,0.04); color: var(--accent); border-color: var(--accent); }
.add-card .plus {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); display: grid; place-items: center;
  border: 1px solid var(--border);
}

/* Availability editor */
.avail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.avail-editor { padding: 8px 0; }
.avail-edit-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  padding: 14px 20px;
  align-items: center;
}
.avail-edit-row + .avail-edit-row { border-top: 1px solid var(--border); }
.avail-edit-row .day-toggle { display: flex; align-items: center; gap: 10px; }
.avail-edit-row .day-name { font-size: 13.5px; font-weight: 500; }
.time-pickers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.time-input {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 7px 10px; font-size: 12.5px; color: var(--text);
  font-variant-numeric: tabular-nums; outline: 0;
  min-width: 92px; font-family: inherit;
}
.time-input:focus { border-color: var(--accent); }
.time-pickers .dash { color: var(--text-faint); }
.time-pickers.disabled { opacity: 0.4; pointer-events: none; }
.add-slot {
  background: transparent; border: 1px dashed var(--border-strong); border-radius: 8px;
  color: var(--text-muted); padding: 6px 10px; font-size: 11.5px;
  display: inline-flex; align-items: center; gap: 4px;
}
.add-slot:hover { border-color: var(--accent); color: var(--accent); }
.unavail-tag { font-size: 12px; color: var(--text-faint); font-style: italic; }

.blocked-list { display: flex; flex-direction: column; }
.blocked-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  font-size: 13px;
}
.blocked-row + .blocked-row { border-top: 1px solid var(--border); }
.blocked-row .reason { color: var(--text-muted); font-size: 12px; }

/* Teams */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.team-card .avatar.lg { width: 56px; height: 56px; font-size: 18px; margin-bottom: 12px; }
.team-card h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.team-card .role { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.team-card .stats { display: flex; gap: 16px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border); width: 100%; justify-content: center; }
.team-card .stat { text-align: center; }
.team-card .stat .num { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.team-card .stat .lbl { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.team-card .status-dot {
  position: absolute; top: 18px; right: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
}
.team-card .status-dot.away { background: var(--accent); }
.team-card .status-dot.off { background: var(--text-faint); }

/* Integrations grid */
.intg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.intg-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.intg-card-h { display: flex; align-items: center; gap: 12px; }
.intg-card .name { font-size: 14px; font-weight: 500; }
.intg-card .desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.intg-card .actions { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }

/* Billing */
.billing-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 24px; }
.plan-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative; overflow: hidden;
}
.plan-card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}
.plan-card .badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.plan-card h2 { margin: 12px 0 4px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.plan-card .price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 0; }
.plan-card .price small { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.plan-card .desc { color: var(--text-muted); margin: 6px 0 18px; font-size: 13px; }
.plan-card .actions { display: flex; gap: 10px; }

.usage-card { padding: 24px; }
.usage-card h3 { margin: 0 0 16px; font-size: 14px; font-weight: 500; }
.usage-row { margin-bottom: 14px; }
.usage-row:last-child { margin-bottom: 0; }
.usage-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.usage-h .label { font-size: 12.5px; color: var(--text-muted); }
.usage-h .val { font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 500; }
.usage-bar { width: 100%; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.usage-bar .fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 320ms; }
.usage-bar .fill.warn { background: var(--accent); }
.usage-bar .fill.full { background: var(--danger); }

.payment-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-art {
  width: 52px; height: 36px; border-radius: 6px;
  background: linear-gradient(135deg, #2a2d38, #16181f);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--accent); font-weight: 700; font-size: 11px;
}
.payment-card .num { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.payment-card .exp { font-size: 12px; color: var(--text-muted); }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.settings-nav {
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 28px; align-self: flex-start;
}
.settings-nav button {
  text-align: left; padding: 10px 14px;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--text-muted); font-size: 13px;
}
.settings-nav button:hover { background: var(--surface); color: var(--text); }
.settings-nav button.is-active { background: var(--surface); color: var(--accent); }

.settings-section { margin-bottom: 32px; }
.settings-section .section-h { margin: 0 0 4px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.settings-section .section-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.settings-card { padding: 24px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid.single { grid-template-columns: 1fr; }
.color-picker-row { display: flex; gap: 8px; align-items: center; }
.color-swatch { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); cursor: pointer; }
.color-swatch.is-selected { box-shadow: 0 0 0 2px var(--accent); }

.notif-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 14px 0;
  align-items: center;
}
.notif-row + .notif-row { border-top: 1px solid var(--border); }
.notif-row .title { font-size: 13.5px; font-weight: 500; }
.notif-row .desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Platform backend */
.admin-shell {
  min-height: 100vh;
  display: flex;
  background: var(--primary);
  color: var(--text);
}
.admin-side {
  width: 250px;
  background: var(--secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.admin-mini {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 36px;
}
.admin-head {
  margin-bottom: 24px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  gap: 20px;
}
.admin-list {
  display: flex;
  flex-direction: column;
}
.admin-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
}
.admin-list-row + .admin-list-row {
  border-top: 1px solid var(--border);
}
.admin-list-row .name {
  font-size: 13.5px;
  font-weight: 500;
}
.admin-list-row .desc {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.45;
}

/* Functional app additions */
.booking-event-card {
  max-width: 980px;
  margin: 0 auto 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.booking-event-card label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.event-location-line {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12.5px;
}
.location-map-card {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1fr;
  gap: 14px;
  align-items: stretch;
}
.location-map {
  min-height: 132px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(122,167,255,.2), rgba(239,164,3,.12)),
    var(--surface-2);
  overflow: hidden;
  position: relative;
}
.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .48;
}
.map-road {
  position: absolute;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
[data-theme="light"] .map-road {
  background: rgba(255,255,255,.72);
  border-color: rgba(255,255,255,.9);
}
.map-road.main {
  width: 150%;
  height: 18px;
  left: -20%;
  top: 48%;
  transform: rotate(-18deg);
}
.map-road.cross {
  width: 18px;
  height: 150%;
  left: 57%;
  top: -20%;
  transform: rotate(24deg);
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
}
.location-map-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}
.location-map-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.location-map-address {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.map-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--bg);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  text-decoration: none;
}
.map-link:hover { border-color: var(--accent); }
.empty-inline {
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}
.status-select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal {
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  padding: 20px;
}
.modal-h,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-h { margin-bottom: 18px; }
.modal-h h3 { margin: 0; font-size: 17px; font-weight: 500; }
.modal-actions { justify-content: flex-end; margin-top: 20px; }
.btn:disabled,
.btn.primary:disabled,
.bk-confirm-btn:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.blocked-add {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.time-exception-add {
  grid-template-columns: 1fr 1fr 1fr;
}
.time-exception-add input:first-child,
.time-exception-add input:nth-child(4),
.time-exception-add button {
  grid-column: 1 / -1;
}
.event-editor-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.question-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px auto auto;
  gap: 8px;
  align-items: center;
}
.service-hours-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.service-hours-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) 120px 120px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .main { padding-top: 48px; }
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .bk-grid { grid-template-columns: 1fr; }
  .location-map-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .workspace,
  .admin-shell {
    display: block;
  }
  .sidebar,
  .admin-side {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sb-brand {
    padding: 16px 20px 10px;
  }
  .sb-nav {
    flex: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding: 8px 12px 12px;
  }
  .sb-nav-item {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
    font-size: 12px;
    flex: 0 0 auto;
  }
  .sb-nav-item span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sb-quick {
    display: none;
  }
  .sb-user {
    padding: 10px 16px;
  }
  .main,
  .admin-main {
    padding: 28px 16px 88px;
  }
  .topbar {
    margin-bottom: 20px;
  }
  .view-h,
  .admin-head {
    flex-direction: column;
    align-items: stretch;
  }
  .view-h .view-actions {
    flex-wrap: wrap;
  }
  .view-h .view-actions .btn {
    flex: 1 1 160px;
    justify-content: center;
  }
  .topbar-right {
    gap: 8px;
  }
  .date-pill,
  .user-pill {
    max-width: 100%;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .card {
    overflow-x: auto;
  }
  .table {
    min-width: 560px;
  }
  .dash-grid,
  .admin-grid,
  .billing-top,
  .avail-grid,
  .settings-layout,
  .setup-page,
  .field-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }
  .setup-page {
    align-items: flex-start;
    padding: 32px 0;
    gap: 24px;
  }
  .setup-copy h1 {
    font-size: 30px;
  }
  .question-row {
    grid-template-columns: 1fr;
  }
  .service-hours-row {
    grid-template-columns: auto 1fr;
  }
  .service-hours-row .time-input,
  .service-hours-row .unavail-tag {
    grid-column: 2;
  }
  .settings-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .settings-nav button {
    white-space: nowrap;
  }
  .floating-preview {
    position: static !important;
    margin: 18px 0 0;
    box-shadow: none !important;
  }
  .cal-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Calendar ─────────────────────────────────────────────── */

.cal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.cal-card {
  padding: 20px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-month-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-dow > div {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 4px 4px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s;
  gap: 3px;
}

.cal-cell:hover {
  background: var(--surface-2);
}

.cal-cell.is-empty {
  pointer-events: none;
  background: transparent;
}

.cal-day-num {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1;
}

.cal-cell.has-bookings .cal-day-num {
  color: var(--text);
  font-weight: 600;
}

.cal-cell.is-today .cal-day-num {
  background: var(--accent);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
}

.cal-cell.is-selected {
  background: var(--accent-soft);
  outline: 1.5px solid var(--accent);
  outline-offset: -1.5px;
}

.cal-dots {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-dot-extra {
  font-size: 9px;
  color: var(--text-faint);
  line-height: 1;
}

/* ── Day detail panel ── */

.cal-detail {
  padding: 20px;
}

.cal-detail-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cal-detail-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.cal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--text-faint);
}

.cal-empty p {
  margin: 0;
  font-size: 13px;
}

.cal-booking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-booking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.cal-booking-bar {
  width: 4px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cal-booking-body {
  flex: 1;
  min-width: 0;
}

.cal-booking-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cal-booking-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-booking-event {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Company Info tab ─────────────────────────────────────── */

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.company-section-h {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.req {
  color: var(--danger);
  margin-left: 2px;
}

.company-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  margin-right: 5px;
  vertical-align: -2px;
  flex-shrink: 0;
}

.map-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.map-frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 4px;
}

.map-frame {
  width: 100%;
  height: 280px;
  display: block;
}

/* ── Share Modal ──────────────────────────────────────────── */

.share-modal {
  max-width: 460px;
}

.share-preview {
  margin: 16px 0;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.share-preview-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.share-preview-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
}

.share-platforms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.share-platform-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  text-align: left;
  width: 100%;
}

.share-platform-btn:hover {
  background: var(--surface-3);
  border-color: var(--platform-color, var(--accent));
}

.share-platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-platform-info {
  flex: 1;
  min-width: 0;
}

.share-platform-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.share-platform-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-platform-arrow {
  color: var(--text-faint);
  flex-shrink: 0;
}

.share-copied {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  html,
  body {
    overflow-x: hidden;
  }
  .public-bar {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .public-bar .brand {
    min-width: 0;
  }
  .public-bar .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .public-back {
    width: 100%;
    justify-content: center;
  }
  .public-body {
    padding: 28px 14px;
  }
  .bk-hero {
    margin-bottom: 24px;
  }
  .bk-hero h2 {
    font-size: 23px;
  }
  .booking-event-card,
  .bk-grid {
    border-radius: var(--radius-lg);
    padding: 16px;
  }
  .bk-grid {
    gap: 18px;
  }
  .cal-grid {
    gap: 2px;
  }
  .cal-day {
    border-radius: 7px;
    font-size: 12px;
  }
  .times {
    max-height: none;
  }
  .payment-options {
    grid-template-columns: 1fr;
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .setup-page {
    width: min(100% - 28px, 1120px);
  }
  .setup-card {
    min-height: 220px;
  }
  .events-grid,
  .team-grid,
  .intg-grid {
    grid-template-columns: 1fr;
  }
  .evt-card,
  .team-card,
  .intg-card {
    min-width: 0;
  }
  .avail-edit-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }
  .time-pickers {
    align-items: stretch;
  }
  .time-input {
    flex: 1 1 120px;
    min-width: 0;
  }
  .add-slot {
    justify-content: center;
  }
  .blocked-add,
  .time-exception-add {
    grid-template-columns: 1fr;
  }
  .time-exception-add input:first-child,
  .time-exception-add input:nth-child(4),
  .time-exception-add button {
    grid-column: auto;
  }
  .settings-card {
    padding: 16px;
  }
  .brand-preview {
    align-items: stretch;
    flex-direction: column;
  }
  .brand-preview .btn {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
  }
  .color-picker-row {
    flex-wrap: wrap;
  }
  .color-picker-row .bk-input {
    max-width: none !important;
    margin-left: 0 !important;
    flex: 1 1 100%;
  }
  .notif-row,
  .admin-list-row {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 10px;
    align-items: start;
  }
  .modal {
    max-height: calc(100vh - 20px);
    padding: 16px;
  }
  .modal-h,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .sb-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sb-brand {
    align-items: flex-start;
  }
  .sb-brand-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-right {
    align-items: stretch;
    flex-direction: column;
  }
  .date-pill,
  .user-pill,
  .icon-btn {
    width: 100%;
    justify-content: center;
  }
  .icon-btn {
    display: flex;
  }
  .topbar h1 {
    font-size: 22px;
  }
}

/* ── Booking edit modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
}
.modal-close {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px;
  line-height: 1;
}
.modal-close:hover { background: var(--surface-2); }
.modal-body { padding: 20px 24px; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px; border-top: 1px solid var(--border);
}

/* ── Manage booking link on confirmation ─────────────────────── */
.manage-link-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  margin-bottom: 20px; text-align: left; font-size: 13px;
  color: var(--text-muted);
}

/* ── Platform (super admin) ──────────────────────────────────── */
.platform-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.platform-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
}
.platform-stat-n { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.platform-stat-l { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.sb-nav-platform { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px !important; }
.sb-admin-badge {
  margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--accent); color: var(--secondary);
  border-radius: 4px; padding: 2px 6px;
}

/* ── Impersonation banner ────────────────────────────────────── */
.impersonate-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: #1e293b; color: #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px; font-size: 13px; gap: 16px;
}
.impersonate-banner button {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #f1f5f9; border-radius: 6px; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.impersonate-banner button:hover { background: rgba(255,255,255,.2); }

@media (max-width: 767px) {
  .platform-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Platform tabs ───────────────────────────────────────────── */
.platform-tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.platform-tab {
  background: transparent; border: none; padding: 10px 18px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; border-radius: 0; transition: color 0.12s, border-color 0.12s;
}
.platform-tab:hover { color: var(--text); }
.platform-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* ── Platform stats (extended to 5 cols) ─────────────────────── */
.platform-stats { grid-template-columns: repeat(5, 1fr); }

/* ── Plan badge ──────────────────────────────────────────────── */
.plan-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid; border-radius: 5px; padding: 2px 7px;
}

/* ── Coupon code ─────────────────────────────────────────────── */
code.coupon-code {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 3px 8px; font-size: 13px;
  font-family: "Courier New", monospace; letter-spacing: 0.08em;
  font-weight: 700; color: var(--text);
}
.coupon-discount {
  font-size: 13px; font-weight: 600; color: var(--accent);
}

/* ── Announcement banner ─────────────────────────────────────── */
.announcement-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid; font-size: 13.5px; line-height: 1.5;
}
.announcement-icon {
  font-size: 16px; flex-shrink: 0; margin-top: 1px; font-style: normal;
}
.announcement-body { flex: 1; color: var(--text); }
.announcement-dismiss {
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 14px; padding: 0 4px; line-height: 1;
  flex-shrink: 0; border-radius: 4px;
}
.announcement-dismiss:hover { background: rgba(0,0,0,.06); }

/* ── Platform internal notes ─────────────────────────────────── */
.platform-notes-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 320px; overflow-y: auto;
}
.platform-note-row {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
}
.platform-note-text { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.platform-note-date { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* ── Platform activity log ───────────────────────────────────── */
.platform-activity-list {
  display: flex; flex-direction: column;
}
.platform-activity-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 20px; border-bottom: 1px solid var(--border);
}
.platform-activity-row:last-child { border-bottom: none; }
.platform-activity-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 2px;
}
.platform-activity-text { flex: 1; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.platform-activity-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0;
}
.platform-activity-id { font-size: 10px; color: var(--text-faint); font-family: monospace; }
.platform-activity-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* ── Suspension screen ───────────────────────────────────────── */
.suspension-screen {
  min-height: 100vh; display: grid; place-items: center;
  padding: 24px; background: var(--bg);
}
.suspension-card {
  width: min(420px, 100%); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; text-align: center;
}
.suspension-card h2 { margin: 0 0 10px; font-size: 22px; }
.suspension-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.suspension-card a { color: var(--accent); }

@media (max-width: 767px) {
  .platform-stats { grid-template-columns: repeat(2, 1fr); }
  .platform-tabs { overflow-x: auto; }
}

/* ── Coupon input + applied badge ────────────────────────────── */
.coupon-input-row {
  display: flex; gap: 8px; align-items: center;
}
.coupon-input-row .bk-input { flex: 1; }
.coupon-error {
  font-size: 12px; color: var(--danger); margin-top: 5px;
}
.coupon-applied-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(110,231,163,.12); border: 1px solid rgba(110,231,163,.35);
  border-radius: var(--radius); padding: 9px 12px;
  font-size: 13px; color: var(--text);
}
.coupon-applied-badge svg { color: #6ee7a3; flex-shrink: 0; }
.coupon-applied-badge span { flex: 1; }
.coupon-applied-badge button {
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 14px; padding: 0; line-height: 1;
}
.coupon-free-notice {
  display: flex; align-items: center; gap: 8px;
  background: rgba(110,231,163,.12); border: 1px solid rgba(110,231,163,.35);
  border-radius: var(--radius); padding: 12px 14px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  margin-bottom: 4px;
}
.coupon-free-notice svg { color: #6ee7a3; flex-shrink: 0; }

/* ── Analytics ───────────────────────────────────────────────── */
.analytics-kpi-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.analytics-kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
}
.analytics-kpi-v {
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--text);
}
.analytics-kpi-l {
  font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 4px;
}
.analytics-kpi-sub {
  font-size: 11px; color: var(--text-faint); margin-top: 2px;
}

.analytics-row {
  display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px;
}
.analytics-card-lg { /* natural card */ }
.analytics-card-sm { /* natural card */ }
.analytics-empty {
  padding: 32px 20px; text-align: center; color: var(--text-muted); font-size: 13px;
}

/* mini bar chart */
.mini-bar-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 160px; padding: 0 4px 8px;
}
.mini-bar-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; min-width: 0;
}
.mini-bar-wrap {
  flex: 1; width: 100%; display: flex; align-items: flex-end;
  background: var(--surface-2); border-radius: 4px; overflow: hidden;
  min-height: 0;
}
.mini-bar {
  width: 100%; border-radius: 4px 4px 0 0;
  transition: height 0.3s ease; min-height: 3px;
}
.mini-bar-tip {
  font-size: 9px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; text-align: center;
}
.mini-bar-label {
  font-size: 10.5px; color: var(--text-faint); white-space: nowrap;
}

/* service breakdown */
.svc-breakdown { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.svc-row { display: flex; align-items: center; gap: 10px; }
.svc-name {
  font-size: 13px; color: var(--text); width: 130px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0;
}
.svc-bar-wrap {
  flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden;
}
.svc-bar { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.svc-count { font-size: 12px; font-weight: 600; color: var(--text-muted); width: 24px; text-align: right; flex-shrink: 0; }

/* peak hours */
.peak-hour-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.peak-hour-row:last-child { border-bottom: none; }
.peak-hour-label { font-size: 13px; color: var(--text); }
.peak-hour-count { font-size: 12px; color: var(--text-muted); }

@media (max-width: 1024px) {
  .analytics-kpi-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .analytics-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .analytics-row       { grid-template-columns: 1fr; }
  .svc-name            { width: 90px; }
}
