/*
 * Veldora Docs — Complete Application Stylesheet v2
 * Dark-mode first · monochrome-violet · SVG icons · no emoji
 */

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

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    --bg:          #09090b;
    --surface:     #111113;
    --surface-2:   #18181b;
    --surface-3:   #27272a;
    --border:      #27272a;
    --border-light:#3f3f46;
    --text:        #fafafa;
    --text-muted:  #a1a1aa;
    --text-dim:    #71717a;
    --accent:      #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-dim:  rgba(139,92,246,.1);
    --accent-glow: rgba(139,92,246,.25);
    --success:     #22c55e;
    --warning:     #f59e0b;
    --danger:      #ef4444;
    --info:        #38bdf8;

    --font:        'Inter', system-ui, sans-serif;
    --font-mono:   'JetBrains Mono', monospace;

    --radius:      6px;
    --radius-lg:   12px;
    --radius-xl:   18px;

    --nav-w:       260px;
    --header-h:    58px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body { min-height: 100vh; overflow-x: hidden; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
.prose a, .markdown-body a, .doc-content a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .markdown-body a:hover, .doc-content a:hover { color: #a78bfa; }

/* ─── Global No-Underline Component Reset ───────────────────────────────────── */
.vui-btn,
.vui-page-btn,
.vui-breadcrumb-link,
.vui-nav-link,
.vui-nav-sub-link,
.vui-tab-btn,
.vui-dropdown-item,
.vui-navbar a,
.comp-quick-nav a,
.comp-tab-btn,
.comp-cli-badge,
.comp-copy-btn,
.comp-preview a,
.comp-preview-panel a {
    text-decoration: none !important;
}

img { max-width: 100%; }

/* ─── Scrollbars ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

* { scrollbar-width: thin; scrollbar-color: var(--border-light) transparent; }

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 9px 18px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -.01em;
}

.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(139,92,246,.3), 0 2px 8px rgba(139,92,246,.25);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 1px rgba(139,92,246,.5), 0 4px 16px rgba(139,92,246,.35);
    text-decoration: none !important;
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text) !important;
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--surface-3);
    border-color: var(--border-light);
    text-decoration: none !important;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted) !important;
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text) !important;
    text-decoration: none !important;
}

.btn-sm { padding: 6px 14px; font-size: 12.5px; }

/* ─── Header / Topbar ────────────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(9,9,11,.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    padding: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    margin-right: 12px;
    padding: 0;
    transition: all .15s ease;
}
.header-mobile-toggle:hover {
    background: var(--surface-3);
    border-color: var(--accent);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text) !important;
    text-decoration: none !important;
}
.header-brand:hover,
.header-brand:focus,
.vui-navbar-brand,
.vui-navbar-brand:hover,
.vui-navbar-brand:focus {
    color: var(--text) !important;
    text-decoration: none !important;
}

.header-brand .logo-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.header-docs-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(139,92,246,.12);
    border: 1px solid rgba(139,92,246,.25);
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.6;
    vertical-align: middle;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 32px;
    flex: 1;
}

.header-nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 5px 11px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .15s, background .15s;
    text-decoration: none !important;
}
.header-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-nav a.active { color: var(--accent); background: var(--accent-dim); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-gh-link {
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    transition: color .15s, background .15s;
}
.header-gh-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

/* ─── Sidebar ─────────────────────────────────────────────────────────────────── */
.layout-docs {
    display: flex;
    padding-top: var(--header-h);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: var(--nav-w);
    height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    padding: 12px 0 0;
    border-right: 1px solid var(--border);
    background: var(--surface);
    z-index: 100;
    flex-shrink: 0;
}

.sidebar nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

.sidebar-section-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 14px 20px 6px;
}

.sidebar-nav { list-style: none; padding: 0; }

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    padding: 5.5px 20px;
    transition: color .12s, background .12s;
    border-left: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-nav li a:hover { color: var(--text); background: var(--accent-dim); text-decoration: none; }
.sidebar-nav li.active > a {
    color: var(--accent);
    background: var(--accent-dim);
    border-left-color: var(--accent);
    font-weight: 500;
}

.sidebar-nav li.level-1 > a { padding-left: 20px; font-weight: 500; font-size: 13.5px; }
.sidebar-nav li.level-2 > a { padding-left: 28px; }
.sidebar-nav li.level-3 > a { padding-left: 40px; font-size: 12px; }

/* ─── Main Content ────────────────────────────────────────────────────────────── */
.content-wrap {
    margin-left: var(--nav-w);
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 40px 48px 80px;
}
.content-inner { max-width: 800px; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────────── */
.doc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.doc-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.doc-breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.doc-breadcrumb span { color: var(--text); font-weight: 500; }
.doc-breadcrumb svg { opacity: .5; }

/* ─── Doc Header & Copy Page Button (readme.io style) ────────────────────────── */
.doc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    max-width: 800px;
}

.doc-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 200px;
}

.doc-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 4px;
}

.btn-copy-page {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 12px;
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
    line-height: 1;
}

.btn-copy-page:hover {
    color: var(--text);
    background: var(--surface-3);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.btn-copy-page:active {
    transform: translateY(0);
}

.btn-copy-page.copied {
    color: var(--success);
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.btn-copy-page svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .doc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .doc-header h1 {
        font-size: 1.7rem;
    }
    .btn-copy-page {
        font-size: 11.5px;
        padding: 5px 10px;
    }
}

/* ─── Prose (Docs Content) ────────────────────────────────────────────────────── */
.prose { max-width: 800px; }

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 2rem 0 .8rem;
}

.prose h1 { font-size: 2rem; margin-top: 0; }
.prose h2 { font-size: 1.45rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); margin-top: 2.5rem; }
.prose h3 { font-size: 1.1rem; color: var(--text-muted); }

.prose p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text-muted); }

.prose ul, .prose ol { margin: .75rem 0 .75rem 1.4rem; color: var(--text-muted); }
.prose li { margin-bottom: .35rem; line-height: 1.7; }

.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.2rem 0; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; text-align: left; padding: 10px 14px; border: 1px solid var(--border); }
.prose td { color: var(--text-muted); padding: 9px 14px; border: 1px solid var(--border); }
.prose tr:hover td { background: var(--surface-2); }

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 1.2rem 0;
    background: var(--accent-dim);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Code Blocks ─────────────────────────────────────────────────────────────── */
.prose code, code {
    font-family: var(--font-mono);
    font-size: .82em;
    background: var(--surface-2);
    color: #c4b5fd;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.prose pre, pre.code-block {
    position: relative;
    background: #09090b;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 1.2rem 0;
    font-size: 13px;
    line-height: 1.65;
    font-family: var(--font-mono);
}

.prose pre code, pre.code-block code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

/* ─── Universal Code Copy Button with Smooth Hover Reveal ─── */
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(22, 24, 38, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted, #94a3b8);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-family: var(--font, sans-serif);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.15s ease,
                color 0.15s ease,
                border-color 0.15s ease,
                box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Reveal copy button on hover */
pre:hover > .code-copy-btn,
.ide-code-wrapper:hover .code-copy-btn,
.terminal-mockup:hover .code-copy-btn,
.code-block-wrapper:hover .code-copy-btn,
.hero-code:hover .code-copy-btn,
.cta-terminal:hover .code-copy-btn,
.comp-code:hover .code-copy-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Header toolbar buttons (where position is relative or inside header) */
.ide-code-header .code-copy-btn,
.terminal-mockup-header .code-copy-btn,
.hero-code-toolbar .code-copy-btn,
.cta-terminal-bar .code-copy-btn {
    position: static;
    opacity: 0.8;
    transform: none;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.05);
}

.ide-code-wrapper:hover .ide-code-header .code-copy-btn,
.terminal-mockup:hover .terminal-mockup-header .code-copy-btn,
.hero-code:hover .hero-code-toolbar .code-copy-btn,
.cta-terminal:hover .cta-terminal-bar .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: var(--surface-3, #222538);
    color: #ffffff;
    border-color: rgba(124, 110, 245, 0.5);
    box-shadow: 0 0 12px rgba(124, 110, 245, 0.2);
}

.code-copy-btn.copied {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #22c55e !important;
}

