/* REKKON SYSTEM - MATRIX PREMIUM EDITION */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* === VARIÁVEIS DARK HACKER MATRIX === */
:root {
    --neon-green: #00ff41;
    --neon-cyan: #00ffff;
    --neon-red: #ff0040;
    --neon-yellow: #ffff00;
    
    --bg-void: #000000;
    --bg-dark: #0a0a0a;
    --bg-panel: #0f0f0f;
    --bg-card: #151515;
    
    --text-primary: #00ff41;
    --text-secondary: #00ffff;
    --text-muted: #555555;
    
    --border-green: rgba(0, 255, 65, 0.3);
    --glow-green: 0 0 20px rgba(0, 255, 65, 0.6), 0 0 40px rgba(0, 255, 65, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
    
    --font-ui:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

body, html {
    height: 100%;
    width: 100%;
    font-family: var(--font-ui);
    background: var(--bg-void);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    overscroll-behavior-y: none;
}

/* SCANLINES OVERLAY */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 65, 0.03) 0px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* GRID BACKGROUND */
body::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

#app-container {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* === SISTEMA DE TELAS === */
.screen {
    display: none !important;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex !important;
    animation: screenBoot 0.5s ease-out;
}

@keyframes screenBoot {
    0% { 
        opacity: 0;
        filter: blur(10px);
    }
    100% { 
        opacity: 1;
        filter: blur(0);
    }
}

/* TELA DE LOADING HACKER - MATRIX EDITION */
.hacker-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

.hacker-loader.active {
    display: flex;
    animation: loaderFadeOut 0.6s ease-out 2s forwards;
}

@keyframes loaderFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.boot-screen {
    max-width: 800px;
    padding: 2rem;
    color: var(--neon-green);
    position: relative;
}

.boot-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.boot-symbol {
    font-size: 2rem;
    animation: pulse 1s ease-in-out infinite;
}

.boot-header h1 {
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    text-shadow: var(--glow-green);
    font-weight: 700;
}

.boot-lines {
    margin-bottom: 2rem;
}

.boot-lines p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    opacity: 0;
    animation: typeLine 0.3s ease-out forwards;
    font-weight: 500;
}

.boot-lines p:nth-child(1) { animation-delay: 0.1s; }
.boot-lines p:nth-child(2) { animation-delay: 0.3s; }
.boot-lines p:nth-child(3) { animation-delay: 0.5s; }
.boot-lines p:nth-child(4) { animation-delay: 0.7s; }
.boot-lines p:nth-child(5) { animation-delay: 0.9s; }

@keyframes typeLine {
    to { opacity: 1; }
}

.prompt {
    color: var(--neon-cyan);
    font-weight: 700;
}

.success {
    color: var(--neon-green);
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 65, 0.2);
    margin: 2rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--neon-green);
    box-shadow: var(--glow-green);
    animation: progressLoad 1.5s ease-out forwards;
}

@keyframes progressLoad {
    from { width: 0%; }
    to { width: 100%; }
}

.access-granted {
    text-align: center;
    margin-top: 2rem;
    opacity: 0;
    animation: showAccess 0.5s ease-out 1.2s forwards;
}

@keyframes showAccess {
    to { opacity: 1; }
}

.glitch {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    position: relative;
    animation: glitchEffect 0.5s infinite;
}

@keyframes glitchEffect {
    0%, 100% {
        text-shadow: var(--glow-green);
    }
    25% {
        text-shadow: 
            2px 0 var(--neon-cyan),
            -2px 0 var(--neon-red);
    }
    50% {
        text-shadow: 
            -2px 0 var(--neon-cyan),
            2px 0 var(--neon-red);
    }
}

/* MATRIX RAIN BACKGROUND */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* === TELA DE LOGIN COM MATRIX RAIN === */
#login-screen {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-void);
    position: relative;
    overflow: hidden;
}

/* Canvas para Matrix Rain */
#login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.login-box {
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid var(--neon-green);
    box-shadow: var(--glow-green);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.login-box::before,
.login-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    animation: cornerPulse 2s ease-in-out infinite;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.login-box::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.login-box::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.login-box h2 {
    margin-bottom: 2rem;
    color: var(--neon-green);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-shadow: var(--glow-green);
}

