/* ═══════════════════════════════════════════════════════
   ETAP 96 — Дизайн-система: токени (повна система)
   Колір → Типографіка → Відступи → Тіні → Анімація
   ═══════════════════════════════════════════════════════ */
:root {
    /* ─── Шрифти (стандарт VSOC 2.0: DM Sans + Space Grotesk, ETAP 153+) ── */
    --vsoc-font-sans: "DM Sans", "Segoe UI", sans-serif;
    --vsoc-font-display: "Space Grotesk", "DM Sans", sans-serif;
    --vsoc-font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    /* ─── Типографіка: масштаб розмірів ──────────────── */
    --vsoc-text-xs: 0.72rem;
    --vsoc-text-sm: 0.78rem;
    --vsoc-text-base: 0.875rem;
    --vsoc-text-md: 0.9rem;
    --vsoc-text-lg: 1rem;
    --vsoc-text-xl: 1.125rem;
    --vsoc-text-2xl: 1.35rem;

    /* ─── Типографіка: насиченість ───────────────────── */
    --vsoc-weight-regular: 400;
    --vsoc-weight-medium: 500;
    --vsoc-weight-semibold: 600;
    --vsoc-weight-bold: 700;
    --vsoc-weight-extrabold: 800;

    /* ─── Типографіка: висота рядка ──────────────────── */
    --vsoc-leading-tight: 1.2;
    --vsoc-leading-snug: 1.35;
    --vsoc-leading-normal: 1.5;
    --vsoc-leading-relaxed: 1.65;

    /* ─── Колір: фон ─────────────────────────────────── */
    --vsoc-bg-a: #f4f9ff;
    --vsoc-bg-b: #edf2ff;
    --vsoc-halo-left: rgba(15, 111, 255, 0.16);
    --vsoc-halo-right: rgba(14, 165, 233, 0.13);
    --vsoc-line: #d9e3f0;
    --vsoc-line-strong: #c9d8ea;
    --vsoc-panel: rgba(255, 255, 255, 0.94);
    --vsoc-panel-strong: rgba(255, 255, 255, 0.98);

    /* ─── Колір: текст ───────────────────────────────── */
    --vsoc-ink-1: #0f172a;
    --vsoc-ink-2: #334155;
    --vsoc-ink-3: #64748b;

    /* ─── Колір: primary ─────────────────────────────── */
    --vsoc-primary: #0f6fff;
    --vsoc-primary-strong: #0e4dd4;
    --vsoc-primary-soft: rgba(15, 111, 255, 0.12);

    /* ─── Колір: семантичні стани ─────────────────────── */
    --vsoc-ok: #0f9d73;
    --vsoc-ok-bg: rgba(15, 157, 115, 0.08);
    --vsoc-warn: #f59f0b;
    --vsoc-warn-bg: rgba(245, 159, 11, 0.08);
    --vsoc-danger: #e03131;
    --vsoc-danger-bg: rgba(224, 49, 49, 0.08);
    --vsoc-info: #0369a1;
    --vsoc-info-bg: rgba(3, 105, 161, 0.08);

    /* ─── Геометрія: радіус ──────────────────────────── */
    --vsoc-radius-lg: 1.05rem;
    --vsoc-radius-md: 0.8rem;
    --vsoc-radius-sm: 0.72rem;
    --vsoc-radius-xs: 0.4rem;
    --vsoc-radius-pill: 999px;

    /* ─── Тіні: рівні елевації ───────────────────────── */
    --vsoc-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --vsoc-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --vsoc-shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.12);

    /* ─── Відступи: 4pt-сітка ────────────────────────── */
    --vsoc-space-1: 0.25rem;
    --vsoc-space-2: 0.5rem;
    --vsoc-space-3: 0.75rem;
    --vsoc-space-4: 1rem;
    --vsoc-space-5: 1.25rem;
    --vsoc-space-6: 1.5rem;
    --vsoc-space-8: 2rem;

    /* ─── Анімація: контекстна система (TZ canonical, ETAP 184) ── */
    --vsoc-transition-ops: 100ms ease-out;        /* оперативний: hover, SSE update */
    --vsoc-transition-base: 250ms ease-in-out;    /* стандарт: відкриття/закриття */
    --vsoc-transition-research: 400ms ease;       /* research mode: аналітичний drill-down */
    --vsoc-transition-alert: 100ms;               /* red-alert: різко! без ease */
    --vsoc-transition-studio: 800ms ease-in-out;  /* studio splash + трансформація */
    /* застарілі аліаси (зворотна сумісність) */
    --vsoc-transition-fast: 150ms ease-out;
    --vsoc-transition-slow: 400ms ease-out;

    /* ─── TZ Adaptive canvas: overlay стани (не базова тема) ─ */
    /* База — Light (#f4f9ff). Ці кольори накладаються на стан */
    --vsoc-canvas-monitor: #0F1923;          /* спокійний моніторинг */
    --vsoc-canvas-alert: #1A1523;            /* активна тривога */
    --vsoc-canvas-alert-tint: rgba(220,38,38,0.04); /* підтон тривоги */
    --vsoc-canvas-success: #0F1F1A;          /* успішні публікації */
    --vsoc-canvas-night: #080E15;            /* нічний режим (авто) */

    /* ─── TZ Sidebar dark layer (ETAP 183) ──────────── */
    --vsoc-side-bg: #0F1923;
    --vsoc-side-ink: #CBD5E1;
    --vsoc-side-hover: #1E293B;
    --vsoc-side-active-bg: rgba(15,111,255,0.15);
    --vsoc-side-active-ink: #FFFFFF;
    --vsoc-side-group: #64748B;
    --vsoc-side-line: #1E293B;

    /* ─── TZ TOP-BAR ─────────────────────────────────── */
    --vsoc-topbar-bg: rgba(15,25,35,0.95);

    /* ─── TZ Paywall кольори ─────────────────────────── */
    --vsoc-paywall-blue: #3B82F6;
    --vsoc-paywall-starter: #6B7280;
    --vsoc-paywall-biz: #F59E0B;

    /* ─── TZ Dashboard треки ─────────────────────────── */
    --vsoc-track-attention: #EF4444;
    --vsoc-track-info: #3B82F6;
    --bg-a: var(--vsoc-bg-a);
    --bg-b: var(--vsoc-bg-b);
    --halo-left: var(--vsoc-halo-left);
    --halo-right: var(--vsoc-halo-right);
    --line: var(--vsoc-line);
    --panel: var(--vsoc-panel);
    --panel-strong: var(--vsoc-panel-strong);
    --ink-1: var(--vsoc-ink-1);
    --ink-2: var(--vsoc-ink-2);
    --ink-3: var(--vsoc-ink-3);
    --primary: var(--vsoc-primary);
    --primary-soft: var(--vsoc-primary-soft);
    --ok: var(--vsoc-ok);
    --warn: var(--vsoc-warn);
    --danger: var(--vsoc-danger);
    --radius-lg: var(--vsoc-radius-lg);
    --radius-md: var(--vsoc-radius-md);
    --shadow: var(--vsoc-shadow);
    --bs-body-font-family: var(--vsoc-font-sans);
    --bs-primary: var(--vsoc-primary);
    --bs-primary-rgb: 15, 111, 255;
    --bs-border-color: var(--vsoc-line);
    --bs-body-color: var(--vsoc-ink-1);
    --bs-secondary-color: var(--vsoc-ink-3);

    /* ─── Landing aliases: --lp-* → --vsoc-* (ETAP 150) ─ */
    /* Дозволяє landing.html не дублювати значення           */
    --lp-blue: #1e40af;
    --lp-blue-light: #3b82f6;
    --lp-teal: #0d9488;
    --lp-ink: var(--vsoc-ink-1);
    --lp-muted: #475569;
    --lp-border: #e2e8f0;
    --lp-surface: #f8fafc;
}

