/* Qriton DasData - Threat Intelligence UI */

:root {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f5;
    --text-primary: #1a1a2e;
    --text-secondary: #5a6070;
    --text-muted: #8a8fa0;
    --accent: #0077a8;
    --accent-light: #0099d6;
    --accent-dim: #005f87;
    --accent-gradient: linear-gradient(135deg, #0099d6, #005f87);
    --danger: #dc3545;
    --warning: #e67e00;
    --success: #28a745;
    --border: #e0e4ea;
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.logo-text strong {
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav a.active {
    color: var(--accent);
    background: var(--bg-tertiary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    background: #0c0c0c;
    color: #fff;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,12,12,0.6) 0%, rgba(12,12,12,0.85) 100%);
    z-index: 1;
}

.hero-inner,
.hero-counter,
.hero-cta {
    position: relative;
    z-index: 2;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    margin: 0 auto 1.5rem;
    line-height: 1.5;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary {
    margin: 0;
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.hero-cta .btn-primary {
    background: #fff;
    color: #0c0c0c;
}

.hero-cta .btn-primary:hover {
    opacity: 0.85;
}

.hero-cta .btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.hero-cta .btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.5);
}

/* Hero Big Counter */
.hero-counter {
    text-align: center;
    margin-bottom: 2rem;
}

.counter-number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.counter-label .live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Hero Secondary Stats Row */
.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.hero-stats-row .hero-stat-item {
    text-align: center;
}

.hero-stats-row .hero-stat-item strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-stats-row .hero-stat-item span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .counter-number {
        font-size: 4rem;
        letter-spacing: -2px;
    }

    .hero-stats-row {
        gap: 2rem;
    }

    .hero-stats-row .hero-stat-item strong {
        font-size: 1.25rem;
    }
}

/* Landing Sections */
.landing-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.landing-section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.landing-section h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Features Cards */
.features-section {
    padding: 3rem 2rem !important;
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border);
}

.reveal-line {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin: 0 auto 2.5rem;
    letter-spacing: -0.02em;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-feature-card {
    text-align: center;
    padding: 28px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-feature-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 2px 12px var(--shadow);
}

.hero-feature-card svg {
    width: 32px;
    height: 32px;
    margin: 0 auto 14px;
    display: block;
    color: var(--accent);
}

.hero-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hero-feature-card p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.features-section .hero-stats-row {
    border-top: 1px solid var(--border);
    margin-top: 2.5rem;
}

.features-section .hero-stat-item strong {
    color: var(--accent);
}

.features-section .hero-stat-item span {
    color: var(--text-muted);
}

.feature-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* About Section (legacy) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.about-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--accent);
}

.about-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* How It Works - Timeline */
.how-section {
    padding: 3rem 2rem;
}

.how-section h2 {
    margin-bottom: 2rem;
}

.how-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.how-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border);
}

.how-timeline .how-step {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
    position: relative;
}

.step-marker {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    position: relative;
    z-index: 1;
}

.how-timeline .step-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.how-timeline .step-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .how-timeline {
        flex-direction: column;
        gap: 1.5rem;
    }

    .how-timeline::before {
        display: none;
    }

    .how-timeline .how-step {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .step-marker {
        margin: 0;
        flex-shrink: 0;
    }
}

/* How It Works - Legacy */
.how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.how-step {
    flex: 1;
    max-width: 250px;
    text-align: center;
    padding: 0 1rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.how-connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin-top: 24px;
    flex-shrink: 0;
}

/* Comparison Grid - New Style */
.compare-section {
    padding: 3rem 2rem;
}

.compare-section h2 {
    margin-bottom: 2rem;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.compare-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.compare-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.compare-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compare-values .old {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.compare-values .new {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

@media (max-width: 768px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }
}

/* Comparison Table - Legacy */
.compare-table {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.compare-header,
.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.compare-header {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.9rem;
}

.compare-col {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.compare-col.label {
    font-weight: 500;
    color: var(--text-secondary);
}

.compare-col.highlight {
    background: rgba(30, 136, 229, 0.05);
    color: var(--accent);
    font-weight: 500;
}

.compare-header .compare-col.highlight {
    background: var(--accent);
    color: white;
}

.compare-row:last-child .compare-col {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background: #0c0c0c !important;
    color: white;
}

.cta-section h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: white;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255,255,255,0.45);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 1rem 2.5rem !important;
    font-size: 1rem;
    border-radius: 999px;
}

.cta-section .btn-primary {
    background: white;
    color: #0c0c0c;
}

.cta-section .btn-primary:hover {
    background: var(--accent);
    color: #fff;
    opacity: 1;
}

.cta-section .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    display: inline-flex;
    align-items: center;
}

.cta-section .btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.5);
}

.cta-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* Video Section */
.video-section {
    text-align: center;
    padding: 4rem 2rem !important;
    background: var(--bg-primary) !important;
}

.video-trigger {
    max-width: 700px;
    margin: 0 auto;
    cursor: pointer;
}

.video-thumb {
    position: relative;
    background: #0c0c0c;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.video-trigger:hover .video-thumb {
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.video-play {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c0c0c;
    transition: transform 0.3s, background 0.3s;
    z-index: 1;
}

.video-play svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.video-trigger:hover .video-play {
    transform: scale(1.1);
    background: #fff;
}

.video-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.video-duration {
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.video-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Why Section Dark */
.why-dark {
    background: #0c0c0c !important;
    color: #fff;
}

.why-dark h2 {
    color: #fff;
    max-width: 700px;
    margin: 0 auto 0.75rem;
}

.why-sub {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 3rem;
}

.why-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.why-point {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
}

.why-point strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}


/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: color 0.2s;
}

.video-modal-close:hover {
    color: #fff;
}

.video-modal-player {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .why-points {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-dark .why-values {
        grid-template-columns: 1fr;
    }
}

.cta-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Hero Stats - Big Numbers */
.social-proof {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 3rem 0;
    margin: 2rem 0;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 3rem;
    position: relative;
}

.proof-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: var(--border);
}

.proof-item strong {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    transition: all 0.3s ease;
}

