/* ==========================================================================
   RESET & VARIÁVEIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Premium Baseadas na Logo Tríade Tech */
    --color-bg: #03040b;
    --color-text: #ffffff;
    --color-text-muted: #a0a5ba;
    
    --color-pink: #f72585; /* Rosa da logo */
    --color-green: #70e000; /* Verde da logo */
    --color-blue: #4361ee; /* Azul da logo */
    --color-primary: var(--color-blue); /* Alias para compatibilidade */

    /* Glassmorphism base */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* UI Dimensions */
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   BACKGROUND ANIMADO (Luzes da Logo)
   ========================================================================== */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--color-bg);
}

.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/BackgroundPC.PNG');
    background-size: cover;
    background-position: center;
    mix-blend-mode: normal; 
    filter: brightness(0.2) contrast(1.1); /* Bem escuro e puxado para o preto real */
    opacity: 0.6; /* Deixa visível mas muito mergulhado nas sombras */
    z-index: -1;
}

/* Luzes globais neon removidas e migradas para os botões e logo */

/* ==========================================================================
   BOTÕES & CLASSES UTILITÁRIAS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    position: relative;
    color: #fff;
    border: none;
    background: transparent;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    /* Varredura no sentido horário da borda! */
    background: conic-gradient(from 0deg, transparent 70%, var(--color-pink) 85%, var(--color-blue) 100%);
    animation: rotateBtnNeon 3.5s linear infinite;
    z-index: -2;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 1px; /* Espessura fininha (discreta) da borda neon */
    background: var(--color-bg); /* Fundo central preto */
    border-radius: 7px;
    z-index: -1;
    transition: var(--transition);
}

@keyframes rotateBtnNeon {
    100% { transform: rotate(360deg); }
}

.btn-primary:active {
    transform: translateY(1px);
}

/* .btn-primary:hover::after removido */

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Modificadores pro Botão de Login (Nav) mais acesso */
.auth-buttons .btn-outline {
    border-color: var(--color-blue);
    color: #fff;
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.2), inset 0 0 5px rgba(67, 97, 238, 0.2);
}

.btn-outline:hover, .auth-buttons .btn-outline:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.6);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Borda sutil com um toque de neon escuro na base */
    border: 1px solid rgba(67, 97, 238, 0.15); 
    border-radius: 16px;
    /* Base de Neon Fraca Permanente em volta dos cards */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 10px rgba(67, 97, 238, 0.05);
    padding: 30px;
    /* Transição responsiva para o efeito de Expansão (Mola Suave) */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d; /* Ativa a física 3D real no balão */
    z-index: 1; /* Previne cortes visuais */
}

/* Expansion & Neon Pulse on Hover */
.glass-card:hover {
    /* Super Expansão Otimizada pra 3D - Puxando o eixo Z (Frente) */
    transform: perspective(1000px) translateZ(60px) translateY(-12px) scale(1.08);
    border-color: var(--color-pink); /* Muda a borda para rosa do logotipo */
    /* Efeito Halo Neon intenso, projetando muito as sombras na parede do fundo */
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.9), 
                0 0 40px rgba(247, 37, 133, 0.5),  /* Glow Pink Externo Forte */
                inset 0 0 25px rgba(67, 97, 238, 0.3); /* Glow Blue Interno */
    z-index: 10;
}

