@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-deep: #05070a;      /* Navy Black */
    --bg-panel: #0b0f19;    /* Deep Blue */
    --bg-card: rgba(17, 25, 40, 0.75);
    --accent: #fbbf24;      /* Gold/Amber */
    --accent-rgb: 251, 191, 36;
    --emerald: #10b981;     /* Cyber Green */
    --indigo: #4361ee;      /* Electric Blue */
    --border: rgba(255, 255, 255, 0.08);
    --titan-text: #e2e8f0;
    --titan-muted: #94a3b8;
}

/* =========================================================
   BASE & BACKGROUND FX (ATMOSFERA TITANIUM)
   ========================================================= */
* { box-sizing: border-box; }

body {
    background-color: var(--bg-deep);
    color: var(--titan-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    margin: 0;
    line-height: 1.6;
}

/* Efeito de iluminação global por trás da página */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 5% 5%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 95% 95%, rgba(251, 191, 36, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(67, 97, 238, 0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Tipografia Pro */
.fw-black { font-weight: 800; }
.tracking-tighter { letter-spacing: -2px; }
.text-accent { color: var(--accent) !important; }
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--emerald) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   HUD NAVIGATION (NAVBAR)
   ========================================================= */
.nav-titanium {
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    transition: all 0.4s ease;
}

/* Logo com Brilho Dinâmico */
.logo-fx {
    height: calc(56px * 1.3); /* Tamanho Pro */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.3));
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar-brand:hover .logo-fx {
    filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.6));
    transform: rotate(-5deg) scale(1.08);
}

.nav-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--titan-muted) !important;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* =========================================================
   GLASS CARDS & INTERATIVIDADE (O MOVIMENTO)
   ========================================================= */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

/* Efeito de "Elevação" e "Luz Interna" ao passar o mouse */
.glass-card:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 35px 70px rgba(0,0,0,0.6), 0 0 20px rgba(var(--accent-rgb), 0.1);
}

/* Brilho que percorre o card no hover */
.glass-card::after {
    content: "";
    position: absolute;
    top: -50%; left: -60%;
    width: 20%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: rotate(30deg);
    transition: 0s;
}

.glass-card:hover::after {
    left: 140%;
    transition: 0.8s ease-in-out;
}

/* =========================================================
   HERO SECTOR & IMAGENS
   ========================================================= */
.hero-sector { position: relative; z-index: 1; }

.badge-titan {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-img-fx {
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.6));
    animation: floatTitanium 6s ease-in-out infinite;
    transition: all 0.6s ease;
}

.hero-img-fx:hover {
    filter: saturate(1.2) brightness(1.1) drop-shadow(0 0 30px rgba(var(--accent-rgb), 0.4));
}

@keyframes floatTitanium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

/* =========================================================
   BOTÕES NEON & HUD
   ========================================================= */
.btn-accent-glow {
    background: var(--accent);
    color: #05070a !important;
    font-weight: 800;
    border-radius: 14px;
    border: none;
    padding: 1rem 2rem;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-accent-glow:hover {
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.7);
    transform: translateY(-3px) scale(1.05);
    background: #fff;
}

.btn-outline-titan {
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 14px;
    padding: 1rem 2rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-outline-titan:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   TERMINAL & INPUTS (INTERFACE DE DADOS)
   ========================================================= */
.titan-input {
    background: rgba(0,0,0,0.4) !important;
    border: 1px solid var(--border) !important;
    color: white !important;
    border-radius: 12px;
    padding: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.titan-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15) !important;
    background: rgba(0,0,0,0.6) !important;
}

/* Dropdown Estilo Vidro */
.glass-dropdown {
    background: rgba(11, 15, 25, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border) !important;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* =========================================================
   MAPA & FOOTER
   ========================================================= */
.map-container { 
    border-radius: 24px; 
    overflow: hidden; 
    height: 400px; 
    border: 1px solid var(--border);
    transition: 0.5s;
}

.map-container:hover { border-color: var(--indigo); }

.map-fx { 
    width: 100%; height: 100%; border: 0; 
    filter: grayscale(1) invert(0.92) contrast(1.1); /* Mapa Estilo Dark Industrial */
}

.footer-titan {
    border-top: 1px solid var(--border);
    background: rgba(5, 7, 10, 0.5);
    color: var(--titan-muted);
}

/* =========================================================
   RESPONSIVIDADE AJUSTADA
   ========================================================= */
@media (max-width: 991px) {
    .hero-img-fx { margin-top: 3rem; max-height: 400px; }
    h1.display-2 { font-size: 3rem; }
}

@media (max-width: 576px) {
    .logo-fx { height: 60px; }
    .display-2 { font-size: 2.2rem; }
    .glass-card { padding: 1.5rem; }
}

/* Remove a seta padrão do Bootstrap dentro do menu */
.dropdown-submenu > .dropdown-item::after {
    display: none !important;
}

/* Ajuste do Submenu Titanium */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }
    
    .dropdown-submenu .submenu-titan {
        display: none;
        position: absolute;
        left: -102%; /* Joga o menu para a esquerda da Área Administrativa */
        top: 0;
        margin-top: -10px;
        min-width: 260px;
        border-radius: 20px !important;
    }
    
    /* Abre ao passar o mouse */
    .dropdown-submenu:hover > .submenu-titan {
        display: block;
        animation: titanFadeIn 0.3s ease;
    }
}

/* Ícone quadrado do PDV */
.icon-sq {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.bg-accent { background: var(--accent); }

@keyframes titanFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}