/* ─── IDE Code Window Mockup ─── */
.ide-code-wrapper {
    position: relative;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 10px);
    margin: 1.4rem 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ide-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #111116;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ide-code-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono, monospace);
    font-size: 11.5px;
    color: var(--text, #e2e8f0);
    font-weight: 500;
}

.ide-code-tab svg {
    color: var(--accent, #7c6ef5);
}

.ide-code-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ide-code-lang {
    font-size: 10.5px;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-dim, #64748b);
    text-transform: uppercase;
}

.ide-code-body {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 18px 22px !important;
    background: transparent !important;
}

/* ─── Terminal Mockup Window ─── */
.terminal-mockup {
    position: relative;
    background: #060608;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 10px);
    margin: 1.4rem 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.terminal-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #0f1015;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.terminal-mockup-title {
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    color: var(--text-dim, #94a3b8);
    font-weight: 500;
}

.terminal-mockup-body {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 18px 22px !important;
    background: transparent !important;
    color: #38bdf8 !important;
}

/* ─── Docs Nav Prev/Next ──────────────────────────────────────────────────────── */
.docs-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.docs-nav-link {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 180px; max-width: 280px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.docs-nav-link:hover { border-color: var(--accent); background: var(--accent-dim); text-decoration: none; }
.docs-nav-link.next { margin-left: auto; text-align: right; }
.docs-nav-dir { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.docs-nav-title { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 52px 32px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    box-sizing: border-box;
}

/* Brand column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.03em;
    text-decoration: none;
}
.footer-logo:hover { color: var(--accent); text-decoration: none; }

.footer-logo-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-tagline {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    max-width: 280px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 3px 9px;
    border-radius: 9999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

/* Nav columns */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.footer-links li a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-links li a svg {
    flex-shrink: 0;
    opacity: .6;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.footer-copyright a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}
.footer-copyright a:hover { color: var(--accent); text-decoration: none; }

.footer-made {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-dim);
}

/* ── Responsive Footer ─── */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 24px 32px;
    }
    .footer-brand-col {
        grid-column: 1 / -1; /* span full width on tablet */
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 18px;
    }
    .footer-tagline { max-width: 100%; }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding: 32px 16px 24px;
    }
    .footer-brand-col {
        flex-direction: column;
        gap: 12px;
    }
    .footer-bottom-inner {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 14px 20px;
    }
    .footer-brand-col { grid-column: 1; }
}

/* ─── Home Layout ─────────────────────────────────────────────────────────────── */
.home-layout {
    padding-top: var(--header-h);
    max-width: 100%;
    overflow-x: hidden;
}

/* ─── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 32px 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,.18), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-glow);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 28px;
    letter-spacing: .02em;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.1;
    margin-bottom: 22px;
    color: var(--text);
}
.hero-title span {
    background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 40%, #8b5cf6 70%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 2px 20px rgba(139, 92, 246, 0.3));
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

/* Hero code preview */
.hero-code {
    max-width: 690px;
    margin: 0 auto;
    background: #0c0c0e;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.hero-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.hero-code-toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-code-toolbar .code-copy-btn,
.cta-terminal-bar .code-copy-btn {
    position: static;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius);
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.hero-code-toolbar .code-copy-btn:hover,
.cta-terminal-bar .code-copy-btn:hover {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--border-light);
}

.dot-red    { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.dot-yellow { width: 11px; height: 11px; border-radius: 50%; background: #f59e0b; }
.dot-green  { width: 11px; height: 11px; border-radius: 50%; background: #22c55e; }
.hero-code-label { font-size: 11.5px; font-family: var(--font-mono); color: var(--text-dim); margin-left: 8px; }

.hero-code pre {
    margin: 0;
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    background: #09090b !important;
    border: none;
    border-radius: 0;
}

/* ─── Stats ───────────────────────────────────────────────────────────────────── */
.stats-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    width: 100%;
    overflow-x: hidden;
}
.stats-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 0;
}
.stat-item {
    text-align: center;
    padding: 10px 16px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.stat-label  { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-top: 3px; }

@media (max-width: 640px) {
    .stats-inner {
        padding: 14px 6px;
        grid-template-columns: repeat(4, 1fr);
    }
    .stat-item {
        padding: 4px 6px;
    }
    .stat-number {
        font-size: 1.15rem;
    }
    .stat-label {
        font-size: 9px;
        letter-spacing: .02em;
        white-space: nowrap;
    }
}

/* ─── Section Labels / Titles ─────────────────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
    text-align: center;
}
.section-sub {
    font-size: .98rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

/* ─── Features Grid ───────────────────────────────────────────────────────────── */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 48px;
}

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    border-color: var(--accent);
    background: var(--surface-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 42px; height: 42px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}
.feature-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}
.feature-desc code {
    font-size: 12px;
    white-space: nowrap;
    display: inline-block;
    padding: 1px 5px;
}

/* ─── Why Veldora Section ───────────────────────────────────────────────────────── */
.why-section {
    padding: 96px 24px;
    max-width: 1160px;
    margin: 0 auto;
    box-sizing: border-box;
}

.why-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    box-sizing: border-box;
}

.why-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.035em;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.why-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 28px 0;
}

.why-list {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.why-list li svg {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.why-list li strong {
    color: var(--text);
}

.why-code-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.why-terminal {
    background: #0c0c0e;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.why-terminal-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.why-terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.why-terminal-label {
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-left: 8px;
}

.why-terminal pre {
    margin: 0;
    padding: 18px 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    overflow-x: auto;
    background: #09090b !important;
    border: none;
}

.why-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.why-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 9999px;
}

.why-badge svg {
    color: var(--accent);
}

/* ─── CTA Section ─────────────────────────────────────────────────────────────── */
.cta-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.cta-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    box-sizing: border-box;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.035em;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.cta-sub {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.65;
    margin: 0 0 24px 0;
}

.cta-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    width: 100%;
}

.cta-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

.cta-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-terminal {
    background: #0c0c0e;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cta-terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.cta-terminal-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cta-terminal-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-left: 8px;
}

.cta-terminal pre {
    padding: 18px 20px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    margin: 0;
    overflow-x: auto;
    background: #09090b !important;
    border: none;
    border-radius: 0;
}

/* ─── Responsive Queries for Home Sections ─────────────────────────────────────── */
@media (max-width: 900px) {
    .why-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .why-section {
        padding: 60px 20px;
    }
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 56px 20px;
    }
}

@media (max-width: 600px) {
    .why-section {
        padding: 44px 16px;
    }
    .cta-inner {
        padding: 36px 16px;
        gap: 28px;
    }
    .why-terminal pre,
    .cta-terminal pre {
        padding: 14px 14px;
        font-size: 11.5px;
    }
    .cta-steps {
        gap: 10px;
        margin-bottom: 20px;
    }
    .hero {
        padding: 48px 16px 40px;
    }
    .hero-code pre {
        padding: 14px 14px;
        font-size: 12px;
    }
    .features-section {
        padding: 48px 16px;
    }
    .features-grid {
        margin-top: 32px;
        gap: 14px;
    }
}

/* ─── Components Page ─────────────────────────────────────────────────────────── */
.components-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 32px 80px;
    padding-top: calc(var(--header-h) + 56px);
}

.components-header {
    text-align: center;
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.component-section {
    margin-bottom: 56px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    position: relative;
}

.component-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.component-section-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-quick-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 48px;
    flex-wrap: wrap;
    text-align: center;
}

.comp-quick-nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    flex-shrink: 0;
}

.comp-quick-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.comp-quick-nav-links a {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius);
}

.comp-cli-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--surface-3);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
    user-select: none;
    transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.3;
}
.comp-cli-badge:hover {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: var(--accent-glow);
    transform: translateY(-1px);
}
.comp-cli-badge:active {
    transform: translateY(0);
}
.comp-cli-badge.copied {
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}
.comp-cli-badge svg {
    flex-shrink: 0;
    transition: transform .15s ease;
}
.comp-cli-badge:hover svg {
    transform: scale(1.15);
}

.comp-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    padding: 3px 9px;
    border-radius: 9999px;
    line-height: 1.3;
}

.component-section-name h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
}

.component-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Unified Tabbed Component Box ────────────────────────────────────────── */
.comp-box {
    border-top: 1px solid var(--border);
    background: #09090b;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    overflow: hidden;
}

