/* =================================================================
   CSS Reset & Base Styles
   ================================================================= */

/* =================================================================
   CSS Custom Properties with Fallbacks
   ================================================================= */
:root {
    /* Primary Brand Colors - Sophisticated Blue-Purple Gradient */
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-400: #818cf8;
    --primary-300: #a5b4fc;

    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-green: #10b981;

    /* Dark Mode Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1c1c1c;
    --bg-hover: #242424;
    --bg-elevated: #1f1f1f;

    /* Glassmorphism effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Severity Colors */
    --severity-critical: #ef4444;  /* Red */
    --severity-high: #f97316;      /* Orange */
    --severity-medium: #3b82f6;    /* Blue */
    --severity-low: #f59e0b;       /* Yellow */
    --severity-info: #10b981;      /* Green */

    /* Semantic Colors */
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #3b82f6;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --text-inverse: #0a0a0a;

    /* Border & Divider */
    --border-color: #2a2a2a;
    --divider-color: #333333;

    /* Enhanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.4);
    --shadow-glow-strong: 0 0 30px rgba(99, 102, 241, 0.5);

    /* Spacing */
    --spacing-xs: 0.175rem;
    --spacing-sm: 0.35rem;
    --spacing-md: 0.7rem;
    --spacing-lg: 1.05rem;
    --spacing-xl: 1.4rem;
    --spacing-2xl: 2.1rem;
    --spacing-3xl: 2.8rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Accessibility - Focus Styles */
    --focus-ring-color: var(--primary-500);
    --focus-ring-width: 3px;
    --focus-ring-offset: 2px;
    --focus-ring-style: solid;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* Fallback for browsers without CSS custom property support */
    background: #0a0a0a;
    background: var(--bg-primary);
    color: #ffffff;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =================================================================
   Accessibility - Focus Styles
   ================================================================= */

/* Remove default focus outline and add custom focus-visible styles */
*:focus {
    outline: none;
}

/* Focus-visible styles for keyboard navigation */
*:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    border-radius: var(--radius-sm);
}

/* Links */
a:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    box-shadow: 0 0 0 var(--focus-ring-offset) var(--bg-primary),
                0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
}

/* Buttons */
button:focus-visible,
.btn:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    box-shadow: 0 0 0 var(--focus-ring-offset) var(--bg-primary),
                0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color),
                0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Input fields */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: 0;
    border-color: var(--focus-ring-color);
    box-shadow: 0 0 0 var(--focus-ring-offset) rgba(99, 102, 241, 0.2),
                0 0 12px rgba(99, 102, 241, 0.3);
}

/* Navigation links */
.nav-link:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* Cards and interactive elements */
.card:focus-visible,
.feature-card:focus-visible,
.cve-card:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    box-shadow: 0 0 0 var(--focus-ring-offset) var(--bg-primary),
                0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color),
                0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Dropdown items */
.dropdown-link:focus-visible,
.auth-dropdown-item:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: -2px;
    background: rgba(99, 102, 241, 0.15);
}

/* User menu */
.user-menu:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    background: rgba(99, 102, 241, 0.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    background: rgba(99, 102, 241, 0.1);
}

/* Carousel controls */
.carousel-btn:focus-visible,
.hn-control-btn:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    box-shadow: 0 0 0 var(--focus-ring-offset) var(--bg-primary),
                0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color),
                0 12px 48px rgba(99, 102, 241, 0.4);
}

/* Indicators */
.indicator:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    transform: scale(1.3);
}

/* =================================================================
   Accessibility - Reduced Motion
   ================================================================= */

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Disable specific animations */
    .floating-stat-card,
    .floating-stat-1,
    .floating-stat-2,
    .floating-stat-3,
    .floating-stat-4 {
        animation: none !important;
    }

    .features-header-icon {
        animation: none !important;
    }

    .typewriter-cursor {
        animation: none !important;
        opacity: 1 !important;
    }

    .hero-particles {
        animation: none !important;
    }

    /* Keep essential transforms but remove animations */
    .btn:hover,
    .card:hover,
    .feature-card:hover {
        transform: none !important;
    }

    /* Disable shimmer and loading animations */
    .skeleton-loader,
    .shimmer {
        animation: none !important;
    }

    /* Disable floating and pulsing animations */
    @keyframes float-gentle {
        0%, 100% {
            transform: translateY(0px);
        }
    }

    @keyframes float-icon {
        0%, 100% {
            transform: translateY(0);
        }
    }

    @keyframes particles-float {
        0%, 100% {
            transform: translateY(0px);
        }
    }

    @keyframes typewriter-blink {
        0%, 100% {
            opacity: 1;
        }
    }
}

/* =================================================================
   Typography
   ================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-bold);
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 1.75rem;
    font-weight: var(--fw-extrabold);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: 1.4rem;
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.05rem;
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* =================================================================
   Container & Layout
   ================================================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* =================================================================
   Header & Navigation
   ================================================================= */
.header {
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(10, 10, 10, 0.95);
    background: rgba(10, 10, 10, 0.85);
    /* Webkit prefix for Safari */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease-in-out;
    transition: all var(--transition-base);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    height: 64px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform var(--transition-base);
}

.logo a:hover {
    transform: scale(1.05);
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: var(--fw-medium);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.nav-link.active {
    color: var(--primary-500);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu:hover .user-avatar {
    border-color: var(--primary-500);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.user-name {
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    line-height: 1.2;
}

.user-tier {
    font-size: 0.65rem;
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-tier.tier-premium {
    color: var(--primary-500);
}

.user-tier.tier-pro {
    color: var(--accent-purple);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(28, 28, 28, 1);
    background: rgba(28, 28, 28, 0.95);
    /* Webkit prefix for Safari */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease-in-out;
    transition: all var(--transition-base);
    z-index: 1001;
    overflow: hidden;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.dropdown-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: var(--fw-medium);
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dropdown-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-500);
    padding-left: calc(var(--spacing-md) + 4px);
}

.dropdown-link.logout {
    color: var(--severity-critical);
}

.dropdown-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--severity-critical);
}

/* Auth Dropdown Styles */
.auth-dropdown {
    position: relative;
}

.auth-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: all var(--transition-base);
}

.auth-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-500);
}

.auth-toggle-text {
    font-weight: var(--fw-semibold);
}

.auth-toggle-icon {
    transition: transform var(--transition-base);
}

.auth-dropdown.active .auth-toggle-icon {
    transform: rotate(180deg);
}

.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(28, 28, 28, 1);
    background: rgba(28, 28, 28, 0.95);
    /* Webkit prefix for Safari */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease-in-out;
    transition: all var(--transition-base);
    z-index: 1001;
    overflow: hidden;
}

.auth-dropdown.active .auth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: var(--fw-medium);
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.auth-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.auth-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(0, 0, 0, 0.85);
    background: rgba(0, 0, 0, 0.7);
    /* Webkit prefix for Safari */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    transition: opacity var(--transition-base);
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* =================================================================
   Buttons
   ================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-500);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-500);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 0.7rem;
}

/* =================================================================
   Main Content
   ================================================================= */
.main-content {
    flex: 1;
    padding: var(--spacing-2xl) 0;
}

/* =================================================================
   Hero Section - Legacy (deprecated)
   ================================================================= */
.hero {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
}

.hero-title {
    font-size: 2.45rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* =================================================================
   Modern Hero Section - Asymmetric Design
   ================================================================= */
.hero-modern {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: var(--spacing-xl) var(--spacing-lg) var(--spacing-3xl) var(--spacing-lg);
    background: var(--bg-primary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a !important;
    opacity: 0.6;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a !important;
    animation: particles-float 20s linear infinite;
}

@keyframes particles-float {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-100px);
    }
}

/* Hero Main Title */
.hero-main-title {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    margin-bottom: var(--spacing-md);
}

.hero-main-heading {
    font-size: 3.5rem;
    font-weight: var(--fw-extrabold);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    letter-spacing: -0.02em;
}

.hero-main-subtitle {
    font-size: 1.25rem;
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-content-asymmetric {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: 60vh;
    padding: var(--spacing-xl) 0;
}

.hero-text-section {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-500);
    background: rgba(99, 102, 241, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: var(--spacing-xl);
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-title-line {
    display: block;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.hero-title-line:first-child {
    color: var(--text-primary);
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Hero Static Header */
.hero-static-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Typewriter Effect */
.typewriter-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
}

.typewriter-text {
    font-size: inherit;
    font-weight: inherit;
    color: var(--text-primary);
}

.typewriter-cursor {
    font-size: inherit;
    color: var(--primary-500);
    animation: typewriter-blink 1s infinite;
    font-weight: normal;
}

@keyframes typewriter-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-title-line:last-child {
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-subtitle-modern {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions-modern {
    display: flex;
    gap: 1rem;
}

.btn-hero-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    border: none;
    cursor: pointer;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-glow-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-hero-primary:hover .btn-glow-effect {
    left: 100%;
}

.hero-visual-section {
    position: relative;
    height: 500px;
}

.hero-stats-floating {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-stat-card {
    position: absolute;
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    /* Webkit prefix for Safari */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.floating-stat-1 {
    top: 10%;
    left: 10%;
    animation: float-gentle 6s ease-in-out infinite;
}

.floating-stat-2 {
    top: 30%;
    right: 15%;
    animation: float-gentle 6s ease-in-out infinite 1.5s;
}

.floating-stat-3 {
    bottom: 30%;
    left: 20%;
    animation: float-gentle 6s ease-in-out infinite 3s;
}

.floating-stat-4 {
    bottom: 10%;
    right: 10%;
    animation: float-gentle 6s ease-in-out infinite 4.5s;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =================================================================
   Features Section
   ================================================================= */
.features {
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    font-size: 1.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 2.1rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* =================================================================
   Modern Features Section - Legacy (deprecated)
   ================================================================= */
.features-modern {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
}

.features-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.features-header {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    padding: 0 1rem;
}

.features-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: var(--radius-2xl);
    margin-bottom: var(--spacing-lg);
    animation: float-icon 3s ease-in-out infinite;
}

.features-header-icon svg {
    color: var(--accent-primary);
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.features-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-2xl);
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card-modern {
    position: relative;
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    /* Webkit prefix for Safari */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card-modern:hover::before {
    opacity: 1;
}

.feature-card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.feature-icon-modern {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon-scan {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: #6366f1;
}

.feature-icon-reports {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(217, 70, 239, 0.15));
    color: #a855f7;
}

.feature-icon-alerts {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(249, 115, 22, 0.15));
    color: #ec4899;
}

.feature-icon-compliance {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(59, 130, 246, 0.15));
    color: #22c55e;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.feature-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-description-modern {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-stat-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-stat-item svg {
    color: var(--accent-primary);
}

/* =================================================================
   Enhanced Features Section - Modern Design
   ================================================================= */
.features-enhanced {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    margin: var(--spacing-3xl) var(--spacing-lg);
    border-radius: var(--radius-xl);
}

.features-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a !important;
    pointer-events: none;
}

.features-header-enhanced {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.features-header-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-500);
    background: rgba(99, 102, 241, 0.1);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: var(--spacing-xl);
}

.features-title-enhanced {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.features-description-enhanced {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.feature-card-enhanced {
    position: relative;
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    /* Webkit prefix for Safari */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card-enhanced:hover .feature-card-glow {
    opacity: 1;
}

.feature-card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon-enhanced {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.feature-card-scan .feature-icon-enhanced {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    color: #6366f1;
}

.feature-card-reports .feature-icon-enhanced {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(217, 70, 239, 0.15));
    color: #a855f7;
}

.feature-card-alerts .feature-icon-enhanced {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(249, 115, 22, 0.15));
    color: #ec4899;
}

.feature-card-compliance .feature-icon-enhanced {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.15));
    color: #22c55e;
}

.feature-card-enhanced:hover .feature-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
}

.feature-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.feature-stats-enhanced {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.feature-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-stat svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

/* =================================================================
   Modern Hacker News Carousel - HTMX Version
   ================================================================= */
.hacker-news-modern {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
    margin: var(--spacing-3xl) var(--spacing-lg);
    border-radius: var(--radius-xl);
}

/* HTMX Carousel Header */
.hn-carousel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hn-carousel-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hn-carousel-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* HTMX Carousel Controls */
.hn-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hn-control-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.hn-control-btn:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-500-rgb), 0.3);
}

.hn-control-btn:active {
    transform: translateY(0);
}

.hn-control-btn svg {
    width: 20px;
    height: 20px;
}

/* HTMX Carousel Wrapper */
.hn-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* HTMX Story Container */
.hn-story-container {
    min-height: 200px;
    transition: all 0.5s ease;
}

/* HTMX Story Counter */
.hn-story-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.current-story {
    font-weight: 600;
    color: var(--primary-500);
}

.counter-divider {
    color: var(--text-muted);
}

.total-stories {
    color: var(--text-muted);
}

.hacker-news-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a !important;
    pointer-events: none;
}

.hacker-news-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.hacker-news-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-500);
    background: rgba(99, 102, 241, 0.1);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: var(--spacing-xl);
}

