/* ============================================================
   Onboarding tour — full-screen scripted walkthrough (dummy data
   only). Ported 1:1 from the approved design reference so the
   tour looks identical to it: same dark palette, same DM Sans /
   IBM Plex Mono type, same layout — rendered as its own full-
   viewport overlay (#vi-ob-stage) rather than a popup, so it
   fully covers the real dashboard while it plays.
   ============================================================ */

:root {
    --vi-ob-bg: #08080c;
    --vi-ob-ink: #f5f5f7;
    --vi-ob-dim: rgba(245, 245, 247, .55);
    --vi-ob-faint: rgba(245, 245, 247, .3);
    --vi-ob-pink: #d946ef;
    --vi-ob-orange: #f97316;
    --vi-ob-grad: linear-gradient(90deg, #d946ef, #f97316);
    --vi-ob-green: #34d399;
    --vi-ob-line: rgba(255, 255, 255, .07);
    --vi-ob-spring: cubic-bezier(.3, 1.1, .35, 1);
    --vi-ob-out: cubic-bezier(.22, 1, .36, 1);
}

body.vi-ob-active { overflow: hidden; }

#vi-ob-stage,
#vi-ob-stage * { box-sizing: border-box; }

/* ---- progress strip (topmost) ---- */
#vi-ob-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 60;
    background: rgba(255, 255, 255, .05);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
#vi-ob-progress.on { opacity: 1; }
#vi-ob-progress i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--vi-ob-grad);
    transition: width .8s var(--vi-ob-out);
    box-shadow: 0 0 14px rgba(249, 115, 22, .7);
}

/* ---- the fake full-screen app shell ---- */
#vi-ob-stage {
    position: fixed;
    inset: 0;
    z-index: 999970;
    background: var(--vi-ob-bg) !important;
    color: var(--vi-ob-ink) !important;
    font-family: 'DM Sans', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s var(--vi-ob-out);
}
#vi-ob-stage.on { opacity: 1; visibility: visible; pointer-events: auto; }

#vi-ob-app { display: flex; height: 100%; }

.vi-ob-sidebar {
    width: 264px !important;
    flex-shrink: 0;
    background: var(--vi-ob-bg) !important;
    border-right: 1px solid var(--vi-ob-line) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 18px 14px !important;
    background: transparent !important;
    backdrop-filter: blur(1.5px);
    transition: opacity .6s;
    opacity: 0.3;
}
.vi-ob-logo { display: flex; align-items: center; gap: 12px; padding: 8px 10px 24px; }
.vi-ob-logo-bolt { width: 38px; height: 38px; border-radius: 12px; background: var(--vi-ob-grad); display: grid; place-items: center; flex-shrink: 0; }
.vi-ob-logo-bolt svg { width: 18px; height: 18px; }
.vi-ob-logo b { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; display: block; }
.vi-ob-logo span { font-size: 10.5px; color: var(--vi-ob-faint); font-weight: 600; }
.vi-ob-nav { display: flex; flex-direction: column; gap: 4px; }
.vi-ob-nav-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    color: var(--vi-ob-dim) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    position: relative;
    transition: background .25s, color .25s !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    width: 100% !important;
    font-family: inherit;
}
.vi-ob-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; }
.vi-ob-nav-item:hover { background: rgba(255, 255, 255, .04); color: var(--vi-ob-ink); }
.vi-ob-nav-item.vi-ob-nav-on { background: rgba(255, 255, 255, .06); color: var(--vi-ob-ink); }
.vi-ob-nav-item.vi-ob-nav-on::before {
    content: '';
    position: absolute;
    left: -14px; top: 9px; bottom: 9px;
    width: 3px;
    border-radius: 3px;
    background: var(--vi-ob-grad);
}
.vi-ob-side-bottom {
    margin-top: auto;
    border-top: 1px solid var(--vi-ob-line);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ---- analyses column (own sidebar, shown next to nav on Analyze Video) ---- */
.vi-ob-analyses-col { display: none; flex-direction: column; width: 280px; flex-shrink: 0; border-right: 1px solid var(--vi-ob-line); padding: 22px 18px; overflow-y: auto; }
.vi-ob-analyses-col.vi-ob-show { display: flex; }
.vi-ob-ya-label { font-size: 11px; letter-spacing: .14em; color: var(--vi-ob-faint); font-weight: 700; padding: 0 6px 14px; }
button.vi-ob-new-an-btn { width: 100%; background: var(--vi-ob-grad); color: #fff; font-weight: 800; font-size: 14px; border: none; border-radius: 14px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; margin-bottom: 14px; font-family: inherit; transition: transform .2s var(--vi-ob-spring); }
button.vi-ob-new-an-btn:hover { transform: translateY(-1px) scale(1.02); }
button.vi-ob-new-an-btn svg { width: 15px; height: 15px; }
.vi-ob-side-search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--vi-ob-line); border-radius: 12px; padding: 11px 13px; margin-bottom: 20px; color: var(--vi-ob-faint); font-size: 13px; font-weight: 600; }
.vi-ob-side-search svg { flex-shrink: 0; opacity: .7; }
.vi-ob-side-sub { font-size: 10.5px; letter-spacing: .14em; color: var(--vi-ob-faint); font-weight: 700; padding: 0 6px 10px; text-transform: uppercase; }
.vi-ob-an-item { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--vi-ob-dim); cursor: pointer; position: relative; }
.vi-ob-an-item:hover { background: rgba(255, 255, 255, .04); color: var(--vi-ob-ink); }
.vi-ob-an-item.vi-ob-an-active { background: rgba(217, 70, 239, .1); color: var(--vi-ob-ink); }
.vi-ob-an-item.vi-ob-an-active::before { content: ''; position: absolute; left: -4px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--vi-ob-grad); }
.vi-ob-an-badge { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #fdba74; background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .3); border-radius: 8px; padding: 3px 8px; flex-shrink: 0; }
.vi-ob-an-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-ob-an-dots { color: var(--vi-ob-faint); font-size: 14px; flex-shrink: 0; }

/* ---- per-video sub header ---- */
.vi-ob-an-subbar { display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 5; background: var(--vi-ob-bg); margin: -4px -36px 20px; padding: 16px 36px; border-bottom: 1px solid var(--vi-ob-line); }
#vi-ob-analyses-toggle.vi-ob-subbar-menu { display: none; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--vi-ob-line); background: rgba(255, 255, 255, .03); color: var(--vi-ob-ink); align-items: center; justify-content: center; cursor: pointer; }
#vi-ob-analyses-toggle.vi-ob-subbar-menu svg { width: 15px; height: 15px; }
.vi-ob-an-subtitle { flex: 1; font-size: 17px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.vi-ob-dl-report { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--vi-ob-ink); background: none; border: 1px solid var(--vi-ob-line); border-radius: 99px; padding: 10px 17px; cursor: pointer; transition: all .2s; flex-shrink: 0; font-family: inherit; }
button.vi-ob-dl-report svg { width: 14px; height: 14px; }
button.vi-ob-dl-report:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }

.vi-ob-main { flex: 1; position: relative; overflow: hidden; }
.vi-ob-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; }
.vi-ob-topbar h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.vi-ob-plan {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--vi-ob-dim);
    border: 1px solid var(--vi-ob-line);
    border-radius: 99px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vi-ob-plan i { width: 6px; height: 6px; border-radius: 50%; background: var(--vi-ob-green); }

.vi-ob-screen {
    position: absolute;
    inset: 64px 0 0 0;
    padding: 4px 36px 24px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--vi-ob-out);
}
.vi-ob-screen.vi-ob-show { opacity: 1; visibility: visible; }

#vi-ob-scr-home { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.vi-ob-gm { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .3em; color: var(--vi-ob-faint); }
.vi-ob-home-h { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.035em; margin-top: 16px; line-height: 1.04; }
.vi-ob-g { background: var(--vi-ob-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- keyword search screen ---- */
.vi-ob-hero-h { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.032em; text-align: center; line-height: 1.05; margin-top: 10px; }
.vi-ob-hero-sub { text-align: center; color: var(--vi-ob-dim); font-size: 15px; margin-top: 9px; font-weight: 500; }
.vi-ob-searchwrap { max-width: 720px; margin: 22px auto 0; position: relative; }
.vi-ob-searchrow {
    display: flex;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--vi-ob-line);
    border-radius: 16px;
    padding: 7px 7px 7px 20px;
    align-items: center;
    gap: 10px;
    transition: border-color .3s, box-shadow .3s;
}
.vi-ob-searchrow.vi-ob-lit { border-color: rgba(217, 70, 239, .5); box-shadow: 0 0 40px -10px rgba(217, 70, 239, .35); }
.vi-ob-searchrow svg { width: 16px; height: 16px; opacity: .45; flex-shrink: 0; }
.vi-ob-searchrow input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--vi-ob-ink);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
}
.vi-ob-searchrow input::placeholder { color: var(--vi-ob-faint); font-weight: 500; }
button.vi-ob-searchbtn {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: var(--vi-ob-grad);
    border: none;
    border-radius: 12px;
    padding: 13px 26px;
    cursor: pointer;
    transition: transform .2s var(--vi-ob-spring);
    font-family: inherit;
}
button.vi-ob-searchbtn.vi-ob-press { transform: scale(.9); }

.vi-ob-chips { display: flex; gap: 10px; justify-content: center; margin-top: 15px; flex-wrap: wrap; }
button.vi-ob-chip {
    font-size: 14px;
    font-weight: 800;
    color: var(--vi-ob-ink);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 99px;
    padding: 13px 24px;
    cursor: pointer;
    transition: all .25s var(--vi-ob-spring);
    opacity: 0;
    transform: translateY(12px);
    font-family: inherit;
}
button.vi-ob-chip.vi-ob-chip-in { animation: viObChipIn .6s var(--vi-ob-spring) forwards; }
@keyframes viObChipIn { to { opacity: 1; transform: none; } }
button.vi-ob-chip:hover { border-color: rgba(217, 70, 239, .7); background: rgba(217, 70, 239, .12); transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 24px -8px rgba(217, 70, 239, .5); }
button.vi-ob-chip .vi-ob-fire { margin-right: 6px; }
button.vi-ob-chip-picked { border-color: rgba(217, 70, 239, .8); background: rgba(217, 70, 239, .15); }
button.vi-ob-chip-faded { opacity: .2 !important; pointer-events: none; }

.vi-ob-results { max-width: 1060px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1180px) { .vi-ob-results { grid-template-columns: repeat(2, 1fr); } }
.vi-ob-vcard {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--vi-ob-line);
    border-radius: 18px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(.98);
    transition: border-color .3s, box-shadow .3s, transform .3s var(--vi-ob-spring);
}
.vi-ob-vcard.vi-ob-vcard-in { animation: viObCardIn .7s var(--vi-ob-spring) forwards; }
@keyframes viObCardIn { to { opacity: 1; transform: none; } }
.vi-ob-vcard.vi-ob-hot { cursor: pointer; transform: translateY(-4px) !important; border-color: rgba(217, 70, 239, .6); box-shadow: 0 18px 50px -16px rgba(217, 70, 239, .45); }
.vi-ob-thumb { aspect-ratio: 9 / 10; position: relative; display: grid; place-items: center; }
.vi-ob-plat { position: absolute; right: 10px; bottom: 10px; font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .55); border-radius: 99px; padding: 5px 11px; backdrop-filter: blur(8px); }
.vi-ob-play {
    position: relative;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0, 0, 0, .4);
    display: grid; place-items: center;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background .25s var(--vi-ob-spring), transform .25s var(--vi-ob-spring);
}
.vi-ob-play svg { width: 17px; height: 17px; margin-left: 2px; }
/* Same flowing-gradient ring + breathing glow as #vi-ob-spot — a
   constant "tap here" cue on the thumbnail itself, not just when the
   tour's spotlight happens to be pointing at it. */
