:root {
    --bg-dark: #05070a;
    --glass-bg: rgba(13, 17, 23, 0.85);
    --accent-cyan: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.35);
    --text-primary: #e6edf3;
    --text-dim: #8b949e;
    --border-glass: rgba(255, 255, 255, 0.1);
    --crit: #ff2e63; --med: #f59e0b; --low: #00f2ff; --info: #00ff95;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; } /* Security: Disables text selection */

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top right, #161b22, var(--bg-dark));
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}

header { width: 100%; padding: 80px 20px 40px; text-align: center; }

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800; letter-spacing: -2px;
    background: linear-gradient(90deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; text-transform: uppercase;
}

.brand-sub { font-weight: 300; opacity: 1 !important; color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-glow); }

.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass); border-radius: 20px;
    padding: clamp(2rem, 5vw, 3.5rem); width: 95%; max-width: 1100px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); margin: 20px 0 60px;
}

.input-group { display: flex; gap: 15px; background: rgba(0, 0, 0, 0.4); padding: 15px; border-radius: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }

#targetUrl { flex: 1; min-width: 300px; background: transparent; border: 1px solid var(--border-glass); border-radius: 10px; padding: 18px; color: var(--accent-cyan); font-family: 'JetBrains Mono', monospace; outline: none; user-select: text; } /* Allow URL typing */

button { background: var(--accent-cyan); color: #05070a; font-weight: 800; padding: 18px 40px; border: none; border-radius: 10px; cursor: pointer; transition: 0.4s; }
button:hover { box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-3px); }

.interaction-buttons { display: flex; gap: 15px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.btn-secondary {
    text-decoration: none; background: rgba(255, 255, 255, 0.05); color: var(--text-primary);
    padding: 12px 24px; border-radius: 8px; border: 1px solid var(--border-glass);
    font-size: 0.9rem; font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent-cyan); color: var(--accent-cyan); }

.results-summary { display: flex; gap: 20px; margin-bottom: 35px; flex-wrap: wrap; justify-content: center; }
.summary-item { padding: 12px 20px; background: rgba(255,255,255,0.04); border-radius: 10px; border: 1px solid var(--border-glass); font-weight: bold; }

.result-item { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-glass); border-left: 6px solid var(--accent-cyan); padding: 30px; border-radius: 12px; margin-bottom: 20px; user-select: text; }

footer { margin-top: auto; padding: 60px 20px; text-align: center; width: 100%; border-top: 1px solid var(--border-glass); }
footer a { color: var(--accent-cyan); text-decoration: none; font-weight: 600; }
.hidden { display: none; }
.initial-message { text-align: center; opacity: 0.3; padding: 60px; font-family: 'JetBrains Mono', monospace; }

/* Modal & Progress Styling */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(15px); align-items: center; justify-content: center; }
.spinner { width: 60px; height: 60px; border: 4px solid rgba(0, 242, 255, 0.1); border-top: 4px solid var(--accent-cyan); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 25px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.progress-bar-container { width: 100%; height: 10px; background: rgba(0,0,0,0.4); border-radius: 10px; margin: 20px 0; overflow: hidden; }
#progressBar { height: 100%; width: 0%; background: var(--accent-cyan); transition: width 0.4s ease; }