/* ═══════════════════════════════════════════════════════════
   VidaDoc — Design System v1 "Papel de Segurança Digital"
   Fonte da verdade: Docs/design/DESIGN_SYSTEM.md (23/07/2026)
   Conceito: cartório/papel-moeda moderno — selo, guilloché,
   hash em mono, verde SÓ para estado conquistado.
   ═══════════════════════════════════════════════════════════ */

/* ─── Fontes (self-hosted, variáveis) ─────────────────── */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/fraunces-italic-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/instrument-sans-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Spline Sans Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/spline-sans-mono-var.woff2') format('woff2');
}

/* ─── Reset Global ────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ─── Variaveis de Design (tokens semânticos) ─────────── */
:root {
    /* Tinta — cor da marca (navy escurecido p/ contraste AA) */
    --vd-ink: #16324F;
    --vd-ink-strong: #0C2137;
    --vd-ink-soft: #E8EEF5;

    /* Selo — verde de estado conquistado (assinado/válido) */
    --vd-seal: #00875C;
    --vd-seal-bright: #00B87A;
    --vd-seal-soft: #E2F5EE;

    /* Acento e feedback */
    --vd-accent: #2563EB;
    --vd-accent-light: #60A5FA;
    --vd-warning: #B45309;
    --vd-warning-soft: #FEF3C7;
    --vd-danger: #B91C1C;
    --vd-danger-soft: #FEE2E2;

    /* Papel — superfícies */
    --vd-paper: #F7F8FA;
    --vd-paper-card: #FFFFFF;
    --vd-paper-inset: #EFF2F6;

    /* Texto */
    --vd-text: #1A2332;
    --vd-text-2: #5B6B7F;
    --vd-text-3: #8A97A8;
    --vd-line: #DFE5EC;

    /* Aliases legados — NÃO usar em código novo; mantêm as 58
       telas atuais funcionando até a migração por página */
    --vd-primary: var(--vd-ink);
    --vd-primary-light: #2A5580;
    --vd-primary-dark: var(--vd-ink-strong);
    --vd-primary-soft: var(--vd-ink-soft);
    --vd-success: var(--vd-seal-bright);
    --vd-success-light: #00D68F;
    --vd-success-dark: var(--vd-seal);
    --vd-bg: var(--vd-paper);
    --vd-bg-card: var(--vd-paper-card);
    --vd-bg-section: var(--vd-paper-inset);
    --vd-text-secondary: var(--vd-text-2);
    --vd-text-muted: var(--vd-text-3);
    --vd-border: var(--vd-line);
    --vd-border-light: #EFF2F6;

    /* Tipografia */
    --vd-font: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --vd-font-heading: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
    --vd-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --vd-font-mono: 'Spline Sans Mono', 'Cascadia Code', 'Fira Code', monospace;

    /* Forma e elevação */
    --vd-radius: 10px;
    --vd-radius-sm: 6px;
    --vd-radius-lg: 14px;
    --vd-shadow: 0 1px 3px rgba(12,33,55,0.07), 0 1px 2px rgba(12,33,55,0.05);
    --vd-shadow-md: 0 4px 10px rgba(12,33,55,0.07), 0 2px 4px rgba(12,33,55,0.04);
    --vd-shadow-lg: 0 12px 32px rgba(12,33,55,0.14), 0 4px 12px rgba(12,33,55,0.06);

    /* Movimento */
    --vd-ease: cubic-bezier(.2,.8,.2,1);
    --vd-dur-fast: 150ms;
    --vd-dur: 250ms;
    --vd-dur-stamp: 400ms;
}

