@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

html {
    color-scheme: dark;
}
html[data-theme="light"] {
    color-scheme: light;
}

.font-display { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; }
.font-serif { font-family: 'Inter', system-ui, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }

body {
    background-color: var(--black);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74, 144, 226, 0.12) 0%, transparent 55%),
        radial-gradient(circle at top center, #0d1117 0%, #000000 100%);
    color: var(--text-primary, var(--gold-light));
}

[data-theme="light"] body {
    background-color: var(--black, #c4ccd8);
    background-image: radial-gradient(circle at top center, #d5dce7 0%, #c4ccd8 100%);
    color: var(--text-primary, #1a2230);
}

[data-theme="light"] .text-text-primary {
    color: var(--text-primary, #1a2230) !important;
}

#ash-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.28;
    pointer-events: none;
}

[data-theme="light"] #ash-canvas { opacity: 0.18; }

/* Homepage background video */
#bg-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    opacity: 0.28;
    filter: saturate(0.75) contrast(1.08) brightness(0.78);
    pointer-events: none;
    background: #000;
}

[data-theme="light"] #bg-video {
    opacity: 0.12;
    filter: saturate(0.5) brightness(1.1);
}

#bg-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 70% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0.55) 100%);
}

[data-theme="light"] #bg-video-overlay {
    background:
        radial-gradient(ellipse 100% 70% at 50% 50%, transparent 0%, rgba(196, 204, 216, 0.55) 70%, rgba(196, 204, 216, 0.88) 100%),
        linear-gradient(180deg, rgba(196, 204, 216, 0.28) 0%, rgba(196, 204, 216, 0.55) 100%);
}

/* Keep main content above the video layers (main rule below sets position/z-index) */

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.45);
}

[data-theme="light"] .glass-panel {
    background: var(--panel-bg);
    border-color: var(--border-accent) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(26, 34, 48, 0.14);
}

:root {
    --nav-height: 4rem; /* matches nav h-16 */
}
@media (min-width: 1024px) {
    :root { --nav-height: 5rem; } /* matches nav lg:h-20 */
}

main {
    position: relative;
    z-index: 10;
    /* Clear fixed nav; !important beats Tailwind py-* utilities on <main> */
    padding-top: calc(var(--nav-height) + 2rem) !important;
    padding-bottom: 3rem;
}

::selection {
    background: var(--accent, var(--gold));
    color: black;
}

/* Nav */
.nav-logo,
.site-footer-logo,
.intro-brand-link {
    text-decoration: none;
    color: inherit;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
    max-height: 3.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

/* Fuse Intelligence logo */
.fuse-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    line-height: 1;
    user-select: none;
    max-height: 100%;
}

.fuse-logo__mark {
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.35s ease;
}

