/* ==========================================
   STELLANTIS DICTIONARY - DESIGN SYSTEM & STYLES
   ========================================== */

/* Variáveis CSS */
:root {
    --bg-dark: #050a18;
    --bg-deep: #02050c;
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.45);
    --secondary: #06b6d4;
    --accent: #3b82f6;
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #475569;
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Customizada (Cor do Sistema) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 6px;
    border: 2px solid var(--bg-deep);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.35) var(--bg-deep);
}

/* Fundo de Gradiente e Partículas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: radial-gradient(circle at 60% 30%, #0f2454 0%, var(--bg-dark) 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* Animações Globais */
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

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

@keyframes rotateDiamond {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(225deg) scale(1.05); }
    100% { transform: rotate(405deg) scale(1); }
}

/* Header & Navegação */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 10, 24, 0.65);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 1;
    max-width: 250px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.auth-container {
    display: flex;
    align-items: center;
    opacity: 1;
    max-width: 250px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* Estado Scrolled (Rolado para baixo) */
.main-header.scrolled {
    padding: 16px 6%;
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
}

.main-header.scrolled .logo-container {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
    transform: translateX(-30px);
}

.main-header.scrolled .auth-container {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
    transform: translateX(30px);
    overflow: hidden;
}

.main-header.scrolled .main-nav {
    margin: 0 auto;
}

.main-header.scrolled .main-nav > ul {
    background: rgba(8, 14, 32, 0.85);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-premium), 0 10px 40px rgba(59, 130, 246, 0.18);
    border-color: rgba(255, 255, 255, 0.12);
}

.stellantis-logo-svg {
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.3, 1);
}

.stellantis-logo-svg:hover {
    transform: scale(1.03);
}

.stellantis-logo-svg:hover .constellation-group {
    transform: rotate(180deg) scale(1.3);
}

.stellantis-logo-svg:hover .stellantis-star {
    opacity: 1 !important;
    fill: var(--accent) !important;
    filter: drop-shadow(0 0 4px var(--accent));
}

.stellantis-star {
    animation: starPulse 6s ease-in-out infinite;
    transition: fill 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

.stellantis-star:nth-child(2n) {
    animation-delay: 1.5s;
}

.stellantis-star:nth-child(3n) {
    animation-delay: 3s;
}

.stellantis-star:nth-child(4n) {
    animation-delay: 4.5s;
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.85);
    }
    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 8px;
    background: rgba(15, 23, 42, 0.4);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.btn-login {
    background-color: var(--text-main);
    color: var(--bg-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-login:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Wrapper de Conteúdo Principal */
.content-wrapper {
    margin-top: 100px;
    padding: 40px 6%;
    min-height: calc(100vh - 100px);
}

/* Abas de Seções */
.app-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   SEÇÃO INÍCIO (HERO)
   ========================================== */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr; /* mais peso p/ o palco 3D (card maior) */
    gap: 32px;
    align-items: center;
    padding-top: 20px;
    min-height: 70vh;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 60px; /* Posicionar mais para a direita */
}

.badge-interactive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
    animation: pulseGlow 2s infinite;
}

.badge-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #93c5fd;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 68px; /* Aumentado de 58px */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.italic-highlight {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

.hero-title .big-word {
    font-size: 88px;
    line-height: 0.95;
    display: inline-block;
    margin: 8px 0;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 18px; /* Aumentado de 16px */
    line-height: 1.6;
    max-width: 480px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: var(--text-main);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

/* Visualizador do Carro (Hero Direita) */
.car-visualizer-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.car-view-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1.35;      /* mais alto = maior área de "ambiente" ao redor do carro */
    min-height: 480px;        /* garante um palco generoso no desktop (o fit reenquadra) */
    background: radial-gradient(circle, rgba(15,36,84,0.3) 0%, rgba(5,10,24,0) 70%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
    user-select: none;
    pointer-events: none;
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

.hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red);
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
    opacity: 0.6;
}

.hotspot-core {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--text-main);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
    transition: transform 0.2s ease;
}

.hotspot:hover .hotspot-core {
    transform: scale(1.3);
    background-color: var(--accent-red);
}

.hotspot:hover .hotspot-pulse {
    animation-duration: 0.8s;
}

/* Info Card do Hotspot */
.hotspot-info-card {
    position: absolute;
    bottom: -20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    width: 320px;
    box-shadow: var(--shadow-premium), 0 0 30px rgba(59, 130, 246, 0.1);
    z-index: 20;
    display: none;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.hotspot-info-card.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.hotspot-info-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.hotspot-info-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.hotspot-card-actions {
    display: flex;
    gap: 10px;
}

.btn-card-action {
    flex: 1;
    background-color: var(--primary);
    color: var(--text-main);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-card-action:hover {
    background-color: #1d4ed8;
}

.btn-card-action.secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-card-action.secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-close-card {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-card:hover {
    color: var(--text-main);
}

.rotation-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 6px 16px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

.rotate-icon {
    width: 14px;
    height: 14px;
    color: var(--secondary);
}

.visualizer-toggle-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.visualizer-toggle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ==========================================
   PALCO 3D DA INÍCIO (HomeStage — estilo T04b)
   Carro 3D real como herói, hotspots ancorados nas peças.
   ========================================== */
.home3d-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    z-index: 2;
    cursor: grab;
    /* touch-action: pan-y é setado via JS p/ NÃO travar a rolagem vertical */
}
.home3d-canvas:active { cursor: grabbing; }

/* camada de overlay onde os hotspots são posicionados (projeção 3D->2D) */
.home3d-hotspots {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none; /* só os botões de hotspot capturam clique */
}

/* loader */
.home3d-loader {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}
.home3d-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(111, 168, 255, 0.22);
    border-top-color: var(--secondary, #6fa8ff);
    animation: spin-loader 0.9s linear infinite;
}

/* ---- Hotspot ancorado (marcador vermelho pulsante + zona de realce) ---- */
.home3d-hotspot {
    position: absolute;
    z-index: 5;
    transform: translate(-50%, -50%);
    /* alvo de toque >= 44x44 (WCAG 2.5.5); o marcador visual (13px) fica centrado.
       .hs-zone/.hs-tip são absolutos e continuam ancorados no centro (50%/50%). */
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    /* mesmo comportamento do canvas: rolagem vertical passa, arraste horizontal gira */
    touch-action: pan-y;
    transition: opacity 0.25s ease;
    will-change: left, top, opacity;
}
.home3d-hotspot.occluded {
    opacity: 0;
    pointer-events: none;
    /* remove o hotspot oculto (lado oposto do carro) da ordem de tab e da
       árvore de acessibilidade — evita foco de teclado em marcador invisível */
    visibility: hidden;
}
.home3d-hotspot .hs-mark {
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    border: 2px solid var(--accent-red);
    background: rgba(255, 60, 60, 0.18);
    box-shadow: 0 0 10px 2px rgba(255, 60, 60, 0.5);
    transition: opacity 0.18s ease;
    animation: home3d-hotpulse 2.2s ease-in-out infinite;
}
@keyframes home3d-hotpulse {
    0%, 100% { box-shadow: 0 0 8px 1px rgba(255, 60, 60, 0.45); }
    50% { box-shadow: 0 0 16px 4px rgba(255, 60, 60, 0.8); }
}
.home3d-hotspot:hover .hs-mark,
.home3d-hotspot:focus-visible .hs-mark { opacity: 0; }

.home3d-hotspot .hs-zone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.55);
    border: 2px solid var(--accent-red);
    border-radius: 12px;
    background: rgba(255, 45, 45, 0.10);
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.35), 0 0 22px 5px rgba(255, 50, 50, 0.5),
                inset 0 0 18px rgba(255, 80, 80, 0.28);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.2s ease;
    pointer-events: none;
}
.home3d-hotspot:hover .hs-zone,
.home3d-hotspot:focus-visible .hs-zone {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.home3d-hotspot:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 4px;
    border-radius: 6px;
}