html,
body {
    min-height: 100%;
}

/* FOUC-prevention: data-preload-theme застосовується через JS до завантаження body */
html[data-preload-theme="midnight"] body { --vsoc-primary:#6366f1; --vsoc-primary-strong:#4f46e5; --vsoc-bg-a:#0f172a; --vsoc-bg-b:#1e293b; }
html[data-preload-theme="slate"]    body { --vsoc-primary:#475569; --vsoc-primary-strong:#334155; --vsoc-bg-a:#f8fafc; --vsoc-bg-b:#f1f5f9; }
html[data-preload-theme="forest"]   body { --vsoc-primary:#059669; --vsoc-primary-strong:#047857; --vsoc-bg-a:#f0fdf4; --vsoc-bg-b:#ecfdf5; }
html[data-preload-theme="sunset"]   body { --vsoc-primary:#d97706; --vsoc-primary-strong:#b45309; --vsoc-bg-a:#fffbeb; --vsoc-bg-b:#fef3c7; }

body.vsoc-screen {
    font-family: var(--vsoc-font-sans);
    color: var(--ink-1);
    min-height: 100vh;
    background:
        radial-gradient(1200px 560px at 2% -10%, var(--halo-left), transparent 62%),
        radial-gradient(1020px 560px at 98% -16%, var(--halo-right), transparent 58%),
        linear-gradient(180deg, var(--bg-a), var(--bg-b));
}

body.vsoc-screen--landing,
body.vsoc-screen--auth {
    background:
        radial-gradient(1280px 620px at 6% -14%, rgba(15, 111, 255, 0.2), transparent 60%),
        radial-gradient(980px 540px at 100% -12%, rgba(14, 165, 233, 0.16), transparent 58%),
        linear-gradient(180deg, #f7fbff, #edf3ff);
}

body.vsoc-screen::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image:
        linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(12, 76, 150, 0.06) 100%),
        linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), rgba(12, 76, 150, 0.05) 100%);
    background-size: 80px 80px;
    mix-blend-mode: soft-light;
}

body.vsoc-screen > * {
    position: relative;
    z-index: 1;
}

.vsoc-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.vsoc-panel-strong {
    background: var(--panel-strong);
}

.vsoc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 7%, white);
    color: color-mix(in srgb, var(--primary) 78%, #0f172a);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.34rem 0.62rem;
}

.vsoc-display-title,
.vsoc-screen .vsoc-display-title {
    font-family: var(--vsoc-font-display);
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--ink-1);
}

.vsoc-subtle {
    color: var(--ink-3);
}

.vsoc-screen .btn {
    border-radius: var(--vsoc-radius-sm);
    font-weight: 700;
}