/* Títulos de Seção */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(to right, #fff, #a0a5ba);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animação Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(3, 4, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

@keyframes logoPulse {
    0% { 
        filter: drop-shadow(0 0 1px rgba(247, 37, 133, 0.4)) 
                drop-shadow(0 0 1px rgba(67, 97, 238, 0.4)) 
                drop-shadow(0 0 5px rgba(247, 37, 133, 0.1)); 
    }
    50% { 
        filter: drop-shadow(0 0 1px rgba(247, 37, 133, 0.6)) 
                drop-shadow(0 0 1px rgba(67, 97, 238, 0.6)) 
                drop-shadow(0 0 12px rgba(67, 97, 238, 0.4)); 
    }
    100% { 
        filter: drop-shadow(0 0 1px rgba(247, 37, 133, 0.4)) 
                drop-shadow(0 0 1px rgba(67, 97, 238, 0.4)) 
                drop-shadow(0 0 5px rgba(247, 37, 133, 0.1)); 
    }
}

/* Logo padrão */
.logo {
    height: 187px;
    width: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoPulse 5s infinite ease-in-out;
    transform-style: preserve-3d;
}

/* Hover 3D */
.logo:hover {
    transform: perspective(1000px) translateZ(50px) scale(1.15);
}

.header.scrolled .logo {
    height: 125px;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-pink);
    text-shadow: 0 0 15px rgba(247, 37, 133, 0.6);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

/* Responsividade para telas médias (ex: 1024x600) */
@media (max-width: 1024px) {
    .logo {
        height: 110px; /* reduz logo para caber melhor */
    }

    .navbar {
        gap: 20px; /* diminui espaçamento entre links */
    }

    .nav-links {
        gap: 15px;
    }
}

/* Responsividade para tablets e celulares */
@media (max-width: 768px) {
    .logo {
        height: 90px;
    }

    .auth-page {
        padding: 100px 15px 40px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .navbar {
       display: none;
        flex-direction: column;
        gap: 20px;
        background: rgba(3, 4, 11, 0.95);
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 20px;
    }
 .navbar.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: flex; /* mostra botão hamburguer */
    }
}

@media (max-width: 480px) {
    .logo {
        height: 70px;
    }

    .header {
        padding: 10px 15px;
    }
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    text-align: left;
    position: relative;
    overflow: hidden; /* Evita vazamento 3D nas bordas da tela */
}

/* NOVO: Grid da Hero de 2 Colunas */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    margin: 0;
    z-index: 2;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a0a5ba 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle .highlight {
    background: linear-gradient(90deg, var(--color-blue), var(--color-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* ==========================================================================
   ANIMAÇÃO MOCKUP/GLASS MAC E 3 CENAS (WEB, ERP, N8N)
   ========================================================================== */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Alinha o mac à direita no grid */
    perspective: 1200px;
    z-index: 2;
}

.mac-mockup {
    width: 100%;
    max-width: 550px;
    position: relative;
    border-radius: 12px 12px 0 0;
    padding: 12px 12px 20px 12px;
    background: rgba(10, 12, 26, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 50px rgba(67, 97, 238, 0.2);
    /* Rotaciona sutilmente em 3D apontando pra tela principal */
    transform: rotateY(-12deg) rotateX(4deg);
    transition: transform 0.5s ease;
}

/* Interação com quem passa o mouse na tela 3D */
.mac-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.mac-camera {
    width: 6px; height: 6px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 2px rgba(255,255,255,0.2);
}

.mac-screen {
    background: #03040b;
    border-radius: 6px;
    height: 320px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Chassi Base do Notebook */
.mac-base {
    height: 12px;
    background: linear-gradient(90deg, #181a25, #2f3448, #181a25);
    border-radius: 0 0 12px 12px;
    width: 108%;
    margin-left: -4%;
    position: absolute;
    bottom: -10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,1);
}

.mac-notch-base {
    width: 80px; height: 5px;
    background: #111;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
}

/* --- Estrutura das Cenas de Animação (Loop de 15s) --- */
.scene {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/* ========== CENA 1: WEBSITE BUILDER ========== */
.scene-web { animation-name: playWeb; padding: 20px; }
@keyframes playWeb {
    0%, 30% { opacity: 1; z-index: 2; transform: scale(1); }
    33%, 100% { opacity: 0; z-index: 0; transform: scale(0.95); }
}

.web-nav { display: flex; gap: 8px; margin-bottom: 30px; }
.circle-btn { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.web-hero { background: rgba(67, 97, 238, 0.1); border-radius: 6px; padding: 30px 20px; margin-bottom: 25px; text-align: center; border: 1px solid rgba(67, 97, 238, 0.3);}
.web-title { height: 14px; background: var(--color-pink); margin: 0 auto 10px; border-radius: 4px; animation: expandTitle 15s infinite; }
.web-sub { width: 40%; height: 6px; background: #666; margin: 0 auto; border-radius: 3px; }
.web-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.w-card { height: 50px; background: #111; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); animation: riseCard 15s infinite; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.web-grid .w-card:nth-child(2) { animation-delay: 0.2s; }
.web-grid .w-card:nth-child(3) { animation-delay: 0.4s; }

@keyframes expandTitle { 0% { width: 0; } 5%, 33% { width: 60%; } 100% { width: 60%; } }
@keyframes riseCard { 0%, 5% { opacity: 0; transform: translateY(15px); } 12%, 33% { opacity: 1; transform: translateY(0); } 100% { opacity: 0;} }

/* ========== CENA 2: ERP SYSTEM ========== */
.scene-erp { animation-name: playERP; display: flex; }
@keyframes playERP {
    0%, 30% { opacity: 0; z-index: 0; transform: scale(0.95);}
    33%, 63% { opacity: 1; z-index: 2; transform: scale(1);}
    66%, 100% { opacity: 0; z-index: 0; }
}

.erp-sidebar { width: 25%; background: rgba(0,0,0,0.7); padding: 25px 12px; border-right: 1px solid rgba(255,255,255,0.05); }
.s-link { width: 100%; height: 8px; background: #333; margin-bottom: 20px; border-radius: 4px; }
.erp-main { flex: 1; padding: 25px; display: flex; flex-direction: column; gap: 20px; }
.erp-header { height: 16px; width: 40%; background: #222; border-radius: 4px;}
.erp-chart { display: flex; align-items: flex-end; gap: 15px; height: 120px; background: #111; padding: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.bar { flex: 1; background: var(--color-blue); border-radius: 3px 3px 0 0; }
.erp-cards { display: flex; gap: 15px; }
.e-card { flex: 1; height: 50px; background: #111; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }

/* Animação Barras do ERP */
.erp-chart .bar:nth-child(1) { height: 30%; animation: g1 15s infinite; }
.erp-chart .bar:nth-child(2) { height: 50%; animation: g2 15s infinite; }
.erp-chart .bar:nth-child(3) { height: 80%; animation: g3 15s infinite; }
.erp-chart .bar:nth-child(4) { height: 95%; background: var(--color-green); animation: g4 15s infinite; box-shadow: 0 0 10px rgba(112, 224, 0, 0.4); }

@keyframes g1 { 30%, 35% { height: 0; } 39%, 100% { height: 30%; } }
@keyframes g2 { 30%, 37% { height: 0; } 41%, 100% { height: 50%; } }
@keyframes g3 { 30%, 39% { height: 0; } 43%, 100% { height: 80%; } }
@keyframes g4 { 30%, 41% { height: 0; } 45%, 100% { height: 95%; } }

/* ========== CENA 3: n8n FLOWCHART ========== */
.scene-n8n { animation-name: playN8N; padding: 20px; background: #0c0f1a; }
@keyframes playN8N {
    0%, 63% { opacity: 0; z-index: 0; transform: scale(0.95); }
    66%, 96% { opacity: 1; z-index: 2; transform: scale(1); }
    100% { opacity: 0; z-index: 0; }
}

.node { 
    position: absolute; 
    background: rgba(3, 4, 11, 0.9); 
    border: 1px solid var(--color-pink);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.75rem; 
    color: #fff;
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.4);
    font-weight: 600;
}

.n1 { top: 40%; left: 5%; }
.n2 { top: 40%; left: 42%; border-color: var(--color-blue); box-shadow: 0 0 15px rgba(67, 97, 238, 0.4); }
.n3 { top: 40%; right: 5%; border-color: var(--color-green); box-shadow: 0 0 15px rgba(112, 224, 0, 0.4); }

.wire { position: absolute; height: 2px; background: rgba(255,255,255,0.1); }
.w1 { top: calc(40% + 15px); left: 24%; width: 18%; }
.w2 { top: calc(40% + 15px); left: 63%; width: 18%; }

@media (max-width: 480px) {
    .node { font-size: 0.55rem; padding: 6px 8px; }
    .n2 { left: 38%; }
    .w1 { left: 20%; width: 18%; }
    .w2 { left: 68%; width: 18%; }
}

/* O dado passando pelo tubo (Pulse) */
.pulse {
    width: 8px; height: 8px; background: var(--color-green);
    border-radius: 50%; position: absolute; top: -3px; left: 0;
    box-shadow: 0 0 12px var(--color-green);
    animation: firePulse 15s infinite;
}

@keyframes firePulse {
    0%, 66% { left: 0; opacity: 0; }
    70% { left: 0; opacity: 1; }
    75% { left: 100%; opacity: 1; }
    78%, 100% { left: 100%; opacity: 0; }
}

/* ==========================================================================
   SOBRE NÓS
   ========================================================================== */
.about-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    text-align: justify;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.about-text p:first-child {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text);
}

.highlight-text {
    color: var(--color-pink);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(247, 37, 133, 0.4);
}

/* ==========================================================================
   SERVIÇOS / PRODUTOS
   ========================================================================== */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito interno de ZOOM no hover do card */
.glass-card:hover .card-icon {
    transform: scale(1.3) rotate(5deg);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   PROJETOS PORTFOLIO
   ========================================================================== */
.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 380px;
}

.project-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

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

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

.project-category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-blue);
    background: rgba(67, 97, 238, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}

.project-info-minimal h4 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-actions-single {
    margin-top: auto;
}

.btn-visualizar {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.placeholder-img {
    background: linear-gradient(45deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px dashed rgba(255,255,255,0.1);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.project-info h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

.project-link {
    font-size: 0.9rem;
    color: var(--color-blue);
    font-weight: 600;
}

.project-link:hover {
    text-decoration: underline;
}

/* Linha de botões no card (Ver Detalhes + Acessar site) */
.card-links-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

/* Link de acesso ao site nos cards de Sites - destaque em rosa */
.card-site-link {
    color: var(--color-pink) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(247, 37, 133, 0.1);
    border: 1px solid rgba(247, 37, 133, 0.25);
    font-size: 0.88rem;
    transition: background 0.2s, transform 0.2s;
}

.card-site-link:hover {
    background: rgba(247, 37, 133, 0.2);
    transform: translateY(-2px);
    text-decoration: none !important;
}


/* ==========================================================================
   CTA SECTION (Lead Capture)
   ========================================================================== */
.cta-box {
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.cta-box p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #020205; /* Fundo preto 100% ou bem escuro */
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 156px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoPulse 5s infinite ease-in-out;
    transform-style: preserve-3d;
}

.footer-brand .footer-logo:hover {
    transform: perspective(1000px) translateZ(50px) scale(1.15);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    max-width: 250px;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a, .footer-social a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: var(--color-pink);
}

.social-icons {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1001; /* Evita que o wrapper do chatbot bloqueie os cliques */
}

.social-icons a {
    display: inline-block;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.social-icons a svg {
    display: block;
    width: 24px;
    height: 24px;
}

.social-icons a:hover {
    color: var(--color-pink);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   PORTAL DE AUTENTICAÇÃO E FORMULÁRIOS (LOGIN / REGISTRO)
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 2;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    perspective: 1200px;
}

.auth-box {
    padding: 40px 30px;
    background: rgba(10, 12, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    /* Box shadow agressivo combinando com o Neon Base */
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 40px rgba(67, 97, 238, 0.15);
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

.auth-view {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
}

.active-view {
    opacity: 1;
    transform: scale(1) translateX(0);
    position: relative;
    pointer-events: all;
    z-index: 2;
}

.hidden-view {
    opacity: 0;
    transform: scale(0.9) translateX(-40px);
    position: absolute;
    top: 40px; 
    left: 30px;
    right: 30px;
    pointer-events: none;
    z-index: 0;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}

.auth-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

/* CAIXAS DE ENTRADA DO USUARIO COM NEON NO FOCO */
.input-field {
    width: 100%;
    padding: 14px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-field::placeholder {
    color: rgba(255,255,255,0.3);
}

.input-field:focus {
    border-color: var(--color-blue);
    background: rgba(0, 0, 0, 0.8);
    /* O Outline Neon é injetado ao focar */
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.4), inset 0 0 5px rgba(67, 97, 238, 0.2);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-text-muted);
}

.checkbox-container input {
    accent-color: var(--color-pink);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: var(--color-pink);
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(247, 37, 133, 0.8);
}

.auth-submit {
    width: 100%;
    font-size: 1.05rem;
    padding: 14px;
    margin-top: 5px;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.auth-footer a {
    color: var(--color-blue);
    font-weight: 600;
    margin-left: 5px;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(67, 97, 238, 0.8);
}

/* ==========================================================================
   MODAL (Política de Privacidade)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    background: rgba(3, 4, 11, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    background: rgba(10, 12, 26, 0.75);
    border: 1px solid var(--color-pink);
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(247, 37, 133, 0.2);
    border-radius: 16px;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--color-pink);
    transform: rotate(90deg);
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.modal-body h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-blue);
}

.modal-body h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.modal-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    text-align: justify;
}

.modal-body ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.modal-body ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Custom Scrollbar no Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--color-pink);
    border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 900px) {
    .header-container {
        padding: 0 10px;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(3, 4, 11, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    
    .navbar.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        justify-content: center;
        margin-top: 40px;
    }

    .mac-mockup {
        transform: rotateY(0deg) rotateX(0deg);
        max-width: 90%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
}



/* ==========================================================================
   ADMIN & PROJECTS PAGE STYLES
   ========================================================================== */
.admin-only {
    display: none !important;
}

body.admin-mode .admin-only {
    display: inline-flex !important;
}

/* Admin Buttons in Cards */
.card-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.mgmt-btn {
    background: rgba(15, 15, 26, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.mgmt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.add-btn {
    background: rgba(67, 97, 238, 0.8); /* Cor Triade Blue */
}

.add-btn:hover {
    background: var(--color-primary);
}

.edit-btn {
    background: rgba(247, 37, 133, 0.8); /* Cor Triade Pink */
}

.edit-btn:hover {
    background: var(--color-pink);
}

/* Category Parent Cards */
.category-parent-card {
    padding: 30px !important;
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: auto !important;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.category-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-info h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.category-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Sub-projects Section */
.sub-projects-section {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

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

.sub-project-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.sub-project-header h5 {
    font-size: 1.05rem;
    color: white;
}

.sub-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: 0.3s;
}

.sub-edit-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.sub-project-item p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.sub-project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.sub-project-links a {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.sub-project-links a:hover {
    text-decoration: underline;
}

.no-projects-msg {
    text-align: center;
    padding: 20px;
    opacity: 0.5;
    font-style: italic;
    font-size: 0.9rem;
}

/* Category Pillars Structure */
.category-pillar {
    padding: 0 !important; /* Removido o padding do card para a imagem encostar nas bordas */
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto !important;
    min-height: 400px;
    overflow: hidden;
}

.pillar-cover {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-pillar:hover .pillar-cover {
    transform: scale(1.1);
}

.pillar-header {
    padding: 25px 30px; /* Adicionado padding interno pois o do card foi zerado */
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 25px;
}

.pillar-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pillar-info h4 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.pillar-info p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Internal Projects List */
.pillar-projects-list {
    padding: 0 30px 30px; /* Adicionado padding lateral e inferior */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pillar-projects-list h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-pink);
    opacity: 0.9;
    margin-bottom: 5px;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding-top: 10px;
}

.inner-project-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.inner-project-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-blue);
    background: rgba(255, 255, 255, 0.08);
}

.inner-project-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.inner-project-info h5 {
    font-size: 0.95rem;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.inner-project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.inner-link-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: var(--color-blue);
    padding: 6px 12px;
    border-radius: 4px;
    transition: 0.2s;
    width: 100%;
    text-align: center;
}

.inner-link-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.sub-edit-btn-mini {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.4;
    transition: 0.2s;
    margin-left: 10px;
}

.sub-edit-btn-mini:hover {
    opacity: 1;
    color: var(--color-pink);
}

.inner-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inner-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-blue);
    color: white;
}

.inner-link.highlight {
    background: rgba(67, 97, 238, 0.15);
    border-color: rgba(67, 97, 238, 0.3);
    color: var(--color-blue);
    opacity: 1;
}

.inner-link.highlight:hover {
    background: var(--color-primary);
    color: white;
}

.sub-edit-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.4;
    transition: 0.2s;
}

.sub-edit-btn:hover {
    opacity: 1;
    color: var(--color-pink);
    transform: rotate(15deg);
}

.empty-cat-msg {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

#projetos-page .project-card {
    position: relative;
}

#projetos-page .project-img {
    height: 250px; /* Imagem maior na página de projetos detalhada */
}

/* ==========================================================================
   PROJETO DETALHE - Página Individual
   ========================================================================== */

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-pink);
    margin-top: 20px; /* Mais para baixo */
    margin-bottom: 40px;
    font-weight: 500;
}

.detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.detail-breadcrumb a:hover {
    color: var(--color-pink);
    text-shadow: 0 0 8px rgba(247, 37, 133, 0.5);
}

.detail-breadcrumb span {
    color: var(--color-pink);
    opacity: 0.8;
}

.detail-card {
    max-width: 860px;
    margin: 0 auto 80px auto;
    overflow: hidden;
    padding: 0;
}

.detail-cover {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px 16px 0 0;
}

.detail-cover--placeholder {
    background: linear-gradient(135deg, rgba(67,97,238,0.25) 0%, rgba(247,37,133,0.25) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.5;
}

.detail-body {
    padding: 40px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-tag {
    display: inline-block;
    background: rgba(247, 37, 133, 0.15);
    color: var(--color-pink);
    border: 1px solid rgba(247, 37, 133, 0.3);
    border-radius: 50px;
    padding: 4px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}

.detail-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #a0a5ba 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.detail-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 680px;
}

.detail-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 1rem;
    padding: 14px 28px;
    margin-top: 8px;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
    transition: color 0.2s, transform 0.2s;
    width: fit-content;
}

.detail-back:hover {
    color: var(--color-pink);
    transform: translateX(-4px);
}

/* Loading dots para a página de detalhe */
.detail-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 80px 0;
}

.detail-loading span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-pink);
    animation: detailBounce 1.2s infinite ease-in-out;
}

.detail-loading span:nth-child(2) { animation-delay: 0.2s; background: var(--color-blue); }
.detail-loading span:nth-child(3) { animation-delay: 0.4s; background: var(--color-green); }

@keyframes detailBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

@media (max-width: 768px) {
    .detail-cover {
        height: 240px;
    }
    .detail-body {
        padding: 28px 24px 36px;
    }
    .detail-title {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   ADMIN: Botão Flutuante, Editar na Detalhe, Modal de Gestão
   ========================================================================== */

/* Botão flutuante "+" para adicionar projetos (admin) */
.admin-fab {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(247, 37, 133, 0.4);
    display: none; /* Mostrado pelo .admin-mode via .admin-only */
    align-items: center;
    justify-content: center;
    z-index: 1050;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 30px rgba(247, 37, 133, 0.6);
}

/* Botão "Editar este projeto" que aparece no canto superior direito do detail-card */
.detail-admin-edit-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(247, 37, 133, 0.85);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
    z-index: 20;
}

.detail-admin-edit-btn:hover {
    background: var(--color-pink);
    transform: scale(1.05);
}

/* Modal de gestão - grid de colunas */
.project-mgmt-modal {
    max-width: 820px;
    padding: 40px 48px 36px;
}

.mgmt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin-bottom: 28px;
}

@media (max-width: 640px) {
    .mgmt-grid {
        grid-template-columns: 1fr;
    }
    .project-mgmt-modal {
        padding: 28px 20px;
    }
}

.mgmt-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mgmt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}

.mgmt-delete {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.mgmt-delete:hover {
    background: rgba(220, 38, 38, 0.3);
    color: #fff;
}

/* Input hint (texto auxiliar abaixo do campo) */
.input-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: -8px;
    margin-bottom: 4px;
    display: block;
}

/* Chips de tags na página de detalhe */
.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-chip {
    background: rgba(67, 97, 238, 0.15);
    color: var(--color-blue);
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Meta info (Cliente / Data) na página de detalhe */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.detail-meta strong {
    color: var(--color-text);
}

/* Select customizado */
select.input-field {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a5ba' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ==========================================================================
   ADMIN MODE VISIBILITY
   ========================================================================== */
.admin-only {
    display: none !important;
}

body.admin-mode .admin-only {
    display: block !important;
}

body.admin-mode button.admin-only {
    display: inline-block !important;
}