/* tooltip: nome + prévia (vindos do TERMO real) + CTA */
.home3d-hotspot .hs-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%) translateY(6px);
    background: rgba(10, 16, 34, 0.97);
    border: 1px solid rgba(255, 80, 80, 0.38);
    color: #fff;
    padding: 10px 13px;
    border-radius: 12px;
    width: max-content;
    max-width: 240px;
    font-size: 12.5px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.75);
    z-index: 8;
}
.home3d-hotspot .hs-tip b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.home3d-hotspot .hs-tip .hs-d { display: block; margin-bottom: 7px; color: var(--text-muted); }
/* CTA = cor de AÇÃO do design system (cyan/azul); vermelho fica só no marcador */
.home3d-hotspot .hs-tip .hs-go { color: var(--secondary); font-weight: 700; }
.home3d-hotspot:hover .hs-tip,
.home3d-hotspot:focus-within .hs-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* quando o hotspot está no topo do palco, a tooltip abre para baixo (não corta) */
.home3d-hotspot.tip-below .hs-tip {
    bottom: auto;
    top: calc(100% + 14px);
    transform: translateX(-50%) translateY(-6px);
}
.home3d-hotspot.tip-below:hover .hs-tip,
.home3d-hotspot.tip-below:focus-within .hs-tip {
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home3d-hotspot .hs-mark { animation: none; }
}

