/* ============================================================
   ArtistFlow UI 2.0 - дизайн-система
   Токены, база, компоненты, оболочка приложения, публичные страницы.
   Шрифты: Unbounded (display), Manrope (текст), JetBrains Mono (коды).
   ============================================================ */

:root {
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #08080c;
  --bg-2: #0e0e14;
  --surface: #13131b;
  --surface-2: #1a1a24;
  --surface-3: #22222e;
  --surface-hover: #1f1f2a;
  --border: rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.14);
  --text: #f4f4f8;
  --text-2: #a9a9bb;
  --text-3: #6f6f82;
  --text-inverse: #0a0a0f;

  --accent: #ff4a3d;
  --accent-2: #ff6a5e;
  --accent-deep: #d92f22;
  --accent-soft: rgba(255,74,61,.14);
  --accent-glow: rgba(255,74,61,.35);
  --on-accent: #fff;

  --success: #3ddc97;
  --success-soft: rgba(61,220,151,.14);
  --warning: #ffb020;
  --warning-soft: rgba(255,176,32,.14);
  --danger: #ff5c5c;
  --danger-soft: rgba(255,92,92,.14);
  --info: #6fb8ff;
  --info-soft: rgba(111,184,255,.14);
  --neutral-soft: rgba(255,255,255,.07);

  --radius-xs: 6px;
  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-2: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -16px rgba(0,0,0,.7);
  --shadow-accent: 0 8px 28px -8px var(--accent-glow);
  --ring: 0 0 0 3px rgba(255,74,61,.35);

  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-in: cubic-bezier(.4,0,1,1);
  --spring: cubic-bezier(.34,1.4,.64,1);
  --d1: 150ms;
  --d2: 240ms;
  --d3: 420ms;

  --sidebar-w: 264px;
  --sidebar-w-min: 76px;
  --topbar-h: 64px;
  --content-max: 1360px;

  --scrollbar: rgba(255,255,255,.14);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f4f7;
  --bg-2: #ececf1;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --surface-3: #eeeef3;
  --surface-hover: #f1f1f5;
  --border: rgba(10,10,20,.08);
  --border-strong: rgba(10,10,20,.16);
  --text: #101015;
  --text-2: #55556a;
  --text-3: #8b8b9c;
  --text-inverse: #fff;
  --accent: #e5321f;
  --accent-2: #f04a38;
  --accent-deep: #c22617;
  --accent-soft: rgba(229,50,31,.1);
  --accent-glow: rgba(229,50,31,.3);
  --success: #17a36b;
  --success-soft: rgba(23,163,107,.12);
  --warning: #d68a00;
  --warning-soft: rgba(214,138,0,.12);
  --danger: #d93838;
  --danger-soft: rgba(217,56,56,.1);
  --info: #2b7fd6;
  --info-soft: rgba(43,127,214,.1);
  --neutral-soft: rgba(10,10,20,.06);
  --shadow-1: 0 1px 2px rgba(10,10,20,.06), 0 8px 24px -12px rgba(10,10,20,.16);
  --shadow-2: 0 2px 4px rgba(10,10,20,.06), 0 24px 48px -16px rgba(10,10,20,.22);
  --scrollbar: rgba(10,10,20,.18);
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- typography ---------- */
.h1, .h2, .h3, .h4, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.display { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.025em; font-weight: 700; }
.h1 { font-size: clamp(24px, 3vw, 32px); }
.h2 { font-size: clamp(20px, 2.4vw, 24px); }
.h3 { font-size: 17px; }
.h4 { font-size: 15px; }
.lead { font-size: 17px; color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-success { color: var(--success); } .text-warning { color: var(--warning); } .text-danger { color: var(--danger); } .text-info { color: var(--info); } .text-accent { color: var(--accent); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text-2); box-shadow: inset 0 -1px 0 rgba(0,0,0,.3); }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
pre { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 14px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- layout utilities ---------- */
.flex { display: flex; } .inline-flex { display: inline-flex; }
.col { flex-direction: column; }
.wrap { flex-wrap: wrap; }
.center { align-items: center; } .middle { justify-content: center; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.start { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.stack > * + * { margin-top: 16px; }
.stack-s > * + * { margin-top: 8px; }
.stack-l > * + * { margin-top: 28px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.text-center { text-align: center; } .text-right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.split-wide { grid-template-columns: minmax(0,1fr) 420px; }
.sticky { position: sticky; top: calc(var(--topbar-h) + 16px); }
@media (max-width: 1100px) { .split, .split-wide { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .hide-m { display: none !important; } }
@media (min-width: 641px) { .show-m { display: none !important; } }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic-14 { width: 14px; height: 14px; } .ic-16 { width: 16px; height: 16px; } .ic-18 { width: 18px; height: 18px; } .ic-24 { width: 24px; height: 24px; } .ic-32 { width: 32px; height: 32px; } .ic-48 { width: 48px; height: 48px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-3);
  --btn-fg: var(--text);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: var(--radius-s);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background var(--d1) var(--ease), color var(--d1), border-color var(--d1), transform var(--d1) var(--ease), box-shadow var(--d2) var(--ease), opacity var(--d1);
  user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  text-decoration: none;
}
.btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn:active { transform: scale(.975); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn-primary:hover { --btn-bg: var(--accent-2); border-color: transparent; background: var(--accent-2); box-shadow: 0 12px 32px -8px var(--accent-glow); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.975); }
.btn-outline { --btn-bg: transparent; --btn-bd: var(--border-strong); }
.btn-outline:hover { background: var(--neutral-soft); }
.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { background: var(--neutral-soft); border-color: transparent; }
.btn-soft { --btn-bg: var(--accent-soft); --btn-fg: var(--accent); }
.btn-soft:hover { background: var(--accent); color: #fff; border-color: transparent; }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: transparent; }
.btn-success { --btn-bg: var(--success-soft); --btn-fg: var(--success); }
.btn-success:hover { background: var(--success); color: #05130d; border-color: transparent; }
.btn-white { --btn-bg: #fff; --btn-fg: #0a0a0f; }
.btn-white:hover { background: #f0f0f4; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-xl { min-height: 56px; padding: 0 30px; font-size: 16px; border-radius: 14px; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary.is-loading::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.btn-seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.btn-seg .btn { min-height: 32px; padding: 0 12px; font-size: 13px; background: transparent; border: 0; color: var(--text-2); border-radius: 7px; }
.btn-seg .btn.is-active, .btn-seg .btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.label .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-s);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: border-color var(--d1), box-shadow var(--d2) var(--ease), background var(--d1);
  outline: none; -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input.is-valid { border-color: var(--success); }
.input.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888899' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.select option { background: var(--surface); color: var(--text); }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.input-group .btn { border-radius: 0 var(--radius-s) var(--radius-s) 0; min-height: 44px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .ic-lead { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.input-wrap .ic-lead ~ .input { padding-left: 42px; }
.input-wrap .btn-trail { position: absolute; right: 4px; }
.input-wrap .btn-trail ~ .input, .input-wrap .input.has-trail { padding-right: 44px; }
.hint { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.err, .field-error { font-size: 12.5px; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-row-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-row .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.fieldset > legend { padding: 0 8px; font-weight: 700; font-size: 13px; color: var(--text-2); }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: center; transition: all var(--d1); flex-shrink: 0; }
.check .box .ic { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.5); transition: all var(--d1) var(--spring); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box .ic { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { box-shadow: var(--ring); }
.check.radio .box { border-radius: 50%; }
.check.radio .box::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.4); transition: all var(--d1) var(--spring); }
.check.radio input:checked + .box::after { opacity: 1; transform: scale(1); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background var(--d2) var(--ease), border-color var(--d2); flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform var(--d2) var(--spring); }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .title { font-weight: 600; }
.switch-row .hint { margin-top: 2px; }

.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.radio-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: all var(--d1); }
.radio-card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.radio-card .t { font-weight: 700; font-size: 14px; }
.radio-card .d { font-size: 12.5px; color: var(--text-2); }

.drop { position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); padding: 24px; text-align: center; transition: all var(--d2) var(--ease); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; color: var(--text-2); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.drop.is-over { transform: scale(1.01); }
.drop .ic { color: var(--accent); }
.drop b { color: var(--text); }
.drop.has-file { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.drop.square { aspect-ratio: 1 / 1; padding: 0; overflow: hidden; min-height: 0; }
.drop.square img { width: 100%; height: 100%; object-fit: cover; }
.drop.square .drop-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 12px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 50%); opacity: 0; transition: opacity var(--d2); }
.drop.square:hover .drop-overlay { opacity: 1; }
.drop.square .drop-overlay .btn { pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); font-size: 13px; font-weight: 600; animation: pop var(--d2) var(--spring); }
.chip small { font-weight: 500; color: var(--text-3); }
.chip .x { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); transition: all var(--d1); }
.chip .x:hover { background: var(--danger); color: #fff; }
.chip.is-primary { border-color: var(--accent); background: var(--accent-soft); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--neutral-soft); font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ---------- badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.4; border: 1px solid transparent; }
.badge.tone-neutral { background: var(--neutral-soft); color: var(--text-2); }
.badge.tone-info { background: var(--info-soft); color: var(--info); }
.badge.tone-success { background: var(--success-soft); color: var(--success); }
.badge.tone-warning { background: var(--warning-soft); color: var(--warning); }
.badge.tone-danger { background: var(--danger-soft); color: var(--danger); }
.badge.tone-accent { background: var(--accent-soft); color: var(--accent); }
.badge-lg { padding: 6px 14px; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; flex-shrink: 0; }
.dot.success { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.dot.warning { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.dot.danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.dot.info { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.dot.accent { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dot.pulse { animation: pulse 1.8s ease-out infinite; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; }
.count.is-zero { display: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.card-body { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head .h3, .card-head .h4 { margin: 0; }
.card-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-hover { transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease), border-color var(--d2); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.card-sm .card-body { padding: 16px; }
.card-flat { box-shadow: none; background: var(--surface-2); }
.card-accent { border-color: var(--accent); box-shadow: var(--shadow-accent); }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
@media (max-width: 640px) { .card-body { padding: 16px; } .card-head, .card-foot { padding: 14px 16px; } }

.stat { position: relative; overflow: hidden; }
.stat .card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.stat .stat-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.stat .stat-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.stat .stat-icon.success { background: var(--success-soft); color: var(--success); }
.stat .stat-icon.info { background: var(--info-soft); color: var(--info); }
.stat .stat-icon.warning { background: var(--warning-soft); color: var(--warning); }
.stat .stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stat .stat-sub { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat .stat-sub .up { color: var(--success); } .stat .stat-sub .down { color: var(--danger); }
.stat .spark { position: absolute; right: 0; bottom: 0; width: 45%; height: 48px; opacity: .8; pointer-events: none; }

/* ---------- avatar / cover ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--surface-3), var(--accent-soft)); color: var(--text); font-weight: 800; font-size: 14px; flex-shrink: 0; border: 1px solid var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 96px; height: 96px; font-size: 32px; }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.cover { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-s); overflow: hidden; background: var(--surface-3); flex-shrink: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.is-empty { display: grid; place-items: center; color: var(--text-3); }
.cover.is-empty .ic { width: 40%; height: 40%; }
.cover-sm { width: 44px; } .cover-md { width: 64px; } .cover-lg { width: 120px; border-radius: var(--radius); } .cover-xl { width: 100%; max-width: 320px; border-radius: var(--radius-l); }
.cover-glow { box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }

/* ---------- tables / lists ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
.table-wrap .card-head { border-radius: var(--radius-l) var(--radius-l) 0 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); white-space: nowrap; background: var(--surface-2); }
.table tbody tr { transition: background var(--d1); }
.table tbody tr:hover { background: var(--surface-hover); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.table .cell-main .t { font-weight: 700; }
.table .cell-main .s { font-size: 12.5px; color: var(--text-3); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table-compact th, .table-compact td { padding: 9px 12px; }
.row-link { cursor: pointer; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.list-item .t { font-weight: 700; }
.list-item .s { font-size: 12.5px; color: var(--text-3); }
.list-item .main { flex: 1; min-width: 0; }
a.list-item, .list-item.is-link { transition: background var(--d1); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius-s); border-bottom: 0; }
a.list-item:hover, .list-item.is-link:hover { background: var(--surface-hover); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; font-weight: 600; min-width: 0; word-break: break-word; }

/* ---------- misc components ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 24px; color: var(--text-2); }
.empty .ic { width: 48px; height: 48px; color: var(--text-3); }
.empty .h3 { color: var(--text); }
.empty .empty-art { width: 96px; height: 96px; border-radius: 28px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 6px; }
.empty .empty-art .ic { color: var(--accent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width var(--d3) var(--ease); }
.progress.success > i { background: var(--success); }
.progress-sm { height: 5px; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.4s infinite; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.callout .ic { flex-shrink: 0; margin-top: 1px; }
.callout.info { border-color: rgba(111,184,255,.3); background: var(--info-soft); }
.callout.info .ic { color: var(--info); }
.callout.success { border-color: rgba(61,220,151,.3); background: var(--success-soft); }
.callout.success .ic { color: var(--success); }
.callout.warning { border-color: rgba(255,176,32,.35); background: var(--warning-soft); }
.callout.warning .ic { color: var(--warning); }
.callout.danger { border-color: rgba(255,92,92,.35); background: var(--danger-soft); }
.callout.danger .ic { color: var(--danger); }
.callout b { display: block; margin-bottom: 2px; }
.flash { position: relative; padding-right: 44px; margin-bottom: 20px; animation: slide-down var(--d3) var(--ease); }
.flash .close { position: absolute; right: 8px; top: 8px; }

[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all var(--d1) var(--ease); z-index: 50; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: color var(--d1); border-radius: 8px 8px 0 0; }
.tab:hover { color: var(--text); background: var(--neutral-soft); }
.tab.is-active { color: var(--text); }
.tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; animation: grow-x var(--d2) var(--ease); }
.tab .count { background: var(--surface-3); color: var(--text-2); }
.tab.is-active .count { background: var(--accent); color: #fff; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); transition: all var(--d1); cursor: pointer; }
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill .count { background: var(--neutral-soft); color: inherit; }

.stepper { display: flex; gap: 0; counter-reset: step; }
.stepper .step { flex: 1; display: flex; align-items: center; gap: 10px; position: relative; padding: 8px 0; color: var(--text-3); font-size: 13px; font-weight: 600; cursor: pointer; min-width: 0; }
.stepper .step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-strong); background: var(--surface-2); font-size: 12px; font-weight: 800; flex-shrink: 0; transition: all var(--d2) var(--ease); }
.stepper .step .n .ic { width: 14px; height: 14px; }
.stepper .step::after { content: ""; flex: 1; height: 1.5px; background: var(--border-strong); margin: 0 12px; transition: background var(--d3); }
.stepper .step:last-child::after { display: none; }
.stepper .step.is-active { color: var(--text); }
.stepper .step.is-active .n { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-accent); transform: scale(1.08); }
.stepper .step.is-done { color: var(--text-2); }
.stepper .step.is-done .n { background: var(--success); border-color: var(--success); color: #05130d; }
.stepper .step.is-done::after { background: var(--success); }
.stepper .step span.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .stepper .step span.t { display: none; } .stepper .step.is-active span.t { display: inline; } }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--border-strong); }
.tl-item.success::before { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.tl-item.accent::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item.warning::before { background: var(--warning); border-color: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.tl-item.danger::before { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.tl-item.info::before { background: var(--info); border-color: var(--info); box-shadow: 0 0 0 4px var(--info-soft); }
.tl-item .t { font-weight: 700; font-size: 14px; }
.tl-item .s { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.tl-item .c { margin-top: 8px; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); white-space: pre-wrap; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.flow .f { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.flow .f i { display: block; width: 100%; height: 6px; border-radius: 4px; background: var(--surface-3); transition: background var(--d3); }
.flow .f.done { color: var(--text-2); } .flow .f.done i { background: var(--success); }
.flow .f.cur { color: var(--text); } .flow .f.cur i { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.flow .f.bad { color: var(--danger); } .flow .f.bad i { background: var(--danger); }

/* ---------- dropdown / popover ---------- */
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 6px; z-index: 60; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity var(--d1) var(--ease), transform var(--d2) var(--ease); transform-origin: top right; }
.dd-menu.left { right: auto; left: 0; transform-origin: top left; }
.dd.is-open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: left; transition: all var(--d1); cursor: pointer; }
.dd-item:hover { background: var(--surface-hover); color: var(--text); }
.dd-item .ic { width: 18px; height: 18px; }
.dd-item.danger { color: var(--danger); }
.dd-item.danger:hover { background: var(--danger-soft); }
.dd-sep { border-top: 1px solid var(--border); margin: 6px 0; }
.dd-head { padding: 10px 12px 6px; font-size: 12px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- modal / drawer / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,8,.6); backdrop-filter: blur(6px); animation: fade var(--d2) var(--ease); }
.modal-panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); animation: modal-in var(--d3) var(--spring); }
.modal-lg .modal-panel { max-width: 860px; }
.modal-xl .modal-panel { max-width: 1080px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); flex-wrap: wrap; }
@media (max-width: 640px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { max-width: none; max-height: 92dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; animation: sheet-in var(--d3) var(--ease); }
  .modal-body { padding: 18px; } .modal-head, .modal-foot { padding: 14px 18px; }
}
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.is-open { display: block; }
.drawer .modal-backdrop { z-index: 0; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); border-left: 1px solid var(--border-strong); box-shadow: var(--shadow-2); overflow: auto; animation: drawer-in var(--d3) var(--ease); display: flex; flex-direction: column; }
.drawer-panel .modal-body { flex: 1; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: min(420px, calc(100vw - 40px)); }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); font-size: 14px; animation: toast-in var(--d3) var(--spring); }
.toast.is-leaving { animation: toast-out var(--d2) var(--ease-in) forwards; }
.toast .ic { flex-shrink: 0; margin-top: 1px; }
.toast.success .ic { color: var(--success); } .toast.error .ic { color: var(--danger); } .toast.info .ic { color: var(--info); } .toast.warning .ic { color: var(--warning); }
.toast .close { margin-left: auto; color: var(--text-3); }
@media (max-width: 640px) { .toasts { right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom) + 64px); max-width: none; } }

