:root {
            --bg-deep: #05070a;
            --panel-bg: rgba(13, 17, 23, 0.7);
            --accent-blue: #3b82f6;
            --accent-cyan: #06b6d4;
            --danger: #ef4444;
            --warning: #f59e0b;
            --success: #10b981;
            --border-glow: rgba(59, 130, 246, 0.2);
        }

        body {
            background-color: var(--bg-deep);
            color: #f1f5f9;
            font-family: 'Space Grotesk', sans-serif;
            overflow-x: hidden;
            background-image:
                radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
            background-size: 40px 40px;
        }

        .mono {
            font-family: 'JetBrains Mono', monospace;
        }

        .glass-panel {
            background: var(--panel-bg);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        .bento-card {
            background: var(--panel-bg);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 2rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .bento-card:hover {
            border-color: var(--accent-blue);
            box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
        }

        .section-tag {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.3em;
            color: var(--accent-blue);
            margin-bottom: 1.25rem;
            display: block;
            font-weight: 700;
        }

        .scanline {
            width: 100%;
            height: 100px;
            z-index: 10;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
            opacity: 0.1;
            position: fixed;
            pointer-events: none;
            animation: scan 8s linear infinite;
        }

        @keyframes scan {
            from { top: -100px; }
            to { top: 100vh; }
        }

        .btn-tactical {
            background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
            clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .btn-tactical:hover {
            filter: brightness(1.2);
            transform: skewX(-2deg);
        }

        /* Nav dropdown styling */
        .nav-dropdown {
            position: absolute;
            top: calc(100% + 1rem);
            right: 0;
            width: 240px;
            z-index: 50;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            text-align: left;
        }

        .nav-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 1rem;
            color: #94a3b8;
            transition: all 0.2s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            text-decoration: none;
        }

        .dropdown-item:last-child {
            border-bottom: none;
        }

        .dropdown-item:hover {
            background: rgba(59, 130, 246, 0.05);
            color: white;
            padding-left: 1.25rem;
        }

        .dropdown-item i {
            width: 16px;
            text-align: center;
            font-size: 0.9rem;
            color: var(--accent-blue);
        }

        /* Radar sweep animation for loader */
        .radar-grid {
            background-image:
                radial-gradient(circle, var(--accent-blue) 1px, transparent 1px),
                repeating-radial-gradient(rgba(59, 130, 246, 0.1) 0, rgba(59, 130, 246, 0.1) 1px, transparent 1px, transparent 40px);
            background-size: 100% 100%;
        }

        @keyframes radar-sweep {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .radar-sweep-effect {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 150vmax;
            height: 150vmax;
            aspect-ratio: 1 / 1;
            background: conic-gradient(from 0deg, var(--accent-blue) 0%, transparent 80%);
            opacity: 0.05;
            transform-origin: center;
            animation: radar-sweep 6s linear infinite;
            pointer-events: none;
            border-radius: 50%;
        }

/* ---------- Print / "Save as PDF": clean branded white report ---------- */
.print-header { border-bottom: 3px solid #2563eb; padding-bottom: 10px; margin-bottom: 14px; }
.print-brand { font-weight: 700; letter-spacing: 0.15em; font-size: 16px; color: #1d4ed8; }
.print-meta { font-size: 11px; color: #475569; margin-top: 4px; }
@media print {
    @page { margin: 14mm; }
    html, body { background: #fff !important; color: #0f172a !important; }
    body { background-image: none !important; padding: 0 !important; }
    .scanline, header, form, #scanning-indicator, #rate-limit-warning, #shared-banner { display: none !important; }
    .bento-card, .glass-panel { background: #fff !important; border: 1px solid #cbd5e1 !important; box-shadow: none !important; backdrop-filter: none !important; break-inside: avoid; }
    .text-white { color: #0f172a !important; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .section-tag { color: #1d4ed8 !important; }
    #grade-badge { box-shadow: none !important; }
    .text-gray-400, .text-gray-500, .text-gray-600 { color: #475569 !important; }
    .bg-black\/20, .bg-black\/40 { background: #f1f5f9 !important; }
}