.comp-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.comp-tabs-list {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--surface-3);
    padding: 3px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comp-tab-btn {
    background: transparent;
    border: none;
    padding: 5px 13px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    user-select: none;
}
.comp-tab-btn:hover {
    color: var(--text);
}
.comp-tab-btn.active {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.comp-box-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comp-copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.comp-copy-btn:hover {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--border-light);
}

/* Preview Panel */
.comp-preview-panel {
    padding: 36px 28px;
    background: #09090b;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    width: 100%;
}

/* Code Panel */
.comp-code-panel {
    background: #09090b;
    padding: 0;
    margin: 0;
}
.comp-code-panel pre.code-block {
    margin: 0;
    padding: 22px 26px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    background: #09090b !important;
    border: none;
    border-radius: 0;
    overflow-x: auto;
}

/* ─── Component Preview Demos ─────────────────────────────────────────────────── */

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: .03em;
}
.badge-default  { background: var(--surface-3); color: var(--text-muted); }
.badge-primary  { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-glow); }
.badge-success  { background: rgba(34,197,94,.12); color: #22c55e; border: 1px solid rgba(34,197,94,.25); }
.badge-warning  { background: rgba(245,158,11,.12); color: #f59e0b; border: 1px solid rgba(245,158,11,.25); }
.badge-danger   { background: rgba(239,68,68,.12); color: #ef4444; border: 1px solid rgba(239,68,68,.25); }
.badge-info     { background: rgba(56,189,248,.12); color: #38bdf8; border: 1px solid rgba(56,189,248,.25); }
.badge-dot::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 4px 0;
    width: 100%;
}
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(34,197,94,.08);  color: #22c55e; border-color: rgba(34,197,94,.2); }
.alert-warning { background: rgba(245,158,11,.08); color: #f59e0b; border-color: rgba(245,158,11,.2); }
.alert-danger  { background: rgba(239,68,68,.08);  color: #ef4444; border-color: rgba(239,68,68,.2); }
.alert-info    { background: rgba(56,189,248,.08); color: #38bdf8; border-color: rgba(56,189,248,.2); }
.alert-body { flex: 1; }
.alert-title { font-weight: 600; margin-bottom: 3px; }
.alert-msg   { opacity: .85; font-size: 13px; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    border-radius: 50%;
    border: 2.5px solid rgba(139,92,246,.25);
    border-top-color: var(--accent);
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}
.spinner-sm { width: 18px; height: 18px; }
.spinner-md { width: 28px; height: 28px; }
.spinner-lg { width: 42px; height: 42px; border-width: 3.5px; }

/* Avatar */
.avatar {
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px; color: #fff;
    background: var(--accent);
    flex-shrink: 0;
    overflow: hidden;
}
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-square { border-radius: var(--radius); }

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); font-size: 14px; }
.card-body   { padding: 16px 18px; color: var(--text-muted); font-size: 13.5px; line-height: 1.65; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* Input */
.form-group { display: flex; flex-direction: column; gap: 5px; width: 100%; max-width: 320px; }
.form-label { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.form-input, .form-textarea, .form-select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 13.5px;
    padding: 9px 12px;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}
.form-input.is-error, .form-textarea.is-error, .form-select.is-error {
    border-color: var(--danger);
}
.form-error  { font-size: 11.5px; color: var(--danger); }
.form-helper { font-size: 11.5px; color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 32px; }

/* Checkbox & Radio */
.check-wrap { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.check-wrap input[type=checkbox], .check-wrap input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.check-label { font-size: 13.5px; color: var(--text-muted); }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px); left: 0;
    min-width: 180px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    z-index: 300;
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .1s, color .1s;
    text-decoration: none;
}
.dropdown-item:hover { background: var(--accent-dim); color: var(--text); text-decoration: none; }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

/* Modal */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 480px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    overflow: hidden;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-title { font-weight: 700; color: var(--text); font-size: 1rem; }
.modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-dim); border-radius: var(--radius); padding: 4px;
    transition: color .15s, background .15s;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-body   { padding: 20px; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* Toast */
.toast {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    max-width: 340px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    font-size: 13.5px;
    color: var(--text-muted);
}
.toast-success { border-color: rgba(34,197,94,.3); }
.toast-warning { border-color: rgba(245,158,11,.3); }
.toast-danger  { border-color: rgba(239,68,68,.3); }
.toast-title { font-weight: 600; color: var(--text); margin-bottom: 3px; font-size: 14px; }

/* Navbar (demo) */
.demo-navbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
}
.demo-navbar-brand { font-weight: 700; font-size: 15px; color: var(--text); }
.demo-navbar-links { display: flex; gap: 4px; }
.demo-navbar-links a { font-size: 13px; color: var(--text-muted); padding: 5px 10px; border-radius: var(--radius); transition: background .15s, color .15s; }
.demo-navbar-links a:hover { background: var(--accent-dim); color: var(--accent); text-decoration: none; }

/* ─── Prism code colors ───────────────────────────────────────────────────────── */
.hl-kw   { color: #c4b5fd; }
.hl-fn   { color: #93c5fd; }
.hl-str  { color: #86efac; }
.hl-cmt  { color: #52525b; }
.hl-num  { color: #fca5a5; }

/* ─── Sidebar search ─────────────────────────────────────────────────────────── */
.sidebar-search-wrap {
    position: relative;
    margin: 0 12px 12px;
}
.sidebar-search {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 12.5px;
    padding: 7px 10px 7px 32px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.sidebar-search:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139,92,246,.15); }
.sidebar-search::placeholder { color: var(--text-dim); }
.sidebar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}
.sidebar-search-kbd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    background: var(--surface-3);
    border: 1px solid var(--border-light);
    padding: 1px 5px;
    border-radius: 3px;
}

/* Sidebar footer */
.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}
.sidebar-footer-link {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-dim);
    font-size: 12px;
    text-decoration: none;
    transition: color .15s;
}
.sidebar-footer-link:hover { color: var(--accent); text-decoration: none; }
.sidebar-version { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }

/* ─── Doc Page Specific ───────────────────────────────────────────────────────── */
.doc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 24px;
}
.doc-breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.doc-breadcrumb a:hover { color: var(--accent); }
.doc-breadcrumb span { color: var(--text-muted); font-weight: 500; }

.doc-header { margin-bottom: 28px; }
.doc-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text);
    line-height: 1.2;
}

.doc-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.doc-nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    min-width: 180px; max-width: 280px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.doc-nav-btn:hover { border-color: var(--accent); background: var(--accent-dim); text-decoration: none; }
.doc-nav-btn.next { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.doc-nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); display: block; }
.doc-nav-title { font-size: 13.5px; font-weight: 600; color: var(--text); display: block; margin-top: 2px; }

.doc-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-lg);
    color: #ef4444;
    font-size: 14px;
}

.doc-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}
.doc-empty svg { margin: 0 auto 20px; display: block; color: var(--text-dim); }
.doc-empty p { font-size: 15px; margin-bottom: 20px; }

/* ─── Global Show/Hide utilities ────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Code Block Wrapper & Header ───────────────────────────────────────────── */
.code-block-wrapper {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #0c0c0e;
    margin: 1.5rem 0;
    overflow: hidden;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.code-block-lang {
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: .05em;
}

.code-block-header .code-copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius);
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.code-block-header .code-copy-btn:hover {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--border-light);
}

.code-block-header .code-copy-btn.copied {
    color: var(--success);
    border-color: var(--success);
}

.code-block-wrapper pre.code-block {
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 16px 20px;
}

/* ─── Toast System ──────────────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    color: var(--text);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    animation: toast-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes toast-fade-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ─── Component Showcase Refinements ────────────────────────────────────────── */
.component-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    gap: 20px;
    flex-wrap: wrap;
}

.component-section-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 250px;
}

.component-section-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.component-section-name h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    margin: 0;
}

.component-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.component-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.comp-preview {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    overflow-x: auto;
    max-width: 100%;
}

.comp-code.hidden {
    display: none !important;
}

.comp-code pre {
    border-top: 1px solid var(--border);
}