.login-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    border: 2px solid var(--neon-green);
    font-size: 1rem;
    font-family: var(--font-ui);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    color: var(--neon-green);
    transition: all 0.3s;
}

.login-box input::placeholder {
    color: rgba(0, 255, 65, 0.4);
    font-weight: 400;
}

.login-box input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 0, 0, 0.9);
}

.login-box button {
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.15em;
}

.login-box button:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.error-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--neon-red);
    background: rgba(255, 0, 64, 0.1);
    padding: 0.75rem;
    border-left: 4px solid var(--neon-red);
    font-weight: 600;
}

.toggle-form {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.toggle-form a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.toggle-form a:hover {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

/* ACCESS GRANTED OVERLAY */
.access-granted-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.access-granted-overlay.active {
    display: flex;
    animation: accessFadeIn 0.3s ease-out, accessFadeOut 0.5s ease-out 1.2s forwards;
}

@keyframes accessFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes accessFadeOut {
    to { 
        opacity: 0;
        visibility: hidden;
    }
}

.access-granted-text {
    font-size: 4rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    letter-spacing: 0.3em;
    animation: accessGlitch 0.8s ease-in-out;
}

@keyframes accessGlitch {
    0%, 100% {
        text-shadow: var(--glow-green);
        transform: scale(1);
    }
    10% {
        text-shadow: 
            3px 0 var(--neon-cyan),
            -3px 0 var(--neon-red);
        transform: scale(1.05) translateX(-5px);
    }
    20% {
        text-shadow: 
            -3px 0 var(--neon-cyan),
            3px 0 var(--neon-red);
        transform: scale(0.95) translateX(5px);
    }
    30% {
        text-shadow: var(--glow-green);
        transform: scale(1);
    }
}

.biometric-scan {
    width: 300px;
    height: 300px;
    margin-top: 2rem;
    position: relative;
    animation: scanRotate 2s linear infinite;
}

@keyframes scanRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scan-ring {
    position: absolute;
    border: 3px solid var(--neon-green);
    border-radius: 50%;
    opacity: 0;
    animation: scanPulse 2s ease-out infinite;
}

.scan-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.scan-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-delay: 0.4s;
}

.scan-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation-delay: 0.8s;
}

@keyframes scanPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* === DASHBOARD PRINCIPAL === */
#main-dashboard {
    display: none;
    height: 100vh;
    width: 100%;
    background: var(--bg-void);
    flex-direction: column;
}

#main-dashboard.active {
    display: flex !important;
}

/* HEADER SUPERIOR */
#top-header {
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    border-bottom: 2px solid var(--neon-green);
    box-shadow: 
        0 5px 30px rgba(0, 255, 65, 0.3),
        inset 0 -1px 10px rgba(0, 255, 65, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    gap: 2rem;
}

.header-left {
    flex-shrink: 0;
}

.header-left h1 {
    font-size: 1.5rem;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    letter-spacing: 0.2em;
    font-weight: 800;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
    max-width: 400px;
}

#device-selector {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--neon-green);
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-green);
    font-size: 0.95rem;
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

#device-selector:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

#user-role-badge {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    white-space: nowrap;
}

#logout-button {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--neon-red);
    color: var(--neon-red);
    font-weight: 800;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.1em;
}

#logout-button:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.6);
    transform: translateY(-2px);
}

/* === CONTAINER PRINCIPAL (SIDEBAR + CONTENT) === */
#main-dashboard > div:not(#top-header) {
    display: flex;
    flex: 1;
    height: calc(100vh - 80px);
    overflow: hidden;
}

/* === SIDEBAR === */
#sidebar {
    width: 250px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #000 100%);
    border-right: 2px solid var(--neon-green);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 
        5px 0 30px rgba(0, 255, 65, 0.3),
        inset -1px 0 10px rgba(0, 255, 65, 0.2);
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu::-webkit-scrollbar {
    width: 8px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    box-shadow: var(--glow-green);
}

.sidebar-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.5rem;
    filter: brightness(0.85);
    flex-shrink: 0;
}

.sidebar-menu li:hover .sidebar-icon,
.sidebar-menu li.active .sidebar-icon {
    filter: brightness(1.2) drop-shadow(0 0 4px var(--neon-green));
}

