/* --- NEXUS CORE STYLES (FINAL AI EDITION) --- */
.nexus-public-wrapper {
    --nexus-purple: #bf00ff;
    --nexus-neon-green: #00ff9d;
    --nexus-alert-red: #ff0055;
    --nexus-warn-yellow: #ffcc00;
    --nexus-bg: #050505;
    background: var(--nexus-bg);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    border-radius: 24px;
    padding: 60px 20px;
    margin: 120px 0 60px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1a0525 0%, #050505 60%);
    box-shadow: 0 0 100px rgba(191, 0, 255, 0.1) inset;
}

/* CARDS */
.nexus-public-wrapper .nexus-card {
    background: rgba(12, 12, 16, 0.6) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(191, 0, 255, 0.15) !important;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

/* LIVE STATUS BAR */
.system-status-bar {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--nexus-neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
}
.live-blink {
    width: 8px; height: 8px; background: var(--nexus-neon-green);
    border-radius: 50%; margin-right: 10px;
    box-shadow: 0 0 10px var(--nexus-neon-green);
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* HUD FEATURES */
.feature-grid {
    display: flex; gap: 20px; margin-top: 35px; justify-content: center; flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
}
.feature-item {
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px; border-radius: 4px; font-size: 0.75rem;
    color: #888; letter-spacing: 1px; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.feature-item:hover { border-color: var(--nexus-purple); color: white; box-shadow: 0 0 15px rgba(191,0,255,0.2); }
.status-light { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.status-light.green { background: #00ff9d; color: #00ff9d; }
.status-light.purple { background: #bf00ff; color: #bf00ff; animation: pulseAI 2s infinite; }
@keyframes pulseAI { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.ai-text { color: white; font-weight: 700; text-shadow: 0 0 10px rgba(191, 0, 255, 0.5); }

/* INPUTS & BUTTONS */
.nexus-public-wrapper .input-group-nexus {
    background: rgba(0, 0, 0, 0.5) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px; padding: 10px 20px;
}
.nexus-public-wrapper .url-input {
    background: transparent !important; border: none !important; color: white !important;
    width: 100%; outline: none; font-family: 'JetBrains Mono', monospace;
}
.nexus-public-wrapper .btn-nexus {
    background: linear-gradient(90deg, #bf00ff, #8a00e6) !important;
    color: white !important; border: none; border-radius: 12px;
    font-weight: 800; padding: 15px 40px; letter-spacing: 1px;
    text-transform: uppercase; box-shadow: 0 10px 40px rgba(191, 0, 255, 0.3);
    transition: 0.3s;
}
.nexus-public-wrapper .btn-nexus:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(191, 0, 255, 0.6); }

/* --- LOCKED CONTENT (FIXED: Message at Top) --- */
.nexus-public-wrapper .locked-container {
    position: relative;
    border-radius: 20px;
    margin-top: 3rem;
    border: 1px solid rgba(255,255,255,0.05);
    background: #08080a;
    overflow: hidden; 
    min-height: 600px; 
}

/* Force Hardware Acceleration for Blur */
.nexus-public-wrapper .locked-content {
    filter: blur(15px) !important;
    -webkit-filter: blur(15px) !important;
    transform: translate3d(0, 0, 0); 
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    padding: 2rem;
    width: 100%;
    height: 100%;
}

/* OVERLAY: Aligned to Top (Flex Start) */
.nexus-public-wrapper .locked-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 50;
    
    /* LAYOUT FIX: Puts message at the top */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align Top */
    padding-top: 100px; /* Space from top edge */
    
    background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.95) 70%);
    backdrop-filter: blur(5px);
}

/* FAKE DATA ROWS */
.fake-row {
    display: flex; align-items: center; gap: 15px; padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #555;
}
.fake-label { color: #888; width: 180px; text-transform: uppercase; }
.fake-val { color: #444; flex-grow: 1; letter-spacing: 2px; }

/* TERMINAL OVERLAY (With Colors) */
#scanOverlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.95); z-index: 99999;
    display: none; flex-direction: column; align-items: center; justify-content: center;
}
.terminal-window {
    width: 90%; max-width: 600px; background: #0a0a0a;
    border: 1px solid var(--nexus-purple); border-radius: 12px;
    padding: 30px; font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 0 100px rgba(191, 0, 255, 0.25);
}
.terminal-log {
    list-style: none; padding: 0; margin: 0; height: 250px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.terminal-log li { margin-bottom: 6px; font-size: 14px; opacity: 0; animation: fadeIn 0.1s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* Terminal Log Colors */
.log-def { color: var(--nexus-neon-green); }
.log-warn { color: var(--nexus-warn-yellow); }
.log-err { color: var(--nexus-alert-red); }
.log-sys { color: #00d2ff; }
.log-ai { color: var(--nexus-purple); text-shadow: 0 0 10px rgba(191,0,255,0.5); font-weight: bold; }