/* ─── Sort Icon Styles ────────────────────────────────────────────────────────── */
.vui-sort-icon {
    opacity: .4;
    flex-shrink: 0;
    transition: opacity .15s, transform .2s cubic-bezier(0.16, 1, 0.3, 1), color .15s;
    vertical-align: middle;
}
.vui-sortable:hover .vui-sort-icon,
th:hover .vui-sort-icon { opacity: .7; }
th.vui-sort-active .vui-sort-icon { opacity: 1; color: var(--accent, #7c6ef5); }
th.vui-sort-active { color: var(--accent, #7c6ef5); }

/* ─── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .comp-quick-nav-links { gap: 4px; }
}

@media (max-width: 900px) {
    .content-wrap { margin-left: 0; padding: 24px 16px 60px; width: 100%; max-width: 100%; }
    .hero { padding: 50px 16px 44px; width: 100%; max-width: 100%; }
    .features-section { padding: 48px 16px; width: 100%; max-width: 100%; }
    .cta-inner { padding: 40px 16px; width: 100%; max-width: 100%; }
    .components-page { padding: 80px 16px 60px; width: 100%; max-width: 100%; }
    .cta-inner { flex-direction: column; }
    .component-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .component-actions { width: 100%; justify-content: flex-start; }

    /* Docs page responsive */
    .docs-layout { flex-direction: column; width: 100%; }
    .docs-content { padding: 24px 16px; max-width: 100%; width: 100%; }

    /* Component page responsive */
    .comp-box-header { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
    .comp-tabs-list { flex: 1; }
    .comp-box-actions { margin-left: auto; }
    .component-section-name { flex-wrap: wrap; gap: 6px; }
    .comp-cli-badge { font-size: 10px; padding: 2px 7px; }
    .comp-preview { padding: 20px 16px; }
}

@media (max-width: 640px) {
    .header-inner { padding: 0 14px; }
    .header-actions { gap: 6px; }
    .header-actions .btn { padding: 5px 10px; font-size: 11.5px; }
    .hero-title { font-size: clamp(1.75rem, 7vw, 2.4rem); line-height: 1.2; word-break: break-word; }
    .hero-sub { font-size: 13.5px; line-height: 1.65; }
    .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .docs-nav { flex-direction: column; gap: 8px; }

    /* Components page mobile */
    .components-page { padding: 70px 14px 48px; width: 100%; max-width: 100%; box-sizing: border-box; }
    .components-header { margin-bottom: 24px; text-align: center; }
    .section-title { font-size: 1.5rem; word-break: break-word; }
    .comp-quick-nav { margin-bottom: 24px; gap: 8px; flex-direction: column; width: 100%; }
    .comp-quick-nav-links { gap: 4px; flex-wrap: wrap; justify-content: center; }
    .comp-quick-nav-links .btn { font-size: 11px; padding: 4px 9px; }
    .component-section { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; margin-bottom: 28px; border-radius: var(--radius-lg); }
    .component-section-header { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .component-section-name { flex-wrap: wrap; gap: 6px; width: 100%; }
    .component-section-name h2 { font-size: 1.05rem; }
    .comp-badge { font-size: 10px; padding: 2px 7px; }
    .comp-cli-badge { font-size: 10px; padding: 3px 8px; max-width: 100%; }
    .comp-box { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
    .comp-box-header { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
    .comp-tabs-list { width: auto; }
    .comp-tab-btn { font-size: 12px; padding: 5px 11px; }
    .comp-preview-panel { padding: 20px 14px; width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .comp-code-panel { width: 100%; max-width: 100%; box-sizing: border-box; }
    .comp-code-panel pre.code-block { font-size: 11.5px; padding: 14px 12px; max-width: 100%; box-sizing: border-box; overflow-x: auto; }

    /* Docs page mobile */
    .doc-hero { padding: 48px 16px 40px; }
    .doc-hero h1 { font-size: 1.5rem; }
    .docs-nav-pills { flex-wrap: wrap; gap: 4px; }
    .docs-nav-pill { font-size: 12px; padding: 5px 12px; }

    /* Home page mobile */
    .hero { padding: 40px 14px 36px; text-align: center; }
    .hero-code { width: 100%; max-width: 100%; box-sizing: border-box; }
    .hero-code pre { padding: 16px 14px; font-size: 12px; max-width: 100%; box-sizing: border-box; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; padding: 0; }
    .feature-card { padding: 20px 16px; }
    .cta-section { padding: 40px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-inner { padding: 40px 14px 24px; }

    /* Table responsive on mobile */
    .vui-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .vui-table th, .vui-table td { font-size: 12px; padding: 8px 10px; }

    /* DataTable toolbar mobile */
    .vui-datatable-toolbar { flex-direction: column; gap: 8px; }
    .vui-datatable-search { max-width: 100%; width: 100%; }

    /* Toast mobile */
    #toast-container { bottom: 16px; right: 16px; left: 16px; max-width: calc(100% - 32px); }
    .toast { font-size: 12px; padding: 10px 14px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 1.45rem; }
    .section-title { font-size: 1.35rem; }
    .components-page { padding: 60px 10px 40px; }
    .component-section-header { padding: 12px; }
    .comp-preview { padding: 12px 10px; }
    .comp-box-header { padding: 8px 10px; }
    .comp-cli-badge span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ─── Print ───────────────────────────────────────────────────────────────────── */
@media print {
    .navbar, .sidebar, #toast-container, .comp-box-actions { display: none !important; }
    body { background: white; color: black; }
    .content-wrap { margin: 0; padding: 0; }
}

/* ─── Hero Split (two code panels side-by-side) ───────────────────────────────── */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 1060px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 860px) {
    .hero-split { grid-template-columns: 1fr; }
}

/* ─── Why Veldora Section ─────────────────────────────────────────────────────── */
.why-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.why-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .why-section { padding: 48px 0; }
    .why-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }
}

.why-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
    word-break: break-word;
}

@media (max-width: 640px) {
    .why-title {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
        line-height: 1.25;
    }
}

.why-desc {
    color: var(--text-muted);
    font-size: .97rem;
    line-height: 1.75;
    margin-bottom: 24px;
    word-break: break-word;
}

.why-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .93rem;
    color: var(--text-muted);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.why-list li svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.why-list strong { color: var(--text); font-weight: 600; }

.why-code-stack {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.why-terminal {
    background: #0c0c0e;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.why-terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.why-terminal-dots { display: flex; align-items: center; gap: 6px; }
.why-terminal-label { font-size: 11px; font-family: var(--font-mono); color: var(--text-dim); margin-left: 8px; }

.why-terminal pre {
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
    overflow-x: auto;
    background: #09090b !important;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .why-terminal pre {
        padding: 16px 14px;
        font-size: 12px;
    }
}

.why-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.why-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 5px 14px;
}

/* ─── CTA Steps ───────────────────────────────────────────────────────────────── */
.cta-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.cta-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--text-muted);
}

.cta-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--accent-glow);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Doc Header ──────────────────────────────────────────────────────────────── */
.doc-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.doc-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.035em;
    line-height: 1.2;
    margin: 0;
}

.doc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.doc-breadcrumb a {
    color: var(--text-dim);
    transition: color .15s;
}

.doc-breadcrumb a:hover { color: var(--accent); text-decoration: none; }

.doc-breadcrumb svg { color: var(--text-dim); flex-shrink: 0; }

/* ─── Doc Prev/Next ───────────────────────────────────────────────────────────── */
.doc-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.doc-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 180px;
    max-width: 280px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color .15s, background .15s, transform .1s;
}

.doc-nav-btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    text-decoration: none;
    transform: translateY(-1px);
}

.doc-nav-btn.next { margin-left: auto; }

.doc-nav-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    margin-bottom: 3px;
}

.doc-nav-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

/* ─── Doc Error / Empty ───────────────────────────────────────────────────────── */
.doc-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    color: #f87171;
    font-size: .9rem;
}

.doc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-dim);
    gap: 12px;
}

.doc-empty p { font-size: .95rem; }

/* ─── Sidebar Search ──────────────────────────────────────────────────────────── */
.sidebar-search-wrap {
    position: relative;
    padding: 12px 16px 4px;
    display: flex;
    align-items: center;
}

.sidebar-search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-25%);
    color: var(--text-dim);
    pointer-events: none;
}

.sidebar-search {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 32px 7px 32px;
    font-family: var(--font);
    font-size: 12.5px;
    color: var(--text);
    outline: none;
    transition: border-color .15s, background .15s;
}