.sidebar-menu li {
    padding: 1rem 1.5rem;
    margin: 0.25rem 0.75rem;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.sidebar-menu li:hover {
    background: rgba(0, 255, 65, 0.1);
    color: var(--neon-green);
    border-left-color: var(--neon-green);
    transform: translateX(10px);
}

.sidebar-menu li.active {
    background: rgba(0, 255, 65, 0.15);
    color: var(--neon-green);
    border-left-color: var(--neon-cyan);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* === ÁREA DE CONTEÚDO === */
#main-content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.5rem;
    background: var(--bg-void);
    position: relative;
    z-index: 50;
    display: block !important;
}

#main-content::-webkit-scrollbar {
    width: 12px;
}

#main-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 2px solid var(--neon-green);
}

#main-content::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    box-shadow: var(--glow-green);
}

/* PAGE TRANSITION LOADER - PREMIUM SCAN EFFECT */
.page-transition-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    animation: loaderFadeIn 0.3s ease-out;
}

@keyframes loaderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loader-skull {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: skullPulse 1.5s ease-in-out infinite, colorShift 3s linear infinite;
}

@keyframes skullPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.8));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 1));
    }
}

@keyframes colorShift {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 1));
    }
}

.loader-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-green);
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
        opacity: 0.7;
    }
    25% {
        text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
        opacity: 0.9;
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 255, 255, 1);
        opacity: 1;
    }
    75% {
        text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
        opacity: 0.9;
    }
}

.loader-bar {
    width: 400px;
    max-width: 80%;
    height: 8px;
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid var(--neon-green);
    overflow: hidden;
    box-shadow: var(--glow-green);
}

.loader-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan), var(--neon-green));
    background-size: 200% 100%;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 1),
        inset 0 0 20px rgba(0, 255, 65, 0.5);
    animation: loaderProgress 1.5s ease-in-out, gradientShift 2s linear infinite;
}

@keyframes loaderProgress {
    0% { width: 0%; }
    50% { width: 75%; }
    100% { width: 100%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* === HEADER DE CONTEÚDO === */
.content-header {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-green);
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    text-shadow: var(--glow-green);
}

/* === CARDS DE ESTATÍSTICAS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid var(--neon-green);
    padding: 2rem;
    transition: all 0.4s;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 30px rgba(0, 255, 65, 0.05);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-green);
}

.stat-card h3 {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.stat-card .value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
    text-shadow: var(--glow-green);
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card.online .value { 
    color: var(--neon-green);
}

.stat-card.offline .value { 
    color: var(--text-muted);
}

.stat-card.primary .value { 
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* === TABELAS === */
.data-table {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(15, 15, 15, 0.8);
    border: 2px solid var(--neon-green);
    margin-top: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.data-table th {
    background: rgba(0, 255, 65, 0.2);
    font-weight: 800;
    color: var(--neon-green);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    border-bottom: 2px solid var(--neon-green);
    padding: 1.25rem 1.5rem;
    white-space: nowrap;
}

.data-table td {
    color: var(--text-primary);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    word-break: break-word;
    max-width: 220px;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    transition: all 0.3s;
}

.data-table tbody tr:hover {
    background: rgba(0, 255, 65, 0.08);
    transform: translateX(2px);
}

/* === MAPA GPS === */
#map {
    height: 550px;
    width: 100%;
    margin-bottom: 2rem;
    border: 3px solid var(--neon-green);
    box-shadow: var(--glow-green);
    z-index: 1;
}

/* === BOTÕES === */
.btn {
    padding: 1rem 2rem;
    border: none;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary {
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
}

.btn-primary:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(15, 15, 15, 0.8);
    border: 2px solid var(--neon-green);
    margin-top: 2rem;
    box-shadow: var(--glow-green);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: var(--glow-green);
}

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100002;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(15, 15, 15, 0.95);
    border: 3px solid var(--neon-green);
    box-shadow: var(--glow-green);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalAppear 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

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

.modal-content::before,
.modal-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--neon-cyan);
}

.modal-content::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.modal-content::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

.modal-content h3 {
    font-size: 1.6rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: var(--glow-green);
}