/* ---------- command palette ---------- */
.cmdk .modal-panel { max-width: 640px; overflow: hidden; }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cmdk-input input { flex: 1; background: none; border: 0; outline: none; font-size: 17px; color: var(--text); }
.cmdk-list { max-height: 420px; overflow: auto; padding: 8px; }
.cmdk-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.cmdk-item .ic { color: var(--text-3); }
.cmdk-item.is-active, .cmdk-item:hover { background: var(--accent-soft); color: var(--text); }
.cmdk-item.is-active .ic { color: var(--accent); }
.cmdk-item .s { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 500; }
.cmdk-foot { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; gap: 14px; font-size: 12px; color: var(--text-3); }

/* ---------- audio player ---------- */
.player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.player .p-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: transform var(--d1) var(--ease), background var(--d1); box-shadow: var(--shadow-accent); }
.player .p-btn:hover { transform: scale(1.06); }
.player .p-btn:active { transform: scale(.95); }
.player .p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player .p-title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .p-wave { position: relative; height: 34px; cursor: pointer; }
.player .p-wave canvas { width: 100%; height: 100%; display: block; }
.player .p-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); display: flex; justify-content: space-between; }
.player.is-playing .p-btn { background: var(--text); color: var(--bg); box-shadow: none; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 16px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; height: 40%; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .45s; }