.fuse-logo__text {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.fuse-logo__name {
    font-weight: 700;
    background: linear-gradient(105deg, #3d72c9 0%, #5ba3f5 35%, #a5c9f5 50%, #5ba3f5 65%, #3d72c9 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fuseNameShimmer 5s linear infinite;
    transition: letter-spacing 0.35s ease, filter 0.35s ease;
}

.fuse-logo__tag {
    font-weight: 400;
    color: rgba(226, 232, 245, 0.72);
    font-size: 0.58em;
    letter-spacing: 0.12em;
    transition: color 0.35s ease, opacity 0.35s ease;
}

[data-theme="light"] .fuse-logo__tag {
    color: rgba(26, 35, 50, 0.62);
}

.fuse-logo--nav .fuse-logo__mark { width: 30px; height: 30px; }
.fuse-logo--nav .fuse-logo__text { font-size: clamp(0.85rem, 1.8vw, 1.05rem); }
.fuse-logo--nav .fuse-logo__tag { display: inline; font-size: 0.5em; }
@media (min-width: 1024px) {
    .fuse-logo--nav .fuse-logo__mark { width: 32px; height: 32px; }
    .fuse-logo--nav .fuse-logo__text { font-size: clamp(0.95rem, 2vw, 1.1rem); }
}

.fuse-logo--footer .fuse-logo__mark { width: 38px; height: 38px; }
.fuse-logo--footer .fuse-logo__text { font-size: clamp(1rem, 2.5vw, 1.35rem); }

.fuse-logo--intro {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.fuse-logo--intro .fuse-logo__mark {
    width: clamp(64px, 12vw, 96px);
    height: clamp(64px, 12vw, 96px);
}

.fuse-logo--intro .fuse-logo__text {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(1.5rem, 5vw, 2.75rem);
    letter-spacing: 0.22em;
}

.fuse-logo--intro .fuse-logo__tag {
    font-size: 0.38em;
    letter-spacing: 0.35em;
}

.nav-logo:hover .fuse-logo__mark {
    transform: scale(1.03);
    filter: drop-shadow(0 0 6px rgba(91, 163, 245, 0.45));
}

.site-footer-logo:hover .fuse-logo__mark,
.intro-brand-link:hover .fuse-logo__mark {
    transform: scale(1.06) rotate(-3deg);
    filter: drop-shadow(0 0 10px rgba(91, 163, 245, 0.65)) drop-shadow(0 0 22px rgba(226, 232, 245, 0.25));
}

.nav-logo:hover .fuse-logo__name,
.site-footer-logo:hover .fuse-logo__name,
.intro-brand-link:hover .fuse-logo__name {
    letter-spacing: 0.2em;
    filter: drop-shadow(0 0 8px rgba(91, 163, 245, 0.45));
}

.nav-logo:hover .fuse-logo__tag,
.site-footer-logo:hover .fuse-logo__tag {
    color: rgba(226, 232, 245, 0.95);
}

[data-theme="light"] .nav-logo:hover .fuse-logo__tag,
[data-theme="light"] .site-footer-logo:hover .fuse-logo__tag {
    color: rgba(26, 35, 50, 0.85);
}

@keyframes fuseNameShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 220% center; }
}

/* Keep scrolled page content from bleeding through the fixed top bar */
nav.nav-theme {
    background: rgba(8, 10, 14, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
[data-theme="light"] nav.nav-theme {
    background: rgba(196, 204, 216, 0.97);
}

.nav-link {
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent, #5ba3f5);
}
.nav-link.active {
    border-bottom: 2px solid var(--accent, #5ba3f5);
    box-shadow: 0 10px 20px -10px rgba(91, 163, 245, 0.35);
}

[data-theme="light"] .nav-link {
    color: #1a2230;
    font-weight: 600;
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: #122033; }

/* Nav dropdowns */
.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    min-width: 220px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-menu {
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 0.5rem 0;
    background: var(--dropdown-bg, var(--panel-bg));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .nav-dropdown-menu {
    box-shadow: 0 16px 40px rgba(26, 34, 48, 0.18);
}

.nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-chevron {
    transition: transform 0.2s;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

/* Admin badge in main nav */
.admin-nav-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a0a0a;
    background: linear-gradient(135deg, #5ba3f5, #4A90E2);
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    box-shadow: 0 0 16px rgba(91, 163, 245, 0.35);
    white-space: nowrap;
}
.admin-nav-badge--sm {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    letter-spacing: 0.08em;
}
[data-theme="light"] .admin-nav-badge {
    color: #ffffff;
}

/* Profile dropdown in nav */
.nav-profile-dropdown .nav-profile-panel {
    right: 0;
    left: auto;
    min-width: 280px;
}

.nav-notify-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--accent, #5ba3f5);
    border-radius: 9999px;
}
.nav-notify-toggle:hover {
    background: rgba(91, 163, 245, 0.12);
}
.nav-notify-icon {
    width: 1.2rem;
    height: 1.2rem;
}
.nav-notify-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: #c9a962;
    color: #08111d;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    display: none;
}
.nav-notify-badge.is-on {
    display: inline-block;
}
.nav-notify-dropdown .nav-notify-panel {
    right: 0;
    left: auto;
    min-width: 320px;
    max-width: min(380px, 92vw);
}
.nav-notify-menu {
    padding: 0;
    overflow: hidden;
}
.nav-notify-head,
.nav-notify-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.78rem;
}
.nav-notify-head {
    border-bottom: 1px solid var(--border-accent);
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
}
.nav-notify-mark-all {
    background: none;
    border: 0;
    color: var(--accent, #5ba3f5);
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0;
}
.nav-notify-list {
    max-height: 22rem;
    overflow-y: auto;
}
.nav-notify-empty {
    margin: 0;
    padding: 1rem 0.9rem;
    font-size: 0.8rem;
    opacity: 0.6;
}
.nav-notify-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
}
.nav-notify-item.is-unread {
    background: rgba(91, 163, 245, 0.08);
}
.nav-notify-item__title {
    font-size: 0.82rem;
    font-weight: 600;
}
.nav-notify-item__body {
    font-size: 0.72rem;
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-notify-item__time {
    font-size: 0.68rem;
    opacity: 0.5;
}
.nav-notify-foot {
    border-top: 1px solid var(--border-accent);
    color: var(--accent, #5ba3f5);
    text-decoration: none;
}

.sales-alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.sales-alert-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.sales-alert-item.is-unread {
    border-color: rgba(201, 169, 98, 0.45);
    background: rgba(201, 169, 98, 0.08);
}
.sales-alert-item__title {
    margin: 0 0 0.25rem;
    font-weight: 600;
}
.sales-alert-item__body,
.sales-alert-item__meta {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.7;
}
.sales-alert-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    white-space: nowrap;
}
.nav-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(91, 163, 245, 0.12);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(91, 163, 245, 0.3);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent, #5ba3f5);
    overflow: hidden;
}
.nav-profile-avatar.has-image {
    color: transparent;
    border-color: rgba(201, 169, 98, 0.45);
}
.nav-profile-avatar.has-image span {
    visibility: hidden;
}
.nav-profile-toggle:hover .nav-profile-avatar {
    border-color: rgba(91, 163, 245, 0.6);
    box-shadow: 0 0 10px rgba(91, 163, 245, 0.2);
}
.dropdown-profile-header {
    margin-bottom: 0.25rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary, rgba(226, 232, 245, 0.85));
    transition: background 0.2s, color 0.2s;
}
.dropdown-item:hover {
    background: rgba(91, 163, 245, 0.08);
    color: var(--accent, #5ba3f5);
}

[data-theme="light"] .dropdown-item {
    color: #1a2230;
}
[data-theme="light"] .dropdown-item:hover {
    background: rgba(61, 114, 201, 0.12);
    color: #1a4d8c;
}

.mobile-menu-theme {
    background: rgba(8, 10, 14, 0.98);
}

[data-theme="light"] .mobile-menu-theme {
    background: #cfd6e2;
}

.mobile-nav-heading {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #5ba3f5);
}
[data-theme="light"] .mobile-nav-heading {
    color: #1a4d8c;
}

.mobile-nav-link {
    display: block;
    padding: 0.55rem 0;
    color: var(--text-primary, #e2e8f5);
    font-weight: 500;
}
.mobile-nav-link:hover { color: var(--accent, #5ba3f5); }

[data-theme="light"] .mobile-nav-link {
    color: #1a2230;
}
[data-theme="light"] .mobile-nav-link:hover {
    color: #1a4d8c;
}

.mobile-menu-btn {
    position: relative;
    z-index: 60;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent, #5ba3f5);
}
.mobile-menu-btn__close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn__open { display: none; }
.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn__close { display: block; }

@media (max-width: 1023.98px) {
    .mobile-menu-btn {
        display: inline-flex;
    }
    nav.nav-theme {
        display: flex;
        flex-direction: column;
        max-height: 100vh;
        max-height: 100svh;
    }
    nav.nav-theme > .container {
        flex: 0 0 auto;
    }
    nav.nav-theme.is-mobile-open {
        height: 100vh;
        height: 100svh;
        overflow: hidden;
    }
    #mobile-menu:not(.hidden) {
        display: block;
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }
    #mobile-menu .mobile-nav-link {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
    #mobile-menu .mobile-nav-heading {
        margin-top: 0.4rem;
    }
    html.mobile-nav-open,
    body.mobile-nav-open {
        overflow: hidden;
    }
}

/* Buttons */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: var(--accent, #5ba3f5);
    color: #0a0a0a;
    border: none;
    border-radius: 9999px;
    transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-gold:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 24px rgba(91, 163, 245, 0.45);
    color: #0a0a0a;
    transform: translateY(-1px);
}

.btn-gold-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: transparent;
    color: var(--accent, #5ba3f5);
    border: 1px solid rgba(91, 163, 245, 0.4);
    border-radius: 9999px;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-gold-outline:hover {
    background: rgba(91, 163, 245, 0.08);
    border-color: rgba(91, 163, 245, 0.65);
    box-shadow: 0 0 20px rgba(91, 163, 245, 0.15);
    color: var(--accent-soft, #a5c9f5);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    color: rgba(226, 232, 245, 0.45);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(91, 163, 245, 0.2);
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #fff;
    color: #1f1f1f;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.btn-google:hover {
    background: #f7f7f7;
    color: #1f1f1f;
}
[data-theme="light"] .btn-google {
    border-color: rgba(26, 35, 50, 0.15);
}

/* Inputs, selects, textareas */
.input-lux,
select.input-lux,
textarea.input-lux,
.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-accent);
    color: var(--text-primary, #e2e8f5);
    font-family: 'Inter', system-ui, sans-serif;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input-lux:focus,
select.input-lux:focus,
textarea.input-lux:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--accent, #5ba3f5);
    background: var(--input-bg, rgba(91, 163, 245, 0.04));
    color: var(--text-primary, #e2e8f5);
    box-shadow: 0 0 0 3px rgba(91, 163, 245, 0.12);
}
.input-lux:disabled,
.form-control:disabled,
.form-select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.input-lux::placeholder,
.form-control::placeholder,
textarea.input-lux::placeholder {
    color: var(--text-muted);
    opacity: 1;
}
select.input-lux,
.form-select {
    appearance: auto;
    color-scheme: inherit;
}
select.input-lux option,
.form-select option {
    background: var(--dropdown-bg, #161616);
    color: var(--text-primary, #e2e8f5);
}

[data-theme="light"] .input-lux,
[data-theme="light"] select.input-lux,
[data-theme="light"] textarea.input-lux,
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background: var(--input-bg, #e4eaf2);
    border-color: var(--border-accent);
    color: var(--text-primary, #1a2230);
}
[data-theme="light"] .input-lux:focus,
[data-theme="light"] select.input-lux:focus,
[data-theme="light"] textarea.input-lux:focus,
[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background: #edf1f7;
    color: #1a2230;
}
[data-theme="light"] .input-lux::placeholder,
[data-theme="light"] .form-control::placeholder,
[data-theme="light"] textarea.input-lux::placeholder {
    color: rgba(26, 34, 48, 0.5);
}
[data-theme="light"] select.input-lux option,
[data-theme="light"] .form-select option {
    background: #dce3ed;
    color: #1a2230;
}

[data-theme="light"] .input-lux:-webkit-autofill,
[data-theme="light"] .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #e4eaf2 inset;
    -webkit-text-fill-color: #1a2230;
    caret-color: #1a2230;
}

.dropdown-menu {
    background: var(--dropdown-bg, rgba(17, 17, 17, 0.96));
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
}
.dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-item-text {
    color: var(--text-primary);
}
[data-theme="light"] .dropdown-menu {
    background: var(--dropdown-bg, #dce3ed);
    color: #1a2230;
    border-color: var(--border);
    box-shadow: 0 12px 32px rgba(26, 34, 48, 0.16);
}

/* Theme toggle */
.theme-switch-wrap { position: relative; z-index: 100; }

.theme-toggle {
    position: relative;
    width: 4.5rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid var(--border-accent);
    background: rgba(91, 163, 245, 0.08);
    cursor: pointer;
    padding: 0;
}

.theme-knob {
    position: absolute;
    top: 0.325rem;
    left: 0.25rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--accent, #5ba3f5);
    box-shadow: 0 0 12px rgba(91, 163, 245, 0.4);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .theme-knob { transform: translateX(2.5rem); }

[data-theme="light"] .theme-toggle {
    background: rgba(26, 34, 48, 0.08);
    border-color: rgba(26, 34, 48, 0.22);
}

.theme-icon-dark, .theme-icon-light {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.5;
    color: var(--text-primary);
}
[data-theme="light"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light {
    color: #1a2230;
    opacity: 0.7;
}
.theme-icon-dark { left: 0.5rem; }
.theme-icon-light { right: 0.5rem; }

.pref-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.pref-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.pref-toggle-track {
    position: relative;
    width: 3.25rem;
    height: 1.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border-accent);
    background: rgba(91, 163, 245, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.pref-toggle-knob {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--accent, #5ba3f5);
    box-shadow: 0 0 10px rgba(91, 163, 245, 0.35);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pref-toggle input:checked + .pref-toggle-track {
    background: rgba(91, 163, 245, 0.28);
}
.pref-toggle input:checked + .pref-toggle-track .pref-toggle-knob {
    transform: translateX(1.5rem);
}
.pref-toggle input:focus-visible + .pref-toggle-track {
    outline: 2px solid var(--accent, #5ba3f5);
    outline-offset: 2px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cards */
.spotlight-card {
    background: var(--surface, rgba(17, 17, 17, 0.85));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.spotlight-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 8px 40px rgba(91, 163, 245, 0.1);
    transform: translateY(-2px);
}

.product-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 14rem;
}
.product-card__logo {
    position: absolute;
    right: -6%;
    top: 52%;
    width: min(58%, 13.5rem);
    transform: translateY(-50%);
    opacity: 0.22;
    mix-blend-mode: screen;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    filter: saturate(1.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.product-card__body {
    position: relative;
    z-index: 1;
    max-width: 72%;
}
.product-card:hover .product-card__logo {
    opacity: 0.32;
    transform: translateY(-50%) scale(1.04);
}
[data-theme="light"] .product-card__logo {
    mix-blend-mode: multiply;
    opacity: 0.14;
    filter: saturate(1.05) brightness(0.55);
}
[data-theme="light"] .product-card:hover .product-card__logo {
    opacity: 0.2;
}
@media (max-width: 639px) {
    .product-card__body { max-width: 100%; }
    .product-card__logo {
        width: min(72%, 11rem);
        opacity: 0.16;
        right: -10%;
    }
}

[data-theme="light"] .spotlight-card {
    background: var(--surface);
    color: var(--text-primary, #1a2230);
}

@media (max-width: 639px) {
    .spotlight-card {
        padding: 1.25rem;
    }
}

.pricing-page {
    padding-bottom: 1rem;
}
.pricing-hero {
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 2.25rem;
}
.pricing-hero-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--accent, #5ba3f5);
    margin-bottom: 0.75rem;
}
.pricing-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 0.85rem;
}
.pricing-hero-lead {
    max-width: 34rem;
    margin: 0 auto 1.25rem;
    opacity: 0.72;
    font-size: 1.05rem;
    line-height: 1.55;
}
.pricing-hero-pills {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 0.75rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 163, 245, 0.22);
    background: rgba(91, 163, 245, 0.06);
    font-size: 0.82rem;
    opacity: 0.88;
}
.pricing-hero-pills-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent, #5ba3f5);
    opacity: 0.55;
}
[data-theme="light"] .pricing-hero-pills {
    background: rgba(61, 114, 201, 0.06);
    border-color: rgba(61, 114, 201, 0.2);
}

.pricing-shell {
    max-width: 68rem;
    margin: 0 auto;
    padding: 1.5rem 1.35rem 1.75rem;
    border-radius: 22px;
    border: 1px solid rgba(91, 163, 245, 0.2);
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91, 163, 245, 0.1), transparent 60%),
        var(--surface, rgba(17, 17, 17, 0.72));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .pricing-shell {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(61, 114, 201, 0.08), transparent 60%),
        var(--surface, #f6f8fc);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.pricing-shell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.15rem 0.35rem 1.25rem;
    border-bottom: 1px solid rgba(91, 163, 245, 0.14);
}
.pricing-shell-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 12rem;
}
.pricing-shell-kicker {
    font-family: inherit;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent, #5ba3f5);
    margin: 0 0 0.15rem;
}
.pricing-shell-title {
    font-size: 1.75rem;
    color: var(--accent, #5ba3f5);
    margin: 0;
    line-height: 1.15;
}
.pricing-shell-desc {
    max-width: 28rem;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.7;
}
@media (max-width: 767px) {
    .pricing-shell {
        padding: 1.15rem 0.9rem 1.25rem;
        border-radius: 16px;
    }
    .pricing-shell-head {
        flex-direction: column;
        gap: 0.85rem;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.15rem;
    }
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.4rem 1.35rem;
    border-radius: 16px;
    border: 1px solid var(--border, rgba(91, 163, 245, 0.16));
    background: var(--surface, rgba(12, 14, 20, 0.88));
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.pricing-card:hover {
    border-color: rgba(91, 163, 245, 0.32);
    transform: translateY(-2px);
}
.pricing-card.is-featured {
    border-color: rgba(91, 163, 245, 0.48);
    box-shadow: 0 0 0 1px rgba(91, 163, 245, 0.12), 0 18px 48px rgba(91, 163, 245, 0.14);
    background:
        linear-gradient(180deg, rgba(91, 163, 245, 0.1), transparent 38%),
        var(--surface, rgba(12, 14, 20, 0.92));
}
[data-theme="light"] .pricing-card {
    background: #fff;
}
[data-theme="light"] .pricing-card.is-featured {
    background: linear-gradient(180deg, rgba(61, 114, 201, 0.08), #fff 42%);
}

.pricing-popular {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: var(--accent, #5ba3f5);
    color: #0a0a0a;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pricing-card-name {
    font-size: 1.35rem;
    color: var(--accent, #5ba3f5);
    margin: 0 0 0.2rem;
}
.pricing-card-tagline {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.58;
}
.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 1.1rem 0 0;
}
.pricing-card-price .font-display {
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.03em;
}
.pricing-card-period {
    font-size: 0.95rem;
    opacity: 0.55;
}

.pricing-features {
    list-style: none;
    margin: 1.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.82;
}
.pricing-feature.is-off {
    opacity: 0.38;
}
.pricing-check {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(91, 163, 245, 0.14);
    color: var(--accent, #5ba3f5);
    font-size: 0.7rem;
    font-weight: 700;
}
.pricing-feature.is-off .pricing-check {
    background: rgba(148, 163, 184, 0.12);
    color: inherit;
}
.pricing-card-cta {
    margin-top: auto;
    padding-top: 1.4rem;
}
.pricing-card-cta .btn-gold,
.pricing-card-cta .btn-gold-outline {
    width: 100%;
}

.pricing-tour {
    max-width: 42rem;
    margin: 2.25rem auto 0;
}
.pricing-tour .vf-tour-video {
    margin: 0;
}

.pricing-soon {
    max-width: 68rem;
    margin: 2.25rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px dashed rgba(91, 163, 245, 0.32);
    background: rgba(91, 163, 245, 0.04);
}
.pricing-soon-title {
    font-size: 1.2rem;
    color: var(--accent, #5ba3f5);
    margin: 0.35rem 0 0.25rem;
}
.pricing-soon p {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.65;
    max-width: 36rem;
}
.pricing-soon-link {
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .pricing-soon {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.15rem 1.1rem;
    }
}

.pricing-note,
.pricing-fineprint {
    text-align: center;
    max-width: 36rem;
    margin: 1.75rem auto 0;
    font-size: 0.8rem;
    opacity: 0.5;
    line-height: 1.5;
}
.pricing-fineprint a {
    color: var(--accent, #5ba3f5);
    text-decoration: underline;
}
.pricing-discount {
    max-width: 24rem;
    margin: 2rem auto 0;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(91, 163, 245, 0.18);
    background: var(--surface, rgba(17, 17, 17, 0.75));
}
.pricing-discount label {
    display: block;
    font-size: 0.82rem;
    font-family: inherit;
    color: var(--accent, #5ba3f5);
    margin-bottom: 0.45rem;
}
.pricing-discount-hint {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    opacity: 0.5;
}

/* Docs */
/* Docs sidebar — mobile: horizontal chip strip (never sticky, never overlaid) */
.doc-sidebar {
    position: relative;
    z-index: 1;
    padding: 0.75rem 0.85rem;
    /* Opaque enough that scrolled content can't bleed through */
    background: rgba(12, 14, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .doc-sidebar {
    background: rgba(248, 250, 253, 0.97);
}
.doc-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.doc-sidebar__eyebrow {
    margin: 0;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: #5ba3f5;
}
.doc-nav {
    display: flex;
    gap: 0.4rem;
    margin: 0.65rem -0.85rem 0;
    padding: 0.1rem 0.85rem 0.2rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.85rem, #000 calc(100% - 1.6rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 0.85rem, #000 calc(100% - 1.6rem), transparent 100%);
}
.doc-nav::-webkit-scrollbar { display: none; }

.doc-sidebar .nav-link-doc {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.42rem 0.85rem;
    border: 1px solid rgba(91, 163, 245, 0.18);
    border-radius: 999px;
    border-left: 1px solid rgba(91, 163, 245, 0.18);
    background: rgba(91, 163, 245, 0.04);
    font-size: 0.78rem;
    color: rgba(91, 163, 245, 0.8);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.doc-sidebar .nav-link-doc:hover {
    color: #5ba3f5;
    border-color: rgba(91, 163, 245, 0.4);
    background: rgba(91, 163, 245, 0.1);
}
.doc-sidebar .nav-link-doc.active {
    color: #0a0a0a;
    font-weight: 600;
    background: var(--accent, #5ba3f5);
    border-color: var(--accent, #5ba3f5);
}
[data-theme="light"] .doc-sidebar .nav-link-doc { color: rgba(26, 34, 48, 0.78); }
[data-theme="light"] .doc-sidebar .nav-link-doc:hover { color: #1a2230; }

.doc-content {
    position: relative;
    z-index: 0;
    min-width: 0;
}

/* Architecture flow diagram */
.arch-flow {
    margin: 0 0 2rem 0;
    padding: 0;
}
.arch-flow__img {
    display: block;
    width: 100%;
    max-width: 820px;
    height: auto;
    margin: 0 auto;
    padding: 0.75rem;
    background: rgba(17, 17, 17, 0.55);
    object-fit: contain;
}
[data-theme="light"] .arch-flow__img {
    background: rgba(255, 255, 255, 0.85);
}
@media (max-width: 639px) {
    .arch-flow__img {
        padding: 0.5rem;
    }
}

/* Docs hub cards — tighter on phones */
@media (max-width: 639px) {
    .docs-hub-title {
        font-size: 1.65rem !important;
        margin-bottom: 0.65rem !important;
    }
    .docs-hub-lead {
        margin-bottom: 1.25rem !important;
        font-size: 0.92rem;
        line-height: 1.5;
    }
    .docs-hub-grid {
        gap: 0.75rem !important;
    }
    .docs-hub-grid .spotlight-card {
        padding: 1.1rem 1.15rem;
    }
    .docs-hub-grid .spotlight-card:hover {
        transform: none;
    }
}

/* Desktop — vertical sticky sidebar */
@media (min-width: 1024px) {
    .doc-sidebar {
        position: sticky;
        top: calc(var(--nav-height) + 1.25rem);
        z-index: 5;
        align-self: flex-start;
        max-height: calc(100vh - var(--nav-height) - 2.5rem);
        overflow-y: auto;
        padding: 1rem;
        background: rgba(12, 14, 20, 0.97);
    }
    [data-theme="light"] .doc-sidebar {
        background: rgba(248, 250, 253, 0.98);
    }
    .doc-sidebar__eyebrow {
        margin-bottom: 0.15rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
    .doc-nav {
        flex-direction: column;
        gap: 0.15rem;
        margin: 0.85rem 0 0;
        padding: 0;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .doc-sidebar .nav-link-doc {
        display: block;
        padding: 0.4rem 0.75rem;
        border: none;
        border-left: 2px solid transparent;
        border-radius: 0;
        background: transparent;
        font-size: 0.875rem;
        font-weight: 400;
        color: rgba(91, 163, 245, 0.6);
        white-space: normal;
    }
    .doc-sidebar .nav-link-doc:hover,
    .doc-sidebar .nav-link-doc.active {
        color: #5ba3f5;
        font-weight: 400;
        border-left-color: #5ba3f5;
        background: rgba(91, 163, 245, 0.06);
    }
    [data-theme="light"] .doc-sidebar .nav-link-doc { color: rgba(26, 34, 48, 0.78); }
    [data-theme="light"] .doc-sidebar .nav-link-doc:hover,
    [data-theme="light"] .doc-sidebar .nav-link-doc.active { color: #1a2230; }
}

/* Account sidebar */
/* Account sidebar — mobile: compact identity bar + scrollable chip nav */
.account-sidebar {
    padding: 0.85rem 0.9rem;
}

.account-sidebar__identity {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.account-sidebar__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: rgba(91, 163, 245, 0.14);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(91, 163, 245, 0.3);
    color: #5ba3f5;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
}
.account-sidebar__avatar.has-image {
    color: transparent;
    border-color: rgba(201, 169, 98, 0.45);
}
.account-sidebar__avatar.has-image span {
    visibility: hidden;
}
.account-sidebar__meta {
    flex: 1;
    min-width: 0;
}
.account-sidebar__eyebrow {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: #5ba3f5;
}
.account-sidebar__name {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-sidebar__email {
    display: none;
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    opacity: 0.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-sidebar__badge {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 0.05rem 0.45rem;
    border: 1px solid rgba(91, 163, 245, 0.4);
    border-radius: 999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: #5ba3f5;
}
.account-sidebar__signout {
    font-size: 0.72rem;
    opacity: 0.5;
    transition: color 0.2s, opacity 0.2s;
}
.account-sidebar__signout:hover {
    opacity: 1;
    color: #f87171;
}
.account-sidebar__signout--compact {
    flex-shrink: 0;
    white-space: nowrap;
}
.account-sidebar__foot {
    display: none;
}

.account-nav {
    display: flex;
    gap: 0.4rem;
    /* bleed to the card edges so chips scroll edge-to-edge */
    margin: 0.75rem -0.9rem 0;
    padding: 0.15rem 0.9rem 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.9rem, #000 calc(100% - 1.75rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 0.9rem, #000 calc(100% - 1.75rem), transparent 100%);
}
.account-nav::-webkit-scrollbar {
    display: none;
}
.account-nav-group {
    display: contents;
}
.account-nav-group__label {
    display: none;
}
.account-nav-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0.42rem 0.75rem 0.42rem 0.5rem;
    border: 1px solid rgba(91, 163, 245, 0.18);
    border-radius: 999px;
    background: rgba(91, 163, 245, 0.04);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: rgba(91, 163, 245, 0.75);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.account-nav-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.4rem;
    background: rgba(91, 163, 245, 0.12);
    color: #5ba3f5;
    flex-shrink: 0;
}
.account-nav-link__icon svg {
    width: 0.82rem;
    height: 0.82rem;
}
.account-nav-link__icon--overview { background: rgba(91, 163, 245, 0.18); color: #7eb6f7; }
.account-nav-link__icon--card { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.account-nav-link__icon--key { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
.account-nav-link__icon--download { background: rgba(167, 139, 250, 0.16); color: #a78bfa; }
.account-nav-link__icon--notes { background: rgba(244, 114, 182, 0.16); color: #f472b6; }
.account-nav-link__icon--widget { background: rgba(45, 212, 191, 0.16); color: #2dd4bf; }
.account-nav-link__icon--skill { background: rgba(251, 146, 60, 0.16); color: #fb923c; }
.account-nav-link__icon--stripe { background: rgba(99, 102, 241, 0.18); color: #818cf8; }
.account-nav-link:hover {
    color: #5ba3f5;
    border-color: rgba(91, 163, 245, 0.4);
    background: rgba(91, 163, 245, 0.1);
}
.account-nav-link.active {
    color: #0a0a0a;
    font-weight: 600;
    background: var(--accent, #5ba3f5);
    border-color: var(--accent, #5ba3f5);
}
.account-nav-link.active .account-nav-link__icon {
    background: rgba(10, 10, 10, 0.16);
    color: #0a0a0a;
}
.account-content.is-switching {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.12s ease;
}
[data-theme="light"] .account-nav-link { color: rgba(26, 34, 48, 0.78); }
[data-theme="light"] .account-nav-link:hover { color: #1a2230; }

/* Desktop — restore the vertical sidebar */
@media (min-width: 1024px) {
    .account-sidebar {
        position: sticky;
        top: calc(var(--nav-height) + 1.5rem);
        align-self: flex-start;
        padding: 1rem;
    }
    .account-sidebar__identity {
        display: block;
    }
    .account-sidebar__avatar,
    .account-sidebar__signout--compact {
        display: none;
    }
    .account-sidebar__eyebrow {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
    .account-sidebar__email {
        display: block;
        margin-top: 0.2rem;
        font-size: 0.72rem;
        opacity: 0.5;
    }
    .account-sidebar__foot {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        margin-top: 1.35rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(91, 163, 245, 0.15);
    }
    .account-sidebar__foot-link {
        font-size: 0.75rem;
        opacity: 0.55;
    }
    .account-sidebar__foot-link:hover {
        opacity: 1;
        color: var(--accent, #5ba3f5);
    }
    .account-nav {
        display: flex;
        flex-direction: column;
        gap: 1.05rem;
        margin: 1.1rem 0 0;
        padding: 0;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .account-nav-group {
        display: flex;
        flex-direction: column;
        gap: 0.12rem;
    }
    .account-nav-group__label {
        display: block;
        margin: 0 0 0.28rem 0.7rem;
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(226, 232, 245, 0.38);
    }
    .account-nav-link {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.48rem 0.65rem 0.48rem 0.55rem;
        border: none;
        border-radius: 0.7rem;
        background: transparent;
        font-size: 0.82rem;
        letter-spacing: 0.01em;
        color: rgba(226, 232, 245, 0.62);
    }
    .account-nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 2px;
        border-radius: 99px;
        background: transparent;
    }
    .account-nav-link:hover {
        color: #e2e8f5;
        background: rgba(91, 163, 245, 0.07);
    }
    .account-nav-link.active {
        color: #e2e8f5;
        font-weight: 600;
        background: rgba(91, 163, 245, 0.12);
        box-shadow: inset 0 0 0 1px rgba(91, 163, 245, 0.16);
    }
    .account-nav-link.active::before {
        background: var(--accent, #5ba3f5);
    }
    .account-nav-link.active .account-nav-link__icon {
        background: inherit;
        color: inherit;
    }
    [data-theme="light"] .account-nav-group__label { color: rgba(26, 34, 48, 0.4); }
    [data-theme="light"] .account-nav-link { color: rgba(26, 34, 48, 0.72); }
    [data-theme="light"] .account-nav-link:hover,
    [data-theme="light"] .account-nav-link.active { color: #1a2230; }
}

/* Settings tabs */
.settings-tabs-root {
    padding: 1.5rem;
}
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(91, 163, 245, 0.15);
    padding-bottom: 0.75rem;
}
.settings-tab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(226, 232, 245, 0.65);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.settings-tab:hover {
    color: #e2e8f5;
    background: rgba(91, 163, 245, 0.08);
}
.settings-tab--active {
    color: #e2e8f5;
    background: rgba(91, 163, 245, 0.14);
    border-color: rgba(91, 163, 245, 0.35);
}
.settings-panel {
    padding-top: 0.25rem;
}
[data-theme="light"] .settings-tab {
    color: rgba(26, 34, 48, 0.72);
}
[data-theme="light"] .settings-tab:hover,
[data-theme="light"] .settings-tab--active {
    color: #1a2230;
    background: rgba(61, 114, 201, 0.14);
}

/* Link Socials: css/socials.css */


.method-badge {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-weight: 600;
}
.method-get { background: rgba(22, 163, 74, 0.2); color: #16a34a; }
.method-post { background: rgba(29, 78, 216, 0.2); color: #1d4ed8; }

.callout-gold {
    border-left: 3px solid #5ba3f5;
    background: rgba(91, 163, 245, 0.08);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

/*
 * VocalFuse UI wireframes — docs page replicas of the desktop app UI.
 * Palette: dark gray background, blue + light blue accents, Segoe UI font.
 */

/* --- Color tokens --- */
:root {
    --vf-bg: #161616;
    --vf-bg-elevated: #222222;
    --vf-text-primary: #e2e8f5;
    --vf-text-muted: rgba(226, 232, 245, 0.55);
    --vf-gold: #5ba3f5;
    --vf-gold-bright: #98C0EF;
    --vf-maroon: #3d72c9;
    --vf-maroon-deep: #2563eb;
    --vf-input-edge: rgba(91, 163, 245, 0.45);
    --vf-switch-off: #333333;
}

/* --- Wireframe containers --- */
.rv-wireframe-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}
.rv-wireframe {
    background: var(--vf-bg);
    border: 1.5px solid var(--vf-gold);
    border-radius: 12px;
    padding: 1.25rem;
    flex: 1 1 280px;
}
.rv-wireframe-label {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vf-text-muted);
    margin-bottom: 0.75rem;
}

/* --- Floating pill (from render.cpp) --- */
.rv-pill {
    display: flex;
    align-items: center;
    width: 268px;
    height: 40px;
    padding: 4px;
    border-radius: 999px;
    background: var(--vf-bg);
    border: 2px solid var(--vf-gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
}
/* Animated gradient border effect (light blue → blue → light blue) */
.rv-pill::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: linear-gradient(
        110deg,
        var(--vf-gold-bright) 0%,
        var(--vf-gold) 22%,
        var(--vf-maroon) 50%,
        var(--vf-maroon-deep) 78%,
        var(--vf-gold-bright) 100%
    );
    z-index: -1;
    border-radius: 999px;
    opacity: 0.9;
}
.rv-pill--recording { border-color: var(--vf-gold-bright); }
.rv-pill--recording::before {
    background: linear-gradient(
        110deg,
        var(--vf-gold-bright) 0%,
        var(--vf-gold-bright) 30%,
        var(--vf-gold) 50%,
        var(--vf-gold-bright) 70%,
        var(--vf-gold-bright) 100%
    );
}
.rv-pill--busy { border-color: var(--vf-maroon); }
.rv-pill--busy::before {
    background: linear-gradient(
        110deg,
        var(--vf-maroon) 0%,
        var(--vf-maroon-deep) 50%,
        var(--vf-maroon) 100%
    );
    opacity: 0.7;
}
/* Drag grip (from draw_drag_grip — 3 horizontal lines) */
.rv-pill-grip {
    width: 22px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}
.rv-pill-grip span {
    display: block;
    width: 10px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--vf-text-muted);
}
/* Pill body (logo + text/visualizer + controls) */
.rv-pill-body {
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    gap: 8px;
}
/* Brand logo (from branding.cpp — VocalFuse_Logo.png) */
.rv-pill-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='24' height='24' rx='4' fill='%23161616'/%3E%3Ctext x='12' y='17' font-size='14' font-weight='bold' text-anchor='middle' fill='%235ba3f5' font-family='Segoe UI'%3EVF%3C/text%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}
/* Audio visualizer (16 bars — blue bars) */
.rv-pill-bars {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    gap: 1.5px;
}
.rv-pill-bars i {
    display: block;
    flex: 1;
    max-width: 3px;
    border-radius: 1px;
    background: var(--vf-gold);
    align-self: center;
    opacity: 0.85;
}
.rv-pill-bars i:nth-child(1) { height: 30%; }
.rv-pill-bars i:nth-child(2) { height: 50%; }
.rv-pill-bars i:nth-child(3) { height: 70%; }
.rv-pill-bars i:nth-child(4) { height: 90%; }
.rv-pill-bars i:nth-child(5) { height: 100%; }
.rv-pill-bars i:nth-child(6) { height: 85%; }
.rv-pill-bars i:nth-child(7) { height: 60%; }
.rv-pill-bars i:nth-child(8) { height: 40%; }
.rv-pill-bars i:nth-child(9) { height: 55%; }
.rv-pill-bars i:nth-child(10) { height: 75%; }
.rv-pill-bars i:nth-child(11) { height: 65%; }
.rv-pill-bars i:nth-child(12) { height: 45%; }
.rv-pill-bars i:nth-child(13) { height: 35%; }
.rv-pill-bars i:nth-child(14) { height: 50%; }
.rv-pill-bars i:nth-child(15) { height: 30%; }
.rv-pill-bars i:nth-child(16) { height: 40%; }
/* Pill caption text */
.rv-pill-caption {
    font-size: 0.7rem;
    color: var(--vf-text-muted);
    margin-top: 0.65rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* --- Settings dialog (from settings.cpp — 460px, rounded 16px, cards 12px) --- */
.rv-settings {
    max-width: 460px;
    background: var(--vf-bg);
    border: 2px solid var(--vf-gold);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    position: relative;
}
.rv-settings::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(
        110deg,
        var(--vf-gold-bright) 0%,
        var(--vf-gold) 22%,
        var(--vf-maroon) 50%,
        var(--vf-maroon-deep) 78%,
        var(--vf-gold-bright) 100%
    );
    z-index: -1;
    opacity: 0.85;
}
.rv-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid rgba(91, 163, 245, 0.2);
}
.rv-settings-header h4 {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--vf-text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}
.rv-settings-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(91, 163, 245, 0.35);
    color: var(--vf-maroon);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    background: var(--vf-bg-elevated);
}
.rv-settings-body { padding: 1rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
/* Cards (from settings.cpp — background_elevated, radius 12px) */
.rv-settings-card {
    background: var(--vf-bg-elevated);
    border: 1px solid rgba(91, 163, 245, 0.15);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.rv-settings-card h5 {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--vf-text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
/* Chevron for collapsible sections (from settings.cpp FillPolygon) */
.rv-settings-card h5::after {
    content: '▾';
    margin-left: auto;
    color: var(--vf-text-muted);
    font-size: 0.65rem;
}
.rv-settings-field label {
    display: block;
    font-size: 0.68rem;
    color: var(--vf-text-muted);
    margin-bottom: 0.3rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
/* Input chrome (rounded 8px, blue edge on focus) */
.rv-settings-input {
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--vf-input-edge);
    background: var(--vf-bg-elevated);
    padding: 0 0.65rem;
    font-size: 0.75rem;
    color: var(--vf-text-primary);
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    align-items: center;
}
/* Status lines (gold=checking, green=valid, red=error) */
.rv-settings-status {
    font-size: 0.68rem;
    color: #166534;
    margin-top: 0.4rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.rv-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
/* Toggle switch (46x26, blue thumb when on) */
.rv-switch {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--vf-switch-off);
    border: 1px solid rgba(91, 163, 245, 0.3);
    position: relative;
    flex-shrink: 0;
}
.rv-switch--on {
    background: var(--vf-gold);
    border-color: var(--vf-gold);
}
.rv-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}
.rv-switch--on::after { transform: translateX(20px); }
.rv-settings-meta {
    font-size: 0.7rem;
    color: var(--vf-text-muted);
    line-height: 1.5;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.rv-settings-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--vf-gold);
    color: var(--vf-text-primary);
    font-size: 0.7rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: transparent;
}
.rv-annotate {
    position: relative;
}
.rv-annotate-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.75rem;
    opacity: 0.75;
}
.rv-annotate-list li {
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 2px solid var(--vf-gold);
    margin-bottom: 0.35rem;
}

/* --- Mode picker popup (from mode_picker.cpp) --- */
.rv-mode-picker {
    background: var(--vf-bg);
    border: 1.5px solid var(--vf-gold);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: 240px;
}
.rv-mode-picker-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.78rem;
    color: var(--vf-text-primary);
    border-bottom: 1px solid rgba(91, 163, 245, 0.1);
    gap: 0.5rem;
    height: 30px;
}
.rv-mode-picker-item:last-child { border-bottom: none; }
.rv-mode-picker-item--selected {
    background: var(--vf-bg-elevated);
}
.rv-mode-picker-item--hover {
    background: rgba(91, 163, 245, 0.08);
}
.rv-mode-picker-check {
    color: var(--vf-gold);
    font-size: 0.7rem;
}
.doc-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.doc-toc a {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(91, 163, 245, 0.25);
    border-radius: 999px;
    color: rgba(91, 163, 245, 0.8);
}
.doc-toc a:hover { color: #5ba3f5; border-color: #5ba3f5; }
.doc-section { scroll-margin-top: 6rem; }

/* Long-doc grouped subnav (VibeFuse) */
.doc-content--has-subnav .doc-section,
.doc-content--has-subnav #faq {
    scroll-margin-top: 7.5rem;
}
.vf-subnav {
    position: sticky;
    top: calc(var(--nav-height) + 0.65rem);
    z-index: 8;
    margin: 0 0 1.35rem;
    border: 1px solid rgba(91, 163, 245, 0.22);
    border-radius: 1rem;
    background: rgba(12, 14, 20, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .vf-subnav {
    background: rgba(248, 250, 253, 0.97);
    box-shadow: 0 8px 22px rgba(26, 34, 48, 0.08);
}
.vf-subnav__bar {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
}
.vf-subnav__toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}
.vf-subnav__eyebrow {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5ba3f5;
}
.vf-subnav__current {
    display: block;
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vf-subnav__toggle .vf-subnav__eyebrow,
.vf-subnav__toggle .vf-subnav__current {
    pointer-events: none;
}
.vf-subnav__toggle {
    flex-wrap: wrap;
}
.vf-subnav__toggle .vf-subnav__eyebrow {
    width: calc(100% - 1.4rem);
}
.vf-subnav__toggle .vf-subnav__current {
    width: calc(100% - 1.4rem);
}
.vf-subnav__chevron {
    width: 0.45rem;
    height: 0.45rem;
    margin-left: auto;
    border-right: 2px solid #5ba3f5;
    border-bottom: 2px solid #5ba3f5;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}
.vf-subnav.is-open .vf-subnav__chevron {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
}
.vf-subnav__search {
    display: none;
}
.vf-subnav.is-open .vf-subnav__search {
    display: block;
}
.vf-subnav__search input {
    width: 100%;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(91, 163, 245, 0.22);
    border-radius: 0.65rem;
    background: rgba(91, 163, 245, 0.05);
    color: inherit;
    font-size: 0.82rem;
}
.vf-subnav__search input:focus {
    outline: none;
    border-color: #5ba3f5;
    box-shadow: 0 0 0 3px rgba(91, 163, 245, 0.18);
}
.vf-subnav__panel {
    display: none;
    max-height: min(68vh, 28rem);
    overflow-y: auto;
    padding: 0 0.55rem 0.75rem;
    border-top: 1px solid rgba(91, 163, 245, 0.12);
}
.vf-subnav.is-open .vf-subnav__panel {
    display: block;
}
.vf-subnav__group {
    margin: 0.55rem 0 0;
}
.vf-subnav__group-label {
    list-style: none;
    cursor: pointer;
    padding: 0.35rem 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(91, 163, 245, 0.72);
}
.vf-subnav__group-label::-webkit-details-marker { display: none; }
.vf-subnav__links {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.vf-subnav__links a {
    padding: 0.42rem 0.6rem;
    border-left: 2px solid transparent;
    border-radius: 0 0.45rem 0.45rem 0;
    font-size: 0.84rem;
    line-height: 1.3;
    color: #9ec4ee;
    text-decoration: none;
}
.vf-subnav__links a:hover {
    color: #5ba3f5;
    background: rgba(91, 163, 245, 0.08);
}
.vf-subnav__links a.is-active {
    color: #98C0EF;
    border-left-color: #5ba3f5;
    background: rgba(91, 163, 245, 0.12);
    font-weight: 600;
}
[data-theme="light"] .vf-subnav__links a { color: rgba(26, 34, 48, 0.78); }
[data-theme="light"] .vf-subnav__links a.is-active { color: #1a2230; }
.vf-subnav__top {
    display: block;
    margin: 0.75rem 0.35rem 0.15rem;
    font-size: 0.75rem;
    color: rgba(91, 163, 245, 0.7);
}
.vf-subnav.is-empty .vf-subnav__panel::after {
    content: 'No matching sections';
    display: block;
    padding: 0.75rem 0.45rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (min-width: 1280px) {
    .doc-content--has-subnav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 16.5rem;
        gap: 1.75rem;
        align-items: start;
    }
    .doc-content--has-subnav > .vf-subnav {
        order: 2;
        top: calc(var(--nav-height) + 1.25rem);
        margin: 0;
        max-height: calc(100vh - var(--nav-height) - 2.5rem);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .doc-content--has-subnav > .doc-content-main {
        order: 1;
        min-width: 0;
    }
    .vf-subnav__toggle {
        cursor: default;
    }
    .vf-subnav__chevron {
        display: none;
    }
    .vf-subnav__search {
        display: block;
    }
    .vf-subnav__panel {
        display: block;
        flex: 1;
        max-height: none;
        overflow-y: auto;
    }
    .doc-content--has-subnav .doc-section,
    .doc-content--has-subnav #faq {
        scroll-margin-top: 6rem;
    }
}

/* VocalFuse C++ UI replicas (matches render.cpp + settings.cpp) */
.vfc-pill {
    width: 248px;
    height: 38px;
    padding: 3px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.vfc-pill-inner {
    width: 242px;
    height: 32px;
    display: flex;
    align-items: center;
    background: #161616;
    border: 1.5px solid #5ba3f5;
    border-radius: 16px;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.vfc-pill--idle .vfc-pill-inner,
.vfc-pill--note-ready .vfc-pill-inner { border-color: #5ba3f5; }
.vfc-pill--recording .vfc-pill-inner,
.vfc-pill--note-taking .vfc-pill-inner { border-color: #98C0EF; }
.vfc-pill--busy .vfc-pill-inner,
.vfc-pill--note-sending .vfc-pill-inner { border-color: #3d72c9; }

.vfc-pill-drag {
    width: 18px;
    height: 32px;
    margin-left: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}
.vfc-pill-drag span {
    display: block;
    width: 8px;
    height: 1px;
    background: rgba(226, 232, 245, 0.4);
}
.vfc-pill-logo {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    flex-shrink: 0;
}
.vfc-pill-center {
    flex: 1;
    min-width: 0;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 6px 0 8px;
}
.vfc-pill-label {
    font-size: 11px;
    line-height: 1;
    color: #e2e8f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vfc-pill--busy .vfc-pill-label,
.vfc-pill--note-sending .vfc-pill-label { font-size: 10px; }
.vfc-pill-label--bright { color: #98C0EF; }

.vfc-pill-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 28px;
    gap: 1.5px;
}
.vfc-pill-bars i {
    display: block;
    flex: 1;
    max-width: 4px;
    min-height: 2px;
    border-radius: 1px;
    background: #5ba3f5;
}
.vfc-pill-bars--recording i:nth-child(1) { height: 35%; opacity: 0.85; }
.vfc-pill-bars--recording i:nth-child(2) { height: 55%; opacity: 0.9; }
.vfc-pill-bars--recording i:nth-child(3) { height: 72%; }
.vfc-pill-bars--recording i:nth-child(4) { height: 90%; }
.vfc-pill-bars--recording i:nth-child(5) { height: 100%; }
.vfc-pill-bars--recording i:nth-child(6) { height: 82%; }
.vfc-pill-bars--recording i:nth-child(7) { height: 64%; }
.vfc-pill-bars--recording i:nth-child(8) { height: 48%; }
.vfc-pill-bars--recording i:nth-child(9) { height: 58%; }
.vfc-pill-bars--recording i:nth-child(10) { height: 76%; }
.vfc-pill-bars--recording i:nth-child(11) { height: 92%; }
.vfc-pill-bars--recording i:nth-child(12) { height: 100%; }
.vfc-pill-bars--recording i:nth-child(13) { height: 70%; }
.vfc-pill-bars--recording i:nth-child(14) { height: 52%; }
.vfc-pill-bars--recording i:nth-child(15) { height: 40%; }
.vfc-pill-bars--recording i:nth-child(16) { height: 30%; }
.vfc-pill-bars--note-taking i:nth-child(1) { height: 28%; }
.vfc-pill-bars--note-taking i:nth-child(2) { height: 42%; }
.vfc-pill-bars--note-taking i:nth-child(3) { height: 58%; }
.vfc-pill-bars--note-taking i:nth-child(4) { height: 74%; }
.vfc-pill-bars--note-taking i:nth-child(5) { height: 88%; }
.vfc-pill-bars--note-taking i:nth-child(6) { height: 96%; }
.vfc-pill-bars--note-taking i:nth-child(7) { height: 100%; }
.vfc-pill-bars--note-taking i:nth-child(8) { height: 92%; }
.vfc-pill-bars--note-taking i:nth-child(9) { height: 78%; }
.vfc-pill-bars--note-taking i:nth-child(10) { height: 66%; }
.vfc-pill-bars--note-taking i:nth-child(11) { height: 54%; }
.vfc-pill-bars--note-taking i:nth-child(12) { height: 62%; }
.vfc-pill-bars--note-taking i:nth-child(13) { height: 80%; }
.vfc-pill-bars--note-taking i:nth-child(14) { height: 94%; }
.vfc-pill-bars--note-taking i:nth-child(15) { height: 86%; }
.vfc-pill-bars--note-taking i:nth-child(16) { height: 72%; }

.vfc-pill-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 8px;
    flex-shrink: 0;
}
.vfc-pill-switch {
    width: 36px;
    height: 16px;
    border-radius: 999px;
    background: #333333;
    position: relative;
    flex-shrink: 0;
}
.vfc-pill-switch--on { background: #5ba3f5; }
.vfc-pill-switch span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #98C0EF;
    transition: transform 0.2s;
}
.vfc-pill-switch--on span { transform: translateX(20px); }

.vfc-pill-icon {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
    border-radius: 50%;
}
.vfc-pill-icon.is-hover { background: rgba(91, 163, 245, 0.28); }
.vfc-pill-icon--settings::before,
.vfc-pill-icon--settings::after {
    content: '';
    position: absolute;
    border: 1.4px solid #5ba3f5;
    border-radius: 50%;
    box-sizing: border-box;
}
.vfc-pill-icon--settings::before {
    inset: 3px;
}
.vfc-pill-icon--settings::after {
    width: 6px;
    height: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.vfc-pill-icon--close::before,
.vfc-pill-icon--close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.6px;
    background: #e88686;
    border-radius: 1px;
}
.vfc-pill-icon--close::before { transform: translate(-50%, -50%) rotate(45deg); }
.vfc-pill-icon--close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.vfc-ui-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.vfc-ui-card {
    background: #050505;
    border: 1px solid rgba(91, 163, 245, 0.18);
    border-radius: 12px;
    padding: 1.25rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.vfc-ui-card-label {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5ba3f5;
    align-self: flex-start;
}
.vfc-ui-card-caption {
    font-size: 0.75rem;
    color: rgba(226, 232, 245, 0.55);
    text-align: center;
    line-height: 1.45;
    margin: 0;
}

.vfc-settings {
    width: 100%;
    max-width: 460px;
    background: #161616;
    border: 1px solid rgba(91, 163, 245, 0.22);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #e2e8f5;
}
.vfc-settings-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 64px;
    padding: 0 28px;
    background: linear-gradient(180deg, #111111 0%, #161616 100%);
    border-bottom: 1px solid #5ba3f5;
    position: relative;
}
.vfc-settings-logo { flex-shrink: 0; }
.vfc-settings-titles { flex: 1; min-width: 0; }
.vfc-settings-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    color: #98C0EF;
}
.vfc-settings-subtitle {
    margin: 0.15rem 0 0;
    font-size: 12px;
    color: rgba(226, 232, 245, 0.55);
}
.vfc-settings-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(91, 163, 245, 0.35);
    color: #5ba3f5;
    display: grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
}
.vfc-settings-body {
    padding: 16px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vfc-settings-card {
    background: #222222;
    border: 1px solid rgba(91, 163, 245, 0.28);
    border-radius: 12px;
    padding: 16px;
}
.vfc-settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.vfc-settings-card-head--nested { margin-bottom: 0; }
.vfc-settings-card-head h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #98C0EF;
    line-height: 1.2;
}
.vfc-settings-card-head p {
    margin: 0.25rem 0 0;
    font-size: 12px;
    color: rgba(226, 232, 245, 0.55);
    line-height: 1.35;
}
.vfc-settings-card-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(91, 163, 245, 0.19);
}
.vfc-settings-card-body--nested {
    margin-top: 8px;
    padding-top: 8px;
}
.vfc-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid #5ba3f5;
    border-bottom: 2px solid #5ba3f5;
    transform: rotate(45deg);
    margin-top: 4px;
    flex-shrink: 0;
    opacity: 0.85;
}
.vfc-chevron--open { transform: rotate(-135deg); margin-top: 8px; }

.vfc-settings-switch {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #333333;
    border: 1px solid rgba(91, 163, 245, 0.35);
    position: relative;
    flex-shrink: 0;
}
.vfc-settings-switch--on { background: #3d72c9; }
.vfc-settings-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #98C0EF;
}
.vfc-settings-switch--on span { transform: translateX(20px); }

.vfc-field-label {
    display: block;
    font-size: 11px;
    color: rgba(226, 232, 245, 0.55);
    margin: 0 0 6px;
}
.vfc-field-input {
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(91, 163, 245, 0.35);
    background: #111111;
    padding: 0 10px;
    font-size: 12px;
    color: #e2e8f5;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.vfc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.vfc-field-col .vfc-field-input { margin-bottom: 12px; }
.vfc-field-status {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
}
.vfc-field-status--ok { color: #86efac; }
.vfc-version-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    color: rgba(226, 232, 245, 0.55);
}
.vfc-version-line strong { color: #e2e8f5; font-weight: 600; }

.vfc-tray-scene {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5rem;
    min-height: 160px;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid rgba(91, 163, 245, 0.15);
    border-radius: 12px;
}
.vfc-tray-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    place-items: center;
}
.vfc-tray-menu {
    min-width: 140px;
    background: #f3f3f3;
    color: #1a1a1a;
    border: 1px solid #999;
    border-radius: 0;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.35);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 12px;
    overflow: hidden;
}
.vfc-tray-item {
    padding: 6px 24px 6px 28px;
    cursor: default;
}
.vfc-tray-item--muted { color: #888; }
.vfc-tray-sep {
    height: 1px;
    background: #d4d4d4;
    margin: 2px 0;
}

.vfc-desktop-scene {
    background: #0d0d0d;
    border: 1px solid rgba(91, 163, 245, 0.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.vfc-desktop-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #161616;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vfc-desktop-toolbar span:first-child,
.vfc-desktop-toolbar span:nth-child(2),
.vfc-desktop-toolbar span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}
.vfc-desktop-toolbar span:first-child { background: #7f1d1d; }
.vfc-desktop-toolbar span:nth-child(2) { background: #854d0e; }
.vfc-desktop-toolbar span:nth-child(3) { background: #166534; }
.vfc-desktop-title {
    margin-left: 8px;
    font-size: 11px;
    color: rgba(226, 232, 245, 0.45);
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.vfc-desktop-content {
    position: relative;
    min-height: 220px;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91, 163, 245, 0.06) 0%, transparent 60%),
        #0a0a0a;
}
.vfc-desktop-hint {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(91, 163, 245, 0.55);
}
.vfc-desktop-doc {
    width: min(100%, 320px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.35;
}
.vfc-desktop-doc-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(91, 163, 245, 0.25);
    width: 100%;
}
.vfc-desktop-doc-line--wide { width: 88%; }
.vfc-desktop-doc-line--short { width: 42%; }

.vfc-ui-showcase {
    display: grid;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .vfc-ui-showcase-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        align-items: start;
    }
}

/* VocalFuse product page */
.vf-stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 2rem 0 2.5rem;
}
@media (min-width: 768px) {
    .vf-stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vf-stat {
    text-align: center;
    padding: 1rem 0.75rem;
    border: 1px solid rgba(91, 163, 245, 0.2);
    border-radius: 8px;
    background: rgba(91, 163, 245, 0.04);
}
.vf-stat-value {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.35rem;
    color: #5ba3f5;
    line-height: 1.2;
}
.vf-stat-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-top: 0.35rem;
}
.vf-step-grid {
    display: grid;
    gap: 1rem;
    counter-reset: vf-step;
}
@media (min-width: 768px) {
    .vf-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .vf-step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vf-step {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3.25rem;
    border: 1px solid rgba(91, 163, 245, 0.18);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.35);
    counter-increment: vf-step;
}
.vf-step::before {
    content: counter(vf-step);
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 163, 245, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    color: #5ba3f5;
}
.vf-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.vf-compare-table th,
.vf-compare-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(91, 163, 245, 0.15);
    text-align: left;
    vertical-align: top;
}
.vf-compare-table th {
    font-family: 'Inter', system-ui, sans-serif;
    color: #5ba3f5;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}
.vf-compare-table td:first-child { opacity: 0.85; }
.vf-compare-table .vf-yes { color: #16a34a; }
.vf-compare-table .vf-no { opacity: 0.35; }
.vf-platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.vf-platform-badge {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 163, 245, 0.3);
    color: rgba(226, 232, 245, 0.85);
}
.vf-terminal {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.55;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(91, 163, 245, 0.22);
    background: rgba(0, 0, 0, 0.45);
}
.vf-use-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .vf-use-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.vocalfuse-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    transition: filter 0.3s ease;
}
.vocalfuse-logo--hero { width: 72px; max-height: 72px; }
.vocalfuse-logo--page { width: 48px; max-height: 48px; }
.vocalfuse-logo--card { width: 40px; max-height: 40px; }
.vocalfuse-hero-brand,
.vocalfuse-page-title,
.vocalfuse-card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.vocalfuse-page-title { margin-bottom: 2rem; }
.vocalfuse-card-title { margin-bottom: 1rem; }
.account-product-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}
.account-product-label .vocalfuse-logo {
    width: 36px;
    max-height: 36px;
}
.vocalfuse-logo--vibefuse.vocalfuse-logo--card,
.vocalfuse-logo--vibefuse.vocalfuse-logo--page {
    object-fit: contain;
}
.vocalfuse-card-title .vocalfuse-logo--vibefuse {
    filter: drop-shadow(0 0 10px rgba(143, 176, 212, 0.18));
}
[data-theme="light"] .vocalfuse-card-title .vocalfuse-logo--vibefuse {
    filter: none;
}

/* Docs enhancements */
.doc-hero {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(91, 163, 245, 0.15);
}
.doc-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}
.doc-badge {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 163, 245, 0.28);
    color: rgba(226, 232, 245, 0.85);
    background: rgba(91, 163, 245, 0.06);
}
.doc-quickstart {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .doc-quickstart { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.doc-quickstart-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(91, 163, 245, 0.2);
    border-radius: 10px;
    background: rgba(91, 163, 245, 0.05);
}
.doc-quickstart-card strong {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    color: #5ba3f5;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}
.doc-quickstart-card p {
    font-size: 0.8rem;
    opacity: 0.75;
    margin: 0;
}
.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    margin: 1rem 0 1.5rem;
}
.doc-table th,
.doc-table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(91, 163, 245, 0.15);
    text-align: left;
    vertical-align: top;
}
.doc-table th {
    font-family: 'Inter', system-ui, sans-serif;
    color: #5ba3f5;
    background: rgba(91, 163, 245, 0.06);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}
.doc-code-block {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.55;
    padding: 1rem 1.15rem;
    border-radius: 8px;
    border: 1px solid rgba(91, 163, 245, 0.2);
    background: rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 1rem 0;
}
.doc-related-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}
@media (min-width: 640px) {
    .doc-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.doc-related-link {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(91, 163, 245, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: border-color 0.2s, background 0.2s;
}
.doc-related-link:hover {
    border-color: rgba(91, 163, 245, 0.45);
    background: rgba(91, 163, 245, 0.06);
    color: #e2e8f5;
}
.doc-related-link span {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    color: #5ba3f5;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.legal-content h3 { margin-top: 0; }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: #5ba3f5; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.animate-pulse-slow { animation: pulseSlow 4s ease-in-out infinite; }

.text-gradient-gold {
    background: linear-gradient(90deg, #3d72c9, #5ba3f5, #a5c9f5, #5ba3f5, #3d72c9);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}
@keyframes shine {
    to { background-position: 200% center; }
}

.text-shadow-glow { text-shadow: 0 0 24px rgba(91, 163, 245, 0.35); }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.4); }
::-webkit-scrollbar-thumb {
    background: rgba(91, 163, 245, 0.45);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent, #5ba3f5); }
* { scrollbar-width: thin; scrollbar-color: rgba(91, 163, 245, 0.5) rgba(0, 0, 0, 0.4); }

/* Alerts */
.alert-error {
    background: rgba(185, 28, 28, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.alert-success {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.note-kind {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 163, 245, 0.35);
    color: #98C0EF;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.note-kind--summary {
    border-color: rgba(250, 204, 21, 0.35);
    color: #facc15;
}
.note-panel {
    padding: 0;
    overflow: hidden;
}
.note-panel-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.15rem;
}
.note-panel-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 14rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.note-panel-toggle:focus-visible {
    outline: 2px solid rgba(91, 163, 245, 0.55);
    outline-offset: 3px;
    border-radius: 8px;
}
.note-panel-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    color: rgba(91, 163, 245, 0.85);
    transition: transform 0.18s ease;
}
.note-panel.is-open > .note-panel-summary .note-panel-chevron {
    transform: rotate(90deg);
}
.note-panel-heading h3 {
    line-height: 1.3;
}
.note-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}
.note-download-menu {
    position: relative;
}
.note-download-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 40;
    min-width: 11.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(91, 163, 245, 0.22);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.note-download-panel[hidden] {
    display: none !important;
}
.note-download-item {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    font-size: 0.78rem;
    color: rgba(226, 232, 245, 0.88);
    text-decoration: none;
    white-space: nowrap;
}
.note-download-item:hover {
    background: rgba(91, 163, 245, 0.12);
    color: #5ba3f5;
}
[data-theme="light"] .note-download-item {
    color: rgba(26, 35, 50, 0.85);
}
[data-theme="light"] .note-download-item:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #3d72c9;
}
[data-theme="light"] .note-download-panel {
    border-color: rgba(26, 35, 50, 0.12);
}
.note-panel-body {
    padding: 0 1.15rem 1.15rem;
    border-top: 1px solid rgba(91, 163, 245, 0.12);
    padding-top: 1rem;
}
.note-panel-body[hidden] {
    display: none;
}
[data-theme="light"] .note-panel-body {
    border-top-color: rgba(26, 35, 50, 0.1);
}
[data-theme="light"] .note-panel-chevron {
    color: rgba(74, 144, 226, 0.9);
}

body.note-modal-open {
    overflow: hidden;
}
.note-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.note-modal[hidden] {
    display: none !important;
}
.note-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.72);
    backdrop-filter: blur(4px);
}
.note-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    padding: 1.35rem 1.4rem 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.note-modal-lead {
    font-weight: 600;
    color: var(--text-primary, #e2e8f5);
    word-break: break-word;
}
.note-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}
.note-modal-confirm {
    background: rgba(185, 28, 28, 0.92) !important;
    border-color: rgba(248, 113, 113, 0.55) !important;
    color: #fee2e2 !important;
}
.note-modal-confirm:hover {
    background: rgba(220, 38, 38, 0.98) !important;
}
[data-theme="light"] .note-modal-backdrop {
    background: rgba(15, 23, 42, 0.45);
}
[data-theme="light"] .note-modal-lead {
    color: #1a2230;
}
.note-body,
.note-editor {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.55;
}
.note-body {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(8, 12, 20, 0.45);
    border: 1px solid rgba(91, 163, 245, 0.15);
    max-height: 22rem;
    overflow: auto;
}
.note-body--compact {
    max-height: 12rem;
}
.note-section-label {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 245, 0.55);
}
.note-section--follow {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(91, 163, 245, 0.12);
}
.note-transcript-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.note-transcript-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    color: rgba(226, 232, 245, 0.55);
}
.note-inline-edit {
    color: #5ba3f5;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.note-inline-edit:hover {
    text-decoration: underline;
}
.note-edit-meta {
    margin-bottom: 0.45rem;
}
.note-editable .note-section-label {
    margin-top: 0.15rem;
}
.note-editable.is-editing .note-edit-form {
    margin-top: 0.25rem;
}
[data-theme="light"] .note-body {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(26, 35, 50, 0.12);
}
[data-theme="light"] .note-section-label,
[data-theme="light"] .note-transcript-meta {
    color: rgba(26, 35, 50, 0.55);
}
[data-theme="light"] .note-section--follow {
    border-top-color: rgba(26, 35, 50, 0.1);
}

/* Intro overlay */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    overflow: hidden;
}
#intro-overlay .intro-brand-link {
    display: flex;
    justify-content: center;
    max-width: min(100%, 28rem);
}
#intro-overlay .intro-brand-link .fuse-logo__name {
    text-shadow: 0 0 30px rgba(91, 163, 245, 0.35);
}
.intro-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #5ba3f5, transparent);
    width: 0;
    max-width: 300px;
    margin: 1.5rem auto;
}

/* Site footer */
.site-footer {
    position: relative;
    z-index: 20;
    padding: 4rem 0 2.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.9) 25%, #000000 100%);
}

[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(196, 204, 216, 0.92) 30%, #b8c1d0 100%);
}

.site-footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(91, 163, 245, 0.15) 20%,
        rgba(91, 163, 245, 0.85) 50%,
        rgba(91, 163, 245, 0.15) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: footerGlowSweep 6s ease-in-out infinite;
}

.site-footer-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(91, 163, 245, 0.12) 0%, transparent 70%);
    opacity: 0.6;
    animation: footerShimmerPulse 5s ease-in-out infinite;
    pointer-events: none;
}

[data-theme="light"] .site-footer-shimmer {
    background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
}

.site-footer-orb {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    animation: footerOrbFloat 12s ease-in-out infinite;
}

.site-footer-orb--left {
    bottom: -80px;
    left: -60px;
    background: rgba(91, 163, 245, 0.35);
}

.site-footer-orb--right {
    bottom: -40px;
    right: -40px;
    background: rgba(74, 144, 226, 0.28);
    animation-delay: -6s;
}

.site-footer-inner {
    position: relative;
    z-index: 1;
}

.site-footer-logo {
    transition: filter 0.4s ease, transform 0.4s ease;
}

.site-footer-logo:hover {
    transform: translateY(-2px);
}

.site-footer-tagline {
    color: rgba(226, 232, 245, 0.55);
    line-height: 1.65;
}

[data-theme="light"] .site-footer-tagline {
    color: rgba(26, 35, 50, 0.65);
}

.site-footer-accent-line {
    width: 48px;
    height: 2px;
    margin-top: 1.25rem;
    background: linear-gradient(90deg, #5ba3f5, transparent);
    border-radius: 2px;
    transform-origin: left;
    opacity: 1;
}

.site-footer.footer-animate .site-footer-accent-line {
    width: 0;
    opacity: 0;
    animation: footerLineGrow 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.site-footer.footer-animate.is-visible .site-footer-accent-line {
    animation: footerLineGrow 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.site-footer-heading {
    color: #5ba3f5;
    opacity: 0.95;
}

[data-theme="light"] .site-footer-heading {
    color: #1a2230;
}

.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer-links li {
    margin-bottom: 0.15rem;
}

.site-footer-links a {
    display: inline-block;
    position: relative;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: rgba(226, 232, 245, 0.55);
    transition: color 0.35s ease, transform 0.35s ease;
    overflow: hidden;
}

[data-theme="light"] .site-footer-links a {
    color: rgba(26, 35, 50, 0.6);
}

.site-footer-links a span {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.2rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #5ba3f5, rgba(91, 163, 245, 0.2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-footer-links a:hover {
    color: #5ba3f5;
}

.site-footer-links a:hover span {
    transform: translateX(4px);
}

.site-footer-links a:hover::before {
    transform: scaleX(1);
}

[data-theme="light"] .site-footer-links a:hover {
    color: #1a2230;
}

.site-footer-divider {
    height: 1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(91, 163, 245, 0.35) 20%,
        rgba(91, 163, 245, 0.35) 80%,
        transparent
    );
    opacity: 1;
    transform: scaleX(1);
}

.site-footer.footer-animate .site-footer-divider {
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity 1s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-footer.footer-animate.is-visible .site-footer-divider {
    opacity: 1;
    transform: scaleX(1);
}

.site-footer-copy {
    color: rgba(226, 232, 245, 0.35);
    letter-spacing: 0.04em;
}

[data-theme="light"] .site-footer-copy {
    color: rgba(26, 35, 50, 0.45);
}

.footer-reveal {
    opacity: 1;
    transform: none;
}

.site-footer.footer-animate .footer-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--footer-delay, 0s);
}

.site-footer.footer-animate.is-visible .footer-reveal {
    opacity: 1;
    transform: translateY(0);
}

@keyframes footerGlowSweep {
    0%, 100% { background-position: 100% 0; opacity: 0.7; }
    50% { background-position: 0% 0; opacity: 1; }
}

@keyframes footerShimmerPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1); }
    50% { opacity: 0.75; transform: scaleY(1.08); }
}

@keyframes footerOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-15px, 10px) scale(0.95); }
}

@keyframes footerLineGrow {
    from { width: 0; opacity: 0; }
    to { width: 48px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer-glow,
    .site-footer-shimmer,
    .site-footer-orb,
    .fuse-logo__name,
    .fuse-logo__mark,
    .site-footer-accent-line {
        animation: none;
    }
    .footer-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .site-footer-divider {
        opacity: 1;
        transform: none;
    }
}

@media (hover: none) {
    .theme-toggle { min-width: 44px; min-height: 44px; }
}

.vf-tour-video {
    margin: 0 auto;
    max-width: 960px;
}
.vf-tour-video--landing,
.vf-tour-video--pricing,
.vf-tour-video--downloads,
.vbf-tour-video {
    max-width: 1040px;
}
.vf-tour-video-frame {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(91, 163, 245, 0.28);
    background: #10141c;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.vf-tour-video-frame video {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    background: #10141c;
}
.vf-tour-video-caption {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(226, 232, 245, 0.62);
    text-align: center;
}
[data-theme="light"] .vf-tour-video-frame {
    border-color: rgba(37, 99, 235, 0.22);
    background: #d5dce7;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .vf-tour-video-frame video {
    background: #d5dce7;
}
[data-theme="light"] .vf-tour-video-caption {
    color: rgba(30, 41, 59, 0.65);
}
.vf-tour-section {
    margin: 0 auto 2.5rem;
}
.vf-tour-section-title {
    font-family: inherit;
    text-align: center;
    margin: 0 0 1rem;
}

/* Company catalog — multi-product + community */
.nav-soon-badge {
    display: inline-flex;
    align-items: center;
    font-style: normal;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #5ba3f5);
    border: 1px solid rgba(91, 163, 245, 0.35);
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
    opacity: 0.85;
    white-space: nowrap;
}
.dropdown-item.is-soon,
.mobile-nav-link.is-soon {
    opacity: 0.78;
}
.site-footer-links .nav-soon-badge {
    margin-left: 0.4rem;
    vertical-align: middle;
}

.doc-nav-group {
    display: contents;
}
.doc-nav-group__label {
    display: none;
}
@media (min-width: 1024px) {
    .doc-nav-group {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        margin-top: 0.85rem;
    }
    .doc-nav-group:first-child {
        margin-top: 0;
    }
    .doc-nav-group__label {
        display: block;
        margin: 0 0 0.25rem;
        padding: 0 0.75rem;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--accent, #5ba3f5);
        opacity: 0.7;
    }
}

/* VibeFuse UI replicas (matches renderer global.css + installer) */
.vbf-app,
.vbf-settings,
.vbf-installer,
.vbf-widget,
.vbf-dialog,
.vbf-menu,
.vbf-soon {
    --vbf-bg0: #07090e;
    --vbf-bg1: #0b1018;
    --vbf-bg2: #121826;
    --vbf-steel: #8fb0d4;
    --vbf-gold: #d4a35a;
    --vbf-ink: #eef2f8;
    --vbf-dim: #9aa8bc;
    --vbf-faint: #66748a;
    --vbf-danger: #ff6b7a;
    --vbf-stroke: rgba(232, 220, 190, 0.08);
    font-family: Outfit, Inter, system-ui, sans-serif;
    color: var(--vbf-ink);
}
.vbf-app {
    position: relative;
    margin: 1.25rem 0 1.75rem;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(143, 176, 212, 0.22);
    background: var(--vbf-bg0);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}
.vbf-ambient {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.vbf-ambient .a,
.vbf-ambient .b {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
}
.vbf-ambient .a { top: -90px; left: 28%; background: radial-gradient(circle, #3d5f86 0%, transparent 68%); }
.vbf-ambient .b { right: -40px; bottom: -80px; background: radial-gradient(circle, #8a5c22 0%, transparent 70%); }
.vbf-titlebar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 0 0 18px;
}
.vbf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
}
.vbf-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: transparent;
}
.vbf-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.vbf-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.vbf-brand-copy strong { font-size: 15px; letter-spacing: 0.02em; }
.vbf-brand-copy small { font-size: 11px; color: var(--vbf-dim); }
.vbf-title-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-left: 10px;
}
.vbf-circle {
    width: 32px;
    height: 32px;
    margin-right: 6px;
    border-radius: 50%;
    border: 1px solid var(--vbf-stroke);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--vbf-ink);
}
.vbf-win {
    display: flex;
    height: 32px;
}
.vbf-win span {
    width: 46px;
    height: 32px;
    display: grid;
    place-items: center;
}
.vbf-win span::before {
    content: '';
    width: 10px;
    height: 1px;
    background: var(--vbf-dim);
}
.vbf-win span:nth-child(2)::before {
    width: 9px;
    height: 9px;
    border: 1px solid var(--vbf-dim);
    background: transparent;
}
.vbf-win .is-close:hover { background: #e81123; }
.vbf-win .is-close::before {
    content: '×';
    width: auto;
    height: auto;
    background: none;
    color: var(--vbf-dim);
    font-size: 16px;
    line-height: 1;
}
.vbf-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 320px;
}
.vbf-rail {
    padding: 8px 10px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vbf-rail-toggle {
    font-size: 11px;
    color: var(--vbf-dim);
    text-align: right;
    padding: 6px 8px;
}
.vbf-nav-label {
    margin: 10px 8px 2px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--vbf-faint);
}
.vbf-rail button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--vbf-dim);
    font-size: 13px;
    text-align: left;
    cursor: default;
}
.vbf-rail button.is-on {
    background: linear-gradient(90deg, rgba(143, 176, 212, 0.14), transparent);
    color: var(--vbf-steel);
    box-shadow: inset 3px 0 0 var(--vbf-steel);
}
.vbf-dot {
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vbf-faint);
}
.vbf-dot.is-ready {
    background: var(--vbf-gold);
    box-shadow: 0 0 8px var(--vbf-gold);
}
.vbf-nav-foot { margin-top: auto; }
.vbf-main {
    padding: 6px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.vbf-sessions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vbf-sessions span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--vbf-stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--vbf-dim);
    font-size: 12px;
}
.vbf-sessions span.is-on {
    color: var(--vbf-ink);
    border-color: rgba(143, 176, 212, 0.45);
    background: rgba(143, 176, 212, 0.12);
}
.vbf-sessions em { font-style: normal; opacity: 0.55; }
.vbf-plus {
    width: 28px;
    height: 28px;
    padding: 0 !important;
    justify-content: center;
}
.vbf-canvas {
    position: relative;
    flex: 1;
    min-height: 240px;
    border-radius: 22px;
    border: 1px solid var(--vbf-stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    overflow: hidden;
}
.vbf-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--vbf-stroke);
    background: rgba(11, 16, 24, 0.78);
    font-size: 11px;
    color: var(--vbf-dim);
}
.vbf-zoom b { color: var(--vbf-steel); padding: 0 6px; }
.vbf-widget {
    position: absolute;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid var(--vbf-stroke);
    background: rgba(14, 20, 32, 0.88);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.vbf-widget--solo {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    height: 180px;
    margin: 0.5rem 0 1rem;
}
.vbf-widget header {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-bottom: 1px solid var(--vbf-stroke);
    font-size: 13px;
}
.vbf-widget header small { color: var(--vbf-faint); font-size: 11px; }
.vbf-wh { flex: 1; }
.vbf-widget header i {
    width: 22px;
    font-style: normal;
    color: var(--vbf-dim);
    text-align: center;
    font-size: 12px;
}
.vbf-term {
    flex: 1;
    padding: 10px 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.55;
    background: #07090e;
    color: #c9d4e4;
}
.vbf-term .ok { color: var(--vbf-steel); }
.vbf-term .dim { color: var(--vbf-faint); }
.vbf-web {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0b1018;
}
.vbf-web-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
}
.vbf-web-bar span,
.vbf-web-bar em {
    font-size: 11px;
    color: var(--vbf-steel);
    font-style: normal;
}
.vbf-web-bar input {
    flex: 1;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--vbf-stroke);
    background: rgba(0, 0, 0, 0.28);
    color: var(--vbf-dim);
    padding: 0 12px;
    font-size: 11px;
}
.vbf-web-page {
    flex: 1;
    margin: 0 10px 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, #121826, #0b1018);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--vbf-dim);
}
.vbf-caption {
    margin: 0;
    padding: 10px 16px 14px;
    font-size: 0.8rem;
    color: rgba(226, 232, 245, 0.62);
    text-align: center;
    position: relative;
    z-index: 2;
}
.vbf-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.vbf-titlebar .vbf-dock {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
}
.vbf-pill {
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(143, 176, 212, 0.18);
    background: rgba(11, 16, 24, 0.74);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    display: grid;
    align-items: center;
    justify-items: center;
}
.vbf-pill.is-quiet { width: 64px; }
.vbf-pill.is-live {
    width: min(280px, 70vw);
    grid-template-columns: 1fr auto 1fr;
    padding: 0 10px;
    gap: 8px;
}
.vbf-pill--recording { border-color: rgba(255, 107, 122, 0.45); }
.vbf-pill--thinking { border-color: rgba(245, 193, 108, 0.4); }
.vbf-pill--speaking {
    border-color: rgba(143, 176, 212, 0.55);
    box-shadow: 0 0 0 6px rgba(143, 176, 212, 0.16);
}
.vbf-hold {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 35% 30%, #c5d6ea, #5b7fa6 56%, #243a58);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 5px rgba(212, 163, 90, 0.18);
    color: #0b1018;
}
.vbf-hold.is-hot {
    background: radial-gradient(circle at 35% 30%, #ff9aa4, #ff6b7a 60%, #9a2432);
}
.vbf-hold-icon { font-size: 14px; font-weight: 700; }
.vbf-hold-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--vbf-steel);
    opacity: 0;
}
.vbf-hold.is-busy .vbf-hold-ring {
    opacity: 1;
    animation: vbf-spin 1.1s linear infinite;
}
@keyframes vbf-spin { to { transform: rotate(360deg); } }
.vbf-eq {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 28px;
}
.vbf-eq i {
    display: block;
    width: 3px;
    height: 40%;
    border-radius: 99px;
    background: linear-gradient(180deg, #d4a35a, #3d5f86);
}
.vbf-pill--recording .vbf-eq i:nth-child(odd) { height: 78%; }
.vbf-pill--recording .vbf-eq i:nth-child(3n) { height: 100%; }
.vbf-pill--speaking .vbf-eq i:nth-child(even) { height: 86%; }
.vbf-transcript {
    margin-top: 10px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(11, 16, 24, 0.78);
    border: 1px solid var(--vbf-stroke);
    font-size: 13px;
    line-height: 1.45;
}
.vbf-transcript b {
    display: block;
    color: var(--vbf-steel);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.vbf-transcript-block + .vbf-transcript-block { margin-top: 12px; }
.vbf-examples {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .vbf-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .vbf-examples { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vbf-wire-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(143, 176, 212, 0.75);
    margin-bottom: 0.5rem;
}
.vbf-examples .vbf-dock {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(143, 176, 212, 0.18);
    background: #07090e;
    min-height: 120px;
    justify-content: center;
}
.vbf-settings {
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 280px;
    margin: 0.75rem 0 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(212, 163, 90, 0.18);
    background: rgba(14, 20, 32, 0.94);
    overflow: hidden;
}
.vbf-settings nav {
    padding: 18px 12px;
    border-right: 1px solid var(--vbf-stroke);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vbf-settings h4 {
    margin: 0 8px 12px;
    font-size: 16px;
}
.vbf-set-tab {
    border: 0;
    background: transparent;
    color: var(--vbf-dim);
    text-align: left;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
}
.vbf-set-tab.is-on {
    background: linear-gradient(90deg, rgba(143, 176, 212, 0.14), transparent);
    color: var(--vbf-steel);
}
.vbf-settings-body { padding: 22px 24px; }
.vbf-set-panel { display: none; }
.vbf-set-panel.is-on { display: block; }
.vbf-settings label,
.vbf-help {
    display: block;
    font-size: 12px;
    color: var(--vbf-dim);
    margin: 0 0 6px;
}
.vbf-help { margin-bottom: 12px; line-height: 1.45; }
.vbf-field {
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--vbf-stroke);
    background: rgba(0, 0, 0, 0.28);
    font-size: 13px;
    color: var(--vbf-ink);
}
.vbf-field--swatch::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #8fb0d4;
    margin-right: 8px;
    vertical-align: -1px;
}
.vbf-field--code { font-family: ui-monospace, monospace; font-size: 12px; }
.vbf-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 13px;
}
.vbf-toggle span {
    font-size: 11px;
    color: var(--vbf-gold);
    border: 1px solid rgba(212, 163, 90, 0.35);
    border-radius: 999px;
    padding: 2px 8px;
}
.vbf-probe {
    margin-top: 8px;
    font-size: 12px;
    color: var(--vbf-steel);
}
.vbf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}
.vbf-chips span {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--vbf-stroke);
    color: var(--vbf-dim);
}
.vbf-chips .is-on {
    color: var(--vbf-gold);
    border-color: rgba(212, 163, 90, 0.4);
}
.vbf-about-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin-bottom: 8px;
}
.vbf-settings-body h5 { margin: 0 0 4px; font-size: 18px; }
.vbf-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
}
.vbf-type-tabs button {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 176, 212, 0.28);
    background: rgba(143, 176, 212, 0.06);
    color: rgba(143, 176, 212, 0.9);
    cursor: pointer;
}
.vbf-type-tabs button.is-on {
    background: rgba(212, 163, 90, 0.14);
    border-color: rgba(212, 163, 90, 0.5);
    color: #d4a35a;
}
.vbf-type-panel { display: none; }
.vbf-type-panel.is-on { display: block; }
.vbf-installer {
    width: min(360px, 100%);
    margin: 0.75rem 0 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(143, 176, 212, 0.2);
    background: #07090e;
    padding: 0 0 18px;
    overflow: hidden;
}
.vbf-inst-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--vbf-dim);
}
.vbf-inst-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 14px;
}
.vbf-inst-hero strong { display: block; }
.vbf-inst-hero small { color: var(--vbf-dim); font-size: 12px; }
.vbf-inst-key {
    margin: 0 22px 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(143, 176, 212, 0.22);
    background: #121826;
}
.vbf-inst-key span {
    display: block;
    color: var(--vbf-steel);
    font-size: 11px;
    font-weight: 650;
    margin-bottom: 6px;
}
.vbf-inst-key code {
    display: block;
    color: #eef2f8;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.vbf-inst-key a {
    display: block;
    margin-top: 8px;
    color: var(--vbf-steel);
    font-size: 11px;
    text-decoration: none;
}
.vbf-inst-key a:hover { color: var(--vbf-gold); }
.vbf-inst-steps {
    margin: 0;
    padding: 0 22px;
    list-style: none;
    font-size: 12px;
    max-height: 220px;
    overflow: auto;
}
.vbf-inst-steps li {
    padding: 5px 0 5px 18px;
    position: relative;
    color: var(--vbf-faint);
}
.vbf-inst-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #334155;
}
.vbf-inst-steps .is-done { color: var(--vbf-steel); }
.vbf-inst-steps .is-done::before { background: var(--vbf-steel); }
.vbf-inst-steps .is-run { color: var(--vbf-gold); }
.vbf-inst-steps .is-run::before { background: var(--vbf-gold); box-shadow: 0 0 8px var(--vbf-gold); }
.vbf-inst-meter {
    margin: 12px 22px 8px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
}
.vbf-inst-meter i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #8fb0d4, #d4a35a);
}
.vbf-inst-status {
    margin: 0 22px 12px;
    font-size: 12px;
    color: var(--vbf-dim);
}
.vbf-inst-btn {
    display: block;
    margin: 0 auto;
    width: 160px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #d4a35a;
    color: #14110c;
    font-weight: 700;
    opacity: 0.7;
}
.vbf-dialog-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}
.vbf-menu {
    min-width: 180px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(212, 163, 90, 0.18);
    background: rgba(14, 20, 32, 0.94);
}
.vbf-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--vbf-ink);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    cursor: default;
}
.vbf-dialog {
    flex: 1;
    min-width: 240px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(212, 163, 90, 0.18);
    background: rgba(14, 20, 32, 0.94);
}
.vbf-dialog h5 { margin: 0 0 8px; font-size: 16px; }
.vbf-dialog p { margin: 0 0 14px; font-size: 13px; color: var(--vbf-dim); }
.vbf-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.vbf-dialog-actions span {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--vbf-stroke);
    font-size: 12px;
}
.vbf-dialog-actions .is-danger {
    background: rgba(255, 107, 122, 0.16);
    border-color: rgba(255, 107, 122, 0.4);
    color: #ff8a96;
}
.vbf-soon {
    margin: 0.75rem 0 1.25rem;
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    border: 1px dashed rgba(212, 163, 90, 0.4);
    background: rgba(212, 163, 90, 0.06);
}
.vbf-soon-badge {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d4a35a;
    border: 1px solid rgba(212, 163, 90, 0.4);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}
.vbf-soon h4 { margin: 0 0 0.4rem; font-size: 1.05rem; color: #d4a35a; }
.vbf-soon p { margin: 0; font-size: 0.85rem; color: rgba(238, 242, 248, 0.72); }
@media (max-width: 720px) {
    .vbf-body { grid-template-columns: 1fr; }
    .vbf-rail { display: none; }
    .vbf-settings { grid-template-columns: 1fr; }
    .vbf-settings nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--vbf-stroke); }
}

/* Discord + Fuse brand marks */
.community-brand-marks {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.community-brand-marks__fuse,
.community-brand-marks__discord {
    display: block;
    object-fit: contain;
}
.community-brand-marks--sm .community-brand-marks__fuse,
.community-brand-marks--sm .community-brand-marks__discord,
.community-brand-marks--nav .community-brand-marks__fuse,
.community-brand-marks--nav .community-brand-marks__discord {
    width: 1.05rem;
    height: 1.05rem;
}
.community-brand-marks--md .community-brand-marks__fuse,
.community-brand-marks--md .community-brand-marks__discord {
    width: 1.35rem;
    height: 1.35rem;
}
.community-brand-marks--lg .community-brand-marks__fuse,
.community-brand-marks--lg .community-brand-marks__discord {
    width: 1.85rem;
    height: 1.85rem;
}
.community-brand-marks__discord {
    /* SVG fill is #5865F2; keep img crisp */
    flex-shrink: 0;
}
.community-link__main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.dropdown-item.community-link--discord {
    justify-content: flex-start;
}
.community-link--discord {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
}
.community-card--discord {
    border-color: rgba(88, 101, 242, 0.35);
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(88, 101, 242, 0.14), transparent 55%),
        var(--panel-bg);
}
.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.625rem 1.5rem;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: #5865f2;
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-discord:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.45);
    transform: translateY(-1px);
}
.btn-discord__icons {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-discord__icons img {
    width: 1.1rem;
    height: 1.1rem;
    object-fit: contain;
    display: block;
}
/* Discord mark is brand purple in SVG; invert to white on the blurple button */
.btn-discord__icons img[src*="discord-icon"] {
    filter: brightness(0) invert(1);
}
.site-footer-links .community-link--discord {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
}
[data-theme="light"] .community-card--discord {
    border-color: rgba(88, 101, 242, 0.4);
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(88, 101, 242, 0.12), transparent 55%),
        var(--panel-bg);
}

/* Landing hero — VibeFuse harness stage with inflow animation */
.landing-hero {
    position: relative;
    z-index: 3;
    padding: 2.5rem 0 3.5rem;
    overflow: hidden;
}
.landing-hero__field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.landing-hero__grid {
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(91, 163, 245, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 163, 245, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 58%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 58%, #000 20%, transparent 78%);
    animation: hero-grid-drift 90s linear infinite;
    transform: perspective(900px) rotateX(18deg) scale(1.15);
    transform-origin: 50% 70%;
}
.landing-hero__wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% 62%, rgba(91, 163, 245, 0.18), transparent 70%),
        radial-gradient(ellipse 30% 28% at 12% 20%, rgba(61, 114, 201, 0.16), transparent 70%),
        radial-gradient(ellipse 28% 24% at 90% 18%, rgba(152, 192, 239, 0.12), transparent 72%);
    animation: hero-aura-breathe 16s ease-in-out infinite;
}
.landing-hero__ray {
    position: absolute;
    width: 2px;
    height: 55%;
    top: 8%;
    left: 50%;
    transform-origin: 50% 100%;
    background: linear-gradient(to top, rgba(91, 163, 245, 0.55), rgba(91, 163, 245, 0));
    filter: blur(0.5px);
    opacity: 0.22;
    animation: hero-ray-pulse 14s ease-in-out infinite;
}
.landing-hero__ray--1 { transform: translateX(-50%) rotate(-28deg); animation-delay: 0s; }
.landing-hero__ray--2 { transform: translateX(-50%) rotate(-10deg); animation-delay: 0.4s; height: 62%; }
.landing-hero__ray--3 { transform: translateX(-50%) rotate(10deg); animation-delay: 0.8s; height: 62%; }
.landing-hero__ray--4 { transform: translateX(-50%) rotate(28deg); animation-delay: 1.2s; }
.landing-hero__inner {
    position: relative;
    z-index: 2;
}
.landing-hero__copy {
    position: relative;
    z-index: 2;
    padding-top: 0.5rem;
}
.landing-hero__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.landing-hero__brand .vocalfuse-logo--hero {
    width: clamp(72px, 12vw, 104px);
    max-height: clamp(72px, 12vw, 104px);
    filter: drop-shadow(0 0 28px rgba(91, 163, 245, 0.45));
}
.landing-hero__actions .btn-gold,
.landing-hero__actions .btn-gold-outline {
    min-width: 8.5rem;
}
.landing-hero__feed {
    position: absolute;
    z-index: 1;
    width: 38%;
    height: 38%;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 100%, rgba(91, 163, 245, 0.35), transparent 55%),
        linear-gradient(135deg, transparent 40%, rgba(152, 192, 239, 0.18) 100%);
    filter: blur(14px);
    opacity: 0.45;
    animation: hero-feed-breathe 12s ease-in-out infinite;
}
.landing-hero__feed--nw { top: -4%; left: -2%; transform: rotate(0deg); }
.landing-hero__feed--ne { top: -4%; right: -2%; transform: scaleX(-1); animation-delay: 0.6s; }
.landing-hero__feed--sw { bottom: 4%; left: -2%; transform: scaleY(-1); animation-delay: 1.1s; }
.landing-hero__feed--se { bottom: 4%; right: -2%; transform: scale(-1); animation-delay: 1.7s; }

/* Hero HyperFrames stage — glowing frame + particle field */
.landing-hero__stage {
    --hero-glow-a: rgba(91, 163, 245, 0.95);
    --hero-glow-b: rgba(152, 192, 239, 0.9);
    --hero-glow-c: rgba(61, 114, 201, 0.85);
    --hero-glow-d: rgba(226, 232, 245, 0.55);
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 2.5rem auto 0;
    isolation: isolate;
}
.landing-hero__aura {
    position: absolute;
    inset: -18% -8% -8%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 48% at 50% 42%, rgba(91, 163, 245, 0.34), transparent 68%),
        radial-gradient(ellipse 40% 36% at 18% 78%, rgba(61, 114, 201, 0.22), transparent 70%),
        radial-gradient(ellipse 36% 30% at 86% 18%, rgba(152, 192, 239, 0.18), transparent 72%);
    filter: blur(10px);
    animation: hero-aura-breathe 18s ease-in-out infinite;
}
.landing-hero__orbit {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(91, 163, 245, 0.18);
    box-shadow:
        0 0 24px rgba(91, 163, 245, 0.12),
        inset 0 0 24px rgba(91, 163, 245, 0.06);
    transform: translate(-50%, -50%);
}
.landing-hero__orbit--a {
    width: 118%;
    aspect-ratio: 16 / 10;
    animation: hero-orbit-spin 120s linear infinite;
}
.landing-hero__orbit--b {
    width: 108%;
    aspect-ratio: 16 / 10;
    border-style: dashed;
    border-color: rgba(152, 192, 239, 0.22);
    animation: hero-orbit-spin 90s linear infinite reverse;
}
.landing-hero__orbit--c {
    width: 128%;
    aspect-ratio: 16 / 10;
    border-color: rgba(61, 114, 201, 0.12);
    opacity: 0.7;
    animation: hero-orbit-spin 160s linear infinite;
}
.landing-hero__orbit::before,
.landing-hero__orbit::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hero-glow-a);
    box-shadow: 0 0 14px 3px rgba(91, 163, 245, 0.4);
}
.landing-hero__orbit::before { top: 8%; left: 18%; }
.landing-hero__orbit::after { bottom: 12%; right: 14%; background: var(--hero-glow-b); }
.landing-hero__orbit--b::before { top: 22%; right: 8%; left: auto; }
.landing-hero__orbit--b::after { bottom: 20%; left: 10%; right: auto; }
.landing-hero__particles {
    position: absolute;
    inset: -12% -6%;
    z-index: 2;
    width: auto;
    height: auto;
    pointer-events: none;
}
.landing-hero__beacon {
    position: relative;
    z-index: 3;
    padding: 3px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(91, 163, 245, 0.9), rgba(61, 114, 201, 0.75), rgba(152, 192, 239, 0.85));
    box-shadow:
        0 0 0 1px rgba(91, 163, 245, 0.35),
        0 0 40px rgba(91, 163, 245, 0.35),
        0 0 90px rgba(61, 114, 201, 0.28),
        0 28px 80px rgba(0, 0, 0, 0.55);
    animation: hero-border-pulse 9s ease-in-out infinite;
}
.landing-hero__beacon::before {
    content: "";
    position: absolute;
    inset: -60%;
    z-index: 0;
    background: conic-gradient(
        from 0deg,
        var(--hero-glow-c),
        var(--hero-glow-a),
        var(--hero-glow-c),
        #122038,
        var(--hero-glow-c),
        var(--hero-glow-b),
        var(--hero-glow-c)
    );
    opacity: 0.85;
    animation: hero-border-rotate 22s linear infinite;
}
.landing-hero__plasma {
    position: absolute;
    inset: -2px;
    z-index: 1;
    border-radius: 22px;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(91, 163, 245, 0.45), transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(152, 192, 239, 0.35), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(61, 114, 201, 0.4), transparent 50%);
    filter: blur(22px);
    opacity: 0.6;
    animation: hero-plasma-shift 14s ease-in-out infinite alternate;
}
.landing-hero__sheen {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: 22px;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
}
.landing-hero__sheen::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -30%;
    width: 45%;
    height: 180%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(226, 232, 245, 0.18) 45%,
        rgba(91, 163, 245, 0.28) 50%,
        rgba(226, 232, 245, 0.12) 55%,
        transparent 75%
    );
    transform: translateX(-120%) skewX(-18deg);
    animation: hero-sheen-sweep 16s ease-in-out infinite;
}
.landing-hero__scan {
    position: absolute;
    left: 3%;
    right: 3%;
    height: 28%;
    top: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(91, 163, 245, 0.16),
        rgba(91, 163, 245, 0.04) 40%,
        transparent 100%
    );
    mix-blend-mode: screen;
    animation: hero-scan-travel 12s ease-in-out infinite;
}
.landing-hero__corners {
    position: absolute;
    inset: 10px;
    z-index: 5;
    pointer-events: none;
}
.landing-hero__corners span {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(152, 192, 239, 0.95);
    border-style: solid;
    filter: drop-shadow(0 0 8px rgba(91, 163, 245, 0.8));
    animation: hero-corner-pulse 7s ease-in-out infinite;
}
.landing-hero__corners span:nth-child(1) {
    top: 0; left: 0;
    border-width: 2px 0 0 2px;
    border-radius: 6px 0 0 0;
}
.landing-hero__corners span:nth-child(2) {
    top: 0; right: 0;
    border-width: 2px 2px 0 0;
    border-radius: 0 6px 0 0;
    animation-delay: 0.3s;
}
.landing-hero__corners span:nth-child(3) {
    bottom: 0; left: 0;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 6px;
    animation-delay: 0.6s;
}
.landing-hero__corners span:nth-child(4) {
    bottom: 0; right: 0;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 6px 0;
    animation-delay: 0.9s;
}
.landing-hero__video-shell {
    position: relative;
    z-index: 3;
    border-radius: 19px;
    overflow: hidden;
    background: #05080f;
    box-shadow: inset 0 0 0 1px rgba(10, 16, 28, 0.9);
}
.landing-hero__video-shell .vf-tour-video--hero {
    max-width: none;
    margin: 0;
}
.landing-hero__video-shell .vf-tour-video-frame--hero {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #05080f;
}
.landing-hero__video-shell .vf-tour-video-frame--hero video {
    background: #05080f;
}
.landing-hero__stage-label {
    margin: 1rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(152, 192, 239, 0.72);
    text-shadow: 0 0 18px rgba(91, 163, 245, 0.35);
    text-align: center;
}
.vf-tour-video-caption--hero {
    margin: 0;
}
.landing-trending {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(91, 163, 245, 0.16);
    background: linear-gradient(160deg, rgba(91, 163, 245, 0.07), rgba(10, 13, 20, 0.35));
}
.landing-trending .mp-kicker,
.landing-trending .mp-slider__arrow:hover {
    color: var(--accent, #5ba3f5);
}
.landing-trending .mp-slider__arrow:hover {
    border-color: rgba(91, 163, 245, 0.4);
}
.landing-trending .mp-slider__controls {
    align-items: center;
}
.landing-trending__all {
    margin-left: 0.5rem;
    white-space: nowrap;
}
.landing-vocal .vf-tour-video {
    margin: 0 auto;
}
[data-theme="light"] .landing-trending {
    border-color: rgba(61, 114, 201, 0.22);
    background: linear-gradient(160deg, rgba(61, 114, 201, 0.08), rgba(255, 255, 255, 0.35));
}
@media (max-width: 640px) {
    .landing-trending__all {
        display: none;
    }
}

@keyframes hero-border-rotate {
    to { transform: rotate(360deg); }
}
@keyframes hero-border-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(91, 163, 245, 0.3),
            0 0 32px rgba(91, 163, 245, 0.24),
            0 0 70px rgba(61, 114, 201, 0.18),
            0 28px 80px rgba(0, 0, 0, 0.55);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(152, 192, 239, 0.42),
            0 0 44px rgba(91, 163, 245, 0.34),
            0 0 90px rgba(61, 114, 201, 0.26),
            0 28px 84px rgba(0, 0, 0, 0.58);
    }
}
@keyframes hero-aura-breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}
@keyframes hero-orbit-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes hero-plasma-shift {
    from { transform: scale(1) rotate(0deg); opacity: 0.5; }
    to { transform: scale(1.04) rotate(3deg); opacity: 0.75; }
}
@keyframes hero-sheen-sweep {
    0%, 55% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
    68% { opacity: 0.45; }
    85% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
    100% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
}
@keyframes hero-scan-travel {
    0% { top: 4%; opacity: 0; }
    15% { opacity: 0.35; }
    50% { top: 62%; opacity: 0.22; }
    85% { opacity: 0.08; }
    100% { top: 78%; opacity: 0; }
}
@keyframes hero-corner-pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}
@keyframes hero-grid-drift {
    to { background-position: 48px 48px; }
}
@keyframes hero-ray-pulse {
    0%, 100% { opacity: 0.1; filter: blur(1px); }
    50% { opacity: 0.32; filter: blur(1.5px); }
}
@keyframes hero-feed-breathe {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

[data-theme="light"] .landing-hero__grid {
    background-image:
        linear-gradient(rgba(61, 114, 201, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 114, 201, 0.08) 1px, transparent 1px);
}
[data-theme="light"] .landing-hero__wash {
    background:
        radial-gradient(ellipse 55% 45% at 50% 62%, rgba(61, 114, 201, 0.14), transparent 70%),
        radial-gradient(ellipse 30% 28% at 12% 20%, rgba(91, 163, 245, 0.12), transparent 70%),
        radial-gradient(ellipse 28% 24% at 90% 18%, rgba(45, 90, 150, 0.1), transparent 72%);
}
[data-theme="light"] .landing-hero__aura {
    background:
        radial-gradient(ellipse 55% 48% at 50% 42%, rgba(61, 114, 201, 0.28), transparent 68%),
        radial-gradient(ellipse 40% 36% at 18% 78%, rgba(45, 90, 150, 0.18), transparent 70%),
        radial-gradient(ellipse 36% 30% at 86% 18%, rgba(91, 163, 245, 0.16), transparent 72%);
}
[data-theme="light"] .landing-hero__beacon {
    --hero-glow-a: rgba(61, 114, 201, 0.95);
    --hero-glow-b: rgba(91, 163, 245, 0.9);
    --hero-glow-c: rgba(45, 90, 150, 0.9);
    --hero-glow-d: rgba(226, 232, 245, 0.75);
    box-shadow:
        0 0 0 1px rgba(45, 90, 150, 0.35),
        0 0 36px rgba(61, 114, 201, 0.28),
        0 0 80px rgba(91, 163, 245, 0.2),
        0 22px 60px rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .landing-hero__stage-label {
    color: rgba(45, 90, 150, 0.78);
    text-shadow: none;
}
[data-theme="light"] .landing-hero__video-shell,
[data-theme="light"] .landing-hero__video-shell .vf-tour-video-frame--hero,
[data-theme="light"] .landing-hero__video-shell .vf-tour-video-frame--hero video {
    background: #d5dce7;
}
[data-theme="light"] .landing-mp-strip code {
    color: rgba(45, 90, 150, 0.9);
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 1.5rem 0 2.5rem;
    }
    .landing-hero__ray {
        display: none;
    }
    .landing-hero__stage {
        margin-top: 1.75rem;
    }
    .landing-hero__orbit--a,
    .landing-hero__orbit--b,
    .landing-hero__orbit--c,
    .landing-hero__feed {
        display: none;
    }
    .landing-hero__beacon {
        border-radius: 16px;
    }
    .landing-hero__video-shell {
        border-radius: 14px;
    }
    .landing-hero__actions .btn-gold,
    .landing-hero__actions .btn-gold-outline {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero__aura,
    .landing-hero__orbit,
    .landing-hero__beacon,
    .landing-hero__beacon::before,
    .landing-hero__plasma,
    .landing-hero__sheen::before,
    .landing-hero__scan,
    .landing-hero__corners span,
    .landing-hero__grid,
    .landing-hero__wash,
    .landing-hero__ray,
    .landing-hero__feed {
        animation: none !important;
    }
    .landing-hero__sheen,
    .landing-hero__scan,
    .landing-hero__particles,
    .landing-hero__ray,
    .landing-hero__grid {
        display: none;
    }
    .landing-hero__beacon {
        background: linear-gradient(135deg, rgba(91, 163, 245, 0.85), rgba(61, 114, 201, 0.75));
        box-shadow:
            0 0 0 1px rgba(91, 163, 245, 0.4),
            0 18px 48px rgba(0, 0, 0, 0.4);
    }
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.72);
    backdrop-filter: blur(8px);
}

.auth-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    padding: 1.6rem 1.5rem 1.35rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.auth-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.auth-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.auth-modal__error {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
    font-size: 0.86rem;
}

.auth-modal__text-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent, #c9a962);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.auth-modal__dialog .btn-google,
.auth-modal__dialog .btn-gold {
    width: 100%;
}

[data-theme="light"] .auth-modal__backdrop {
    background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .auth-modal__close {
    background: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .auth-modal__error {
    background: rgba(254, 226, 226, 0.9);
    color: #991b1b;
}

/* VibeFuse docs — MCP / provider / skills / marketplace clones */
.vbf-settings--tools {
    min-height: 420px;
    grid-template-columns: 140px 1fr;
}
.vbf-settings--tools .vbf-settings-body {
    max-height: 620px;
    overflow: auto;
}
.vbf-mcp-card {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(143, 176, 212, 0.16);
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.92), rgba(11, 16, 24, 0.88));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.vbf-mcp-card--custom {
    background: rgba(7, 9, 14, 0.7);
}
.vbf-mcp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.vbf-mcp-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.vbf-mcp-brand p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--vbf-dim);
    line-height: 1.4;
}
.vbf-mcp-brand strong {
    font-size: 14px;
}
.vbf-mcp-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 1px rgba(143, 176, 212, 0.2);
}
.vbf-mcp-mark.is-drive { background: #0b57d0; }
.vbf-mcp-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vbf-mcp-state {
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--vbf-stroke);
    color: var(--vbf-dim);
    white-space: nowrap;
}
.vbf-mcp-state.is-ready {
    color: #8fd4a8;
    border-color: rgba(143, 212, 168, 0.4);
    background: rgba(143, 212, 168, 0.08);
}
.vbf-mcp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}
.vbf-ghost-btn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid var(--vbf-stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--vbf-ink);
    font-size: 12px;
}
.vbf-ghost-btn.is-accent {
    border-color: rgba(212, 163, 90, 0.45);
    color: var(--vbf-gold);
    background: rgba(212, 163, 90, 0.1);
}
.vbf-ghost-btn.is-danger {
    border-color: rgba(255, 107, 122, 0.4);
    color: #ff8a96;
}
.vbf-help.is-ok { color: #8fd4a8; }
.vbf-inline-link {
    color: var(--vbf-steel);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.vbf-mcp-on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--vbf-gold);
}
.vbf-mcp-on i {
    width: 28px;
    height: 16px;
    border-radius: 99px;
    background: rgba(212, 163, 90, 0.35);
    position: relative;
}
.vbf-mcp-on i::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vbf-gold);
}
.vbf-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}
.vbf-provider-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid var(--vbf-stroke);
    background: rgba(0, 0, 0, 0.22);
    color: var(--vbf-dim);
    text-align: left;
    cursor: pointer;
}
.vbf-provider-card span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    background: rgba(143, 176, 212, 0.12);
    color: var(--vbf-steel);
    flex-shrink: 0;
}
.vbf-provider-card strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.vbf-provider-card.is-on {
    border-color: rgba(143, 176, 212, 0.55);
    background: rgba(143, 176, 212, 0.12);
    color: var(--vbf-ink);
    box-shadow: inset 0 0 0 1px rgba(143, 176, 212, 0.18);
}
.vbf-provider-hint { min-height: 1.4em; }
.vbf-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}
.vbf-skill-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--vbf-stroke);
    background: rgba(7, 9, 14, 0.55);
}
.vbf-skill-card p {
    margin: 6px 0 10px;
    font-size: 12px;
    color: var(--vbf-ink);
    line-height: 1.45;
}
.vbf-skill-card-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}
.vbf-skill-card-top strong {
    display: block;
    font-size: 13px;
}
.vbf-skill-card-top em {
    display: inline-block;
    margin-top: 4px;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vbf-steel);
}
.vbf-skill-card-top em.is-market { color: var(--vbf-gold); }
.vbf-skill-card-top small { color: var(--vbf-faint); font-size: 11px; }
.vbf-widget--agent { height: auto; min-height: 280px; }
.vbf-agent-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #07090e;
}
.vbf-chat-you,
.vbf-chat-ai,
.vbf-chat-tool,
.vbf-chat-composer {
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.5;
}
.vbf-chat-you {
    align-self: flex-end;
    max-width: 88%;
    background: rgba(143, 176, 212, 0.14);
    border: 1px solid rgba(143, 176, 212, 0.22);
}
.vbf-chat-ai {
    max-width: 92%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--vbf-stroke);
}
.vbf-chat-tool {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: var(--vbf-gold);
    border: 1px dashed rgba(212, 163, 90, 0.35);
    background: rgba(212, 163, 90, 0.06);
}
.vbf-chat-composer {
    margin-top: auto;
    color: var(--vbf-faint);
    border: 1px solid var(--vbf-stroke);
    background: rgba(0, 0, 0, 0.28);
}
.vbf-pulse {
    margin: 0.75rem 0 1.25rem;
    padding: 16px 18px 18px;
    border-radius: 20px;
    border: 1px solid rgba(212, 163, 90, 0.22);
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 163, 90, 0.12), transparent 42%),
        linear-gradient(180deg, #121826, #07090e);
}
.vbf-pulse-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}
.vbf-pulse-head span {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vbf-faint);
}
.vbf-pulse-head strong { font-size: 15px; }
.vbf-pulse-head em {
    margin-left: auto;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fd4a8;
}
.vbf-pulse-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.vbf-pulse-dots b {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--vbf-stroke);
    color: var(--vbf-dim);
    cursor: pointer;
}
.vbf-pulse-dots b.is-on {
    color: var(--vbf-gold);
    border-color: rgba(212, 163, 90, 0.5);
    background: rgba(212, 163, 90, 0.1);
}
.vbf-pulse-card { display: none; }
.vbf-pulse-card.is-on { display: block; }
.vbf-pulse-card small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--vbf-steel);
    margin-bottom: 4px;
}
.vbf-pulse-card strong { display: block; font-size: 18px; margin-bottom: 6px; }
.vbf-pulse-card p { margin: 0 0 12px; font-size: 13px; color: var(--vbf-dim); line-height: 1.5; }
.vbf-skill-md {
    margin: 0.75rem 0 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(143, 176, 212, 0.18);
    background: #07090e;
}
.vbf-skill-md-bar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 11px;
    color: var(--vbf-dim);
    border-bottom: 1px solid var(--vbf-stroke);
    background: #121826;
}
.vbf-skill-md-bar em { font-style: normal; color: var(--vbf-gold); }
.vbf-skill-md pre {
    margin: 0;
    padding: 14px 16px 16px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.55;
    color: #c9d4e4;
}
.vbf-account-skill {
    margin: 0.75rem 0 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(212, 163, 90, 0.2);
    background: rgba(14, 20, 32, 0.94);
    overflow: hidden;
}
.vbf-account-skill-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--vbf-stroke);
}
.vbf-account-skill-head strong { display: block; }
.vbf-account-skill-head small { color: var(--vbf-dim); font-size: 12px; }
.vbf-account-skill-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
}
.vbf-account-skill-grid aside {
    padding: 12px;
    border-right: 1px solid var(--vbf-stroke);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vbf-account-skill-grid aside button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--vbf-dim);
    font-size: 12px;
    text-align: left;
}
.vbf-account-skill-grid aside button.is-on {
    background: rgba(143, 176, 212, 0.12);
    color: var(--vbf-ink);
}
.vbf-account-skill-grid aside em {
    font-style: normal;
    font-size: 10px;
    color: var(--vbf-gold);
}
.vbf-account-skill-form { padding: 16px; }
.vbf-field--area { min-height: 72px; color: var(--vbf-faint); }
.vbf-demo-pair {
    display: grid;
    gap: 1rem;
    margin: 0.75rem 0 1.25rem;
}
@media (min-width: 980px) {
    .vbf-demo-pair { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 720px) {
    .vbf-settings--tools { grid-template-columns: 1fr; }
    .vbf-account-skill-grid { grid-template-columns: 1fr; }
    .vbf-account-skill-grid aside { border-right: 0; border-bottom: 1px solid var(--vbf-stroke); }
}


/* ── Creator guide docs (/docs/create-*) ─────────────────────────────────── */
.doc-guide-code {
    margin: 1rem 0 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(91, 163, 245, 0.22);
    background: rgba(0, 0, 0, 0.42);
    overflow: hidden;
}
.doc-guide-code__bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}
.doc-guide-code__file { font-family: 'Courier New', monospace; color: var(--accent, #5ba3f5); }
.doc-guide-code__lang { opacity: 0.5; text-transform: uppercase; font-size: 0.64rem; letter-spacing: 0.12em; }
.doc-guide-code__copy {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.68rem;
    cursor: pointer;
    opacity: 0.75;
}
.doc-guide-code__copy:hover { opacity: 1; border-color: var(--accent, #5ba3f5); }
.doc-guide-code pre {
    margin: 0;
    padding: 0.95rem 1.1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.76rem;
    line-height: 1.55;
    tab-size: 2;
}
.doc-guide-code code { font-family: inherit; white-space: pre; }

.doc-guide-tree {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    line-height: 1.7;
}
.doc-guide-tree__root { color: var(--accent, #5ba3f5); margin-bottom: 0.2rem; }
.doc-guide-tree__row { display: flex; gap: 0.75rem; align-items: baseline; padding-left: calc(var(--d, 0) * 1.35rem + 0.2rem); position: relative; }
.doc-guide-tree__row::before { content: '├─'; opacity: 0.35; margin-right: 0.2rem; }
.doc-guide-tree__name.is-dir { color: #ead7a6; }
.doc-guide-tree__note { opacity: 0.55; font-family: Inter, system-ui, sans-serif; font-size: 0.74rem; }

.doc-guide-steps { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.7rem; }
.doc-guide-steps__item {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}
.doc-guide-steps__num {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent, #5ba3f5);
    background: rgba(91, 163, 245, 0.12);
    border: 1px solid rgba(91, 163, 245, 0.3);
}
.doc-guide-steps__item strong { display: block; margin-bottom: 0.25rem; }
.doc-guide-steps__item p { margin: 0; font-size: 0.88rem; opacity: 0.82; line-height: 1.55; }

.doc-guide-demo {
    margin: 1rem 0 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(91, 163, 245, 0.3);
    background: #0a0f18;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.doc-guide-demo__bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    color: #e2e8f5;
}
.doc-guide-demo__dots { display: inline-flex; gap: 5px; }
.doc-guide-demo__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.doc-guide-demo__dots i:first-child { background: rgba(255, 107, 122, 0.7); }
.doc-guide-demo__tag { margin-left: auto; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7fe2a2; }
.doc-guide-demo__frame { display: block; width: 100%; border: 0; background: #0a0f18; }
.doc-guide-demo__caption { margin: 0; padding: 0.6rem 0.9rem; font-size: 0.8rem; opacity: 0.7; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #e2e8f5; }

.doc-guide-series { display: grid; gap: 0.75rem; margin: 1rem 0 1.5rem; }
@media (min-width: 720px) { .doc-guide-series { grid-template-columns: repeat(3, 1fr); } }
.doc-guide-series__card {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.doc-guide-series__card:hover { border-color: var(--accent, #5ba3f5); transform: translateY(-2px); }
.doc-guide-series__card.is-current { border-color: rgba(91, 163, 245, 0.5); background: rgba(91, 163, 245, 0.08); }
.doc-guide-series__kicker { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent, #5ba3f5); }
.doc-guide-series__card small { opacity: 0.65; font-size: 0.78rem; line-height: 1.4; }

.doc-guide-kv { display: grid; gap: 0.6rem; margin: 0.75rem 0 1.25rem; }
@media (min-width: 720px) { .doc-guide-kv { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.doc-guide-kv div { padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); }
.doc-guide-kv dt { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.doc-guide-kv dd { margin: 0.2rem 0 0; font-size: 0.9rem; }

.doc-guide-check { list-style: none; margin: 0.75rem 0 1.25rem; padding: 0; display: grid; gap: 0.4rem; }
.doc-guide-check li { display: flex; gap: 0.6rem; font-size: 0.88rem; opacity: 0.85; }
.doc-guide-check li::before { content: '✓'; color: #7fe2a2; font-weight: 700; flex: 0 0 auto; }

.doc-guide-token { display: inline-block; width: 0.85em; height: 0.85em; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.25); vertical-align: -0.1em; margin-right: 0.35rem; }

.doc-guide-preview {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--mp-pack-stroke, rgba(255, 255, 255, 0.1));
    background: linear-gradient(160deg, var(--mp-pack-bg1, #0d1017), var(--mp-pack-bg0, #0a0a0c) 60%, var(--mp-pack-bg2, #0d1017));
    color: var(--mp-pack-text, #f5f7fa);
}
.doc-guide-preview__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 0.9rem; }
.doc-guide-preview__head h3 { margin: 0; color: var(--mp-pack-accent, #98c0ef); font-size: 1.05rem; }
.doc-guide-preview__head p { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--mp-pack-text-dim, rgba(245,247,250,0.65)); }
.doc-guide-preview__orb { margin-left: auto; }
.doc-guide-preview .mp-style-workspace { margin: 0; }

[data-theme="light"] .doc-guide-code { border-color: rgba(26, 34, 48, 0.16); background: #1a2230; color: #e2e8f5; }
[data-theme="light"] .doc-guide-code__bar { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.05); }
[data-theme="light"] .doc-guide-code__file { color: #8fc0f5; }
[data-theme="light"] .doc-guide-code__copy { color: #e2e8f5; border-color: rgba(255, 255, 255, 0.2); }
[data-theme="light"] .doc-guide-tree { border-color: rgba(26, 34, 48, 0.14); background: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .doc-guide-tree__name.is-dir { color: #8a6620; }
[data-theme="light"] .doc-guide-steps__item,
[data-theme="light"] .doc-guide-series__card,
[data-theme="light"] .doc-guide-kv div { border-color: rgba(26, 34, 48, 0.12); background: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .doc-guide-check li::before { color: #1f7a45; }
[data-theme="light"] .doc-guide-demo { box-shadow: 0 18px 44px rgba(26, 34, 48, 0.16); }