.modal-content p {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* === LOADING ANIMATION === */
.address-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(0, 255, 65, 0.3);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* === RESPONSIVO - veja seção final === */

/* === CURSOR CUSTOMIZADO === */
* {
    cursor: crosshair;
}

a, button, input, select, .sidebar-menu li {
    cursor: pointer;
}

/* === LINK STYLES === */
a {
    color: var(--neon-cyan);
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s;
    font-weight: 600;
}

a:hover {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

/* === PULSE ANIMATION === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === GLITCH TEXT CLASS === */
.glitch-text {
    position: relative;
    animation: glitchText 3s infinite;
}

@keyframes glitchText {
    0%, 90%, 100% {
        transform: translate(0);
        text-shadow: var(--glow-green);
    }
    92% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 var(--neon-cyan), -2px 0 var(--neon-red);
    }
    94% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 var(--neon-cyan), 2px 0 var(--neon-red);
    }
    96% {
        transform: translate(-2px, -2px);
        text-shadow: var(--glow-green);
    }
}

/* === CRT MONITOR EFFECT === */
.crt-effect {
    position: relative;
}

.crt-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 65, 0.02) 50%,
        transparent 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.97; }
}
/* ========================================
   CORREÇÃO CRÍTICA DE INPUTS - ADICIONAR AO FINAL DO style.css
   ======================================== */

/* === INPUT HACKER STYLE === */
.input-hacker {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--neon-green);
    font-size: 1rem;
    font-family: var(--font-ui);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.8) !important;
    color: var(--neon-green) !important;
    transition: all 0.3s;
}

.input-hacker::placeholder {
    color: rgba(0, 255, 65, 0.4) !important;
    font-weight: 400;
}

.input-hacker:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 0, 0, 0.95) !important;
}

/* === CORREÇÃO: Remove fundo branco de todos os inputs === */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    background: rgba(0, 0, 0, 0.8) !important;
    color: var(--neon-green) !important;
    border: 2px solid var(--neon-green);
    padding: 0.8rem 1.2rem;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 0, 0, 0.95) !important;
}

/* === CORREÇÃO: Autocomplete sem fundo branco === */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #000 inset !important;
    -webkit-text-fill-color: var(--neon-green) !important;
}

/* === EMPTY STATE MELHORADO === */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(15, 15, 15, 0.8);
    border: 2px solid var(--neon-green);
    margin-top: 2rem;
    box-shadow: var(--glow-green);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: var(--glow-green);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}
/* ========================================
   CORREÇÃO: Remove animações de autofill
   ======================================== */

/* Remove animação de autofill do Chrome/Edge */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #000 inset !important;
    -webkit-text-fill-color: var(--neon-green) !important;
    transition: background-color 5000s ease-in-out 0s;
    animation: none !important;
}

/* Remove outline e animações indesejadas */
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    animation: none !important;
}

/* Desabilita animações de transição em inputs */
input, select, textarea {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Remove qualquer animação residual */
input.input-hacker,
select.input-hacker {
    animation: none !important;
    -webkit-animation: none !important;
}
/* Desabilita botão durante processamento */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Remove animações de loading desnecessárias */
#add-device-result {
    animation: none !important;
    transition: opacity 0.3s ease-in-out;

}
/* ===================================================================
   HAMBURGER BUTTON & MOBILE SIDEBAR
   =================================================================== */

/* Hamburger - escondido em desktop */
#hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

#hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neon-green);
    transition: all 0.3s;
    border-radius: 1px;
}

#hamburger-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

#hamburger-btn:hover span {
    background: var(--neon-cyan);
}

/* Hamburger X animation */
#hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
#hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay mobile */
#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000; /* CORREÇÃO: Acima de tudo (header e scanlines) */
    opacity: 0;
    transition: opacity 0.3s;
}

#sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Header left - flex row para hamburger + titulo */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* ===================================================================
   HEADER CENTER & DEVICE SELECTOR
   =================================================================== */

.header-center {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

#device-selector {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--neon-cyan);
    background: rgba(0, 0, 0, 0.95);
    color: var(--neon-cyan);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    outline: none;
}

#device-selector:hover,
#device-selector:focus {
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
    background: rgba(0, 0, 0, 1);
}