.vsoc-screen .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--vsoc-primary-strong));
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(15, 79, 215, 0.2);
}

.vsoc-screen .btn-primary:hover,
.vsoc-screen .btn-primary:focus {
    background: linear-gradient(135deg, #0a66f1, #0d45bf);
    border-color: #0a66f1;
}

.vsoc-screen .btn-outline-secondary,
.vsoc-screen .btn-outline-primary,
.vsoc-screen .btn-outline-danger {
    background: rgba(255, 255, 255, 0.78);
}

.vsoc-screen .form-control,
.vsoc-screen .form-select {
    border-radius: var(--vsoc-radius-sm);
    border-color: var(--vsoc-line-strong);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink-1);
}

.vsoc-screen .form-control:focus,
.vsoc-screen .form-select:focus {
    border-color: color-mix(in srgb, var(--primary) 50%, white);
    box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--primary) 12%, transparent);
}

.vsoc-screen .form-label,
.vsoc-screen .form-text {
    color: var(--ink-2);
}

.vsoc-screen .card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    box-shadow: 0 8px 24px rgba(12, 33, 68, 0.05);
}

.vsoc-screen .table-responsive {
    border-radius: calc(var(--radius-md) - 0.04rem);
}

.vsoc-screen .table thead th {
    background: color-mix(in srgb, var(--primary) 4%, white);
    color: var(--ink-2);
}

.vsoc-screen .nav-tabs .nav-link,
.vsoc-screen .nav-pills .nav-link {
    border-radius: 0.8rem;
    font-weight: 700;
}

.vsoc-screen .nav-tabs .nav-link.active,
.vsoc-screen .nav-pills .nav-link.active {
    box-shadow: 0 8px 18px rgba(15, 79, 215, 0.18);
}

.vsoc-screen .alert {
    border-radius: var(--vsoc-radius-sm);
    border-width: 1px;
}

.vsoc-screen .badge {
    font-weight: 700;
}

.vsoc-code,
.vsoc-screen code,
.vsoc-screen pre {
    font-family: var(--vsoc-font-mono);
}

.vsoc-code {
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.65rem;
    max-height: 260px;
    overflow: auto;
}

.vsoc-screen--dashboard .section-head.vsoc-section-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, white);
}

.vsoc-screen--dashboard .section-head.vsoc-section-head h5 {
    margin: 0;
    font-family: var(--vsoc-font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    letter-spacing: -0.02em;
}

.vsoc-screen--dashboard .helper-grid.vsoc-helper-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.vsoc-screen--dashboard .helper-card.vsoc-helper-card {
    padding: 0.58rem 0.64rem;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--line));
    border-radius: calc(var(--radius-md) + 0.08rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.98)),
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 65%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.vsoc-screen--dashboard .helper-card.vsoc-helper-card .kicker.vsoc-kicker {
    margin-bottom: 0.65rem;
}

.vsoc-screen--dashboard .helper-card.vsoc-helper-card .line {
    margin-top: 0.16rem;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-2);
}

.vsoc-screen--dashboard .helper-card.vsoc-helper-card .line strong {
    color: var(--ink-1);
}

.vsoc-screen--dashboard .row.vsoc-filter-bar {
    margin-left: 0;
    margin-right: 0;
    padding: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--line));
    border-radius: calc(var(--radius-md) + 0.02rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.vsoc-screen--dashboard .row.vsoc-filter-bar > [class*="col-"] {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.vsoc-screen--dashboard .vsoc-subnav {
    padding: 0.38rem;
    border: 1px solid color-mix(in srgb, var(--primary) 10%, var(--line));
    border-radius: calc(var(--radius-md) + 0.02rem);
    background: rgba(255, 255, 255, 0.78);
    gap: 0.35rem;
}

.vsoc-screen--dashboard .vsoc-subnav .nav-link {
    color: var(--ink-2);
    border: 1px solid transparent;
}

.vsoc-screen--dashboard .vsoc-subnav .nav-link:hover {
    color: var(--ink-1);
    background: color-mix(in srgb, var(--primary) 7%, white);
    border-color: color-mix(in srgb, var(--primary) 12%, var(--line));
}

.vsoc-screen--dashboard .card-header {
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, var(--line));
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.98));
    color: var(--ink-2);
    font-weight: 800;
}

.vsoc-screen--dashboard .metric-card.vsoc-metric-card {
    border: 1px solid color-mix(in srgb, var(--primary) 10%, var(--line));
    border-radius: 0.76rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.98));
    padding: 0.58rem 0.66rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.vsoc-screen--dashboard .metric-card.vsoc-metric-card .k {
    margin-bottom: 0.16rem;
    color: var(--ink-3);
    font-size: 0.74rem;
    font-weight: 700;
}

.vsoc-screen--dashboard .metric-card.vsoc-metric-card .v {
    color: #163b6e;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.vsoc-screen--dashboard .vsoc-status-panel {
    border-radius: calc(var(--radius-md) - 0.02rem);
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 255, 0.98));
}

.vsoc-screen--dashboard .vsoc-status-panel > div {
    padding: 0.1rem 0;
    color: var(--ink-2);
}