.sidebar-search::placeholder { color: var(--text-dim); }
.sidebar-search:focus { border-color: var(--accent); background: var(--surface-3); }

.sidebar-search-kbd {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-25%);
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 5px;
    pointer-events: none;
}

/* ─── Sidebar Footer ──────────────────────────────────────────────────────────── */
.sidebar-footer {
    flex-shrink: 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .15s;
}

.sidebar-footer-link:hover { color: var(--text); }

.sidebar-version {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
}

/* ─── AI Skills Banner ────────────────────────────────────────────────────────── */
.ai-skills-banner {
    margin: 32px 0 24px;
    background: linear-gradient(135deg, rgba(139,92,246,.08) 0%, rgba(139,92,246,.04) 100%);
    border: 1px solid rgba(139,92,246,.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: opacity .3s, transform .3s;
}

.ai-skills-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.ai-skills-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.ai-skills-text { flex: 1; min-width: 0; }

.ai-skills-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.ai-skills-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.ai-skills-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 680px) {
    .ai-skills-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ai-skills-actions { width: 100%; }
}

/* ─── Real Terminal Mockup (CLI output & interactive wizard) ─────────────────── */
.terminal-mockup {
    margin: 24px 0;
    background: #08080a;
    border: 1px solid #27272a;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.terminal-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #111115;
    border-bottom: 1px solid #27272a;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-mockup-title {
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.terminal-mockup-body {
    padding: 18px 22px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #38bdf8;
    background: #08080a !important;
    border: none !important;
    border-radius: 0 !important;
    overflow-x: auto;
    white-space: pre;
}

/* ─── IDE Code Editor Wrapper (PHP, HTML, JS, JSON files) ─────────────────────── */
.ide-code-wrapper {
    margin: 24px 0;
    background: #0e0f14;
    border: 1px solid #23242c;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.ide-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 0;
    background: #15171e;
    border-bottom: 1px solid #23242c;
    height: 38px;
}

.ide-code-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 18px;
    background: #0e0f14;
    border-right: 1px solid #23242c;
    border-top: 2px solid var(--accent);
    color: var(--text);
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 500;
}

.ide-code-tab svg {
    color: var(--accent);
    flex-shrink: 0;
}

.ide-code-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ide-code-lang {
    font-size: 10.5px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-dim);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: .05em;
}

.ide-code-body {
    padding: 20px 24px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.65;
    background: #0e0f14 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow-x: auto;
}

/* ─── AI Prompt Card ──────────────────────────────────────────────────────────── */
.ai-prompt-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}

.ai-prompt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.ai-prompt-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.ai-prompt-card-title svg {
    color: var(--accent);
}

.ai-prompt-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-prompt-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Table responsive wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.2rem 0;
    -webkit-overflow-scrolling: touch;
}

/* ─── Mobile Sidebar Drawer & Backdrop ────────────────────────────────────────── */
.sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9990 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
}

.sidebar-backdrop.active,
body.sidebar-open .sidebar-backdrop,
body.nav-open .sidebar-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ─── Universal Mobile Navigation Drawer ──────────────────────────────────────── */
.mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(320px, 85vw) !important;
    height: 100vh !important;
    background: #0d0e12 !important;
    border-right: 1px solid #23242c !important;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.95) !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.mobile-drawer.open,
body.nav-open .mobile-drawer {
    transform: translateX(0) !important;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #12131a;
}

.mobile-drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: all .15s ease;
}
.mobile-drawer-close:hover {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--accent);
}

.mobile-drawer-body {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    margin-bottom: 10px;
    padding-left: 8px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
    text-decoration: none !important;
    transition: all .15s ease;
}

.mobile-nav-links a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.mobile-nav-links a.active {
    color: #fff !important;
    background: var(--accent) !important;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4) !important;
    font-weight: 600 !important;
}

.mobile-nav-links a.active svg {
    color: #fff !important;
}

.mobile-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #12131a;
}

/* ─── Sidebar Mobile Header ─────────────────────────────────────────────────── */
.sidebar-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    background: var(--surface-2);
}
.sidebar-mobile-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.sidebar-mobile-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}
.sidebar-mobile-close:hover {
    color: var(--text);
    background: var(--surface-3);
}

@media (max-width: 860px) {
    .sidebar-mobile-header {
        display: flex;
    }

    .header-mobile-toggle {
        display: inline-flex !important;
    }

    .header-nav {
        display: none !important;
    }

    /* Docs sidebar becomes a fixed drawer on mobile */
    .sidebar,
    #docs-sidebar,
    .layout-docs .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        padding-top: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10000 !important;
        width: min(320px, 85vw) !important;
        background: #09090b !important;
        border-right: 1px solid var(--border) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.95) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        visibility: visible !important;
    }

    .sidebar.open,
    #docs-sidebar.open,
    body.sidebar-open #docs-sidebar,
    body.sidebar-open .sidebar,
    body.sidebar-open .layout-docs .sidebar {
        transform: translateX(0) !important;
    }

    .content-wrap {
        margin-left: 0 !important;
        padding: 24px 16px 60px !important;
    }
}

/* ─── Extension Page Styling ─────────────────────────────────────────────────── */
.extension-page {
    padding-top: var(--header-h);
    max-width: 100%;
    overflow-x: hidden;
}

.ext-hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 72px 24px 60px;
    text-align: center;
}

.ext-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-glow);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.ext-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 18px;
}

.ext-title span {
    background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ext-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.ext-install-box {
    max-width: 560px;
    margin: 0 auto 36px;
    background: #0c0c0e;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.ext-install-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.ext-install-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-left: 6px;
}

.ext-install-cmd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 12px;
}

.ext-install-cmd code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #c4b5fd;
    background: transparent;
    border: none;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.ext-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ext-features-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px;
}

.ext-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 44px;
}

@media (max-width: 768px) {
    .ext-features-grid {
        grid-template-columns: 1fr;
    }
}

.ext-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ext-feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.12);
}

.ext-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 18px;
}

.ext-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.ext-feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.ext-card-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ext-tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 8px;
    padding: 4px 10px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.ext-tag:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.45);
    color: #ede9fe;
}

.ext-snippets-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.ext-table-wrap {
    margin-top: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface);
}

.ext-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.ext-table th {
    background: var(--surface-2);
    padding: 12px 18px;
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.ext-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.ext-table tr:last-child td {
    border-bottom: none;
}

.ext-table tr:hover td {
    background: var(--surface-2);
}

/* ---------------------------------------------------------------------------
   CHANGELOG PAGE
   -------------------------------------------------------------------------- */

/* Page container */
.changelog-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 75px 24px 80px;
}

/* -- Hero ------------------------------------------------------------------- */
.cl-hero {
    text-align: center;
    margin-bottom: 56px;
}

.cl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(124,110,245,0.12);
    color: var(--accent);
    border: 1px solid rgba(124,110,245,0.25);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.cl-hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, #a0a0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px;
}

.cl-hero-sub {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 32px;
}

/* Repo filter tabs */
.cl-repo-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cl-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.cl-tab:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--surface-2);
}