/* ─── Guilloché — padrão de segurança (áreas nobres) ──── */
.vd-guilloche {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2316324F' stroke-width='.6' opacity='.05'%3E%3Ccircle cx='60' cy='60' r='48'/%3E%3Ccircle cx='60' cy='60' r='38'/%3E%3Ccircle cx='0' cy='0' r='48'/%3E%3Ccircle cx='120' cy='0' r='48'/%3E%3Ccircle cx='0' cy='120' r='48'/%3E%3Ccircle cx='120' cy='120' r='48'/%3E%3Ccircle cx='60' cy='0' r='28'/%3E%3Ccircle cx='60' cy='120' r='28'/%3E%3Ccircle cx='0' cy='60' r='28'/%3E%3Ccircle cx='120' cy='60' r='28'/%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Movimento — utilitários e keyframes ─────────────── */
@keyframes vd-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes vd-stamp {
    0%   { opacity: 0; transform: scale(1.25) rotate(-4deg); }
    60%  { opacity: 1; transform: scale(.96) rotate(.5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
.vd-rise { animation: vd-rise var(--vd-dur) var(--vd-ease) backwards; }
.vd-rise-1 { animation-delay: 40ms; }
.vd-rise-2 { animation-delay: 90ms; }
.vd-rise-3 { animation-delay: 140ms; }
.vd-rise-4 { animation-delay: 190ms; }
.vd-rise-5 { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ─── Base ─────────────────────────────────────────────── */
body {
    font-family: var(--vd-font);
    color: var(--vd-text);
    background: var(--vd-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Login Page ───────────────────────────────────────── */
.vd-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--vd-primary-dark) 0%, var(--vd-primary) 50%, var(--vd-primary-light) 100%);
    padding: 1rem;
}

.vd-login-card {
    background: var(--vd-bg-card);
    border-radius: var(--vd-radius-lg);
    box-shadow: var(--vd-shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.vd-login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vd-login-logo h1 {
    font-family: var(--vd-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--vd-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.vd-login-logo .vd-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--vd-primary), var(--vd-accent));
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: white;
    font-size: 1.5rem;
}

.vd-login-logo p {
    color: var(--vd-text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.vd-login-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vd-border-light);
}

.vd-login-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--vd-text-muted);
}

.vd-login-badge i {
    color: var(--vd-success);
    font-size: 0.8rem;
}

/* ─── Botoes ───────────────────────────────────────────── */
.vd-btn-primary {
    background: var(--vd-ink);
    color: white;
    border: none;
    border-radius: var(--vd-radius);
    padding: 0.75rem 1.5rem;
    font-family: var(--vd-font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--vd-dur-fast) var(--vd-ease),
                transform var(--vd-dur-fast) var(--vd-ease),
                box-shadow var(--vd-dur-fast) var(--vd-ease);
    width: 100%;
    letter-spacing: 0.01em;
}

.vd-btn-primary:hover {
    background: var(--vd-ink-strong);
    box-shadow: var(--vd-shadow-lg);
    transform: translateY(-1px);
}

.vd-btn-primary:active { transform: translateY(0); box-shadow: var(--vd-shadow); }

.vd-btn-primary:focus-visible,
.vd-btn-secondary:focus-visible,
.vd-btn-success:focus-visible,
.vd-btn-danger:focus-visible,
.vd-btn-ghost:focus-visible,
.vd-input:focus-visible {
    outline: 2px solid var(--vd-accent);
    outline-offset: 2px;
}

/* Verde = estado conquistado: usar APENAS para a ação que conclui
   uma assinatura/aprovação, nunca para navegação */
.vd-btn-success {
    background: var(--vd-seal);
    color: white;
    border: none;
    border-radius: var(--vd-radius);
    padding: 0.75rem 1.5rem;
    font-family: var(--vd-font);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--vd-dur-fast) var(--vd-ease),
                transform var(--vd-dur-fast) var(--vd-ease),
                box-shadow var(--vd-dur-fast) var(--vd-ease);
}

.vd-btn-success:hover {
    background: #006B49;
    box-shadow: 0 6px 18px rgba(0,135,92,.3);
    transform: translateY(-1px);
}

.vd-btn-ghost {
    background: transparent;
    border: none;
    color: var(--vd-ink);
    padding: 0.625rem 1rem;
    border-radius: var(--vd-radius);
    font-family: var(--vd-font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--vd-dur-fast) var(--vd-ease);
}

.vd-btn-ghost:hover { background: var(--vd-ink-soft); }

/* ─── Inputs ───────────────────────────────────────────── */
.vd-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    font-size: 0.95rem;
    font-family: var(--vd-font);
    color: var(--vd-text);
    background: var(--vd-bg-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vd-input:focus {
    outline: none;
    border-color: var(--vd-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vd-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vd-text);
    margin-bottom: 0.4rem;
}

.vd-input-group {
    margin-bottom: 1.25rem;
}

/* ─── Cards (flat por padrão; sombra é p/ o que flutua) ── */
.vd-card {
    background: var(--vd-paper-card);
    border-radius: var(--vd-radius);
    border: 1px solid var(--vd-line);
    padding: 1.5rem;
    transition: border-color var(--vd-dur-fast) var(--vd-ease),
                box-shadow var(--vd-dur-fast) var(--vd-ease);
}

.vd-card:hover {
    border-color: #C9D3DE;
    box-shadow: var(--vd-shadow);
}

/* ─── Selos (carimbo de estado) e badges ───────────────── */
.vd-seal {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: vd-stamp var(--vd-dur-stamp) var(--vd-ease) backwards;
}
.vd-seal-success { background: var(--vd-seal-bright); color: #fff; box-shadow: 0 2px 8px rgba(0,135,92,.35); }
.vd-seal-pending { background: var(--vd-paper-card); color: var(--vd-warning); border: 1.5px dashed var(--vd-warning); }
.vd-seal-warning { background: var(--vd-warning-soft); color: var(--vd-warning); }
.vd-seal-danger  { background: var(--vd-danger-soft); color: var(--vd-danger); }
.vd-seal-neutral { background: var(--vd-paper-inset); color: var(--vd-text-2); }

.vd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vd-badge-success {
    background: var(--vd-seal-soft);
    color: var(--vd-seal);
}

.vd-badge-warning {
    background: var(--vd-warning-soft);
    color: var(--vd-warning);
}

.vd-badge-info {
    background: rgba(37, 99, 235, 0.09);
    color: var(--vd-accent);
}

.vd-badge-danger {
    background: var(--vd-danger-soft);
    color: var(--vd-danger);
}

/* ─── Trust Indicators ─────────────────────────────────── */
.vd-trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
}

.vd-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--vd-text-secondary);
    font-weight: 500;
}

.vd-trust-item i {
    color: var(--vd-success);
}

/* ─── Verification Page (publica) ──────────────────────── */
.vd-verify-page {
    min-height: 100vh;
    background: var(--vd-bg);
    padding: 2rem 1rem;
}

.vd-verify-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--vd-bg-card);
    border-radius: var(--vd-radius-lg);
    box-shadow: var(--vd-shadow-lg);
    overflow: hidden;
}

.vd-verify-header-authentic {
    background: linear-gradient(135deg, var(--vd-success), var(--vd-success-light));
    color: white;
    text-align: center;
    padding: 2rem;
}

.vd-verify-header-invalid {
    background: linear-gradient(135deg, var(--vd-danger), #F87171);
    color: white;
    text-align: center;
    padding: 2rem;
}

.vd-verify-body {
    padding: 2rem;
}

.vd-verify-signer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--vd-border-light);
}

.vd-verify-hash {
    font-family: var(--vd-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--vd-text-2);
    word-break: break-all;
    background: var(--vd-paper-inset);
    padding: 0.75rem;
    border-radius: var(--vd-radius-sm);
}

/* ─── Sign Page (publica) ──────────────────────────────── */
.vd-sign-page {
    min-height: 100vh;
    background: var(--vd-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.vd-sign-card {
    max-width: 550px;
    width: 100%;
    background: var(--vd-bg-card);
    border-radius: var(--vd-radius-lg);
    box-shadow: var(--vd-shadow-lg);
    padding: 2.5rem;
}

/* ─── Sidebar / Navigation ─────────────────────────────── */
.vd-sidebar {
    background: var(--vd-ink-strong);
    color: white;
    width: 250px;
    min-height: 100vh;
    padding: 1.5rem 0;
}

.vd-sidebar-logo {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    margin-bottom: 1rem;
}

.vd-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1px 0.625rem;
    padding: 0.625rem 0.875rem;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background var(--vd-dur-fast) var(--vd-ease),
                color var(--vd-dur-fast) var(--vd-ease),
                transform var(--vd-dur-fast) var(--vd-ease);
}

.vd-sidebar-link:hover {
    background: rgba(255,255,255,0.07);
    color: white;
    transform: translateX(2px);
}

.vd-sidebar-link.active {
    background: rgba(255,255,255,0.12);
    color: white;
    box-shadow: inset 3px 0 0 var(--vd-seal-bright);
    transform: none;
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════ */

/* ─── Landing Wrapper ─────────────────────────────────────── */
.lp-wrapper {
    min-height: 100vh;
    background: #fff;
    color: var(--vd-text);
    font-family: var(--vd-font);
    overflow-x: hidden;
}

/* ─── Navbar ──────────────────────────────────────────────── */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0 2rem;
}

.lp-nav.scrolled {
    border-bottom-color: var(--vd-border);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.lp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.lp-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--vd-primary);
}

.lp-nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--vd-primary), var(--vd-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.lp-nav-logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav-links a {
    color: var(--vd-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.lp-nav-links a:hover {
    color: var(--vd-primary);
}

.lp-nav-ctas {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--vd-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: var(--vd-font);
}

.lp-btn-outline {
    background: transparent;
    color: var(--vd-primary);
    border: 1.5px solid var(--vd-border);
}

.lp-btn-outline:hover {
    border-color: var(--vd-primary);
    background: rgba(27,58,92,0.04);
    color: var(--vd-primary);
}

.lp-btn-primary {
    background: linear-gradient(135deg, var(--vd-primary), var(--vd-primary-light));
    color: white;
}

.lp-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(27,58,92,0.3);
    transform: translateY(-1px);
    color: white;
}

.lp-btn-success {
    background: linear-gradient(135deg, var(--vd-success), var(--vd-success-light));
    color: white;
}

.lp-btn-success:hover {
    box-shadow: 0 4px 12px rgba(0,184,122,0.35);
    transform: translateY(-1px);
    color: white;
}

.lp-btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: var(--vd-radius);
}

.lp-btn-white {
    background: white;
    color: var(--vd-primary);
}

.lp-btn-white:hover {
    background: #f0f4f8;
    color: var(--vd-primary);
}

/* ─── Mobile Menu Toggle ──────────────────────────────────── */
.lp-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--vd-text);
    cursor: pointer;
    padding: 0.25rem;
}

