:root {
    --bg: #010306;
    --primary: #00d2ff;
    --secondary: #0066ff;
    --accent: #ff00ff;
    --warn: #ffcc00;
    --success: #00ff88;
    --hud-border: rgba(0, 210, 255, 0.3);
    --hud-bg: rgba(0, 10, 20, 0.85);
    --text: #e0f2fe;
    --text-dim: #7dd3fc;
    --glow: 0 0 15px rgba(0, 210, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

canvas#bg-plexus {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a1120 0%, #010306 100%);
}

.bg-noise {
    position: fixed;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MDAiIGhlaWdodD0iODAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIi8+PC9zdmc+');
    opacity: 0.1;
    z-index: 10;
    pointer-events: none;
}

/* --- DASHBOARD CONTAINER --- */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 5;
    flex: 1;
}

/* --- TACTICAL HEADER --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--hud-border);
    padding-bottom: 1.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 0 10px var(--primary);
}

.logo .v-tag {
    font-size: 0.7rem;
    background: var(--primary);
    color: #000;
    padding: 3px 8px;
    margin-left: 10px;
    font-family: 'JetBrains Mono', monospace;
    vertical-align: middle;
}

.header-status {
    display: flex;
    gap: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.green {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: blink 2s infinite alternate;
}

@keyframes blink { from { opacity: 0.4; } to { opacity: 1; } }

/* --- HUD MAIN PANEL --- */
.hud-main-panel {
    background: var(--hud-bg);
    border: 1px solid var(--hud-border);
    padding: 4rem;
    position: relative;
    clip-path: polygon(
        0 40px, 40px 0, 
        calc(100% - 40px) 0, 100% 40px, 
        100% calc(100% - 40px), calc(100% - 40px) 100%, 
        40px 100%, 0 calc(100% - 40px)
    );
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: inset 0 0 40px rgba(0, 210, 255, 0.05);
}

.panel-corners::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
    border-top: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
    pointer-events: none;
}

.hud-label {
    font-size: 0.9rem;
    letter-spacing: 8px;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 800;
}

.ip-display {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -3px;
    color: #fff;
    text-shadow: 0 0 40px rgba(0, 210, 255, 0.5);
    line-height: 1;
}

.ip-meta {
    margin-top: 2rem;
    display: flex;
    gap: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.action-dock {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
}

/* --- HUD BUTTONS V3 --- */
.hud-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1.2rem 3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hud-btn i { margin-right: 12px; }

.hud-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.4), transparent);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.hud-btn:hover::before { left: 100%; }

.hud-btn:hover {
    background: rgba(0, 210, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.5), inset 0 0 20px rgba(0, 210, 255, 0.2);
    transform: translateY(-5px);
}