.vi-ob-play::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(120deg, #d946ef, #f97316, #d946ef);
    background-size: 250% 250%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: viObBflow 3s linear infinite;
}
.vi-ob-play::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 18px -4px rgba(217, 70, 239, .55);
    animation: viObBreathe 2.6s ease-in-out infinite;
}
.vi-ob-play:hover { background: var(--vi-ob-grad); transform: scale(1.08); }
.vi-ob-cap { position: absolute; top: 12px; left: 12px; right: 12px; font-size: 11.5px; font-weight: 800; line-height: 1.35; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.vi-ob-vmeta { padding: 12px 14px 13px; }
.vi-ob-stats { display: flex; gap: 14px; font-size: 12.5px; font-weight: 700; color: #f0abfc; }
.vi-ob-vqrow { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.vi-ob-vqbar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.vi-ob-vqbar i { display: block; height: 100%; border-radius: 4px; background: var(--vi-ob-grad); width: 0; transition: width 1s var(--vi-ob-out) .25s; }
.vi-ob-vqn { font-family: 'IBM Plex Mono', monospace; font-size: 12px; width: 20px; text-align: right; }
.vi-ob-badge { font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.vi-ob-badge-fire { color: #fdba74; background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .3); }
.vi-ob-badge-rise { color: var(--vi-ob-green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.vi-ob-badge.vi-ob-badge-pop { animation: viObBPop .5s var(--vi-ob-spring); }
@keyframes viObBPop { 50% { transform: scale(1.25); } }
.vi-ob-vbtns { display: flex; gap: 8px; margin-top: 12px; }
/* Scoped to .vi-ob-vbtns (not just the bare .vi-ob-vbtn class) and
   !important — the parent theme (hello-elementor) ships an unscoped
   `button, [type=submit] { color:#CC3366; border:1px solid #CC3366; }`
   reset, and an Elementor global "Buttons" style can inject its own
   !important rule at runtime too, so a plain class selector isn't
   reliably enough to win against either. */
.vi-ob-vbtns button.vi-ob-vbtn {
    position: relative;
    flex: 1; font-size: 12px; font-weight: 800; border-radius: 11px; padding: 10px 8px;
    cursor: pointer; transition: all .25s var(--vi-ob-spring);
    display: flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit;
}
.vi-ob-vbtns button.vi-ob-vbtn-save {
    color: var(--vi-ob-dim) !important;
    background: none !important;
    border: 1px solid var(--vi-ob-line) !important;
}
/* Highlighted as the actual CTA — the brand gradient used everywhere
   else a primary action lives (search button, next button, new
   analysis), so it reads as "the one to tap" next to the plain
   outlined Save Post. */
.vi-ob-vbtns button.vi-ob-vbtn-anlz {
    color: #fff !important;
    background: var(--vi-ob-grad) !important;
    border: none !important;
    box-shadow: 0 6px 18px -6px rgba(217, 70, 239, .55);
}
.vi-ob-vbtns button.vi-ob-vbtn-anlz:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 26px -6px rgba(249, 115, 22, .6); }
.vi-ob-vbtn svg { width: 12px; height: 12px; }
.vi-ob-skel { background: rgba(255, 255, 255, .03); border: 1px solid var(--vi-ob-line); border-radius: 18px; aspect-ratio: 9 / 13.4; position: relative; overflow: hidden; }
.vi-ob-skel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%);
    animation: viObShimmer 1.2s infinite;
}
@keyframes viObShimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* ---- analysis screen: movie phase on top, full report below (scrolls) ---- */
#vi-ob-scr-analysis { display: block; }
.vi-ob-an-wrap { width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.vi-ob-an-top { display: flex; gap: 20px; min-height: 380px; }
.vi-ob-an-phone { width: 180px; flex-shrink: 0; border-radius: 18px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); display: grid; place-items: center; }
.vi-ob-an-phone .vi-ob-cap { position: absolute; top: 14px; left: 14px; right: 14px; font-size: 12px; font-weight: 800; line-height: 1.4; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.vi-ob-an-phone .vi-ob-play { width: 46px; height: 46px; }
.vi-ob-an-phone .vi-ob-play svg { width: 18px; height: 18px; margin-left: 2px; }
.vi-ob-scanline {
    position: absolute; left: 0; right: 0; height: 70px; top: -80px;
    background: linear-gradient(180deg, transparent, rgba(217, 70, 239, .25), rgba(249, 115, 22, .32), transparent);
    border-bottom: 1.5px solid rgba(249, 115, 22, .85);
}
.vi-ob-scanline.vi-ob-go { animation: viObScan 1.2s var(--vi-ob-out) 2; }
@keyframes viObScan { to { top: 105%; } }
.vi-ob-an-right { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 18px; padding: 18px; position: relative; min-height: 0; }
.vi-ob-sig-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px; width: 100%; max-width: 380px; }
.vi-ob-sig { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .07); transform: scale(.55); }
.vi-ob-sig.vi-ob-sig-lit { animation: viObSigLit .4s var(--vi-ob-spring) forwards; }
@keyframes viObSigLit { to { background: var(--vi-ob-pink); transform: scale(1); box-shadow: 0 0 12px rgba(217, 70, 239, .7); } }
.vi-ob-sig-status { font-size: 14px; font-weight: 800; color: var(--vi-ob-ink); margin-top: 20px; min-height: 20px; text-align: center; }
.vi-ob-sig-phase { transition: opacity .4s, transform .5s var(--vi-ob-spring); width: 100%; display: flex; flex-direction: column; align-items: center; }
.vi-ob-sig-phase.vi-ob-hide { opacity: 0; transform: scale(.92); position: absolute; pointer-events: none; }
.vi-ob-ring-phase { display: flex; flex-direction: column; align-items: center; opacity: 0; transform: scale(.9); transition: opacity .5s, transform .6s var(--vi-ob-spring); }
.vi-ob-ring-phase.vi-ob-show { opacity: 1; transform: none; }
.vi-ob-bigring { width: 158px; height: 158px; position: relative; }
.vi-ob-bigring svg { transform: rotate(-90deg); }
.vi-ob-br-t { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 10; }
.vi-ob-br-f { fill: none; stroke: url(#vi-ob-gg); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; }
.vi-ob-br-f.vi-ob-go { animation: viObBrFill 1.6s var(--vi-ob-out) forwards; }
@keyframes viObBrFill { to { stroke-dashoffset: var(--vi-ob-ring-target, 106); } }
.vi-ob-br-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vi-ob-br-num b { font-family: 'IBM Plex Mono', monospace; font-size: 42px; font-weight: 500; letter-spacing: -.02em; color: var(--vi-ob-ink); }
.vi-ob-br-num b.vi-ob-land { animation: viObNumLand .5s var(--vi-ob-spring); }
@keyframes viObNumLand { 40% { transform: scale(1.2); } }
.vi-ob-br-num span { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .22em; color: var(--vi-ob-faint); margin-top: 3px; }
.vi-ob-stamp {
    position: absolute; top: 14px; right: 16px;
    font-size: 17px; font-weight: 800; letter-spacing: -.01em;
    color: #fdba74;
    border: 2.5px solid rgba(249, 115, 22, .9);
    border-radius: 12px;
    padding: 8px 15px;
    transform: rotate(7deg) scale(3);
    opacity: 0;
    background: rgba(249, 115, 22, .08);
    backdrop-filter: blur(6px);
}
.vi-ob-stamp.vi-ob-slam { animation: viObSlam .45s var(--vi-ob-out) forwards; }
@keyframes viObSlam { to { opacity: 1; transform: rotate(-7deg) scale(1); } }
.vi-ob-proj { font-size: 13px; font-weight: 800; color: var(--vi-ob-green); background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3); border-radius: 99px; padding: 8px 16px; margin-top: 12px; opacity: 0; }
.vi-ob-proj.vi-ob-show { animation: viObChipIn .6s var(--vi-ob-spring) forwards; }

.vi-ob-fixes { display: flex; gap: 10px; }
.vi-ob-fix { flex: 1; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--vi-ob-line); border-radius: 14px; padding: 12px 14px; opacity: 0; transform: translateY(14px); }
.vi-ob-fix.vi-ob-fix-in { animation: viObCardIn .6s var(--vi-ob-spring) forwards; }
.vi-ob-fix i { font-family: 'IBM Plex Mono', monospace; font-style: normal; font-size: 10px; color: transparent; background: var(--vi-ob-grad); -webkit-background-clip: text; background-clip: text; flex-shrink: 0; }
.vi-ob-fix p { font-size: 12px; font-weight: 700; line-height: 1.35; flex: 1; }
.vi-ob-fix b { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; color: var(--vi-ob-green); flex-shrink: 0; }

/* ---- chat strip ---- */
.vi-ob-chat { background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 18px; overflow: hidden; transition: border-color .4s, box-shadow .4s; flex-shrink: 0; }
.vi-ob-chat.vi-ob-lit { border-color: rgba(217, 70, 239, .4); box-shadow: 0 0 50px -14px rgba(217, 70, 239, .35); }
.vi-ob-chat-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--vi-ob-line); }
.vi-ob-chat-head b { font-size: 13px; font-weight: 800; }
.vi-ob-mem { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .08em; color: #f0abfc; background: rgba(217, 70, 239, .09); border: 1px solid rgba(217, 70, 239, .3); border-radius: 99px; padding: 5px 11px; display: flex; align-items: center; gap: 7px; }
.vi-ob-mem i { width: 6px; height: 6px; border-radius: 50%; background: var(--vi-ob-pink); animation: viObBlink 1.8s ease-in-out infinite; }
@keyframes viObBlink { 50% { opacity: .3; } }
.vi-ob-chat-body { padding: 13px 16px; display: flex; flex-direction: column; gap: 9px; min-height: 88px; }
.vi-ob-msg { max-width: 80%; font-size: 13px; line-height: 1.5; font-weight: 500; border-radius: 14px; padding: 10px 14px; opacity: 0; transform: translateY(10px); }
.vi-ob-msg.vi-ob-msg-in { animation: viObChipIn .5s var(--vi-ob-spring) forwards; }
.vi-ob-msg-user { align-self: flex-end; background: rgba(217, 70, 239, .14); border: 1px solid rgba(217, 70, 239, .3); border-bottom-right-radius: 5px; }
.vi-ob-msg-ai { align-self: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid var(--vi-ob-line); border-bottom-left-radius: 5px; color: rgba(245, 245, 247, .85); }
.vi-ob-msg-ai b { color: var(--vi-ob-ink); }
.vi-ob-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: rgba(255, 255, 255, .05); border-radius: 14px; border-bottom-left-radius: 5px; }
.vi-ob-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--vi-ob-dim); animation: viObTp 1s infinite; }
.vi-ob-typing i:nth-child(2) { animation-delay: .15s; }
.vi-ob-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes viObTp { 30% { transform: translateY(-4px); opacity: 1; } }
.vi-ob-chat-sugs { display: flex; gap: 8px; padding: 0 16px 13px; flex-wrap: wrap; }
button.vi-ob-sug { font-size: 11.5px; font-weight: 700; color: var(--vi-ob-dim); background: none; border: 1px solid var(--vi-ob-line); border-radius: 99px; padding: 8px 13px; cursor: pointer; transition: all .2s; opacity: 0; font-family: inherit; }
button.vi-ob-sug:hover { color: var(--vi-ob-ink); border-color: rgba(217, 70, 239, .5); }

