/* ================= HERO BLUEPRINT ================= */
.acc-hero {
    position: relative;
    padding: 160px 0 80px 0;
    background: #0b1016; /* Fundo mais cinza tático */
    overflow: hidden;
}

.blueprint-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-content-acc {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: center;
}

.gear-tag {
    background: #333; color: #fff; padding: 5px 10px;
    font-family: monospace; border-left: 3px solid var(--color-accent);
}

/* Bateria Animada CSS */
.battery-visual {
    width: 120px; text-align: center;
    position: relative;
}
.battery-body {
    width: 80px; height: 140px;
    border: 4px solid #fff; border-radius: 8px;
    margin: 0 auto 10px auto;
    position: relative;
    padding: 5px;
    display: flex; flex-direction: column-reverse; /* Enche de baixo pra cima */
}
.battery-body::before { /* O polo da bateria */
    content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 8px; background: #fff;
}
.charge-level {
    width: 100%; height: 0%;
    background: var(--color-accent);
    animation: charge 3s infinite linear;
    box-shadow: 0 0 15px var(--color-accent);
}
.bolt-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; color: #000; z-index: 2;
}
.battery-info { font-family: monospace; font-size: 0.8rem; color: var(--color-accent); }
.status { display: block; color: #888; font-size: 0.7rem; }

@keyframes charge {
    0% { height: 10%; filter: hue-rotate(90deg); } /* Vermelho/Laranja */
    50% { filter: hue-rotate(0deg); } /* Verde/Ciano */
    100% { height: 100%; filter: hue-rotate(0deg); }
}

/* ================= INVENTORY GRID ================= */
.inventory-section { padding: 60px 0; background: var(--color-bg-main); }

/* Abas */
.inventory-tabs {
    display: flex; gap: 10px; justify-content: center;
    margin-bottom: 50px; flex-wrap: wrap;
}

.tab-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-secondary); padding: 10px 25px;
    border-radius: 30px; cursor: pointer; transition: 0.3s;
    font-size: 0.9rem;
}
.tab-btn:hover, .tab-btn.active {
    background: rgba(242, 100, 34, 0.231);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.inv-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; padding: 20px;
    transition: 0.2s; cursor: pointer;
    text-align: center;
}
.inv-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-5px);
    border-color: rgba(242, 101, 34, 0.35);
}

.item-img {
    height: 120px; display: flex; justify-content: center; align-items: center;
    margin-bottom: 15px;
}
.item-img img { max-height: 80%; opacity: 0.8; transition: 0.3s; }
.inv-item:hover .item-img img { opacity: 1; transform: scale(1.1); }

.item-type { font-size: 0.7rem; color: #666; text-transform: uppercase; display: block; margin-bottom: 5px; }
.item-info h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.item-add { font-size: 0.8rem; color: var(--color-accent); }

/* Hide Animation */
.inv-item.hide { display: none; }
.inv-item.show { animation: popIn 0.4s ease forwards; }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ================= MODAL COMPACTO ================= */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }

.compact-modal {
    background: #111; width: 90%; max-width: 500px;
    border: 1px solid #333; border-radius: 12px;
    position: relative; padding: 30px;
    transform: translateY(20px); transition: 0.3s;
}
.modal-backdrop.active .compact-modal { transform: translateY(0); }

.modal-close {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}

.acc-modal-content { text-align: center; }
.acc-img-box {
    height: 150px; display: flex; justify-content: center; align-items: center;
    background: #0a0a0a; border-radius: 8px; margin-bottom: 20px;
}
.acc-img-box img { max-height: 80%; }