/* ─── Hero ────────────────────────────────────────────────── */
.lp-hero {
    padding: 140px 1.5rem 80px;
    background: linear-gradient(170deg, #f8fafc 0%, #eef2f7 40%, #e0e8f0 100%);
    position: relative;
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.lp-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,184,122,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.lp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,184,122,0.1);
    color: var(--vd-success-dark);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.lp-hero h1 {
    font-family: var(--vd-font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--vd-primary-dark);
    margin: 0 0 1.25rem;
    letter-spacing: -0.03em;
}

.lp-hero h1 span {
    background: linear-gradient(135deg, var(--vd-accent), var(--vd-success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--vd-text-secondary);
    margin-bottom: 2rem;
    max-width: 520px;
}

.lp-hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.lp-hero-proof {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--vd-text-muted);
}

.lp-hero-proof-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lp-hero-proof-item i {
    color: var(--vd-success);
}

.lp-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lp-hero-mockup {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
}

.lp-hero-float-badge {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    animation: floatBadge 3s ease-in-out infinite;
}

.lp-hero-float-badge.badge-1 {
    top: 10%;
    right: 0;
    color: var(--vd-success-dark);
}

.lp-hero-float-badge.badge-2 {
    bottom: 15%;
    left: 0;
    color: var(--vd-accent);
    animation-delay: 1.5s;
}

.lp-hero-float-badge i {
    font-size: 1.1rem;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Trust Bar ───────────────────────────────────────────── */
.lp-trust {
    background: var(--vd-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 1.25rem 1.5rem;
}

.lp-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.lp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.lp-trust-item i {
    color: var(--vd-success-light);
    font-size: 1rem;
}

/* ─── Section Base ────────────────────────────────────────── */
.lp-section {
    padding: 80px 1.5rem;
}

.lp-section-alt {
    background: var(--vd-bg-section);
}

.lp-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.lp-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.lp-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--vd-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.lp-section-header h2 {
    font-family: var(--vd-font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vd-primary-dark);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.lp-section-header p {
    font-size: 1.1rem;
    color: var(--vd-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Social Proof Numbers ────────────────────────────────── */
.lp-numbers {
    padding: 60px 1.5rem;
    background: white;
}

.lp-numbers-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.lp-number-item {
    padding: 1.5rem;
}

.lp-number-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--vd-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lp-number-value span {
    color: var(--vd-success);
}

.lp-number-label {
    font-size: 0.9rem;
    color: var(--vd-text-secondary);
    margin-top: 0.25rem;
}

/* ─── Steps (Como Funciona) ───────────────────────────────── */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
}

.lp-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background: linear-gradient(90deg, var(--vd-accent), var(--vd-success));
    opacity: 0.2;
}

.lp-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.lp-step-number {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vd-accent), var(--vd-primary));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(59,130,246,0.2);
}

.lp-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vd-primary-dark);
    margin: 0 0 0.75rem;
}

.lp-step p {
    font-size: 0.95rem;
    color: var(--vd-text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ─── Features Grid ───────────────────────────────────────── */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lp-feature-card {
    background: white;
    border-radius: var(--vd-radius);
    padding: 2rem;
    border: 1px solid var(--vd-border);
    box-shadow: var(--vd-shadow);
    transition: all 0.3s ease;
}

.lp-feature-card:hover {
    border-color: var(--vd-accent);
    box-shadow: 0 8px 30px rgba(59,130,246,0.1);
    transform: translateY(-4px);
}

.lp-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.lp-feature-icon.blue {
    background: rgba(59,130,246,0.1);
    color: var(--vd-accent);
}

.lp-feature-icon.green {
    background: rgba(0,184,122,0.1);
    color: var(--vd-success);
}

.lp-feature-icon.purple {
    background: rgba(139,92,246,0.1);
    color: #8B5CF6;
}

.lp-feature-icon.amber {
    background: rgba(245,158,11,0.1);
    color: var(--vd-warning);
}

.lp-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vd-primary-dark);
    margin: 0 0 0.5rem;
}

.lp-feature-card p {
    font-size: 0.9rem;
    color: var(--vd-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* (badge removido — informacoes competitivas nao sao relevantes para o usuario final) */

/* ─── Differentials ───────────────────────────────────────── */
.lp-diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.lp-diff-card {
    background: white;
    border-radius: var(--vd-radius);
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    border: 1px solid var(--vd-border);
    box-shadow: var(--vd-shadow);
    transition: all 0.3s ease;
}

.lp-diff-card:hover {
    box-shadow: var(--vd-shadow-md);
}

.lp-diff-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--vd-primary), var(--vd-accent));
    color: white;
}

.lp-diff-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vd-primary-dark);
    margin: 0 0 0.4rem;
}

.lp-diff-card p {
    font-size: 0.88rem;
    color: var(--vd-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.lp-diff-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--vd-text-muted);
    font-style: italic;
}

/* ─── Pricing ─────────────────────────────────────────────── */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.lp-pricing-card {
    background: white;
    border-radius: var(--vd-radius-lg);
    padding: 2rem;
    border: 2px solid var(--vd-border);
    box-shadow: var(--vd-shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.lp-pricing-card:hover {
    box-shadow: var(--vd-shadow-lg);
}

.lp-pricing-card.featured {
    border-color: var(--vd-accent);
    box-shadow: 0 8px 30px rgba(59,130,246,0.15);
    transform: scale(1.03);
}

.lp-pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--vd-accent), var(--vd-primary));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
}

.lp-pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vd-primary-dark);
    margin-bottom: 0.5rem;
}

.lp-pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--vd-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.lp-pricing-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--vd-text-muted);
}

.lp-pricing-desc {
    font-size: 0.85rem;
    color: var(--vd-text-secondary);
    margin-bottom: 1.5rem;
}

.lp-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.lp-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--vd-text-secondary);
    padding: 0.4rem 0;
}

.lp-pricing-features li i {
    color: var(--vd-success);
    margin-top: 0.15rem;
    min-width: 16px;
}

.lp-pricing-features li.disabled {
    color: var(--vd-text-muted);
    text-decoration: line-through;
}