.hacker-news-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hacker-news-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

.hacker-news-carousel-modern {
    position: relative;
    z-index: 2;
}


.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.news-score svg {
    color: var(--primary-500);
}

.news-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
}

.news-description {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.news-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-500);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.05);
}

.news-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-500);
    transform: translateY(-1px);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    /* Webkit prefix for Safari */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-prev {
    margin-left: -24px;
}

.carousel-next {
    margin-right: -24px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-500);
    border-color: var(--primary-500);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(99, 102, 241, 0.5);
    border-color: var(--primary-500);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hacker-news-modern {
        padding: 3rem 0;
        margin: 3rem var(--spacing-md);
    }

    .hacker-news-title {
        font-size: 2rem;
    }

    .carousel-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .news-card {
        padding: 1.5rem;
    }

    .news-title {
        font-size: 1.125rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        margin-left: -20px;
    }

    .carousel-next {
        margin-right: -20px;
    }

    .carousel-indicators {
        gap: 0.5rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* =================================================================
   Stats Section
   ================================================================= */
.stats {
    background: var(--bg-secondary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-2xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.page-title {
    margin-bottom: var(--spacing-2xl);
    font-size: 1.75rem;
}

/* =================================================================
   Cards
   ================================================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.card-wide {
    grid-column: span 2;
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.card-header h3 {
    margin: 0;
    font-size: 0.875rem;
}

.card-body {
    padding: var(--spacing-lg);
}

/* =================================================================
   Metrics
   ================================================================= */
.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--text-secondary);
}

.metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.metric-value.critical {
    color: var(--accent-danger);
}

.metric-value.success {
    color: var(--accent-success);
}

/* =================================================================
   Tables
   ================================================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-hover);
}

.data-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tr:hover {
    background: var(--bg-hover);
}

/* =================================================================
   Badges
   ================================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.badge-critical {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid #ffffff;
}

.badge-high {
    background: rgba(200, 200, 200, 0.15);
    color: #c8c8c8;
    border: 1px solid #c8c8c8;
}

.badge-medium {
    background: rgba(160, 160, 160, 0.15);
    color: #a0a0a0;
    border: 1px solid #a0a0a0;
}

.badge-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.badge-secondary {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05));
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.2);
}

.badge-warning {
    background: rgba(180, 180, 180, 0.15);
    color: #b4b4b4;
    border: 1px solid #b4b4b4;
}

/* =================================================================
   Status Indicators
   ================================================================= */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.status-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.status-indicator.offline {
    background: #666666;
    box-shadow: 0 0 10px rgba(102, 102, 102, 0.5);
}

/* =================================================================
   Footer
   ================================================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 0.7875rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.6125rem;
}

/* =================================================================
   Responsive Design
   ================================================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .card-wide {
        grid-column: span 1;
    }

    /* Modern Hero Responsive */
    .hero-main-heading {
        font-size: 2.75rem;
    }

    .hero-main-subtitle {
        font-size: 1.125rem;
    }

    .hero-content-asymmetric {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text-section {
        padding-right: 0;
        order: 2;
    }

    .hero-visual-section {
        order: 1;
        height: 400px;
    }

    .hero-title-modern {
        font-size: 2.75rem;
    }

    .floating-stat-card {
        position: relative;
        margin-bottom: 1rem;
    }

    .floating-stat-1,
    .floating-stat-2,
    .floating-stat-3,
    .floating-stat-4 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        animation: none;
    }

    .hero-stats-floating {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        height: auto;
    }

    /* Features Enhanced Responsive */
    .features-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hacker News Responsive */
    .hacker-news-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
        text-align: center;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Modern Hero Mobile */
    .hero-modern {
        min-height: 60vh;
    }

    .hero-main-heading {
        font-size: 2.25rem;
    }

    .hero-main-subtitle {
        font-size: 1rem;
    }

    .hero-content-asymmetric {
        gap: 2rem;
        padding: 1rem 0;
    }

    .hero-title-modern {
        font-size: 2.25rem;
    }

    .hero-subtitle-modern {
        font-size: 1rem;
    }

    .hero-stats-floating {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .floating-stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    /* Features Enhanced Mobile */
    .features-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card-enhanced {
        min-height: 280px;
        padding: 1.5rem;
    }

    .features-title-enhanced {
        font-size: 2.25rem;
    }

    /* Hacker News Mobile */
    .hacker-news-modern {
        padding: 3rem 0;
        margin: 3rem var(--spacing-md);
    }

    .hacker-news-title {
        font-size: 1.875rem;
    }

    .carousel-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .news-card {
        padding: 1.5rem;
    }

    .news-title {
        font-size: 1.125rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        margin-left: -20px;
    }

    .carousel-next {
        margin-right: -20px;
    }

    /* Vulnerability Preview Mobile */
    .vulnerability-preview-section {
        min-height: 500px;
        margin: 1rem 0;
    }

    .preview-content {
        padding: 2rem 1.5rem;
    }

    .preview-text h2 {
        font-size: 2rem;
    }

    .preview-stat-number {
        font-size: 2.5rem;
    }

    .preview-icon .icon-container {
        width: 80px;
        height: 80px;
    }

    .load-interactive-btn {
        width: 100%;
        padding: 1rem 2rem;
    }

    .preview-card {
        width: 150px;
        padding: 0.75rem;
    }

    .preview-cve-id {
        font-size: 0.65rem;
    }

    .preview-title {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.225rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.6125rem;
    }

    /* Modern Hero Small Mobile */
    .hero-modern {
        min-height: 50vh;
    }

    .hero-main-heading {
        font-size: 1.875rem;
    }

    .hero-main-subtitle {
        font-size: 0.875rem;
    }

    .hero-content-asymmetric {
        gap: 1.5rem;
        padding: 0.5rem 0;
    }

    .hero-title-modern {
        font-size: 1.875rem;
    }

    .hero-subtitle-modern {
        font-size: 0.875rem;
    }

    .btn-hero-primary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .floating-stat-card {
        padding: 0.75rem;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-number {
        font-size: 1.125rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Features Enhanced Small Mobile */
    .features-enhanced {
        padding: 3rem 0;
    }

    .features-title-enhanced {
        font-size: 1.875rem;
    }

    .features-description-enhanced {
        font-size: 1rem;
    }

    .feature-card-enhanced {
        padding: 1.25rem;
        min-height: 250px;
    }

    .feature-icon-enhanced {
        width: 48px;
        height: 48px;
    }

    .feature-title {
        font-size: 1.125rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    /* Hacker News Small Mobile */
    .hacker-news-modern {
        padding: 2.5rem 0;
        margin: 2.5rem var(--spacing-sm);
    }

    .hacker-news-title {
        font-size: 1.625rem;
    }

    .hacker-news-description {
        font-size: 1rem;
    }

    .carousel-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .news-card {
        padding: 1.25rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-description {
        font-size: 0.875rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-prev {
        margin-left: -18px;
    }

    .carousel-next {
        margin-right: -18px;
    }

    .carousel-indicators {
        gap: 0.375rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    /* Vulnerability Preview Small Mobile */
    .vulnerability-preview-section {
        min-height: 450px;
        margin: 0.5rem 0;
    }

    .preview-content {
        padding: 1.5rem 1rem;
    }

    .preview-text h2 {
        font-size: 1.75rem;
    }

    .preview-text p {
        font-size: 1rem;
    }

    .preview-stat-number {
        font-size: 2.25rem;
    }

    .preview-stat-label {
        font-size: 0.875rem;
    }

    .preview-icon .icon-container {
        width: 72px;
        height: 72px;
    }

    .load-interactive-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .preview-card {
        width: 120px;
        padding: 0.5rem;
    }

    .preview-cve-id {
        font-size: 0.6rem;
    }

    .preview-title {
        font-size: 0.6rem;
    }

    .preview-meta {
        font-size: 0.6rem;
    }
}

/* =================================================================
   CVE Card Component
   ================================================================= */
.cve-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.cve-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* CVE Card Header */
.cve-card-header {
    padding: var(--spacing-lg);
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.cve-id-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.cve-id {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.cve-source {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
    border-radius: var(--radius-sm);
    font-size: 0.525rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Severity Badge */
.cve-severity-badge {
    flex-shrink: 0;
}

.severity-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    min-width: 80px;
    text-align: center;
}

.severity-badge.critical {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid #ffffff;
}

.severity-badge.high {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.2), rgba(200, 200, 200, 0.1));
    border: 2px solid #c8c8c8;
}

.severity-badge.medium {
    background: linear-gradient(135deg, rgba(160, 160, 160, 0.2), rgba(160, 160, 160, 0.1));
    border: 2px solid #a0a0a0;
}

.severity-badge.low {
    background: linear-gradient(135deg, rgba(120, 120, 120, 0.2), rgba(120, 120, 120, 0.1));
    border: 2px solid #787878;
}

.severity-badge.none {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.2), rgba(100, 100, 100, 0.1));
    border: 2px solid #646464;
}

.severity-label {
    font-size: 0.4375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
    opacity: 0.9;
}

.severity-score {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.severity-badge.critical .severity-label,
.severity-badge.critical .severity-score {
    color: #ffffff;
}

.severity-badge.high .severity-label,
.severity-badge.high .severity-score {
    color: #c8c8c8;
}

.severity-badge.medium .severity-label,
.severity-badge.medium .severity-score {
    color: #a0a0a0;
}

.severity-badge.low .severity-label,
.severity-badge.low .severity-score {
    color: #787878;
}

.severity-badge.none .severity-label,
.severity-badge.none .severity-score {
    color: #646464;
}

/* CVE Card Body */
.cve-card-body {
    padding: var(--spacing-lg);
    flex: 1;
}

.cve-description {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.cve-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Metadata Grid */
.cve-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.cve-meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.cve-meta-item.full-width {
    grid-column: 1 / -1;
}

.meta-label {
    font-size: 0.525rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 0.6125rem;
    color: var(--text-primary);
    font-weight: 500;
}

.cvss-vector {
    font-family: 'Courier New', monospace;
    background: var(--bg-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.525rem;
    color: var(--text-secondary);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.525rem;
    font-weight: 600;
}

.status-deferred {
    background: rgba(180, 180, 180, 0.2);
    color: #b4b4b4;
    border: 1px solid #b4b4b4;
}

.status-analyzed {
    background: rgba(120, 120, 120, 0.2);
    color: #787878;
    border: 1px solid #787878;
}

.status-rejected {
    background: rgba(100, 100, 100, 0.2);
    color: #646464;
    border: 1px solid #646464;
}

.status-default {
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
    border: 1px solid #a0a0a0;
}

/* CVSS Breakdown */
.cvss-breakdown {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.cvss-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.cvss-metric {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.525rem;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    font-weight: 600;
}

/* CVE Card Footer */
.cve-card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.cve-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.cve-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.525rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.cve-action-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.cve-action-btn .icon {
    width: 14px;
    height: 14px;
}

.cve-timestamp {
    color: var(--text-muted);
    font-size: 0.525rem;
}

/* Full Width Vulnerabilities Section */
.vulnerabilities-section {
    width: 100vw;
    margin: 4rem calc(-50vw + 50%);
    padding: 3rem var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

/* CVE Grid Layout */
.cve-grid {
    display: grid;
    grid-template-columns: repeat(5, 480px); /* Etwas schmaler als 588px */
    gap: var(--spacing-xl);
    margin: 2rem 0 3rem 0;
    max-width: none;
    justify-content: center;
    padding: 1rem 0;
}

/* CVE List Layout (Alternative) */
.cve-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.cve-list .cve-card {
    max-width: 100%;
}

/* Responsive CVE Cards */
@media (max-width: 2400px) {
    .cve-grid {
        grid-template-columns: repeat(4, 480px);
    }
}

@media (max-width: 2000px) {
    .cve-grid {
        grid-template-columns: repeat(3, 480px);
    }
}

@media (max-width: 1600px) {
    .cve-grid {
        grid-template-columns: repeat(2, 480px);
    }
}

@media (max-width: 768px) {
    .vulnerabilities-section {
        padding: 0 var(--spacing-md);
    }

    .cve-grid {
        grid-template-columns: 480px;
    }

    .cve-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cve-severity-badge {
        align-self: flex-end;
    }

    .cve-metadata {
        grid-template-columns: 1fr;
    }

    .cve-actions {
        flex-wrap: wrap;
    }

    .cve-action-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .vulnerabilities-section {
        padding: 0 var(--spacing-sm);
    }

    .cve-grid {
        grid-template-columns: 480px;
    }

    .cve-actions {
        flex-direction: column;
        width: 100%;
    }

    .cve-action-btn {
        width: 100%;
    }

    .cve-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .cvss-metrics {
        flex-direction: column;
    }

    .cvss-metric {
        text-align: center;
    }
}

/* =================================================================
   HTMX Components & Utilities
   ================================================================= */

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.empty-state-icon {
    margin-bottom: var(--spacing-lg);
    color: var(--primary-500);
    opacity: 0.6;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.empty-state-description {
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
    line-height: 1.6;
}

.empty-state h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

/* ========================================
   Unified HTMX Loading System - Grayscale Design
   ======================================== */

/* Base HTMX Indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: block;
}

/* Unified Loading Overlay Base */
.loading-overlay-base {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay-base.active,
.loading-overlay-base.htmx-request {
    display: flex;
    opacity: 1;
}

/* Unified Loading Content */
.unified-loading-content {
    text-align: center;
    color: var(--text-primary);
    padding: var(--spacing-2xl);
    max-width: 400px;
}

/* Unified Spinner - Grayscale Only */
.unified-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(160, 160, 160, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto var(--spacing-xl);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Unified Loading Text */
.unified-loading-text {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

/* Unified Progress Bar */
.unified-loading-progress {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.unified-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #a0a0a0 100%);
    border-radius: 2px;
    width: 0%;
    animation: progress 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Cards Loading Overlay */
.cards-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cards-loading-overlay.htmx-request {
    display: flex;
    opacity: 1;
}

/* Loading States */
.loading .pagination-container {
    opacity: 0.3;
    pointer-events: none;
}


.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}

/* Items Per Page Controls */
.items-per-page-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 2400px; /* 5 cards * 480px */
    margin-left: auto;
    margin-right: auto;
}

.items-per-page-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.6125rem;
}

.items-per-page-select {
    padding: var(--spacing-md) 2.5rem var(--spacing-md) var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.6125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 14px;
}

.items-per-page-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 8px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.items-per-page-select:hover {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.items-per-page-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--spacing-md);
    font-weight: 500;
}

/* =================================================================
   Search and Filter Controls
   ================================================================= */

/* Search and Controls Wrapper */
.search-and-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.search-container {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    align-items: center;
    flex-wrap: wrap;
}

/* Search Box Wrapper */
.search-box-wrapper {
    position: relative;
    flex: 1;
    min-width: 400px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.search-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 2.5rem;
    padding-right: 2.5rem; /* Space for reset button */
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Reset Button */
.search-reset-btn {
    position: absolute;
    right: 140px; /* Position before submit button */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: none; /* Hidden by default */
    z-index: 10;
}

.search-reset-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    transform: translateY(-50%) scale(1.1);
}

.search-reset-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-reset-btn svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* Show button when search has value */
.search-box-wrapper.has-value .search-reset-btn {
    display: block;
}

/* Search Submit Button */
.search-submit-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.search-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.search-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Search Filters */
.search-filters {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.severity-filter-select {
    padding: var(--spacing-md) 2.5rem var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 16px;
}

.severity-filter-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.severity-filter-select:hover {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Severity Options Styling */
.severity-filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--spacing-md);
    font-weight: 500;
}

/* Sort Dropdown */
.sort-filter-select {
    padding: var(--spacing-md) 2.5rem var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 16px;
}

.sort-filter-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sort-filter-select:hover {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sort-filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--spacing-md);
    font-weight: 500;
}

/* Search Active Indicator */
.search-input:not(:placeholder-shown) {
    border-color: var(--primary-500);
}

/* Show reset button when search has value */
.search-input:not(:placeholder-shown) ~ .search-reset-btn {
    display: flex !important;
}

/* =================================================================
   Startup Sections Styles
   ================================================================= */

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
    margin: 4rem var(--spacing-lg);
    border-radius: var(--radius-xl);
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--primary-500);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--spacing-lg);
}

.testimonials-title {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-md);
}

.testimonials-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
}

.testimonial-quote {
    color: var(--primary-500);
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar img {
    border-radius: 50%;
    border: 2px solid var(--primary-500);
}

.author-name {
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Social Proof Section */
.social-proof-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.social-proof-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-proof-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--fw-extrabold);
    color: var(--primary-500);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: var(--fw-medium);
}

.social-proof-logos {
    text-align: center;
}

.logos-title {
    font-size: 1.25rem;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.6);
}

.logo-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.logo-item img {
    max-width: 100%;
    height: auto;
}

/* Feature Comparison Section */
.feature-comparison-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
    margin: 4rem var(--spacing-lg);
    border-radius: var(--radius-xl);
}

.comparison-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.comparison-title {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-md);
}

.comparison-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.feature-column {
    width: 40%;
    font-weight: var(--fw-semibold);
}

.plan-column {
    width: 20%;
    text-align: center;
}

.plan-highlighted {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid var(--primary-500);
}

.plan-header h3 {
    font-size: 1.125rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-sm);
}

.plan-price {
    font-size: 1.5rem;
    font-weight: var(--fw-extrabold);
    color: var(--primary-500);
    margin-bottom: var(--spacing-sm);
}

.plan-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
}