.vsoc-screen--dashboard .table-responsive.vsoc-table-shell {
    border: 1px solid color-mix(in srgb, var(--primary) 8%, var(--line));
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
    body.vsoc-screen::before {
        opacity: 0.12;
        background-size: 56px 56px;
    }
}

/* ═══════════════════════════════════════════════════════
   ETAP 95 — Доступність та якість UX (WCAG AA)
   P1: Focus rings, skip-link, reduced-motion
   P2: Стан завантаження кнопки, мінімальний розмір цілі
   P3: CLS-захист для динамічного контенту
   ═══════════════════════════════════════════════════════ */

/* P1: Видимі focus rings для клавіатурної навігації */
:focus-visible {
    outline: 2px solid var(--vsoc-primary);
    outline-offset: 2px;
}

.vsoc-screen .btn:focus-visible {
    outline: 2px solid var(--vsoc-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(15, 111, 255, 0.18);
}

.vsoc-screen a:focus-visible,
.vsoc-screen .nav-link:focus-visible,
.vsoc-screen .nav-link-ws:focus-visible {
    outline: 2px solid var(--vsoc-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* P1: Skip-link (перехід до основного вмісту) для клавіатурних користувачів */
.vsoc-skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: var(--vsoc-space-2) var(--vsoc-space-4);
    background: var(--vsoc-primary);
    color: #fff;
    font-weight: var(--vsoc-weight-bold);
    text-decoration: none;
    border-radius: 0 0 var(--vsoc-radius-xs) 0;
    transition: top var(--vsoc-transition-fast);
}

.vsoc-skip-link:focus {
    top: 0;
    color: #fff;
}

/* P2: Стан завантаження кнопки (btn-loading) — запобігає подвійному надсиланню */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: "";
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-left: 0.45em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: vsoc-spin 0.65s linear infinite;
    vertical-align: -0.1em;
}

@keyframes vsoc-spin {
    to { transform: rotate(360deg); }
}

/* P2: Мінімальний розмір торкальних цілей 44px для інтерактивних елементів */
.vsoc-screen .btn {
    min-height: 36px;
}

.vsoc-screen .btn-sm {
    min-height: 30px;
}

/* P1: Повага до prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn-loading::after {
        animation: none;
        content: "…";
        width: auto;
        height: auto;
        border: none;
        margin-left: 0.25em;
    }
}

/* P3: CLS-захист — резервування місця для динамічного контенту метрик */
.vsoc-metric-card .v,
.vsoc-screen .metric-value {
    min-height: 1.4em;
}

/* P3: CLS-захист — зображення без оголошених розмірів */
.vsoc-screen img:not([width]):not([height]) {
    aspect-ratio: 16 / 9;
}

/* P8: Помітне позначення обов'язкових полів */
.vsoc-screen .form-label.required::after {
    content: " *";
    color: var(--vsoc-danger);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   ETAP 98 — Toast-система та мікровзаємодії
   P7 Animation + P8 Forms/Feedback (ui-ux-pro-max)
   ═══════════════════════════════════════════════════════ */

/* P1: Aria-live регіон для тостів (screen readers) */
.vsoc-toast-region {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    pointer-events: none;
    max-width: 360px;
}

/* P7: базовий тост — transform+opacity лише (без width/height) */
.vsoc-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--vsoc-radius-sm);
    border: 1px solid transparent;
    background: var(--vsoc-panel-strong);
    box-shadow: var(--vsoc-shadow-lg);
    font-size: var(--vsoc-text-sm);
    font-weight: var(--vsoc-weight-medium);
    color: var(--vsoc-ink-1);
    min-width: 220px;
    max-width: 360px;
    /* P7: enter ease-out 250ms = --vsoc-transition-base */
    opacity: 0;
    transform: translateY(0.5rem) scale(0.97);
    transition: opacity var(--vsoc-transition-base), transform var(--vsoc-transition-base);
}

.vsoc-toast.vsoc-toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* P7: exit ease-in 150ms = --vsoc-transition-fast (швидший ніж enter) */
.vsoc-toast.vsoc-toast--exit {
    opacity: 0;
    transform: translateY(0.3rem) scale(0.96);
    transition: opacity var(--vsoc-transition-fast), transform var(--vsoc-transition-fast);
}

/* Варіанти типів */
.vsoc-toast--ok {
    border-color: var(--vsoc-ok);
    background: color-mix(in srgb, var(--vsoc-ok-bg) 80%, var(--vsoc-panel-strong));
}

.vsoc-toast--ok .vsoc-toast-icon { color: var(--vsoc-ok); }

.vsoc-toast--warn {
    border-color: var(--vsoc-warn);
    background: color-mix(in srgb, var(--vsoc-warn-bg) 80%, var(--vsoc-panel-strong));
}

.vsoc-toast--warn .vsoc-toast-icon { color: var(--vsoc-warn); }

.vsoc-toast--danger {
    border-color: var(--vsoc-danger);
    background: color-mix(in srgb, var(--vsoc-danger-bg) 80%, var(--vsoc-panel-strong));
}

.vsoc-toast--danger .vsoc-toast-icon { color: var(--vsoc-danger); }

.vsoc-toast--info {
    border-color: var(--vsoc-info);
    background: color-mix(in srgb, var(--vsoc-info-bg) 80%, var(--vsoc-panel-strong));
}