/* ---- Hotspot: marcador agora é um <button> (reset de aparência) ---- */
.home3d-hotspot .hs-mark {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    cursor: pointer;
}
.home3d-hotspot .hs-mark:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 3px;
}
/* tooltip fixada quando o hotspot está ativo (toque/clique) */
.home3d-hotspot.is-active .hs-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.home3d-hotspot.is-active .hs-zone { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.home3d-hotspot.is-active .hs-mark { opacity: 0; }

/* ---- tooltip: duas ações (Ver no dicionário / Inserir ideia) ---- */
.home3d-hotspot .hs-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.home3d-hotspot .hs-go,
.home3d-hotspot .hs-idea {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
}
.home3d-hotspot .hs-go { color: var(--secondary); border-color: rgba(111, 168, 255, 0.4); }
.home3d-hotspot .hs-go:hover { background: rgba(111, 168, 255, 0.2); }
.home3d-hotspot .hs-idea:hover { background: rgba(255, 255, 255, 0.14); }
.home3d-hotspot .hs-go:focus-visible,
.home3d-hotspot .hs-idea:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ==========================================
   CONTROLES DO MOTOR 3D T04b (c3d-*) — dica, girar/parar,
   alternador Exterior/Interior, barra de zoom, fallback.
   Injetados dentro de #carViewBox e #canvas3dContainer.
   ========================================== */
.c3d-hint {
    position: absolute; left: 12px; top: 12px; z-index: 6;
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
    border-radius: 999px; background: rgba(9, 14, 34, 0.62);
    border: 1px solid rgba(143, 208, 255, 0.22); color: var(--text-muted);
    font-size: 11.5px; backdrop-filter: blur(6px); white-space: nowrap;
    pointer-events: none;
}
.c3d-hint svg { color: var(--secondary); flex-shrink: 0; }

.c3d-rotbtn {
    position: absolute; right: 12px; top: 12px; z-index: 6;
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px;
    border-radius: 999px; background: rgba(9, 14, 34, 0.62);
    border: 1px solid rgba(143, 208, 255, 0.22); color: var(--text-muted);
    font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
    backdrop-filter: blur(6px); transition: color .18s, border-color .18s, background .18s;
}
.c3d-rotbtn:hover { color: #fff; border-color: rgba(143, 208, 255, 0.45); background: rgba(15, 22, 52, 0.72); }
.c3d-rotbtn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.c3d-rotbtn svg { color: var(--secondary); flex-shrink: 0; }
.c3d-rotbtn .ico-pause { display: none; }
.c3d-rotbtn.is-paused .ico-play { display: none; }
.c3d-rotbtn.is-paused .ico-pause { display: block; }

/* Toggle de BANCOS — só na vista Interior (revelado via JS). Ancorado abaixo do
   botão girar/parar, no canto superior direito; mesma linguagem visual c3d-*. */
.c3d-seatbtn {
    position: absolute; right: 12px; top: 52px; z-index: 6;
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px;
    border-radius: 999px; background: rgba(9, 14, 34, 0.62);
    border: 1px solid rgba(143, 208, 255, 0.22); color: var(--text-muted);
    font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
    backdrop-filter: blur(6px); transition: color .18s, border-color .18s, background .18s;
}
.c3d-seatbtn:hover { color: #fff; border-color: rgba(143, 208, 255, 0.45); background: rgba(15, 22, 52, 0.72); }
.c3d-seatbtn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.c3d-seatbtn svg { color: var(--secondary); flex-shrink: 0; }
.c3d-seatbtn.is-on { color: #fff; border-color: rgba(143, 208, 255, 0.5); background: rgba(59, 130, 246, 0.28); box-shadow: inset 0 0 0 1px rgba(143, 208, 255, 0.35); }

.c3d-viewtabs {
    position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%);
    z-index: 6; display: inline-flex; gap: 4px; padding: 4px;
    border-radius: 999px; background: rgba(9, 14, 34, 0.62);
    border: 1px solid rgba(143, 208, 255, 0.22); backdrop-filter: blur(6px);
}
.c3d-viewtab {
    font-family: inherit; cursor: pointer; border: 0; background: transparent;
    color: var(--text-muted); font-size: 11.5px; font-weight: 600;
    padding: 6px 13px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .18s, background .18s, box-shadow .18s;
}
.c3d-viewtab svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--secondary); }
.c3d-viewtab:hover { color: #fff; }
.c3d-viewtab[aria-pressed="true"] { color: #fff; background: rgba(59, 130, 246, 0.28); box-shadow: inset 0 0 0 1px rgba(143, 208, 255, 0.35); }
.c3d-viewtab:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }

.c3d-zoomctl { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 6; touch-action: none; user-select: none; }
.c3d-zoomctl svg { overflow: visible; display: block; cursor: pointer; }
.c3d-zoomctl .zt { fill: none; stroke: rgba(143, 208, 255, 0.30); stroke-width: 3.5; stroke-linecap: round; }
.c3d-zoomctl .zh { fill: #fff; stroke: var(--secondary); stroke-width: 2.5; cursor: grab; }
.c3d-zoomctl .zh:active { cursor: grabbing; }
.c3d-zoomctl text { fill: var(--text-muted); font-size: 16px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; font-family: inherit; }

/* hotspot oculto quando a vista ativa não é a dele */
.home3d-hotspot.c3d-hidden { display: none !important; }

/* fallback sem WebGL (usado no Explorador) */
.c3d-fallback {
    position: absolute; inset: 0; z-index: 8; display: none; place-items: center;
    text-align: center; padding: 30px; color: var(--text-muted);
    background: rgba(7, 11, 26, 0.4);
}
.c3d-fallback.show { display: grid; }
.c3d-fallback strong { color: var(--text-main); }

@media (max-width: 480px) {
    .c3d-hint { font-size: 10.5px; padding: 6px 10px; max-width: calc(100% - 128px); white-space: normal; }
    .c3d-rotbtn { font-size: 10.5px; padding: 6px 10px 6px 8px; }
    .c3d-viewtabs { bottom: 54px; }
}

/* ==========================================
   SEÇÕES GENÉRICAS (Headers)
   ========================================== */
.section-header {
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ==========================================
   SEÇÃO DICIONÁRIO
   ========================================== */
.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-box-wrapper input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 16px 16px 48px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.term-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.term-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.term-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-premium), 0 0 20px rgba(59, 130, 246, 0.05);
}

.term-card:hover::before {
    opacity: 1;
}

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.term-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.term-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

/* Definição do card: agora é a pilha bilíngue `.term-def-stack` (ver bloco
   "VERBETE BILÍNGUE" adiante). A regra antiga `.term-def` saiu junto com o
   parágrafo único de definição. */

.term-meta {
    font-size: 11px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

/* ------------------------------------------------------------------
   VERBETE BILÍNGUE — original (EN) + tradução (PT) juntos no card.
   O seletor de idioma só reordena; nenhum bloco é escondido por ele.
   ------------------------------------------------------------------ */

/* Seletor "Exibir primeiro: Português | Inglês" (radiogroup) */
.term-lang-toggle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.term-lang-toggle-caption {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.term-lang-toggle-group {
    display: inline-flex;
    padding: 3px;
    gap: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.term-lang-opt {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-lang-opt:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.term-lang-opt[aria-checked="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Foco bem visível: contraste alto contra o fundo escuro (>= 3:1) */
.term-lang-opt:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

.term-lang-toggle-note {
    font-size: 11px;
    color: var(--text-dark);
}

/* Pilha dos blocos de definição (um por idioma) */
.term-def-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 16px;
}

.term-def-stack.is-modal {
    gap: 16px;
    margin: 0;
}

.term-def-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Rótulo de idioma: texto real (não só title/cor) — leitor de tela lê */
.term-lang-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin: 0;
}

.term-def-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Primário: destaque de leitura, 3 linhas no card */
.term-def-block.is-primary .term-def-text {
    color: var(--text-main);
    font-size: 13.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 6.1em; /* fallback p/ navegador sem line-clamp */
}

/* Secundário: o outro idioma, atenuado mas SEMPRE presente, 2 linhas */
.term-def-block.is-secondary {
    padding-left: 10px;
    border-left: 2px solid var(--glass-border);
}

.term-def-block.is-secondary .term-def-text {
    font-size: 12px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3.6em;
}

.term-def-block.is-empty .term-def-text {
    font-style: italic;
}

/* Sem clamp no modal de detalhes: lá o texto vai inteiro */
.term-def-stack.is-modal .term-def-text {
    display: block;
    max-height: none;
    overflow: visible;
    font-size: 14px;
    line-height: 1.6;
}

/* No modal o secundário não pode ficar difícil de ler: é a referência de
   conferência do original em inglês. */
.term-def-stack.is-modal .term-def-block.is-secondary .term-def-text {
    color: var(--text-muted);
}

.term-def-stack.is-modal .term-lang-label {
    font-size: 11px;
    margin-bottom: 2px;
}

/* Selo de status de tradução — sempre com texto, nunca só cor */
.term-lang-badge {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.term-lang-badge.is-ok {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.28);
}

.term-lang-badge.is-status {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 10px;
}

/* Bloco de referência somente-leitura do modal de editar */
.term-def-ref {
    margin-top: 6px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-wrap;
    user-select: text;
}

.term-def-ref:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .term-lang-opt { transition: none; }
}

/* Ações do canto superior do card (ícone decorativo + editar) */
.term-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Botão minimalista de editar verbete (lápis). Discreto, alvo de toque
   adequado (>=32px), foco visível — só aparece p/ quem tem dictionary.edit
   (coordinator/admin), gate em app.js. */
.term-card-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}
.term-card-edit-btn:hover {
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
}
.term-card-edit-btn:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    color: var(--secondary);
}
.term-card-edit-btn i {
    width: 15px;
    height: 15px;
}
@media (prefers-reduced-motion: reduce) {
    .term-card-edit-btn { transition: none; }
}

/* ==========================================
   SEÇÃO EXPLORADOR 3D REAL
   ========================================== */
.explorador-3d-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    height: 60vh;
    min-height: 480px;
}

.canvas-3d-container {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

.canvas-instructions {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 5;
}

.canvas-instructions i {
    width: 12px;
    height: 12px;
}

.canvas-overlay-ui {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.btn-canvas-ui {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-canvas-ui:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.details-panel-3d {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-details-3d {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-details-3d h3 {
    font-family: var(--font-heading);
    font-size: 18px;
}

.panel-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.component-list-3d {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-3d-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.comp-3d-btn i {
    width: 16px;
    height: 16px;
}

.comp-3d-btn:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
}

.comp-3d-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-main);
    border-color: var(--accent);
}

.inspected-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: auto;
}

.inspected-info h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.inspected-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================
   SEÇÃO CHAT IA
   ========================================== */
.chat-gpt-layout {
    display: flex;
    height: 60vh;
    min-height: 500px;
    background: rgba(8, 14, 32, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

/* Sidebar do Chat */
.chat-sidebar {
    width: 250px;
    background: rgba(5, 9, 21, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    gap: 20px;
    flex-shrink: 0;
}

.btn-new-chat {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-new-chat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.side-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.side-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.side-nav-item i {
    width: 16px;
    height: 16px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 1px;
    padding-left: 12px;
}

.chat-history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-item {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.history-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Área Principal do Chat */
.chat-main-area {
    flex-grow: 1;
    background: rgba(8, 14, 32, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Topbar */
.chat-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(8, 14, 32, 0.3);
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.model-selector:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.model-selector i {
    width: 14px;
    height: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-upgrade {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-upgrade:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-upgrade i {
    width: 12px;
    height: 12px;
    color: #fde047;
}

.user-avatar-top {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Corpo do Chat */
.chat-body-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    max-height: calc(60vh - 120px);
}

/* Estado Vazio (IDÊNTICO AO CHATGPT) */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
    max-width: 580px;
    width: 100%;
}

.chat-empty-state h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.chat-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.suggestion-card h5 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.suggestion-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Rolagem de Mensagens Ativas */
.chat-messages-scroll {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 20px;
    height: 100%;
    overflow-y: auto;
    justify-content: flex-start;
    align-self: center;
}

/* Mensagens (Estilo Moderno ChatGPT) */
.chat-messages-scroll .message {
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
}

.chat-messages-scroll .message.user {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.chat-messages-scroll .msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 12px;
}

.chat-messages-scroll .message.user .msg-avatar {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--secondary);
}

.chat-messages-scroll .msg-content {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    flex-grow: 1;
}

.chat-messages-scroll .msg-content p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-main);
}

/* Input Área (Design Idêntico ChatGPT) */
.chat-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px 24px 16px 24px;
    background: linear-gradient(180deg, rgba(8, 14, 32, 0) 0%, rgba(8, 14, 32, 0.95) 50%);
    z-index: 5;
}

.chat-input-wrapper-gpt {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 680px;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 28px;
    padding: 6px 8px 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.chat-input-wrapper-gpt:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
    background: rgba(30, 41, 59, 0.9);
}

.chat-input-wrapper-gpt input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 14px;
    padding: 10px 8px;
}

.chat-input-wrapper-gpt input:focus {
    outline: none;
}

.btn-input-attach {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-input-attach:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.btn-input-attach i {
    width: 18px;
    height: 18px;
}

.input-right-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-input-voice, .btn-input-audio {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-input-voice:hover, .btn-input-audio:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.btn-input-voice i, .btn-input-audio i {
    width: 16px;
    height: 16px;
}

.btn-send-gpt {
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-send-gpt:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.btn-send-gpt i {
    width: 16px;
    height: 16px;
}

.chat-footer-disclaimer {
    font-size: 10px;
    color: var(--text-dark);
    margin-top: 8px;
    text-align: center;
}

/* ==========================================
   SEÇÃO TREINAMENTO
   ========================================== */
.training-sub-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.sub-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sub-nav-btn i {
    width: 14px;
    height: 14px;
}

.sub-nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.sub-nav-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-main);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.training-sub-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.training-sub-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sub-section-intro {
    margin-bottom: 20px;
}

.sub-section-intro h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-main);
}

.sub-section-intro p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Flashcards 3D Layout */
.flashcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.flashcard-container {
    perspective: 1000px;
    height: 230px;
}

.flashcard {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.flashcard-front {
    background: var(--glass-bg);
    color: var(--text-main);
}

.flashcard-back {
    background: linear-gradient(135deg, #0a142c 0%, #030612 100%);
    color: var(--text-main);
    transform: rotateY(180deg);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.card-logo-watermark {
    position: absolute;
    right: 15px;
    bottom: -10px;
    font-size: 96px;
    font-weight: 800;
    opacity: 0.025;
    font-family: var(--font-heading);
    pointer-events: none;
    user-select: none;
}

.flashcard h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-main);
}

.flashcard-front h4 {
    color: #93c5fd;
}

.flashcard-back h4 {
    color: var(--secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
}

.flashcard p {
    font-size: 13px;
    line-height: 1.5;
    color: #e2e8f0;
}

.flashcard-back p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #cbd5e1;
}

.click-hint, .click-hint-back {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    margin-top: auto;
}

.click-hint i, .click-hint-back i {
    width: 12px;
    height: 12px;
}

.click-hint {
    color: #93c5fd;
}

.click-hint-back {
    color: var(--secondary);
}

/* Conteúdo Técnico Layout */
.conteudo-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    min-height: 460px;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.55);
}

.course-card.active {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.course-badge.iniciante {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.course-badge.intermediario {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.course-badge.avancado {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.course-duration {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-duration i {
    width: 12px;
    height: 12px;
}

.course-card h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-main);
}

.course-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.course-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 9px;
    color: var(--text-muted);
    text-align: right;
}

.btn-start-course {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-start-course:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Leitor de Cursos */
.course-reader-panel {
    background: rgba(8, 14, 32, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    max-height: 500px;
}

.reader-empty-state {
    text-align: center;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
}

.reader-icon-huge {
    width: 48px;
    height: 48px;
    color: var(--text-dark);
    margin: 0 auto 12px auto;
}

.reader-empty-state h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-main);
}

.reader-empty-state p {
    font-size: 12px;
    line-height: 1.4;
}

.reader-content-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.reader-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.reader-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-main);
}

.reader-header .reader-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.reader-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reader-body p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
}

.reader-body h5 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--secondary);
    margin-top: 10px;
    border-left: 2px solid var(--secondary);
    padding-left: 8px;
}

.reader-note {
    background: rgba(6, 182, 212, 0.04);
    border-left: 3px solid var(--secondary);
    padding: 16px;
    border-radius: 0 10px 10px 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #94a3b8;
}

/* ==========================================
   DROPDOWN MENUS (MENU SUPERIOR)
   ========================================== */
.nav-item-dropdown {
    position: relative;
    list-style: none;
}

.dropdown-chevron {
    width: 12px;
    height: 12px;
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 2px;
    vertical-align: middle;
    color: var(--text-muted);
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--text-main);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    list-style: none;
    background: rgba(8, 14, 32, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 4px;
    width: 210px;
    box-shadow: var(--shadow-premium), 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.dropdown-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-main);
}

/* ==========================================
   SEÇÃO INFORMAÇÕES
   ========================================== */
.info-sub-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.info-sub-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.info-sub-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

.specialist-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.specialist-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: var(--shadow-premium), 0 0 20px rgba(59, 130, 246, 0.05);
}