.lp-pricing-features li.disabled i {
    color: var(--vd-text-muted);
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.lp-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.lp-faq-item {
    border: 1px solid var(--vd-border-light);
    border-radius: var(--vd-radius);
    margin-bottom: 0.75rem;
    background: white;
    overflow: hidden;
    transition: all 0.2s ease;
}

.lp-faq-item:hover {
    border-color: var(--vd-border);
}

.lp-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--vd-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--vd-primary-dark);
    text-align: left;
}

.lp-faq-question i {
    transition: transform 0.3s ease;
    color: var(--vd-text-muted);
}

.lp-faq-item.open .lp-faq-question i {
    transform: rotate(180deg);
}

.lp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.lp-faq-item.open .lp-faq-answer {
    max-height: 300px;
}

.lp-faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.95rem;
    color: var(--vd-text-secondary);
    line-height: 1.7;
}

/* ─── CTA Final ───────────────────────────────────────────── */
.lp-cta-section {
    background: linear-gradient(135deg, var(--vd-primary-dark) 0%, var(--vd-primary) 50%, var(--vd-primary-light) 100%);
    color: white;
    text-align: center;
    padding: 80px 1.5rem;
    position: relative;
    overflow: hidden;
}

.lp-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,184,122,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.lp-cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 1rem;
    position: relative;
}

.lp-cta-section p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin: 0 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.lp-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    flex-wrap: wrap;
}

/* ─── Footer ──────────────────────────────────────────────── */
.lp-footer {
    background: #0B1929;
    color: rgba(255,255,255,0.7);
    padding: 60px 1.5rem 30px;
}

.lp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lp-footer-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--vd-accent), var(--vd-success));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.lp-footer-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.lp-footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 320px;
}

.lp-footer h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.lp-footer-links li {
    margin-bottom: 0.5rem;
}

.lp-footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.lp-footer-links a:hover {
    color: white;
}

.lp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
}

.lp-footer-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lp-footer-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.lp-footer-badge i {
    color: var(--vd-success-light);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .lp-hero h1 {
        font-size: 2.4rem;
    }

    .lp-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero-ctas {
        justify-content: center;
    }

    .lp-hero-proof {
        justify-content: center;
    }

    .lp-hero-visual {
        order: -1;
    }

    .lp-hero-mockup {
        max-width: 400px;
    }

    .lp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .lp-nav-links {
        display: none;
    }

    .lp-menu-toggle {
        display: block;
    }

    .lp-hero {
        padding: 110px 1.5rem 60px;
    }

    .lp-hero h1 {
        font-size: 2rem;
    }

    .lp-section {
        padding: 60px 1.5rem;
    }

    .lp-section-header h2 {
        font-size: 1.75rem;
    }

    .lp-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lp-steps::before {
        display: none;
    }

    .lp-features-grid {
        grid-template-columns: 1fr;
    }

    .lp-diff-grid {
        grid-template-columns: 1fr;
    }

    .lp-pricing-grid {
        grid-template-columns: 1fr;
    }

    .lp-pricing-card.featured {
        transform: none;
    }

    .lp-numbers-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-trust-inner {
        gap: 1rem;
    }

    .lp-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lp-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .lp-login-card {
        padding: 1.5rem;
    }

    .lp-login-badges {
        flex-direction: column;
        align-items: center;
    }

    .vd-trust-bar {
        flex-direction: column;
        align-items: center;
    }

    .lp-cta-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .lp-hero h1 {
        font-size: 1.65rem;
    }

    .lp-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-hero-ctas .lp-btn {
        justify-content: center;
    }

    .lp-hero-proof {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lp-numbers-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .lp-number-value {
        font-size: 2rem;
    }
}

/* ─── Legacy Responsive (login/trust) ─────────────────────── */
@media (max-width: 768px) {
    .vd-login-card {
        padding: 1.5rem;
    }

    .vd-login-badges {
        flex-direction: column;
        align-items: center;
    }
}


/* ─── Fase 1 — Conta & Perfil ──────────────────────────────── */
.vd-page-title {
    font-family: var(--vd-font-display);
    font-optical-sizing: auto;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: var(--vd-ink-strong);
}

.vd-card {
    background: var(--vd-bg-card);
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius);
    overflow: hidden;
}

.vd-card-header {
    padding: .875rem 1.25rem;
    border-bottom: 1px solid var(--vd-border);
    font-weight: 600;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--vd-text);
}

.vd-card-body {
    padding: 1.25rem;
}

.vd-alert {
    padding: .875rem 1rem;
    border-radius: var(--vd-radius-sm);
    margin-bottom: 1rem;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.vd-alert-success {
    background: rgba(22,163,74,.1);
    color: #16a34a;
}

.vd-alert-danger {
    background: rgba(239,68,68,.08);
    color: var(--vd-danger);
}

.vd-alert-info {
    background: rgba(37,99,235,.08);
    color: #2563eb;
}

.vd-alert-warning {
    background: rgba(217,119,6,.1);
    color: #b45309;
}

.vd-btn-secondary {
    background: transparent;
    border: 1px solid var(--vd-border);
    color: var(--vd-text);
    padding: .5rem 1rem;
    border-radius: var(--vd-radius-sm);
    cursor: pointer;
    font-size: .875rem;
    transition: background .15s;
}

.vd-btn-secondary:hover {
    background: var(--vd-bg);
}

.vd-btn-danger {
    background: var(--vd-danger);
    border: none;
    color: white;
    padding: .625rem 1.25rem;
    border-radius: var(--vd-radius-sm);
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: opacity .15s;
}

.vd-btn-danger:hover { opacity: .85; }

.vd-btn-danger-outline {
    background: transparent;
    border: 1px solid var(--vd-danger);
    color: var(--vd-danger);
    padding: .375rem .75rem;
    border-radius: var(--vd-radius-sm);
    cursor: pointer;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    transition: background .15s;
}

.vd-btn-danger-outline:hover {
    background: rgba(239,68,68,.08);
}

/* ─── Fase 3: Organização ─── */

/* Chip de tag colorido — usado em lista de docs e seletor */
.vd-tag-chip {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 1px rgba(0,0,0,.15);
    min-width: 1.5rem;
    text-align: center;
}

/* Tabela compartilhada */
.vd-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--vd-bg-card);
    color: var(--vd-text);
}
.vd-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--vd-line);
    background: #FBFCFD;
    color: var(--vd-text-3);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.vd-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--vd-line);
    font-variant-numeric: tabular-nums;
}
.vd-table tbody tr {
    transition: background var(--vd-dur-fast) var(--vd-ease);
}
.vd-table tbody tr:hover {
    background: #FAFBFD;
}
[data-bs-theme="dark"] .vd-table tbody tr:hover {
    background: rgba(255,255,255,.04);
}

.vd-btn-sm {
    padding: 0.25rem 0.625rem !important;
    font-size: 0.75rem !important;
}

