/* Pickleball Kingdom Staff Training Sandbox — unofficial practice replica
   Color tokens taken from the public pickleballkingdom.podplay.app theme. */
:root {
  --accent: #0047bb;
  --accent-2: #336cc9;
  --highlight: #f9e01e;
  --highlight-fg: #000;
  --bg: #ffffff;
  --bg-2: #f2f3f3;
  --bg-3: #e8e9ea;
  --bg-sidebar: #111111;
  --bg-sidebar-2: #1b1b1b;
  --text: #000000;
  --text-2: #1b1b1b;
  --text-3: #636363;
  --text-on-accent: #ffffff;
  --text-on-dark: #ffffff;
  --placeholder: #636363;
  --border: #ebebeb;
  --border-2: #d3d3d3;
  --border-3: #bdc2c6;
  --shadow: 0 8px 28px rgba(0,0,0,.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --btn: #000000;
  --btn-text: #ffffff;
  --btn-hover: #1b1b1b;
  --danger: #c62828;
  --success: #1b7a4a;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-w: 232px;
  --top-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  /* calendar legend — from PodPlay docs */
  --c-new: #f5c400;
  --c-member: #3b82f6;
  --c-nonmember: #4b5563;
  --c-clinic: #16a34a;
  --c-event: #e879a9;
  --c-private: #8b5cf6;
  --c-ops: #c5c9ce;
  --c-admin: #ec4899;
  --c-draft: #f9c6d8;
  --c-closed: #e5e7eb;
}
html.dark {
  --bg: #0f1114;
  --bg-2: #181b20;
  --bg-3: #24282f;
  --text: #f4f5f6;
  --text-2: #e6e8eb;
  --text-3: #9aa0a8;
  --placeholder: #8b919a;
  --border: #2a2e35;
  --border-2: #3a4048;
  --border-3: #4a515a;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --btn: #f4f5f6;
  --btn-text: #111;
  --btn-hover: #fff;
  --c-closed: #2a2e35;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
#app { min-height: 100%; }

/* Badge */
.unofficial-badge {
  position: fixed; z-index: 80; top: 0; left: 0; right: 0;
  min-height: 26px; padding: 5px 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--highlight); color: #000; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; text-align: center; line-height: 1.3;
}
.unofficial-badge span.dot { width: 6px; height: 6px; border-radius: 50%; background: #000; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 18px; font-size: 14px; font-weight: 650;
  background: var(--btn); color: var(--btn-text); transition: background .15s, transform .1s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #003ea3; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.icon-btn {
  width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--bg-2); }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 650; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border-2); background: var(--bg); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,71,187,.15); }
.textarea { min-height: 88px; resize: vertical; }
.search {
  position: relative;
}
.search input { padding-left: 36px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }

/* Pills / tags */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .01em;
  background: var(--bg-2); color: var(--text-2); white-space: nowrap;
}
.pill.member { background: #dbeafe; color: #1e40af; }
.pill.nonmember { background: #e5e7eb; color: #374151; }
.pill.paused { background: #fef3c7; color: #92400e; }
.pill.cancelled { background: #fee2e2; color: #991b1b; }
.pill.active { background: #dcfce7; color: #166534; }
.pill.ace { background: #dbeafe; color: #1e3a8a; }
.pill.team { background: #e0e7ff; color: #3730a3; }
.pill.royal { background: #fef3c7; color: #854d0e; }
.pill.morning { background: #cffafe; color: #155e75; }
.pill.evening { background: #ede9fe; color: #5b21b6; }
.pill.offpeak { background: var(--accent); color: #fff; border-radius: 4px; font-size: 10px; letter-spacing: .04em; padding: 2px 6px; }
.pill.reduced { background: #0e7490; color: #fff; border-radius: 4px; font-size: 10px; letter-spacing: .04em; padding: 2px 6px; }
.pill.peak { background: #111; color: #fff; border-radius: 4px; font-size: 10px; letter-spacing: .04em; padding: 2px 6px; }
.pill.draft { background: #fce7f3; color: #9d174d; }

html.dark .pill.member { background: #1e3a8a; color: #bfdbfe; }
html.dark .pill.nonmember { background: #374151; color: #e5e7eb; }
html.dark .pill.active { background: #14532d; color: #bbf7d0; }
html.dark .pill.paused { background: #78350f; color: #fde68a; }
html.dark .pill.cancelled { background: #7f1d1d; color: #fecaca; }

/* LOGIN */
.login-wrap {
  min-height: 100%; padding: 42px 20px 40px; display: flex; flex-direction: column; align-items: center;
  background: var(--bg);
}
.login-card { width: 100%; max-width: 420px; margin-top: 24px; }
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 28px; }
.login-brand img { width: 64px; height: 64px; }
.login-brand h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.login-brand p { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.45; }
.login-card h2 { margin: 0 0 16px; font-size: 22px; }
.login-hint { font-size: 13px; color: var(--text-3); line-height: 1.45; margin: 12px 0 0; }
.login-hint a { color: var(--accent); }
.login-legal { font-size: 11px; color: var(--text-3); margin-top: 18px; text-align: center; }
.login-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.mode-cards { display: grid; gap: 10px; margin-top: 8px; }
.mode-card {
  text-align: left; border: 1px solid var(--border-2); background: var(--bg); border-radius: 14px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start; color: inherit;
}
.mode-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.mode-card strong { display: block; font-size: 14px; }
.mode-card span { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.mode-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ADMIN SHELL */
.admin {
  padding-top: 26px; min-height: 100%; display: flex; background: var(--bg-2);
}
.sidebar {
  width: var(--nav-w); background: var(--bg-sidebar); color: #fff;
  display: flex; flex-direction: column; position: fixed; top: 26px; bottom: 0; left: 0; z-index: 40;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.sidebar-brand img { width: 32px; height: 32px; }
.sidebar-brand .t { font-size: 12.5px; font-weight: 750; line-height: 1.25; }
.sidebar-brand .t small { display: block; font-weight: 500; color: #9aa0a8; font-size: 10px; }
.nav { display: flex; flex-direction: column; padding: 6px 8px; gap: 2px; overflow: auto; flex: 1; }
.nav-sec { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8b919a; padding: 12px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: #e8e9ea; text-decoration: none; font-size: 13.5px; font-weight: 550; border: 0; background: transparent; width: 100%; text-align: left;
}
.nav-item:hover { background: #222; }
.nav-item.active { background: #fff; color: #111; font-weight: 700; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-foot { padding: 8px; border-top: 1px solid #2a2a2a; }
.main { margin-left: var(--nav-w); flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 26px); }
.topbar {
  height: var(--top-h); background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; padding: 0 16px; position: sticky; top: 26px; z-index: 30;
}
.topbar h2 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.01em; flex: 1; }
.topbar .meta { font-size: 12px; color: var(--text-3); }
.page { padding: 16px; flex: 1; }
.menu-toggle { display: none; }

/* KPIs / cards */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
}
.kpi .lbl { font-size: 12px; color: var(--text-3); font-weight: 600; }
.kpi .val { font-size: 24px; font-weight: 750; letter-spacing: -.03em; margin-top: 4px; }
.kpi .sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.card h3 { margin: 0 0 12px; font-size: 14px; }

/* Calendar */
.cal-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-toolbar .date-lbl { font-weight: 750; font-size: 15px; min-width: 190px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 11px; color: var(--text-3); margin: 8px 0 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.cal-wrap { overflow: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; max-height: calc(100vh - 230px); }
.cal { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }
.cal th, .cal td { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal thead th {
  position: sticky; top: 0; background: var(--bg); z-index: 2; font-size: 11px; font-weight: 700;
  padding: 8px 2px; text-align: center; min-width: 0; font-size: 10.5px;
}
.cal thead th:first-child, .cal tbody th {
  position: sticky; left: 0; background: var(--bg); z-index: 3; min-width: 72px; width: 72px;
  font-size: 11px; font-weight: 650; color: var(--text-3); text-align: right; padding: 0 8px;
}
.cal thead th:first-child { z-index: 4; }
.cal td { height: 44px; padding: 2px; vertical-align: stretch; background: var(--bg); cursor: pointer; }
.cal td:hover { background: #f0f6ff; }
html.dark .cal td:hover { background: #182033; }
.cal td.closed { background: var(--c-closed); cursor: default; }
.slot { height: 100%; border-radius: 5px; padding: 3px 5px; font-size: 10.5px; line-height: 1.2; overflow: hidden; color: #111; font-weight: 650; position: relative; }
.slot .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .meta { font-weight: 500; opacity: .85; font-size: 9.5px; }
.slot.member { background: var(--c-member); color: #fff; }
.slot.nonmember { background: var(--c-nonmember); color: #fff; }
.slot.new { background: var(--c-new); color: #111; }
.slot.clinic { background: var(--c-clinic); color: #fff; }
.slot.event { background: var(--c-event); color: #111; }
.slot.private { background: var(--c-private); color: #fff; }
.slot.ops { background: var(--c-ops); color: #111; }
.slot.admin { background: var(--c-admin); color: #fff; }
.slot.draft { background: var(--c-draft); color: #9d174d; border: 1px dashed #9d174d; }
.slot .ico { position: absolute; right: 3px; top: 2px; font-size: 10px; }

/* Tables */
.table-wrap { overflow: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-2); position: sticky; top: 0; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr { cursor: pointer; }
table.data tbody tr:hover { background: var(--bg-2); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 750; color: #fff; background: var(--accent); flex-shrink: 0;
}
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .name { font-weight: 650; }
.who-cell .sub { font-size: 11px; color: var(--text-3); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--text-3); }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: var(--shadow-sm); }

/* Drawer / modal */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; display: flex; justify-content: flex-end; }
.overlay.center { align-items: center; justify-content: center; padding: 16px; }
.drawer {
  width: min(440px, 100%); height: 100%; background: var(--bg); color: var(--text);
  box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal {
  width: min(480px, 100%); background: var(--bg); border-radius: 16px; box-shadow: var(--shadow);
  max-height: 90vh; overflow: auto; padding: 20px;
}
.drawer-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-h h3 { margin: 0; font-size: 16px; flex: 1; }
.drawer-b { padding: 16px; overflow: auto; flex: 1; }
.drawer-f { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
.tabs button { border: 0; background: none; padding: 10px 14px; font-size: 13px; font-weight: 650; color: var(--text-3); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--highlight); }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 13px; }
.kv .k { color: var(--text-3); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--text-3); font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; min-width: 0; }

/* Memberships */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tier {
  border: 1px solid var(--border-2); border-radius: 16px; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 8px;
}
.tier h3 { margin: 0; font-size: 16px; }
.tier .price { font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.tier .price span { font-size: 13px; font-weight: 600; color: var(--text-3); }
.tier ul { margin: 8px 0 0; padding: 0 0 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.tier .count { font-size: 12px; color: var(--text-3); }

/* Coaches */
.coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.coach { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.coach h3 { margin: 0; }
.avail { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.avail span { font-size: 11px; background: var(--bg-2); border-radius: 6px; padding: 3px 6px; }

/* Events month */
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month .dow { font-size: 11px; font-weight: 700; color: var(--text-3); text-align: center; padding: 6px; }
.mday { min-height: 88px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px; font-size: 12px; }
.mday.out { opacity: .4; }
.mday.today { outline: 2px solid var(--accent); }
.mday .n { font-weight: 750; margin-bottom: 4px; }
.chip { display: block; font-size: 10px; font-weight: 650; border-radius: 4px; padding: 2px 4px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.chip.event { background: var(--c-event); }
.chip.clinic { background: var(--c-clinic); color: #fff; }
.chip.private { background: var(--c-private); color: #fff; }
.chip.ops { background: var(--c-ops); }

/* Insights */
.chart-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.chart { width: 100%; height: 220px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: #111; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 650;
  box-shadow: var(--shadow);
}
.admin .toast { bottom: 24px; }

/* CUSTOMER APP */
.cust-shell {
  min-height: 100%; padding-top: 26px; background: #0b0d10;
  display: flex; justify-content: center;
}
.phone {
  width: 100%; max-width: 430px; height: calc(100vh - 26px); max-height: calc(100vh - 26px);
  background: #fff; color: #000;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px #222, var(--shadow);
}
html.dark .phone { background: #111; color: #f4f5f6; box-shadow: 0 0 0 1px #333; }
.cust-top {
  padding: 12px 16px 8px; display: flex; align-items: center; gap: 8px; background: var(--bg, #fff);
  position: sticky; top: 0; z-index: 5;
}
html.dark .cust-top { background: #111; }
.cust-top h1 { flex: 1; text-align: center; margin: 0; font-size: 17px; font-weight: 750; }
.cust-body { flex: 1; min-height: 0; overflow: auto; padding-bottom: 16px; background: #fff; }
html.dark .cust-body { background: #111; }
.dates {
  display: flex; gap: 0; overflow-x: auto; padding: 4px 8px 10px; border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.dates::-webkit-scrollbar { display: none; }
.date-pill {
  flex: 0 0 auto; border: 0; background: transparent; padding: 8px 14px; font-size: 14px; font-weight: 650; color: #636363; white-space: nowrap;
}
.date-pill.on { color: #000; font-weight: 800; }
html.dark .date-pill.on { color: #fff; }
.filter-bar { padding: 10px 16px; font-size: 13px; color: #636363; display: flex; align-items: center; gap: 8px; }
.chip-filter { background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 650; }

.slot-row {
  display: flex; align-items: center; gap: 10px; padding: 16px 16px; border-bottom: 1px solid #ebebeb;
  background: #fff; width: 100%; text-align: left; color: inherit; border-left: 0; border-right: 0; border-top: 0;
}
html.dark .slot-row { background: #111; border-color: #2a2e35; }
.slot-row .time { width: 78px; font-size: 16px; font-weight: 650; }
.slot-row .mid { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #636363; }
.radio {
  width: 22px; height: 22px; border: 2px solid #bdc2c6; border-radius: 50%; flex-shrink: 0;
}
.slot-row.on .radio { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--accent); }
.op-card {
  margin: 10px 16px; background: #f7f7f8; border-radius: 16px; padding: 18px 16px; text-align: center;
}
html.dark .op-card { background: #1b1b1b; }
.op-card .t { font-size: 18px; font-weight: 750; }
.op-card a, .op-card .link { color: var(--accent); font-weight: 650; text-decoration: underline; }
.op-card .spots { color: #636363; font-size: 13px; margin-top: 4px; }

.cust-tabbar {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid #ebebeb;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
}
html.dark .cust-tabbar { background: #111; border-color: #2a2e35; }
.cust-tab {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 650; color: #636363; padding: 4px;
}
.cust-tab.on { color: var(--accent); }
.cust-tab svg { width: 24px; height: 24px; }

.rsv-card {
  margin: 14px 16px; background: #fff; border-radius: 16px; padding: 18px 16px; text-align: center;
  box-shadow: 0 1px 8px rgba(0,0,0,.06); border: 1px solid #f0f0f0;
}
html.dark .rsv-card { background: #1b1b1b; border-color: #2a2e35; }
.rsv-card h3 { margin: 0 0 6px; font-size: 17px; }
.rsv-card .addr { font-size: 13px; color: #636363; }
.rsv-card .line { display: flex; justify-content: space-between; margin: 14px 0; padding: 10px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-weight: 650; }
.links { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.subtabs { display: flex; border-bottom: 1px solid #eee; }
.subtabs button { flex: 1; border: 0; background: none; padding: 12px; font-weight: 650; color: #9aa; position: relative; }
.subtabs button.on { color: #000; }
html.dark .subtabs button.on { color: #fff; }
.subtabs button.on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; background: var(--highlight); border-radius: 2px; }

.prog-card { padding: 14px 16px; border-bottom: 1px solid #eee; }
.prog-card .when { font-size: 12px; color: #636363; font-weight: 650; }
.prog-card .title { font-size: 16px; font-weight: 750; margin-top: 2px; }
.spotlight { display: flex; gap: 10px; overflow-x: auto; padding: 8px 16px 16px; }
.spot {
  flex: 0 0 78%; height: 160px; border-radius: 14px; background: #111; color: #fff; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.spot .art { position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 30%, #0047bb 0, transparent 50%),
  radial-gradient(circle at 80% 60%, #f9e01e55 0, transparent 45%),
  linear-gradient(#0b1a3a, #000); }
.spot .txt { position: relative; z-index: 1; }
.spot .txt strong { display: block; font-size: 16px; }
.spot .txt span { font-size: 12px; opacity: .85; }

.acct-row {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #eee;
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-size: 15px; color: inherit;
}
.summary { background: #f7f7f8; border-radius: 14px; padding: 14px; }
html.dark .summary { background: #1b1b1b; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.booked-hero { text-align: center; padding: 32px 16px; }
.booked-hero h2 { margin: 8px 0; font-size: 28px; }

/* Help panel */
.help-pop {
  position: fixed; left: 16px; bottom: 64px; width: 300px; background: #fff; color: #111;
  border-radius: 14px; box-shadow: var(--shadow); padding: 14px; z-index: 70;
}
html.dark .help-pop { background: #1b1b1b; color: #f4f5f6; }
.help-pop h4 { margin: 0 0 8px; }
.help-pop a, .help-pop button.link { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--accent); padding: 6px 0; font-size: 13px; font-weight: 650; }

/* Mobile admin */
.bottom-admin {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #111; color: #fff;
  grid-template-columns: repeat(5, 1fr); z-index: 45; padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #222;
}
.bottom-admin button {
  border: 0; background: none; color: #9aa; font-size: 10px; font-weight: 650;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bottom-admin button.on { color: #fff; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .bottom-admin { display: grid; }
  .page { padding: 12px 12px 80px; }
  .cal-wrap { max-height: calc(100vh - 280px); }
}
.cust-switch { display: none; }
@media (min-width: 901px) {
  .cust-shell { padding: 40px 16px 32px; align-items: flex-start; background: #e8e9ea; }
  html.dark .cust-shell { background: #0b0d10; }
  .phone { min-height: 760px; height: calc(100vh - 80px); border-radius: 24px; overflow: hidden; margin-top: 8px; }
  .cust-switch { display: block; position: fixed; right: 16px; top: 40px; z-index: 50; }
}