.feature-name {
    color: var(--text-primary);
}

.feature-check {
    color: var(--accent-success);
    font-weight: var(--fw-bold);
    text-align: center;
}

.feature-cross {
    color: var(--accent-danger);
    font-weight: var(--fw-bold);
    text-align: center;
}

.feature-value {
    color: var(--text-secondary);
    text-align: center;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--primary-500);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--spacing-lg);
}

.faq-title {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-md);
}

.faq-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-hover);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin: 0;
}

.faq-icon {
    color: var(--primary-500);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Integration Partners Section */
.integration-partners-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.integration-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.integration-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--primary-500);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--spacing-lg);
}

.integration-title {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-md);
}

.integration-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.integration-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.integration-icon {
    color: var(--primary-500);
    margin-bottom: var(--spacing-lg);
}

.integration-name {
    font-size: 1.125rem;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.integration-card .integration-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Final CTA Section */
.final-cta-section {
    padding: var(--spacing-2xl) 0;
    background: #0a0a0a !important;
}

.final-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.final-cta-title {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-md);
}

.final-cta-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.final-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-final-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-final-cta-primary:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-final-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-final-cta-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

/* Responsive Design for Startup Sections */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .social-proof-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-grid {
        grid-template-columns: 1fr;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-final-cta-primary,
    .btn-final-cta-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .social-proof-stats {
        grid-template-columns: 1fr;
    }

    .logos-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Search Controls */
@media (max-width: 2400px) {
    .search-and-controls-wrapper {
        max-width: 1920px;
    }
}

@media (max-width: 2000px) {
    .search-and-controls-wrapper {
        max-width: 1440px;
    }
}

@media (max-width: 1600px) {
    .search-and-controls-wrapper {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .search-and-controls-wrapper {
        max-width: 480px;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box-wrapper {
        min-width: 100%;
    }

    .search-filters {
        flex-direction: column;
        width: 100%;
    }

    .severity-filter-select {
        width: 100%;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 2400px; /* 5 cards * 480px */
    margin-left: auto;
    margin-right: auto;
}

.pagination-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.6125rem;
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.6125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: #3b82f6;
    color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-current {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
    color: var(--text-primary);
    border-width: 2px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.pagination-ellipsis {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 600;
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
}

/* Pagination Responsive */
@media (max-width: 2400px) {
    .pagination-container {
        max-width: 1920px; /* 4 cards * 480px */
    }
}

@media (max-width: 2000px) {
    .pagination-container {
        max-width: 1440px; /* 3 cards * 480px */
    }
}

@media (max-width: 1600px) {
    .pagination-container {
        max-width: 960px; /* 2 cards * 480px */
    }
}

@media (max-width: 768px) {
    .items-per-page-controls {
        max-width: 480px; /* 1 card * 480px */
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .pagination-container {
        max-width: 480px; /* 1 card * 480px */
    }

    .pagination-controls {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .pagination-numbers {
        order: -1;
    }

    .pagination-info {
        text-align: center;
    }
}

/* Search Results */
.search-results-container {
    margin-bottom: var(--spacing-xl);
}

.search-message {
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-secondary);
}

.search-results {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.search-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
}

.search-list {
    padding: var(--spacing-lg);
}

.search-result-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

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

.search-result-item:hover {
    background: var(--bg-hover);
}

.result-main {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.result-description {
    color: var(--text-secondary);
    font-size: 0.6125rem;
    margin: 0;
}

/* Button Small Variant */
.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.525rem;
}

/* Subtitle */
.subtitle {
    color: var(--text-secondary);
    font-size: 0.7875rem;
    margin-bottom: var(--spacing-2xl);
}

/* Inline Loading Indicators */
.htmx-inline-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.6125rem;
}

.htmx-inline-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(160, 160, 160, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =================================================================
   Enhanced CVE Card Styles with CVSS Color Coding
   ================================================================= */

/* Base Enhanced CVE Card */
.enhanced-cve-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.enhanced-cve-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Elegant Left Border Only - Simple and Reliable */
.enhanced-cve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: #64748b;
    border-radius: 0 0 0 12px;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.enhanced-cve-card::after {
    display: none; /* Remove the bottom border completely */
}

/* CVSS Color Coding - Simple Left Border Only */
.cvss-critical::before {
    background: #dc2626;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.cvss-high::before {
    background: #ea580c !important;
    box-shadow: 0 0 6px rgba(234, 88, 12, 0.3);
}

.cvss-medium::before {
    background: #eab308;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.3);
}

.cvss-low::before {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
}

.cvss-info::before {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

/* Hover effects for left border only */
.enhanced-cve-card:hover::before {
    width: 6px;
    transform: scaleX(1.2);
}

/* Enhanced CVE Header */
.cve-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.cve-id-section {
    flex: 1;
}

.cve-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.cve-sources {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.source-badge {
    font-size: 0.525rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.source-badge.source-nist {
    background: #3a3a3a;
    color: #e0e0e0;
}

.source-badge.source-cisa {
    background: #505050;
    color: #e0e0e0;
}

/* Enhanced Severity Badge */
.cve-severity-section {
    display: flex;
    align-items: center;
}

.severity-badge {
    text-align: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    min-width: 80px;
    border: 2px solid;
}

.severity-critical {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #dc2626;
}

.severity-high {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.severity-medium {
    background: rgba(234, 179, 8, 0.1);
    border-color: #eab308;
    color: #eab308;
}

.severity-low {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.severity-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.severity-score {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

.severity-label {
    font-size: 0.525rem;
    font-weight: 600;
    margin-top: 2px;
}

.cvss-version {
    font-size: 0.4375rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Vendor/Product Info */
.vendor-product {
    margin-bottom: var(--spacing-md);
}

.vendor {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.7rem;
}

.product {
    color: var(--text-secondary);
    font-size: 0.6125rem;
    margin-top: 2px;
}

/* Enhanced Description */
.cve-description {
    margin-bottom: var(--spacing-md);
    max-height: 4.8em; /* 3 lines at line-height 1.6 */
    min-height: 3.2em; /* Ensure consistent spacing even if short/empty */
    overflow: hidden;
    position: relative;
}

.cve-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cve-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 1.6em;
    background: linear-gradient(to right, transparent, var(--bg-card));
    pointer-events: none;
}

/* Enhanced Metadata */
.cve-metadata {
    margin-bottom: var(--spacing-md);
}

.meta-row {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.meta-label {
    font-size: 0.525rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-value {
    font-size: 0.6125rem;
    color: var(--text-secondary);
}

.status-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.525rem;
    font-weight: 600;
}

.status-known_exploited {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    border: 1px solid #dc2626;
}

.status-active {
    background: rgba(200, 200, 200, 0.2);
    color: #c8c8c8;
}

.status-received {
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
}

.reviewed-badge {
    color: #787878;
    font-weight: 600;
}

/* CVSS Breakdown Styles */
.cvss-breakdown {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.cvss-header {
    margin-bottom: var(--spacing-md);
}

.cvss-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.6125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cvss-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.cvss-metric-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    text-align: center;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.metric-name {
    font-size: 0.525rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 0.6125rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* Metric value colors */
.metric-av-n {
    background: rgba(120, 120, 120, 0.2);
    color: #787878;
}

.metric-av-a {
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
}

.metric-av-l {
    background: rgba(200, 200, 200, 0.2);
    color: #c8c8c8;
}

.metric-av-p {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.metric-ac-l {
    background: rgba(120, 120, 120, 0.2);
    color: #787878;
}

.metric-ac-h {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.metric-pr-n {
    background: rgba(120, 120, 120, 0.2);
    color: #787878;
}

.metric-pr-l {
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
}

.metric-pr-h {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.metric-ui-n {
    background: rgba(120, 120, 120, 0.2);
    color: #787878;
}

.metric-ui-r {
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
}

.metric-c-n {
    background: rgba(120, 120, 120, 0.2);
    color: #787878;
}

.metric-c-l {
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
}

.metric-c-h {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.metric-i-n {
    background: rgba(120, 120, 120, 0.2);
    color: #787878;
}

.metric-i-l {
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
}

.metric-i-h {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.metric-a-n {
    background: rgba(120, 120, 120, 0.2);
    color: #787878;
}

.metric-a-l {
    background: rgba(160, 160, 160, 0.2);
    color: #a0a0a0;
}

.metric-a-h {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.metric-label {
    font-size: 0.525rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.cvss-vector-raw {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.vector-details {
    font-size: 0.6125rem;
}

.vector-summary {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
}

.vector-code {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.525rem;
    color: var(--text-primary);
    word-break: break-all;
}

/* Enhanced Footer */
.cve-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-md);
}

.cve-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.525rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.cve-timestamp {
    color: var(--text-muted);
    font-size: 0.525rem;
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background-color 0.3s ease;
}

.user-menu:hover {
    background: var(--bg-secondary);
}

.user-avatar img {
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Tier-specific avatar borders in top bar */
.user-avatar-tier-free img {
    border-color: #6c757d !important;
    box-shadow: 0 0 8px rgba(108, 117, 125, 0.3);
}

.user-avatar-tier-professional img {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.user-avatar-tier-enterprise img {
    border-color: #ffd700 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.user-menu:hover .user-avatar img {
    transform: scale(1.1);
}

.user-info {
    position: relative;
}

.user-tier {
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid;
}

.tier-free {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.3);
}

.tier-professional {
    color: var(--primary-500);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.tier-enterprise {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.6125rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: var(--spacing-sm);
    overflow: hidden;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-link {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.6125rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

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

.dropdown-link:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: var(--primary-500);
    padding-left: calc(var(--spacing-lg) + 4px);
}

.dropdown-link.logout {
    color: #ff6b6b;
}

.dropdown-link.logout:hover {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.08) 100%);
    color: #ff4444;
}

/* Auth Dropdown Styles - Modern Fächer Approach */
.auth-dropdown {
    position: relative;
    display: inline-block;
}

.auth-dropdown-toggle {
    background: linear-gradient(135deg, #505050 0%, #3a3a3a 100%);
    color: #e0e0e0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    font-size: 0.6125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    height: 40px;
    box-sizing: border-box;
    box-shadow: var(--shadow-md);
}

.auth-dropdown-toggle:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #505050 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
    border-color: var(--text-secondary);
}

.auth-dropdown-toggle:active {
    transform: translateY(0);
}

.auth-toggle-text {
    font-weight: 600;
}

.auth-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.auth-dropdown:hover .auth-toggle-icon {
    transform: rotate(180deg);
}

.auth-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: var(--spacing-sm);
    overflow: hidden;
}

.auth-dropdown:hover .auth-dropdown-menu,
.auth-dropdown.active .auth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.auth-dropdown.active .auth-toggle-icon {
    transform: rotate(180deg);
}

.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.6125rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

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

.auth-dropdown-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%);
    color: var(--primary-500);
    padding-left: calc(var(--spacing-lg) + 4px);
}

.auth-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.auth-dropdown-item:hover svg {
    opacity: 1;
    color: var(--primary-500);
    transform: scale(1.1);
}

/* Responsive Auth */
@media (max-width: 768px) {
    .user-menu {
        padding: var(--spacing-xs);
    }

    .user-name {
        display: none;
    }

    .user-dropdown {
        right: -10px;
        min-width: 140px;
    }

    .nav-actions {
        gap: var(--spacing-xs);
    }

    .auth-dropdown-toggle {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.6125rem;
        height: 35px;
    }

    .auth-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }
}

.cve-card-header {
    flex-direction: column;
    gap: var(--spacing-md);
}

.meta-row {
    flex-direction: column;
    gap: var(--spacing-xs);
}

.cvss-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.cve-actions {
    flex-wrap: wrap;
}

/* Animation for card entrance */
.enhanced-cve-card {
    animation: slideInUp 0.5s ease-out;
}

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


/* ========================================
   Enhanced CVSS Breakdown Styles
   ======================================== */

.cvss-breakdown {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #2a3b5c;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cvss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a3b5c;
}

.cvss-title {
    color: #e2e8f0;
    font-size: 10px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cvss-version-badge {
    background: linear-gradient(135deg, #505050 0%, #3a3a3a 100%);
    color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
}

.cvss-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.cvss-metric-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.cvss-metric-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.metric-impact-high {
    border-left: 4px solid #ffffff;
}

.metric-impact-medium {
    border-left: 4px solid #a0a0a0;
}

.metric-impact-low {
    border-left: 4px solid #787878;
}

.metric-impact-none {
    border-left: 4px solid #646464;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.metric-name-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-name {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.metric-category {
    color: #94a3b8;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.metric-value {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 8px;
    min-width: 24px;
    text-align: center;
}

.metric-value.high {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
}

.metric-value.medium {
    background: linear-gradient(135deg, #a0a0a0 0%, #8a8a8a 100%);
}

.metric-value.low {
    background: linear-gradient(135deg, #787878 0%, #646464 100%);
}

.metric-value.none {
    background: linear-gradient(135deg, #646464 0%, #505050 100%);
}

.metric-label {
    color: #94a3b8;
    font-size: 8px;
    font-weight: 500;
}

.metric-description {
    margin-top: 8px;
}

.description-text {
    color: #cbd5e1;
    font-size: 8px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.impact-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-indicator.high {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.impact-indicator.medium {
    background: rgba(160, 160, 160, 0.2);
    color: #c8c8c8;
    border: 1px solid rgba(160, 160, 160, 0.3);
}

.impact-indicator.low {
    background: rgba(120, 120, 120, 0.2);
    color: #a0a0a0;
    border: 1px solid rgba(120, 120, 120, 0.3);
}

.impact-indicator.none {
    background: rgba(100, 100, 100, 0.2);
    color: #8a8a8a;
    border: 1px solid rgba(100, 100, 100, 0.3);
}

.cvss-vector-raw {
    margin-top: 16px;
    border-top: 1px solid #2a3b5c;
    padding-top: 12px;
}

.vector-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #374151;
    border-radius: 6px;
    overflow: hidden;
}

.vector-summary {
    background: rgba(55, 65, 81, 0.5);
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 8px;
    color: #d1d5db;
    transition: background-color 0.2s ease;
}

.vector-summary:hover {
    background: rgba(55, 65, 81, 0.7);
}

.vector-length {
    margin-left: auto;
    color: #9ca3af;
    font-size: 7px;
}

.vector-content {
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
}

.vector-code {
    background: #1f2937;
    color: #f9fafb;
    padding: 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 8px;
    line-height: 1.4;
    word-break: break-all;
    border: 1px solid #374151;
}

.vector-info {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 7px;
}

.cvss-interpretation {
    margin-top: 16px;
    border-top: 1px solid #2a3b5c;
    padding-top: 12px;
}

.interpretation-header h5 {
    color: #e2e8f0;
    font-size: 9px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.impact-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 500;
}

.impact-item.high {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.impact-item.medium {
    background: rgba(160, 160, 160, 0.15);
    border: 1px solid rgba(160, 160, 160, 0.3);
    color: #c8c8c8;
}

.impact-item.low {
    background: rgba(120, 120, 120, 0.15);
    border: 1px solid rgba(120, 120, 120, 0.3);
    color: #a0a0a0;
}

.impact-item.none {
    background: rgba(100, 100, 100, 0.15);
    border: 1px solid rgba(100, 100, 100, 0.3);
    color: #8a8a8a;
}

.impact-metric {
    font-weight: 700;
}

/* ========================================
   Scrollable CVE Card Styles - Fixed for Border Rendering
   ======================================== */

.enhanced-cve-card {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.enhanced-cve-card::-webkit-scrollbar {
    width: 6px;
}

.enhanced-cve-card::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.enhanced-cve-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.enhanced-cve-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for CVSS breakdown */
@media (max-width: 768px) {
    .cvss-metrics-grid {
        grid-template-columns: 1fr;
    }

    .cvss-breakdown {
        padding: 12px;
    }

    .metric-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .metric-value-section {
        align-items: flex-start;
    }
}

/* ========================================
   Compact CVSS Breakdown - Horizontal Layout
   ======================================== */
.cvss-breakdown-compact {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.cvss-compact-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.cvss-metrics-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.cvss-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-weight: 500;
}

.cvss-raw-display {
    margin-top: var(--spacing-xs);
    display: flex;
    gap: var(--spacing-xs);
    align-items: flex-start;
}

.cvss-raw-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
    padding-top: 2px;
}

.cvss-raw-code {
    display: block;
    font-size: 0.7rem;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    word-break: break-all;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    flex: 1;
}

/* ========================================
   CVSS Info Section Styles
   ======================================== */

.cvss-info {
    margin: 12px 0;
}

.cvss-description {
    color: #cbd5e1;
    font-size: 8px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cvss-components {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.component-group h6 {
    color: #e2e8f0;
    font-size: 8px;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-tag {
    display: inline-block;
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 500;
    margin: 2px 4px 2px 0;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cvss-components {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Enhanced Elegant Border Effects
   ======================================== */

/* Subtle glow effect for borders */
.enhanced-cve-card:hover::before {
    box-shadow: 0 0 8px rgba(var(--severity-color-rgb, 100, 116, 139), 0.4);
}

.enhanced-cve-card:hover::after {
    box-shadow: 0 0 6px rgba(var(--severity-color-rgb, 100, 116, 139), 0.3);
}

/* Color variables for better maintainability */
.cvss-critical {
    --severity-color-rgb: 220, 38, 38;
    border-top: 3px solid #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 100%);
}

.cvss-high {
    --severity-color-rgb: 234, 88, 12;
    border-top: 3px solid #ea580c;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.05) 0%, transparent 100%);
}

.cvss-medium {
    --severity-color-rgb: 234, 179, 8;
    border-top: 3px solid #eab308;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05) 0%, transparent 100%);
}

.cvss-low {
    --severity-color-rgb: 34, 197, 94;
    border-top: 3px solid #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, transparent 100%);
}

.cvss-info {
    --severity-color-rgb: 59, 130, 246;
    border-top: 3px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
}

/* Enhanced border animations */
.enhanced-cve-card::before,
.enhanced-cve-card::after {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-cve-card:hover::before {
    transform: scaleY(1.02);
}

.enhanced-cve-card:hover::after {
    transform: scaleX(1.1);
}

/* Subtle pulse effect on critical vulnerabilities */
.cvss-critical::before,
.cvss-critical::after {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive border adjustments */
@media (max-width: 768px) {
    .enhanced-cve-card::before {
        width: 3px;
    }

    .enhanced-cve-card::after {
        width: 60px;
        height: 2px;
    }

    .enhanced-cve-card:hover::before {
        width: 4px;
    }

    .enhanced-cve-card:hover::after {
        width: 80px;
        height: 3px;
    }
}

/* ========================================
   Scroll Container Fixes for Border Rendering
   ======================================== */

/* Ensure main container doesn't clip pseudo-elements */
.cve-grid {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Fix for scrolling containers */
#vulnerabilities-content {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Ensure proper stacking context */
.enhanced-cve-card {
    isolation: isolate;
}

/* Hardware acceleration for smooth scrolling */
body {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* Prevent border clipping during scroll */
.enhanced-cve-card::before,
.enhanced-cve-card::after {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* ========================================
   Final Scroll Fix - Force Proper Rendering
   ======================================== */

/* Force hardware acceleration and proper rendering */
.enhanced-cve-card {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Ensure pseudo-elements are always visible during scroll */
.enhanced-cve-card::before,
.enhanced-cve-card::after {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Prevent any clipping issues */
.enhanced-cve-card {
    contain: layout style paint;
}

/* Smooth scrolling with proper border rendering */
* {
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   Slide-Over Panel - Vulnerability Details
   Z-Index Strategy:
   - Header: 1000
   - Loading Overlay: 9999
   - Detail Panel Overlay: 10000
   - Detail Panel: 10001
   ======================================== */

/* Slide-Over Panel Overlay (Backdrop) */
.detail-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-Over Panel */
.detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-panel.active {
    transform: translateX(0);
}

/* Panel Header */
.detail-panel-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.panel-header-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.panel-title-section {
    flex: 1;
}

.panel-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    font-family: 'Courier New', monospace;
}

.panel-subtitle {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    font-size: 1rem;
}

.subtitle-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.subtitle-item .icon {
    color: var(--accent-primary);
}

/* Panel Severity Badge */
.panel-severity-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    min-width: 100px;
    border: 2px solid;
    text-align: center;
}

.panel-severity-badge .severity-score {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.panel-severity-badge .severity-label {
    font-size: 0.525rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.panel-severity-badge .cvss-version {
    font-size: 0.4375rem;
    opacity: 0.8;
}

/* Close Button */
.panel-close-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.panel-close-btn:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
    transform: rotate(90deg);
}

/* Panel Body (Scrollable) */
.detail-panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-xl);
}

.detail-panel-body::-webkit-scrollbar {
    width: 8px;
}

.detail-panel-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.detail-panel-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.detail-panel-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Detail Sections */
.detail-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--border-color);
    padding-top: var(--spacing-lg);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-lg) 0;
}

.section-title .icon {
    color: var(--accent-primary);
}

/* Status Badges Grid */
.status-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.status-badge-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.badge-label {
    font-size: 0.525rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.badge-value {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.badge-danger {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* Product Info Grid */
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Summary/Description Content */
.summary-content,
.details-content,
.notes-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.summary-content p,
.details-content p,
.notes-content p {
    margin: 0;
}

/* Action Required Content */
.action-required-content {
    background: rgba(160, 160, 160, 0.1);
    border: 1px solid rgba(160, 160, 160, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.action-text {
    color: var(--text-primary);
    font-size: 0.65625rem;
    line-height: 1.6;
    margin: 0 0 var(--spacing-md) 0;
}

.due-date-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: #505050;
    color: #e0e0e0;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* CVSS Panel Breakdown */
.cvss-panel-breakdown {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.cvss-panel-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.cvss-panel-metric {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.2s ease;
}

.cvss-panel-metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-abbr {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.metric-category-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.metric-panel-value {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.metric-panel-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.metric-panel-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.metric-panel-impact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.525rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* CVSS Raw Vector */
.cvss-raw-vector-panel {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.vector-details-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.vector-summary-panel {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-hover);
    transition: background 0.2s ease;
}

.vector-summary-panel:hover {
    background: var(--bg-card);
}

.vector-content-panel {
    padding: var(--spacing-md);
}

.vector-code-panel {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.56875rem;
    color: var(--accent-info);
    word-break: break-all;
    line-height: 1.6;
}

/* References List */
.references-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.reference-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.reference-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.reference-item .icon {
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.reference-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    word-break: break-all;
    transition: color 0.2s ease;
}

.reference-link:hover {
    color: var(--accent-primary);
}

/* Sources Badges */
.sources-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.source-badge-panel {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.source-badge-panel.source-nist {
    background: rgba(120, 120, 120, 0.2);
    color: #a0a0a0;
    border: 1px solid rgba(160, 160, 160, 0.3);
}

.source-badge-panel.source-cisa {
    background: rgba(140, 140, 140, 0.2);
    color: #b4b4b4;
    border: 1px solid rgba(180, 180, 180, 0.3);
}

.source-badge-panel.source-nvd {
    background: rgba(160, 160, 160, 0.2);
    color: #c8c8c8;
    border: 1px solid rgba(200, 200, 200, 0.3);
}

/* Metadata Section */
.metadata-section {
    border-top: 2px solid var(--border-color);
    padding-top: var(--spacing-xl);
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.metadata-label {
    font-size: 0.525rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.metadata-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Panel Footer */
.detail-panel-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    flex-shrink: 0;
}

.panel-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

.panel-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.panel-action-btn.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.panel-action-btn.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: var(--shadow-lg);
}

.panel-action-btn.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.panel-action-btn.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-panel {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .detail-panel {
        width: 100%;
        max-width: 100%;
    }

    .panel-header-content {
        flex-direction: column;
    }

    .panel-severity-badge {
        align-self: flex-start;
    }

    .cvss-panel-metrics {
        grid-template-columns: 1fr;
    }

    .product-info-grid {
        grid-template-columns: 1fr;
    }

    .status-badges-grid {
        grid-template-columns: 1fr;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .panel-actions {
        flex-direction: column-reverse;
    }

    .panel-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for panel entrance */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Smooth body transition when panel opens */
body.panel-open {
    overflow: hidden;
}

/* Ensure panel is above everything else */
.detail-panel,
.detail-panel-overlay {
    will-change: transform, opacity;
}

/* Enhanced Card Hover for Clickable Cards */
.enhanced-cve-card[hx-get] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-cve-card[hx-get]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.enhanced-cve-card[hx-get]:active {
    transform: translateY(-2px) scale(1.01);
}

/* Prevent button clicks from triggering card click */
.enhanced-cve-card .action-btn {
    position: relative;
    z-index: 10;
}

/* Copy Button Styles */
.cve-id-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.copy-btn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 15;
    position: relative;
}

.enhanced-cve-card:hover .copy-btn {
    opacity: 1;
    visibility: visible;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn-panel {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    margin-left: var(--spacing-sm);
    transition: all 0.2s ease;
    opacity: 0.7;
}

.copy-btn-panel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    opacity: 1;
    transform: scale(1.1);
}

.copy-btn-panel:active {
    transform: scale(0.95);
}

.copy-icon {
    transition: all 0.2s ease;
}

.copy-btn:hover .copy-icon,
.copy-btn-panel:hover .copy-icon {
    color: var(--accent-primary);
}

/* Success animation */
.copy-btn.copy-success,
.copy-btn-panel.copy-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    transform: scale(1.2);
}

.copy-success .copy-icon {
    color: #22c55e;
    animation: checkmark-pulse 0.3s ease-out;
}

@keyframes checkmark-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Accordion Components for Summary and Details */
.content-accordion {
    margin-top: var(--spacing-sm);
}

.accordion-toggle {
    cursor: pointer;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.accordion-toggle::-webkit-details-marker {
    display: none;
}

.accordion-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(2px);
}

.accordion-toggle::after {
    content: "▼";
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

details[open] .accordion-toggle::after {
    transform: rotate(180deg);
}

.accordion-content {
    margin-top: var(--spacing-md);
    animation: slideDown 0.3s ease-out;
}

.accordion-content p {
    margin: 0;
}

.summary-preview,
.details-preview {
    margin-bottom: 0;
}

.summary-full,
.details-full {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-preview,
.details-preview {
    margin-bottom: 0;
}

/* Loading state for panel */
.htmx-request.detail-panel-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transition for body when panel opens */
@media (min-width: 1024px) {
    body:has(.detail-panel.active) .main-content {
        transform: translateX(-50px);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* ========================================
   Beautiful Vulnerabilities Header
   ======================================== */

.vulnerabilities-header {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    max-width: 2400px; /* 5 cards * 480px */
    margin-left: auto;
    margin-right: auto;
}

.header-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 1;
}

.header-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.header-icon {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-content {
    flex: 1;
}

.vulnerabilities-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    letter-spacing: -0.01em;
}

.vulnerabilities-subtitle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.65625rem;
    margin: 0;
    flex-wrap: wrap;
}

.subtitle-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    color: #22c55e;
    font-size: 0.56875rem;
    font-weight: 600;
    margin-left: var(--spacing-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.header-stats {
    display: flex;
    gap: var(--spacing-md);
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.525rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Responsive Header */
@media (max-width: 1024px) {
    .vulnerabilities-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-stats {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .vulnerabilities-header {
        padding: var(--spacing-lg);
    }

    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .header-icon-wrapper {
        padding: var(--spacing-sm);
    }

    .header-icon {
        width: 32px;
        height: 32px;
    }

    .vulnerabilities-title {
        font-size: 1.05rem;
    }

    .vulnerabilities-subtitle {
        font-size: 0.875rem;
    }

    .header-stats {
        flex-direction: column;
        width: 100%;
    }

    .stat-badge {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .stat-value {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .live-indicator {
        margin-left: 0;
        margin-top: var(--spacing-xs);
    }

    .vulnerabilities-subtitle {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   Export Feedback Toast
   ======================================== */

.export-feedback {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #505050 0%, #3a3a3a 100%);
    color: #e0e0e0;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    font-size: 0.65625rem;
    z-index: 10002;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.export-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.export-feedback svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .export-feedback {
        bottom: 20px;
        right: 20px;
        left: 20px;
        justify-content: center;
    }
}

/* ========================================
   Fullscreen Page Loading Screen
   Z-Index: 10005 (above everything)
   ======================================== */

/* Page Loading Overlay */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-loading-overlay.active {
    display: flex;
    opacity: 1;
}

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

/* ========================================
   CVSS Details Modal
   Z-Index: 10003 (above detail panel)
   ======================================== */

/* Modal Overlay */
.cvss-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cvss-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* CVSS Modal */
.cvss-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    z-index: 10004;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cvss-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.cvss-modal-header {
    background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.1) 0%,
    var(--bg-tertiary) 50%,
    var(--bg-card) 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 1;
}

.modal-icon-wrapper {
    padding: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.modal-icon {
    color: #6366f1;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.4));
}

.modal-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: var(--spacing-xs) 0 0 0;
    font-family: 'Courier New', monospace;
}

.modal-close-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
    transform: rotate(90deg);
}

/* Modal Body */
.cvss-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-xl);
}

.cvss-modal-body::-webkit-scrollbar {
    width: 8px;
}

.cvss-modal-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.cvss-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.cvss-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* CVSS Sections */
.cvss-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--border-color);
}

.cvss-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-lg) 0;
}

.section-heading .icon {
    color: var(--accent-primary);
}

/* Score Display */
.cvss-score-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.score-critical {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4), inset 0 0 20px rgba(220, 38, 38, 0.1);
}

.score-critical::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    animation: pulse-critical 3s ease-in-out infinite;
}

.score-high {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(251, 146, 60, 0.1) 100%);
    border-color: #f97316;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4), inset 0 0 20px rgba(249, 115, 22, 0.1);
}

.score-medium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.1);
}

.score-low {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-color: #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.score-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), inset 0 0 20px rgba(59, 130, 246, 0.1);
}

@keyframes pulse-critical {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.score-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.score-critical .score-number {
    color: #ffffff;
}

.score-high .score-number {
    color: #fb923c;
}

.score-medium .score-number {
    color: #fbbf24;
}

.score-low .score-number {
    color: #34d399;
}

.score-info .score-number {
    color: #60a5fa;
}

.score-label {
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--spacing-xs);
}

.score-critical .score-label {
    color: #ffffff;
}

.score-high .score-label {
    color: #c8c8c8;
}

.score-medium .score-label {
    color: #a0a0a0;
}

.score-low .score-label {
    color: #787878;
}

.score-info .score-label {
    color: #b0b0b0;
}

.score-info h3 {
    color: var(--text-primary);
    font-size: 0.875rem;
    margin: 0 0 var(--spacing-sm) 0;
}

.score-info p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Vector Display */
.vector-display {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vector-display code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.65625rem;
    color: #60a5fa;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    word-break: break-all;
    line-height: 1.8;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.metric-card:hover::before {
    opacity: 0.08;
}

.metric-card.metric-high {
    border-left-color: #ef4444;
    border-left-width: 5px;
}

.metric-card.metric-high::before {
    background: linear-gradient(135deg, #ef4444 0%, transparent 100%);
}

.metric-card.metric-medium {
    border-left-color: #f59e0b;
    border-left-width: 5px;
}

.metric-card.metric-medium::before {
    background: linear-gradient(135deg, #f59e0b 0%, transparent 100%);
}

.metric-card.metric-low {
    border-left-color: #10b981;
    border-left-width: 5px;
}

.metric-card.metric-low::before {
    background: linear-gradient(135deg, #10b981 0%, transparent 100%);
}

.metric-card.metric-none {
    border-left-color: #6b7280;
    border-left-width: 5px;
}

.metric-card.metric-none::before {
    background: linear-gradient(135deg, #6b7280 0%, transparent 100%);
}

.metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.metric-name-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-abbr {
    font-size: 0.7875rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.metric-category {
    font-size: 0.48125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    border: 2px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.metric-badge-high {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.metric-badge-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.metric-badge-low {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.metric-badge-none {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border-color: #6b7280;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.metric-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.metric-full-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Impact Bar */
.metric-impact-bar {
    margin-top: var(--spacing-sm);
}

.impact-bar-label {
    font-size: 0.525rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.impact-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-sm);
}

.impact-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.impact-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.impact-bar-fill.impact-high {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.impact-bar-fill.impact-medium {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.impact-bar-fill.impact-low {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

.impact-bar-text {
    font-size: 0.56875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* CVSS Info Box */
.cvss-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.cvss-info-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--spacing-lg) 0;
}

.cvss-info-box h4 {
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-md) 0;
}

.range-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.range-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    border: 2px solid;
}

.range-critical {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.range-high {
    background: rgba(200, 200, 200, 0.1);
    border-color: #c8c8c8;
}

.range-medium {
    background: rgba(160, 160, 160, 0.1);
    border-color: #a0a0a0;
}

.range-low {
    background: rgba(120, 120, 120, 0.1);
    border-color: #787878;
}

.range-none {
    background: rgba(100, 100, 100, 0.1);
    border-color: #646464;
}

.range-value {
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.range-critical .range-value {
    color: #ffffff;
}

.range-high .range-value {
    color: #c8c8c8;
}

.range-medium .range-value {
    color: #a0a0a0;
}

.range-low .range-value {
    color: #787878;
}

.range-none .range-value {
    color: #646464;
}

.range-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.range-critical .range-label {
    color: #ffffff;
}

.range-high .range-label {
    color: #c8c8c8;
}

.range-medium .range-label {
    color: #a0a0a0;
}

.range-low .range-label {
    color: #787878;
}

.range-none .range-label {
    color: #646464;
}

/* No CVSS Data */
.no-cvss-data {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-secondary);
}

.no-cvss-data svg {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.no-cvss-data h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.no-cvss-data p {
    margin: 0;
}

/* Modal Footer */
.cvss-modal-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    flex-shrink: 0;
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.modal-action-btn.btn-primary {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.modal-action-btn.btn-primary:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-lg);
}

.modal-action-btn.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.modal-action-btn.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .cvss-modal {
        width: 95%;
        max-height: 95vh;
    }

    .cvss-score-display {
        flex-direction: column;
        text-align: center;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .modal-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cvss-modal-footer {
        flex-direction: column-reverse;
    }

    .modal-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =================================================================
   Alert System Styles
   ================================================================= */

/* Alerts Overview */
.alerts-overview {
    padding: var(--spacing-xl) 0;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alerts-header-content {
    flex: 1;
}

.alerts-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.alerts-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.alerts-header-actions {
    display: flex;
    gap: var(--spacing-md);
}

/* Alert Lists Grid */
.alert-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

/* Alert List Card */
.alert-list-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.alert-list-card:hover {
    border-color: var(--primary-500);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.alert-list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.alert-list-card-title-section {
    flex: 1;
}

.alert-list-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.alert-list-card-meta {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.alert-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.alert-list-card-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    line-height: 1.6;
}

.alert-list-card-content {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.empty-alerts {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.alert-list-card-footer {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.alert-list-card-footer-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.alert-list-card-footer-actions .btn {
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
}

/* Alert Item */
.alert-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-500);
    transform: translateX(4px);
}

.alert-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-500);
    color: var(--primary-500);
}

.alert-item-content {
    flex: 1;
    min-width: 0;
}

.alert-item-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xs);
}

.alert-item-type {
    font-size: 0.525rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.alert-item-value {
    color: var(--text-primary);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

/* Terms Display Container */
.terms-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    width: 100%;
}

.term-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.operator-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.525rem;
    font-weight: 700;
    color: var(--accent-secondary);
    padding: 0.125rem 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.alert-item-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.525rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.alert-item-status {
    flex-shrink: 0;
}

.badge-success-sm,
.badge-secondary-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.525rem;
    border-radius: var(--radius-sm);
}

.badge-success-sm {
    background: rgba(192, 192, 192, 0.1);
    color: var(--accent-success);
}

.badge-secondary-sm {
    background: rgba(138, 138, 138, 0.1);
    color: var(--accent-warning);
}

.alert-item-actions {
    display: flex;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

/* Toggle Expand Button */
.toggle-expand {
    transition: transform 0.3s ease;
}

.toggle-expand.expanded {
    transform: rotate(180deg);
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.form-header {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.form-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.required {
    color: #e74c3c;
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.form-select {
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--spacing-md);
    font-weight: 500;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-select:hover {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.form-error {
    color: #e74c3c;
    font-size: 0.875rem;
}

/* Checkbox & Radio */
.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-checkbox,
.form-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label,
.radio-label {
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 400;
    user-select: none;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.radio-option:hover {
    border-color: var(--primary-500);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.radio-option input[type="radio"] {
    margin-top: 0.25rem;
}

.radio-option input[type="radio"]:checked + label {
    color: var(--accent-primary);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: 500;
}

.radio-label svg {
    flex-shrink: 0;
}

.radio-description {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 2.5rem;
}

/* Alert Type Sections */
.alert-type-section {
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Autocomplete */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.autocomplete-loading.htmx-request {
    display: block;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 4px;
}

.autocomplete-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

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

.autocomplete-item:hover {
    background: var(--bg-hover);
}

.autocomplete-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.autocomplete-item-name {
    color: var(--text-primary);
    font-weight: 500;
}

.autocomplete-item-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.autocomplete-no-results {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
}

/* Tabs */
.tabs-container {
    margin-bottom: var(--spacing-lg);
}

.tabs {
    display: flex;
    gap: var(--spacing-xs);
    border-bottom: 2px solid var(--border-color);
}

.tab {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content {
    display: none;
    padding-top: var(--spacing-lg);
}

.tab-content.active {
    display: block;
}

/* Visual Builder */
.visual-builder {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.terms-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.term-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.term-input {
    flex: 1;
}

.btn-remove-term {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-term:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* Delete Confirmation */
.delete-confirm-info {
    margin-bottom: var(--spacing-xl);
}

.info-card {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-card.warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

.info-icon {
    flex-shrink: 0;
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.info-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.info-content p:last-child {
    margin-bottom: 0;
}

.warning-text {
    color: #ef4444 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Django Admin Overrides */
/* Fix für schlecht lesbare Delete-Buttons im Admin */
.default[type="submit"],
input[type="submit"].default,
button.default,
.default button,
a.default {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.default[type="submit"]:hover,
input[type="submit"].default:hover,
button.default:hover,
.default button:hover,
a.default:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    color: white !important;
}

/* Spezifisch für Delete-Confirmation Dialog */
.deletelink,
.deletelink-box {
    background: #dc3545 !important;
    color: white !important;
}

.deletelink:hover,
.deletelink-box:hover {
    background: #c82333 !important;
    color: white !important;
}

/* Admin Action Buttons */
input[name="_delete"],
input[type="submit"][value*="delete"],
input[type="submit"][value*="Delete"],
input[type="submit"][value*="Löschen"] {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
}

input[name="_delete"]:hover,
input[type="submit"][value*="delete"]:hover,
input[type="submit"][value*="Delete"]:hover,
input[type="submit"][value*="Löschen"]:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    color: white !important;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .alert-lists-grid {
        grid-template-columns: 1fr;
    }

    .alerts-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-content {
        padding: var(--spacing-lg);
    }

    .alert-item {
        flex-wrap: wrap;
    }

    .radio-description {
        margin-left: 0;
    }
}

/* =================================================================
   Toast Notifications
   ================================================================= */
.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 350px !important;
    min-width: 280px !important;
    pointer-events: none !important;
    padding-right: 20px !important;
    margin: 0 !important;
}

.toast {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    position: relative !important;
    pointer-events: all !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    max-width: 320px !important;
    min-width: 260px !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    border-left: 4px solid #3b82f6 !important; /* Blue left border for visibility */
}

.toast.show {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.toast.removing {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
}

/* Toast slide animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Toast Types with better visibility */
.toast-success {
    border-left: 4px solid #10b981;
    background: var(--bg-elevated);
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
    background: var(--bg-elevated);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
    background: var(--bg-elevated);
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
    background: var(--bg-elevated);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Simple toast message (fallback) */
.toast:not(.toast-success):not(.toast-error):not(.toast-info):not(.toast-warning) {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Responsive Toast Styles */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        padding-right: 0;
    }

    .toast {
        max-width: none;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }

    .toast {
        padding: var(--spacing-md);
        font-size: 0.8rem;
    }
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* =================================================================
   Today's CVE Highlight - Elegant Price Tag Style
   ================================================================= */
.cve-today {
    position: relative;
}

/* Elegant "NEW" price tag in top right corner */
.cve-today .new-tag {
    position: absolute;
    top: 8px;
    right: -8px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    letter-spacing: 0.1em;
    z-index: 15;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    pointer-events: none;

    /* Price tag shape with notch */
    clip-path: polygon(
            8px 0%, /* top left with small cut */ 100% 0%, /* top right */ 100% 100%, /* bottom right */ 8px 100%, /* bottom left with small cut */ 0% 50% /* left notch point (triangle) */
    );

    /* 3D effect */
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pseudo-element for hole effect */
.new-tag::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Subtle animation on hover */
.cve-today:hover .new-tag {
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

/* =================================================================
   Modal Body Scroll Lock
   ================================================================= */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* Ensure modals can still scroll */
.modal-content {
    overflow-y: auto;
    max-height: 100vh;
}

/* Prevent scroll on touch devices */
@media (hover: none) and (pointer: coarse) {
    body.modal-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
}

/* =================================================================
   Hacker News Carousel
   ================================================================= */
.hacker-news-section {
    padding: 2rem 0 3rem 0; /* Weniger Padding für kompakteres Design */
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.hacker-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.hn-carousel-container {
    max-width: 1000px; /* Kompaktere Breite */
    margin: 0 auto;
    padding: 0 1rem;
}

.hn-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem; /* Weniger Abstand */
    gap: 1rem;
    flex-wrap: wrap;
}

.hn-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hn-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.hn-icon {
    color: white;
}

.hn-title {
    font-size: 1.75rem;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin: 0;
}

.hn-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hn-carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.hn-control-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hn-control-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--primary-500);
    color: var(--primary-500);
    transform: translateY(-2px);
}

.hn-control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hn-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hn-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
}

.hn-card {
    min-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem; /* Weniger Padding für kompaktere Höhe */
    transition: all 0.3s ease;
}

.hn-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.hn-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.hn-score-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: var(--fw-semibold);
    font-size: 0.875rem;
}

.hn-author {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hn-card-title {
    font-size: 1.125rem; /* Kleinere Schrift */
    font-weight: var(--fw-semibold);
    line-height: 1.3; /* Kompaktere Zeilenhöhe */
    margin-bottom: 1rem; /* Weniger Margin */
}

.hn-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hn-card-title a:hover {
    color: var(--primary-500);
}

.hn-card-footer {
    display: flex;
    gap: 0.75rem; /* Weniger Gap */
    flex-wrap: wrap;
    margin-top: 0.75rem; /* Weniger Margin */
}

.hn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hn-link-article {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    border: none;
}

.hn-link-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hn-link-hn {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.hn-link-hn:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.hn-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.hn-dot {
    width: 8px;
    height: 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hn-dot:hover {
    background: var(--text-muted);
}

.hn-dot.active {
    background: var(--primary-500);
    border-color: var(--primary-500);
    width: 24px;
    border-radius: 4px;
}

/* Story Counter */
.hn-story-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0 0.5rem; /* Weniger Padding */
    font-size: 0.875rem;
    color: var(--text-muted);
}

.current-story {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1rem;
}

.counter-divider {
    color: var(--border-color);
}

.total-stories {
    color: var(--text-muted);
}

/* Story Container */
.hn-story-container {
    position: relative;
    min-height: 140px; /* Weniger Höhe */
}

/* Small Loading Indicator */
.hn-loading-small {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease; /* Schnellerer Übergang */
    display: flex;
    gap: 0.25rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--primary-500);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hn-loading-small.htmx-request {
    opacity: 1;
}

/* Alternative HTMX Klassen */
.hn-loading-small[class*="htmx-request"],
.hn-loading-small.htmx-indicator.htmx-request {
    opacity: 1;
}

.hn-loading-text {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-right: 0.25rem;
    font-weight: 500;
}

.hn-loading-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: hn-dot-bounce 1.4s ease-in-out infinite both;
}

.hn-loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.hn-loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.hn-loading-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes hn-dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hn-carousel-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.hn-placeholder-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.5;
    color: var(--text-muted);
}

.hn-carousel-placeholder h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hn-carousel-placeholder p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hn-carousel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hn-title {
        font-size: 1.5rem;
    }

    .hn-card {
        padding: 1rem;
    }

    .hn-card-title {
        font-size: 1.125rem;
    }
}

/* =================================================================
   Blog Styles
   ================================================================= */
.blog-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: var(--fw-extrabold);
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: var(--fw-regular);
}

.blog-list-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date, .blog-author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary-500);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-500);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-read-more:hover {
    gap: 0.75rem;
    color: var(--primary-600);
}

.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.4;
}

.blog-empty-state h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.blog-empty-state p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Blog Detail Page */
.blog-detail-hero {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.blog-detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.blog-detail-container {
    max-width: 800px;
    margin: -80px auto 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 1;
}

.blog-detail-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.blog-back-link:hover {
    color: var(--primary-500);
}

.blog-detail-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-detail-date, .blog-detail-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-detail-author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: var(--fw-extrabold);
    line-height: 1.2;
    color: var(--text-primary);
}

.blog-detail-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.blog-detail-body p {
    margin-bottom: 1.5rem;
}

/* Markdown Headings */
.blog-detail-body h2 {
    font-size: 1.75rem;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.blog-detail-body h2:first-child {
    margin-top: 0;
}

.blog-detail-body h3 {
    font-size: 1.35rem;
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-detail-body h4 {
    font-size: 1.15rem;
    font-weight: var(--fw-semibold);
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Code Blocks */
.blog-detail-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    max-width: 100%;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.blog-detail-body pre code {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: inherit;
    color: var(--text-primary);
}

/* Inline Code */
.blog-detail-body code {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.4rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.85em;
    color: var(--accent-cyan);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Lists */
.blog-detail-body ul,
.blog-detail-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.blog-detail-body ul li,
.blog-detail-body ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.blog-detail-body ul {
    list-style-type: disc;
}

.blog-detail-body ol {
    list-style-type: decimal;
}

/* Links */
.blog-detail-body a {
    color: var(--primary-500);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.blog-detail-body a:hover {
    color: var(--primary-600);
    border-bottom-color: var(--primary-500);
}

/* Blockquotes */
.blog-detail-body blockquote {
    border-left: 4px solid var(--primary-500);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Tables */
.blog-detail-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    display: block;
}

.blog-detail-body table thead {
    background: var(--bg-secondary);
}

.blog-detail-body table th,
.blog-detail-body table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.blog-detail-body table th {
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.blog-detail-body table td {
    color: var(--text-secondary);
}

/* Horizontal Rule */
.blog-detail-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Strong and Emphasis */
.blog-detail-body strong {
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.blog-detail-body em {
    font-style: italic;
}

.blog-detail-sources {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.blog-sources-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-sources-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-related-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.blog-related-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.blog-related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-related-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.blog-related-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.blog-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-related-card:hover .blog-related-image img {
    transform: scale(1.05);
}

.blog-related-content {
    padding: 1rem;
}

.blog-related-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-related-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-related-card-title a:hover {
    color: var(--primary-500);
}

.blog-related-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-detail-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 1rem;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-detail-hero {
        height: 250px;
    }

    .blog-detail-container {
        margin-top: -60px;
        padding: 0 1rem 2rem;
    }

    .blog-detail-title {
        font-size: 1.75rem;
    }

    .blog-detail-body,
    .blog-detail-header,
    .blog-detail-sources {
        padding: 1.5rem;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   Vulnerability Lazy Loading - Legacy (deprecated)
   ================================================================= */
.vulnerability-lazy-load-placeholder {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    overflow: hidden;
    min-height: 500px;
}

/* Skeleton Background Grid */
.lazy-load-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    opacity: 0.3;
}

.lazy-load-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    height: 100%;
}

.lazy-load-card {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.lazy-load-card.skeleton {
    animation: skeleton-pulse 2s ease-in-out infinite;
}

.lazy-load-card.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: skeleton-shimmer 2s infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.1;
    }
}

@keyframes skeleton-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Overlay Content */
.lazy-load-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lazy-load-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.lazy-load-icon {
    margin-bottom: 2rem;
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.lazy-load-text h3 {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lazy-load-stats {
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--fw-extrabold);
    color: var(--primary-500);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: var(--fw-medium);
}

.load-vulnerabilities-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: var(--fw-semibold);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    margin-bottom: 1.5rem;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.load-vulnerabilities-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.load-vulnerabilities-btn:hover .btn-glow {
    opacity: 1;
}

.load-vulnerabilities-btn:active {
    transform: translateY(-1px);
}

.lazy-load-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.lazy-load-hint svg {
    color: var(--accent-success);
}

@media (max-width: 768px) {
    .lazy-load-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .lazy-load-content {
        padding: 1.5rem;
    }

    .lazy-load-text h3 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .icon-container {
        width: 64px;
        height: 64px;
    }

    .load-vulnerabilities-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* =================================================================
   Interactive Vulnerability Preview - Spectacular Animation
   ================================================================= */
.vulnerability-preview-section {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    overflow: hidden;
    min-height: 600px;
}

/* Animated Background */
.preview-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.animated-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
    animation: gradient-shift 15s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    33% {
        transform: translateX(-20px) translateY(-10px) scale(1.1);
    }
    66% {
        transform: translateX(20px) translateY(10px) scale(0.9);
    }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: particle-float 20s linear infinite;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle-2 {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.particle-3 {
    top: 80%;
    left: 20%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.particle-4 {
    top: 30%;
    left: 70%;
    animation-delay: 15s;
    animation-duration: 28s;
}

.particle-5 {
    top: 70%;
    left: 60%;
    animation-delay: 20s;
    animation-duration: 26s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Preview Cards */
.preview-cards-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0.4;
}

.preview-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    width: 200px;
    transition: all 0.4s ease;
    animation: preview-card-float 8s ease-in-out infinite;
}

.preview-card:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.preview-card-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.preview-card-2 {
    top: 25%;
    right: 15%;
    animation-delay: 2s;
}

.preview-card-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.preview-card-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes preview-card-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.preview-cve-id {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.preview-severity {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-align: center;
    min-width: 40px;
}

.preview-severity.critical {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.preview-severity.high {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.preview-severity.medium {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.preview-severity.low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.preview-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Interactive Overlay */
.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s ease;
}

.vulnerability-preview-section:hover .preview-overlay {
    background: rgba(10, 10, 10, 0.85);
}

.vulnerability-preview-section:hover .preview-cards-container {
    opacity: 0.6;
}

.preview-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem;
}

.preview-icon {
    margin-bottom: 2rem;
}

.preview-icon .icon-container {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.4);
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 48px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 16px 64px rgba(99, 102, 241, 0.6);
    }
}

.preview-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.preview-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.preview-stats {
    margin-bottom: 2.5rem;
}

.preview-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.preview-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-500);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    line-height: 1;
}

.preview-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.load-interactive-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.4);
    margin-bottom: 1.5rem;
}

.load-interactive-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 64px rgba(99, 102, 241, 0.5);
}

.load-interactive-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.btn-ripple-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s ease;
}

.load-interactive-btn:hover .btn-ripple-effect {
    opacity: 1;
    transform: scale(1);
}

.preview-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.preview-hint svg {
    color: var(--accent-success);
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preview-content {
        padding: 2rem 1.5rem;
    }

    .preview-text h2 {
        font-size: 2rem;
    }

    .preview-stat-number {
        font-size: 2.5rem;
    }

    .preview-icon .icon-container {
        width: 80px;
        height: 80px;
    }

    .load-interactive-btn {
        width: 100%;
        padding: 1rem 2rem;
    }

    .preview-card {
        width: 150px;
        padding: 0.75rem;
    }

    .preview-cve-id {
        font-size: 0.65rem;
    }

    .preview-title {
        font-size: 0.65rem;
    }
}

/* =================================================================
   Parallax Video Background Styles
   ================================================================= */

/* Fixed Parallax Video Background */
.parallax-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.parallax-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: transform 0.1s ease-out;
}

.video-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.6) 0%,
            rgba(10, 10, 10, 0.75) 50%,
            rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 1;
}

/* Parallax Content Wrapper */
.parallax-content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: #0a0a0a !important;
}

.parallax-sections {
    position: relative;
    background: #0a0a0a !important;
}

/* =================================================================
   Glassmorphism Hero Section
   ================================================================= */

.glass-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
}

.glass-hero-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7),
    0 0 80px rgba(99, 102, 241, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle,
            rgba(99, 102, 241, 0.08) 0%,
            transparent 70%
    );
    animation: rotate-gradient 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hero Logo Badge */
.hero-logo-badge {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(
            circle,
            rgba(99, 102, 241, 0.4) 0%,
            transparent 70%
    );
    filter: blur(30px);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.logo-icon-large {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    position: relative;
    z-index: 1;
}

.hero-brand-name {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Hero Content */
.hero-glass-content {
    position: relative;
    z-index: 1;
}

.hero-headline {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.headline-gradient {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.4));
}

.headline-subtitle {
    font-size: 1.75rem;
    font-weight: 300;
    color: #d1d5db;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #d1d5db;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Stats Glass (Dark Mode Only) */
.hero-stats-glass {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

.stat-glass-item {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-glass-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-strong);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number-large {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
}

.stat-label-glass {
    font-size: 0.875rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Actions Glass */
.hero-actions-glass {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-glass-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4),
    0 0 0 0 rgba(99, 102, 241, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-glass-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glass-primary:hover::before {
    left: 100%;
}

.btn-glass-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5),
    0 0 0 8px rgba(99, 102, 241, 0.1);
}

.btn-glass-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.btn-glass-secondary:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

/* Scroll Hint */
.scroll-hint-glass {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.scroll-hint-text {
    font-size: 0.875rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.scroll-hint-arrow {
    animation: bounce-arrow 2s ease-in-out infinite;
}

.scroll-hint-arrow svg {
    color: #d1d5db;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* AOS Animation Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .glass-hero-card {
        padding: 2.5rem;
    }

    .hero-brand-name {
        font-size: 2.5rem;
    }

    .headline-gradient {
        font-size: 2rem;
    }

    .headline-subtitle {
        font-size: 1.5rem;
    }

    .hero-stats-glass {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .glass-hero-card {
        padding: 2rem;
        border-radius: 20px;
    }

    .logo-icon-large {
        font-size: 3rem;
    }

    .hero-brand-name {
        font-size: 2rem;
    }

    .headline-gradient {
        font-size: 1.75rem;
    }

    .headline-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats-glass {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-number-large {
        font-size: 2rem;
    }

    .hero-actions-glass {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-glass-primary,
    .btn-glass-secondary {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

@media (max-width: 480px) {
    .glass-hero-card {
        padding: 1.5rem;
    }

    .hero-brand-name {
        font-size: 1.75rem;
    }

    .headline-gradient {
        font-size: 1.5rem;
    }

    .headline-subtitle {
        font-size: 1.125rem;
    }
}

/* Fix for iOS Safari video playback */
@media (max-width: 768px) {
    .parallax-video {
        min-width: auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/* =================================================================
   MOBILE MENU TOGGLE
   ================================================================= */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 5px;
    padding: 0;
    position: relative;
    z-index: 1030;
    overflow: hidden;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: var(--primary-500);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.mobile-menu-toggle:hover::before {
    opacity: 1;
}

.mobile-menu-toggle.active {
    background: rgba(20, 20, 20, 0.95);
    border-color: var(--primary-500);
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary-400);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--primary-400);
}

/* =================================================================
   MOBILE NAVIGATION - Modern Glassmorphism Design
   ================================================================= */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Menu Backdrop - Must be BELOW the menu */
    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px) saturate(180%);
        -webkit-backdrop-filter: blur(8px) saturate(180%);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1010;
        pointer-events: none;
    }

    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Mobile Navigation Menu - Must be ABOVE the backdrop */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(15, 15, 20, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5),
                    -8px 0 48px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1020;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Mobile Menu Header */
    .nav-menu::before {
        content: '';
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(
            180deg,
            rgba(15, 15, 20, 0.98) 0%,
            rgba(15, 15, 20, 0.95) 70%,
            transparent 100%
        );
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1;
        pointer-events: none;
    }

    /* Menu Items */
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
        overflow: hidden;
    }

    .nav-menu li:first-child {
        margin-top: 80px;
    }

    /* Navigation Links */
    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.75rem;
        font-size: 1rem;
        font-weight: 500;
        width: 100%;
        text-align: left;
        color: var(--text-secondary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 1;
    }

    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--primary-500), var(--accent-purple));
        transform: scaleY(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, 
            rgba(99, 102, 241, 0.1) 0%,
            transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        color: var(--text-primary);
        background: rgba(99, 102, 241, 0.08);
        padding-left: 2rem;
    }

    .nav-menu .nav-link:hover::before {
        transform: scaleY(1);
    }

    .nav-menu .nav-link:hover::after {
        opacity: 1;
    }

    .nav-menu .nav-link.active {
        color: var(--primary-400);
        background: rgba(99, 102, 241, 0.12);
        padding-left: 2rem;
        font-weight: 600;
    }

    .nav-menu .nav-link.active::before {
        transform: scaleY(1);
    }

    .nav-menu .nav-link.active::after {
        opacity: 1;
    }

    /* Hide desktop nav-actions on mobile (they should be moved into menu if needed) */
    .nav-actions {
        display: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav-menu {
        width: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
        max-width: 320px;
    }

    .nav-menu .nav-link {
        padding: 1.125rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* =================================================================
   ENHANCED HOVER EFFECTS & MICRO-INTERACTIONS
   ================================================================= */

/* Button Ripple Effect */
.btn, button, .action-btn, .nav-link {
    position: relative;
    overflow: hidden;
}

.btn::before, button::before, .action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before, button:active::before, .action-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Card Hover */
.enhanced-cve-card,
.pricing-card,
.feature-card-enhanced,
.blog-card {
    transition: all var(--transition-base);
}

.enhanced-cve-card:hover,
.pricing-card:hover,
.feature-card-enhanced:hover,
.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Smooth Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
    z-index: var(--z-tooltip);
    transition: width 0.1s ease;
}

/* Focus Visible (Accessibility) */
*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-500);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    z-index: var(--z-tooltip);
    transition: top var(--transition-base);
}

.skip-to-content:focus {
    top: 20px;
}

/* =================================================================
   STICKY HEADER
   ================================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.9);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(10, 10, 10, 0.9);
}

/* =================================================================
   SCROLL TO TOP BUTTON (FAB)
   ================================================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-strong);
}

.scroll-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* =================================================================
   LOADING STATES & SKELETON IMPROVEMENTS
   ================================================================= */

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background: linear-gradient(
            90deg,
            var(--bg-secondary) 0%,
            var(--bg-hover) 50%,
            var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* =================================================================
   IMPROVED TYPOGRAPHY WITH WEB FONTS
   ================================================================= */

/* Web Font will be loaded in base.html via Google Fonts */
/* Font smoothing already defined in main body style above */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

code, pre, .cve-id {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

/* =================================================================
   BETTER TOOLTIPS
   ================================================================= */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-tooltip);
    box-shadow: var(--shadow-lg);
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* =================================================================
   BREADCRUMBS
   ================================================================= */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-500);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* =================================================================
   TRANSITIONS DISABLED FOR REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =================================================================
   Content Loading Animations
   ================================================================= */

/* Fade-in animation for content loading transitions */
.fade-in {
    animation: fadeIn 400ms ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Alternative fade-in with longer duration */
.fade-in-slow {
    animation: fadeIn 500ms ease-in-out;
}

/* Alternative fade-in with shorter duration */
.fade-in-fast {
    animation: fadeIn 300ms ease-in-out;
}

/* Fade-in with slight upward movement for enhanced effect */
.fade-in-up {
    animation: fadeInUp 400ms ease-in-out;
}

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

/* Content container transition support */
.content-transition {
    transition: opacity 400ms ease-in-out;
}

/* Loading state - hidden content */
.content-loading {
    opacity: 0;
}

/* Loaded state - visible content */
.content-loaded {
    opacity: 1;
    transition: opacity 400ms ease-in-out;
}


/* =================================================================
   CSS Grid Fallbacks with @supports
   ================================================================= */

/* Flexbox fallback for browsers without CSS Grid support */
.features-grid,
.stats-grid,
.features-grid-modern,
.features-grid-enhanced {
    /* Fallback: Use flexbox for older browsers */
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.features-grid > *,
.stats-grid > *,
.features-grid-modern > *,
.features-grid-enhanced > * {
    /* Fallback: Flex basis for consistent sizing */
    flex: 1 1 280px;
    min-width: 280px;
}

/* Modern browsers with CSS Grid support */
@supports (display: grid) {
    .features-grid,
    .stats-grid,
    .features-grid-modern,
    .features-grid-enhanced {
        display: grid;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .features-grid-modern,
    .features-grid-enhanced {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .features-grid > *,
    .stats-grid > *,
    .features-grid-modern > *,
    .features-grid-enhanced > * {
        flex: initial;
        min-width: initial;
    }
}

/* Hero stats glass grid fallback */
.hero-stats-glass {
    /* Fallback: Use flexbox */
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-stats-glass > * {
    /* Fallback: Equal width items */
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 200px;
}

@supports (display: grid) {
    .hero-stats-glass {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-stats-glass > * {
        flex: initial;
        min-width: initial;
    }
}

/* CVE metadata grid fallback */
.cve-metadata {
    /* Fallback: Use flexbox */
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.cve-metadata > * {
    /* Fallback: Flexible sizing */
    flex: 1 1 200px;
}

@supports (display: grid) {
    .cve-metadata {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cve-metadata > * {
        flex: initial;
    }
}

/* =================================================================
   Backdrop Filter Fallbacks
   ================================================================= */

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .header,
    .user-dropdown,
    .auth-dropdown-menu,
    .mobile-menu-backdrop,
    .floating-stat-card,
    .feature-card-modern,
    .feature-card-enhanced,
    .carousel-btn,
    .glass-hero-card,
    .mobile-menu-toggle,
    .nav-menu,
    .btn-glass-secondary,
    .preview-overlay {
        /* Increase background opacity for better visibility */
        background: rgba(10, 10, 10, 0.95) !important;
    }
    
    .vulnerabilities-header,
    .stat-badge,
    .search-box-wrapper,
    .severity-filter-select,
    .sort-filter-select,
    .items-per-page-select,
    .live-indicator,
    .jumbotron-card {
        /* Slightly more opaque backgrounds */
        background: rgba(255, 255, 255, 0.08) !important;
    }
}

/* =================================================================
   CSS Custom Properties Fallbacks
   ================================================================= */

/* Fallback for browsers without CSS custom property support */
@supports not (color: var(--primary-500)) {
    body {
        background: #0a0a0a;
        color: #ffffff;
    }
    
    .header {
        background: rgba(10, 10, 10, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #4f46e5, #4338ca);
        color: white;
    }
    
    .nav-link {
        color: #a0a0a0;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #6366f1;
    }
    
    .card {
        background: #1c1c1c;
        border: 1px solid #2a2a2a;
        border-radius: var(--radius-lg);
    }
    
    .text-primary {
        color: #ffffff;
    }
    
    .text-secondary {
        color: #a0a0a0;
    }
    
    .text-muted {
        color: #707070;
    }
}

/* =================================================================
   Browser-Specific Fixes
   ================================================================= */

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    /* Fix for Safari's handling of backdrop-filter with border-radius */
    .glass-hero-card,
    .feature-card-enhanced,
    .jumbotron-card {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Fix for Safari's gradient text rendering */
    .headline-gradient,
    .vulnerabilities-title,
    .stat-value,
    .jumbotron-value {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    /* Fix for Firefox's handling of backdrop-filter */
    .header,
    .user-dropdown,
    .auth-dropdown-menu {
        background: rgba(10, 10, 10, 0.92);
    }
}

/* Edge-specific fixes */
@supports (-ms-ime-align: auto) {
    /* Fix for older Edge versions */
    .features-grid,
    .stats-grid {
        display: -ms-flexbox;
        -ms-flex-wrap: wrap;
    }
}

/* =================================================================
   Print Styles
   ================================================================= */

@media print {
    /* Hide non-essential elements when printing */
    .header,
    .footer,
    .nav-menu,
    .mobile-menu-toggle,
    .scroll-to-top,
    .btn,
    button {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        background: white;
        color: black;
    }
    
    .card,
    .cve-card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    /* Remove shadows and effects for print */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* =================================================================
   Accessibility Improvements
   ================================================================= */

/* Focus-Visible Styles for Keyboard Navigation */
/* These styles provide clear visual feedback for keyboard users */

/* Default focus-visible style for all interactive elements */
*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Navigation Links */
.nav-link:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 4px;
    background: rgba(99, 102, 241, 0.15);
}

/* Buttons */
.btn:focus-visible {
    outline: 3px solid var(--primary-500);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:focus-visible {
    outline-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3), 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-success:focus-visible {
    outline-color: var(--accent-success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3), 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-outline:focus-visible {
    outline-color: var(--primary-500);
    background: rgba(99, 102, 241, 0.15);
}

.btn-secondary:focus-visible {
    outline-color: var(--primary-500);
    border-color: var(--primary-500);
}

/* Hero Buttons */
.btn-hero-primary:focus-visible {
    outline: 3px solid var(--primary-400);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3), 0 12px 40px rgba(99, 102, 241, 0.4);
}

/* Links */
a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Dropdown Links */
.dropdown-link:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: -2px;
    background: rgba(99, 102, 241, 0.15);
}

.auth-dropdown-item:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: -2px;
    background: rgba(99, 102, 241, 0.15);
}

/* User Menu */
.user-menu:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    background: rgba(99, 102, 241, 0.1);
}

/* Auth Dropdown Toggle */
.auth-dropdown-toggle:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 4px;
}

/* Cards */
.card:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-color: var(--primary-500);
}

.feature-card:focus-visible,
.feature-card-modern:focus-visible,
.feature-card-enhanced:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* CVE Cards (will be styled in vulnerabilities_list.css) */
.cve-card:focus-visible {
    outline: 3px solid var(--primary-500);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.2);
}

/* Carousel Controls */
.carousel-btn:focus-visible,
.hn-control-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

/* Carousel Indicators */
.indicator:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

/* Form Inputs (general) */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Table Rows */
.data-table tr:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: -2px;
    background: rgba(99, 102, 241, 0.1);
}

/* Badges (when interactive) */
.badge:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* News Links */
.news-link:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Footer Links */
.footer-section ul li a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Logo Link */
.logo a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 4px;
}

/* =================================================================
   Reduced Motion Support
   ================================================================= */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Remove floating animations */
    .floating-stat-1,
    .floating-stat-2,
    .floating-stat-3,
    .floating-stat-4 {
        animation: none !important;
    }

    /* Remove icon float animation */
    .features-header-icon {
        animation: none !important;
    }

    /* Remove typewriter cursor blink */
    .typewriter-cursor {
        animation: none !important;
        opacity: 1;
    }

    /* Remove particles animation */
    .hero-particles {
        animation: none !important;
    }

    /* Remove shimmer/shine animations */
    .skeleton-loader,
    .shimmer,
    .shine {
        animation: none !important;
    }

    /* Remove hover transforms */
    .btn:hover,
    .card:hover,
    .feature-card:hover,
    .feature-card-modern:hover,
    .feature-card-enhanced:hover,
    .cve-card:hover {
        transform: none !important;
    }

    /* Remove carousel button transforms */
    .carousel-btn:hover,
    .hn-control-btn:hover {
        transform: none !important;
    }

    /* Remove indicator transforms */
    .indicator:hover,
    .indicator.active {
        transform: none !important;
    }

    /* Remove logo hover transform */
    .logo a:hover {
        transform: none !important;
    }

    /* Remove feature icon transforms */
    .feature-icon-modern:hover,
    .feature-icon-enhanced:hover {
        transform: none !important;
    }

    /* Remove button hover transforms */
    .btn-hero-primary:hover {
        transform: none !important;
    }

    /* Remove stat card hover transforms */
    .floating-stat-card:hover {
        transform: none !important;
    }

    /* Remove user avatar transforms */
    .user-menu:hover .user-avatar {
        transform: none !important;
    }

    /* Keep essential focus indicators but remove transforms */
    *:focus-visible {
        transition: none !important;
    }
}

/* =================================================================
   High Contrast Mode Support
   ================================================================= */

/* Enhance visibility in high contrast mode */
@media (prefers-contrast: high) {
    /* Increase border visibility */
    .card,
    .feature-card,
    .feature-card-modern,
    .feature-card-enhanced {
        border-width: 2px;
    }

    /* Increase outline thickness for focus states */
    *:focus-visible {
        outline-width: 3px;
    }

    /* Increase text contrast */
    body {
        color: #ffffff;
    }

    /* Ensure buttons have clear borders */
    .btn {
        border-width: 2px;
    }
}

/* =================================================================
   Screen Reader Only Content
   ================================================================= */

/* Utility class for screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Allow screen reader only content to be focusable */
.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* =================================================================
   Skip to Main Content Link
   ================================================================= */

/* Skip link for keyboard navigation */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-500);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    z-index: 9999;
    font-weight: var(--fw-semibold);
    transition: top var(--transition-base);
}

.skip-to-main:focus {
    top: 0;
    outline: 3px solid var(--primary-400);
    outline-offset: 2px;
}