.vsoc-toast--info .vsoc-toast-icon { color: var(--vsoc-info); }

.vsoc-toast-icon {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 0.05em;
}

.vsoc-toast-body {
    flex: 1;
    line-height: var(--vsoc-leading-snug);
}

.vsoc-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--vsoc-ink-3);
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--vsoc-transition-fast);
}

.vsoc-toast-close:hover { opacity: 1; }

/* P7: reduced-motion — без анімації для тостів */
@media (prefers-reduced-motion: reduce) {
    .vsoc-toast,
    .vsoc-toast.vsoc-toast--exit {
        transition: none !important;
        transform: none !important;
    }
}

/* ─── ETAP 99: CSS теми інтерфейсу ──────────────────────────────���─────────── */

/* Midnight — темно-індіго, нічний режим */
body.theme-midnight {
    --vsoc-primary:        #6366f1;
    --vsoc-primary-strong: #4f46e5;
    --vsoc-primary-soft:   rgba(99, 102, 241, 0.15);
    --vsoc-bg-a:           #0f172a;
    --vsoc-bg-b:           #1e293b;
    --vsoc-halo-left:      rgba(99, 102, 241, 0.18);
    --vsoc-halo-right:     rgba(79, 70, 229, 0.12);
    --vsoc-ink-1:          #f1f5f9;
    --vsoc-ink-2:          #cbd5e1;
    --vsoc-ink-3:          #94a3b8;
    --primary:             var(--vsoc-primary);
    --primary-soft:        var(--vsoc-primary-soft);
    --bs-primary:          var(--vsoc-primary);
    color-scheme: dark;
}

/* Slate — мінімалістичний сірий */
body.theme-slate {
    --vsoc-primary:        #475569;
    --vsoc-primary-strong: #334155;
    --vsoc-primary-soft:   rgba(71, 85, 105, 0.12);
    --vsoc-bg-a:           #f8fafc;
    --vsoc-bg-b:           #f1f5f9;
    --vsoc-halo-left:      rgba(71, 85, 105, 0.10);
    --vsoc-halo-right:     rgba(51, 65, 85, 0.08);
    --primary:             var(--vsoc-primary);
    --primary-soft:        var(--vsoc-primary-soft);
    --bs-primary:          var(--vsoc-primary);
}

/* Forest — зелений для аналітики */
body.theme-forest {
    --vsoc-primary:        #059669;
    --vsoc-primary-strong: #047857;
    --vsoc-primary-soft:   rgba(5, 150, 105, 0.12);
    --vsoc-bg-a:           #f0fdf4;
    --vsoc-bg-b:           #ecfdf5;
    --vsoc-halo-left:      rgba(5, 150, 105, 0.14);
    --vsoc-halo-right:     rgba(4, 120, 87, 0.10);
    --primary:             var(--vsoc-primary);
    --primary-soft:        var(--vsoc-primary-soft);
    --bs-primary:          var(--vsoc-primary);
}

/* Sunset — теплий бурштиновий */
body.theme-sunset {
    --vsoc-primary:        #d97706;
    --vsoc-primary-strong: #b45309;
    --vsoc-primary-soft:   rgba(217, 119, 6, 0.12);
    --vsoc-bg-a:           #fffbeb;
    --vsoc-bg-b:           #fef3c7;
    --vsoc-halo-left:      rgba(217, 119, 6, 0.16);
    --vsoc-halo-right:     rgba(180, 83, 9, 0.10);
    --primary:             var(--vsoc-primary);
    --primary-soft:        var(--vsoc-primary-soft);
    --bs-primary:          var(--vsoc-primary);
}