.acc-cat { color: var(--color-accent); font-size: 0.8rem; text-transform: uppercase; }
.acc-data-box h3 { color: #fff; margin: 10px 0; }
.acc-data-box p { color: #888; font-size: 0.9rem; margin-bottom: 20px; }


/* ============================================================
   RESPONSIVIDADE: ACESSÓRIOS TÁTICOS
   ============================================================ */

/* MENU HAMBURGUER (Obrigatório) */
.mobile-menu-trigger { display: none; }

@media (max-width: 1024px) {

    /* --- CABEÇALHO --- */
    .header-cta { display: none !important; }
    
    .mobile-menu-trigger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px; height: 22px;
        cursor: pointer; z-index: 99999;
        margin-left: auto;
    }

    .mobile-menu-trigger .bar {
        width: 100%; height: 2px; 
        background: var(--color-accent) !important;
        transition: 0.3s;
    }
    
    .mobile-menu-trigger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-trigger.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-trigger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* GAVETA DO MENU */
    .main-nav {
        position: fixed; top: 0; right: -100%;
        width: 85%; height: 100vh;
        background: #020610;
        border-left: 2px solid var(--color-accent);
        padding: 100px 20px;
        transition: 0.3s ease;
        display: flex !important; flex-direction: column;
        z-index: 9999;
    }
    .main-nav.menu-open { right: 0; }
    .nav-list { flex-direction: column; width: 100%; gap: 0; }
    .nav-link { display: block; padding: 15px 0; border-bottom: 1px solid #333; width: 100%; font-size: 1.1rem; }
    .dropdown-menu { display: none; background: #000; padding-left: 20px; }
    .dropdown-item.active-mobile .dropdown-menu { display: block; }


    /* --- HERO SECTION --- */
    .acc-hero {
        padding: 130px 0 60px 0 !important;
        height: auto !important;
    }

    .hero-content-acc {
        flex-direction: column !important; /* Empilha texto e bateria */
        text-align: center !important;
        gap: 40px !important;
    }

    .acc-text h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    /* Bateria visual um pouco menor */
    .battery-visual { transform: scale(0.9); }


    /* --- INVENTÁRIO (FILTROS) --- */
    /* Barra de Rolagem Horizontal para as Abas */
    .inventory-tabs {
        justify-content: flex-start !important; /* Alinha à esquerda */
        flex-wrap: nowrap !important; /* Impede quebra de linha */
        overflow-x: auto !important; /* Permite scroll lateral */
        padding-bottom: 10px !important;
        gap: 15px !important;
        width: 100% !important;
        
        /* Esconde scrollbar feia */
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .inventory-tabs::-webkit-scrollbar { display: none; }

    .tab-btn {
        white-space: nowrap !important; /* Texto não quebra */
        flex-shrink: 0 !important; /* Botão não amassa */
        font-size: 0.85rem !important;
        padding: 8px 20px !important;
    }


    /* --- GRID DE PRODUTOS --- */
    .inventory-grid {
        grid-template-columns: 1fr !important; /* Coluna única */
        gap: 20px !important;
    }

    /* Card Horizontal (Imagem Esquerda / Texto Direita) - Mais compacto */
    .inv-item {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        padding: 15px !important;
        gap: 20px !important;
    }

    .item-img {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        background: rgba(255,255,255,0.05) !important;
        border-radius: 8px !important;
    }
    
    .item-img img { max-height: 90% !important; }

    .item-info { flex: 1 !important; }
    .item-info h4 { font-size: 1rem !important; margin-bottom: 5px !important; }
    .item-type { margin-bottom: 2px !important; }
    .item-add { font-size: 0.75rem !important; }


    /* --- MODAL MOBILE (POP-UP) --- */
    .modal-window.compact-modal {
        width: 90% !important;
        max-width: 360px !important;
        padding: 25px !important;
        transform: none !important; /* Remove transform para centralizar melhor */
    }

    .acc-img-box { height: 120px !important; margin-bottom: 15px !important; }
    .acc-data-box h3 { font-size: 1.3rem !important; }
    .acc-data-box p { font-size: 0.9rem !important; line-height: 1.4 !important; }
    
    .modal-close { top: 10px !important; right: 10px !important; }
}

/* TELA 320px */
@media (max-width: 360px) {
    .acc-text h1 { font-size: 1.8rem !important; }
    .item-img { width: 70px !important; height: 70px !important; }
    .inv-item { padding: 10px !important; gap: 15px !important; }
}