:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --primary: #76ff03; /* Kazuma Green */
    --text: #ffffff;
    --dim: #888;
    --border: #222;
    --font-head: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* Smooth Scrolling */

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

body {
    background-color: var(--bg); color: var(--text);
    font-family: var(--font-head); font-size: 15px;
    overflow-x: hidden; line-height: 1.6; min-height: 100vh;
}

/* --- DYNAMIC BACKGROUND --- */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%; pointer-events: none; z-index: 2;
}
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(118, 255, 3, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(118, 255, 3, 0.03) 1px, transparent 1px);
    background-size: 60px 60px; z-index: -1; transform: perspective(500px) rotateX(20deg); opacity: 0.6;
}
.radar-sweep {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(118, 255, 3, 0.03) 50%, transparent 100%);
    animation: sweep 10s infinite linear; z-index: -1; pointer-events: none;
}
@keyframes sweep { 0% { top: -100%; } 100% { top: 100%; } }

/* --- HEADER --- */
#public-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: 80px; position: fixed; top: 0; width: 100%; z-index: 50;
    background: rgba(0,0,0,0.8); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -1px; cursor: pointer; }
.green-dot { color: var(--primary); }

.public-nav { display: flex; gap: 30px; }
.nav-link {
    color: #888; text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: 0.2s;
}
.nav-link:hover { color: #fff; }

.nav-login-btn {
    background: #fff; color: #000; border: none;
    padding: 10px 24px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: 0.2s; border-radius: 4px;
}
.nav-login-btn:hover { background: var(--primary); }

/* --- HERO --- */
#landing-page { padding-top: 80px; }

.hero-section {
    min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 0 20px;
}
.badge {
    display: inline-block; padding: 6px 16px; border: 1px solid #333;
    border-radius: 20px; font-size: 0.75rem; color: var(--primary);
    margin-bottom: 30px; background: rgba(118,255,3,0.05); font-family: var(--font-mono);
}
h1 {
    font-size: 4rem; line-height: 1.1; font-weight: 800; letter-spacing: -2px; margin-bottom: 24px;
}
.green-text { color: var(--primary); }
.sub-hero {
    font-size: 1.1rem; color: #888; max-width: 500px; margin: 0 auto 40px auto;
}
.cta-group { display: flex; gap: 15px; }
.primary-btn {
    background: var(--primary); color: #000; padding: 16px 40px;
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
    transition: 0.2s; border-radius: 4px;
}
.primary-btn:hover { background: #fff; }
.secondary-btn {
    background: transparent; color: #fff; padding: 15px 30px;
    font-weight: 600; font-size: 1rem; border: 1px solid #333;
    cursor: pointer; transition: 0.2s; border-radius: 4px; text-decoration: none;
}
.secondary-btn:hover { border-color: #fff; }

/* --- FEATURES --- */
.info-section { padding: 100px 5%; background: #050505; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header-center { text-align: center; margin-bottom: 60px; }
.section-header-center h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.divider { width: 60px; height: 3px; background: var(--primary); margin: 0 auto; }

.features-row {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
}
.f-item {
    flex: 1; min-width: 280px; text-align: left;
    background: #000; border: 1px solid #222; padding: 30px; border-radius: 8px;
}
.f-icon { font-size: 1.4rem; color: var(--primary); margin-bottom: 20px; }
.f-item h3 { font-size: 1.1rem; margin-bottom: 10px; color: #fff; font-weight: 600; }
.f-item p { color: #888; font-size: 0.9rem; }

/* --- CONTACT --- */
.contact-section { padding: 100px 20px; text-align: center; }
.contact-box {
    max-width: 500px; margin: 0 auto; background: #0a0a0a;
    border: 1px solid #222; padding: 50px; border-radius: 12px;
}
.contact-box h2 { font-size: 1.8rem; margin-bottom: 10px; }
.contact-box p { color: #888; margin-bottom: 30px; }

.c-list { text-align: left; }
.c-item {
    display: flex; justify-content: space-between; padding: 15px 0;
    border-bottom: 1px solid #222;
}
.c-item:last-child { border-bottom: none; }
.c-label { color: #666; font-size: 0.9rem; }
.c-val { color: #fff; font-family: var(--font-mono); user-select: text; }

footer { padding: 40px; text-align: center; color: #444; font-size: 0.8rem; border-top: 1px solid #111; }

/* --- MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    z-index: 100; display: flex; justify-content: center; align-items: center;
}
.modal-box {
    background: #000; border: 1px solid #333; padding: 40px;
    width: 380px; border-radius: 12px; text-align: center; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.close-modal {
    position: absolute; top: 20px; right: 20px; background: none; border: none;
    color: #444; cursor: pointer; font-size: 1.2rem;
}
.close-modal:hover { color: #fff; }
.modal-box h2 { font-size: 1.5rem; margin-bottom: 5px; color: #fff; }
.modal-subtitle { color: #666; margin-bottom: 30px; font-size: 0.9rem; }

.modal-box input {
    width: 100%; padding: 14px; background: #0a0a0a; border: 1px solid #333;
    color: #fff; border-radius: 6px; outline: none; transition: 0.2s;
    font-size: 1rem; text-align: center; font-family: var(--font-mono); margin-bottom: 20px;
}
.modal-box input:focus { border-color: var(--primary); }

.checkbox-container {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px; color: #666; font-size: 0.8rem;
}
.checkbox-container input { margin-right: 10px; accent-color: var(--primary); }

.auth-btn {
    width: 100%; padding: 14px; background: #fff; color: #000;
    font-weight: 700; border: none; border-radius: 6px; cursor: pointer;
    transition: 0.2s; font-size: 0.95rem;
}
.auth-btn:hover { background: var(--primary); }
.error-msg { color: #ff3333; margin-top: 15px; font-size: 0.85rem; }

/* --- DASHBOARD --- */
.app-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: 70px; background: #000; border-bottom: 1px solid #222;
    position: sticky; top: 0; z-index: 40;
}
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #fff; }
.dot-green { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
.logout-link { background: none; border: 1px solid #333; color: #888; padding: 6px 16px; cursor: pointer; border-radius: 4px; }
.logout-link:hover { border-color: #fff; color: #fff; }

.dashboard-content { padding: 40px 5%; max-width: 1400px; margin: 0 auto; }
.filter-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; }
.tab {
    background: transparent; border: 1px solid #333; color: #888;
    padding: 10px 24px; cursor: pointer; font-size: 0.9rem; font-weight: 500;
    border-radius: 6px; transition: 0.2s;
}
.tab:hover { color: #fff; border-color: #666; }
.tab.active { background: #fff; color: #000; border-color: #fff; font-weight: 700; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
    background: #0a0a0a; border: 1px solid #222; padding: 20px;
    text-decoration: none; display: block; transition: 0.2s; border-radius: 8px;
}
.card:hover { border-color: var(--primary); transform: translateY(-3px); }
.card h3 {
    font-size: 0.95rem; color: #fff; height: 45px; overflow: hidden;
    margin-bottom: 10px; line-height: 1.4; font-weight: 600;
}
.stats { display: flex; justify-content: space-between; border-top: 1px solid #222; padding-top: 15px; }
.stat-label { font-size: 0.7rem; color: #666; display: block; margin-bottom: 4px; font-weight: 600; }
.stat-val { font-size: 0.9rem; color: #fff; font-family: var(--font-mono); }
.stat-val.highlight { color: var(--primary); }

.loading-state { grid-column: 1/-1; text-align: center; color: #666; padding: 60px; }
.update-toast { position: fixed; bottom: 30px; right: 30px; background: #fff; color: #000; padding: 12px 24px; border-radius: 6px; font-weight: 600; z-index: 200; }