/* Modal simples para dialogs */
.vd-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12,33,55,.45);
    backdrop-filter: blur(4px);
    z-index: 1050;
    animation: vd-fade-in .15s;
}
.vd-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--vd-paper-card);
    color: var(--vd-text);
    border-radius: var(--vd-radius-lg);
    box-shadow: var(--vd-shadow-lg);
    width: 90%;
    max-width: 480px;
    z-index: 1051;
    animation: vd-modal-in var(--vd-dur) var(--vd-ease);
}
@keyframes vd-modal-in {
    from { opacity: 0; transform: translate(-50%, -48%) scale(.97); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.vd-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--vd-border);
}
.vd-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}
.vd-modal-body {
    padding: 1.25rem 1.5rem;
}
.vd-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--vd-border);
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}
@keyframes vd-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Page header padrão */
.vd-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Layout com sidebar de pastas */
.vd-docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .vd-docs-layout { grid-template-columns: 1fr; }
    .vd-folder-sidebar { max-height: 200px; overflow-y: auto; }
}

.vd-folder-sidebar {
    background: var(--vd-bg-card);
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius);
    padding: 0.75rem;
    position: sticky;
    top: 80px;
}
.vd-folder-sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vd-text-muted);
    margin: 0 0 0.5rem .25rem;
}
.vd-folder-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--vd-radius-sm);
    color: var(--vd-text);
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.vd-folder-item:hover {
    background: rgba(0,0,0,.04);
}
[data-bs-theme="dark"] .vd-folder-item:hover {
    background: rgba(255,255,255,.05);
}
.vd-folder-item.active {
    background: var(--vd-primary-soft);
    color: var(--vd-primary);
    font-weight: 600;
}
.vd-folder-item .vd-folder-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--vd-text-muted);
}

/* Barra de ações em lote */
.vd-bulk-bar {
    position: sticky;
    top: 60px;
    z-index: 40;
    background: var(--vd-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--vd-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    margin-bottom: 1rem;
}
.vd-bulk-bar button {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: .375rem .875rem;
    border-radius: var(--vd-radius-sm);
    cursor: pointer;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    transition: background .15s;
}
.vd-bulk-bar button:hover {
    background: rgba(255,255,255,.25);
}

/* Drawer de filtros colapsável */
.vd-filter-drawer {
    background: var(--vd-bg-card);
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}
.vd-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* Chip seletor para filtro de tags */
.vd-tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.vd-tag-selector-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    opacity: .55;
    transition: opacity .15s, transform .1s;
}
.vd-tag-selector-chip:hover { transform: translateY(-1px); }
.vd-tag-selector-chip.selected { opacity: 1; border-color: currentColor; }

/* Checkbox da lista de docs */
.vd-doc-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Badges de status — herdam a estética do carimbo (vd-seal) */
.vd-status-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.vd-status-draft { background: var(--vd-paper-inset); color: var(--vd-text-2); }
.vd-status-insigning { background: var(--vd-paper-card); color: var(--vd-warning); border: 1.5px dashed var(--vd-warning); }
.vd-status-completed { background: var(--vd-seal-bright); color: #fff; box-shadow: 0 2px 8px rgba(0,135,92,.3); }
.vd-status-cancelled { background: var(--vd-danger-soft); color: var(--vd-danger); }
[data-bs-theme="dark"] .vd-status-draft { background: #374151; color: #d1d5db; }
[data-bs-theme="dark"] .vd-status-insigning { background: #78350f; color: #fcd34d; }
[data-bs-theme="dark"] .vd-status-completed { background: #064e3b; color: #a7f3d0; }
[data-bs-theme="dark"] .vd-status-cancelled { background: #7f1d1d; color: #fecaca; }

/* ─── Fase 4: Planos & Billing ─── */

/* Widget de uso no MainLayout */
.vd-usage-widget {
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    padding: .75rem;
    margin: 1rem .75rem;
    color: rgba(255,255,255,.9);
    font-size: .8rem;
}
.vd-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}
.vd-usage-header .text-body { color: #fff; }
.vd-usage-trial-badge {
    background: rgba(255,193,7,.25);
    color: #ffc107;
    padding: .125rem .5rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 600;
}
.vd-usage-trial-badge.urgent {
    background: rgba(239,68,68,.3);
    color: #ff6b6b;
}
.vd-usage-line {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    margin-bottom: .25rem;
}
.vd-usage-bar {
    height: 6px;
    background: rgba(255,255,255,.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: .5rem;
}
.vd-usage-bar-fill {
    height: 100%;
    transition: width .3s;
}
.vd-usage-bar-fill.ok { background: #10b981; }
.vd-usage-bar-fill.warning { background: #f59e0b; }
.vd-usage-bar-fill.full { background: #ef4444; }
.vd-usage-upgrade-link {
    display: block;
    text-align: center;
    font-size: .75rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.vd-usage-upgrade-link:hover { color: #fff; }

/* Página /upgrade */
.vd-upgrade-container {
    max-width: 1200px;
    margin: 0 auto;
}
.vd-upgrade-current {
    background: var(--vd-bg-card);
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.vd-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.vd-usage-card {
    background: var(--vd-bg-card);
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    padding: 1rem;
}
.vd-usage-card-title {
    color: var(--vd-text-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .25rem;
}
.vd-usage-card-value {
    color: var(--vd-text);
    font-size: 1.5rem;
    font-weight: 700;
}
.vd-usage-card-limit {
    color: var(--vd-text-muted);
    font-size: .8rem;
}
.vd-usage-bar-lg {
    height: 8px;
    background: var(--vd-border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: .5rem;
}

/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM v1 — componentes novos (23/07/2026)
   Docs/design/DESIGN_SYSTEM.md · demonstração viva em /styleguide
   ═══════════════════════════════════════════════════════════ */

/* ─── Título display (páginas públicas e heros) ─────────── */
.vd-display {
    font-family: var(--vd-font-display);
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.12;
    color: var(--vd-ink-strong);
}
.vd-display em { font-style: italic; color: var(--vd-seal); }

/* ─── Hash / código (tipografia-herói do produto) ───────── */
.vd-hash {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--vd-font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--vd-text-2);
    background: var(--vd-paper-inset);
    border-radius: var(--vd-radius-sm);
    padding: 0.5rem 0.75rem;
    max-width: 100%;
}
.vd-hash b { color: var(--vd-ink); font-weight: 600; flex-shrink: 0; }
.vd-hash span { word-break: break-all; }
.vd-hash button {
    border: none;
    background: transparent;
    color: var(--vd-text-3);
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    transition: color var(--vd-dur-fast), background var(--vd-dur-fast);
    flex-shrink: 0;
}
.vd-hash button:hover { color: var(--vd-ink); background: rgba(12,33,55,.06); }
.vd-mono { font-family: var(--vd-font-mono); letter-spacing: 0.02em; }

/* ─── Campo de formulário (label + input + hint + erro) ─── */
.vd-field { margin-bottom: 1.25rem; }
.vd-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vd-text);
    margin-bottom: 0.4rem;
}
.vd-field .vd-hint {
    font-size: 0.78rem;
    color: var(--vd-text-3);
    margin-top: 0.3rem;
}
.vd-field.has-error .vd-input { border-color: var(--vd-danger); }
.vd-field.has-error .vd-hint { color: var(--vd-danger); }

/* ─── Stepper do fluxo público ──────────────────────────── */
.vd-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.vd-steps .vd-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vd-text-3);
}
.vd-steps .vd-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--vd-paper-inset);
    color: var(--vd-text-3);
    transition: background var(--vd-dur) var(--vd-ease), color var(--vd-dur) var(--vd-ease);
}
.vd-steps .vd-step.active { color: var(--vd-ink); }
.vd-steps .vd-step.active .vd-step-dot { background: var(--vd-ink); color: #fff; }
.vd-steps .vd-step.done .vd-step-dot { background: var(--vd-seal-bright); color: #fff; }
.vd-steps .vd-step-bar {
    flex: 1;
    height: 2px;
    min-width: 18px;
    background: var(--vd-line);
    border-radius: 1px;
}
.vd-steps .vd-step-bar.done { background: var(--vd-seal-bright); }

/* ─── Trilha de auditoria (serrilha de recibo) ──────────── */
.vd-timeline { list-style: none; margin: 0; padding: 0; }
.vd-timeline li {
    position: relative;
    padding: 0 0 1.25rem 1.75rem;
    border-left: 2px dashed var(--vd-line);
    margin-left: 0.5rem;
}
.vd-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.vd-timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vd-paper-card);
    border: 2.5px solid var(--vd-ink);
}
.vd-timeline li.success::before { border-color: var(--vd-seal-bright); background: var(--vd-seal-bright); }
.vd-timeline .vd-timeline-when {
    font-family: var(--vd-font-mono);
    font-size: 0.72rem;
    color: var(--vd-text-3);
    letter-spacing: 0.02em;
}
.vd-timeline .vd-timeline-what { font-size: 0.9rem; color: var(--vd-text); }

/* ─── Navegação de configurações (estilo ChatGPT) ───────── */
.vd-settings-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 2rem;
    align-items: start;
}
.vd-settings-nav { position: sticky; top: 80px; }
.vd-settings-nav .vd-settings-group {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vd-text-3);
    padding: 1rem 0.75rem 0.35rem;
}
.vd-settings-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--vd-text-2);
    text-decoration: none;
    transition: background var(--vd-dur-fast) var(--vd-ease), color var(--vd-dur-fast) var(--vd-ease);
}
.vd-settings-nav a:hover { background: var(--vd-paper-inset); color: var(--vd-text); }
.vd-settings-nav a.active { background: var(--vd-ink-soft); color: var(--vd-ink); font-weight: 600; }
@media (max-width: 768px) {
    .vd-settings-layout { grid-template-columns: 1fr; }
    .vd-settings-nav { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem; }
    .vd-settings-nav .vd-settings-group { display: none; }
}

/* ─── Estado vazio ──────────────────────────────────────── */
.vd-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--vd-text-2);
}
.vd-empty .vd-empty-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.55;
}
.vd-empty h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vd-text);
    margin: 0 0 0.35rem;
}
.vd-empty p { font-size: 0.875rem; margin: 0 0 1.1rem; }