/* ---------- charts ---------- */
.chart { width: 100%; height: 220px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--text-3); font-size: 11px; font-family: var(--font-mono); }
.chart .area { fill: url(#af-area); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.chart .bar { fill: var(--accent); rx: 4; transition: fill var(--d1); transform-box: fill-box; }
.chart .bar:hover { fill: var(--accent-2); }
.chart .pt { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars .b { display: grid; grid-template-columns: 140px 1fr 56px; gap: 12px; align-items: center; font-size: 13px; }
.bars .b .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.bars .b .n img { width: 18px; height: 18px; border-radius: 4px; }
.bars .b .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 700; }
.bars .b .progress { height: 8px; }
@media (max-width: 640px) { .bars .b { grid-template-columns: 100px 1fr 44px; } }

/* ---------- platform tiles ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.plat { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: all var(--d1); font-size: 13px; font-weight: 600; min-width: 0; }
.plat:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.plat input { position: absolute; opacity: 0; inset: 0; }
.plat .p-ic { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--text-2); }
.plat .p-ic img { width: 100%; height: 100%; object-fit: cover; }
.plat .p-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat .p-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; transition: all var(--d1) var(--spring); flex-shrink: 0; }
.plat .p-check .ic { width: 11px; height: 11px; color: #fff; opacity: 0; transform: scale(.4); }
.plat:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plat:has(input:checked) .p-check { background: var(--accent); border-color: var(--accent); }
.plat:has(input:checked) .p-check .ic { opacity: 1; transform: scale(1); }
.plat .badge { margin-left: auto; }
.plat.is-static { cursor: default; }
.plat.is-static:hover { background: var(--surface-2); border-color: var(--border); }
.plat-mini { display: inline-flex; width: 26px; height: 26px; border-radius: 7px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); margin-left: -6px; }
.plat-mini:first-child { margin-left: 0; }
.plat-mini img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist .ci { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; }
.checklist .ci .st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--neutral-soft); color: var(--text-3); }
.checklist .ci .st .ic { width: 13px; height: 13px; }
.checklist .ci.ok .st { background: var(--success-soft); color: var(--success); }
.checklist .ci.warn .st { background: var(--warning-soft); color: var(--warning); }
.checklist .ci.bad .st { background: var(--danger-soft); color: var(--danger); }
.checklist .ci .d { color: var(--text-3); font-size: 12.5px; }
.checklist .ci.done { opacity: .55; }
.checklist .ci.done b { text-decoration: line-through; text-decoration-color: var(--text-3); }

/* ============================================================
   APP SHELL
   ============================================================ */
.sidebar-scrim { display: none; }
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100dvh; transition: grid-template-columns var(--d3) var(--ease); }
.app.is-collapsed { grid-template-columns: var(--sidebar-w-min) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; gap: 6px; overflow: hidden; z-index: 40; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; min-height: 56px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-accent); }
.brand-mark .ic { width: 20px; height: 20px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }
.nav-group { padding: 8px 0 4px; }
.nav-label { padding: 10px 12px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); white-space: nowrap; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: all var(--d1) var(--ease); min-height: 42px; }
.nav-item .ic { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--d2) var(--spring); }
.nav-item:hover { background: var(--neutral-soft); color: var(--text); }
.nav-item:hover .ic { transform: translateX(1px) scale(1.05); }
.nav-item.is-active { background: var(--accent-soft); color: var(--text); }
.nav-item.is-active .ic { color: var(--accent); }
.nav-item.is-active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item .count { margin-left: auto; }
.nav-item .nav-text { overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; width: 100%; text-align: left; transition: background var(--d1); }
.sidebar-user:hover { background: var(--neutral-soft); }
.sidebar-user .u-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .u-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-collapse { position: absolute; right: -13px; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-2); box-shadow: var(--shadow-1); z-index: 2; transition: transform var(--d2) var(--ease), background var(--d1); }
.sidebar-collapse:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.sidebar-collapse .ic { width: 14px; height: 14px; }
.app.is-collapsed .sidebar-collapse { transform: rotate(180deg); }
.app.is-collapsed .brand-name, .app.is-collapsed .nav-label, .app.is-collapsed .nav-text, .app.is-collapsed .nav-item .count, .app.is-collapsed .sidebar-user > div { display: none; }
.app.is-collapsed .nav-item { justify-content: center; padding: 10px; }
.app.is-collapsed .nav-item.is-active::before { display: none; }
.app.is-collapsed .sidebar-user { justify-content: center; }
.app.is-collapsed .nav-group { padding-top: 4px; }
.app.is-collapsed .sidebar .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-promo { margin: 10px 0 6px; padding: 14px; border-radius: 14px; background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); font-size: 12.5px; }
.sidebar-promo b { display: block; margin-bottom: 4px; font-size: 13px; }
.sidebar-promo .btn { margin-top: 10px; }
.app.is-collapsed .sidebar-promo { display: none; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 35; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); min-width: 0; }
.topbar .crumbs a:hover { color: var(--text); }
.topbar .crumbs .cur { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .crumbs .ic { width: 14px; height: 14px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar .search-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); font-size: 13.5px; min-width: 220px; transition: all var(--d1); }
.topbar .search-btn:hover { border-color: var(--border-strong); color: var(--text-2); }
.topbar .search-btn kbd { margin-left: auto; }
.topbar .icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); transition: all var(--d1); }
.topbar .icon-btn:hover { background: var(--neutral-soft); color: var(--text); }
.topbar .icon-btn .count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.topbar .balance-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; transition: all var(--d1); }
.topbar .balance-pill:hover { border-color: var(--accent); }
.topbar .balance-pill .ic { color: var(--accent); width: 16px; height: 16px; }
.topbar .menu-btn { display: none; }