.proof-item.hero-stat strong {
    font-size: 6rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-item:hover strong {
    transform: scale(1.02);
}

.proof-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.proof-item .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@keyframes count-up {
    from { opacity: 0.5; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.proof-item strong.counting {
    animation: count-up 0.1s ease-out;
}

/* Urgency Banner */
.urgency-banner {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.urgency-banner strong {
    color: var(--text-primary);
}

/* Hero Stats Row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    margin-top: 1rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Responsive Hero & Landing */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1.5rem 2rem;
    }

    .hero-inner {
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        padding: 1.5rem;
    }

    .hero-stat-main strong {
        font-size: 3.5rem;
    }

    .hero-stat-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-stat-item strong {
        font-size: 1.5rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 2rem;
        margin-top: 2rem;
    }

    /* Landing Sections */
    .landing-section {
        padding: 3rem 1.5rem;
    }

    .landing-section h2 {
        font-size: 1.5rem;
    }

    .section-lead {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .how-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .how-connector {
        width: 2px;
        height: 30px;
        margin: 0 auto;
    }

    .how-step {
        max-width: 100%;
    }

    .compare-table {
        font-size: 0.85rem;
    }

    .compare-col {
        padding: 0.75rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn-large {
        width: 100%;
        max-width: 280px;
    }

    .social-proof {
        flex-direction: column;
        gap: 1.5rem;
    }

    .proof-item {
        padding: 1rem 2rem;
    }

    .proof-item:not(:last-child)::after {
        display: none;
    }

    .proof-item strong {
        font-size: 3rem;
    }

    .proof-item.hero-stat strong {
        font-size: 4rem;
    }
}

/* Main */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.main:not(:has(> div)) {
    min-height: 0;
    padding: 0;
}

h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Getting Started Section */
.getting-started {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.getting-started-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.getting-started-card .card-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 1rem;
}

.getting-started-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.getting-started-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.getting-started-cta {
    text-align: center;
}

.getting-started-cta .btn-primary {
    margin: 0 0 1rem;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
}

.getting-started-cta .cta-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .getting-started-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Panel */
.panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.panel.full-width {
    grid-column: 1 / -1;
}

/* Threat List */
.threat-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.threat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.threat-item:hover {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.threat-ip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.threat-ip .ip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.threat-ip .country {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-secondary);
}

.threat-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.threat-meta .score {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.score.high {
    background: var(--bg-tertiary);
    color: var(--danger);
}

.score.medium {
    background: var(--bg-tertiary);
    color: var(--warning);
}

.score.low {
    background: var(--bg-tertiary);
    color: var(--success);
}

.threat-meta .reports {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tags {
    display: flex;
    gap: 0.25rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 4px;
    text-transform: lowercase;
}

.empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Classification Panel - span full grid width */
.panel:has(.classification-grid) {
    grid-column: 1 / -1;
}

/* Classification Grid - Compact Badge Style */
.classification-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.classification-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.classification-item:hover {
    border-color: var(--accent);
}

.classification-item .type {
    text-transform: capitalize;
    color: var(--text-primary);
}

.classification-item .count {
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 102, 204, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
}

.bar-container {
    display: none;
}

.bar {
    display: none;
}

/* Lookup */
.lookup {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.search-box input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-box button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-box button:hover:not(:disabled) {
    background: var(--accent-dim);
}

.search-box button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-box button svg {
    width: 20px;
    height: 20px;
}

/* Lookup Result */
.result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.result-card.threat {
    border-color: var(--danger);
}

.result-card.safe {
    border-color: var(--success);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
}

.result-ip {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-ip .ip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
}

.verdict {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.verdict.danger {
    background: var(--bg-tertiary);
    color: var(--danger);
}

.verdict.warning {
    background: var(--bg-tertiary);
    color: var(--warning);
}

.verdict.caution {
    background: var(--bg-tertiary);
    color: var(--success);
}

.verdict.safe {
    background: var(--bg-tertiary);
    color: var(--success);
}

.result-score {
    text-align: center;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.score-circle.high {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    color: var(--danger);
}

.score-circle.medium {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    color: var(--warning);
}

.score-circle.low {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    color: var(--success);
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.result-details {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-group h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.detail-group p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.detail-group .tags {
    flex-wrap: wrap;
}

.patterns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pattern {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.pattern-name {
    text-transform: capitalize;
}

.pattern-count {
    color: var(--text-muted);
}

.safe-message {
    padding: 1.5rem;
    color: var(--text-secondary);
}

/* Feeds */
.feeds-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feed-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.feed-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.feed-icon svg {
    width: 28px;
    height: 28px;
}

.feed-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feed-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feed-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.feed-btn:hover {
    background: var(--accent-dim);
}

/* API Docs */
.api-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.api-section {
    margin-bottom: 2.5rem;
}

.api-section h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.api-section > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.api-section h3 {
    font-size: 0.9rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-secondary);
}

.endpoint {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.method {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.method.get {
    background: var(--bg-tertiary);
    color: var(--success);
}

.method.post {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.endpoint-header code {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.endpoint > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

pre {
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

pre code {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.integration pre {
    margin-bottom: 1rem;
}

/* Register Page */
.register-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .register-grid {
        grid-template-columns: 1fr;
    }
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    font-size: 0.95rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: var(--border);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.alert.error {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert.success {
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert.info {
    background: rgba(30, 136, 229, 0.15);
    border: 1px solid #1e88e5;
    color: #1e88e5;
}

.alert.info p {
    margin: 0.5rem 0 0 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.alert .error-reason {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: normal;
    opacity: 0.9;
    line-height: 1.5;
}

.credentials-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credential {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.credential label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.credential-value {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.credential-value code {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
}

.btn-copy {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.credentials-box h3 {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.credentials-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.credentials-box pre {
    margin: 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .auth-area {
        width: 100%;
        justify-content: center;
    }
}

/* Auth Area */
.auth-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-login, .btn-logout {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover, .btn-logout:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-login.active {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-trigger:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.user-menu.open .user-menu-trigger {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.user-menu-trigger .chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.user-menu.open .user-menu-trigger .chevron {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shadow);
    z-index: 200;
    overflow: hidden;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.user-menu-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.user-menu-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.user-menu-dropdown .logout-link {
    color: var(--danger);
}

.user-menu-dropdown .logout-link:hover {
    background: rgba(255, 71, 87, 0.1);
}

.user-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
}

/* Login View */
.login-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

.login-logo svg {
    width: 100%;
    height: 100%;
}

.login-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.magic-link-sent {
    padding: 1rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(46, 213, 115, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

.success-icon svg {
    width: 30px;
    height: 30px;
}

.magic-link-sent h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.magic-link-sent p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.magic-link-sent .hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* My Shields View */
.my-shields {
    max-width: 900px;
    margin: 0 auto;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.inline-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.inline-form .form-group {
    flex: 1;
}

.inline-form button {
    margin-top: 0;
    white-space: nowrap;
    height: 44px;
}

.credentials-panel {
    margin-top: 1.5rem;
    border-color: var(--success);
    background: rgba(46, 213, 115, 0.05);
}

.shields-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shield-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.shield-info {
    flex: 1;
}

.shield-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.shield-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.shield-meta span {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.shield-id {
    font-family: 'JetBrains Mono', monospace;
}

.shield-status.active {
    background: rgba(46, 213, 115, 0.15) !important;
    color: var(--success) !important;
}

.shield-status.revoked {
    background: rgba(255, 71, 87, 0.15) !important;
    color: var(--danger) !important;
}

.shield-stats {
    display: flex;
    gap: 1.5rem;
    text-align: center;
}

.shield-stats .stat {
    display: flex;
    flex-direction: column;
}

.shield-stats .stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.shield-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-delete {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete svg {
    width: 18px;
    height: 18px;
}

.btn-delete:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

/* Sign-In Prompt */
.sign-in-prompt {
    text-align: center;
    padding: 2.5rem;
}

.sign-in-prompt h2 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.sign-in-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 1.25rem 0 0.75rem;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content strong {
    color: var(--text-primary);
}

/* Footer Enhancement */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.75rem 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-legal {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.footer-tagline {
    font-size: 0.7rem;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

/* Auth Required */
.auth-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.auth-required-content {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 400px;
}

.auth-required-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-required-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* GDPR Bar (minimalist) */
.gdpr-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    z-index: 1000;
}

.gdpr-bar a {
    color: var(--accent);
    text-decoration: none;
}

.gdpr-bar a:hover {
    text-decoration: underline;
}

.gdpr-bar button {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.gdpr-bar button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

/* Settings View */
.settings-view {
    max-width: 600px;
}

.settings-view .section-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.settings-view .panel {
    margin-bottom: 1.5rem;
}

.settings-view .panel h2 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.danger-zone-panel {
    background: rgba(255, 71, 87, 0.03);
    border-color: rgba(255, 71, 87, 0.2);
}

.danger-zone-panel h2 {
    color: var(--danger) !important;
    border-bottom-color: rgba(255, 71, 87, 0.2) !important;
}

.danger-zone-panel > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Account Settings */
.account-settings {
    margin-top: 0;
}

.account-info {
    margin-bottom: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-row label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-row span {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.info-note {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.danger-zone {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--danger);
}

.danger-zone-panel .danger-zone {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.danger-zone h3 {
    color: var(--danger);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.danger-zone > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.delete-confirm {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 71, 87, 0.15);
}

.delete-confirm .alert.warning {
    margin-bottom: 1.5rem;
}

.delete-confirm .form-group {
    margin-bottom: 1.5rem;
}

.delete-confirm .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.delete-confirm .form-group label strong {
    color: var(--danger);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.delete-confirm .form-group input {
    font-family: 'JetBrains Mono', monospace;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
}

.confirm-buttons .btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border);
    color: var(--text-primary);
}

.confirm-buttons .btn-secondary:hover {
    background: var(--border);
}

.confirm-buttons .btn-danger {
    flex: 1;
}

.alert.warning {
    background: rgba(255, 165, 2, 0.08);
    border: 1px solid rgba(255, 165, 2, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert.warning strong {
    color: var(--warning);
    display: block;
    margin-bottom: 0.5rem;
}

.alert.warning p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Mobile adjustments for new components */
@media (max-width: 768px) {
    .my-shields {
        padding: 0 0.5rem;
    }

    .inline-form .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .inline-form .form-group {
        width: 100%;
    }

    .inline-form button {
        width: 100%;
    }

    .shield-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }

    .shield-info {
        text-align: left;
    }

    .shield-name {
        font-size: 1rem;
        word-break: break-word;
    }

    .shield-id {
        font-size: 0.65rem;
        word-break: break-all;
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .shield-meta {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .shield-meta span {
        font-size: 0.7rem;
    }

    .shield-stats {
        width: 100%;
        justify-content: space-around;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
    }

    .shield-stats .stat-value {
        font-size: 0.9rem;
    }

    .btn-delete {
        align-self: flex-end;
        width: auto;
        padding: 0.5rem 1rem;
    }

    .login-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .confirm-buttons {
        flex-direction: column;
    }

    .confirm-buttons .btn-secondary,
    .confirm-buttons .btn-danger {
        width: 100%;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .register-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-intro {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .shield-id {
        font-size: 0.6rem;
    }

    .shield-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .shield-stats .stat {
        min-width: 60px;
    }

    .nav {
        gap: 0.25rem;
    }

    .nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .header-content {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .panel {
        padding: 1rem;
        border-radius: 8px;
    }

    .main {
        padding: 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   Troll Activity View Styles
   ======================================== */

.troll-activity {
    max-width: 1200px;
    margin: 0 auto;
}

.troll-activity h1 {
    margin-bottom: 0.5rem;
}

.troll-stats-grid {
    margin-bottom: 2rem;
}

.troll-stat .stat-icon {
    color: var(--accent);
}

.troll-stat .stat-icon.trolls {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.15));
    color: #8b5cf6;
}

.troll-stat .stat-icon.honeypot {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    color: #f59e0b;
}

.troll-stat .stat-icon.tarpit {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
    color: #16a34a;
}

.troll-stat .stat-icon.rickroll {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    color: #dc2626;
}

/* Troll Types Grid */
.troll-types-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.troll-type-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.2s;
}

.troll-type-item:hover {
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.troll-icon {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
}

.troll-type {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.troll-count {
    font-weight: 600;
    color: var(--accent);
    background: rgba(30, 136, 229, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Troll Events List */
.troll-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.troll-event-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.troll-event-item:hover {
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.event-icon {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.event-ip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.event-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.event-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Honeypot Panel */
.honeypot-panel .panel-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.honeypot-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.honeypot-item {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.honeypot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.capture-ip {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
}

.capture-ip:hover {
    text-decoration: underline;
}

.capture-endpoint {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.honeypot-creds {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.cred-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.honeypot-creds code {
    font-size: 0.85rem;
    color: var(--text-primary);
    background: none;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.honeypot-meta {
    display: flex;
    justify-content: flex-end;
}

.capture-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Shield Stats Panel */
.shields-panel h2 {
    margin-bottom: 1rem;
}

.shields-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.shield-stat-item {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.2s;
}

.shield-stat-item:hover {
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.shield-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.shield-stat-item .shield-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.shield-mode {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.mode-relaxed {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.mode-balanced {
    background: rgba(30, 136, 229, 0.15);
    color: #1e88e5;
}

.mode-aggressive {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.mode-lockdown {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.shield-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.shield-metrics .metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.shield-status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.active {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.status-dot.inactive {
    background: #94a3b8;
}

.shield-stat-item .last-seen {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Info Panel - What is Troll Mode */
.info-panel {
    margin-top: 2rem;
}

.info-panel h2 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.info-panel > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.troll-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.troll-features .feature {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.2s;
}

.troll-features .feature:hover {
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.troll-features .feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.troll-features .feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Mobile adjustments for troll activity */
@media (max-width: 768px) {
    .troll-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .honeypot-creds {
        grid-template-columns: auto 1fr;
    }

    .shields-overview {
        grid-template-columns: 1fr;
    }

    .troll-features {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Why Shield Section
   ======================================== */

.why-section {
    padding: 4rem 2rem;
}

.why-section h2 {
    margin-bottom: 2.5rem;
}

.why-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.why-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.why-text .why-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.why-text p {
    margin-bottom: 1rem;
}

.why-text strong {
    color: var(--text-primary);
}

.why-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.value-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.value-icon svg {
    width: 24px;
    height: 24px;
}

.value-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.value-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .why-values {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .why-section {
        padding: 3rem 1.5rem;
    }

    .why-text .why-lead {
        font-size: 1.1rem;
    }

    .why-values {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Whitelist Request Page
   ======================================== */

.whitelist-page {
    max-width: 1000px;
    margin: 0 auto;
}

.whitelist-page h1 {
    margin-bottom: 0.5rem;
}

.whitelist-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.whitelist-form-panel {
    padding: 2rem;
}

.whitelist-form-panel h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.whitelist-form .form-group {
    margin-bottom: 1.25rem;
}

.whitelist-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.whitelist-form .form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.whitelist-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.whitelist-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.whitelist-form textarea::placeholder {
    color: var(--text-muted);
}

.whitelist-form .checkbox-group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.whitelist-form .checkbox-label span {
    line-height: 1.5;
}

.whitelist-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.whitelist-success {
    text-align: center;
    padding: 2rem 1rem;
}

.whitelist-success h2 {
    color: var(--text-primary);
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.whitelist-success p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.whitelist-success .hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1.5rem;
}

.whitelist-info-panel {
    padding: 1.5rem;
}

.whitelist-info-panel h2 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.whitelist-info-panel h3 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 1.75rem 0 1rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.process-step .step-num {
    width: 28px;
    height: 28px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.process-step .step-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.process-step .step-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.fp-causes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-causes li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.fp-causes li:last-child {
    border-bottom: none;
}

.fp-causes strong {
    color: var(--text-primary);
}

.whitelist-info-panel > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.whitelist-info-panel > p a {
    color: var(--accent);
    text-decoration: none;
}

.whitelist-info-panel > p a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .whitelist-grid {
        grid-template-columns: 1fr;
    }

    .whitelist-info-panel {
        order: -1;
    }
}

@media (max-width: 600px) {
    .whitelist-form-panel,
    .whitelist-info-panel {
        padding: 1.25rem;
    }
}

/* ========================================
   AI Insights View Styles
   ======================================== */

.ai-insights {
    max-width: 1200px;
    margin: 0 auto;
}

.ai-insights h1 {
    margin-bottom: 0.5rem;
}

/* Shield Selector */
.shield-selector {
    margin-bottom: 2rem;
}

.shield-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.shield-selector select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    font-size: 0.95rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

.shield-selector select:focus {
    outline: none;
    border-color: var(--accent);
}

/* AI Score Section - Gauge & Stats */
.ai-score-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.score-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-gauge {
    width: 200px;
    height: 120px;
}

.score-gauge .gauge-score {
    font-size: 2.5rem;
    font-weight: 700;
    fill: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.score-gauge .gauge-label {
    font-size: 0.7rem;
    fill: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-gauge .score-arc {
    transition: stroke 0.3s, d 0.5s ease-out;
    filter: drop-shadow(0 0 6px currentColor);
}

.tier-indicator {
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-indicator.tier-0 { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.tier-indicator.tier-1 { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.tier-indicator.tier-2 { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.tier-indicator.tier-3 { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.ai-status-row {
    display: flex;
    gap: 2rem;
}

.ai-mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ai-mini-stat .mini-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-mini-stat .mini-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.ai-mini-stat .mini-value.active { color: var(--success); }
.ai-mini-stat .mini-value.learning { color: var(--accent); }

@media (max-width: 768px) {
    .ai-score-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    .ai-status-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* AI Stats Grid */
.ai-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.ai-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.ai-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.ai-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-stat-card .stat-value.tier-0 { color: var(--success); }
.ai-stat-card .stat-value.tier-1 { color: #f59e0b; }
.ai-stat-card .stat-value.tier-2 { color: var(--warning); }
.ai-stat-card .stat-value.tier-3 { color: var(--danger); }

.ai-stat-card .stat-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Tier Response System Panel */
.tier-system-panel {
    margin-bottom: 2rem;
}

.tier-system-panel h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tier-item {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
}

.tier-item.tier-0 {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tier-item.tier-1 {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tier-item.tier-2 {
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.tier-item.tier-3 {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tier-item.active {
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--shadow);
}

.tier-item.tier-0.active { border-color: var(--success); }
.tier-item.tier-1.active { border-color: #f59e0b; }
.tier-item.tier-2.active { border-color: var(--warning); }
.tier-item.tier-3.active { border-color: var(--danger); }

.tier-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tier-icon {
    font-size: 1.25rem;
}

.tier-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.tier-item.tier-0 .tier-name { color: var(--success); }
.tier-item.tier-1 .tier-name { color: #f59e0b; }
.tier-item.tier-2 .tier-name { color: var(--warning); }
.tier-item.tier-3 .tier-name { color: var(--danger); }

.tier-range {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.tier-action {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Feature Attribution Panel */
.feature-attribution-panel {
    margin-bottom: 2rem;
}

.feature-attribution-panel h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.feature-name {
    flex: 0 0 180px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-bar-container {
    flex: 1;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.feature-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.feature-bar.positive {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.feature-bar.negative {
    background: linear-gradient(90deg, #22c55e, #84cc16);
}

.feature-contribution {
    flex: 0 0 60px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.feature-contribution.positive { color: var(--danger); }
.feature-contribution.negative { color: var(--success); }

/* Traffic Features Grid */
.traffic-features-panel {
    margin-bottom: 2rem;
}

.traffic-features-panel h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.feature-box {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-box .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feature-box .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Decision History Panel */
.decision-history-panel {
    margin-bottom: 2rem;
}

.decision-history-panel h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.decision-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.decision-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--border);
}

.decision-item.tier-0 { border-left-color: var(--success); }
.decision-item.tier-1 { border-left-color: #f59e0b; }
.decision-item.tier-2 { border-left-color: var(--warning); }
.decision-item.tier-3 { border-left-color: var(--danger); }

.decision-tier {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.decision-item.tier-0 .decision-tier {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.decision-item.tier-1 .decision-tier {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.decision-item.tier-2 .decision-tier {
    background: rgba(234, 88, 12, 0.15);
    color: var(--warning);
}

.decision-item.tier-3 .decision-tier {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.decision-info {
    flex: 1;
}

.decision-score {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.decision-action {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.decision-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* About Hopfield Panel */
.about-hopfield-panel {
    margin-top: 2rem;
}

.about-hopfield-panel h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-hopfield-panel > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.hopfield-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hopfield-feature {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.hopfield-feature-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.hopfield-feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.hopfield-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* AI Loading State */
.ai-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.ai-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Data State */
.ai-no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.ai-no-data h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .ai-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ai-stats-grid {
        grid-template-columns: 1fr;
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-wrap: wrap;
    }

    .feature-name {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }

    .feature-bar-container {
        flex: 1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hopfield-features {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AI Insights - Refresh & Visualization
   ======================================== */

/* Subtle Refresh */
.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--text-primary);
}

.btn-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-refresh .refresh-icon {
    transition: transform 0.3s ease;
}

.btn-refresh.refreshing .refresh-icon {
    animation: spin 1s linear infinite;
}

.refresh-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Tier Slider */
.tier-slider-container {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.tier-slider {
    position: relative;
    padding-top: 1rem;
}

.tier-track {
    display: flex;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
}

.tier-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tier-0-zone { background: linear-gradient(90deg, #22c55e, #4ade80); }
.tier-1-zone { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tier-2-zone { background: linear-gradient(90deg, #f97316, #fb923c); }
.tier-3-zone { background: linear-gradient(90deg, #ef4444, #f87171); }

.zone-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.score-marker {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    z-index: 10;
    transition: left 0.5s ease;
}

.marker-line {
    width: 3px;
    height: 48px;
    background: var(--text-primary);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.marker-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.threshold-marker {
    position: absolute;
    top: 0.5rem;
    transform: translateX(-50%);
    z-index: 5;
    transition: left 0.5s ease;
}

.threshold-line {
    width: 2px;
    height: 40px;
    background: var(--warning);
    border-radius: 1px;
    opacity: 0.8;
}

.threshold-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--warning);
    white-space: nowrap;
}

.tier-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 2px;
}

.tier-scale span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Collapsible Info Section */
.info-collapse {
    margin-top: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    list-style: none;
}

.info-header::-webkit-details-marker {
    display: none;
}

.info-header:hover {
    background: var(--bg-tertiary);
}

.info-icon {
    font-size: 1.25rem;
}

.info-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.info-brief {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    margin-right: 0.5rem;
}

.info-header .chevron {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.info-collapse[open] .chevron {
    transform: rotate(180deg);
}

.info-content {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item .item-icon {
    font-size: 1rem;
}

.info-item strong {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.info-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .info-brief {
        display: none;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .zone-label {
        font-size: 0.65rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Radar Chart Visualization */
.visualization-panel {
    margin-bottom: 1.5rem;
}

.viz-header {
    margin-bottom: 1rem;
}

.viz-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.radar-chart {
    width: 320px;
    height: 320px;
    max-width: 100%;
}

.radar-grid {
    fill: none;
    stroke: var(--border);
    stroke-width: 0.5;
}

.radar-threshold {
    fill: none;
    stroke: var(--warning);
    stroke-width: 1.5;
    stroke-dasharray: 4 2;
    opacity: 0.7;
}

.radar-axis {
    stroke: var(--border);
    stroke-width: 0.5;
    opacity: 0.5;
}

.radar-label {
    font-size: 7px;
    fill: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.radar-label.label-left {
    text-anchor: end;
}

.radar-data {
    fill: rgba(99, 102, 241, 0.2);
    stroke: var(--accent);
    stroke-width: 2;
    transition: all 0.5s ease;
}

.radar-point {
    fill: var(--accent);
    stroke: var(--bg-secondary);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.radar-point:hover {
    r: 5;
    fill: var(--warning);
}

/* Radar Legend */
.radar-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.data {
    background: var(--accent);
}

.legend-line {
    width: 20px;
    height: 2px;
    border-top: 2px dashed;
}

.legend-line.threshold {
    border-color: var(--warning);
}

.legend-item.score {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.score-indicator {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.score-indicator.tier-0 { background: var(--success); }
.score-indicator.tier-1 { background: #f59e0b; }
.score-indicator.tier-2 { background: var(--warning); }
.score-indicator.tier-3 { background: var(--danger); }

.legend-item strong {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .viz-content {
        flex-direction: column;
    }

    .radar-chart {
        width: 280px;
        height: 280px;
    }

    .radar-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* ========================================
   AI Dashboard - Clean Professional UI
   ======================================== */

/* Breadcrumb */
.ai-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.ai-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.ai-breadcrumb a:hover {
    text-decoration: underline;
}

.ai-breadcrumb .sep {
    opacity: 0.5;
}

.ai-breadcrumb .current {
    color: var(--text-secondary);
}

.ai-breadcrumb .shield-name {
    color: var(--text-primary);
    font-weight: 500;
}

/* Header */
.ai-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.ai-header-left h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
}

.ai-header-left p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ai-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shield-select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.85rem;
    min-width: 200px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon svg.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.ai-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.ai-empty-state svg {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.ai-empty-state h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.ai-empty-state p {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
}

/* Dashboard */
.ai-dashboard {
    /* Container */
}

/* Threat Card */
.threat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.threat-card.tier-3 {
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.threat-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.threat-score-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.threat-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 3px solid var(--border);
    transition: all 0.3s;
}

.threat-score-circle.tier-0 { border-color: #22c55e; }
.threat-score-circle.tier-1 { border-color: #eab308; }
.threat-score-circle.tier-2 { border-color: #f97316; }
.threat-score-circle.tier-3 { border-color: #dc2626; background: rgba(220, 38, 38, 0.1); }

.score-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.threat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.threat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.threat-action {
    font-size: 1.1rem;
    font-weight: 600;
}

.threat-action.tier-0 { color: #22c55e; }
.threat-action.tier-1 { color: #eab308; }
.threat-action.tier-2 { color: #f97316; }
.threat-action.tier-3 { color: #dc2626; }

/* Threat Meter */
.threat-meter {
    flex: 1;
    max-width: 400px;
}

.meter-track {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.meter-zone {
    flex: 1;
}

.meter-zone.zone-0 { background: rgba(34, 197, 94, 0.3); flex: 0.3; }
.meter-zone.zone-1 { background: rgba(234, 179, 8, 0.3); flex: 0.3; }
.meter-zone.zone-2 { background: rgba(249, 115, 22, 0.3); flex: 0.2; }
.meter-zone.zone-3 { background: rgba(220, 38, 38, 0.3); flex: 0.2; }

.meter-indicator {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 0.5s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

/* Threat Stats */
.threat-stats {
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.tstat {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    text-align: center;
}

.tstat-val {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.tstat-val.active {
    color: #22c55e;
}

.tstat-lbl {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Three Column Grid */
.ai-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Card Styles */
.ai-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.card-header h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.card-body {
    flex: 1;
    overflow-y: auto;
}

.card-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-empty small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Feature List */
.feature-list {
    /* Container */
}

.feat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.feat-row:last-child {
    border-bottom: none;
}

.feat-row:hover {
    background: var(--bg-tertiary);
}

.feat-row.hot {
    background: rgba(220, 38, 38, 0.05);
}

.feat-left {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.feat-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feat-val {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.feat-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.feat-bar {
    width: 60px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.feat-bar-fill {
    height: 100%;
    background: var(--text-muted);
    border-radius: 2px;
    transition: width 0.3s;
}

.feat-row.hot .feat-bar-fill {
    background: #dc2626;
}

.feat-pct {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    min-width: 35px;
    text-align: right;
}

.feat-row.hot .feat-pct {
    color: #dc2626;
    font-weight: 600;
}

/* Decision List */
.decision-list {
    /* Container */
}

.dec-row {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.dec-row:last-child {
    border-bottom: none;
}

.dec-row:hover {
    background: var(--bg-tertiary);
}

.dec-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dec-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.dec-badge.tier-0 { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.dec-badge.tier-1 { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.dec-badge.tier-2 { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.dec-badge.tier-3 { background: rgba(220, 38, 38, 0.15); color: #dc2626; }

.dec-score {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.dec-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: auto;
}

.dec-ips {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
}

.ip-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.ip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ip-tag {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.15rem 0.4rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.ip-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ip-more {
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 0.15rem 0.4rem;
}

/* IP Summary */
.ip-summary {
    /* Container */
}

.ip-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.ip-row:last-child {
    border-bottom: none;
}

.ip-row:hover {
    background: var(--bg-tertiary);
}

.ip-addr {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    flex: 1;
}

.ip-count {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.ip-tier {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.ip-tier.tier-0 { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.ip-tier.tier-1 { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.ip-tier.tier-2 { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.ip-tier.tier-3 { background: rgba(220, 38, 38, 0.15); color: #dc2626; }

/* Info Bar */
.ai-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.ai-info-bar span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--border);
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.ai-info-bar span:first-child::before {
    display: none;
}

/* Shield Actions in My Shields */
.shield-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-ai {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ai:hover {
    filter: brightness(1.1);
}

.btn-ai svg {
    opacity: 0.9;
}

/* Show More Button */
.show-more-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--bg-tertiary);
    border: none;
    border-top: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.show-more-btn:hover {
    background: var(--bg-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .ai-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .ai-grid-3 .ai-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .threat-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .threat-meter {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .ai-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .ai-header-right {
        width: 100%;
    }
    .shield-select {
        flex: 1;
    }
    .ai-grid-3 {
        grid-template-columns: 1fr;
    }
    .ai-grid-3 .ai-card:last-child {
        grid-column: span 1;
    }
    .threat-stats {
        flex-wrap: wrap;
    }
    .tstat {
        min-width: calc(50% - 1px);
    }
}

@media (max-width: 480px) {
    .threat-score-circle {
        width: 64px;
        height: 64px;
    }
    .score-value {
        font-size: 1.5rem;
    }
    .ai-info-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ========================================
   Live Metrics Grid (replaces radar chart)
   ======================================== */

.live-metrics-panel {
    margin-bottom: 1.5rem;
}

.live-metrics-panel .viz-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-metrics-panel .live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
}

.live-metrics-panel .live-dot.pulse {
    animation: livePulse 1s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.metric-card.elevated {
    border-left: 3px solid #f59e0b;
}

.metric-card.warning {
    border-left: 3px solid #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.metric-card.high-impact {
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metric-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-bar-track {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.metric-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease, background 0.3s;
    min-width: 2px;
}

.metric-bar.normal {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.metric-bar.elevated {
    background: linear-gradient(90deg, #22c55e, #f59e0b);
}

.metric-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.metric-bar.critical {
    background: linear-gradient(90deg, #f97316, #ef4444);
    animation: barPulse 2s ease-in-out infinite;
}

@keyframes barPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.metric-threshold-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--danger);
    opacity: 0.5;
}

.metric-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
}

.metric-impact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
}

.metric-impact svg {
    opacity: 0.5;
}

.metric-impact.high {
    color: #a78bfa;
    font-weight: 600;
}

.metric-impact.high svg {
    opacity: 1;
    color: #f59e0b;
}

.metric-status {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.6rem;
}

.metric-status.normal {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.metric-status.elevated {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.metric-status.warning {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.metric-status.critical {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Quick Stats Bar */
.quick-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.quick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.quick-stat .qs-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-stat .qs-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.quick-stat .qs-value.warning {
    color: var(--warning);
}

@media (max-width: 768px) {
    .live-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .live-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AI Insights - Improved Table Layout
   ======================================== */

.ai-two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Features Table */
.features-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.features-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
}

.features-table th {
    text-align: left;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.features-table th:nth-child(2),
.features-table th:nth-child(3) {
    text-align: right;
}

.features-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.features-table tr:hover {
    background: var(--bg-tertiary);
}

.features-table .feature-name {
    font-weight: 500;
    color: var(--text-primary);
}

.features-table .feature-value {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.features-table .feature-impact {
    text-align: right;
    width: 140px;
}

.impact-bar-container {
    display: inline-block;
    width: 70px;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 0.5rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.impact-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.impact-bar.positive {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.impact-bar.negative {
    background: linear-gradient(90deg, #22c55e, #84cc16);
}

.impact-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 40px;
    display: inline-block;
}

.impact-value.positive { color: #a78bfa; }
.impact-value.negative { color: var(--success); }

.impact-none {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* High impact row highlighting */
.features-table tr.high-impact {
    background: rgba(249, 115, 22, 0.08);
}

.features-table tr.high-impact .feature-name {
    color: var(--text-primary);
    font-weight: 600;
}

.impact-bar.high {
    background: linear-gradient(90deg, #f97316, #ef4444) !important;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.impact-value.high {
    color: #f97316 !important;
    font-weight: 700;
}

/* Features panel scroll */
.features-panel {
    max-height: 500px;
    overflow-y: auto;
}

.features-panel::-webkit-scrollbar {
    width: 6px;
}

.features-panel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Decision History Improvements */
.decision-history-panel .decision-list {
    max-height: 450px;
    overflow-y: auto;
}

.decision-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--border);
}

.decision-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.decision-tier-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.decision-tier-badge.tier-1 { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.decision-tier-badge.tier-2 { background: rgba(234, 88, 12, 0.15); color: var(--warning); }
.decision-tier-badge.tier-3 { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.decision-item.tier-1 { border-left-color: #f59e0b; }
.decision-item.tier-2 { border-left-color: var(--warning); }
.decision-item.tier-3 { border-left-color: var(--danger); }

.decision-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.decision-details strong {
    color: var(--text-primary);
}

/* Empty State for Decisions */
.empty-decisions {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-decisions .empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--success);
}

.empty-decisions p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.empty-decisions .empty-hint {
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .ai-two-col {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AI Decision Trace in IP Lookup
   ======================================== */

.ai-trace,
.ai-trace-standalone {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.ai-summary {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.tier-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tier-badge.tier-0 { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.tier-badge.tier-1 { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.tier-badge.tier-2 { background: rgba(234, 88, 12, 0.2); color: var(--warning); }
.tier-badge.tier-3 { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.btn-ai-trace {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-ai-trace:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.login-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   Hopfield Modal Styles
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-loading {
    text-align: center;
    padding: 3rem;
}

.modal-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.modal-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.modal-ip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-ip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.decision-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.decision-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.decision-card {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid var(--border);
}

.decision-card.tier-0 { border-left-color: var(--success); }
.decision-card.tier-1 { border-left-color: #f59e0b; }
.decision-card.tier-2 { border-left-color: var(--warning); }
.decision-card.tier-3 { border-left-color: var(--danger); }

.decision-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.decision-tier-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.decision-tier-badge.tier-0 { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.decision-tier-badge.tier-1 { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.decision-tier-badge.tier-2 { background: rgba(234, 88, 12, 0.15); color: var(--warning); }
.decision-tier-badge.tier-3 { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.decision-meta {
    text-align: right;
}

.decision-shield {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.decision-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.decision-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.decision-stats .stat {
    display: flex;
    flex-direction: column;
}

.decision-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.decision-stats .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.decision-attribution,
.decision-features {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.decision-attribution h4,
.decision-features h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.attribution-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attribution-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attr-name {
    flex: 0 0 140px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.attr-bar-container {
    flex: 1;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.attr-bar {
    height: 100%;
    border-radius: 3px;
}

.attr-bar.positive {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.attr-bar.negative {
    background: linear-gradient(90deg, #22c55e, #84cc16);
}

.attr-value {
    flex: 0 0 50px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.attr-value.positive { color: var(--danger); }
.attr-value.negative { color: var(--success); }

.features-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.feature-mini {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    background: var(--bg-primary);
    border-radius: 4px;
    font-size: 0.75rem;
}

.feature-mini .feature-label {
    color: var(--text-muted);
}

.feature-mini .feature-value {
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

@media (max-width: 600px) {
    .modal {
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-body {
        padding: 1rem;
    }

    .decision-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .decision-meta {
        text-align: left;
    }

    .decision-stats {
        gap: 1rem;
    }

    .attr-name {
        flex: 0 0 100px;
    }

    .features-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI Learning Section Styles
   ═══════════════════════════════════════════════════════════════════════════ */

.ai-learn-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.learn-header {
    text-align: center;
    margin-bottom: 2rem;
}

.learn-header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.learn-header p {
    color: var(--text-secondary);
}

.learn-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.learn-tabs button {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.learn-tabs button:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.learn-tabs button.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.learn-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.learn-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.learn-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.learn-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.learn-hero {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(13, 71, 161, 0.1));
    border-radius: 12px;
    margin-bottom: 2rem;
}

.learn-hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.learn-hero h3 {
    margin-bottom: 0.5rem;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.learn-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.learn-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.learn-card h4 {
    margin-top: 0;
    color: var(--text-primary);
}

.learn-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.learn-pipeline {
    margin: 2rem 0;
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.pipeline-step .step-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pipeline-step .step-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pipeline-arrow {
    color: var(--accent-light);
    font-size: 1.5rem;
    font-weight: bold;
}

.learn-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.compare-col {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.compare-col.highlight {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(13, 71, 161, 0.1));
    border-color: var(--accent-light);
}

.compare-col h4 {
    margin-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.compare-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare-col li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.compare-col li:last-child {
    border-bottom: none;
}

.learn-formula {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.learn-formula h4 {
    color: #fff;
    margin-top: 0;
}

.learn-formula code {
    display: block;
    font-size: 0.95rem;
    color: #4fc3f7;
    margin: 0.5rem 0;
}

.learn-formula .formula-explain {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 0;
    margin-top: 1rem;
}

.learn-note {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.learn-note strong {
    color: var(--success);
}

.feature-table {
    margin: 1.5rem 0;
}

.feature-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.feature-table th,
.feature-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.feature-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.feature-table td {
    color: var(--text-secondary);
}

.feature-table tr:hover td {
    background: var(--bg-tertiary);
}

.learn-example {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.example-output {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.example-output code {
    display: block;
    font-size: 0.85rem;
    color: #e0e0e0;
    margin: 0.25rem 0;
}

.example-output .hot {
    color: #ff6b6b;
    font-weight: bold;
}

.example-explain {
    margin-top: 1rem;
}

.example-explain ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.example-explain li {
    margin: 0.5rem 0;
}

.tier-explain {
    margin: 2rem 0;
}

.tier-visual {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tier-box {
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.tier-box.tier-0 { background: linear-gradient(135deg, #28a745, #20c997); }
.tier-box.tier-1 { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.tier-box.tier-2 { background: linear-gradient(135deg, #fd7e14, #dc3545); }
.tier-box.tier-3 { background: linear-gradient(135deg, #dc3545, #c82333); }

.tier-box .tier-range {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.tier-box .tier-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.tier-box .tier-desc {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.mode-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.mode-table th,
.mode-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.mode-table th {
    background: var(--bg-tertiary);
}

.mode-table .mode-relaxed td { border-left: 3px solid #28a745; }
.mode-table .mode-balanced td { border-left: 3px solid #ffc107; }
.mode-table .mode-aggressive td { border-left: 3px solid #fd7e14; }
.mode-table .mode-lockdown td { border-left: 3px solid #dc3545; }

.learn-problem {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.learn-problem h4 {
    color: var(--danger);
    margin-top: 0;
}

.learn-solution {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.learn-solution h4 {
    color: var(--success);
    margin-top: 0;
}

.scale-comparison table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.scale-comparison th,
.scale-comparison td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.scale-comparison th {
    background: var(--bg-tertiary);
}

.scale-comparison .highlight {
    color: var(--success);
    font-weight: bold;
}

@media (max-width: 768px) {
    .learn-tabs {
        flex-direction: column;
    }

    .learn-tabs button {
        width: 100%;
    }

    .learn-comparison {
        grid-template-columns: 1fr;
    }

    .tier-visual {
        flex-direction: column;
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }
}

/* Why-dark section overrides (must be after base .value-item styles) */
.why-dark .value-item {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}
.why-dark .value-item:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
    box-shadow: none;
    transform: translateY(-2px);
}
.why-dark .value-icon {
    background: rgba(255,255,255,0.06);
    color: var(--accent-light);
}
.why-dark .value-item h4 {
    color: #fff;
}
.why-dark .value-item p {
    color: rgba(255,255,255,0.45);
}

/* Evidence Section — X-Files classified look */
.evidence-section {
    background: #0a0a0a;
    color: #fff;
}
.evidence-section h2 {
    color: #fff;
}
.evidence-section .section-lead {
    color: rgba(255,255,255,0.5);
}
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 1000px;
    margin: 2.5rem auto 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}
.evidence-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.evidence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #cc2222;
    transition: height 0.3s;
}
.evidence-card:hover {
    background: rgba(255,255,255,0.06);
}
.evidence-card:hover::before {
    height: 100%;
}
.evidence-source {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #cc2222;
}
.evidence-title {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}
.evidence-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    margin-top: auto;
    letter-spacing: 0.05em;
}
.evidence-date::before {
    content: 'FILED: ';
    color: rgba(255,255,255,0.15);
}

@media (max-width: 900px) {
    .evidence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .evidence-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-section {
    background: var(--bg-primary);
}
.faq-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-group {
    margin-bottom: 2rem;
}
.faq-group:last-child {
    margin-bottom: 0;
}
.faq-cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 0.25rem;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
    border-top: 1px solid var(--border);
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
}
.faq-q:hover {
    color: var(--accent);
}
.faq-q svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--text-muted);
}
.faq-item.open .faq-q svg {
    transform: rotate(180deg);
}
.faq-a {
    padding: 0 0 1.25rem;
}
.faq-a p {
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ==================== OpenClaw Intel View ==================== */

.openclaw-view {
    max-width: 1200px;
    margin: 0 auto;
}

.openclaw-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.openclaw-header h1 {
    margin: 0 0 0.25rem;
}

.openclaw-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.openclaw-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}

.openclaw-tabs button {
    padding: 0.6rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.openclaw-tabs button:hover {
    color: var(--accent);
}

.openclaw-tabs button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.v2-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v2-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.v2-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.v2-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.v2-section {
    margin-bottom: 1.5rem;
}

.v2-section h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.v2-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.v2-tag strong {
    color: var(--accent);
}

.v2-tag.small {
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
}

.v2-filter-row {
    margin-bottom: 1rem;
}

.v2-filter-row select,
.v2-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    min-width: 200px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: var(--bg-tertiary);
}

.data-table code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.825rem;
    padding: 0.1rem 0.35rem;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.threat-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.threat-class-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-tertiary);
}

.threat-class-badge.class-instruction_override { background: #fef3c7; color: #92400e; }
.threat-class-badge.class-tool_invocation { background: #fee2e2; color: #991b1b; }
.threat-class-badge.class-exfiltration { background: #fce7f3; color: #9d174d; }
.threat-class-badge.class-encoding_evasion { background: #ede9fe; color: #5b21b6; }
.threat-class-badge.class-memory_poisoning { background: #dbeafe; color: #1e40af; }
.threat-class-badge.class-privilege_escalation { background: #fef3c7; color: #b45309; }
.threat-class-badge.class-chain_injection { background: #fee2e2; color: #b91c1c; }

.confidence-bar {
    display: inline-block;
    width: 60px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 0.4rem;
    overflow: hidden;
}

.confidence-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
}

.phase-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-tertiary);
}

.phase-badge.phase-reconnaissance { background: #dbeafe; color: #1e40af; }
.phase-badge.phase-delivery { background: #fef3c7; color: #b45309; }
.phase-badge.phase-exploitation { background: #fee2e2; color: #991b1b; }
.phase-badge.phase-installation { background: #fce7f3; color: #9d174d; }
.phase-badge.phase-command_control { background: #ede9fe; color: #5b21b6; }

.severity-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.severity-badge.severity-critical { background: #fee2e2; color: #991b1b; }
.severity-badge.severity-high { background: #fef3c7; color: #b45309; }
.severity-badge.severity-medium { background: #dbeafe; color: #1e40af; }
.severity-badge.severity-low { background: var(--bg-tertiary); color: var(--text-secondary); }

.openclaw-table-view .empty-state,
.openclaw-overview .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.muted {
    color: var(--text-secondary);
    font-size: 0.8em;
}
