/* ============================================================
   Liftline · gym manager
   ============================================================ */
:root {
  --bg: #f2f3ee;
  --surface: #ffffff;
  --surface-2: #f7f8f3;
  --surface-3: #eceee6;
  --line: #e1e4da;
  --line-2: #eceee7;
  --ink: #0d0f0a;
  --ink-2: #4b5146;
  --ink-3: #868c80;
  --volt: #dbf94b;
  --volt-2: #b3e021;
  --volt-ink: #0b0e02;
  --volt-text: #4a6800;
  --volt-soft: #eef8cf;
  --good: #15803d; --good-soft: #e2f5e8;
  --warn: #b45309; --warn-soft: #fdf0d9;
  --bad: #d4312a; --bad-soft: #fde5e3;
  --info: #1f6fd1; --info-soft: #e3eefc;
  --frost: #2b8bb8; --frost-soft: #e0f2fa;
  --side: #0b0c0e;
  --side-2: #121417;
  --shadow-sm: 0 1px 2px rgba(13, 15, 10, .05);
  --shadow: 0 1px 2px rgba(13, 15, 10, .04), 0 10px 30px -12px rgba(13, 15, 10, .12);
  --shadow-lg: 0 40px 90px -24px rgba(13, 15, 10, .45);
  --r: 18px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08090a;
  --surface: #111316;
  --surface-2: #0d0f11;
  --surface-3: #191c20;
  --line: #22262b;
  --line-2: #181b1f;
  --ink: #f1f3ec;
  --ink-2: #a6ab9f;
  --ink-3: #6a7066;
  --volt: #dbf94b;
  --volt-2: #c3f01f;
  --volt-text: #dbf94b;
  --volt-soft: rgba(219, 249, 75, .1);
  --good: #4ade80; --good-soft: rgba(74, 222, 128, .12);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12);
  --bad: #ff6159; --bad-soft: rgba(255, 97, 89, .13);
  --info: #7cb8ff; --info-soft: rgba(124, 184, 255, .12);
  --frost: #67d0ff; --frost-soft: rgba(103, 208, 255, .12);
  --side: #050506;
  --side-2: #0c0d0f;
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, .025) inset;
  --shadow-lg: 0 40px 90px -16px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--volt); color: var(--volt-ink); }
.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.display { font-stretch: 72%; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; }

