body {
            background-color: #050505;
            color: #e2e8f0;
            background-image: radial-gradient(circle at 50% 0%, #1a202c 0%, #050505 70%);
        }
        
        /* Glassmorphism & Cyberpunk UI */
        .glass-panel {
            background: rgba(17, 22, 29, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(45, 55, 72, 0.5);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        }
        
        .cyber-border {
            border: 1px solid #2d3748;
            position: relative;
            overflow: hidden;
        }
        
        .cyber-border::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 2px;
            height: 100%;
            background: linear-gradient(to bottom, #00f3ff, transparent);
            opacity: 0.5;
        }

        .neon-text {
            text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
        }
        
        .neon-text-green {
            text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #0a0f14;
        }
        ::-webkit-scrollbar-thumb {
            background: #2d3748;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #00f3ff;
        }

        /* Glitch Effect Classes */
        .glitch-hover:hover {
            animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
            color: #00f3ff;
        }
        @keyframes glitch {
            0% { transform: translate(0) }
            20% { transform: translate(-2px, 2px) }
            40% { transform: translate(-2px, -2px) }
            60% { transform: translate(2px, 2px) }
            80% { transform: translate(2px, -2px) }
            100% { transform: translate(0) }
        }

        /* Terminal Output */
        .terminal {
            font-family: 'JetBrains Mono', monospace;
            background: #0a0f14;
            color: #39ff14;
            padding: 1rem;
            border-left: 3px solid #39ff14;
            overflow-y: auto;
            max-height: 400px;
        }
        .typing::after {
            content: '▋';
            animation: blink 1s infinite;
        }
        @keyframes blink { 50% { opacity: 0; } }
        
        .discovery-badge {
            background: rgba(176, 38, 255, 0.2);
            color: #d68aff;
            border: 1px solid #b026ff;
        }

        /* Chat Specifics */
        .chat-bubble-user {
            background: rgba(45, 55, 72, 0.5);
            border: 1px solid #2d3748;
            border-radius: 12px 12px 0 12px;
            color: #e2e8f0;
        }
        .chat-bubble-ai {
            background: rgba(0, 243, 255, 0.05);
            border: 1px solid rgba(0, 243, 255, 0.2);
            border-radius: 12px 12px 12px 0;
            color: #e2e8f0;
        }
        .citation-box {
            font-size: 0.7rem;
            background: rgba(0,0,0,0.5);
            border-left: 2px solid #00f3ff;
            margin-top: 0.5rem;
            padding: 0.5rem;
        }
        
        /* Date Picker Customization */
        input[type="date"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
            cursor: pointer;
        }
        
        /* Automation Cards */
        .auto-card {
            transition: all 0.3s ease;
        }
        .auto-card:hover {
            border-color: #00f3ff;
            transform: translateY(-2px);
        }
        
        /* Script Block */
        .script-block {
            background: #1a202c;
            color: #e2e8f0;
            padding: 0.5rem;
            border-radius: 0.25rem;
            font-size: 0.7rem;
            font-family: 'JetBrains Mono', monospace;
            white-space: pre-wrap;
            overflow-x: auto;
            border: 1px solid #2d3748;
            margin-top: 0.5rem;
        }

/* Hover Pulse for Interactive Elements */
@keyframes pulse-border {
    0% { border-color: rgba(0, 243, 255, 0.3); box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.2); }
    50% { border-color: rgba(0, 243, 255, 0.8); box-shadow: 0 0 20px 0 rgba(0, 243, 255, 0.2); }
    100% { border-color: rgba(0, 243, 255, 0.3); box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.2); }
}

#btn-crawl:not(:disabled) {
    animation: pulse-border 3s infinite;
}

#btn-crawl:active {
    transform: scale(0.98);
}

/* Scroll Progress indicator (simplified) */
.scroll-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--cyber-primary);
    width: 0%;
    transition: width 0.3s;
}

/* Modern Card Layouts */
.intel-card {
    background: linear-gradient(135deg, rgba(17, 22, 29, 0.8) 0%, rgba(10, 15, 20, 0.9) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intel-card:hover {
    transform: translateY(-4px);
    border-color: #00f3ff;
    box-shadow: 0 10px 30px -10px rgba(0, 243, 255, 0.3);
}

/* Premium View Transitions */
.view-section {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.view-section.active-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
}

/* Enhanced Buttons & Cards */
.glass-panel {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 243, 255, 0.1), 0 4px 6px -2px rgba(0, 243, 255, 0.05);
}

button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: scale(0.95);
}

/* Loading Skeleton Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #11161d 4%, #1a202c 25%, #11161d 36%);
    background-size: 1000px 100%;
}
/* Toast System */
.toast {
    background: rgba(17, 22, 29, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-left: 4px solid #00f3ff;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast-success { border-left-color: #39ff14; }
.toast-error { border-left-color: #ff003c; }
.toast-info { border-left-color: #b026ff; }

/* Enhanced Perspective */
main {
    perspective: 1000px;
}

/* Background Particle Simulation (CSS only) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 80px 120px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 110px 10px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 150px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    animation: slowScroll 60s linear infinite;
}

@keyframes slowScroll {
    from { background-position: 0 0; }
    to { background-position: 0 1000px; }
}

/* Modal Content Transition */
#settings-modal > div,
#auth-modal > div,
#subscription-modal > div {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#settings-modal.flex > div,
#auth-modal.flex > div,
#subscription-modal.flex > div {
    transform: scale(1);
    opacity: 1;
}

/* Custom Table Polish */
tr:hover td {
    background: rgba(0, 243, 255, 0.03);
    color: #fff;
}
