/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 72px;
    background: #ffffff;
    /* prevent blue-gray body color bleeding at section edges */
}

/* Theme toggle in navbar */
.nav-theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.nav-theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    z-index: 1000;

    padding: 1rem 0;

    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: #f5f3ff;
    border-bottom: 1px solid #e9d5ff;
}

[data-theme="light"] .nav-menu a {
    color: #1f2937;
}

[data-theme="light"] .nav-menu a:hover {
    color: #6d28d9;
}

[data-theme="light"] .nav-theme-toggle {
    border-color: #e9d5ff;
    color: #1f2937;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* FIX: do not wrap into multiple rows */
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.navbar .nav-brand,
.navbar .nav-menu,
.navbar .nav-theme-toggle,
.navbar .nav-toggle,
.navbar .nav-auth {
    transform: none;
}

.nav-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;

    /* FIX: always one line */
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
    line-height: 1;
}

.nav-brand * {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand h1 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    color: #FFA500;
    margin: 0;
    padding: 0;
    display: inline;
    vertical-align: baseline;
}

.nav-brand .tagline {
    font-size: 0.85rem;
    line-height: 1;
    color: #cbd5e1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 42vw;
}

.nav-menu {
    display: flex;
    list-style: none;

    /* FIX: prevent multi-line nav */
    flex-wrap: nowrap;
    white-space: nowrap;

    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 500;
    font-size: 0.875rem;

    /* FIX: avoid huge height / clipping */
    padding: 0.35rem 0;
    line-height: 1.1;

    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.nav-menu a:hover {
    color: #FFA500;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
    display: block;
    animation: fadeInUp 0.8s ease both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-benefits {
    list-style: none;
    padding: 0;
}

.feature-benefits li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Capabilities Section */
.capabilities {
    padding: 100px 0;
    background: white;
}

.capability-item {
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.capability-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.capability-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.capability-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.capability-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.highlight {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-dark);
    color: white;
}

.about .section-header h2,
.about .section-header p {
    color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

[data-theme="light"] .about {
    background: #f5f3ff;
    color: var(--text-primary);
}

[data-theme="light"] .about .section-header h2,
[data-theme="light"] .about .section-header p {
    color: var(--text-primary);
}

[data-theme="light"] .about-content p {
    color: var(--text-secondary);
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

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

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

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

    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .capability-item {
        padding: 2rem;
    }

    .capability-content h3 {
        font-size: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.feature-card,
.capability-item {
    animation: fadeIn 0.6s ease both;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* System Configuration Section */
.config {
    padding: 100px 0;
    background: white;
}

.config-content {
    margin-bottom: 3rem;
}

.config-highlight {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.config-icon-large {
    width: 120px;
    height: 120px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.config-icon-large svg {
    width: 64px;
    height: 64px;
}

.config-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.config-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.config-card {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.config-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.config-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.config-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Notifications Banner */
.notifications-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    color: white;
    box-shadow: var(--shadow-xl);
}

.notifications-banner-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.notifications-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notifications-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.notifications-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.notifications-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.notifications-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.notifications-features li {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    padding-left: 2rem;
}

.notifications-features li::before {
    content: '✓';
    position: absolute;
    left: 0.75rem;
    font-weight: bold;
    color: #fbbf24;
}

/* Strategies Section */
.strategies {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.strategy-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.strategy-card-large {
    grid-column: 1 / -1;
}

.monitoring-card-large {
    grid-column: 1 / -1;
}

.feature-card-large {
    grid-column: 1 / -1;
}

/* In-House Objects Grid */
.inhouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.inhouse-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.inhouse-category h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.inhouse-category .feature-benefits {
    margin: 0;
    padding: 0;
}

.inhouse-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Integration Grid */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.integration-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.integration-category h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.integration-category .feature-benefits {
    margin: 0;
    padding: 0;
}

.integration-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.strategy-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.strategy-icon svg {
    width: 32px;
    height: 32px;
}

.strategy-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.strategy-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.strategy-features {
    list-style: none;
    padding: 0;
}

.strategy-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.strategy-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.strategy-workflow {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.strategy-workflow h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.workflow-step h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.workflow-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.workflow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Monitoring Section */
.monitoring {
    padding: 100px 0;
    background: white;
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.monitoring-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.monitoring-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.monitoring-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.monitoring-icon svg {
    width: 32px;
    height: 32px;
}

.monitoring-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.monitoring-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.monitoring-features {
    list-style: none;
    padding: 0;
}

.monitoring-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.monitoring-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Screening Section */
.screening {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.screening-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.screening-type-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.screening-type-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.screening-type-icon svg {
    width: 32px;
    height: 32px;
}

.screening-type-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.screening-type-card>p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.screening-criteria {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.screening-criteria h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.screening-criteria ul {
    list-style: none;
    padding: 0;
}

.screening-criteria li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.screening-criteria li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.screening-features {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.screening-features h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

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

.screening-feature-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.screening-feature-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.screening-feature-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Database Section */
.database {
    padding: 100px 0;
    background: white;
}

.database-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.database-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.database-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.database-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.database-icon svg {
    width: 32px;
    height: 32px;
}

.database-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.database-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.database-features {
    list-style: none;
    padding: 0;
}

.database-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.database-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Examples Section */
.examples {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.example-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.example-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.example-type {
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.example-content h4:first-of-type {
    margin-top: 0;
}

.example-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.example-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.example-content ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.example-content ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.code-block {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
    border-left: 4px solid var(--primary-color);
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre;
    display: block;
}

.code-block code .comment {
    color: #64748b;
}

.code-block code .keyword {
    color: #60a5fa;
}

.code-block code .string {
    color: #34d399;
}

.code-block code .function {
    color: #fbbf24;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .config-highlight {
        flex-direction: column;
        text-align: center;
    }

    .config-icon-large {
        width: 100px;
        height: 100px;
    }

    .notifications-banner-content {
        flex-direction: column;
    }

    .notifications-icon {
        width: 64px;
        height: 64px;
    }

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

    .workflow-steps {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

    .screening-types {
        grid-template-columns: 1fr;
    }

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

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

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

    .example-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .example-header h3 {
        font-size: 1.25rem;
    }

    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .code-block code {
        font-size: 0.8rem;
    }
}


/* --- Mobile navbar (hamburger) --- */
.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 10px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
    border-radius: 2px;
}

/* Mobile layout */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .navbar .container {
        align-items: center;
    }

    /* Hide menu by default on mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0.75rem 1rem;
        background: rgba(15, 23, 42, 0.92);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu.is-open {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        padding: 0.5rem 0;
        display: block;
    }
}

/* Desktop: keep existing layout */
@media (min-width: 769px) {
    .navbar .container {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        align-items: center;
        column-gap: 0.9rem;
    }

    .nav-menu {
        position: static;
        transform: none;
        justify-self: center;
        margin: 0;
        z-index: 1;
        gap: 1.25rem;
    }

    .nav-auth {
        justify-self: end;
        margin-left: 0;
    }

    .nav-theme-toggle {
        justify-self: end;
        margin-left: 0.75rem;
    }
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    list-style: none;
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    display: block;
    white-space: nowrap;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop hover */
@media (min-width: 1024px) {
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile: dropdown always visible inside hamburger */
@media (max-width: 1023px) {
    .dropdown-menu {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-menu a {
        color: var(--text-primary);
    }
}



/* Desktop tightening to avoid nav wrapping on mid-width screens */
@media (max-width: 1100px) and (min-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.82rem;
    }

    .nav-brand .tagline {
        max-width: 32vw;
    }
}


/* ===== TRUE DARK THEME (single source of truth) ===== */
body.dark-mode,
body[data-theme="dark"] {
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --bg-primary: #070a12;
    --bg-secondary: #0b1220;
    --border-color: rgba(255, 255, 255, 0.12);
}

/* Background + default text */
body.dark-mode,
body[data-theme="dark"] {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Navbar in dark mode */
body.dark-mode .navbar,
body[data-theme="dark"] .navbar {
    background: #0f172a;
    border-bottom-color: transparent;
}

body.dark-mode .nav-menu a,
body[data-theme="dark"] .nav-menu a {
    color: var(--text-primary);
}

body.dark-mode .nav-brand .tagline,
body[data-theme="dark"] .nav-brand .tagline {
    color: var(--text-secondary);
}

/* Make "white sections" use dark surfaces in dark mode */
body.dark-mode .features,
body.dark-mode .capabilities,
body.dark-mode .config,
body.dark-mode .monitoring,
body.dark-mode .database,
body[data-theme="dark"] .features,
body[data-theme="dark"] .capabilities,
body[data-theme="dark"] .config,
body[data-theme="dark"] .monitoring,
body[data-theme="dark"] .database {
    background: var(--bg-primary);
}

/* Common surfaces/cards */
body.dark-mode .feature-card,
body.dark-mode .strategy-card,
body.dark-mode .monitoring-card,
body.dark-mode .capability-item,
body.dark-mode .config-card,
body.dark-mode .screening-type-card,
body.dark-mode .example-card,
body[data-theme="dark"] .feature-card,
body[data-theme="dark"] .strategy-card,
body[data-theme="dark"] .monitoring-card,
body[data-theme="dark"] .capability-item,
body[data-theme="dark"] .config-card,
body[data-theme="dark"] .screening-type-card,
body[data-theme="dark"] .example-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* ===== BUTTON CONSISTENCY ===== */
.btn,
a.btn,
button.btn {
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
}

body.dark-mode .btn-primary,
body[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

body.dark-mode .btn-secondary,
body[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
}


/* ===== NAVBAR + JSON MANAGER HOTFIX =====
   Why: json_manager.html uses .jm-container inside .navbar (and .jm-container has padding:2rem),
   which makes the navbar huge. This block normalizes the navbar container even when it's .jm-container.
*/

/* Ensure fixed navbar spacing is respected even if a page's <style> changes body padding */
body {
    padding-top: 72px !important;
}

/* If a page uses .jm-container inside the navbar, treat it like the normal .container */
.navbar>.jm-container,
.navbar .jm-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;

    /* Override the page's .jm-container card styling inside the navbar */
    padding: 0 20px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    max-width: 1200px;
    margin: 0 auto;
}

/* Keep nav items on one line (desktop) */
@media (min-width: 1024px) {
    .navbar .nav-menu {
        flex-wrap: nowrap !important;
    }
}

/* Dark mode: fix JSON Manager page panels that are hard-coded to white in its inline <style> */
body.dark-mode .jm-container,
body[data-theme="dark"] .jm-container {
    background: rgba(11, 18, 32, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .right-panel,
body[data-theme="dark"] .right-panel {
    background: rgba(11, 18, 32, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

body.dark-mode .category-item,
body[data-theme="dark"] .category-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

body.dark-mode .category-header,
body.dark-mode .category-item-name,
body.dark-mode .file-name,
body.dark-mode h2,
body.dark-mode h3,
body[data-theme="dark"] .category-header,
body[data-theme="dark"] .category-item-name,
body[data-theme="dark"] .file-name,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3 {
    color: var(--text-primary) !important;
}

body.dark-mode .category-item-desc,
body.dark-mode .file-size,
body.dark-mode .empty-category,
body.dark-mode .subtitle,
body[data-theme="dark"] .category-item-desc,
body[data-theme="dark"] .file-size,
body[data-theme="dark"] .empty-category,
body[data-theme="dark"] .subtitle {
    color: var(--text-secondary) !important;
}

/* Make the JSON manager "Note" box readable in dark mode */
body.dark-mode .left-panel>div[style*="background: #f0f9ff"],
body[data-theme="dark"] .left-panel>div[style*="background: #f0f9ff"] {
    background: rgba(99, 102, 241, 0.10) !important;
    border-left-color: rgba(99, 102, 241, 0.80) !important;
}

body.dark-mode .left-panel>div[style*="background: #f0f9ff"] p,
body[data-theme="dark"] .left-panel>div[style*="background: #f0f9ff"] p {
    color: var(--text-primary) !important;
}


/* ===== JSON MANAGER DARK MODE: remove remaining white panels ===== */
body.dark-mode .left-panel,
body[data-theme="dark"] .left-panel {
    background: rgba(11, 18, 32, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

body.dark-mode .upload-area,
body[data-theme="dark"] .upload-area,
body.dark-mode .uploaded-files,
body[data-theme="dark"] .uploaded-files {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* Any inline-style light boxes inside left panel (note/preview) */
body.dark-mode .left-panel [style*="background: white"],
body.dark-mode .left-panel [style*="background:#fff"],
body.dark-mode .left-panel [style*="background: #fff"],
body.dark-mode .left-panel [style*="background: #f9fafb"],
body.dark-mode .left-panel [style*="background:#f9fafb"],
body.dark-mode .left-panel [style*="background: #f3f4f6"],
body.dark-mode .left-panel [style*="background:#f3f4f6"],
body.dark-mode .left-panel [style*="background: #f0f9ff"],
body.dark-mode .left-panel [style*="background:#f0f9ff"],
body[data-theme="dark"] .left-panel [style*="background: white"],
body[data-theme="dark"] .left-panel [style*="background:#fff"],
body[data-theme="dark"] .left-panel [style*="background: #fff"],
body[data-theme="dark"] .left-panel [style*="background: #f9fafb"],
body[data-theme="dark"] .left-panel [style*="background:#f9fafb"],
body[data-theme="dark"] .left-panel [style*="background: #f3f4f6"],
body[data-theme="dark"] .left-panel [style*="background:#f3f4f6"],
body[data-theme="dark"] .left-panel [style*="background: #f0f9ff"],
body[data-theme="dark"] .left-panel [style*="background:#f0f9ff"] {
    background: rgba(11, 18, 32, 0.85) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* Improve readability for "note" paragraphs inside those boxes */
body.dark-mode .left-panel [style*="background"] p,
body[data-theme="dark"] .left-panel [style*="background"] p {
    color: var(--text-secondary) !important;
}

/* File item cards in dark mode */
body.dark-mode .file-item,
body[data-theme="dark"] .file-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}


/* ===== JSON MANAGER DARK MODE SELECTOR COMPAT (html.dark-mode / html.dark) ===== */
html.dark-mode .jm-container,
html.dark .jm-container {
    background: rgba(11, 18, 32, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35) !important;
}

html.dark-mode .left-panel,
html.dark .left-panel {
    background: rgba(11, 18, 32, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

html.dark-mode .upload-area,
html.dark .upload-area,
html.dark-mode .uploaded-files,
html.dark .uploaded-files {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* The "Note" box in json_manager.html is an inline style background: #f0f9ff */
html.dark-mode .left-panel [style*="background: #f0f9ff"],
html.dark-mode .left-panel [style*="background:#f0f9ff"],
html.dark .left-panel [style*="background: #f0f9ff"],
html.dark .left-panel [style*="background:#f0f9ff"] {
    background: rgba(11, 18, 32, 0.85) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-left-color: rgba(99, 102, 241, 0.80) !important;
}

html.dark-mode .left-panel [style*="background: #f0f9ff"] p,
html.dark-mode .left-panel [style*="background:#f0f9ff"] p,
html.dark .left-panel [style*="background: #f0f9ff"] p,
html.dark .left-panel [style*="background:#f0f9ff"] p {
    color: rgba(255, 255, 255, 0.68) !important;
}


/* ===== JSON MANAGER: force the "Note" box to match dark UI (no theme selector needed) =====
   Some setups don't add a dark-mode class to <html>/<body>, so selector-based overrides won't fire.
   This is scoped to .jm-container so it only affects json_manager.html.
*/
.jm-container .left-panel [style*="background: #f0f9ff"],
.jm-container .left-panel [style*="background:#f0f9ff"],
.jm-container .left-panel [style*="background: #f9fafb"],
.jm-container .left-panel [style*="background:#f9fafb"],
.jm-container .left-panel [style*="background: #fff"],
.jm-container .left-panel [style*="background:#fff"],
.jm-container .left-panel [style*="background: white"] {
    background: rgba(11, 18, 32, 0.90) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-left-color: rgba(99, 102, 241, 0.80) !important;
}

.jm-container .left-panel [style*="background"] p {
    color: rgba(255, 255, 255, 0.68) !important;
}

/* If the page uses a light <textarea> / preview areas, normalize them too */
.jm-container textarea,
.jm-container input[type="text"],
.jm-container input[type="search"],
.jm-container select {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* ===== Nav Auth Components ===== */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* Login button (logged-out state) */
.nav-auth-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border: 1px solid #FFA500;
    border-radius: 8px;
    color: #0f172a !important;
    background: #FFA500;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-auth-login:hover {
    background: #ff8c00;
    border-color: #ff8c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.35);
}

[data-theme="dark"] .nav-auth-login {
    color: #06202a !important;
    background: #22d3ee;
    border-color: #22d3ee;
}

[data-theme="dark"] .nav-auth-login:hover {
    background: #06b6d4;
    border-color: #06b6d4;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

/* User avatar (logged-in state) */
.nav-auth-user {
    position: relative;
}

.nav-auth-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #475569;
    border-radius: 999px;
    padding: 5px 14px 5px 5px;
    cursor: pointer;
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-auth-avatar:hover {
    border-color: #FFA500;
    background: rgba(255, 165, 0, 0.08);
}

.nav-auth-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.nav-auth-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .nav-auth-avatar {
    color: #1f2937;
    border-color: #d1d5db;
}

[data-theme="light"] .nav-auth-avatar:hover {
    border-color: #6d28d9;
    background: rgba(109, 40, 217, 0.06);
}

/* Dropdown */
.nav-auth-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    min-width: 240px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    overflow: hidden;
    animation: authDropdownIn 0.18s ease;
}

.nav-auth-dropdown.is-open {
    display: block;
}

@keyframes authDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-auth-dropdown-header {
    padding: 14px 16px 10px;
}

.nav-auth-dropdown-email {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-auth-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.35);
}

.nav-auth-role-badge.sub {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
}

.nav-auth-dropdown-divider {
    height: 1px;
    background: #334155;
    margin: 4px 0;
}

.nav-auth-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
}

.nav-auth-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFA500;
}

.nav-auth-logout {
    color: #f87171 !important;
}

.nav-auth-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* Light theme dropdown */
[data-theme="light"] .nav-auth-dropdown {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav-auth-dropdown-email {
    color: #6b7280;
}

[data-theme="light"] .nav-auth-dropdown-divider {
    background: #e5e7eb;
}

[data-theme="light"] .nav-auth-dropdown-item {
    color: #1f2937;
}

[data-theme="light"] .nav-auth-dropdown-item:hover {
    background: #f5f3ff;
    color: #6d28d9;
}

[data-theme="light"] .nav-auth-logout {
    color: #dc2626 !important;
}

[data-theme="light"] .nav-auth-logout:hover {
    background: rgba(220, 38, 38, 0.06) !important;
}

/* Mobile: auth button adjustments */
@media (max-width: 768px) {
    .nav-auth {
        margin-left: 0;
    }

    .nav-auth-name {
        display: none;
    }

    .nav-auth-avatar svg {
        display: none;
    }

    .nav-auth-avatar {
        padding: 4px;
        border-radius: 50%;
    }

    .nav-auth-dropdown {
        right: -10px;
        min-width: 200px;
    }
}

/* Ensure nav-auth lives on the same row & doesn't break layout */
.navbar .nav-auth {
    transform: none;
}