/* ============ FULL REPORT (scrolls below the movie phase) ============ */
.vi-ob-report { width: 100%; max-width: 960px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 52px; }
.vi-ob-rpt-sec { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--vi-ob-out), transform .6s var(--vi-ob-spring); }
.vi-ob-rpt-sec.vi-ob-in { opacity: 1; transform: none; }
.vi-ob-rpt-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .18em; color: var(--vi-ob-dim); border: 1px solid var(--vi-ob-line); border-radius: 99px; padding: 7px 13px; margin-bottom: 14px; }
.vi-ob-rpt-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--vi-ob-pink); }
.vi-ob-rpt-h { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.vi-ob-rpt-sub { font-size: 13.5px; color: var(--vi-ob-dim); margin-top: 7px; font-weight: 500; max-width: 640px; }
.vi-ob-rpt-tag { margin-left: auto; font-size: 12px; font-weight: 800; color: #fdba74; background: rgba(249, 115, 22, .1); border: 1px solid rgba(249, 115, 22, .3); border-radius: 99px; padding: 8px 15px; white-space: nowrap; }

/* -- composite score card -- */
.vi-ob-score-card { background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 20px; padding: 24px; margin-top: 18px; }
.vi-ob-score-top { display: flex; align-items: center; gap: 14px; }
.vi-ob-score-top .vi-ob-rpt-h { font-size: 24px; }
.vi-ob-score-body { display: flex; gap: 26px; margin-top: 22px; align-items: center; }
.vi-ob-score-ring { width: 130px; height: 130px; position: relative; flex-shrink: 0; }
.vi-ob-score-ring svg { transform: rotate(-90deg); }
.vi-ob-st { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 9; }
.vi-ob-sf { fill: none; stroke: url(#vi-ob-gg); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 346; stroke-dashoffset: 346; transition: stroke-dashoffset 1.4s var(--vi-ob-out); }
.vi-ob-sn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vi-ob-sn b { font-family: 'IBM Plex Mono', monospace; font-size: 34px; font-weight: 500; color: var(--vi-ob-ink); }
.vi-ob-sn span { font-family: 'IBM Plex Mono', monospace; font-size: 8.5px; letter-spacing: .16em; color: var(--vi-ob-faint); margin-top: 2px; text-align: center; }
.vi-ob-metrics-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.vi-ob-metric { background: rgba(255, 255, 255, .03); border: 1px solid var(--vi-ob-line); border-radius: 14px; padding: 13px 15px; }
.vi-ob-metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vi-ob-metric-label { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .08em; color: var(--vi-ob-dim); font-weight: 500; }
.vi-ob-metric-imp { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .06em; color: #fdba74; background: rgba(249, 115, 22, .1); border-radius: 99px; padding: 3px 8px; }
.vi-ob-metric-val { font-family: 'IBM Plex Mono', monospace; font-size: 20px; font-weight: 500; margin-top: 8px; color: var(--vi-ob-ink); }
.vi-ob-metric-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 9px; overflow: hidden; }
.vi-ob-metric-bar i { display: block; height: 100%; border-radius: 3px; background: var(--vi-ob-grad); width: 0; transition: width 1s var(--vi-ob-out) .2s; }
.vi-ob-metric-sub { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .05em; color: var(--vi-ob-faint); margin-top: 6px; }
.vi-ob-verdict-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--vi-ob-line); }
.vi-ob-verdict-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .18em; color: var(--vi-ob-pink); margin-bottom: 9px; }
.vi-ob-verdict-box p { font-size: 14px; line-height: 1.65; color: rgba(245, 245, 247, .85); font-weight: 500; }

/* -- pre-flight checklist -- */
.vi-ob-readiness-card { display: flex; align-items: center; gap: 18px; background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 18px; padding: 16px 20px; margin-top: 18px; }
.vi-ob-readiness-ring { width: 58px; height: 58px; position: relative; flex-shrink: 0; }
.vi-ob-readiness-ring svg { transform: rotate(-90deg); }
.vi-ob-rt { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 6; }
.vi-ob-rf { fill: none; stroke: url(#vi-ob-gg); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset 1.4s var(--vi-ob-out); }
.vi-ob-readiness-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 500; color: var(--vi-ob-ink); }
.vi-ob-readiness-meta { display: flex; flex-direction: column; gap: 3px; }
.vi-ob-readiness-meta b { font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.vi-ob-readiness-meta span { font-size: 12px; color: var(--vi-ob-dim); font-weight: 600; }
.vi-ob-readiness-fail { margin-left: auto; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #fb7185; background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .3); border-radius: 99px; padding: 7px 15px; }
.vi-ob-gates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 860px) { .vi-ob-gates-grid { grid-template-columns: 1fr; } }
.vi-ob-gate { background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 16px; padding: 16px 18px; }
.vi-ob-gate-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vi-ob-gate-top b { font-size: 14.5px; font-weight: 800; }
.vi-ob-gate-score { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.vi-ob-gate-score .vi-ob-n { font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.vi-ob-gate-score .vi-ob-of { color: var(--vi-ob-faint); font-weight: 400; }
.vi-ob-gate-score .vi-ob-badge2 { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; border-radius: 99px; padding: 3px 9px; }
.vi-ob-gate-pass .vi-ob-n { color: var(--vi-ob-green); }
.vi-ob-gate-pass .vi-ob-badge2 { color: var(--vi-ob-green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.vi-ob-gate-fail .vi-ob-n { color: #fb7185; }
.vi-ob-gate-fail .vi-ob-badge2 { color: #fb7185; background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .3); }
.vi-ob-gate-desc { font-size: 12.5px; color: var(--vi-ob-dim); line-height: 1.55; margin-top: 8px; font-weight: 500; }
.vi-ob-gate-fix { margin-top: 12px; border-left: 2.5px solid; border-radius: 0 10px 10px 0; padding: 10px 13px; background: rgba(255, 255, 255, .02); }
.vi-ob-gate-pass .vi-ob-gate-fix { border-color: var(--vi-ob-green); }
.vi-ob-gate-fail .vi-ob-gate-fix { border-color: #fb7185; }
.vi-ob-gate-fix-label { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .1em; margin-bottom: 5px; }
.vi-ob-gate-pass .vi-ob-gate-fix-label { color: var(--vi-ob-green); }
.vi-ob-gate-fail .vi-ob-gate-fix-label { color: #fb7185; }
.vi-ob-gate-fix p { font-size: 12px; line-height: 1.5; color: rgba(245, 245, 247, .8); font-weight: 500; }

/* -- observations chips + summary -- */
.vi-ob-obs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 860px) { .vi-ob-obs-grid { grid-template-columns: repeat(2, 1fr); } }
.vi-ob-obs-chip { display: flex; align-items: center; gap: 11px; background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 14px; padding: 15px 16px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.vi-ob-obs-chip i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--vi-ob-faint); flex-shrink: 0; }
.vi-ob-obs-summary { display: flex; gap: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 16px; padding: 20px; margin-top: 16px; }
.vi-ob-obs-summary-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(217, 70, 239, .12); border: 1px solid rgba(217, 70, 239, .3); flex-shrink: 0; }
.vi-ob-obs-summary p { font-size: 13.5px; line-height: 1.7; color: rgba(245, 245, 247, .85); font-weight: 500; }

/* -- audience target fit -- */
.vi-ob-fit-card { display: flex; align-items: flex-start; gap: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 16px; padding: 18px 20px; margin-top: 18px; }
.vi-ob-fit-heart { width: 34px; height: 34px; border-radius: 10px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); display: grid; place-items: center; color: var(--vi-ob-green); flex-shrink: 0; }
.vi-ob-fit-heart svg { width: 16px; height: 16px; }
.vi-ob-fit-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.vi-ob-fit-pill { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; color: var(--vi-ob-dim); border: 1px solid var(--vi-ob-line); border-radius: 99px; padding: 5px 11px; }
.vi-ob-fit-pill.vi-ob-fit-hi { color: var(--vi-ob-pink); border-color: rgba(217, 70, 239, .4); background: rgba(217, 70, 239, .08); }
.vi-ob-fit-card p { font-size: 13px; line-height: 1.6; color: rgba(245, 245, 247, .82); font-weight: 500; margin-top: 11px; }

/* -- dopamine curve -- */
.vi-ob-dopa-card { background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 18px; padding: 22px; margin-top: 16px; }
.vi-ob-dopa-body { display: flex; gap: 22px; align-items: center; }
.vi-ob-dopa-chart { flex: 1; min-width: 0; }
.vi-ob-dopa-chart svg { width: 100%; height: auto; display: block; }
.vi-ob-dopa-axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--vi-ob-faint); }
.vi-ob-dopa-legend { display: flex; gap: 16px; margin-top: 12px; }
.vi-ob-dopa-legend span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--vi-ob-dim); font-weight: 600; }
.vi-ob-dopa-legend i { width: 14px; height: 2.5px; border-radius: 3px; display: inline-block; }
.vi-ob-dopa-rings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex-shrink: 0; }
.vi-ob-dopa-mini { width: 74px; height: 74px; position: relative; }
.vi-ob-dopa-mini svg { transform: rotate(-90deg); }
.vi-ob-dt { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 6; }
.vi-ob-df { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 188; stroke-dashoffset: 188; transition: stroke-dashoffset 1.2s var(--vi-ob-out); }
.vi-ob-dopa-mini b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 500; color: var(--vi-ob-ink); }
.vi-ob-dopa-mini span { font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .06em; color: var(--vi-ob-faint); margin-top: 1px; text-align: center; }

/* -- simulations (what happens if you change one thing) -- */
.vi-ob-sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 860px) { .vi-ob-sim-grid { grid-template-columns: 1fr; } }
.vi-ob-sim-card { background: rgba(255, 255, 255, .025); border: 1px solid var(--vi-ob-line); border-radius: 16px; padding: 16px 18px; }
.vi-ob-sim-if { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .14em; color: var(--vi-ob-pink); display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.vi-ob-sim-card p { font-size: 13px; line-height: 1.55; font-weight: 600; }
.vi-ob-sim-lift { display: flex; align-items: baseline; gap: 9px; margin-top: 12px; }
.vi-ob-sim-lift b { font-family: 'IBM Plex Mono', monospace; font-size: 19px; color: var(--vi-ob-green); font-weight: 500; }
.vi-ob-sim-lift span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--vi-ob-faint); }