/* Картки вибору теми у налаштуваннях */
.vsoc-theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--vsoc-border, #e2e8f0);
    border-radius: var(--vsoc-radius-md, 8px);
    cursor: pointer;
    transition: border-color var(--vsoc-transition-fast), box-shadow var(--vsoc-transition-fast);
    background: var(--vsoc-bg-b, #f8fafc);
    min-width: 100px;
}
.vsoc-theme-card:hover {
    border-color: var(--vsoc-primary);
    box-shadow: 0 0 0 3px var(--vsoc-primary-soft);
}
.vsoc-theme-card.vsoc-theme-card--active {
    border-color: var(--vsoc-primary);
    background: var(--vsoc-primary-soft);
}
.vsoc-theme-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}
.vsoc-theme-name {
    font-size: 0.8rem;
    font-weight: var(--vsoc-weight-medium, 500);
    color: var(--vsoc-ink-2, #475569);
    white-space: nowrap;
}

/* === ETAP 185: Sidebar TZ-canonical dark scheme (#0F1923) === */
.vsoc-sidebar {
    background: var(--vsoc-side-bg, #0F1923) !important;
    border-right: 1px solid var(--vsoc-side-line, #1E293B);
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.vsoc-sidebar .brand-title,
.vsoc-sidebar .brand-title a {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.vsoc-sidebar .brand-sub {
    color: #94A3B8 !important;
}

.vsoc-sidebar .nav-group-label {
    color: var(--vsoc-side-group, #64748B) !important;
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    padding: 0.7rem 0.6rem 0.2rem;
    margin-top: 0.5rem;
}

.vsoc-sidebar .dashboard-nav .nav-link-ws {
    border: 1px solid transparent !important;
    border-radius: 0.55rem !important;
    background: transparent !important;
    color: var(--vsoc-side-ink, #CBD5E1) !important;
    box-shadow: none !important;
}

.vsoc-sidebar .dashboard-nav .nav-link-ws .mini {
    color: #64748B !important;
}

.vsoc-sidebar .dashboard-nav .nav-link-ws .nav-icon {
    color: var(--vsoc-side-ink, #CBD5E1);
    opacity: 0.65;
}

.vsoc-sidebar .dashboard-nav .nav-link-ws:hover {
    border-color: transparent !important;
    background: var(--vsoc-side-hover, #1E293B) !important;
    color: #FFFFFF !important;
    transform: none !important;
    box-shadow: none !important;
}

.vsoc-sidebar .dashboard-nav .nav-link-ws:hover .nav-icon {
    opacity: 1;
}

.vsoc-sidebar .dashboard-nav .nav-link-ws.active,
.vsoc-sidebar .dashboard-nav .nav-link-ws[aria-current="page"] {
    background: var(--vsoc-side-active-bg, rgba(15,111,255,0.15)) !important;
    color: var(--vsoc-side-active-ink, #FFFFFF) !important;
    border-left: 3px solid var(--vsoc-primary, #0f6fff) !important;
    border-radius: 0 0.55rem 0.55rem 0 !important;
    box-shadow: none !important;
}

.vsoc-sidebar .dashboard-nav .nav-link-ws.active .mini,
.vsoc-sidebar .dashboard-nav .nav-link-ws[aria-current="page"] .mini {
    color: rgba(255,255,255,0.65) !important;
}

.vsoc-sidebar .dashboard-nav .nav-link-ws.active .nav-icon,
.vsoc-sidebar .dashboard-nav .nav-link-ws[aria-current="page"] .nav-icon {
    opacity: 1 !important;
}

/* Чіпи ідентифікації на темному тлі */
.vsoc-sidebar .chip {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: var(--vsoc-side-ink, #CBD5E1) !important;
}

/* Кнопка виходу на темному тлі */
.vsoc-sidebar .btn-outline-secondary {
    color: #94A3B8 !important;
    border-color: #1E293B !important;
}

.vsoc-sidebar .btn-outline-secondary:hover {
    background: #1E293B !important;
    color: #FFFFFF !important;
}

/* Paywall lock у навігації */
.nav-paywall-lock {
    margin-left: auto;
    width: 14px;
    height: 14px;
    opacity: 0.65;
    flex-shrink: 0;
}

.nav-paywall-lock--pro {
    color: var(--vsoc-paywall-blue, #3B82F6);
    opacity: 1;
}

/* ETAP 189: Admin nav link — виокремлення для main_admin/owner */
.vsoc-sidebar .dashboard-nav .nav-link-ws--admin {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 4px;
    padding-top: 10px;
    color: var(--vsoc-warn, #F59E0B);
}
.vsoc-sidebar .dashboard-nav .nav-link-ws--admin .nav-icon {
    color: var(--vsoc-warn, #F59E0B);
}
.vsoc-sidebar .dashboard-nav .nav-link-ws--admin:hover {
    background: rgba(245,158,11,0.08);
    color: #FCD34D;
}

/* TOP-BAR: trial countdown */
.topbar-trial-cd {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.07);
    color: var(--vsoc-ink-2, #8ba3c1);
    border: 1px solid rgba(255,255,255,0.1);
}

.topbar-trial-cd--urgent {
    color: #EF4444;
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.08);
    animation: trial-pulse 1s ease-in-out infinite;
}

.topbar-trial-cd--warn {
    color: #F59E0B;
    border-color: rgba(245,158,11,0.3);
    background: rgba(245,158,11,0.08);
    animation: trial-pulse 2s ease-in-out infinite;
}

@keyframes trial-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* === ETAP 188: Mobile hamburger menu (< 1024px) === */

/* Кнопка-гамбургер: прихована на десктопі */
.vsoc-hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 60;
    width: 44px;
    height: 44px;
    background: var(--vsoc-side-bg, #0F1923);
    border: 1px solid var(--vsoc-side-line, #1E293B);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    transition: background 150ms ease;
}

.vsoc-hamburger:hover,
.vsoc-hamburger:focus-visible {
    background: var(--vsoc-side-hover, #1E293B);
    outline: 2px solid var(--vsoc-primary, #0f6fff);
    outline-offset: 2px;
}

.vsoc-hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--vsoc-side-ink, #CBD5E1);
    border-radius: 2px;
    transition: transform 220ms ease, opacity 220ms ease;
}

/* Анімація X при відкритому стані */
body.vsoc-sidebar-open .vsoc-hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.vsoc-sidebar-open .vsoc-hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.vsoc-sidebar-open .vsoc-hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop (шторка) */
.vsoc-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}

/* Mobile breakpoint */
@media (max-width: 1023px) {
    .vsoc-hamburger {
        display: flex;
    }

    /* Sidebar: ховається за лівим краєм */
    .side-rail {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100dvh !important;
        z-index: 40 !important;
        transform: translateX(-100%) !important;
        transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    /* Sidebar: відкрито */
    body.vsoc-sidebar-open .side-rail {
        transform: translateX(0) !important;
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.45) !important;
    }

    /* Backdrop: показується при відкритому sidebar */
    body.vsoc-sidebar-open .vsoc-sidebar-backdrop {
        display: block;
    }

    /* Основний контент: повна ширина на мобільному */
    .vsoc-main-content,
    .ws-main {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* TOP-BAR: відступ зліва під кнопку гамбургера */
    .vsoc-topbar {
        padding-left: 62px !important;
    }
}

/* Без анімацій (accessibility) */
@media (prefers-reduced-motion: reduce) {
    .side-rail,
    .vsoc-hamburger-bar {
        transition: none !important;
    }
}

/* ===== Guide Center: Intelligence-Platform Visual (ETAP 161.3) ===== */

/* Анімації */
@keyframes guide-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.55; transform: scale(1.35); }
}
@keyframes guide-glow-in {
    from { opacity: 0; box-shadow: 0 0 0 rgba(37, 99, 235, 0); }
    to   { opacity: 1; box-shadow: 0 0 18px rgba(37, 99, 235, 0.22); }
}

/* Hero-panel з gradient і glow-border */
.guide-hero-panel {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--vsoc-radius, 12px);
    padding: 20px 24px;
    position: relative;
    animation: guide-glow-in 0.4s ease-out;
}
.guide-hero-panel h4, .guide-hero-panel h5 {
    color: var(--vsoc-text, #0f1923);
    font-weight: 700;
}

/* TOC sticky sidebar */
.guide-toc {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.guide-toc-link {
    display: block;
    padding: 5px 10px;
    border-radius: 7px;
    color: var(--vsoc-muted, #5b6a84);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 180ms, color 180ms;
}
.guide-toc-link:hover,
.guide-toc-link.active {
    background: rgba(37, 99, 235, 0.09);
    color: #2563EB;
    text-decoration: none;
}

/* Блок-картки (blocks grid) */
.guide-block-card {
    border: 1px solid var(--vsoc-border, #e2e8f0);
    border-radius: var(--vsoc-radius, 12px);
    background: var(--vsoc-card-bg, #fff);
    transition: box-shadow 200ms, border-color 200ms, transform 200ms;
    cursor: pointer;
    overflow: hidden;
}
.guide-block-card:hover {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25), 0 8px 24px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}
.guide-block-card:active {
    transform: scale(0.97);
}
.guide-block-card .guide-block-icon {
    font-size: 28px;
    color: #2563EB;
    margin-bottom: 8px;
}
.guide-block-card .guide-block-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--vsoc-text, #0f1923);
    margin-bottom: 4px;
}
.guide-block-card .guide-block-desc {
    font-size: 13px;
    color: var(--vsoc-muted, #5b6a84);
    line-height: 1.45;
}

/* Scenario rows */
.guide-scenario-row {
    border-left: 3px solid transparent;
    transition: background 160ms, border-color 160ms;
    cursor: pointer;
}
.guide-scenario-row:hover {
    background: rgba(37, 99, 235, 0.05) !important;
    border-left-color: #2563EB;
}
.guide-scenario-row:active {
    transform: scale(0.99);
}
.guide-scenario-id {
    min-width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Step cards (quick-start / scenario detail) */
.guide-step-card {
    border: 1px solid var(--vsoc-border, #e2e8f0);
    border-radius: var(--vsoc-radius, 12px);
    background: var(--vsoc-card-bg, #fff);
    transition: box-shadow 200ms, border-color 200ms;
    position: relative;
}
.guide-step-card::before {
    content: attr(data-step-num);
    position: absolute;
    top: 16px;
    left: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563EB;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.guide-step-card.completed::before {
    background: #059669;
    content: "✓";
}
.guide-step-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}
.guide-step-flow {
    position: relative;
    padding-left: 24px;
}
.guide-step-flow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, #2563EB 0%, rgba(37, 99, 235, 0.15) 100%);
    border-radius: 1px;
}

/* KPI / Stat картки */
.guide-kpi-card {
    border: 1px solid var(--vsoc-border, #e2e8f0);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--vsoc-card-bg, #fff);
    transition: box-shadow 180ms;
}
.guide-kpi-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.guide-kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vsoc-muted, #5b6a84);
}
.guide-kpi-value {
    font-size: 20px;
    font-weight: 800;
    color: #2563EB;
    margin-top: 2px;
}

/* Status dots з pulse */
.guide-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.guide-status-dot--ok {
    background: #059669;
    animation: guide-pulse 2.5s infinite;
}
.guide-status-dot--warn {
    background: #D97706;
    animation: guide-pulse 2s infinite;
}
.guide-status-dot--danger {
    background: #DC2626;
    animation: guide-pulse 1.5s infinite;
}

/* Tip / Info blocks */
.guide-tip {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    border-left: 3px solid;
}
.guide-tip--info  { background: rgba(37, 99, 235, 0.06);  border-color: #2563EB;  color: #1e3a8a; }
.guide-tip--warn  { background: rgba(217, 119, 6, 0.07);  border-color: #D97706;  color: #78350f; }
.guide-tip--ok    { background: rgba(5, 150, 105, 0.07);  border-color: #059669;  color: #064e3b; }
.guide-tip--danger{ background: rgba(220, 38, 38, 0.06);  border-color: #DC2626;  color: #7f1d1d; }

/* Quick nav grid (guide.html jump-cards) */
.guide-quick-nav-card {
    display: block;
    text-decoration: none;
    padding: 12px 14px;
    border: 1px solid var(--vsoc-border, #e2e8f0);
    border-radius: var(--vsoc-radius, 12px);
    background: var(--vsoc-card-bg, #fff);
    color: var(--vsoc-text, #0f1923);
    transition: box-shadow 200ms, border-color 200ms, background 200ms;
    cursor: pointer;
}
.guide-quick-nav-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12), 0 4px 14px rgba(37, 99, 235, 0.1);
    background: rgba(37, 99, 235, 0.03);
    color: #2563EB;
    text-decoration: none;
}
.guide-quick-nav-card .g-title {
    font-size: 13px;
    font-weight: 700;
}
.guide-quick-nav-card .g-desc {
    font-size: 12px;
    color: var(--vsoc-muted, #5b6a84);
    margin-top: 3px;
    line-height: 1.35;
}

/* Glass panel (backdrop-filter) */
.guide-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Progress bar animated */
.guide-progress-bar {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563EB 0%, #22C55E 100%);
    transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* prefers-reduced-motion: вимкнути всі guide-анімації */
@media (prefers-reduced-motion: reduce) {
    .guide-status-dot--ok,
    .guide-status-dot--warn,
    .guide-status-dot--danger { animation: none; }
    .guide-block-card,
    .guide-scenario-row,
    .guide-step-card,
    .guide-quick-nav-card { transition: none !important; transform: none !important; }
    .guide-hero-panel { animation: none; }
}

/* ── Admin Center Sub-навігація (ETAP 190) ───────────────────────────────── */
.admin-subnav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--vsoc-border, rgba(0,0,0,.1));
    background: var(--vsoc-card-bg, #fff);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}
.admin-subnav::-webkit-scrollbar { display: none; }

.admin-subnav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--vsoc-muted, #64748b);
    text-decoration: none;
    font-size: .8125rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 150ms, background 150ms, border-color 150ms;
    flex-shrink: 0;
}
.admin-subnav__link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, .06);
    text-decoration: none;
}
.admin-subnav__link--active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}
.admin-subnav__link i { font-size: .9rem; }

@media (max-width: 768px) {
    .admin-subnav__label { display: none; }
    .admin-subnav__link { padding: 10px 12px; }
}

/* ═══════════════════════════════════════════════════════
   ETAP 191 — Вибір стилю онбордингу (onboarding-style)
   ═══════════════════════════════════════════════════════ */

/* ─── Картка вибору стилю (/onboarding/style) ───────── */
.onb-style-card {
    cursor: pointer;
    border: 2px solid var(--vsoc-border, rgba(0,0,0,.1));
    border-radius: 12px;
    padding: 2rem 1.5rem;
    background: var(--vsoc-card-bg, #fff);
    transition: border-color 150ms, box-shadow 150ms;
    text-align: center;
    height: 100%;
}
.onb-style-card:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.onb-style-card--active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.onb-style-card__icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    display: block;
}
.onb-style-card__title {
    font-size: var(--vsoc-text-xl);
    font-weight: var(--vsoc-weight-semibold);
    margin-bottom: .5rem;
}
.onb-style-card__desc {
    font-size: var(--vsoc-text-sm);
    color: var(--vsoc-muted, #64748b);
    line-height: 1.5;
}

/* ─── Прогрес-індикатор wizard (/onboarding/ai-guide) ── */
.onb-progress-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}
.onb-progress-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.onb-progress-dot__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    border: 2px solid var(--vsoc-border, #e2e8f0);
    background: var(--vsoc-card-bg, #fff);
    color: var(--vsoc-muted, #94a3b8);
    transition: background 200ms, border-color 200ms, color 200ms;
    z-index: 1;
}
.onb-progress-dot--active .onb-progress-dot__circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.onb-progress-dot--done .onb-progress-dot__circle {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.onb-progress-dot__label {
    font-size: .7rem;
    color: var(--vsoc-muted, #94a3b8);
    margin-top: 4px;
    white-space: nowrap;
}
.onb-progress-dot--active .onb-progress-dot__label { color: #2563eb; font-weight: 600; }
.onb-progress-dot--done .onb-progress-dot__label { color: #16a34a; }
.onb-progress-connector {
    width: 60px;
    height: 2px;
    background: var(--vsoc-border, #e2e8f0);
    margin: 0 4px;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.onb-progress-connector--done { background: #16a34a; }

/* ─── Крок wizard ────────────────────────────────────── */
.onb-wizard-step { display: none; }
.onb-wizard-step.onb-wizard-step--active { display: block; }

/* ─── Картка вибору варіанту у wizard ───────────────── */
.onb-option-card {
    cursor: pointer;
    border: 2px solid var(--vsoc-border, rgba(0,0,0,.1));
    border-radius: 8px;
    padding: .875rem 1rem;
    background: var(--vsoc-card-bg, #fff);
    transition: border-color 150ms, background 150ms;
    text-align: left;
}
.onb-option-card:hover { border-color: #2563eb; background: rgba(37,99,235,.04); }
.onb-option-card.selected { border-color: #2563eb; background: rgba(37,99,235,.07); }
.onb-option-card input[type=radio] { display: none; }