.content { padding: 28px; max-width: var(--content-max); width: 100%; margin: 0 auto; animation: page-in var(--d3) var(--ease); flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .h1 { margin-top: 4px; }
.page-head .page-sub { color: var(--text-2); margin-top: 6px; max-width: 640px; }
.page-head .page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head .link { white-space: nowrap; }
.section-head .h3 { display: flex; align-items: center; gap: 8px; }

.notif-pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(400px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-2); z-index: 60; overflow: hidden; }
.notif-pop .np-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; }
.notif-pop .np-list { max-height: 400px; overflow: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; transition: background var(--d1); }
.notif-item:hover { background: var(--surface-hover); }
.notif-item .ni-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--neutral-soft); display: grid; place-items: center; flex-shrink: 0; color: var(--text-2); }
.notif-item.is-unread .ni-ic { background: var(--accent-soft); color: var(--accent); }
.notif-item .ni-t { font-weight: 700; }
.notif-item .ni-b { color: var(--text-2); font-size: 13px; margin-top: 2px; white-space: pre-line; }
.notif-item .ni-m { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.notif-pop .np-foot { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }

.bottom-nav { display: none; }
.mobile-drawer { display: none; }

@media (max-width: 1024px) {
  .app, .app.is-collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-104%); transition: transform var(--d3) var(--ease); box-shadow: var(--shadow-2); }
  .sidebar.is-open { transform: none; }
  .sidebar-collapse { display: none; }
  .app.is-collapsed .brand-name, .app.is-collapsed .nav-label, .app.is-collapsed .nav-text, .app.is-collapsed .nav-item .count, .app.is-collapsed .sidebar-user > div, .app.is-collapsed .sidebar-promo { display: revert; }
  .app.is-collapsed .nav-item { justify-content: flex-start; padding: 10px 12px; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(4,4,8,.55); z-index: 39; opacity: 0; pointer-events: none; transition: opacity var(--d2); backdrop-filter: blur(3px); }
  .sidebar-scrim.is-open { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 16px; }
  .topbar .menu-btn { display: grid; }
  .topbar .search-btn { min-width: 0; }
  .topbar .search-btn span, .topbar .search-btn kbd { display: none; }
  .content { padding: 20px 16px calc(84px + env(safe-area-inset-bottom)); }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 10.5px; font-weight: 700; color: var(--text-3); border-radius: 10px; min-height: 48px; justify-content: center; }
  .bottom-nav a .ic { width: 22px; height: 22px; transition: transform var(--d2) var(--spring); }
  .bottom-nav a.is-active { color: var(--accent); }
  .bottom-nav a.is-active .ic { transform: translateY(-2px); }
  .bottom-nav a.is-cta .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); margin-top: -18px; }
  .bottom-nav a.is-cta { color: var(--text-2); }
  .page-head { margin-bottom: 18px; }
}