/* ============================================================ shell */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--side); color: #9aa094; display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 4px; overflow: hidden; }
.sidebar::before { content: ''; position: absolute; left: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(219, 249, 75, .14), transparent 65%); pointer-events: none; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 8px 10px 20px; position: relative; }
.brand .logo-full { width: 176px; height: auto; display: block; }
.top-mark { display: none; }
.top-mark img { width: 38px; height: auto; display: block; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand b { display: block; color: #fff; font-size: 21px; font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.brand span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b7166; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; padding-left: 2px; }
#nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
#nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s; position: relative; }
#nav a .ico { width: 19px; height: 19px; }
#nav a:hover { background: rgba(255, 255, 255, .05); color: #f1f3ec; }
#nav a.active { background: var(--volt); color: var(--volt-ink); box-shadow: 0 8px 24px -8px rgba(219, 249, 75, .55); }
#nav a .badge { margin-left: auto; min-width: 22px; text-align: center; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #ff5c4d; color: #fff; }
#nav a .badge.soft { background: rgba(255, 255, 255, .08); color: #dbf94b; }
#nav a.active .badge { background: var(--volt-ink); color: var(--volt); }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .06); margin: 10px 8px; }
.floor { margin-top: auto; border-radius: 18px; padding: 14px; background: linear-gradient(160deg, #15180f, #0d0e0c); border: 1px solid rgba(219, 249, 75, .14); position: relative; cursor: pointer; }
.floor .k { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7d8476; }
.floor .live { display: inline-flex; align-items: center; gap: 6px; color: #dbf94b; letter-spacing: .08em; }
.floor .n { color: #fff; font-size: 44px; margin-top: 8px; }
.floor .n small { font-size: 16px; color: #6b7166; font-stretch: 100%; font-weight: 600; text-transform: none; margin-left: 4px; }
.cap { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 10px; }
.cap i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a6d61c, #dbf94b); transition: width .6s; }
.floor small.sub { display: block; color: #6b7166; font-size: 11.5px; margin-top: 7px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #dbf94b; box-shadow: 0 0 0 0 rgba(219, 249, 75, .6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(219, 249, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(219, 249, 75, 0); } }
.side-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.join-link { flex: 1; font-size: 12px; font-weight: 600; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: #c9cfc2; display: flex; align-items: center; gap: 8px; }
.join-link:hover { background: rgba(255, 255, 255, .09); }
.join-link .ico { width: 15px; height: 15px; color: #dbf94b; }
.theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .05); color: #c9cfc2; display: grid; place-items: center; cursor: pointer; }
.theme-btn:hover { background: rgba(255, 255, 255, .1); }
.theme-btn .ico { width: 17px; height: 17px; }

main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.search { position: relative; flex: 1; max-width: 460px; }
.search > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 17px; height: 17px; }
.search input { width: 100%; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 70px 0 42px; outline: none; transition: border .15s, box-shadow .15s; }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--volt-soft); }
.search kbd { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font: 600 11px var(--mono); color: var(--ink-3); border: 1px solid var(--line); background: var(--surface-2); border-radius: 7px; padding: 2px 6px; }
.search-results { position: absolute; top: 52px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px; display: none; max-height: 420px; overflow: auto; }
.search-results.open { display: block; }
.search-results button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; }
.search-results button:hover, .search-results button.hl { background: var(--surface-2); }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.clock { font-size: 13px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.clock b { color: var(--ink); font-variant-numeric: tabular-nums; }
.view { padding: 26px 32px 72px; max-width: 1500px; width: 100%; }
.view.enter > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.view.enter > *:nth-child(2) { animation-delay: .04s; } .view.enter > *:nth-child(3) { animation-delay: .08s; } .view.enter > *:nth-child(4) { animation-delay: .12s; } .view.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================ primitives */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s, filter .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { width: 16px; height: 16px; }
.btn.volt { background: var(--volt); border-color: transparent; color: var(--volt-ink); box-shadow: 0 10px 24px -10px rgba(170, 220, 20, .9); }
.btn.volt:hover { filter: brightness(1.04); }
.btn.dark { background: var(--ink); color: var(--surface); border-color: transparent; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.wa { background: #1fa855; color: #fff; border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; gap: 6px; }
.btn.sm .ico { width: 14px; height: 14px; }
.btn.xl { height: 58px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn.icon { width: 36px; padding: 0; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 4px; }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.card-h .sub { color: var(--ink-3); font-size: 12.5px; }
.card-b { padding: 14px 20px 20px; }
.link { font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--surface-3); border: 0; padding: 6px 11px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.link:hover { background: var(--volt); color: var(--volt-ink); }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-size: 46px; }
.page-h p { margin: 8px 0 0; color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--volt-text); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 14px; height: 4px; border-radius: 2px; background: var(--volt); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.frost { background: var(--frost-soft); color: var(--frost); }
.chip.volt { background: var(--volt); color: var(--volt-ink); }

.avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; letter-spacing: .02em; position: relative; }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.avatar.lg { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; }
.avatar.xl { width: 104px; height: 104px; border-radius: 30px; font-size: 36px; }
.avatar .st { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--surface); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; padding: 38px 16px; color: var(--ink-3); }
.empty .ico { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: var(--surface-3); margin-bottom: 8px; }
.wa-mini { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(31, 168, 85, .12); color: #1fa855; border: 0; cursor: pointer; flex: none; transition: all .15s; }
.wa-mini:hover { background: #1fa855; color: #fff; }
.wa-mini .ico { width: 15px; height: 15px; }

/* ============================================================ dashboard */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 18px; }
.live-panel { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 28px; color: #f1f3ec;
  background: radial-gradient(600px 300px at 100% 0%, rgba(219, 249, 75, .18), transparent 60%), radial-gradient(400px 260px at 0% 120%, rgba(219, 249, 75, .08), transparent 60%), #0b0c0e;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); border: 1px solid #1d2024; }
.live-panel::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.live-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.live-top .k { display: inline-flex; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #dbf94b; }
.live-top .date { color: #7d8476; font-size: 12.5px; font-weight: 600; }
.live-main { display: flex; align-items: flex-end; gap: 28px; margin-top: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.big-n { font-size: 128px; color: #fff; line-height: .8; }
.big-n small { font-size: 26px; color: #6b7166; margin-left: 6px; font-stretch: 100%; font-weight: 600; text-transform: none; letter-spacing: 0; }
.live-side { padding-bottom: 6px; display: grid; gap: 12px; min-width: 220px; flex: 1; }
.live-side .row { display: flex; justify-content: space-between; font-size: 13px; color: #9aa094; }
.live-side .row b { color: #fff; font-variant-numeric: tabular-nums; }
.live-panel .cap { height: 8px; }
.hours { position: relative; z-index: 1; margin-top: 22px; }
.hours-bars { display: flex; align-items: flex-end; gap: 3px; height: 74px; }
.hours-bars .h { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; }
.hours-bars .h i { display: block; width: 100%; border-radius: 4px 4px 1px 1px; background: rgba(219, 249, 75, .9); min-height: 2px; }
.hours-bars .h.future i { background: transparent; }
.hours-bars .h .typ { position: absolute; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .45); border-radius: 2px; }
.hours-bars .h.now i { box-shadow: 0 0 18px rgba(219, 249, 75, .7); }
.hours-bars .h:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); background: #fff; color: #0b0c0e; font-size: 11.5px; font-weight: 700; padding: 6px 9px; border-radius: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 5; text-align: center; box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); }
.tip small { display: block; font-weight: 500; color: #5d6358; font-size: 11px; }
.hours-x { display: flex; gap: 3px; margin-top: 6px; }
.hours-x span { flex: 1; font-size: 10px; color: #6b7166; text-align: center; font-weight: 600; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: #9aa094; margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend i.line { height: 2px; background: rgba(255, 255, 255, .55); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 18px 18px 16px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.stat .k { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.stat .k .ico { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--surface-3); color: var(--ink); }
.stat .v { font-size: 48px; margin-top: 14px; }
.stat .v small { font-size: 15px; color: var(--ink-3); font-stretch: 100%; font-weight: 700; margin-right: 4px; letter-spacing: 0; }
.stat .f { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.stat.hl { background: var(--volt); border-color: transparent; color: var(--volt-ink); }
.stat.hl .k { color: var(--volt-ink); }
.stat.hl .k .ico { background: rgba(11, 14, 2, .1); color: var(--volt-ink); }
.stat.hl .f, .stat.hl .v small { color: rgba(11, 14, 2, .6); }
.delta { margin-left: auto; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(11, 14, 2, .1); }
.stat:not(.hl) .delta.up { background: var(--good-soft); color: var(--good); }
.stat:not(.hl) .delta.down { background: var(--bad-soft); color: var(--bad); }

.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.g-21 { grid-template-columns: 1.5fr 1fr; }
.g-12 { grid-template-columns: 1fr 1.5fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.grid > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }

.row-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.row-item:first-child { border-top: 0; }
.row-item .who { flex: 1; }
.row-item .amt { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-item .amt small { display: block; font-weight: 700; font-size: 11.5px; }
.feed .row-item { cursor: pointer; }
.feed .t { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 600; min-width: 58px; text-align: right; }
.feed .row-item.new { animation: flash 1.6s ease; }
@keyframes flash { 0% { background: var(--volt-soft); } 100% { background: transparent; } }

.cls { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.cls:first-child { border-top: 0; }
.cls .tm { font-weight: 800; font-variant-numeric: tabular-nums; }
.cls .tm small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.cls b { display: block; font-weight: 700; }
.cls small { color: var(--ink-3); font-size: 12px; }
.fillbar { width: 90px; }
.fillbar .bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.fillbar .bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.fillbar .bar i.full { background: var(--bad); }
.fillbar span { display: block; font-size: 11.5px; font-weight: 700; text-align: right; margin-bottom: 4px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cls.done { opacity: .5; }

/* revenue chart */
.chart { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: 200px auto; margin-top: 16px; }
.chart .y { position: relative; }
.chart .y span { position: absolute; right: 10px; transform: translateY(50%); font-size: 11px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .plot { position: relative; border-bottom: 1px solid var(--line); }
.chart .gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.chart .cols { position: absolute; inset: 0; display: flex; gap: 2px; align-items: flex-end; }
.chart .c { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.chart .c i { width: min(46px, 58%); border-radius: 4px 4px 0 0; background: var(--surface-3); min-height: 2px; transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; transition: background .15s; }
.chart .c.cur i { background: var(--ink); }
:root[data-theme="dark"] .chart .c i { background: rgba(219, 249, 75, .2); }
:root[data-theme="dark"] .chart .c:hover i { background: rgba(219, 249, 75, .4); }
:root[data-theme="dark"] .chart .c.cur i { background: var(--volt); }
.chart .c:hover i { background: color-mix(in srgb, var(--ink) 40%, var(--surface-3)); }
.chart .c .tip { bottom: calc(var(--h) + 10px); }
.chart .c:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.chart .c .val { position: absolute; bottom: calc(var(--h) + 6px); font-size: 11.5px; font-weight: 800; }
.chart .c:hover .val { opacity: 0; }
.chart .xl { grid-column: 2; display: flex; gap: 2px; padding-top: 8px; }
.chart .xl span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
@keyframes grow { from { transform: scaleY(0); } }
.total-line { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.total-line b { font-size: 34px; }
.total-line span { color: var(--ink-3); font-size: 12.5px; }

/* heatmaps */
.heat { display: grid; gap: 3px; }
.heat-row { display: grid; grid-template-columns: 34px repeat(var(--cols), 1fr); gap: 3px; align-items: center; }
.heat-row > span { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.heat-cell { aspect-ratio: 1.25; border-radius: 4px; background: var(--surface-3); position: relative; }
.heat-cell[data-l="1"] { background: color-mix(in srgb, var(--volt-2) 30%, var(--surface-3)); }
.heat-cell[data-l="2"] { background: color-mix(in srgb, var(--volt-2) 55%, var(--surface-3)); }
.heat-cell[data-l="3"] { background: color-mix(in srgb, var(--volt-2) 80%, var(--surface-3)); }
.heat-cell[data-l="4"] { background: var(--volt-2); }
:root:not([data-theme="dark"]) .heat-cell[data-l="4"] { background: #7fa810; }
:root:not([data-theme="dark"]) .heat-cell[data-l="3"] { background: #a5d02a; }
.heat-cell:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.heat-x { display: grid; grid-template-columns: 34px repeat(var(--cols), 1fr); gap: 3px; margin-top: 4px; }
.heat-x span { font-size: 10px; color: var(--ink-3); text-align: center; font-weight: 600; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); margin-top: 10px; justify-content: flex-end; }
.heat-legend .heat-cell { width: 14px; aspect-ratio: auto; height: 11px; }

.mix { display: flex; flex-direction: column; gap: 12px; }
.mix-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; }
.mix-row span { font-weight: 700; }
.mix-row b { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12.5px; }
.mix-row .track { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.mix-row .track i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
:root[data-theme="dark"] .mix-row .track i { background: var(--volt-2); }

/* ============================================================ check-in */
.desk { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.desk-search { position: relative; }
.desk-search input { width: 100%; height: 76px; border-radius: 22px; border: 2px solid var(--line); background: var(--surface); padding: 0 24px 0 66px; font-size: 22px; font-weight: 600; outline: none; transition: border .15s, box-shadow .15s; }
.desk-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 6px var(--volt-soft); }
.desk-search .ico { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; color: var(--ink-3); }
.desk-hint { color: var(--ink-3); font-size: 12.5px; margin: 10px 4px 16px; }
.desk-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pick-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.pick-card:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.pick-card.hl { border-color: var(--ink); box-shadow: 0 0 0 4px var(--volt-soft); }
.pick-card .who { flex: 1; }
.member-hero { border-radius: 26px; padding: 26px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 20px; animation: pop .3s cubic-bezier(.2, .9, .3, 1.15) both; }
.member-hero.ok { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); box-shadow: 0 0 0 6px var(--good-soft); }
.member-hero.no { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); box-shadow: 0 0 0 6px var(--bad-soft); }
.member-hero.frz { border-color: color-mix(in srgb, var(--frost) 40%, var(--line)); box-shadow: 0 0 0 6px var(--frost-soft); }
.mh-top { display: flex; gap: 20px; align-items: center; }
.mh-top h2 { margin: 0; font-size: 40px; }
.mh-top .meta { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mh-grid div { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); padding: 12px 14px; }
.mh-grid small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mh-grid b { font-size: 26px; display: block; margin-top: 4px; }
.mh-msg { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; font-weight: 700; }
.mh-msg .ico { width: 22px; height: 22px; }
.mh-msg.ok { background: var(--good-soft); color: var(--good); }
.mh-msg.no { background: var(--bad-soft); color: var(--bad); }
.mh-msg.frz { background: var(--frost-soft); color: var(--frost); }
.mh-msg.warn { background: var(--warn-soft); color: var(--warn); }
.mh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mh-actions .btn.xl { flex: 1; }
.checked { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: var(--volt); color: var(--volt-ink); animation: pop .35s cubic-bezier(.2, .9, .3, 1.3) both; }
.checked .ico { width: 34px; height: 34px; padding: 6px; background: var(--volt-ink); color: var(--volt); border-radius: 50%; }
.checked b { font-size: 20px; display: block; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.ring { --p: 50; --c: var(--good); width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); display: grid; place-items: center; flex: none; }
.ring > div { width: 62px; height: 62px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; line-height: 1; }
.ring b { font-size: 24px; display: block; }
.ring small { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ============================================================ tables / toolbars */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--surface); }
.seg button .n { margin-left: 5px; opacity: .55; font-weight: 600; }
.input-s { height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; outline: none; min-width: 260px; }
.input-s:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--volt-soft); }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child { border-top-left-radius: var(--r); } .tbl th:last-child { border-top-right-radius: var(--r); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .1s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.days { font-weight: 800; font-variant-numeric: tabular-nums; }
.days small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11.5px; }
.phone { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ============================================================ plans */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.plan { position: relative; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.plan.pop { background: #0b0c0e; color: #f1f3ec; border-color: #0b0c0e; }
.plan.pop .muted, .plan.pop .perks li { color: #9aa094; }
.plan.pt { background: var(--volt); color: var(--volt-ink); border-color: transparent; }
.plan.pt .muted, .plan.pt .perks li { color: rgba(11, 14, 2, .65); }
.plan .tag { position: absolute; top: 18px; right: 18px; }
.plan h3 { margin: 0; font-size: 28px; }
.price { font-size: 52px; }
.price small { font-size: 15px; font-stretch: 100%; font-weight: 700; text-transform: none; letter-spacing: 0; margin-left: 4px; opacity: .6; }
.price .cur { font-size: 18px; margin-right: 4px; opacity: .7; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.perks li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.perks li::before { content: '✓'; font-weight: 900; color: var(--volt-text); }
.plan.pop .perks li::before { color: #dbf94b; }
.plan.pt .perks li::before { color: var(--volt-ink); }
.plan-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }

/* ============================================================ classes */
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.wday { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wday-h { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.wday-h b { font-size: 20px; }
.wday-h small { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.wday.today .wday-h { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.wday.today .wday-h small { color: color-mix(in srgb, var(--surface) 60%, transparent); }
.class-card { position: relative; padding: 12px 12px 12px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; overflow: hidden; transition: transform .15s, box-shadow .15s; display: grid; gap: 6px; }
.class-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.class-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.class-card .t { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.class-card b { font-size: 14.5px; display: block; line-height: 1.2; }
.class-card small { font-size: 11.5px; color: var(--ink-3); }
.class-card.past { opacity: .5; }
.add-class { border: 1.5px dashed var(--line); background: transparent; border-radius: 14px; padding: 10px; color: var(--ink-3); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.add-class:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================ leads */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.col { border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.col-h b { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.col-h b i { width: 9px; height: 9px; border-radius: 50%; }
.col-h span { font-weight: 800; color: var(--ink-3); font-size: 12.5px; }
.lead { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.lead .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.lead p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.lead .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.trial-badge { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; padding: 8px 10px; border-radius: 11px; background: var(--volt-soft); color: var(--volt-text); }
.trial-badge .ico { width: 15px; height: 15px; }

/* ============================================================ reminders */
.rem { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line-2); }
.rem:first-child { border-top: 0; }
.rem .body { flex: 1; min-width: 0; }
.bubble { margin-top: 10px; background: #dcf8c6; color: #10251a; padding: 10px 13px; border-radius: 4px 16px 16px 16px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; max-width: 600px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .bubble { background: #173627; color: #dff5e5; }
.wa-banner { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r); margin-bottom: 18px; background: linear-gradient(110deg, rgba(31, 168, 85, .14), var(--surface) 70%); border: 1px solid rgba(31, 168, 85, .25); }
.wa-logo { width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(160deg, #2fd16a, #1a9a4c); color: #fff; display: grid; place-items: center; flex: none; }
.wa-logo .ico { width: 24px; height: 24px; }
.wa-banner p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }

/* ============================================================ member drawer */
.p-head { display: flex; gap: 18px; align-items: center; min-width: 0; }
.p-head h2 { margin: 0; font-size: 38px; }
.p-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: 13px; margin-top: 7px; }
.memcard { border-radius: 22px; padding: 20px; color: #f1f3ec; background: radial-gradient(300px 200px at 100% 0%, rgba(219, 249, 75, .2), transparent 60%), #0b0c0e; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border: 1px solid #1d2024; }
.memcard .lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7d8476; }
.memcard h3 { margin: 6px 0 2px; font-size: 32px; color: #fff; }
.memcard .dates { color: #9aa094; font-size: 13px; }
.memcard .code { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: #dbf94b; letter-spacing: .08em; }
.memcard .ring > div { background: #0b0c0e; color: #fff; }
.memcard .ring { --c: #dbf94b; background: conic-gradient(var(--c) calc(var(--p) * 1%), #23272b 0); width: 96px; height: 96px; }
.memcard .ring > div { width: 78px; height: 78px; }
.memcard .ring b { font-size: 30px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: 13px; background: var(--bad-soft); color: var(--bad); }
.alert.frost { background: var(--frost-soft); color: var(--frost); }
.alert .ico { width: 17px; height: 17px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.mini-stats small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mini-stats b { display: block; font-size: 26px; margin-top: 4px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 13px 14px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--volt-2); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 11px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.line-chart { width: 100%; height: 180px; display: block; overflow: visible; }
.line-chart .gl { stroke: var(--line); stroke-dasharray: 3 4; }
.line-chart text { fill: var(--ink-3); font-size: 11px; font-weight: 600; font-family: var(--font); }
.line-chart .ln { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
:root[data-theme="dark"] .line-chart .ln { stroke: var(--volt); }
.line-chart .pt { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
:root[data-theme="dark"] .line-chart .pt { stroke: var(--volt); }
.line-chart g:hover .pt { r: 6; }

/* ============================================================ overlays */
#overlay { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.layer { position: absolute; inset: 0; }
.scrim { position: absolute; inset: 0; background: rgba(5, 6, 4, .5); backdrop-filter: blur(4px); pointer-events: auto; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; pointer-events: auto; overflow: hidden; border: 1px solid var(--line); animation: popm .24s cubic-bezier(.2, .9, .3, 1.15) both; }
.modal.wide { width: min(800px, calc(100vw - 32px)); }
@keyframes popm { from { opacity: 0; transform: translate(-50%, -47%) scale(.98); } }
.drawer { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(760px, calc(100vw - 24px)); background: var(--bg); border-radius: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; pointer-events: auto; overflow: hidden; border: 1px solid var(--line); animation: slide .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide { from { transform: translateX(60px); opacity: 0; } }
.m-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px 8px; }
.m-h h2 { margin: 0; font-size: 30px; }
.drawer > .m-h { background: var(--surface); border-bottom: 1px solid var(--line); padding: 24px 26px 20px; }
.m-b { padding: 14px 26px 22px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.drawer > .m-b { padding-top: 18px; }
.m-f { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 26px; border-top: 1px solid var(--line-2); background: var(--surface); flex-wrap: wrap; }
.m-f .spacer { flex: 1; }
.x { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--surface-3); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s; color: var(--ink-2); }
.x:hover { transform: rotate(90deg); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 13px; outline: none; width: 100%; transition: border .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 84px; padding: 11px 13px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--volt-soft); background: var(--surface); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #7fa810; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { border: 1px solid var(--line); background: var(--surface); padding: 8px 13px; border-radius: 99px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.pills button:hover { border-color: var(--ink-3); }
.pills button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.plan-pick button { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 12px; cursor: pointer; transition: all .12s; }
.plan-pick button b { display: block; font-size: 13.5px; }
.plan-pick button small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.plan-pick button.on { border-color: var(--ink); background: var(--volt-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.summary { border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); padding: 14px 16px; display: grid; gap: 6px; font-size: 13.5px; }
.summary .r { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.summary .r.t { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; font-weight: 800; font-size: 16px; }
.settings { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
.set-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.set-nav a { padding: 10px 14px; border-radius: 12px; font-weight: 600; color: var(--ink-2); }
.set-nav a:hover { background: var(--surface); color: var(--ink); }
.set-sec { scroll-margin-top: 92px; }
.row-edit { display: grid; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.row-edit:first-child { border-top: 0; }
.row-edit input { height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 11px; outline: none; width: 100%; min-width: 0; }
.row-edit input[type=color] { padding: 3px; width: 40px; cursor: pointer; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.vars code { font: 600 11.5px var(--mono); padding: 3px 8px; border-radius: 7px; background: var(--volt-soft); color: var(--volt-text); cursor: pointer; }

#toasts { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.2) both; }
.toast .ico { width: 17px; height: 17px; color: var(--volt); }
:root:not([data-theme="dark"]) .toast .ico { color: #c8f53a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* WhatsApp preview (website demo mode) */
.wa-preview { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 340px; border-radius: 22px; overflow: hidden; background: #efe7dd; box-shadow: var(--shadow-lg); animation: toastIn .35s both; transition: opacity .3s, transform .3s; }
.wa-preview.out { opacity: 0; transform: translateY(10px); }
.wa-preview .wp-h { display: flex; gap: 10px; align-items: center; padding: 12px 12px 12px 14px; background: #075e54; color: #fff; }
.wa-preview .wp-h > div:nth-child(2) { flex: 1; min-width: 0; }
.wa-preview .wp-h b { display: block; font-size: 14px; }
.wa-preview .wp-h small { color: #b4e3d9; font-size: 11.5px; }
.wa-preview .wp-h .x { width: 30px; height: 30px; background: rgba(255, 255, 255, .12); color: #fff; }
.wa-preview .wp-b { padding: 14px; max-height: 300px; overflow: auto; }
.wa-preview .bubble { margin: 0 0 0 auto; background: #d9fdd3; color: #111b21; border-radius: 14px 4px 14px 14px; max-width: 92%; padding-bottom: 20px; position: relative; }
.wa-preview .wp-t { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; color: #667781; }
.wa-preview .ticks { color: #8696a0; letter-spacing: -3px; margin-left: 2px; transition: color .3s; }
.wa-preview.read .ticks { color: #53bdeb; }

/* ============================================================ responsive */
@media (max-width: 1280px) {
  .hero { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .g-21, .g-12, .desk { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 30; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .sidebar::before, .brand, .floor, .side-foot, .nav-sep { display: none; }
  #nav { flex-direction: row; flex: 1; overflow-x: auto; scrollbar-width: none; }
  #nav a { flex-direction: column; gap: 3px; font-size: 10px; padding: 8px 4px; flex: 0 0 70px; text-align: center; }
  #nav a .badge { position: absolute; top: 2px; right: calc(50% - 26px); font-size: 9.5px; padding: 0 5px; min-width: 0; }
  .topbar { padding: 12px 16px; }
  .clock, .hide-sm, .search kbd { display: none; }
  .top-mark { display: block; flex: none; }
  .top-actions .btn { width: 44px; padding: 0; }
  .view { padding: 18px 16px 120px; }
  .page-h h1 { font-size: 38px; }
  .g-3, .stats { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; }
  .set-nav { display: none; }
  .tbl .hide-m { display: none; }
  .input-s { min-width: 0; flex: 1; }
  .drawer { inset: 0; width: 100vw; border-radius: 0; }
  .big-n { font-size: 96px; }
  .mh-grid { grid-template-columns: 1fr 1fr 1fr; }
  .mh-grid b { font-size: 20px; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .desk-search input { height: 62px; font-size: 18px; }
  .wa-preview { left: 12px; right: 12px; width: auto; bottom: 96px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .v { font-size: 36px; }
  .g-3 { grid-template-columns: 1fr; }
  .live-panel { padding: 20px; }
  .mh-top h2 { font-size: 30px; }
  .avatar.xl { width: 76px; height: 76px; font-size: 26px; border-radius: 22px; }
}
.plan:has(.tag) h3 { padding-right: 96px; }
:root:not([data-theme="dark"]) .chart .c:not(.cur) i { background: #d9ddcf; }
@media (max-width: 520px) { .stat .k .ico { display: none; } .stat .k { font-size: 12px; } }
