/* ==========================================================================
   Vibers — theme on top of Bootstrap 5.3
   Tokens first; components below. No inline styles anywhere (strict CSP).
   ========================================================================== */
:root {
    --sf-primary: #6d28d9;
    --sf-primary-600: #5b21b6;
    --sf-violet: #7c3aed;
    --sf-violet-300: #b57bff;
    --sf-grad: linear-gradient(135deg, #8b3dff 0%, #6d28d9 55%, #5b21b6 100%);
    --sf-grad-text: linear-gradient(90deg, #a855f7, #7c3aed);
    --sf-ink: #120d24;
    --sf-body: #3b3654;
    --sf-muted: #6e6987;
    --sf-bg: #f7f6fb;
    --sf-card: #ffffff;
    --sf-border: #ebe8f3;
    --sf-soft: #f3edff;
    --sf-night: #07050f;
    --sf-night-2: #0e0a1c;
    --sf-radius: 14px;
    --sf-radius-lg: 20px;
    --sf-shadow: 0 1px 2px rgba(18, 13, 36, .04), 0 8px 24px rgba(18, 13, 36, .05);
    --sf-shadow-violet: 0 10px 30px rgba(109, 40, 217, .28);

    --bs-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--sf-body);
    --bs-body-bg: var(--sf-bg);
    --bs-primary: #6d28d9;
    --bs-primary-rgb: 109, 40, 217;
    --bs-link-color: #6d28d9;
    --bs-link-color-rgb: 109, 40, 217;
    --bs-link-hover-color: #5b21b6;
    --bs-link-hover-color-rgb: 91, 33, 182;
    --bs-border-color: var(--sf-border);
    --bs-focus-ring-color: rgba(124, 58, 237, .25);
}

body { font-family: var(--bs-font-sans-serif); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .sf-page-title { color: var(--sf-ink); letter-spacing: -.02em; }
.min-w-0 { min-width: 0; }
.text-sf { color: var(--sf-violet) !important; }
.text-sf-gradient { background: var(--sf-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-skip { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- Form controls ---------- */
.form-control, .form-select { border-color: var(--sf-border); border-radius: 12px; padding: .7rem .95rem; color: var(--sf-ink); }
.form-control:focus, .form-select:focus { border-color: #a78bfa; box-shadow: 0 0 0 .25rem rgba(124, 58, 237, .15); }
.form-control::placeholder { color: #9a96ad; }
.form-check-input:checked { background-color: var(--sf-violet); border-color: var(--sf-violet); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(124, 58, 237, .15); border-color: #a78bfa; }
.input-group-text { background: var(--sf-soft); border-color: var(--sf-border); color: var(--sf-violet); border-radius: 12px 0 0 12px; }
.sf-input-icon { position: relative; }
.sf-input-icon > .bi:first-child { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8c87a3; pointer-events: none; }
.sf-input-icon .form-control { padding-left: 2.7rem; }
.sf-input-icon .form-control:has(+ .sf-eye) { padding-right: 2.9rem; }
.sf-input-icon .form-control.is-invalid { background-image: none; padding-right: .95rem; }
.sf-input-icon .form-control.is-invalid:has(+ .sf-eye) { padding-right: 2.9rem; }
.sf-eye { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8c87a3; padding: .35rem .5rem; border-radius: 8px; }
.sf-eye:hover { color: var(--sf-violet); background: var(--sf-soft); }
.invalid-feedback { font-size: .82rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: .6rem 1.1rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-sm { border-radius: 9px; padding: .35rem .75rem; }
.btn-sf-primary { background: var(--sf-grad); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(109, 40, 217, .25); }
.btn-sf-primary:hover, .btn-sf-primary:focus-visible { color: #fff; filter: brightness(1.07); box-shadow: var(--sf-shadow-violet); }
.btn-sf-primary:disabled { color: #fff; opacity: .55; }
.btn-sf-outline { background: #fff; border: 1px solid var(--sf-border); color: var(--sf-ink); }
.btn-sf-outline:hover { border-color: #c4b5fd; color: var(--sf-primary); background: #fff; }
.btn-sf-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-sf-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.sf-btn-google { background: #fff; border: 1px solid var(--sf-border); color: var(--sf-ink); display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .75rem; }
.sf-btn-google:disabled { opacity: .75; border-color: var(--sf-border); }
.sf-soon { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--sf-violet); background: var(--sf-soft); padding: .1rem .45rem; border-radius: 99px; margin-left: auto; }
.sf-btn-google .sf-soon { margin-left: .25rem; }

/* ---------- Logo ---------- */
.sf-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--sf-ink); letter-spacing: -.02em; white-space: nowrap; }
.sf-logo-mark { width: 34px; height: 34px; }
.sf-logo-word { font-size: 1.3rem; }
.sf-logo-accent { background: var(--sf-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-logo-light { color: #fff; }
.sf-logo-lg .sf-logo-mark { width: 48px; height: 48px; }
.sf-logo-lg .sf-logo-word { font-size: 1.9rem; }
.sf-logo-sm .sf-logo-mark { width: 24px; height: 24px; }
.sf-logo-sm .sf-logo-word { font-size: 1rem; }

/* ---------- Language switch ---------- */
.sf-lang { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid var(--sf-border); border-radius: 99px; padding: .2rem .25rem .2rem .6rem; background: #fff; margin: 0; }
.sf-lang .bi { color: #8c87a3; margin-right: .2rem; font-size: .9rem; }
.sf-lang-btn { border: 0; background: transparent; font-size: .74rem; font-weight: 700; color: var(--sf-muted); padding: .2rem .5rem; border-radius: 99px; }
.sf-lang-btn.active { background: var(--sf-soft); color: var(--sf-primary); }
.sf-lang-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.sf-lang-dark .bi, .sf-lang-dark .sf-lang-btn { color: rgba(255, 255, 255, .7); }
.sf-lang-dark .sf-lang-btn.active { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Toast / alerts ---------- */
.sf-toast { border: 0; border-radius: 14px; box-shadow: 0 12px 32px rgba(18, 13, 36, .14); background: #fff; }
.sf-toast-success .bi:first-child { color: #16a34a; }
.sf-toast-danger .bi:first-child { color: #dc2626; }
.sf-alert-info { background: var(--sf-soft); border: 1px solid #e3d7ff; color: #4c1d95; border-radius: var(--sf-radius); }
.sf-alert-info .bi { color: var(--sf-violet); }

/* ---------- Chips, badges, tiles ---------- */
.sf-chip { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 8px; }
.sf-chip-btn { border: 1px solid var(--sf-border); background: #fff; color: var(--sf-body); cursor: pointer; margin: .2rem .15rem; }
.sf-chip-btn:hover { border-color: #c4b5fd; color: var(--sf-primary); background: var(--sf-soft); }
.sf-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; padding: .28rem .7rem; border-radius: 99px; }
.sf-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sf-badge-success { background: #e8f8ee; color: #15803d; }
.sf-badge-info { background: #e8f1ff; color: #1d4ed8; }
.sf-badge-danger { background: #fdecec; color: #b91c1c; }
.sf-badge-neutral { background: #f1ecfb; color: #6d28d9; }
.sf-tile { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; font-size: 1.05rem; }
.sf-tile-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.5rem; }
.sf-tone-violet { background: #f1eaff; color: #7c3aed; }
.sf-tone-blue { background: #e8efff; color: #2563eb; }
.sf-tone-sky { background: #e6f5fd; color: #0284c7; }
.sf-tone-orange { background: #fff1e6; color: #ea580c; }
.sf-tone-pink { background: #ffe9ef; color: #e11d48; }
.sf-tone-green { background: #e7f8ef; color: #16a34a; }
.sf-icon-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(124, 58, 237, .12); border: 1px solid rgba(167, 139, 250, .25); color: #c4b5fd; font-size: 1.35rem; flex: 0 0 auto; }
.sf-icon-soft { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sf-soft); color: var(--sf-violet); font-size: 1.5rem; flex: 0 0 auto; }
.sf-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sf-violet); margin-bottom: .5rem; }

/* ==========================================================================
   App shell (sidebar + topbar)
   ========================================================================== */
.sf-shell { display: flex; min-height: 100vh; }
.sf-sidebar { width: 272px; flex: 0 0 272px; background: #fff; border-right: 1px solid var(--sf-border); }
@media (min-width: 992px) {
    .sf-sidebar { position: sticky; top: 0; height: 100vh; }
}
.sf-sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1rem 1rem; overflow-y: auto; }
.sf-nav-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8c87a3; padding: 0 .9rem; margin-bottom: .5rem; }
.sf-nav { display: flex; flex-direction: column; gap: .2rem; }
.sf-nav-link { display: flex; align-items: center; gap: .85rem; padding: .72rem .9rem; border-radius: 12px; color: var(--sf-body); text-decoration: none; font-weight: 500; }
.sf-nav-link .bi { font-size: 1.15rem; color: #6e6987; }
.sf-nav-link:hover { background: #f7f4fd; color: var(--sf-primary); }
.sf-nav-link.active { background: var(--sf-soft); color: var(--sf-primary); font-weight: 600; }
.sf-nav-link.active .bi, .sf-nav-link:hover .bi { color: var(--sf-violet); }
.sf-nav-link.disabled { opacity: .55; cursor: default; }
.sf-nav-link.disabled:hover { background: transparent; color: var(--sf-body); }
.sf-plan-card { position: relative; border: 1px solid var(--sf-border); border-radius: 16px; padding: 1.1rem; background: linear-gradient(160deg, #fbf9ff, #f3edff); display: flex; flex-direction: column; gap: .2rem; margin-top: 1.5rem; }
.sf-plan-card b { color: var(--sf-ink); }
.sf-plan-card span { font-size: .85rem; color: var(--sf-muted); }
.sf-plan-icon { font-size: 1.4rem; color: #f59e0b; margin-bottom: .2rem; }
.sf-soon-block { font-size: .75rem !important; font-weight: 600; color: var(--sf-violet) !important; margin-top: .35rem; }
.sf-sidebar-foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem .5rem 0; color: #8c87a3; }

.sf-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sf-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; padding: .9rem 2rem; background: rgba(247, 246, 251, .85); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.sf-search { position: relative; flex: 1 1 auto; max-width: 560px; }
.sf-search .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8c87a3; }
.sf-search input { width: 100%; border: 1px solid var(--sf-border); background: #fff; border-radius: 12px; padding: .65rem 1rem .65rem 2.6rem; color: var(--sf-ink); outline: none; }
.sf-search input:focus { border-color: #a78bfa; box-shadow: 0 0 0 .25rem rgba(124, 58, 237, .12); }
.sf-icon-btn { width: 42px; height: 42px; border: 1px solid var(--sf-border); background: #fff; border-radius: 12px; font-size: 1.3rem; display: grid; place-items: center; padding: 0; }
.sf-user { display: flex; align-items: center; gap: .7rem; border: 0; background: transparent; padding: .25rem; border-radius: 12px; color: var(--sf-ink); }
.sf-user:hover { background: #fff; }
.sf-user small { color: var(--sf-muted); font-size: .76rem; }
.sf-user b { font-size: .9rem; line-height: 1.2; }
.sf-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sf-grad); color: #fff; font-weight: 700; font-size: .9rem; }
.sf-dropdown { border: 1px solid var(--sf-border); border-radius: 14px; box-shadow: 0 14px 36px rgba(18, 13, 36, .12); padding: .4rem; min-width: 220px; }
.sf-dropdown .dropdown-item { border-radius: 9px; padding: .55rem .75rem; font-weight: 500; }
.sf-dropdown .dropdown-item:active { background: var(--sf-soft); color: var(--sf-primary); }
.sf-content { padding: 1.5rem 2rem 3rem; max-width: 1400px; width: 100%; }

@media (max-width: 991.98px) {
    .sf-sidebar { width: 280px; }
    .sf-topbar { padding: .75rem 1rem; }
    .sf-content { padding: 1rem 1rem 2.5rem; }
}

/* ---------- Page headings, cards ---------- */
.sf-page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
.sf-page-title { font-size: clamp(1.7rem, 2.6vw, 2.6rem); font-weight: 800; margin-bottom: .35rem; }
.sf-page-sub { color: var(--sf-muted); max-width: 640px; margin-bottom: 0; }
.sf-section-h { font-size: 1.5rem; font-weight: 800; margin-bottom: .2rem; }
.sf-back { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--sf-border); background: #fff; color: var(--sf-ink); text-decoration: none; font-size: 1.15rem; margin-top: .35rem; }
.sf-back:hover { color: var(--sf-primary); border-color: #c4b5fd; }
.sf-card { background: var(--sf-card); border: 1px solid var(--sf-border); border-radius: var(--sf-radius-lg); padding: 1.5rem; box-shadow: var(--sf-shadow); }
.sf-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

.sf-cta-block { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.sf-cta-block small { color: var(--sf-muted); }
.sf-btn-hero { display: inline-flex; align-items: center; gap: .9rem; background: var(--sf-grad); color: #fff; font-size: 1.15rem; font-weight: 700; padding: 1rem 1.75rem; border-radius: 16px; border: 0; box-shadow: var(--sf-shadow-violet); }
.sf-btn-hero:hover { color: #fff; filter: brightness(1.07); }
.sf-plus { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--sf-violet); display: grid; place-items: center; font-size: 1rem; }

.sf-stat { display: flex; align-items: center; gap: 1.1rem; background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-lg); padding: 1.35rem 1.5rem; box-shadow: var(--sf-shadow); height: 100%; }
.sf-stat > div { display: flex; flex-direction: column; }
.sf-stat-label { font-weight: 600; color: var(--sf-ink); font-size: .95rem; }
.sf-stat-value { font-size: 2rem; font-weight: 800; color: var(--sf-ink); line-height: 1.15; }
.sf-stat-foot { font-size: .85rem; color: var(--sf-muted); }

/* ---------- Project cards ---------- */
.sf-project-card { position: relative; background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-lg); padding: 1.35rem; box-shadow: var(--sf-shadow); height: 100%; display: flex; flex-direction: column; gap: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.sf-project-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(18, 13, 36, .08); }
.sf-project-title { font-size: 1.08rem; font-weight: 700; margin: .1rem 0 .3rem; }
.sf-project-title a { color: var(--sf-ink); text-decoration: none; }
.sf-project-title a:hover { color: var(--sf-primary); }
.sf-project-desc { font-size: .88rem; color: var(--sf-muted); margin-bottom: .7rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-dots { border: 0; background: transparent; color: var(--sf-muted); font-size: 1.2rem; padding: 0 .25rem; border-radius: 8px; line-height: 1; }
.sf-dots:hover { background: var(--sf-soft); color: var(--sf-primary); }
.sf-project-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: auto; }
.sf-project-meta { font-size: .78rem; color: #8c87a3; margin-top: -.3rem; }

.sf-empty { text-align: center; background: #fff; border: 1px dashed #d9d0f0; border-radius: var(--sf-radius-lg); padding: 3rem 1.5rem; }
.sf-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--sf-soft); color: var(--sf-violet); font-size: 1.8rem; margin-bottom: 1rem; }
.sf-empty h3 { font-size: 1.2rem; font-weight: 700; }
.sf-empty p { color: var(--sf-muted); max-width: 420px; margin: 0 auto 1.25rem; }

.sf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.sf-seg { display: inline-flex; border: 1px solid var(--sf-border); border-radius: 12px; overflow: hidden; background: #fff; }
.sf-seg a { display: grid; place-items: center; width: 44px; height: 42px; color: var(--sf-muted); text-decoration: none; }
.sf-seg a.active { background: var(--sf-soft); color: var(--sf-primary); }
.sf-select { min-width: 180px; padding-top: .55rem; padding-bottom: .55rem; }

.sf-table { --bs-table-bg: transparent; }
.sf-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #8c87a3; font-weight: 700; border-bottom-color: var(--sf-border); padding: .85rem 1rem; white-space: nowrap; }
.sf-table td { padding: .85rem 1rem; border-color: var(--sf-border); }
.sf-ua { max-width: 420px; }

/* ---------- Create project ---------- */
.sf-create-label { font-size: 1.35rem; font-weight: 800; color: var(--sf-ink); margin-bottom: .75rem; display: block; }
.sf-textarea { font-size: 1.05rem; line-height: 1.6; padding: 1rem 1.1rem; border-radius: 16px; resize: vertical; min-height: 180px; }
.sf-mini-steps li { display: flex; gap: .9rem; }
.sf-mini-steps li + li { margin-top: 1rem; }
.sf-mini-steps li > span { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--sf-grad); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.sf-mini-steps b { color: var(--sf-ink); }
.sf-mini-steps p { font-size: .87rem; color: var(--sf-muted); margin: .1rem 0 0; }

/* ---------- Build page ---------- */
.sf-stepper { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 0; margin-bottom: 1.25rem; background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-lg); padding: 1rem 1.25rem; box-shadow: var(--sf-shadow); }
.sf-stepper-item { display: flex; align-items: center; gap: .7rem; flex: 1 1 0; min-width: 150px; position: relative; }
.sf-stepper-item:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--sf-border); margin: 0 .75rem; min-width: 12px; }
.sf-stepper-num { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #f1eff6; color: #8c87a3; border: 1px solid var(--sf-border); }
.sf-stepper-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.sf-stepper-text b { color: var(--sf-ink); font-size: .92rem; }
.sf-stepper-text small { font-size: .78rem; color: #8c87a3; }
.is-done .sf-stepper-num, .is-current .sf-stepper-num { background: var(--sf-grad); color: #fff; border-color: transparent; }
.is-done:not(:last-child)::after { background: #c4b5fd; }
.is-current .sf-stepper-text small { color: var(--sf-violet); font-weight: 600; }
.sf-idea { color: var(--sf-body); font-size: 1rem; line-height: 1.65; }
.sf-panel-head { display: flex; gap: .9rem; margin-bottom: 1rem; }
.sf-panel-head h2 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.sf-panel-head p { font-size: .85rem; color: var(--sf-muted); margin: .15rem 0 0; }
.sf-panel-num { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: var(--sf-grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.sf-checklist li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; color: #8c87a3; font-size: .92rem; }
.sf-checklist li small { margin-left: auto; font-size: .76rem; }
.sf-check { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; border: 2px solid #d6d2e2; }
.sf-preview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; min-height: 170px; border-radius: 14px; background: repeating-linear-gradient(135deg, #faf9fd 0 12px, #f5f3fb 12px 24px); color: #8c87a3; font-size: .88rem; padding: 1rem; }
.sf-preview-empty .bi { font-size: 2rem; color: #c4b5fd; }
.sf-dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: .9rem; }
.sf-dl dt { color: var(--sf-muted); font-weight: 500; }
.sf-dl dd { margin: 0; color: var(--sf-ink); font-weight: 600; text-align: right; min-width: 0; }
.sf-timeline li { display: flex; gap: .75rem; position: relative; padding-bottom: 1rem; }
.sf-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--sf-border); }
.sf-timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sf-violet); margin-top: .3rem; flex: 0 0 auto; box-shadow: 0 0 0 4px var(--sf-soft); }
.sf-timeline b { display: block; font-size: .9rem; color: var(--sf-ink); font-weight: 600; }
.sf-timeline small { color: #8c87a3; }
.sf-danger { border-color: #f6d5d5; }

/* ==========================================================================
   Auth (split screen)
   ========================================================================== */
.sf-auth { background: #fff; }
.sf-auth-grid { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; }
.sf-auth-hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 10%, rgba(124, 58, 237, .35), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(109, 40, 217, .45), transparent 60%), var(--sf-night); color: #fff; padding: 3rem clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; }
.sf-auth-hero-copy { position: relative; z-index: 2; margin-top: auto; margin-bottom: auto; max-width: 480px; padding: 3rem 0; }
.sf-auth-headline { font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-weight: 800; line-height: 1.05; color: #fff; letter-spacing: -.035em; }
.sf-auth-lead { color: rgba(255, 255, 255, .78); font-size: 1.12rem; margin: 1.5rem 0 0; }
.sf-auth-rule { width: 44px; border: 0; height: 3px; background: var(--sf-violet); opacity: 1; margin: 2rem 0; }
.sf-auth-features li { display: flex; align-items: center; gap: 1.1rem; }
.sf-auth-features li + li { margin-top: 1.2rem; }
.sf-auth-features b { display: block; color: #fff; font-weight: 600; font-size: 1.05rem; }
.sf-auth-features span:not(.sf-icon-tile) { color: rgba(255, 255, 255, .65); font-size: .95rem; }
.sf-auth-mock { position: absolute; right: -18%; bottom: 6%; width: 64%; z-index: 1; opacity: .9; transform: perspective(1400px) rotateY(-14deg) rotateX(6deg); pointer-events: none; }
.sf-auth-panel { display: flex; flex-direction: column; padding: 1.5rem clamp(1.25rem, 5vw, 5rem) 2.5rem; }
.sf-auth-top { display: flex; justify-content: flex-end; }
.sf-auth-card { width: 100%; max-width: 560px; margin: auto; padding: 2rem 0; }
.sf-auth-title { text-align: center; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: .6rem; }
.sf-auth-sub { text-align: center; color: var(--sf-muted); font-size: 1.05rem; max-width: 440px; margin: 0 auto 2rem; }
.sf-divider { display: flex; align-items: center; gap: 1rem; color: var(--sf-muted); font-size: .9rem; margin: 1.5rem 0; }
.sf-divider::before, .sf-divider::after { content: ""; flex: 1; height: 1px; background: var(--sf-border); }
.sf-auth-switch { text-align: center; margin-top: 2rem; color: var(--sf-muted); }
.sf-auth-switch a { font-weight: 600; text-decoration: none; }

@media (max-width: 1199.98px) {
    .sf-auth-mock { display: none; }
}
@media (max-width: 991.98px) {
    .sf-auth-grid { grid-template-columns: 1fr; }
    .sf-auth-hero { padding: 1.5rem 1rem; }
    .sf-auth-hero-copy { display: none; }
    .sf-auth-panel { padding: 1rem 1rem 2rem; }
}

/* ==========================================================================
   Product mock (landing + auth)
   ========================================================================== */
.sf-mock { background: linear-gradient(180deg, #16112a, #0d0a1a); border: 1px solid rgba(167, 139, 250, .28); border-radius: 18px; box-shadow: 0 30px 80px rgba(76, 29, 149, .45), 0 0 0 6px rgba(255, 255, 255, .03); overflow: hidden; color: #e9e4ff; font-size: .72rem; }
.sf-mock-bar { display: flex; gap: .35rem; padding: .6rem .8rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sf-mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.sf-mock-body { display: grid; grid-template-columns: 30% 1fr; min-height: 300px; }
.sf-mock-side { border-right: 1px solid rgba(255, 255, 255, .06); padding: .9rem .7rem; display: flex; flex-direction: column; gap: .3rem; }
.sf-mock-brand { font-weight: 700; color: #fff; display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; font-size: .8rem; }
.sf-mock-nav { padding: .4rem .55rem; border-radius: 7px; color: rgba(233, 228, 255, .7); display: flex; gap: .45rem; align-items: center; }
.sf-mock-nav.active { background: rgba(124, 58, 237, .35); color: #fff; }
.sf-mock-main { padding: .9rem; }
.sf-mock-title { font-weight: 700; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .82rem; }
.sf-mock-pill { font-size: .62rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; background: rgba(34, 197, 94, .15); color: #86efac; white-space: nowrap; }
.sf-mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sf-mock-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; padding: .6rem; min-height: 108px; }
.sf-mock-card-h { font-weight: 700; color: #fff; margin-bottom: .45rem; display: flex; align-items: center; gap: .4rem; }
.sf-mock-card-h b { width: 17px; height: 17px; border-radius: 5px; background: var(--sf-grad); display: grid; place-items: center; font-size: .6rem; }
.sf-mock-check { display: flex; align-items: center; gap: .35rem; color: rgba(233, 228, 255, .75); margin-top: .3rem; font-size: .66rem; }
.sf-mock-check::before { content: "✓"; width: 13px; height: 13px; border-radius: 50%; background: var(--sf-violet); color: #fff; display: grid; place-items: center; font-size: .5rem; flex: 0 0 auto; }
.sf-mock-screen { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 1fr 1fr; gap: .3rem; height: 70px; }
.sf-mock-screen span { background: rgba(255, 255, 255, .88); border-radius: 4px; }
.sf-mock-screen span:first-child { grid-row: span 2; background: rgba(124, 58, 237, .8); }
.sf-mock-code { margin: 0; font-size: .6rem; line-height: 1.5; color: #c4b5fd; white-space: pre; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sf-mock-code .k { color: #f0abfc; }
.sf-mock-code .s { color: #86efac; }
.sf-mock-chart { display: flex; align-items: flex-end; gap: .35rem; height: 70px; padding: .4rem; background: rgba(255, 255, 255, .92); border-radius: 6px; }
.sf-mock-chart span { flex: 1; border-radius: 3px 3px 0 0; background: var(--sf-grad); }
.sf-mock-chart span:nth-child(1) { height: 35%; }
.sf-mock-chart span:nth-child(2) { height: 60%; }
.sf-mock-chart span:nth-child(3) { height: 45%; }
.sf-mock-chart span:nth-child(4) { height: 80%; }
.sf-mock-chart span:nth-child(5) { height: 65%; }

/* ==========================================================================
   Public landing
   ========================================================================== */
.sf-public { background: var(--sf-night); color: #fff; }
.sf-public-nav { position: sticky; top: 0; z-index: 1030; padding: 1rem 0; background: rgba(7, 5, 15, .72); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sf-public-nav nav a, .sf-public-link { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 500; }
.sf-public-nav nav a:hover, .sf-public-link:hover { color: #fff; }
.sf-hero { position: relative; padding: 5rem 0 5.5rem; background: radial-gradient(900px 520px at 80% 30%, rgba(124, 58, 237, .38), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(91, 33, 182, .35), transparent 60%); overflow: hidden; }
.sf-hero .sf-eyebrow { color: #c4b5fd; }
.sf-hero-title { font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 800; line-height: 1.04; color: #fff; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.sf-hero-lead { color: rgba(255, 255, 255, .78); font-size: 1.12rem; max-width: 560px; margin-bottom: 2rem; }
.sf-hero-points { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin: 0; }
.sf-hero-points li { display: flex; align-items: center; gap: .6rem; color: rgba(255, 255, 255, .82); font-size: .9rem; max-width: 190px; }
.sf-hero-points .bi { color: #c4b5fd; font-size: 1.35rem; }
.sf-band { background: #fff; color: var(--sf-body); padding: 2.25rem 0; border-radius: 28px 28px 0 0; }
.sf-band + .sf-how { margin-top: 0; }
.sf-feature { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--sf-border); border-radius: 16px; padding: 1.25rem; height: 100%; box-shadow: var(--sf-shadow); }
.sf-feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.sf-feature p { font-size: .88rem; color: var(--sf-muted); margin: 0; }
.sf-how { background: radial-gradient(700px 360px at 90% 50%, rgba(124, 58, 237, .25), transparent 60%), var(--sf-night-2); padding: 4rem 0; }
.sf-section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.sf-muted-light { color: rgba(255, 255, 255, .72); }
.sf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.sf-step { position: relative; text-align: center; background: rgba(255, 255, 255, .03); border: 1px solid rgba(167, 139, 250, .22); border-radius: 16px; padding: 1.75rem 1rem 1.25rem; }
.sf-step-num { position: absolute; top: .75rem; left: .75rem; width: 28px; height: 28px; border-radius: 50%; background: var(--sf-grad); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.sf-step-icon { font-size: 2.2rem; color: #a78bfa; display: block; margin-bottom: .75rem; }
.sf-step h3 { font-size: 1rem; color: #fff; font-weight: 700; }
.sf-step p { color: rgba(255, 255, 255, .68); font-size: .85rem; margin: 0; }
.sf-band-modules { border-radius: 28px; margin: 0; }
.sf-module { border: 1px solid var(--sf-border); border-radius: 16px; padding: 1rem; height: 100%; display: flex; flex-direction: column; gap: .4rem; box-shadow: var(--sf-shadow); }
.sf-module h3 { font-size: .95rem; font-weight: 700; margin: .35rem 0 0; }
.sf-module p { font-size: .76rem; color: var(--sf-muted); margin: 0 0 .4rem; flex: 1; }
.sf-module .sf-chip { align-self: flex-start; }
.sf-cta { padding: 3.5rem 0; background: radial-gradient(600px 300px at 85% 50%, rgba(124, 58, 237, .35), transparent 65%), var(--sf-night); }
.sf-cta .sf-eyebrow { color: #c4b5fd; }
.sf-cta-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; color: rgba(255, 255, 255, .8); font-size: .88rem; }
.sf-cta-checks .bi { color: #a78bfa; margin-right: .35rem; }
.sf-footer { padding: 2rem 0; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); font-size: .9rem; }
.sf-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.sf-footer a:hover { color: #fff; }
.sf-footer-tag { color: rgba(255, 255, 255, .6); }
.sf-legal { padding: 4rem 0; }
.sf-legal-card { background: #fff; color: var(--sf-body); border-radius: var(--sf-radius-lg); padding: 2.5rem; max-width: 780px; margin: 0 auto; }

@media (max-width: 991.98px) {
    .sf-steps { grid-template-columns: 1fr 1fr; }
    .sf-hero { padding: 3rem 0 3.5rem; }
}
@media (max-width: 575.98px) {
    .sf-steps { grid-template-columns: 1fr; }
    .sf-mock-body { grid-template-columns: 1fr; }
    .sf-mock-side { display: none; }
}

/* ---------- Errors ---------- */
.sf-minimal { background: var(--sf-bg); }
.sf-error { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.sf-error-code { font-size: 5.5rem; font-weight: 800; line-height: 1; background: var(--sf-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-error h1 { font-size: 1.6rem; font-weight: 800; margin: .75rem 0 .5rem; }
.sf-error-debug { text-align: left; margin-top: 2rem; background: #1b1530; color: #f5d0fe; padding: 1rem; border-radius: 12px; font-size: .75rem; max-height: 50vh; overflow: auto; }

@media (prefers-reduced-motion: reduce) {
    *:not(:where(.sf-lm-track, .sf-lm-dot, .sf-eq *, .sf-radio-eq *, .sf-typing, .sf-typing *, .sf-zzz, .sf-zzz *, .sf-chat-avatar, .sf-chat-avatar::after, .sf-pstep-icon, .sf-vib, .sf-vib *, .sf-vib-shadow, .sf-title-icon .bi, .sf-cdots i, .sf-cmsg)), *::before { transition: none !important; animation: none !important; }
}