/* ============================================================
   PUBLIC (лендинг, тарифы, вход)
   ============================================================ */
.site { display: flex; flex-direction: column; min-height: 100dvh; }
.site-nav { position: sticky; top: 0; z-index: 50; height: 68px; display: flex; align-items: center; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.site-nav .wrap-x { display: flex; align-items: center; gap: 28px; }
.site-nav .brand { display: flex; align-items: center; gap: 10px; }
.site-nav .links { display: flex; gap: 4px; margin-left: 12px; }
.site-nav .links a { padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: all var(--d1); }
.site-nav .links a:hover { color: var(--text); background: var(--neutral-soft); }
.site-nav .cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wrap-x { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-n { max-width: 960px; }
.site-main { flex: 1; }
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 30px; color: var(--text-3); font-size: 13px; background: var(--bg-2); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.site-footer .cols b { display: block; color: var(--text); margin-bottom: 10px; font-size: 13px; }
.site-footer .cols a { display: block; padding: 4px 0; color: var(--text-2); }
.site-footer .cols a:hover { color: var(--text); }
.site-footer .legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border); white-space: pre-line; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-nav .links { display: none; } }

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head-c { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head-c .h2 { font-size: clamp(26px, 3.6vw, 40px); margin-top: 12px; }
.section-head-c .lead { margin-top: 14px; }

.hero { position: relative; overflow: hidden; padding: 96px 0 60px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 14s ease-in-out infinite; }
.hero-bg .orb-1 { width: 520px; height: 520px; left: -140px; top: -160px; background: radial-gradient(circle, var(--accent), transparent 65%); }
.hero-bg .orb-2 { width: 460px; height: 460px; right: -120px; top: 40px; background: radial-gradient(circle, #6fb8ff, transparent 65%); opacity: .25; animation-delay: -6s; }
.hero-bg .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: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); opacity: .6; }
.hero .wrap-x { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero .display { margin-top: 18px; }
.hero .display em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 22px; max-width: 560px; }
.hero .hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .hero-proof { margin-top: 32px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero .hero-proof div { display: flex; flex-direction: column; }
.hero .hero-proof b { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.hero .hero-proof span { font-size: 12.5px; color: var(--text-3); }
.hero-visual { position: relative; min-height: 460px; }
.mock { position: absolute; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-2); overflow: hidden; }
.mock-main { left: 8%; right: 0; top: 10%; padding: 18px; animation: float 9s ease-in-out infinite; }
.mock-main .mh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mock-main .mh .cover { width: 52px; }
.mock-main .mh b { display: block; font-size: 14px; }
.mock-main .mh span { font-size: 12px; color: var(--text-3); }
.mock-main .mstat { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.mock-main .mstat div { padding: 10px; border-radius: 10px; background: var(--surface-2); }
.mock-main .mstat b { display: block; font-family: var(--font-display); font-size: 16px; }
.mock-main .mstat span { font-size: 11px; color: var(--text-3); }
.mock-card { left: -6%; bottom: 6%; width: 250px; padding: 14px; animation: float 11s ease-in-out infinite; animation-delay: -4s; }
.mock-card .flow { margin-top: 10px; }
.mock-pill { right: -2%; top: -4%; padding: 10px 14px; border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; animation: float 8s ease-in-out infinite; animation-delay: -2s; }
.mock-pill .dot { width: 8px; height: 8px; }
.mock-wave { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.mock-wave i { flex: 1; background: var(--accent); border-radius: 2px; opacity: .85; animation: eq 1.6s ease-in-out infinite; }
.mock-wave i:nth-child(odd) { opacity: .5; }
@media (max-width: 960px) {
  .hero { padding: 56px 0 30px; }
  .hero .wrap-x { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; margin-top: 10px; }
  .mock-main { left: 0; }
  .mock-card { left: 0; width: 220px; }
}

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 10px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .plat { pointer-events: none; min-width: 170px; }
.marquee .plat .p-check { display: none; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { position: relative; overflow: hidden; }
.bento .card-body { padding: 26px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.bento .card .h3 { font-size: 18px; }
.bento .card p { color: var(--text-2); font-size: 14px; }
.bento .b-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.bento .span-2 { grid-column: span 2; } .bento .span-3 { grid-column: span 3; } .bento .span-4 { grid-column: span 4; } .bento .span-6 { grid-column: span 6; }
.bento .b-art { margin-top: auto; padding-top: 16px; }
@media (max-width: 960px) { .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .span-2, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 1; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps .st { position: relative; padding: 28px 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); }
.steps .st::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--accent); opacity: .25; line-height: 1; display: block; margin-bottom: 14px; }
.steps .st .h3 { margin-bottom: 8px; }
.steps .st p { color: var(--text-2); font-size: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.price-card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-accent); }
.price-card .pc-flag { position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.price-card .pc-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.price-card .pc-desc { color: var(--text-2); font-size: 14px; margin-top: 6px; min-height: 42px; }
.price-card .pc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-card .pc-price span { white-space: nowrap; }
.price-card .pc-price b { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.price-card .pc-price span { color: var(--text-3); font-size: 14px; }
.price-card .pc-price small { display: block; width: 100%; color: var(--text-3); font-size: 12.5px; margin-top: 6px; }
.price-card .pc-list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; flex: 1; }
.price-card .pc-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-card .pc-list li .ic { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.price-card .pc-list li.off { color: var(--text-3); }
.price-card .pc-list li.off .ic { color: var(--text-3); }
.price-card .pc-list li b { font-weight: 700; }
.price-card .pc-limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.price-card .pc-limits div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--text-3); }
.price-card .pc-limits div b { display: block; font-size: 15px; color: var(--text); font-family: var(--font-display); font-weight: 600; margin-bottom: 2px; }
.price-card .pc-cur { position: absolute; top: 18px; right: 18px; }

.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-weight: 700; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--text-3); transition: transform var(--d2) var(--ease); flex-shrink: 0; }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--accent); }
.faq .a { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; animation: fade var(--d2); }