.cl-tab.active {
    background: rgba(124,110,245,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.cl-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.cl-dot-accent  { background: var(--accent); }
.cl-dot-green   { background: #22c55e; }
.cl-dot-purple  { background: #a855f7; }

/* -- Timeline --------------------------------------------------------------- */
.cl-timeline {
    display: flex;
    flex-direction: column;
    gap: 52px;
}

/* -- Package block ---------------------------------------------------------- */
.cl-package-block {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cl-pkg-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cl-pkg-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-icon-accent { background: rgba(124,110,245,0.15); color: var(--accent); border: 1px solid rgba(124,110,245,0.25); }
.cl-icon-green  { background: rgba(34,197,94,0.1);   color: #22c55e;       border: 1px solid rgba(34,197,94,0.2); }
.cl-icon-purple { background: rgba(168,85,247,0.1);  color: #a855f7;       border: 1px solid rgba(168,85,247,0.2); }

.cl-pkg-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    font-family: 'JetBrains Mono', monospace;
}

.cl-pkg-gh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.cl-pkg-gh:hover { color: var(--accent); }

/* -- Releases --------------------------------------------------------------- */
.cl-releases {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cl-release {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 20px;
    position: relative;
}

/* Rail */
.cl-dot-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.cl-rail-line {
    width: 1px;
    flex: 1;
    background: linear-gradient(to bottom, var(--border), transparent);
    margin-top: 8px;
}

.cl-release-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cl-release-dot.cl-dot-accent  { background: var(--accent); box-shadow: 0 0 0 3px rgba(124,110,245,0.2); }
.cl-release-dot.cl-dot-green   { background: #22c55e;       box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.cl-release-dot.cl-dot-purple  { background: #a855f7;       box-shadow: 0 0 0 3px rgba(168,85,247,0.2); }

@keyframes cl-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(124,110,245,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(124,110,245,0.1); }
}
.cl-release-dot--pulse.cl-dot-accent { animation: cl-pulse 2.5s ease-in-out infinite; }

/* Release body */
.cl-release-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 20px;
    transition: border-color 0.15s ease;
}

.cl-release-body:hover {
    border-color: rgba(124,110,245,0.3);
}

.cl-release--latest .cl-release-body {
    border-color: rgba(124,110,245,0.35);
    background: linear-gradient(135deg, rgba(124,110,245,0.06) 0%, var(--surface) 60%);
}

.cl-release-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cl-release-version-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cl-version {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: 'JetBrains Mono', monospace;
}

.cl-version-accent { color: var(--accent); }
.cl-version-green  { color: #22c55e; }
.cl-version-purple { color: #a855f7; }

.cl-latest-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(124,110,245,0.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(124,110,245,0.3);
    letter-spacing: 0.02em;
}

.cl-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Section labels */
.cl-section {
    margin-bottom: 16px;
}

.cl-section:last-of-type {
    margin-bottom: 0;
}

.cl-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.cl-label-added {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.2);
}

.cl-label-fixed {
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.2);
}

/* List items */
.cl-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cl-items li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.cl-items li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
}

.cl-items li code,
.cl-code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--accent);
}

.cl-items li strong {
    color: var(--text);
    font-weight: 600;
}

/* Compare link */
.cl-compare-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.cl-compare-link:hover { color: var(--accent); }

/* -- Responsive ------------------------------------------------------------- */
@media (max-width: 600px) {
    .changelog-page { padding: 32px 16px 64px; }
    .cl-release { grid-template-columns: 22px 1fr; gap: 0 12px; }
    .cl-release-body { padding: 18px 16px; }
    .cl-release-head { flex-direction: column; }
    .cl-version { font-size: 17px; }
    .cl-repo-tabs { justify-content: flex-start; overflow-x: auto; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SPINNER VARIANTS — Pure CSS, Zero Dependencies
   ════════════════════════════════════════════════════════════════════════════ */

/* --- Keyframes --- */
@keyframes vui-spin         { to { transform: rotate(360deg); } }
@keyframes vui-spin-rev     { to { transform: rotate(-360deg); } }
@keyframes vui-bounce-dot   { 0%, 80%, 100% { transform: scaleY(0.4); opacity: 0.3; } 40% { transform: scaleY(1); opacity: 1; } }
@keyframes vui-pulse-scale  { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 50% { transform: scale(1); opacity: 1; } }
@keyframes vui-ring-expand  { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes vui-wave-bar     { 0%, 100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes vui-dot-fade     { 0%, 100% { opacity: 0.15; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1); } }
@keyframes vui-bar-fade     { 0% { opacity: 1; } 100% { opacity: 0.1; } }
@keyframes vui-orbit-sat    { 0% { transform: rotate(0deg) translateX(calc(var(--orb-size, 32px) * 0.65)) rotate(0deg); } 100% { transform: rotate(360deg) translateX(calc(var(--orb-size, 32px) * 0.65)) rotate(-360deg); } }

/* --- 1. Classic Spinner (already in vui-spinner) --- */
.vui-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.vui-spinner-sm { width: 18px; height: 18px; }
.vui-spinner-md { width: 28px; height: 28px; }
.vui-spinner-lg { width: 40px; height: 40px; }
.vui-spinner-ring {
    display: block;
    width: 100%; height: 100%;
    border: 2.5px solid rgba(124, 110, 245, 0.15);
    border-top-color: var(--accent, #7c6ef5);
    border-radius: 50%;
    animation: vui-spin 0.7s linear infinite;
}

/* --- 2. Dual Ring --- */
.vui-spinner-dual {
    display: inline-block;
    position: relative;
    border-radius: 50%;
}
.vui-spinner-dual.vui-spinner-sm  { width: 20px; height: 20px; }
.vui-spinner-dual.vui-spinner-md  { width: 32px; height: 32px; }
.vui-spinner-dual.vui-spinner-lg  { width: 46px; height: 46px; }
.vui-spinner-dual > span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid transparent;
}
.vui-spinner-dual > span:nth-child(1) {
    border-top-color: var(--accent, #7c6ef5);
    animation: vui-spin 0.8s linear infinite;
}
.vui-spinner-dual > span:nth-child(2) {
    border-bottom-color: rgba(124, 110, 245, 0.4);
    animation: vui-spin-rev 0.6s linear infinite;
}

/* --- 3. Bounce Dots --- */
.vui-spinner-bounce {
    display: inline-flex;
    align-items: flex-end;
    gap: var(--dot-gap, 5px);
    height: calc(var(--dot-size, 9px) * 2.2);
    align-items: center;
}
.vui-spinner-bounce > span {
    width: var(--dot-size, 9px);
    height: var(--dot-size, 9px);
    border-radius: 50%;
    background: var(--accent, #7c6ef5);
    animation: vui-bounce-dot 1.2s ease-in-out infinite;
}
.vui-spinner-bounce > span:nth-child(1) { animation-delay: 0s; }
.vui-spinner-bounce > span:nth-child(2) { animation-delay: 0.16s; }
.vui-spinner-bounce > span:nth-child(3) { animation-delay: 0.32s; }

/* --- 4. Pulse --- */
.vui-spinner-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.vui-spinner-pulse > span {
    width: var(--pulse-size, 18px);
    height: var(--pulse-size, 18px);
    border-radius: 50%;
    background: var(--accent, #7c6ef5);
    animation: vui-pulse-scale 1.1s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(124, 110, 245, 0.4);
}

/* --- 5. Ring Pulse (Radar) --- */
.vui-spinner-ring-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(var(--rp-size, 22px) * 2.5);
    height: calc(var(--rp-size, 22px) * 2.5);
}
.vui-spinner-ring-pulse > span {
    position: absolute;
    width: var(--rp-size, 22px);
    height: var(--rp-size, 22px);
    border-radius: 50%;
    background: var(--accent, #7c6ef5);
}
.vui-spinner-ring-pulse::before,
.vui-spinner-ring-pulse::after {
    content: '';
    position: absolute;
    width: var(--rp-size, 22px);
    height: var(--rp-size, 22px);
    border-radius: 50%;
    background: var(--accent, #7c6ef5);
    animation: vui-ring-expand 1.6s ease-out infinite;
}
.vui-spinner-ring-pulse::after { animation-delay: 0.8s; }

/* --- 6. Wave Bars (Equalizer) --- */
.vui-spinner-wave {
    display: inline-flex;
    align-items: center;
    gap: var(--bar-gap, 4px);
    height: var(--bar-h, 28px);
}
.vui-spinner-wave > span {
    display: block;
    width: var(--bar-w, 4px);
    height: 100%;
    border-radius: 3px;
    background: var(--accent, #7c6ef5);
    animation: vui-wave-bar 1s ease-in-out infinite;
    transform-origin: bottom center;
}
.vui-spinner-wave > span:nth-child(1) { animation-delay: 0s; }
.vui-spinner-wave > span:nth-child(2) { animation-delay: 0.1s; }
.vui-spinner-wave > span:nth-child(3) { animation-delay: 0.2s; }
.vui-spinner-wave > span:nth-child(4) { animation-delay: 0.3s; }
.vui-spinner-wave > span:nth-child(5) { animation-delay: 0.4s; }

/* --- 7. Dot Grid --- */
.vui-spinner-dot-grid {
    display: inline-grid;
    grid-template-columns: repeat(3, var(--dg-dot, 8px));
    grid-template-rows: repeat(3, var(--dg-dot, 8px));
    gap: var(--dg-gap, 6px);
}
.vui-spinner-dot-grid > span {
    width: var(--dg-dot, 8px);
    height: var(--dg-dot, 8px);
    border-radius: 50%;
    background: var(--accent, #7c6ef5);
    animation: vui-dot-fade 1.4s ease-in-out infinite;
}
.vui-spinner-dot-grid > span:nth-child(1) { animation-delay: 0s; }
.vui-spinner-dot-grid > span:nth-child(2) { animation-delay: 0.1s; }
.vui-spinner-dot-grid > span:nth-child(3) { animation-delay: 0.2s; }
.vui-spinner-dot-grid > span:nth-child(4) { animation-delay: 0.3s; }
.vui-spinner-dot-grid > span:nth-child(5) { animation-delay: 0.4s; }
.vui-spinner-dot-grid > span:nth-child(6) { animation-delay: 0.5s; }
.vui-spinner-dot-grid > span:nth-child(7) { animation-delay: 0.6s; }
.vui-spinner-dot-grid > span:nth-child(8) { animation-delay: 0.7s; }
.vui-spinner-dot-grid > span:nth-child(9) { animation-delay: 0.8s; }

/* --- 8. Spinning Bars (Radial) --- */
.vui-spinner-bars {
    display: inline-block;
    position: relative;
    width: var(--sb-size, 32px);
    height: var(--sb-size, 32px);
}
.vui-spinner-bars > span {
    position: absolute;
    top: 0; left: 50%;
    width: 12%;
    height: 28%;
    margin-left: -6%;
    border-radius: 3px;
    background: var(--accent, #7c6ef5);
    transform-origin: 50% 175%;
    animation: vui-bar-fade 1s linear infinite;
}
.vui-spinner-bars > span:nth-child(1) { transform: rotate(0deg);   animation-delay: -0.875s; }
.vui-spinner-bars > span:nth-child(2) { transform: rotate(45deg);  animation-delay: -0.75s;  }
.vui-spinner-bars > span:nth-child(3) { transform: rotate(90deg);  animation-delay: -0.625s; }
.vui-spinner-bars > span:nth-child(4) { transform: rotate(135deg); animation-delay: -0.5s;   }
.vui-spinner-bars > span:nth-child(5) { transform: rotate(180deg); animation-delay: -0.375s; }
.vui-spinner-bars > span:nth-child(6) { transform: rotate(225deg); animation-delay: -0.25s;  }
.vui-spinner-bars > span:nth-child(7) { transform: rotate(270deg); animation-delay: -0.125s; }
.vui-spinner-bars > span:nth-child(8) { transform: rotate(315deg); animation-delay: 0s;      }

/* --- 9. Orbit --- */
.vui-spinner-orbit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(var(--orb-size, 32px) * 2);
    height: calc(var(--orb-size, 32px) * 2);
}
.vui-spinner-orbit .orb-core {
    width: calc(var(--orb-size, 32px) * 0.5);
    height: calc(var(--orb-size, 32px) * 0.5);
    border-radius: 50%;
    background: var(--accent, #7c6ef5);
    opacity: 0.85;
}
.vui-spinner-orbit .orb-satellite {
    position: absolute;
    width: calc(var(--orb-size, 32px) * 0.22);
    height: calc(var(--orb-size, 32px) * 0.22);
    border-radius: 50%;
    background: rgba(124, 110, 245, 0.7);
    animation: vui-orbit-sat 1.2s linear infinite;
    top: 50%; left: 50%;
    margin-top: calc(var(--orb-size, 32px) * -0.11);
    margin-left: calc(var(--orb-size, 32px) * -0.11);
}

/* ════════════════════════════════════════════════════════════════════════════
   COMPONENT DETAIL PAGE LAYOUT (sidebar + main)
   ════════════════════════════════════════════════════════════════════════════ */

.comp-detail-layout {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
    position: relative;
    padding: 0;
    gap: 0;
}

/* ── Sidebar ── */
.comp-detail-sidebar {
    position: fixed;
    top: var(--header-h, 58px);
    left: 0;
    width: var(--nav-w, 260px);
    height: calc(100vh - var(--header-h, 58px));
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border);
    background: var(--surface);
    padding: 20px 14px 64px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
    z-index: 90;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Comp Sidebar Mobile Toggle Button ── */
.comp-sidebar-mobile-toggle {
    display: none; /* hidden on desktop */
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 7px 13px;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.comp-sidebar-mobile-toggle:hover {
    background: var(--surface-3, #27272a);
    color: var(--text);
    border-color: var(--accent);
}

/* ── Mobile Responsive: comp-detail ── */
@media (max-width: 900px) {
    .comp-sidebar-mobile-toggle {
        display: inline-flex;
    }

    .comp-detail-sidebar {
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: none;
    }

    .comp-detail-sidebar.comp-sidebar-open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.45);
    }

    .comp-detail-main {
        margin-left: 0;
        padding: 24px 20px 80px;
    }
}

.comp-sidebar-inner {
    padding-right: 4px;
}

.comp-sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.comp-sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.comp-sidebar-back:hover { color: var(--text); text-decoration: none; }

.comp-sidebar-group {
    margin-bottom: 20px;
}

.comp-sidebar-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #64748b);
    padding: 0 12px;
    margin-bottom: 6px;
}

.comp-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comp-sidebar-link {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-dim);
    border-radius: 7px;
    text-decoration: none;
    font-weight: 450;
    transition: background 0.12s, color 0.12s;
}
.comp-sidebar-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.comp-sidebar-link.active {
    background: rgba(124, 110, 245, 0.12);
    color: var(--accent, #7c6ef5);
    font-weight: 600;
}

/* ── Main Content ── */
.comp-detail-main {
    margin-left: var(--nav-w, 260px);
    flex: 1;
    min-width: 0;
    padding: 36px 48px 100px;
    max-width: 1040px;
}

/* Header */
.comp-detail-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comp-detail-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.comp-detail-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.comp-detail-breadcrumb a:hover { color: var(--accent); }
.comp-detail-breadcrumb svg { color: var(--border-light, #334155); }

.comp-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.comp-detail-desc {
    font-size: 14.5px;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
    max-width: 580px;
}

.comp-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comp-detail-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
}

/* Variation Section */
.comp-variation-section {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.comp-variation-section:last-of-type { border-bottom: none; }

.comp-variation-header {
    margin-bottom: 18px;
}

.comp-variation-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}

.comp-variation-desc {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}
.comp-variation-desc code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
}

/* ── Existing comp-box, etc. already in CSS, preserve those ── */

/* Button util classes referenced in previews */
.vui-btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: #fff;
}
.vui-btn-success:hover { background: linear-gradient(135deg, #16a34a, #15803d); }

.vui-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    color: #fff;
}
.vui-btn-warning:hover { background: linear-gradient(135deg, #d97706, #b45309); }

.vui-btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--accent, #7c6ef5);
    color: var(--accent, #7c6ef5);
}
.vui-btn-outline-primary:hover { background: rgba(124, 110, 245, 0.08); }

.vui-btn-outline-secondary {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-dim);
}
.vui-btn-outline-secondary:hover { background: var(--surface-2); color: var(--text); }

.vui-btn-outline-danger {
    background: transparent;
    border: 1.5px solid #ef4444;
    color: #ef4444;
}
.vui-btn-outline-danger:hover { background: rgba(239, 68, 68, 0.08); }

/* ─── Standard Static Page Container ────────────────────────────────────────── */
.page-container {
    max-width: 920px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 44px) 24px 100px;
    width: 100%;
    box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════════════════════════
   COMPONENTS CATALOG PAGE (Root /components)
   ════════════════════════════════════════════════════════════════════════════ */

.components-catalog-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 44px) 24px 100px;
}

.comp-catalog-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 56px;
}

.comp-catalog-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 12px 0 16px;
    line-height: 1.15;
}

.comp-catalog-sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 auto 36px;
    max-width: 640px;
}

/* Search bar */
.comp-filter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.comp-search-box {
    position: relative;
    width: 100%;
    max-width: 580px;
}

.comp-search-box svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
}

.comp-search-box input {
    width: 100%;
    background: #11131a;
    border: 1.5px solid #232738;
    border-radius: 12px;
    padding: 14px 20px 14px 48px;
    font-size: 14.5px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.comp-search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 110, 245, 0.15);
}

/* Category Filter Pills */
.comp-pills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.comp-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: #13151c;
    border: 1px solid #232738;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.comp-filter-pill:hover {
    color: #fff;
    border-color: rgba(124, 110, 245, 0.4);
    background: #191c26;
}

.comp-filter-pill.active {
    background: rgba(124, 110, 245, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.comp-pill-count {
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    color: inherit;
}

/* Category Sections */
.comp-cat-section {
    margin-bottom: 56px;
}

.comp-cat-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.comp-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.comp-cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(124, 110, 245, 0.12);
    border: 1px solid rgba(124, 110, 245, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.comp-cat-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.comp-cat-subtitle {
    font-size: 12.5px;
    color: var(--text-dim);
}

/* Components Grid */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* Component Card */
.comp-card {
    background: #11131a;
    border: 1px solid #232738;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.comp-card:hover {
    border-color: rgba(124, 110, 245, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    background: #151822;
}

.comp-card-main-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 16px;
}

.comp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.comp-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.comp-card-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    background: rgba(124, 110, 245, 0.1);
    border: 1px solid rgba(124, 110, 245, 0.2);
    border-radius: 5px;
    padding: 2px 7px;
    white-space: nowrap;
}

.comp-card-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

.comp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #1f2330;
    padding-top: 14px;
    margin-top: auto;
}

.comp-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.15s ease;
}

.comp-card:hover .comp-card-btn {
    gap: 9px;
    color: #a89cf7;
}

.comp-cli-mini {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 8px;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.comp-cli-mini:hover {
    background: rgba(124, 110, 245, 0.15);
    border-color: rgba(124, 110, 245, 0.3);
    color: #fff;
}

/* ════════════════════════════════════════════════════════════════════════════
   UNIFIED COMPONENT PREVIEW & CODE BOXES
   ════════════════════════════════════════════════════════════════════════════ */

.comp-box {
    background: #0d0e14;
    border: 1px solid #202434;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.comp-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #141620;
    border-bottom: 1px solid #202434;
    min-height: 42px;
    box-sizing: border-box;
}

.comp-tabs-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.comp-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #8f95b2;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.comp-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.comp-tab-btn.active {
    color: #fff;
    background: rgba(124, 110, 245, 0.18);
    border-color: rgba(124, 110, 245, 0.35);
}

.comp-box-actions {
    display: flex;
    align-items: center;
}

.comp-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #a1a7c4;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.comp-copy-btn:hover {
    color: #fff;
    background: rgba(124, 110, 245, 0.15);
    border-color: rgba(124, 110, 245, 0.3);
}

.comp-preview {
    padding: 28px 24px;
    min-height: 100px;
    overflow: visible;
    position: relative;
    background: #0d0e14;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comp-code {
    background: #090a0f;
    border-top: 1px solid #1a1d29;
}

.comp-code-pre {
    margin: 0;
    padding: 20px 24px;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
    background: transparent !important;
    border: none;
    border-radius: 0;
    tab-size: 4;
}

/* ════════════════════════════════════════════════════════════════════════════
   PREMIUM BUTTON STYLES & GLOWS
   ════════════════════════════════════════════════════════════════════════════ */

.vui-btn-glow-violet {
    background: linear-gradient(135deg, #7c6ef5, #6366f1);
    color: #fff;
    border: 1px solid #8b5cf6;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(124, 110, 245, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glow-violet:hover {
    box-shadow: 0 0 28px rgba(124, 110, 245, 0.7);
    transform: translateY(-1px);
}

.vui-btn-glow-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: 1px solid #34d399;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glow-emerald:hover {
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.7);
    transform: translateY(-1px);
}

.vui-btn-glow-sunset {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    border: 1px solid #fb923c;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glow-sunset:hover {
    box-shadow: 0 0 28px rgba(249, 115, 22, 0.7);
    transform: translateY(-1px);
}

.vui-btn-glow-cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border: 1px solid #38bdf8;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glow-cyan:hover {
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.7);
    transform: translateY(-1px);
}

.vui-btn-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 9px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.vui-btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Social buttons */
.vui-btn-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #282c3c;
    background: #141620;
    color: #fff;
    transition: all 0.15s ease;
    font-family: inherit;
}
.vui-btn-social:hover {
    background: #1b1e2c;
    border-color: #3b4056;
    transform: translateY(-1px);
}