#device-selector option {
    background: #000;
    color: var(--neon-green);
    padding: 0.5rem;
}

/* ===================================================================
   HEADER RIGHT & BADGE
   =================================================================== */

.header-right {
    flex-shrink: 0;
}

#user-role-badge {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border: 2px solid var(--neon-cyan);
    background: rgba(0, 255, 255, 0.15);
    color: var(--neon-cyan);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    border-radius: 4px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
}

/* ===================================================================
   SIDEBAR LOGOUT
   =================================================================== */

#sidebar-logout {
    list-style: none;
    margin-top: auto;
    padding: 1rem;
}

#sidebar-logout button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 2px solid var(--neon-red);
    color: var(--neon-red);
    padding: 0.9rem 1rem;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    border-radius: 4px;
}

#sidebar-logout button:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.6);
    transform: translateX(5px);
}

/* ===================================================================
   TABELAS RESPONSIVAS
   =================================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===================================================================
   LEAFLET MAP FIX (global, fora de media query)
   =================================================================== */

.leaflet-pane img,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
    background: none !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background-color: rgba(10, 10, 10, 0.95) !important;
    border: 1px solid var(--neon-green) !important;
    color: var(--neon-green) !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4) !important;
    border-radius: 4px !important;
}

.leaflet-popup-content {
    font-family: var(--font-ui) !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 12px !important;
}

.leaflet-popup-close-button {
    color: var(--neon-red) !important;
    font-weight: bold !important;
}

/* ===== FIX PARA EVITAR OVERFLOW HORIZONTAL ===== */
body, html {
    overflow-x: hidden;
}

#app-container,
#main-dashboard,
.screen {
    overflow-x: hidden;
}

/* ===================================================================
   RESPONSIVIDADE COMPLETA
   =================================================================== */

/* FIX PARA INPUTS NO IPHONE (EVITA ZOOM AUTOMÁTICO) */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
    select,
    textarea,
    input {
        font-size: 16px !important;
    }
}

/* ===== DESKTOP GRANDE (acima de 1400px) ===== */
@media (min-width: 1400px) {
    #top-header {
        padding: 1rem 3rem;
    }

    .header-left h1 {
        font-size: 1.6rem;
    }

    #device-selector {
        max-width: 600px;
        font-size: 1rem;
        padding: 0.85rem 1.3rem;
    }

    #user-role-badge {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    #sidebar {
        width: 280px;
    }

    #main-content {
        padding: 2.5rem;
    }
}

/* ===== TABLET (ate 992px) ===== */
@media (max-width: 992px) {
    #top-header {
        padding: 1rem;
        gap: 0.8rem;
    }

    .header-left h1 {
        font-size: 1.1rem;
    }

    .header-center {
        flex: 1 1 250px;
    }

    #device-selector {
        max-width: 400px;
        font-size: 0.85rem;
        padding: 0.65rem 0.9rem;
    }

    #user-role-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    #sidebar {
        width: 220px;
    }

    #main-content {
        padding: 1.5rem;
    }
}