.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 64px 40px; background: linear-gradient(135deg, var(--accent-deep), var(--accent) 60%, #ff8a5c); color: #fff; text-align: center; }
.cta-band .h2 { font-size: clamp(26px, 3.5vw, 40px); color: #fff; }
.cta-band p { margin-top: 12px; opacity: .9; font-size: 16px; }
.cta-band .btn { margin-top: 26px; }
.cta-band::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -160px; bottom: -260px; background: rgba(255,255,255,.12); }

.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 40px; }
.auth-side .brand { display: flex; align-items: center; gap: 10px; }
.auth-side .auth-quote { margin: auto 0; max-width: 460px; }
.auth-side .auth-quote .display { font-size: clamp(28px, 3.4vw, 44px); }
.auth-side .auth-quote p { margin-top: 18px; color: var(--text-2); font-size: 16px; }
.auth-side .auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.auth-side .auth-points div { display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 600; }
.auth-side .auth-points .ic { color: var(--accent); }
.auth-side .hero-bg .orb-1 { left: -200px; bottom: -200px; top: auto; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form .h1 { margin-top: 6px; }
.auth-form .lead { font-size: 15px; margin-top: 8px; }
.auth-form form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-form .foot { margin-top: 24px; font-size: 14px; color: var(--text-2); text-align: center; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- smartlink ---------- */
.sl-body { background: #050508; min-height: 100dvh; color: #fff; position: relative; overflow-x: hidden; }
.sl-bg { position: fixed; inset: -40px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4) brightness(.45); z-index: 0; transform: scale(1.15); }
.sl-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,5,8,.2), rgba(5,5,8,.85)); }
.sl { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 40px 20px 60px; animation: page-in var(--d3) var(--ease); }
.sl .cover { width: min(320px, 78vw); margin: 0 auto; border-radius: 22px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.9); animation: pop var(--d3) var(--spring); }
.sl .sl-title { text-align: center; margin-top: 26px; }
.sl .sl-title h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.sl .sl-title h2 { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.7); margin-top: 6px; }
.sl .sl-title .tag { margin-top: 12px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.sl .sl-links { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.sl-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); color: #fff; font-weight: 700; font-size: 15px; transition: all var(--d2) var(--ease); animation: slide-up var(--d3) var(--ease) both; }
.sl-link:hover { background: rgba(255,255,255,.16); transform: translateX(4px); border-color: rgba(255,255,255,.25); }
.sl-link .p-ic { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; background: rgba(255,255,255,.1); display: grid; place-items: center; flex-shrink: 0; font-weight: 800; }
.sl-link .p-ic img { width: 100%; height: 100%; object-fit: cover; }
.sl-link .go { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: #fff; color: #050508; font-size: 12px; font-weight: 800; }
.sl .sl-tracks { margin-top: 28px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.sl .sl-tracks div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.sl .sl-tracks div:last-child { border-bottom: 0; }
.sl .sl-tracks small { color: rgba(255,255,255,.45); font-family: var(--font-mono); font-size: 11px; }
.sl .sl-foot { margin-top: 30px; text-align: center; font-size: 12px; color: rgba(255,255,255,.45); }
.sl .sl-foot a { color: rgba(255,255,255,.7); font-weight: 700; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: .0s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .3s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: .36s; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: .42s; }
.reveal-stagger.is-in > *:nth-child(n+9) { transition-delay: .48s; }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: page-in var(--d3) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
@media print { .sidebar, .topbar, .bottom-nav, .toasts { display: none !important; } .app { grid-template-columns: 1fr; } .content { padding: 0; } }

/* ---------- дополнения компонентов ---------- */
.release-card { display: flex; flex-direction: column; overflow: hidden; }
.release-card .release-card-cover { width: 100%; border-radius: 0; aspect-ratio: 1/1; }
.release-card .card-body { padding: 14px 16px 16px; }
.release-card:hover .release-card-cover img { transform: scale(1.04); }
.release-card .release-card-cover img { transition: transform var(--d3) var(--ease); }

.qr { width: 148px; height: 148px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 8px; flex-shrink: 0; box-shadow: var(--shadow-1); }
.qr svg { width: 100%; height: 100%; border-radius: 8px; }
.qr:not(.is-ready) { background: var(--surface-3); }

.drop .drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop.square .drop-empty { position: absolute; inset: 0; justify-content: center; padding: 16px; text-align: center; }
.drop.square img { position: absolute; inset: 0; }

[data-sortable] [data-sort-item] { transition: box-shadow var(--d1), opacity var(--d1); }
[data-sortable] [data-sort-item].is-dragging { opacity: .5; box-shadow: var(--shadow-2); }
[data-sort-handle] { cursor: grab; color: var(--text-3); }
[data-sort-handle]:active { cursor: grabbing; }

.check.start { align-items: flex-start; }
.check.start .box { margin-top: 1px; }
.new-track { animation: slide-up var(--d3) var(--ease); }
.app.is-collapsed .nav-item[data-tip-collapsed] { position: relative; }
.app.is-collapsed .nav-item[data-tip-collapsed]::after { content: attr(data-tip-collapsed); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(-4px); background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all var(--d1) var(--ease); z-index: 60; }
.app.is-collapsed .nav-item[data-tip-collapsed]:hover::after { opacity: 1; transform: translateY(-50%); }
.stepper .step { background: none; border: 0; font: inherit; }
details > summary { cursor: pointer; }
.wizard-step .card + .card { margin-top: 16px; }