/* ─── Dashboard / números com contexto ──────────────────── */
.vd-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}
.vd-stat {
    background: var(--vd-paper-card);
    border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius);
    padding: 1rem 1.125rem;
    transition: border-color var(--vd-dur-fast) var(--vd-ease), box-shadow var(--vd-dur-fast) var(--vd-ease);
}
.vd-stat:hover { border-color: #C9D3DE; box-shadow: var(--vd-shadow); }
.vd-stat label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vd-text-3);
}
.vd-stat b {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--vd-ink-strong);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    margin-top: 0.1rem;
}
.vd-stat span { font-size: 0.78rem; font-weight: 600; color: var(--vd-seal); }
.vd-stat span.warn { color: var(--vd-warning); }
.vd-stat span.muted { color: var(--vd-text-3); font-weight: 400; }

/* ─── Ações rápidas ─────────────────────────────────────── */
.vd-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.875rem;
}
.vd-quick-card {
    background: var(--vd-paper-card);
    border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--vd-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform var(--vd-dur-fast) var(--vd-ease),
                border-color var(--vd-dur-fast) var(--vd-ease),
                box-shadow var(--vd-dur-fast) var(--vd-ease);
}
.vd-quick-card i { font-size: 1.5rem; color: var(--vd-ink); transition: transform var(--vd-dur-fast) var(--vd-ease); }
.vd-quick-card:hover {
    transform: translateY(-3px);
    border-color: #C9D3DE;
    box-shadow: var(--vd-shadow-md);
    color: var(--vd-ink);
}
.vd-quick-card:hover i { transform: scale(1.12); }