.specialist-avatar-container {
    position: relative;
    width: 64px;
    height: 64px;
}

.specialist-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.specialist-avatar.blue {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.specialist-avatar.cian {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.specialist-avatar.green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.specialist-status {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #080f24;
}

.specialist-status.active {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.specialist-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.specialist-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-main);
}

.specialist-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specialist-dept {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.specialist-dept i {
    width: 12px;
    height: 12px;
}

.specialist-bio {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    min-height: 54px;
    margin-top: 4px;
}

.btn-contact-specialist {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-contact-specialist:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Diretrizes Globais List */
.diretrizes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.diretriz-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.diretriz-item:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.55);
}

.diretriz-icon {
    color: var(--secondary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diretriz-icon i {
    width: 24px;
    height: 24px;
}

.diretriz-content h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.diretriz-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Projetos Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium), 0 0 25px rgba(6, 182, 212, 0.05);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-code-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(6, 182, 212, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.project-card-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-main);
}

.project-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    min-height: 36px;
}

.project-info-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: 4px;
}

.project-info-table td {
    padding: 6px 0;
    color: var(--text-muted);
}

.project-info-table td:last-child {
    text-align: right;
    color: var(--text-main);
}

.status-indicator {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-indicator.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Infotainment Grid & Filters */
.infotainment-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.infotainment-filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.infotainment-filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.infotainment-filter-btn.active {
    background: var(--primary);
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.infotainment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.infotainment-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.infotainment-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.55);
}

/* Imagem no topo das cards (padrão das cards de Projeto) */
.infotainment-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
}

.infotainment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.infotainment-card:hover .infotainment-image {
    transform: scale(1.05);
}

.infotainment-image-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(6, 182, 212, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.infotainment-card-body {
    display: flex;
    gap: 16px;
    padding: 20px;
    flex-grow: 1;
}

.infotainment-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.infotainment-card-icon i {
    width: 22px;
    height: 22px;
}

.infotainment-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.infotainment-card-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.infotainment-card-icon.cian {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.infotainment-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.info-cat-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.infotainment-card-content h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-main);
}

.infotainment-card-content p {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-muted);
    min-height: 52px;
}

.info-applied {
    font-size: 10px;
    color: var(--text-dark);
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 6px;
}

.info-applied strong {
    color: var(--text-muted);
}

/* ==========================================
   ESTRUTURA ORGANIZACIONAL & MAPA GLOBAL
   ========================================== */
.org-view-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* Breadcrumbs de Navegação da Árvore */
/* Breadcrumbs de Navegação da Árvore */
.org-breadcrumbs-container {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: rgba(15, 23, 42, 0.4);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    font-size: 11px;
}

.org-breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.org-breadcrumb-item {
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.org-breadcrumb-item:hover {
    color: var(--secondary);
}

.org-breadcrumb-item.active {
    color: var(--text-main);
    pointer-events: none;
    font-weight: 700;
}

.org-breadcrumb-sep {
    color: var(--text-dark);
}

/* Modificações do Node clicável */
.tree-node.clickable {
    cursor: pointer;
}

.tree-node.clickable:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.node-expand-tag {
    font-size: 8px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--secondary);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 800;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.tree-node.parent-node {
    opacity: 0.7;
    border-style: dashed;
}

.tree-node.parent-node:hover {
    opacity: 1;
    border-style: solid;
}

.btn-node-hide {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-node:hover .btn-node-hide {
    opacity: 1;
}

.btn-node-hide:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.btn-restore-hidden {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-restore-hidden:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.org-view-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.org-view-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.org-view-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.org-mode-container {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.org-mode-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Árvore Hierárquica */
.org-tree-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 20px;
    overflow-x: auto;
}

.tree-level-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.level-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tree-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--secondary), rgba(255,255,255,0.05));
    margin: 4px 0;
}

.nodes-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.nodes-row.flex-four .tree-node {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
}

.tree-node {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 220px;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.tree-node:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.tree-node.leader-node {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.05);
}

.tree-node.leader-node.active {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.node-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.node-avatar.bg-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: 2px solid var(--secondary);
}

.node-avatar.bg-gray {
    background: linear-gradient(135deg, #374151 0%, #6b7280 100%);
    border: 1px solid rgba(255,255,255,0.1);
}

.node-info h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.node-info span {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
    min-height: 26px;
}

.btn-node-locate {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-node-locate:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--text-main);
}

/* Mapa de Distribuição Global */
.org-map-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .org-map-layout {
        grid-template-columns: 1fr;
    }
}

.map-world-container {
    background: rgba(8, 14, 32, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    height: 420px;
    position: relative;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1614730321146-b6fa6a46bcb4?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.map-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 20%, rgba(8,14,32,0.85) 90%),
                linear-gradient(rgba(18, 24, 48, 0.15) 1px, transparent 1px),
                linear-gradient(90deg, rgba(18, 24, 48, 0.15) 1px, transparent 1px);
    background-size: cover, 20px 20px, 20px 20px;
    pointer-events: none;
}

/* Pins Pulsantes no Mapa */
.map-pin-pulse {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.pin-dot {
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    border: 2px solid var(--text-main);
    box-shadow: 0 0 10px var(--secondary);
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
}

.map-pin-pulse:hover .pin-dot {
    transform: scale(1.3);
}

.pin-glow {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    background: rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    z-index: 1;
    animation: pinPulseEffect 2s infinite ease-out;
}

@keyframes pinPulseEffect {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.pin-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--accent);
    color: var(--text-main);
    font-size: 8px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.pin-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    background: rgba(8, 14, 32, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 10px;
    color: var(--text-main);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
    z-index: 4;
}

.map-pin-pulse:hover .pin-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Pins Cores e Badges customizados */
.pin-sa .pin-dot { background: #10b981; box-shadow: 0 0 10px #10b981; }
.pin-sa .pin-glow { background: rgba(16, 185, 129, 0.4); }
.pin-sa .pin-badge { background: #10b981; }

.pin-it .pin-dot, .pin-fr .pin-dot, .pin-de .pin-dot { background: var(--secondary); }

/* Painel de Detalhes do Mapa */
.map-detail-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.panel-loc-empty {
    margin: auto;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.panel-loc-empty i {
    width: 48px;
    height: 48px;
}

.panel-loc-empty h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-muted);
}

.panel-loc-empty p {
    font-size: 12px;
    line-height: 1.4;
}

.panel-loc-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.loc-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
}

.loc-header h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-main);
}

.loc-subtitle {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 600;
}

.loc-stats-block {
    display: flex;
    gap: 10px;
}

.loc-stats-block .stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 6px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loc-stats-block .stat-box.highlighted {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.15);
}

.stat-box .stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-box.highlighted .stat-num {
    color: var(--secondary);
}

.stat-box .stat-lbl {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.loc-team-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    overflow-y: auto;
}

.loc-team-section h5 {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-main);
}

