:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 22, 0.7);
    --card-border: rgba(45, 45, 55, 0.8);
    --text-primary: #f0f0f0;
    --text-secondary: #9aa0a6;
    
    --accent-cyan: #00f0ff;
    --accent-green: #00ff66;
    --accent-red: #ff0055;
    --accent-yellow: #ffb800;
    
    --font-heading: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 10s infinite ease-in-out alternate;
}
.orb-1 {
    background: var(--accent-cyan);
    top: -100px; left: -100px;
}
.orb-2 {
    background: var(--accent-red);
    bottom: -100px; right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography & Layout */
.dashboard {
    max-width: 1100px;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.dashboard-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}
.accent-cyan { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
.neon-cyan { color: var(--accent-cyan); }

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.5;
}

/* Button */
.btn-primary {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1) inset, 0 0 15px rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,240,255,0.2), transparent);
    transition: 0.5s;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3) inset, 0 0 25px rgba(0, 240, 255, 0.3);
    text-shadow: 0 0 5px var(--accent-cyan);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Grid & Cards */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}
.hidden {
    display: none !important;
}
.fade-in {
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.data-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.data-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 100, 120, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.75rem;
}
.card-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.card-icon {
    color: var(--text-secondary);
}
.card-title {
    font-size: 1.1rem;
    font-weight: 500;
}
.threat-level {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
}
.threat-high { color: var(--accent-red); background: rgba(255,0,85,0.1); border: 1px solid rgba(255,0,85,0.3); }
.threat-medium { color: var(--accent-yellow); background: rgba(255,184,0,0.1); border: 1px solid rgba(255,184,0,0.3); }

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.data-row:last-child {
    border-bottom: none;
}
.data-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.data-value {
    color: var(--text-primary);
    text-align: right;
    max-width: 65%;
    word-break: break-word;
}

.value-highlight {
    color: var(--accent-green);
    text-shadow: 0 0 5px rgba(0,255,102,0.4);
}

.card-footer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: auto;
    padding-top: 1rem;
}

/* Scanner Overlay */
.scan-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.scanner-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-cyan);
    animation: scan 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.scan-text {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1s infinite alternate;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    .results-grid { grid-template-columns: 1fr; }
}