/* Sub-título do cabeçalho de página */
.vd-page-sub {
    font-size: 0.9rem;
    color: var(--vd-text-2);
    margin: -1.1rem 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   LANDING — overrides do Design System v1 (23/07/2026)
   Carregados por último: vencem as regras lp-* antigas.
   ═══════════════════════════════════════════════════════════ */
.lp-nav-logo-text {
    font-family: var(--vd-font-display);
    font-weight: 600;
    color: var(--vd-ink-strong);
}
.lp-hero {
    background-color: var(--vd-paper-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2316324F' stroke-width='.6' opacity='.05'%3E%3Ccircle cx='60' cy='60' r='48'/%3E%3Ccircle cx='60' cy='60' r='38'/%3E%3Ccircle cx='0' cy='0' r='48'/%3E%3Ccircle cx='120' cy='0' r='48'/%3E%3Ccircle cx='0' cy='120' r='48'/%3E%3Ccircle cx='120' cy='120' r='48'/%3E%3Ccircle cx='60' cy='0' r='28'/%3E%3Ccircle cx='60' cy='120' r='28'/%3E%3Ccircle cx='0' cy='60' r='28'/%3E%3Ccircle cx='120' cy='60' r='28'/%3E%3C/g%3E%3C/svg%3E");
}
.lp-hero h1 {
    font-family: var(--vd-font-display);
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--vd-ink-strong);
}
/* Palavras em destaque: itálico Fraunces com gradiente selo→acento
   (pedido do Herbert 23/07: manter a beleza do gradiente da versão antiga) */
.lp-hero h1 em, .lp-hero h1 span {
    font-style: italic;
    background: linear-gradient(115deg, var(--vd-seal) 20%, var(--vd-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
/* O balão verde "100% Brasileira" mantém o estilo pill original da landing */
/* Verde é selo, não navegação: todo CTA "success" da landing vira tinta */
.lp-btn-success {
    background: var(--vd-ink);
    color: #fff;
    box-shadow: none;
    transition: background var(--vd-dur-fast) var(--vd-ease),
                transform var(--vd-dur-fast) var(--vd-ease),
                box-shadow var(--vd-dur-fast) var(--vd-ease);
}
.lp-btn-success:hover {
    background: var(--vd-ink-strong);
    box-shadow: var(--vd-shadow-lg);
    transform: translateY(-1px);
}
.lp-hero-proof-item i { color: var(--vd-seal); }

/* A folha do herói */
.lp-doc-sheet {
    width: 100%;
    max-width: 460px;
    background: var(--vd-paper-card);
    border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius-lg);
    box-shadow: var(--vd-shadow-lg);
    padding: 1.8rem 1.8rem 0;
    position: relative;
    transform: rotate(1.2deg);
    transition: transform var(--vd-dur) var(--vd-ease);
}
.lp-doc-sheet:hover { transform: rotate(0deg) translateY(-3px); }
.lp-doc-sheet::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--vd-ink-soft);
    border-radius: 8px;
    pointer-events: none;
}
.lp-doc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.lp-doc-head h3 {
    font-family: var(--vd-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vd-ink-strong);
    margin: 0;
}
.lp-doc-head small { color: var(--vd-text-3); font-size: 0.78rem; }
.lp-doc-lines { display: grid; gap: 0.55rem; margin: 1.1rem 0 1.3rem; }
.lp-doc-lines i { display: block; height: 8px; border-radius: 4px; background: var(--vd-paper-inset); }
.lp-doc-lines i:nth-child(2) { width: 86%; }
.lp-doc-lines i:nth-child(3) { width: 92%; }
.lp-doc-lines i:nth-child(4) { width: 64%; }
.lp-doc-stamp {
    position: absolute;
    right: 1.6rem;
    bottom: 4rem;
    transform: rotate(-6deg);
}
.lp-doc-serrilha {
    margin: 1.3rem -1.8rem 0;
    height: 26px;
    background-image: radial-gradient(circle at 10px 0, transparent 7px, var(--vd-paper-card) 7.5px);
    background-size: 20px 26px;
    background-position: 0 14px;
    filter: drop-shadow(0 3px 3px rgba(12,33,55,.06));
}

/* Posições dos elementos flutuantes do herói (evitar colisão com a folha) */
.lp-hero-float-badge.badge-1 { top: -16px; right: -18px; left: auto; bottom: auto; }
.lp-hero-float-badge.badge-2 { bottom: -14px; left: -26px; top: auto; right: auto; }
.lp-doc-stamp { bottom: 5.6rem; }
.lp-doc-sheet .vd-hash { position: relative; z-index: 1; }

/* Login — marca em Fraunces e guilloché de segurança sobre o fundo tinta */
.vd-login-page {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='.6' opacity='.05'%3E%3Ccircle cx='60' cy='60' r='48'/%3E%3Ccircle cx='60' cy='60' r='38'/%3E%3Ccircle cx='0' cy='0' r='48'/%3E%3Ccircle cx='120' cy='0' r='48'/%3E%3Ccircle cx='0' cy='120' r='48'/%3E%3Ccircle cx='120' cy='120' r='48'/%3E%3Ccircle cx='60' cy='0' r='28'/%3E%3Ccircle cx='60' cy='120' r='28'/%3E%3Ccircle cx='0' cy='60' r='28'/%3E%3Ccircle cx='120' cy='60' r='28'/%3E%3C/g%3E%3C/svg%3E"),
                linear-gradient(135deg, var(--vd-ink-strong) 0%, var(--vd-ink) 55%, #1E4368 100%);
}
.vd-login-card { animation: vd-rise var(--vd-dur) var(--vd-ease); }
.vd-login-logo h1 {
    font-family: var(--vd-font-display);
    font-optical-sizing: auto;
    font-weight: 600;
}

/* ─── Utilitários pedidos pela harmonização das páginas Auth ── */
.vd-login-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--vd-text-2);
}
.vd-login-links a { color: var(--vd-accent); font-weight: 600; }
.vd-btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-decoration: none;
}
.vd-login-intro {
    color: var(--vd-text-2);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}
.vd-login-intro ul { font-size: 0.875rem; padding-left: 1.25rem; margin: 0.5rem 0 0; }
.vd-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--vd-text-2);
}
.vd-check input { margin-top: 0.2rem; flex-shrink: 0; }
.vd-field label.vd-check, .vd-field .vd-check { font-weight: 400; }
.vd-login-card-wide { max-width: 520px; }
.vd-label-optional { font-weight: 400; color: var(--vd-text-3); }
/* Links dentro de alerts mantêm contraste com o tom do alerta */
.vd-alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.vd-login-links + .vd-login-links { margin-top: 0.4rem; }

/* ─── Utilitários sistêmicos (rodada Profile, 23/07/2026) ───── */
/* Contêineres de página — substituem max-width/margin inline */
.vd-page-640 { max-width: 640px; margin: 0 auto; }
.vd-page-720 { max-width: 720px; margin: 0 auto; }
.vd-page-980 { max-width: 980px; margin: 0 auto; }
.vd-page-1100 { max-width: 1100px; margin: 0 auto; }
/* Empilhamento vertical com respiro padrão */
.vd-stack > * + * { margin-top: 1.25rem; }
/* Linha de botões */
.vd-btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
/* Âncoras com cara de botão (sem sublinhado, largura própria) */
a.vd-btn-primary, a.vd-btn-secondary, a.vd-btn-ghost, a.vd-btn-danger, a.vd-btn-danger-outline {
    width: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
/* Texto de apoio em células/listas */
.vd-sub { font-size: 0.78rem; color: var(--vd-text-3); }
/* Input de código (TOTP/OTP) */
.vd-input-code {
    font-family: var(--vd-font-mono);
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.1rem;
}
/* Grade de códigos de recuperação */
.vd-code-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-family: var(--vd-font-mono);
    font-size: 0.85rem;
}
/* Consolidação do .vd-card duplicado: card com header interno não leva
   padding próprio (mata o hack style="padding:0" nos cards com tabela) */
.vd-card:has(> .vd-card-header) { padding: 0; overflow: hidden; }
/* Spinner próprio — o Bootstrap CSS não é carregado (só os ícones), então
   .spinner-border era classe morta; ganha implementação vd equivalente */
.spinner-border, .vd-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: vd-spin .7s linear infinite;
    vertical-align: -0.125em;
}
.spinner-border-sm { width: .85em; height: .85em; border-width: 2px; }
@keyframes vd-spin { to { transform: rotate(360deg); } }

/* ─── Compat: utilitárias estilo Bootstrap usadas no markup ─────
   O CSS do Bootstrap NÃO é carregado (só bootstrap-icons); estas
   classes ganham implementação própria mapeada nos tokens vd. */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.ms-auto { margin-left: auto; }