.hud-btn.secondary { border-color: #fff; color: #fff; }
.hud-btn.secondary:hover { background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 40px rgba(255, 255, 255, 0.3); }

.hud-btn.primary { border-color: var(--primary); color: var(--primary); }
.hud-btn.ghost { border: 1px solid var(--hud-border); color: var(--text-dim); }
.hud-btn.ghost:hover { border-color: #fff; color: #fff; }

.hud-btn.small { padding: 0.8rem 1.6rem; font-size: 0.75rem; }

/* --- MULTI-TOOL GRID --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.hud-card {
    background: var(--hud-bg);
    border: 1px solid var(--hud-border);
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.hud-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    opacity: 0.5;
}

.hud-card:hover {
    border-color: var(--primary);
    background: rgba(0, 210, 255, 0.08);
    transform: translateY(-8px);
}

.card-header h3 {
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 5px;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--hud-border);
    padding-bottom: 0.8rem;
    text-transform: uppercase;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.data-field { margin-bottom: 1.5rem; }
.data-field label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
}
.data-field .value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.promo-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 2rem;
    font-weight: 400;
}

.vertical-stack { gap: 1rem; }

.tool-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--hud-border);
    color: var(--text-dim);
    padding: 1.2rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: 0.3s;
}

.tool-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 210, 255, 0.05);
}

/* --- MODAL HUD (RESTORED) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 2, 5, 0.95);
    backdrop-filter: blur(30px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.modal-box {
    background: #020408;
    border: 2px solid var(--primary);
    width: 95%;
    max-width: 1100px;
    padding: 4rem;
    position: relative;
    box-shadow: 0 0 150px rgba(0, 210, 255, 0.2);
}

.modal-box.small { max-width: 600px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--hud-border);
    padding-bottom: 1.5rem;
}

.modal-header h2 { font-size: 1.2rem; letter-spacing: 8px; font-weight: 900; }

.close-modal {
    background: transparent;
    border: 1px solid var(--hud-border);
    color: var(--text-dim);
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.close-modal:hover { background: var(--primary); color: #000; border-color: var(--primary); }

.speed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.speed-module {
    padding: 2rem 1rem;
    border: 1px solid var(--hud-border);
    text-align: center;
    background: rgba(0, 210, 255, 0.02);
}

.speed-module label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.speed-val { font-size: 1.8rem; font-weight: 900; }
.speed-val.main { font-size: 3rem; color: #fff; text-shadow: 0 0 20px rgba(0, 210, 255, 0.3); }

.chart-container {
    height: 350px;
    margin-bottom: 3rem;
    border: 1px solid var(--hud-border);
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
}

/* --- TACTICAL FOOTER --- */
.tactical-footer {
    padding: 6rem 3rem 4rem;
    border-top: 2px solid var(--hud-border);
    margin-top: 8rem;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0, 15, 30, 0.95));
    backdrop-filter: blur(20px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-label {
    font-size: 0.75rem;
    letter-spacing: 7px;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    padding-left: 20px;
}

.footer-label::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; width: 8px; height: 8px;
    background: var(--primary);
    transform: translateY(-50%);
    box-shadow: 0 0 12px var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 2px;
    transition: 0.3s;
    text-transform: uppercase;
}

.footer-links a:hover { color: #fff; padding-left: 10px; border-left: 2px solid var(--primary); }

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 2;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-col strong { color: var(--primary); letter-spacing: 1px; }

.footer-bar {
    margin-top: 5rem;
    height: 4px;
    background: rgba(0, 210, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bar-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
    animation: loader 4s infinite linear;
}

@keyframes loader { from { left: -100%; } to { left: 100%; } }

/* --- HUD BANNER (RGPD) --- */
.hud-banner {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background: rgba(2, 4, 8, 0.9);
    border: 1px solid var(--primary);
    padding: 2rem;
    width: 480px;
    z-index: 1200;
    transform: translateX(130%);
    transition: 1s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 30px 100px rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
}

.hud-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 30px; height: 30px;
    border-top: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
}

.hud-banner.active { transform: translateX(0); }

.banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.banner-content i {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    margin-top: 0.2rem;
}

.banner-content p { font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.banner-content a { color: var(--primary); font-weight: 800; text-decoration: none; border-bottom: 1px dashed var(--primary); }

.banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- TERMINAL STYLE --- */
.terminal-style {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--success);
    background: #010306;
    padding: 3rem;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--hud-border);
}

/* --- TACTICAL TOASTS --- */
.toast-stack {
    position: fixed;
    top: 3rem;
    right: 3rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.toast {
    background: rgba(2, 4, 8, 0.95);
    border: 2px solid var(--primary);
    color: #fff;
    padding: 1.2rem 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-left: 6px solid var(--primary);
    animation: slideIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- HUD SCANNER --- */
.scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, transparent, var(--primary));
    box-shadow: 0 0 40px var(--primary);
    animation: scan 8s linear infinite;
    z-index: 20;
    opacity: 0.3;
}

@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(1200%); } }

@media (max-width: 768px) {
    .mobile-hide { display: none; }
    .hud-main-panel { padding: 3rem 2rem; }
    .action-dock { flex-direction: column; }
}