.loc-team-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loc-team-member {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-info h6 {
    font-size: 12px;
    color: var(--text-main);
    font-weight: 600;
}

.member-info span {
    font-size: 10px;
    color: var(--text-muted);
}

.member-role-badge {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================
   PERFIL DE USUÁRIO & GAMIFICAÇÃO (TOPO DIREITO)
   ========================================== */
.user-profile-menu-container {
    position: relative;
    z-index: 110;
}

.btn-profile-toggle {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4px 16px 4px 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.btn-profile-toggle:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.15);
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.user-name-abbr {
    font-size: 13px;
    font-weight: 600;
}

.profile-chevron {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.btn-profile-toggle:hover .profile-chevron {
    color: var(--text-main);
}

/* Dropdown Card */
.profile-dropdown-card {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: rgba(8, 14, 32, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 120;
    white-space: normal;
}

.profile-dropdown-card.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
}

.profile-avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--secondary);
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-header-info h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-main);
}

.profile-cargo {
    font-size: 11px;
    color: var(--text-muted);
}

/* XP Section */
.profile-xp-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px;
    border-radius: 12px;
}

.xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xp-level {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
}

.xp-amount {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
}

.xp-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.xp-hint {
    font-size: 9px;
    color: var(--text-dark);
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    display: block;
}

/* Achievements */
.profile-achievements {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-achievements h5 {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-main);
}

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