.me-2 { margin-right: 0.5rem; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 1rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-body { color: var(--vd-text); }
.text-muted { color: var(--vd-text-3); }
.text-primary { color: var(--vd-accent); }
.text-success { color: var(--vd-seal); }
.text-warning { color: var(--vd-warning); }
.text-danger { color: var(--vd-danger); }
.fw-bold { font-weight: 700; } .fw-semibold { font-weight: 600; }
.small { font-size: 0.85em; }
.table-responsive { overflow-x: auto; }

/* ─── Classes pedidas pelo lote Documents ──────────────────── */
.vd-status-archived { background: var(--vd-ink-soft); color: var(--vd-ink); }
.vd-tag-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.vd-modal-lg { max-width: 720px; width: 90vw; }
/* Mensagens do <ValidationMessage> do Blazor */
.validation-message {
    display: block;
    color: var(--vd-danger);
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

/* ─── Ajustes sistêmicos (rodada miscelânea) ────────────────── */
/* Card sem padding próprio (tabelas/header+body) — alternativa explícita ao :has */
.vd-card-flush { padding: 0; overflow: hidden; }
/* Botão de largura própria quando o contexto não é formulário */
.vd-btn-auto { width: auto; }
/* Alert com conteúdo longo/múltiplos parágrafos */
.vd-alert { align-items: flex-start; }
.vd-alert-block { display: block; }
.vd-alert-block > :last-child { margin-bottom: 0; }

/* ─── Ajustes sistêmicos (rodada Admin) ─────────────────────── */
/* Modais altos não estouram a viewport */
.vd-modal { max-height: 90vh; display: flex; flex-direction: column; }
.vd-modal-body { overflow-y: auto; flex: 1 1 auto; }
/* Badge neutro dedicado */
.vd-badge-neutral { background: var(--vd-paper-inset); color: var(--vd-text-2); }

/* ─── Compat 2: grid + utilitárias restantes (varredura 23/07) ──
   Implementação própria (Bootstrap não é carregado), tokens vd. */
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.row.g-2 { gap: 0.5rem; } .row.g-3 { gap: 1rem; }
.row > * { grid-column: span 12; min-width: 0; }
.col-6 { grid-column: span 6; } .col-12 { grid-column: span 12; }
@media (min-width: 768px) {
    .col-md-3 { grid-column: span 3; } .col-md-4 { grid-column: span 4; }
    .col-md-5 { grid-column: span 5; } .col-md-6 { grid-column: span 6; }
    .col-md-7 { grid-column: span 7; } .col-md-8 { grid-column: span 8; }
}
.d-grid { display: grid; } .d-none { display: none; }
.d-inline-block { display: inline-block; } .d-inline-flex { display: inline-flex; }
.flex-column { flex-direction: column; } .flex-shrink-0 { flex-shrink: 0; }
.justify-content-center { justify-content: center; } .justify-content-end { justify-content: flex-end; }
.align-items-end { align-items: flex-end; }
.gap-4 { gap: 1.5rem; }
.m-0 { margin: 0; } .mb-1 { margin-bottom: 0.25rem; } .mb-4 { margin-bottom: 1.5rem; }
.me-1 { margin-right: 0.25rem; } .me-auto { margin-right: auto; } .ms-1 { margin-left: 0.25rem; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; } .my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.p-0 { padding: 0; } .p-2 { padding: 0.5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mw-100 { max-width: 100%; } .w-auto { width: auto; }
.rounded { border-radius: var(--vd-radius-sm); } .rounded-0 { border-radius: 0; }
.border { border: 1px solid var(--vd-line); } .border-0 { border: 0; } .border-bottom { border-bottom: 1px solid var(--vd-line); }
.bg-body-tertiary { background: var(--vd-paper-inset); }
.fs-2 { font-size: 1.7rem; } .fs-4 { font-size: 1.25rem; } .fs-6 { font-size: 0.95rem; }
.opacity-50 { opacity: 0.5; }
.text-break { word-break: break-word; overflow-wrap: anywhere; }
.text-dark { color: var(--vd-text); }
.text-decoration-none { text-decoration: none; }
.text-end { text-align: right; } .text-nowrap { white-space: nowrap; }
.text-secondary { color: var(--vd-text-2); }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-uppercase { text-transform: uppercase; }
/* Componentes Bootstrap remanescentes → visual vd equivalente */
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--vd-text); margin-bottom: 0.4rem; }
.form-control, .form-select {
    width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--vd-line);
    border-radius: var(--vd-radius-sm); font-size: 0.95rem; font-family: var(--vd-font);
    color: var(--vd-text); background: var(--vd-paper-card);
}
.form-control:focus, .form-select:focus { outline: none; border-color: var(--vd-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-text { font-size: 0.78rem; color: var(--vd-text-3); }
.form-check { display: flex; gap: 0.5rem; align-items: flex-start; }
.form-check-input { margin-top: 0.2rem; }
.form-check-label { font-size: 0.875rem; color: var(--vd-text-2); }
.input-group { display: flex; }
.input-group > .form-control { border-radius: var(--vd-radius-sm) 0 0 var(--vd-radius-sm); }
.input-group-text { display: flex; align-items: center; padding: 0 0.75rem; border: 1.5px solid var(--vd-line); border-left: 0; border-radius: 0 var(--vd-radius-sm) var(--vd-radius-sm) 0; background: var(--vd-paper-inset); color: var(--vd-text-2); font-size: 0.9rem; }
.alert { padding: 0.875rem 1rem; border-radius: var(--vd-radius-sm); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-danger { background: var(--vd-danger-soft); color: var(--vd-danger); }
.alert-warning { background: var(--vd-warning-soft); color: var(--vd-warning); }
.alert-link { color: inherit; font-weight: 700; text-decoration: underline; }
.badge { display: inline-block; padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; }
.bg-warning { background: var(--vd-warning-soft); color: var(--vd-warning); }
.btn-close { border: none; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--vd-text-3); }
.btn-close::before { content: "✕"; }
.btn-danger { background: var(--vd-danger); color: #fff; border: none; border-radius: var(--vd-radius-sm); padding: 0.5rem 1rem; cursor: pointer; font-weight: 600; }
.nav-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--vd-line); margin-bottom: 1rem; list-style: none; padding: 0; }
.nav-tabs .nav-item { margin: 0; }
.nav-tabs .nav-link { display: block; padding: 0.5rem 0.9rem; border: none; background: none; color: var(--vd-text-2); font-weight: 500; font-size: 0.9rem; cursor: pointer; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { color: var(--vd-ink); border-bottom-color: var(--vd-ink); font-weight: 600; }

/* ─── Centralização global do conteúdo (pedido Herbert 23/07) ──
   Toda página interna fica centrada em telas largas; páginas com
   max-width próprio menor continuam centrando via vd-page-* ou
   margin:0 auto — o contêiner elimina a "metade direita em branco". */
.vd-content-scroll { flex: 1; padding: 1.5rem; overflow-y: auto; }
.vd-content { max-width: 1200px; margin: 0 auto; width: 100%; }
/* Páginas que definem só max-width (sem margin auto) também centram */
.vd-content > [style*="max-width"] { margin-left: auto !important; margin-right: auto !important; }