/* ===== ALERTS PAGE — empilha colunas em telas estreitas ===== */
@media (max-width: 1100px) {
    /* grid de 2 colunas → 1 coluna quando viewport estreito */
    [style*="grid-template-columns:minmax(0,1fr) minmax(0,300px)"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ===== MOBILE (ate 768px) - HAMBURGER ATIVO ===== */
@media (max-width: 768px) {
    /* Mostra hamburger */
    #hamburger-btn {
        display: flex;
    }

    /* Header empilhado */
    #top-header {
        flex-wrap: nowrap;
        padding: 0.6rem 0.8rem;
        /* SUPORTE A NOTCH E SAFE AREAS */
        padding-top: max(0.6rem, env(safe-area-inset-top));
        padding-left: max(0.8rem, env(safe-area-inset-left));
        padding-right: max(0.8rem, env(safe-area-inset-right));
        gap: 0.5rem;
        min-height: auto;
        position: sticky;
        top: 0;
    }

    .header-left {
        flex-shrink: 0;
    }

    .header-left h1 {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .header-center {
        flex: 1;
        min-width: 0;
    }

    #device-selector {
        max-width: 100%;
        width: 100%;
        font-size: 0.8rem;
        padding: 0.55rem 0.6rem;
    }

    .header-right {
        flex-shrink: 0;
    }

    #user-role-badge {
        padding: 0.55rem 0.8rem;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    /* Sidebar mobile: fixa, desliza da esquerda */
    #sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 270px;
        height: 100vh;
        z-index: 10001; /* CORREÇÃO: Acima do overlay e scanlines */
        border-right: 2px solid var(--neon-green);
        transition: left 0.3s ease;
        box-shadow: none;
        /* SAFE AREA PARA SIDEBAR */
        padding-bottom: env(safe-area-inset-bottom);
    }

    #sidebar.open {
        left: 0;
        box-shadow: 5px 0 40px rgba(0, 255, 65, 0.4);
    }

    /* Main content ocupa tudo */
    #main-dashboard > div:not(#top-header) {
        flex-direction: row;
    }

    #main-content {
        padding: 1rem;
        /* ESPAÇO EXTRA NO FINAL PARA SCROLL CONFORTÁVEL */
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        width: 100%;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* CORREÇÃO: Tabelas responsivas usando wrapper */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-radius: 2px;
    }

    /* Tabela menor no mobile */
    .data-table {
        font-size: 0.78rem;
        min-width: 420px;
    }

    .data-table th {
        padding: 0.75rem 0.9rem;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    .data-table td {
        padding: 0.75rem 0.9rem;
        max-width: 160px;
    }

    /* Content header menor */
    .content-header {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Mapa menor */
    #map {
        height: 350px;
        border-width: 2px;
    }

    /* Loader */
    .loader-text {
        font-size: 1.2rem;
    }

    .access-granted-text {
        font-size: 2rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    /* Login responsivo */
    .login-box {
        padding: 1.5rem;
        max-width: 95%;
    }

    .login-box h2 {
        font-size: 1.3rem;
    }

    /* Boot screen */
    .boot-header h1 {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .boot-lines p {
        font-size: 0.75rem;
    }

    /* Scrollbar fina */
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    /* Botoes full width */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Sidebar menu items */
    .sidebar-menu li {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }

    /* BOTÕES MAIS FÁCEIS DE TOCAR */
    .btn, button, select, input {
        min-height: 44px; /* Tamanho mínimo recomendado pela Apple/Google */
    }
}

/* ===== MOBILE PEQUENO (ate 480px) ===== */
@media (max-width: 480px) {
    #top-header {
        padding: 0.5rem;
        gap: 0.4rem;
    }

    .header-left h1 {
        font-size: 0.85rem;
        letter-spacing: 0.05em;
    }

    #device-selector {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    #user-role-badge {
        font-size: 0.65rem;
        padding: 0.45rem 0.6rem;
    }

    #hamburger-btn {
        width: 34px;
        height: 34px;
    }

    #hamburger-btn span {
        width: 18px;
    }

    #main-content {
        padding: 0.6rem;
    }

    .content-header {
        font-size: 1.2rem;
    }

    .stat-card .value {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .data-table {
        font-size: 0.72rem;
        min-width: 380px;
    }

    .data-table th {
        padding: 0.6rem 0.7rem;
        font-size: 0.65rem;
    }

    .data-table td {
        padding: 0.6rem 0.7rem;
        max-width: 130px;
    }

    #map {
        height: 280px;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state h3 {
        font-size: 1.2rem;
    }

    .login-box {
        padding: 1.2rem;
    }

    .login-box h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .login-box input {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .login-box button {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* ===== MOBILE MUITO PEQUENO (ate 360px) ===== */
@media (max-width: 360px) {
    .header-left h1 {
        font-size: 0.75rem;
    }

    #user-role-badge {
        display: none;
    }

    #device-selector {
        font-size: 0.7rem;
    }

    .sidebar-menu li {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ===================================================================
   GPS CARDS
   =================================================================== */

.gps-card {
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid var(--neon-green);
    border-left: 4px solid var(--neon-cyan);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
    transition: box-shadow 0.3s;
}

.gps-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.35);
}

.gps-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gps-card-num {
    color: var(--neon-cyan);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

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

.gps-card-address {
    color: var(--neon-green);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    word-break: break-word;
}

.gps-card-coords {
    display: flex;
    gap: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.gps-card-coords strong {
    color: var(--neon-green);
}

/* ===================================================================
   TABELAS COMO CARDS NO MOBILE
   =================================================================== */

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: unset;
    }

    .data-table {
        min-width: unset;
        width: 100%;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        border: 2px solid var(--neon-green);
        border-left: 4px solid var(--neon-cyan);
        margin-bottom: 0.75rem;
        background: rgba(15, 15, 15, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
        transform: none;
    }

    .data-table tbody tr:hover {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.25);
        transform: none;
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.55rem 0.9rem;
        border-bottom: 1px solid rgba(0, 255, 65, 0.08);
        max-width: 100%;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--neon-green);
        font-weight: 700;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 80px;
        padding-top: 1px;
    }
}