/* -- carry forward -- */
.vi-ob-carry-box { display: flex; gap: 14px; background: rgba(52, 211, 153, .06); border: 1px solid rgba(52, 211, 153, .25); border-radius: 16px; padding: 20px; margin-top: 16px; }
.vi-ob-carry-ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(52, 211, 153, .14); display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.vi-ob-carry-box p { font-size: 14px; line-height: 1.65; font-weight: 600; color: rgba(245, 245, 247, .9); }
.vi-ob-rpt-qs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ============ TOUR LAYER (shield / spotlight / coach / fx) ============
   Everything below lives INSIDE #vi-ob-stage (see onboarding-tour.js),
   not as separate body-level siblings — #vi-ob-stage is position:fixed,
   which always opens its own stacking context, so a body-level shield
   would sit in a stacking context #vi-ob-stage's descendants could never
   paint above no matter what z-index they were given. Nesting everything
   under the same #vi-ob-stage context is what makes .vi-ob-elevate's
   z-index actually win over #vi-ob-shield below. ============ */
#vi-ob-shield {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(5, 5, 9, .72);
    opacity: 0;
    transition: opacity .6s;
    pointer-events: none;
    backdrop-filter: blur(1.5px);
}
#vi-ob-shield.on { opacity: 1; pointer-events: auto; }