/* Button groups */
.vui-btn-group {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.vui-btn-group .vui-btn {
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border);
}
.vui-btn-group .vui-btn:last-child {
    border-right: none;
}

/* ─────────────────────────────────────────────────────────────────
   Static Prose Pages  (Privacy, Terms, License, etc.)
───────────────────────────────────────────────────────────────── */

/* .static-prose-page — narrows width but PRESERVES .page-container's top padding */
.static-prose-page {
    max-width: 860px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 5rem;
}

/* Page header block (title + last-updated meta line) */
.static-prose-header {
    margin-bottom: 2.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.75rem;
}

.static-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.static-prose-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Individual content sections */
.static-section {
    margin-bottom: 2rem;
}

.static-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.65rem;
}

.static-section p,
.static-prose-page p {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.static-section p:last-child,
.static-prose-page p:last-child {
    margin-bottom: 0;
}

/* Bottom navigation row (back / forward links) */
.static-back-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    gap: 0.75rem;
}

/* License page monospace text block */
.license-text-block {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    padding: 2rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.license-text-block p {
    margin: 0 0 1rem;
}

.license-text-block p:last-child {
    margin-bottom: 0;
}

.license-disclaimer {
    text-transform: uppercase;
    color: var(--text-muted) !important;
    letter-spacing: 0.01em;
}

/* ─────────────────────────────────────────────────────────────────
   FAQ Accordion (used on both /faq page and home page teaser)
───────────────────────────────────────────────────────────────── */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-accordion-item {
    background: var(--surface-2, #18181b);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    transition: border-color 0.2s ease;
}

.faq-accordion-item[open] {
    border-color: var(--accent, #8b5cf6);
}

.faq-accordion-summary {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    user-select: none;
    gap: 1rem;
}

/* Hide default browser triangle */
.faq-accordion-summary::-webkit-details-marker { display: none; }
.faq-accordion-summary::marker { display: none; }

.faq-chevron-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: transform 0.25s ease, color 0.2s ease;
}

.faq-accordion-item[open] .faq-chevron-icon {
    transform: rotate(180deg);
    color: var(--accent, #8b5cf6);
}

.faq-accordion-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.faq-accordion-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: var(--surface-3, #27272a);
    color: var(--accent-light, #c4b5fd);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   Static Page Hero  (used on About, FAQ, and similar pages)
───────────────────────────────────────────────────────────────── */

.static-page-hero {
    text-align: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

/* The .section-label inside a hero is auto-centered */
.static-page-hero .section-label {
    justify-content: center;
    margin: 0 auto 1rem;
    width: fit-content;
}

.static-page-hero .static-page-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.static-page-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
   About Page — Pillars Grid
───────────────────────────────────────────────────────────────── */

.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0;
}

.about-pillar-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-pillar-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.about-pillar-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-pillar-title {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.about-pillar-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.about-pillar-desc code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--surface-3);
    color: var(--accent);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   Static CTA Box  (About page & FAQ page bottom call-to-action)
───────────────────────────────────────────────────────────────── */

.static-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--surface-2) 0%, rgba(139,92,246,.06) 100%);
    border: 1px solid rgba(139,92,246,.2);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    margin-top: 3rem;
}

.static-cta-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.35rem;
}

.static-cta-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* When used centered (FAQ page) */
.static-cta-box[style*="text-align:center"] {
    flex-direction: column;
    align-items: center;
}

/* ─────────────────────────────────────────────────────────────────
   FAQ Page — Category Groups
───────────────────────────────────────────────────────────────── */

.faq-category-group {
    margin-bottom: 2.5rem;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.faq-category-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ─────────────────────────────────────────────────────────────────
   Home Page — Features section centering
───────────────────────────────────────────────────────────────── */

/* Allow .section-label to be explicitly centered */
.section-label[style*="justify-content:center"],
.features-section .section-label {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ─────────────────────────────────────────────────────────────────
   Responsive — static pages on mobile
───────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .about-pillars-grid { grid-template-columns: 1fr; }
    .static-cta-box { padding: 1.5rem 1.25rem; }
    .static-page-hero .static-page-title { font-size: 1.75rem; }
    .static-back-nav { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