.badge-icon {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.badge-icon i {
    width: 14px;
    height: 14px;
}

.badge-icon.active {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.badge-icon.active#badgeBioHybrid {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge-icon.active#badgeADAS {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* Footer */
.profile-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================
   SEÇÃO SOBRE
   ========================================== */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
}

.lead-text {
    font-size: 16px;
    color: #93c5fd;
    line-height: 1.6;
    margin-top: 12px;
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.about-feat-item {
    display: flex;
    gap: 16px;
}

.feat-icon {
    color: var(--secondary);
    flex-shrink: 0;
}

.about-feat-item h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 4px;
}

.about-feat-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.about-tech-stack {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.about-tech-stack h5 {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   PAINEL DE IDEIAS DO PROTÓTIPO (LATERAL)
   ========================================== */
.prototype-ideas-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100vh;
    background: rgba(8, 14, 32, 0.95);
    backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.prototype-ideas-panel.open {
    right: 0;
}

/* Toggle Button Flutuante */
.panel-toggle {
    position: absolute;
    left: -140px;
    top: 110px;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 20px 0 0 20px;
    cursor: pointer;
    box-shadow: -4px 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.panel-toggle:hover {
    background: #1d4ed8;
    box-shadow: -4px 4px 20px rgba(37, 99, 235, 0.6);
}

.bulb-icon {
    width: 18px;
    height: 18px;
    animation: pulseGlow 2s infinite alternate;
}

.toggle-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.idea-count {
    background-color: var(--accent-red);
    color: var(--text-main);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteúdo do Painel */
.panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
}

.panel-header {
    margin-bottom: 20px;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-main);
}

.panel-header p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.idea-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(5, 10, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 12px;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit-idea {
    background: linear-gradient(135deg, var(--secondary) 0%, #0891b2 100%);
    color: var(--text-main);
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-submit-idea:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.saved-ideas-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-ideas-section h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.saved-ideas-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 250px;
}

.no-ideas {
    font-size: 11px;
    color: var(--text-dark);
    text-align: center;
    padding: 20px 0;
}

.idea-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    animation: float 8s ease-in-out infinite;
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.idea-card-tag {
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.idea-card-tag.funcionalidade { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.idea-card-tag.termo { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.idea-card-tag.layout { background: rgba(234, 179, 8, 0.15); color: #fde047; }
.idea-card-tag.hotspot { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.btn-delete-idea {
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-delete-idea:hover {
    color: var(--accent-red);
}

.idea-card h5 {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.idea-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.panel-footer-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.btn-footer-action {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-footer-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn-footer-action.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

/* ==========================================
   MODAL DE ANOTAÇÕES
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 5, 12, 0.8);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: rgba(8, 14, 32, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 420px;
    box-shadow: var(--shadow-premium), 0 0 50px rgba(59, 130, 246, 0.15);
    padding: 24px;
    animation: float 10s ease-in-out infinite;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-main);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-close-modal:hover {
    color: var(--text-main);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body p {
    font-size: 12px;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.btn-modal-action {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-action.primary {
    background: var(--primary);
    color: var(--text-main);
    border: none;
}

.btn-modal-action.primary:hover {
    background: #1d4ed8;
}

.btn-modal-action.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
}

.btn-modal-action.secondary:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

/* Modal de Detalhes de Projetos (Versões) */
.modal-card.modal-large {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-modal-subtitle {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
}

/* Custom Scrollbar para Modal */
.modal-card.modal-large::-webkit-scrollbar {
    width: 6px;
}
.modal-card.modal-large::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.modal-card.modal-large::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.modal-card.modal-large::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.3);
}

/* Versões Grid interna do Modal */
.versions-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
}

.version-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.version-detail-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(6, 182, 212, 0.2);
}

.version-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.version-card-header h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-main);
}

.version-engine-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.version-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    font-size: 11px;
}

.spec-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-info-item span:first-child {
    color: var(--text-muted);
}

.spec-info-item span:last-child {
    color: var(--text-main);
    font-weight: 600;
}

.version-detail-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.version-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.highlight-tag {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ==========================================
   ELEMENTOS DE PARTÍCULAS CANVAS (THREE JS)
   ========================================== */
.webgl {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .car-visualizer-container {
        max-width: 560px; /* card um pouco maior no tablet, ainda centrado */
        margin: 0 auto;
    }

    /* no empilhamento (1 coluna) a largura já define a altura; solta o min-height
       do desktop p/ o card não ficar alto demais nem estourar em telas menores */
    .car-view-box {
        aspect-ratio: 1.45;
        min-height: 0;
    }

    .explorador-3d-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .canvas-3d-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .content-wrapper {
        margin-top: 150px;
        padding: 20px 4%;
    }

    .hero-title {
        font-size: 40px;
    }

    .stats-container {
        justify-content: space-around;
        gap: 20px;
    }
}

/* ==========================================
   LINHA DO TEMPO (MARCOS & CONQUISTAS)
   ========================================== */
.timeline-container {
    position: relative;
    padding: 30px 10px;
    margin-top: 20px;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45px;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary) 0%, rgba(6, 182, 212, 0.1) 100%);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    border-radius: 4px;
    z-index: 1;
}

.timeline-year-section {
    position: relative;
    margin-bottom: 60px;
    z-index: 2;
}

.timeline-year-badge {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid var(--secondary);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3), inset 0 0 10px rgba(255,255,255,0.05);
    margin-left: 15px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
    z-index: 3;
}

.timeline-year-badge.timeline-past {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    text-shadow: none;
    color: var(--text-muted);
}

.timeline-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-left: 15px;
}

/* Responsividade do Grid */
@media (max-width: 1200px) {
    .timeline-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .timeline-items-grid {
        grid-template-columns: 1fr;
    }
    .timeline-line {
        display: none;
    }
    .timeline-year-badge {
        margin-left: 0;
    }
}

.timeline-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.timeline-card:hover::before {
    background: var(--secondary);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
}

.timeline-badge-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.timeline-card-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.timeline-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-tag {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid currentColor;
}

/* Cores das Badges de Números */
.num-01 { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.num-02 { background: linear-gradient(135deg, #10b981, #059669); }
.num-03 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.num-04 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.num-05 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.num-06 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.num-07 { background: linear-gradient(135deg, #eab308, #ca8a04); }
.num-08 { background: linear-gradient(135deg, #84cc16, #65a30d); }
.num-09 { background: linear-gradient(135deg, #f97316, #ea580c); }
.num-10 { background: linear-gradient(135deg, #a855f7, #8b5cf6); }
.num-11 { background: linear-gradient(135deg, #84cc16, #22c55e); }
.num-12 { background: linear-gradient(135deg, #06b6d4, #0891b2); }

/* Cores das Tags */
.tag-blue { background: rgba(59, 130, 246, 0.08); color: #60a5fa; }
.tag-green { background: rgba(16, 185, 129, 0.08); color: #34d399; }
.tag-red { background: rgba(239, 68, 68, 0.08); color: #f87171; }
.tag-orange { background: rgba(245, 158, 11, 0.08); color: #fbbf24; }
.tag-purple { background: rgba(139, 92, 246, 0.08); color: #a78bfa; }
.tag-teal { background: rgba(20, 184, 166, 0.08); color: #2dd4bf; }
.tag-yellow { background: rgba(234, 179, 8, 0.08); color: #facc15; }
.tag-green-light { background: rgba(132, 204, 22, 0.08); color: #a3e635; }
.tag-orange-red { background: rgba(249, 115, 22, 0.08); color: #fb923c; }
.tag-purple-dark { background: rgba(168, 85, 247, 0.08); color: #c084fc; }
.tag-lime { background: rgba(132, 204, 22, 0.08); color: #bef264; }
.tag-cyan { background: rgba(6, 182, 212, 0.08); color: #22d3ee; }

.timeline-list {
    margin: 0;
    padding: 0 0 0 16px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-list li {
    margin-bottom: 8px;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

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

/* Estilo para anos passados */
.card-past {
    opacity: 0.75;
}

.card-past:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(255,255,255,0.02);
}

.card-past:hover::before {
    background: var(--text-muted);
}

.num-past {
    background: #475569;
}

.tag-past {
    background: rgba(100, 116, 139, 0.08);
    color: #94a3b8;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-header-row .section-header {
    margin-bottom: 0;
}

.btn-add-term-minimal {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-term-minimal:hover {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

@media (max-width: 768px) {
    .section-header-row {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* ==========================================
   SELETOR E TIMELINE DE VEÍCULOS
   ========================================== */
.timeline-view-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
    backdrop-filter: blur(8px);
}

.timeline-selector-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-selector-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.timeline-selector-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary) 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.timeline-view-container {
    opacity: 0;
    transform: translateY(10px);
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-view-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Gradientes dos Meses na Timeline de Veículos */
.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-gradient-green { background: linear-gradient(135deg, #10b981, #047857); }
.bg-gradient-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-gradient-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.bg-gradient-purple { background: linear-gradient(135deg, #a855f7, #6b21a8); }
.bg-gradient-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.bg-gradient-yellow { background: linear-gradient(135deg, #eab308, #a16207); }
.bg-gradient-green-light { background: linear-gradient(135deg, #84cc16, #4d7c0f); }
.bg-gradient-orange-red { background: linear-gradient(135deg, #f97316, #dc2626); }
.bg-gradient-purple-dark { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.bg-gradient-cyan { background: linear-gradient(135deg, #06b6d4, #0369a1); }

/* Tags Específicas de Lançamento de Carro */
.tag-mix { background: rgba(168, 85, 247, 0.08); color: #c084fc; }
.tag-engine { background: rgba(6, 182, 212, 0.08); color: #22d3ee; }

/* Molduras de bandeira */
.vehicle-market-flags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.flag-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Badge Beta */
.beta-badge {
    font-size: 11px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 10px;
    border: 1px solid rgba(6, 182, 212, 0.25);
    display: inline-block;
}

/* ==========================================
   CARDS DE AUTOMAÇÃO & IA
   ========================================== */
.automation-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.automation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3) !important;
    box-shadow: var(--shadow-premium), 0 0 25px rgba(6, 182, 212, 0.15);
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3) !important;
    box-shadow: var(--shadow-premium), 0 0 25px rgba(6, 182, 212, 0.15);
}

/* ==========================================
   CARROSSEL DE MARCAS STELLANTIS (TICKER)
   ========================================== */
.stellantis-brands-ticker {
    width: 100%;
    position: relative;
    z-index: 5;
}

.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-track {
    display: inline-flex;
    gap: 55px; /* Aumentado de 40px */
    align-items: center;
    animation: tickerLoop 38s linear infinite; /* Aumentado de 25s (mais lento) */
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    transition: all 0.3s ease;
    cursor: default;
}

.ticker-item img {
    height: 50px; /* Aumentado de 40px */
    max-width: 130px; /* Aumentado de 110px */
    object-fit: contain;
    opacity: 0.45;
    filter: grayscale(1) brightness(2.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker-item:hover img {
    opacity: 1;
    filter: none;
    transform: scale(1.15);
}

@keyframes tickerLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-50% - 15px), 0, 0);
    }
}

/* ==========================================================================
   ESTILOS PREMIUM STELLANTISGPT & NOTEBOOK (WORKSPACE INTEGRADO)
   ========================================================================== */

.stellantis-gpt-style-layout {
    background: rgba(8, 14, 32, 0.45) !important;
    backdrop-filter: blur(20px) !important;
    height: 80vh !important;
    min-height: 680px !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-premium) !important;
    font-family: var(--font-main);
}

.stellantis-gpt-sidebar {
    background: rgba(5, 9, 21, 0.45) !important;
    width: 260px !important;
    padding: 16px 12px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.stellantis-gpt-sidebar-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.stellantis-gpt-sidebar-scroll-area::-webkit-scrollbar {
    width: 4px;
}

.stellantis-gpt-sidebar-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.stellantis-gpt-sidebar-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.25);
}

.stellantis-gpt-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.stellantis-gpt-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stellantis-gpt-sparkle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cpuPulseGlow 3s infinite ease-in-out;
}

@keyframes cpuPulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(6, 182, 212, 0.2)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5)); }
}

.stellantis-gpt-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stellantis-gpt-brand-text .st-sub {
    font-size: 8px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: -3px;
}

.btn-toggle-sidebar {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-toggle-sidebar:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Botão Nova Conversa */
.stellantis-gpt-btn-new-chat {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 32px !important;
    padding: 12px 20px !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
}

.stellantis-gpt-btn-new-chat:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
    color: var(--text-main) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.1);
}

.stellantis-gpt-sidebar-nav {
    gap: 2px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.stellantis-gpt-sidebar-section {
    margin-bottom: 16px !important;
}

.section-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 8px;
    margin-bottom: 6px;
}

.btn-add-notebook {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.btn-add-notebook:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.stellantis-gpt-notebook-list {
    margin-bottom: 8px;
}

.notebook-item {
    font-weight: 400;
}

.notebook-item.active {
    background: rgba(6, 182, 212, 0.08) !important;
    color: var(--accent) !important;
    font-weight: 500 !important;
    border-left: 2px solid var(--accent);
    border-radius: 0 8px 8px 0 !important;
}

/* Área Principal do Chat */
.stellantis-gpt-topbar {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding: 10px 24px !important;
}

.stellantis-gpt-model-selector {
    color: var(--text-main) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: transparent !important;
}

.stellantis-gpt-btn-upgrade {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted) !important;
    padding: 6px 16px !important;
}

.stellantis-gpt-btn-upgrade:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-main) !important;
}

/* Visualizações Alternáveis */
.chat-traditional-view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

/* Estado de Transição de Layout do Input (Centro vs Rodapé) */
.chat-main-area {
    background: transparent !important;
}

.chat-main-area:not(.has-messages) .chat-traditional-view {
    justify-content: center;
    align-items: center;
}

.chat-main-area:not(.has-messages) #chatBodyContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    padding: 20px;
    flex-grow: 0;
}

.chat-main-area:not(.has-messages) .chat-empty-state {
    width: 100%;
    margin-bottom: 24px;
}

.chat-main-area:not(.has-messages) .chat-empty-state h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, #f1a88b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.stellantis-gpt-suggestions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 16px;
}

.stellantis-gpt-suggestions .suggestion-card {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    text-align: left;
    transition: all 0.25s ease;
}

.stellantis-gpt-suggestions .suggestion-card:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
}

.stellantis-gpt-suggestions .suggestion-card h5 {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stellantis-gpt-suggestions .suggestion-card p {
    font-size: 11px;
    color: var(--text-dark);
}

/* Área de Input Centralizada */
.chat-main-area:not(.has-messages) .stellantis-gpt-input-container {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
    background: transparent !important;
    border-top: none !important;
}

/* Área de Input na Parte Inferior (Com Mensagens) */
.chat-main-area.has-messages .chat-traditional-view {
    height: 100%;
}

.chat-main-area.has-messages #chatBodyContainer {
    flex-grow: 1;
    overflow-y: auto;
    width: 100%;
    padding: 24px;
}

.chat-main-area.has-messages .stellantis-gpt-input-container {
    position: sticky;
    bottom: 0;
    background: rgba(8, 14, 32, 0.45);
    backdrop-filter: blur(10px);
    padding: 16px 24px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Pílula de Input do StellantisGPT */
.chat-input-wrapper-stellantis-gpt {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 32px;
    padding: 6px 14px 6px 16px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    width: 100%;
}

.chat-input-wrapper-stellantis-gpt:focus-within {
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.08);
}

.chat-input-wrapper-stellantis-gpt input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 15px;
    padding: 8px 4px;
}

.btn-stellantis-gpt-add {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-stellantis-gpt-add:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.stellantis-gpt-input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-stellantis-gpt-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.btn-stellantis-gpt-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-stellantis-gpt-send {
    background: var(--accent);
    border: none;
    color: #050915;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-stellantis-gpt-send:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.btn-stellantis-gpt-send i {
    width: 16px;
    height: 16px;
}

/* ==========================================
   LAYOUT DO NOTEBOOK (SPLIT SCREEN)
   ========================================== */
.notebook-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-grow: 1;
    overflow: hidden;
    background: transparent;
    height: 100%;
}

/* Lado Esquerdo: Editor */
.notebook-editor-panel {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    padding: 16px 20px;
    background: transparent;
}

.notebook-editor-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.notebook-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notebook-note-title-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    flex-grow: 1;
    padding: 4px 0;
}

.notebook-actions {
    display: flex;
    gap: 8px;
}

.btn-notebook-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notebook-action:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--accent);
}

.btn-notebook-action i {
    width: 12px;
    height: 12px;
}

.notebook-editor-body {
    flex-grow: 1;
    padding: 16px 0;
    overflow: hidden;
}

.notebook-note-textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.notebook-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.note-status-indicator {
    font-size: 11px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-status-indicator i {
    width: 12px;
    height: 12px;
    color: #22c55e;
}

.btn-notebook-save {
    background: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    color: #050915;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-notebook-save:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.btn-notebook-save i {
    width: 12px;
    height: 12px;
}

/* Lado Direito: Chat */
.notebook-chat-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(5, 9, 21, 0.25);
    backdrop-filter: blur(5px);
}

.notebook-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.1);
}

.notebook-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.badge-source {
    font-size: 10px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.notebook-chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
}

.notebook-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.notebook-chat-empty h5 {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.notebook-chat-empty p {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 240px;
    line-height: 1.5;
}

.notebook-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notebook-chat-input-container {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.notebook-chat-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 4px 6px 4px 14px;
}

.notebook-chat-input-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13px;
    padding: 6px 0;
}

.btn-send-notebook-chat {
    background: var(--accent);
    border: none;
    color: #050915;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-send-notebook-chat:hover {
    background: var(--secondary);
}

.btn-send-notebook-chat i {
    width: 12px;
    height: 12px;
}

.ai-pulse-icon {
    animation: aiPulse 2.5s infinite ease-in-out;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; color: var(--secondary); }
}

/* Responsividade e Ajustes */
.notebook-note-textarea::-webkit-scrollbar {
    width: 6px;
}
.notebook-note-textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.notebook-note-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   TELA MEU PERFIL & TIMELINE DE ATIVIDADES
   ========================================== */
.profile-view-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}

.profile-left-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-right-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Card Editar Perfil */
.profile-details-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
}

.profile-details-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.profile-edit-avatar-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-large-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.profile-avatar-input-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form-group label,
.profile-avatar-input-wrapper label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #93c5fd;
}

.profile-form-group input,
.profile-avatar-input-wrapper input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.profile-form-group input:focus,
.profile-avatar-input-wrapper input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

/* Insígnias Detalhadas */
.profile-badges-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-badges-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.profile-badges-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.badge-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 16px;
    transition: all 0.3s ease;
    opacity: 0.55;
}

.badge-detail-item.active {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
    opacity: 1;
}

.badge-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.badge-detail-item.active .badge-detail-icon {
    color: var(--secondary);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.badge-detail-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-detail-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.badge-detail-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Estatísticas de Impacto */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.p-stat-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
}

.p-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050a18;
}

.p-stat-icon i {
    width: 22px;
    height: 22px;
}

.p-stat-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.p-stat-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Histórico / Timeline */
.profile-history-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-history-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.profile-history-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-history-header h3 i {
    color: var(--secondary);
}

.activity-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-timeline-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
}

.profile-timeline-track::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.profile-activity-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.activity-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.profile-activity-item.type-term .activity-dot {
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}

.profile-activity-item.type-idea .activity-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.profile-activity-item.type-flashcard .activity-dot {
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

.activity-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.01);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.timeline-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.timeline-empty-state i {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.05);
}

.timeline-empty-state p {
    font-size: 13px;
    line-height: 1.5;
    max-width: 320px;
}

/* Responsivo */
@media (max-width: 1024px) {
    .profile-view-container {
        grid-template-columns: 1fr;
    }
}

/* Estilos das Insígnias de Ranks e Setores (Gamificação) */
.rank-badge {
    transition: all 0.4s ease;
}

/* Nível 1 - Novato (Bronze) */
.rank-badge.level-1 {
    background: rgba(205, 127, 50, 0.05) !important;
    border-color: rgba(205, 127, 50, 0.2) !important;
}
.rank-badge.level-1 .badge-detail-icon {
    color: #cd7f32 !important;
    border-color: rgba(205, 127, 50, 0.3) !important;
}

/* Nível 2 - Júnior (Prata) */
.rank-badge.level-2 {
    background: rgba(192, 192, 192, 0.05) !important;
    border-color: rgba(192, 192, 192, 0.2) !important;
}
.rank-badge.level-2 .badge-detail-icon {
    color: #c0c0c0 !important;
    border-color: rgba(192, 192, 192, 0.3) !important;
}

/* Nível 3 - Pleno (Ouro) */
.rank-badge.level-3 {
    background: rgba(250, 204, 21, 0.05) !important;
    border-color: rgba(250, 204, 21, 0.2) !important;
}
.rank-badge.level-3 .badge-detail-icon {
    color: #facc15 !important;
    border-color: rgba(250, 204, 21, 0.3) !important;
}

/* Nível 4 - Sênior Elite (Diamante / Ciano Brilhante) */
.rank-badge.level-4 {
    background: rgba(6, 182, 212, 0.08) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    animation: rankElitePulse 2s infinite ease-in-out;
}
.rank-badge.level-4 .badge-detail-icon {
    color: var(--secondary) !important;
    border-color: rgba(6, 182, 212, 0.45) !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4) !important;
}

@keyframes rankElitePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.15);
    }
    50% {
        box-shadow: 0 0 15px 2px rgba(6, 182, 212, 0.25);
        border-color: rgba(6, 182, 212, 0.45);
    }
}

/* Cores Estilizadas das Insígnias de Setores Stellantis */
.badge-detail-item.active.sector-audio {
    background: rgba(59, 130, 246, 0.05) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}
.badge-detail-item.active.sector-audio .badge-detail-icon {
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

.badge-detail-item.active.sector-core {
    background: rgba(249, 115, 22, 0.05) !important;
    border-color: rgba(249, 115, 22, 0.2) !important;
}
.badge-detail-item.active.sector-core .badge-detail-icon {
    color: #f97316 !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}

.badge-detail-item.active.sector-requirements {
    background: rgba(16, 185, 129, 0.05) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}
.badge-detail-item.active.sector-requirements .badge-detail-icon {
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.badge-detail-item.active.sector-displays {
    background: rgba(6, 182, 212, 0.05) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
}
.badge-detail-item.active.sector-displays .badge-detail-icon {
    color: var(--secondary) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
}

.badge-detail-item.active.sector-compliance {
    background: rgba(251, 191, 36, 0.05) !important;
    border-color: rgba(251, 191, 36, 0.2) !important;
}
.badge-detail-item.active.sector-compliance .badge-detail-icon {
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}

.badge-detail-item.active.sector-hardware {
    background: rgba(239, 68, 68, 0.05) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}
.badge-detail-item.active.sector-hardware .badge-detail-icon {
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.badge-detail-item.active.sector-china {
    background: rgba(168, 85, 247, 0.05) !important;
    border-color: rgba(168, 85, 247, 0.2) !important;
}
.badge-detail-item.active.sector-china .badge-detail-icon {
    color: #a855f7 !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

/* ========================================================
   KIT COLABORADOR - INTERATIVO E DINÂMICO
   ======================================================== */
.kit-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

.kit-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(6, 182, 212, 0.1);
}

.kit-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.kit-card-icon-container {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.kit-card:hover .kit-card-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.kit-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.kit-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
}

.kit-card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.kit-card-footer-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================================
   CANAIS OFICIAIS - INTERATIVO E DINÂMICO
   ======================================================== */
.channel-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

.channel-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(6, 182, 212, 0.1);
}

.channel-card-icon-container {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.channel-card:hover .channel-card-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.channel-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.channel-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.channel-card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.channel-card-footer-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================================
   FILTROS DROPDOWN DE INFOTAINMENT
   ======================================================== */
.btn-filter-dropdown:hover {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.btn-filter-dropdown.active {
    border-color: var(--secondary) !important;
    background: rgba(6, 182, 212, 0.05) !important;
}

.btn-filter-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.filter-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-main) !important;
}

.filter-dropdown-menu {
    z-index: 110;
}

/* ========================================================
   MODO DE ORGANIZAR HIERARQUIA
   ======================================================== */
.node-actions-bar {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    gap: 4px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 6px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.org-manage-active .node-actions-bar {
    display: flex !important;
}

.btn-node-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-node-action:hover {
    color: var(--text-main);
}

.btn-node-action.edit:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.btn-node-action.add:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-node-action.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Esconder os outros botões do card quando gerenciando para evitar clique acidental */
.org-manage-active .btn-node-locate {
    display: none !important;
}
.org-manage-active .btn-node-hide {
    display: none !important;
}

/* Seleção de Avatares no Perfil */
.avatar-select-item {
    border: 2px solid transparent !important;
}
.avatar-select-item:hover {
    transform: scale(1.1);
    border-color: rgba(6, 182, 212, 0.4) !important;
}
.avatar-select-item.selected {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transform: scale(1.05);
}
.avatar-selection-list::-webkit-scrollbar {
    height: 4px;
}
.avatar-selection-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.avatar-selection-list::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 2px;
}
.upload-btn:hover {
    border-color: var(--secondary) !important;
    background: rgba(6, 182, 212, 0.05) !important;
}
.upload-btn:hover i {
    color: var(--secondary) !important;
}

/* ========================================================
   RESPONSIVIDADE COMPLETA E PREMIUM PARA TABLETS E CELULARES
   ======================================================== */

/* TABLETS (Até 1024px) */
@media (max-width: 1024px) {
    .main-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 16px 24px !important;
        background: rgba(5, 10, 24, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        position: fixed !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, padding 0.3s, border 0.3s !important;
    }

    .main-header .logo-container {
        max-width: 100% !important;
        width: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        justify-content: center !important;
        margin-bottom: 2px !important;
    }

    .main-header .main-nav {
        width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
        margin-top: 6px !important;
    }
    
    .main-header .main-nav > ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px 10px !important;
        justify-content: center !important;
        list-style: none !important;
    }
    
    .main-header .main-nav > ul > li {
        display: inline-block !important;
    }

    .main-header .auth-container {
        position: absolute !important;
        top: 18px !important;
        right: 24px !important;
        max-width: 250px !important;
        width: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin-top: 0 !important;
    }

    .main-header.scrolled {
        padding: 12px 24px !important;
        background: rgba(5, 10, 24, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .main-header.scrolled .logo-container {
        opacity: 1 !important;
        max-width: 100% !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .main-header.scrolled .auth-container {
        opacity: 1 !important;
        max-width: 250px !important;
        transform: none !important;
        pointer-events: auto !important;
        top: 12px !important;
        right: 24px !important;
    }
    
    .main-header.scrolled .main-nav {
        opacity: 1 !important;
        transform: none !important;
    }

    .content-wrapper {
        margin-top: 165px !important;
        padding-top: 16px !important;
    }

    /* Dropdown de perfil flutuante e centralizado abaixo do botão */
    #profileDropdownCard {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(10px) !important;
        width: 320px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        box-shadow: var(--shadow-premium), 0 10px 40px rgba(0, 0, 0, 0.8) !important;
        z-index: 120 !important;
        white-space: normal !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    #profileDropdownCard.open {
        transform: translateX(-50%) translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Grids */
    .kit-grid, 
    #kitGridContainer,
    .channels-grid, 
    #channelsGridContainer,
    .specialists-grid, 
    #specialistsGridContainer,
    .projects-grid, 
    #projectsGridContainer,
    .automations-grid, 
    #automationsGridContainer,
    .infotainment-grid,
    #infotainmentGridContainer {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Perfil */
    .profile-view-container {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    /* Chat IA */
    .chat-workspace {
        flex-direction: column;
        height: auto;
        min-height: 80vh;
    }

    .chat-notebook-split {
        flex-direction: column;
        height: auto;
    }

    .chat-pane, .notebook-pane {
        width: 100% !important;
        height: 600px;
    }

    /* Explorador 3D */
    .explorer-container {
        flex-direction: column;
        height: auto;
    }

    #canvas3d-container {
        height: 400px !important;
        width: 100%;
    }

    .explorer-sidebar {
        width: 100% !important;
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }
}

/* CELULARES (Até 768px) */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 14px !important;
        gap: 8px 10px !important;
    }

    .main-header .auth-container {
        position: absolute !important;
        top: 12px !important;
        right: 14px !important;
    }

    .main-header.scrolled {
        padding: 12px 14px !important;
    }

    .main-header.scrolled .auth-container {
        top: 10px !important;
        right: 14px !important;
    }

    .content-wrapper {
        margin-top: 155px !important;
        padding-top: 12px !important;
    }

    .logo-container h1 {
        font-size: 15px !important;
    }

    .logo-container .logo-sub {
        font-size: 8.5px !important;
    }

    .main-header .main-nav > ul {
        gap: 6px 8px !important;
    }

    .nav-link {
        padding: 6px 12px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }

    /* Usuário e Dropdown */
    .user-profile-btn {
        padding: 4px 6px;
    }
    
    .profile-name {
        display: none;
    }

    #profileDropdownCard {
        width: 92% !important;
        max-width: 320px !important;
        padding: 16px !important;
    }

    /* Grids de Cards em 1 Coluna */
    .kit-grid, 
    #kitGridContainer,
    .channels-grid, 
    #channelsGridContainer,
    .specialists-grid, 
    #specialistsGridContainer,
    .projects-grid, 
    #projectsGridContainer,
    .automations-grid, 
    #automationsGridContainer,
    .infotainment-grid,
    #infotainmentGridContainer,
    .terms-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Cartões e cabeçalhos de seções */
    .welcome-intro-card {
        padding: 20px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .welcome-intro-card h3 {
        font-size: 18px !important;
    }

    .welcome-intro-card p {
        font-size: 12px !important;
    }

    /* Botão de Adicionar fica 100% de largura */
    .welcome-intro-card button,
    .welcome-intro-card .btn-add-term-minimal {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    /* Filtros de Infotainment */
    .infotainment-filters-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .filter-dropdown-container, 
    .btn-filter-dropdown {
        width: 100% !important;
    }

    .filter-dropdown-menu {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        box-shadow: none !important;
        margin-top: 5px;
    }

    /* Timeline e Conquistas no Perfil */
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .badge-detail-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* Chat IA e Sidebar */
    .chat-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(8, 14, 32, 0.98);
        backdrop-filter: blur(20px);
        border-right: 1px solid var(--glass-border);
    }

    .chat-sidebar.open {
        transform: translateX(0);
    }

    .chat-workspace {
        margin-left: 0 !important;
    }

    .chat-input-container {
        padding: 12px;
    }

    .chat-input-wrapper {
        padding: 8px 14px;
        gap: 8px;
    }

    .chat-input-wrapper textarea {
        font-size: 13px;
    }

    /* Modais */
    .modal-card {
        width: 95% !important;
        margin: 10px;
        padding: 20px !important;
        border-radius: 16px;
    }

    .modal-header h3 {
        font-size: 16px !important;
    }

    .modal-body {
        padding: 10px 0 !important;
        gap: 12px !important;
    }

    .modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn-modal-action {
        width: 100% !important;
        justify-content: center;
        padding: 12px !important;
    }

    /* Carrossel de Marcas (Logo Ticker) */
    .brands-ticker-inner img {
        height: 22px !important;
    }

    /* Pílula de Menu Flutuante */
    .floating-menu-active .nav-tabs {
        padding: 4px 8px !important;
        gap: 4px !important;
    }

    .floating-menu-active .nav-link {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* Pop-up Avatar Picker Grid */
    .avatar-selection-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .avatar-select-item {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Ocultação Inteligente do Header no Scroll Down */
.main-header.header-hidden {
    transform: translateY(-100%) !important;
}