/* Lifts a real, still-in-place interactive element (a chip, a result
   card) above #vi-ob-shield while the shield is on, so it stays exactly
   as clickable as it would be with the shield hidden — matching the
   design reference's own elevate()/clearElevated() behavior. */
.vi-ob-elevate { position: relative !important; z-index: 45 !important; }

.vi-ob-tap-pulse::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 2px solid rgba(249, 115, 22, .85);
    animation: viObTapRing 1.5s var(--vi-ob-out) infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes viObTapRing { from { opacity: 1; transform: scale(.99); } to { opacity: 0; transform: scale(1.1); } }

#vi-ob-spot {
    position: fixed;
    z-index: 41;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    transition: top .4s var(--vi-ob-spring), left .4s var(--vi-ob-spring), width .4s var(--vi-ob-spring), height .4s var(--vi-ob-spring), opacity .4s;
}
#vi-ob-spot.on { opacity: 1; }
#vi-ob-spot::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, #d946ef, #f97316, #d946ef);
    background-size: 250% 250%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: viObBflow 3s linear infinite;
}
@keyframes viObBflow { to { background-position: 250% 0; } }
#vi-ob-spot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    box-shadow: 0 0 36px -6px rgba(217, 70, 239, .55);
    animation: viObBreathe 2.6s ease-in-out infinite;
}
@keyframes viObBreathe { 50% { box-shadow: 0 0 55px -4px rgba(249, 115, 22, .6); } }

#vi-ob-cursor {
    position: fixed;
    z-index: 55;
    width: 22px; height: 22px;
    pointer-events: none;
    opacity: 0;
    transition: top .85s var(--vi-ob-spring), left .85s var(--vi-ob-spring), opacity .4s;
}
#vi-ob-cursor.on { opacity: 1; }
#vi-ob-cursor .vi-ob-cursor-core {
    position: absolute; inset: 4px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, .85), 0 0 22px 4px rgba(217, 70, 239, .65), 0 0 44px 10px rgba(249, 115, 22, .35);
}
#vi-ob-cursor .vi-ob-cursor-trail {
    position: absolute; inset: -8px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 239, .35), transparent 65%);
    animation: viObCursorPulse 1.6s ease-in-out infinite;
}
@keyframes viObCursorPulse { 50% { transform: scale(1.35); opacity: .6; } }
#vi-ob-cursor.vi-ob-clicking .vi-ob-cursor-core { animation: viObCursorClick .4s var(--vi-ob-spring); }
@keyframes viObCursorClick { 40% { transform: scale(.6); } }
.vi-ob-ripple {
    position: fixed;
    z-index: 54;
    border-radius: 50%;
    border: 2px solid rgba(249, 115, 22, .9);
    pointer-events: none;
    animation: viObRip .6s var(--vi-ob-out) forwards;
}
@keyframes viObRip { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }

#vi-ob-coach {
    position: fixed;
    z-index: 50;
    width: 312px;
    max-width: calc(100vw - 32px);
    background: rgba(15, 15, 21, .94);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .9);
    transition: top .5s var(--vi-ob-spring), left .5s var(--vi-ob-spring), opacity .35s, transform .5s var(--vi-ob-spring);
    opacity: 0;
    transform: translateY(14px) scale(.97);
    pointer-events: none;
    overflow: hidden;
    font-family: 'DM Sans', -apple-system, sans-serif;
}
#vi-ob-coach.on { opacity: 1; transform: none; pointer-events: auto; }
#vi-ob-coach.vi-ob-center { width: 392px; text-align: center; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
#vi-ob-coach.vi-ob-center.on { transform: translate(-50%, -50%); }
#vi-ob-coach.vi-ob-auto { cursor: pointer; }

.vi-ob-timer { position: absolute; bottom: 0; left: 0; height: 2.5px; width: 100%; background: var(--vi-ob-grad); transform-origin: left; transform: scaleX(0); }
.vi-ob-timer.vi-ob-run { animation: viObTimerRun var(--vi-ob-t) linear forwards; }
@keyframes viObTimerRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.vi-ob-step { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .26em; color: transparent; background: var(--vi-ob-grad); -webkit-background-clip: text; background-clip: text; margin-bottom: 10px; }
.vi-ob-title { font-size: 23px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 0 0 6px; }
.vi-ob-sub { font-size: 13.5px; color: var(--vi-ob-dim); line-height: 1.55; margin-top: 8px; font-weight: 500; margin-bottom: 12px; }
.vi-ob-sub:empty { margin: 0; }
.vi-ob-sub b { color: var(--vi-ob-ink); }
.vi-ob-extra { margin-bottom: 12px; }
.vi-ob-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; gap: 10px; }
#vi-ob-coach.vi-ob-center .vi-ob-foot { justify-content: center; gap: 14px; }
/* When the "TAP ONE"/"TAP THE VIDEO" indicator is showing (STEP 1/2, a
   skip-only foot), float it and let the foot's own block formatting
   context (it's display:flex) tuck in beside it instead of wrapping
   below — puts SKIP on the same line instead of its own row underneath
   a big gap. Steps without that indicator are untouched (floating a
   display:none element is a no-op). */
#vi-ob-coach.vi-ob-has-do .vi-ob-foot { margin-top: 0px; margin-left: 10px; float: right; }

.vi-ob-do { display: inline-flex; float: left; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .12em; color: #fdba74; margin-top: 13px; }
.vi-ob-do i { width: 7px; height: 7px; border-radius: 50%; background: var(--vi-ob-orange); animation: viObDot 1.4s ease-in-out infinite; }
@keyframes viObDot {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .5); }
    70% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.vi-ob-bolt {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--vi-ob-grad);
    display: grid; place-items: center;
    margin: 0 auto 15px;
    position: relative;
    animation: viObBoltPop .9s var(--vi-ob-spring);
}
.vi-ob-bolt svg { width: 24px; height: 24px; }
.vi-ob-bolt::before {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 22px;
    border: 1.5px solid rgba(217, 70, 239, .45);
    animation: viObBoltRing 2.4s var(--vi-ob-out) .5s infinite;
}
@keyframes viObBoltPop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes viObBoltRing { from { opacity: .8; transform: scale(.92); } to { opacity: 0; transform: scale(1.45); } }

button.vi-ob-skip {
    background: none !important;
    border: 1px solid var(--vi-ob-line) !important;
    border-radius: 99px;
    padding: 8px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px !important;
    letter-spacing: .1em;
    color: var(--vi-ob-faint) !important;
    cursor: pointer !important;
    transition: color .2s, border-color .2s !important;
}
button.vi-ob-skip:hover { color: var(--vi-ob-dim); border-color: rgba(255, 255, 255, .16) !important; }
button.vi-ob-next {
    position: relative;
    font-weight: 800; font-size: 14px; color: #fff;
    background: var(--vi-ob-grad);
    border: none; border-radius: 99px;
    padding: 12px 26px;
    cursor: pointer;
    transition: transform .25s var(--vi-ob-spring), box-shadow .3s;
    box-shadow: 0 6px 22px -6px rgba(217, 70, 239, .5);
    font-family: inherit;
}
button.vi-ob-next:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 10px 30px -6px rgba(249, 115, 22, .6); }
button.vi-ob-next.vi-ob-final { animation: viObCglow 2.2s ease-in-out infinite; }
@keyframes viObCglow { 50% { box-shadow: 0 8px 36px -4px rgba(249, 115, 22, .85); } }

.vi-ob-vq-box { display: flex; align-items: center; gap: 12px; margin-top: 13px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-radius: 13px; padding: 11px 13px; }
.vi-ob-mini-ring { width: 40px; height: 40px; position: relative; flex-shrink: 0; }
.vi-ob-mini-ring svg { transform: rotate(-90deg); }
.vi-ob-mt { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 4; }
.vi-ob-mf { fill: none; stroke: url(#vi-ob-gg); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: viObMFill 1.4s var(--vi-ob-out) .4s forwards; }
@keyframes viObMFill { to { stroke-dashoffset: var(--vi-ob-ring-target, 24); } }
.vi-ob-mini-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; color: var(--vi-ob-ink); }
.vi-ob-vq-compare { font-size: 11.5px; color: var(--vi-ob-dim); line-height: 1.5; font-weight: 600; text-align: left; }
.vi-ob-vq-compare em { font-style: normal; color: #f0abfc; }

/* ---- dopamine fx (confetti / toast / flash) ---- */
#vi-ob-burst-layer { position: fixed; inset: 0; z-index: 52; pointer-events: none; }
.vi-ob-burst { position: fixed; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; opacity: 0; }
@keyframes viObFly { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }

#vi-ob-toast {
    position: fixed;
    bottom: 26px; left: 50%;
    transform: translate(-50%, 80px);
    z-index: 58;
    font-size: 13px; font-weight: 800;
    background: rgba(15, 15, 21, .95);
    border: 1px solid rgba(217, 70, 239, .4);
    border-radius: 99px;
    padding: 13px 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 50px -12px rgba(217, 70, 239, .5);
    transition: transform .6s var(--vi-ob-spring), opacity .4s;
    opacity: 0;
    color: var(--vi-ob-ink);
    font-family: 'DM Sans', -apple-system, sans-serif;
}
#vi-ob-toast.show { transform: translate(-50%, 0); opacity: 1; }

#vi-ob-flash {
    position: fixed;
    inset: 0;
    z-index: 39;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(217, 70, 239, .18) 82%, rgba(249, 115, 22, .22) 100%);
}
#vi-ob-flash.vi-ob-go { animation: viObFlashGo .9s var(--vi-ob-out); }
@keyframes viObFlashGo { 20% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    #vi-ob-stage *, #vi-ob-stage *::before, #vi-ob-stage *::after,
    #vi-ob-coach, #vi-ob-coach *, #vi-ob-spot, #vi-ob-cursor, .vi-ob-burst {
        animation-duration: .01s !important;
        animation-delay: 0s !important;
        transition-duration: .01s !important;
    }
}