/* ========================================
   REBRANDING: REKKON
   ======================================== */

/* Substitui o título MDM Control por REKKON */
.header-left h1 {
    font-size: 0 !important;
    text-shadow: none !important;
    display: flex;
    align-items: center;
}

.header-left h1::after {
    content: 'REKKON';
    font-size: 1.5rem;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    letter-spacing: 0.2em;
    font-weight: 800;
    visibility: visible;
}


.boot-symbol {
    width: 50px;
    height: 50px;
    display: inline-block;
}

/* ========================================
   LICENÇAS — COMPONENTES HACKER
   ======================================== */

.card-hacker {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
    transition: box-shadow 0.3s;
}

.card-hacker:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.18);
}

.label-hacker {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-ui);
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
    font-weight: 700;
}

.btn-hacker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 1.4rem;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-hacker:hover {
    background: rgba(0, 255, 65, 0.12);
    box-shadow: 0 0 16px rgba(0, 255, 65, 0.4);
    transform: translateY(-1px);
}

.btn-hacker:active {
    transform: translateY(0);
}

.btn-hacker.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
}

/* Contador de devices na tabela de preços */
.pt-device-counter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.pt-device-counter span.pt-label {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.pt-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: var(--font-ui);
    line-height: 1;
}

.pt-counter-btn:hover {
    background: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
}

.pt-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pt-device-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--neon-green);
    min-width: 28px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.pt-device-note {
    font-size: 0.72rem;
    color: #888;
    font-style: italic;
}

/* Animação flip do preço na tabela */
@keyframes priceFlip {
    0%   { opacity: 1; transform: rotateX(0deg); }
    40%  { opacity: 0; transform: rotateX(-70deg) scale(0.85); }
    60%  { opacity: 0; transform: rotateX(70deg) scale(0.85); }
    100% { opacity: 1; transform: rotateX(0deg); }
}

.pt-price-val {
    display: inline-block;
    transition: color 0.3s;
    perspective: 400px;
    transform-origin: center;
}

.pt-price-val.flipping {
    animation: priceFlip 0.45s ease-in-out;
}

/* ── Plan Lock Overlay ──────────────────────────────────────────────────────── */
.plan-lock-wrap {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

/* Conteúdo fake borrado no fundo */
.plan-lock-bg {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    filter: blur(5px);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

/* Overlay escuro semi-transparente sobre o fundo */
.plan-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

/* Caixa de bloqueio centralizada sobre tudo */
.plan-lock-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 0, 64, 0.45);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 440px;
    width: calc(100% - 2rem);
    box-shadow: 0 0 60px rgba(255, 0, 64, 0.2), 0 0 0 1px rgba(255,0,64,.08);
}

/* Barrinhas de dados falsos */
.fake-bar {
    display: inline-block;
    height: 11px;
    border-radius: 6px;
    background: var(--neon-green);
    opacity: 0.7;
    vertical-align: middle;
}

.plan-lock-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 12px rgba(255,0,64,0.6));
}

.plan-lock-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff0040;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.plan-lock-msg {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.plan-lock-sub {
    font-size: 0.85rem;
    color: #555;
    margin-top: 1.25rem;
}

.plan-lock-sub a {
    text-decoration: none;
}
.plan-lock-sub strong {
    color: #00ff41;
}
.plan-lock-sub a:hover strong {
    text-decoration: underline;
}

.loader-skull {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto 2rem auto;
}