/* ---- mobile off-canvas sidebar ---- */
#vi-ob-side-toggle {
    display: none;
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--vi-ob-line);
    background: rgba(255, 255, 255, .03);
    color: var(--vi-ob-ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#vi-ob-side-toggle svg { width: 17px; height: 17px; }
#vi-ob-side-backdrop { display: none; position: fixed; inset: 0; background: rgba(5, 5, 9, .6); z-index: 29; opacity: 0; transition: opacity .3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .vi-ob-sidebar { width: 230px !important; }
    .vi-ob-an-top { gap: 14px; }
    .vi-ob-an-phone { width: 150px; }
    .vi-ob-score-body { gap: 18px; }
    .vi-ob-metrics-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    #vi-ob-side-toggle { display: flex; }
    #vi-ob-analyses-toggle.vi-ob-subbar-menu { display: flex; }
    .vi-ob-sidebar {
        position: fixed !important; z-index: 30; top: 0; bottom: 0; left: 0;
        width: 270px !important; max-width: 82vw;
        transform: translateX(-100%);
        transition: transform .35s var(--vi-ob-out);
    }
    .vi-ob-sidebar.vi-ob-open { transform: translateX(0); }
    .vi-ob-analyses-col.vi-ob-show {
        position: fixed; z-index: 30; top: 0; bottom: 0; left: 0;
        width: 270px; max-width: 82vw;
        transform: translateX(-100%);
        transition: transform .35s var(--vi-ob-out);
        background: var(--vi-ob-bg);
    }
    .vi-ob-analyses-col.vi-ob-show.vi-ob-open { transform: translateX(0); }
    #vi-ob-side-backdrop.vi-ob-on { display: block; opacity: 1; }
    .vi-ob-topbar { padding: 14px 18px; }
    .vi-ob-screen { inset: 58px 0 0 0; padding: 4px 18px 24px; }
    .vi-ob-an-subbar { margin: -4px -18px 18px; padding: 14px 18px; }
    .vi-ob-an-subtitle { font-size: 15px; }
    button.vi-ob-dl-report span { display: none; }
    .vi-ob-plan span { display: none; }
    .vi-ob-plan { padding: 9px 11px; }
    .vi-ob-an-top { flex-direction: column; min-height: 0; }
    .vi-ob-an-phone { width: 100%; height: 200px; }
    .vi-ob-fixes { flex-direction: column; }
    .vi-ob-score-body { flex-direction: column; align-items: stretch; }
    .vi-ob-metrics-grid { grid-template-columns: 1fr 1fr; }
    .vi-ob-dopa-body { flex-direction: column; align-items: stretch; }
    .vi-ob-dopa-rings { grid-template-columns: repeat(4, 1fr); }
    .vi-ob-rpt-h { font-size: 21px; }
    .vi-ob-searchrow { flex-wrap: wrap; padding: 10px 12px; }
    button.vi-ob-searchbtn { width: 100%; }
    .vi-ob-chips { flex-wrap: wrap; }
    #vi-ob-coach { width: min(312px, calc(100vw - 32px)); }
    #vi-ob-coach.vi-ob-center { width: min(392px, calc(100vw - 32px)); }
}

@media (max-width: 560px) {
    .vi-ob-results { grid-template-columns: 1fr; }
    .vi-ob-metrics-grid { grid-template-columns: 1fr; }
    .vi-ob-obs-grid { grid-template-columns: 1fr; }
    .vi-ob-dopa-rings { grid-template-columns: repeat(2, 1fr); }
    .vi-ob-home-h, .vi-ob-hero-h { font-size: clamp(24px, 7vw, 32px); }
    .vi-ob-score-card { padding: 16px; }
    .vi-ob-readiness-card { flex-wrap: wrap; }
    .vi-ob-readiness-fail { margin-left: 0; }
    .vi-ob-foot { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 640px) {
    /* An *anchored* coach card gets its width set inline by placeCoach()
       (full-bleed minus a 12px margin) and floats directly below/above
       its real anchor there — this just caps its height so unusually
       long content scrolls internally instead of overflowing the
       screen. The no-anchor (.vi-ob-center) cards stay a true centered
       modal at every width (placeCoachCenter() never sets this width). */
    #vi-ob-coach { max-height: calc(100vh - 32px); overflow-y: auto; text-align: left; }
    #vi-ob-coach.vi-ob-center .vi-ob-foot { justify-content: space-between; }
    /* space-between above is for the 2-button feet (skip + go); a
       single-button foot (e.g. the final "Let me in") has nothing to
       space between and would otherwise get shoved to the left edge —
       an auto margin on a lone flex item centers it regardless of the
       parent's justify-content. */
    #vi-ob-coach.vi-ob-center .vi-ob-foot > *:only-child { margin: 0 auto; }
    .vi-ob-title { font-size: 20px; }
    #vi-ob-spot {
        transition: top .5s var(--vi-ob-spring), left .5s var(--vi-ob-spring),
                    width .5s var(--vi-ob-spring), height .5s var(--vi-ob-spring), opacity .4s;
    }
}
