/* Ailokis Research Lab - Styles */

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-hover: #1a1a25;
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --brand: #D94D7A;
    --brand-light: #E87C9D;
    --border: #2a2a3a;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100vw;
}

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

a:hover {
    color: var(--text-primary);
}

/* Navigation */
.nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Main Content */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 48px 0 64px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 24px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.post-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.post-card a {
    color: inherit;
}

.post-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.post-summary {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.post-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: var(--bg-hover);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-secondary);
}

.empty-note {
    font-style: italic;
    margin-top: 12px;
    font-size: 14px;
}

/* Blog Post */
.blog-post {
    max-width: 700px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-header h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 24px;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 32px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.back-link {
    color: var(--text-secondary);
    font-size: 14px;
}

/* About Page */
.about-page {
    max-width: 700px;
    margin: 0 auto;
}

.about-page h1 {
    font-size: 36px;
    margin-bottom: 48px;
}

.about-section {
    margin-bottom: 48px;
}

.about-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--accent);
}

.about-section p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.about-section blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 24px 0;
    font-size: 18px;
    color: var(--text-primary);
    font-style: italic;
}

/* Pat Profile */
.about-pat {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.pat-profile {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pat-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.pat-info {
    flex: 1;
}

.pat-info p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.pat-info p:last-child {
    margin-bottom: 0;
}

.pat-info p strong {
    color: var(--text-primary);
    font-size: 16px;
}

@media (max-width: 600px) {
    .pat-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pat-image {
        width: 80px;
        height: 80px;
        margin-bottom: 8px;
    }
}

/* Contact Page */
.contact-page {
    max-width: 600px;
    margin: 0 auto;
}

.contact-page h1 {
    font-size: 36px;
    margin-bottom: 24px;
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #5558e3;
}

.contact-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Captcha */
.captcha-group {
    background: var(--bg-hover);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.captcha-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.captcha-icon {
    font-size: 20px;
}

.captcha-group input {
    margin-bottom: 8px;
}

.refresh-captcha {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-captcha:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Form Status */
.form-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-note {
    margin-top: 8px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .logo-text {
        font-size: 16px;
    }

    .post-header h1,
    .about-page h1,
    .contact-page h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 0;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-img {
        width: 24px;
        height: 24px;
    }
}

/* =============================================================================
   SAFETY SECTION STYLES
   ============================================================================= */

/* Logo Icon */
.logo-icon {
    height: 36px;
    width: 36px;
    max-height: 36px;
    max-width: 36px;
    min-height: 36px;
    min-width: 36px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo-icon.heartbeat-pulse {
    animation: heartbeat-pulse 0.4s ease-in-out;
}

@keyframes heartbeat-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Threat Level Colors */
:root {
    --threat-low: #10b981;
    --threat-guarded: #3b82f6;
    --threat-elevated: #f59e0b;
    --threat-high: #f97316;
    --threat-severe: #ef4444;
}

/* Safety Hero */
.safety-hero {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
    padding: 48px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.safety-hero h1 {
    font-size: 42px;
    margin: 24px 0 16px;
}

.safety-hero .hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Threat Badge */
.threat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.threat-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.threat-low { background: rgba(16, 185, 129, 0.15); color: var(--threat-low); border: 1px solid var(--threat-low); }
.threat-low .threat-indicator { background: var(--threat-low); }

.threat-guarded { background: rgba(59, 130, 246, 0.15); color: var(--threat-guarded); border: 1px solid var(--threat-guarded); }
.threat-guarded .threat-indicator { background: var(--threat-guarded); }

.threat-elevated { background: rgba(245, 158, 11, 0.15); color: var(--threat-elevated); border: 1px solid var(--threat-elevated); }
.threat-elevated .threat-indicator { background: var(--threat-elevated); }

.threat-high { background: rgba(249, 115, 22, 0.15); color: var(--threat-high); border: 1px solid var(--threat-high); }
.threat-high .threat-indicator { background: var(--threat-high); }

.threat-severe { background: rgba(239, 68, 68, 0.15); color: var(--threat-severe); border: 1px solid var(--threat-severe); }
.threat-severe .threat-indicator { background: var(--threat-severe); }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Safety Container */
.safety-container {
    padding-top: 48px;
}

/* Safety Stats */
.safety-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Safety Alert */
.safety-alert {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 48px;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content strong {
    color: var(--warning);
}

.alert-content p {
    margin-top: 4px;
    color: var(--text-secondary);
}

/* Safety Section */
.safety-section {
    margin-bottom: 64px;
}

.safety-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Safety Grid */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.safety-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    display: block;
    color: inherit;
}

.safety-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.safety-card.primary {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.safety-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.safety-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-action {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

/* Safety About */
.safety-about {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
}

.safety-about p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.author-note {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Dashboard Styles */
.dashboard-header {
    background: var(--bg-card);
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.dashboard-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-title h1 {
    font-size: 28px;
}

.dashboard-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.last-updated {
    font-size: 13px;
    color: var(--text-secondary);
}

.refresh-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.refresh-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Dashboard Container */
.dashboard-container {
    padding-top: 32px;
}

/* Threat Level Banner */
.threat-level-banner {
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.threat-level-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.threat-level-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.level-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.threat-low .level-dot { background: var(--threat-low); }
.threat-guarded .level-dot { background: var(--threat-guarded); }
.threat-elevated .level-dot { background: var(--threat-elevated); }
.threat-high .level-dot { background: var(--threat-high); }
.threat-severe .level-dot { background: var(--threat-severe); }

.level-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.threat-level-info strong {
    font-size: 18px;
}

.threat-level-info p {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: var(--accent);
}

.stat-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-trend {
    font-size: 11px;
    margin-top: 8px;
    color: var(--text-secondary);
}

.trend-up { color: var(--warning); }
.trend-critical { color: var(--error); }

/* Top Threat Box */
.top-threat-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
    border: 1px solid var(--error);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.top-threat-label {
    font-size: 11px;
    color: var(--error);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.top-threat-title {
    font-size: 18px;
    font-weight: 600;
}

/* Incidents Section */
.incidents-section {
    margin-bottom: 48px;
}

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

.incidents-header h2 {
    font-size: 20px;
}

.incidents-filter {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* Incident Cards */
.incidents-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.incident-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.incident-severity {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.severity-critical .incident-severity { background: rgba(239, 68, 68, 0.2); color: var(--error); }
.severity-high .incident-severity { background: rgba(249, 115, 22, 0.2); color: var(--threat-high); }
.severity-medium .incident-severity { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.severity-low .incident-severity { background: rgba(59, 130, 246, 0.2); color: var(--threat-guarded); }

.incident-content {
    flex: 1;
    padding: 16px;
}

.incident-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.incident-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.incident-source {
    margin-right: 16px;
}

.incident-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.incident-tag {
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-secondary);
}

.incident-link {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.incident-link:hover {
    color: var(--accent);
}

/* API Section */
.api-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.api-section h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.api-section > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.api-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-example {
    display: flex;
    align-items: center;
    gap: 16px;
}

.api-endpoint {
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.api-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Guide Pages */
.guide-header {
    background: var(--bg-card);
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
}

.guide-header .container {
    max-width: 900px;
    margin: 0 auto;
}

.guide-header h1 {
    font-size: 36px;
    margin-top: 16px;
}

.guide-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.guide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.guide-section {
    margin-bottom: 64px;
}

.guide-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.guide-section h3 {
    font-size: 18px;
    margin: 32px 0 16px;
}

.guide-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.primary-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 32px;
}

/* Code Blocks */
.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.code-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.copy-btn.copied {
    border-color: var(--success);
    color: var(--success);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
}

.code-block.bad {
    border-color: var(--error);
}

.code-block.attack {
    border-color: var(--warning);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.info-card h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: var(--accent);
}

.info-card p {
    font-size: 14px;
    margin: 0;
}

/* Warning Section */
.warning-section {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid var(--error);
    border-radius: 12px;
    padding: 24px;
}

.warning-section h2 {
    color: var(--error);
}

.warning-section ul {
    list-style: disc;
    padding-left: 24px;
    color: var(--text-secondary);
}

.warning-section li {
    margin-bottom: 8px;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

/* Next Steps */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.next-step-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.next-step-card:hover {
    border-color: var(--accent);
}

.next-icon {
    font-size: 32px;
}

.next-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.next-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Detection Page */
.detection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.detection-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.detection-severity {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.detection-card.severe .detection-severity {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.detection-card.high .detection-severity {
    background: rgba(249, 115, 22, 0.2);
    color: var(--threat-high);
}

.detection-card.medium .detection-severity {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.detection-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.detection-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.detection-example {
    background: var(--bg);
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
}

.detection-example code {
    font-size: 12px;
    color: var(--warning);
    display: block;
    margin-bottom: 4px;
}

.example-note {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Content Flags */
.content-flags {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flag-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.flag-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.flag-content h3 {
    font-size: 15px;
    margin: 0 0 4px 0;
}

.flag-content p {
    font-size: 13px;
    margin: 0;
}

.flag-content code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Attack Examples */
.attack-example {
    margin-bottom: 32px;
}

.attack-example h3 {
    font-size: 16px;
    color: var(--warning);
}

.attack-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Response Steps */
.response-steps {
    list-style: none;
    counter-reset: steps;
}

.response-steps li {
    counter-increment: steps;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.response-steps li::before {
    content: counter(steps);
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.response-steps li strong {
    display: block;
    margin-bottom: 4px;
}

.response-steps li p {
    margin: 0;
    font-size: 14px;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.tool-card h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
}

.tool-card p {
    font-size: 13px;
    margin: 0 0 12px 0;
}

.tool-card code {
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* CLAUDE.md Page */
.dont-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dont-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.dont-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.dont-content {
    flex: 1;
}

.dont-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--error);
}

.dont-content p {
    margin: 0 0 12px 0;
}

.danger-section h2 {
    color: var(--error);
}

/* Checklist */
.checklist {
    display: grid;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.check-item:hover {
    border-color: var(--accent);
}

.check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--success);
}

.check-item span {
    font-size: 14px;
}

/* Architecture Page */
.golden-rule {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    border: none;
    padding: 0;
    margin: 0 0 16px 0;
    text-align: center;
}

.trust-diagram {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
}

.trust-level {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-label {
    width: 120px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trust-items span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.trust-high { background: rgba(16, 185, 129, 0.15); }
.trust-high .trust-label { color: var(--success); }

.trust-medium { background: rgba(59, 130, 246, 0.15); }
.trust-medium .trust-label { color: var(--threat-guarded); }

.trust-low { background: rgba(245, 158, 11, 0.15); }
.trust-low .trust-label { color: var(--warning); }

.trust-none { background: rgba(239, 68, 68, 0.15); }
.trust-none .trust-label { color: var(--error); }

/* Architecture Checklist */
.architecture-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.check-category h3 {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

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

.comparison-table th {
    background: var(--bg-card);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.comparison-table td {
    font-size: 14px;
}

.risk-high { color: var(--error); }
.risk-medium { color: var(--warning); }
.risk-low { color: var(--success); }

/* Defense Layers */
.defense-layers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.defense-layer {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.layer-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.layer-content h3 {
    font-size: 16px;
    margin: 0 0 4px 0;
}

.layer-content p {
    font-size: 14px;
    margin: 0 0 8px 0;
}

.layer-content code {
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.layer-content a {
    font-size: 13px;
}

/* Quick Wins */
.quick-wins {
    counter-reset: wins;
    list-style: none;
}

.quick-wins li {
    counter-increment: wins;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.quick-wins li::before {
    content: counter(wins);
    width: 32px;
    height: 32px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.quick-wins li strong {
    display: block;
}

.quick-wins li span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.resource-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.resource-card:hover {
    border-color: var(--accent);
}

.resource-title {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.resource-author {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Container utility */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Responsive Safety */
@media (max-width: 768px) {
    .safety-hero h1 {
        font-size: 28px;
    }

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

    .threat-level-content {
        flex-direction: column;
        text-align: center;
    }

    .trust-level {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-label {
        width: auto;
    }
}

/* =============================================================================
   HOMEPAGE DASHBOARD STYLES
   ============================================================================= */

/* Dashboard Hero */
.dashboard-hero {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Threat Display */
.threat-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px;
    border-radius: 16px;
    position: relative;
    width: fit-content;
}

.threat-display.threat-severe {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--threat-severe);
}

.threat-display.threat-high {
    background: rgba(249, 115, 22, 0.1);
    border: 2px solid var(--threat-high);
}

.threat-display.threat-elevated {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--threat-elevated);
}

.threat-display.threat-guarded {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--threat-guarded);
}

.threat-display.threat-low {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--threat-low);
}

.threat-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 16px;
    animation: threat-pulse 2s ease-in-out infinite;
}

.threat-severe .threat-pulse { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
.threat-high .threat-pulse { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
.threat-elevated .threat-pulse { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }

@keyframes threat-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.02); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.threat-level-big {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 4px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.threat-severe .threat-level-big { color: var(--threat-severe); }
.threat-high .threat-level-big { color: var(--threat-high); }
.threat-elevated .threat-level-big { color: var(--threat-elevated); }
.threat-guarded .threat-level-big { color: var(--threat-guarded); }
.threat-low .threat-level-big { color: var(--threat-low); }

.threat-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.dashboard-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 24px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 100px;
}

.hero-stat.critical {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.hero-stat .stat-number {
    font-size: 32px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: var(--accent);
}

.hero-stat.critical .stat-number {
    color: var(--error);
}

.hero-stat .stat-suffix {
    font-size: 20px;
    font-weight: 700;
    color: inherit;
}

.hero-stat .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alert Banner */
.alert-banner {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.alert-banner .alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon {
    font-size: 18px;
}

.alert-text {
    flex: 1;
    font-size: 14px;
}

.alert-action {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

/* Dashboard Main Layout */
.dashboard-main {
    padding: 32px 0;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

/* Feed Section */
.feed-section {
    min-width: 0;
}

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

.section-header h2 {
    font-size: 18px;
    margin: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* News Feed (HN Style) */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

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

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

.news-rank {
    width: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.news-title:hover {
    color: var(--accent);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.news-severity {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-severity.critical { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.news-severity.high { background: rgba(249, 115, 22, 0.15); color: var(--threat-high); }
.news-severity.medium { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.news-severity.low { background: rgba(59, 130, 246, 0.15); color: var(--threat-guarded); }

.feed-empty {
    padding: 48px;
    text-align: center;
    color: var(--text-secondary);
}

/* Panels Section */
.panels-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.panel-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

/* Action Buttons */
.panel-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--accent);
}

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

.action-icon {
    font-size: 24px;
}

.action-text {
    display: flex;
    flex-direction: column;
}

.action-text strong {
    font-size: 14px;
}

.action-text small {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Metric List */
.metric-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Resource List */
.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.resource-list li {
    margin-bottom: 8px;
}

.resource-list a {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s;
}

.resource-list a:hover {
    color: var(--text-primary);
}

/* API Panel */
.api-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-endpoint-small {
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.api-link {
    font-size: 13px;
    color: var(--accent);
}

/* Writings Section */
.writings-section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

.see-all {
    font-size: 14px;
    color: var(--accent);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .panels-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-stats {
        justify-content: center;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .panels-section {
        grid-template-columns: 1fr;
    }

    .alert-banner .alert-content {
        flex-wrap: wrap;
    }

    .alert-action {
        width: 100%;
        text-align: right;
    }
}

/* =============================================================================
   LIBRARY SECTION STYLES
   ============================================================================= */

.library-header {
    background: var(--bg-card);
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.library-header h1 {
    font-size: 32px;
    margin: 16px 0 8px;
}

.library-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.library-container {
    padding: 48px 0;
}

.library-section {
    margin-bottom: 48px;
}

.library-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.back-link {
    font-size: 14px;
    color: var(--text-secondary);
}

.back-link:hover {
    color: var(--accent);
}

/* =============================================================================
   NEW DASHBOARD STYLES - Splunk/Datadog Inspired
   ============================================================================= */

/* Dashboard Header */
.dash-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.dash-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-title-section h1 {
    font-size: 24px;
    margin: 0;
}

.dash-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.update-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Dashboard Container */
.dash-container {
    padding: 24px 0;
    width: 100%;
    overflow-x: hidden;
}

/* Dashboard Grid */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

/* Dashboard Cards */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
    min-width: 0;
    word-wrap: break-word;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

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

.card-header .card-title {
    margin: 0;
}

/* === GAUGE CARD === */
.gauge-card {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.gauge-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
}

.threat-gauge {
    width: 100%;
    height: 100%;
}

.gauge-bg {
    stroke: var(--bg-hover);
}

.gauge-value {
    stroke-linecap: round;
}

.gauge-glow {
    stroke-linecap: round;
    opacity: 0.3;
    filter: blur(4px);
}

/* Gauge colors */
.gauge-severe { stroke: var(--threat-severe); }
.gauge-high { stroke: var(--threat-high); }
.gauge-elevated { stroke: var(--threat-elevated); }
.gauge-guarded { stroke: var(--threat-guarded); }
.gauge-low { stroke: var(--threat-low); }

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-level {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.gauge-text-severe { color: var(--threat-severe); text-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
.gauge-text-high { color: var(--threat-high); text-shadow: 0 0 20px rgba(249, 115, 22, 0.5); }
.gauge-text-elevated { color: var(--threat-elevated); text-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
.gauge-text-guarded { color: var(--threat-guarded); }
.gauge-text-low { color: var(--threat-low); }

.gauge-label {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-top: 2px;
}

.gauge-reason {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 12px;
}

/* === STATS CARD === */
.stats-card {
    grid-column: span 5;
}

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

.stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.stat-box.critical {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.stat-icon {
    font-size: 24px;
}

.stat-data {
    flex: 1;
}

.stat-num {
    font-size: 24px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: var(--text-primary);
}

.stat-box.critical .stat-num {
    color: var(--error);
}

.stat-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-name {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sparkline {
    flex-shrink: 0;
}

/* === ALERT CARD === */
.alert-card {
    grid-column: span 4;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-card) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    display: flex;
    flex-direction: column;
}

.alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: alert-pulse 2s ease-in-out infinite;
}

@keyframes alert-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.alert-body {
    flex: 1;
    margin: 16px 0;
}

.alert-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.alert-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.alert-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--error);
}

.alert-cta:hover {
    color: var(--text-primary);
}

/* === CHART CARD === */
.chart-card {
    grid-column: span 4;
}

.chart-wrapper {
    height: 160px;
    position: relative;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* === FEED CARD === */
.feed-card {
    grid-column: span 5;
}

.incident-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.incident-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.incident-row:hover {
    border-color: var(--accent);
}

.incident-severity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 40px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.severity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.severity-critical .severity-dot { background: var(--error); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.severity-high .severity-dot { background: var(--threat-high); }
.severity-medium .severity-dot { background: var(--warning); }
.severity-low .severity-dot { background: var(--threat-guarded); }

.incident-info {
    flex: 1;
    min-width: 0;
}

.incident-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.incident-title:hover {
    color: var(--accent);
}

.incident-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.feed-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

/* === ACTIONS CARD === */
.actions-card {
    grid-column: span 3;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.action-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.action-tile.primary {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.tile-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.tile-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.tile-desc {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* === ATLAS CARD === */
.atlas-card {
    grid-column: span 4;
}

.atlas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.atlas-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.atlas-item.active {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.atlas-id {
    font-size: 10px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: var(--accent);
    font-weight: 600;
}

.atlas-item.active .atlas-id {
    color: var(--error);
}

.atlas-name {
    font-size: 12px;
    color: var(--text-primary);
}

.atlas-link {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--accent);
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--success);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* === TERMINAL CARD === */
.terminal-card {
    grid-column: span 8;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--success);
    letter-spacing: 1px;
}

.terminal-blink {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: terminal-blink 1s step-end infinite;
}

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

.terminal-window {
    background: #0d0d12;
    border-radius: 8px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.terminal-time {
    color: #4a5568;
    flex-shrink: 0;
}

.terminal-source {
    color: var(--accent);
    flex-shrink: 0;
}

.terminal-msg {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.severity-text-critical { color: var(--error); }
.severity-text-high { color: var(--threat-high); }
.severity-text-medium { color: var(--warning); }
.severity-text-low { color: var(--success); }

/* === SOURCES CARD === */
.sources-card {
    grid-column: span 4;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
}

.source-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.source-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
}

.source-status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.source-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.source-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.sources-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-secondary);
}

/* === TREND CARD === */
.trend-card {
    grid-column: span 4;
}

.trend-wrapper {
    height: 120px;
}

/* === PARTICLE BACKGROUND === */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

/* Pulse update animation */
.pulse-update {
    animation: badge-pulse 1s ease-out;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
    100% { transform: scale(1); }
}

/* Responsive Dashboard Grid */
@media (max-width: 1200px) {
    .dash-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .gauge-card { grid-column: span 2; }
    .stats-card { grid-column: span 4; }
    .alert-card { grid-column: span 3; }
    .chart-card { grid-column: span 3; }
    .feed-card { grid-column: span 4; }
    .actions-card { grid-column: span 2; }
    .atlas-card { grid-column: span 6; }
    .terminal-card { grid-column: span 6; }
    .sources-card { grid-column: span 3; }
    .trend-card { grid-column: span 3; }
}

@media (max-width: 768px) {
    .dash-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gauge-card,
    .stats-card,
    .alert-card,
    .chart-card,
    .feed-card,
    .actions-card,
    .atlas-card,
    .terminal-card,
    .sources-card,
    .trend-card {
        grid-column: span 1;
    }

    .terminal-window {
        max-height: 150px;
        font-size: 10px;
    }

    .terminal-line {
        flex-wrap: wrap;
    }

    .source-item {
        padding: 8px 10px;
    }

    .source-name {
        font-size: 12px;
    }

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

    .stat-box {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .stat-icon {
        font-size: 22px;
        flex-shrink: 0;
    }

    .stat-data {
        flex: 1;
        min-width: 0;
    }

    .stat-num {
        font-size: 20px;
    }

    .stat-name {
        font-size: 11px;
    }

    .sparkline {
        width: 50px !important;
        height: 24px !important;
        flex-shrink: 0;
    }

    .dash-header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .dash-header h1 {
        font-size: 22px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* Gauge Mobile */
    .gauge-wrapper {
        max-width: 200px;
        margin: 0 auto;
    }

    .gauge-level {
        font-size: 24px;
    }

    .gauge-reason {
        font-size: 12px;
    }

    /* Chart Mobile */
    .chart-wrapper {
        height: 140px;
    }

    .chart-legend {
        gap: 8px;
    }

    .legend-item {
        font-size: 10px;
    }

    /* Feed Mobile */
    .incident-feed {
        max-height: 280px;
    }

    .incident-row {
        padding: 10px;
        gap: 10px;
    }

    .incident-title {
        font-size: 12px;
    }

    .incident-meta {
        font-size: 10px;
    }

    /* Actions Mobile */
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .action-tile {
        padding: 14px 10px;
    }

    .tile-icon {
        font-size: 22px;
    }

    .tile-label {
        font-size: 11px;
    }

    .tile-desc {
        font-size: 9px;
    }

    /* Atlas Mobile */
    .atlas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .atlas-item {
        padding: 10px;
    }

    .atlas-id {
        font-size: 10px;
    }

    .atlas-name {
        font-size: 11px;
    }

    /* Card titles */
    .card-title {
        font-size: 13px;
    }

    .dash-container {
        padding: 16px 12px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .dash-header {
        padding: 16px 0;
    }

    .dash-header h1 {
        font-size: 18px;
    }

    .live-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .update-time {
        font-size: 11px;
    }

    .stat-box {
        padding: 10px 14px;
    }

    .stat-num {
        font-size: 18px;
    }

    .sparkline {
        width: 40px !important;
        height: 20px !important;
    }

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

    .gauge-wrapper {
        max-width: 160px;
    }

    .gauge-level {
        font-size: 20px;
    }

    .gauge-label {
        font-size: 9px;
    }

    .alert-title {
        font-size: 15px;
    }

    .alert-desc {
        font-size: 12px;
    }

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

    .container {
        padding: 0 12px;
    }

    /* Prevent any overflow */
    .dash-card,
    .stat-box,
    .incident-row,
    .action-tile,
    .atlas-item {
        max-width: 100%;
    }

    .incident-title {
        word-break: break-word;
    }

    .gauge-reason {
        word-break: break-word;
    }
}

/* Global mobile overflow prevention */
@media (max-width: 768px) {
    img, svg, canvas {
        max-width: 100%;
        height: auto;
    }

    pre, code {
        overflow-x: auto;
        max-width: 100%;
    }
}

/* =============================================================================
   LOGO HEARTBEAT ANIMATION
   ============================================================================= */

.logo-heartbeat {
    flex-shrink: 0;
}

.hb-pulse {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0;
    transition: none;
}

.hb-pulse.beating {
    animation: heartbeat-pulse 0.6s ease-out;
}

.hb-core {
    transition: transform 0.1s ease;
}

.hb-pulse.beating + .hb-core,
.beating ~ .hb-core {
    animation: heartbeat-core 0.6s ease-out;
}

@keyframes heartbeat-pulse {
    0% {
        stroke-dashoffset: 100;
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
        transform: scale(1.3);
    }
}

@keyframes heartbeat-core {
    0% { transform: scale(1); }
    20% { transform: scale(1.3); }
    40% { transform: scale(1); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Logo text group */
.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--brand);
    opacity: 0.7;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =============================================================================
   MOBILE NAVIGATION (APP-STYLE)
   ============================================================================= */

.mobile-header {
    display: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
}

.mobile-nav {
    display: none;
    grid-template-columns: repeat(5, 1fr);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item:hover {
    color: var(--text-primary);
}

.mobile-nav-icon {
    font-size: 20px;
    line-height: 1;
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Mobile: Show mobile nav, hide desktop nav */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav {
        display: grid;
    }

    .main {
        padding-bottom: 70px; /* Space for bottom nav */
    }

    .footer {
        padding-bottom: 80px; /* Space for bottom nav */
    }
}

/* Desktop: Hide mobile elements */
@media (min-width: 769px) {
    .mobile-header,
    .mobile-nav {
        display: none !important;
    }
}

/* =============================================================================
   ABOUT PAGE
   ============================================================================= */

.about-header {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.about-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.about-tagline {
    color: var(--text-secondary);
    font-size: 18px;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.about-section {
    margin-bottom: 48px;
}

.about-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-section > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Pillars Grid */
.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.pillar-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.pillar h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pillar p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Axiom Section */
.axiom-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.axiom-quote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.axiom-translation {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: normal;
    margin-top: 8px;
}

/* Team Cards */
.team-card {
    display: flex;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.team-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    position: relative;
    z-index: 1;
}

.team-photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: photo-glow 3s ease-in-out infinite alternate;
}

@keyframes photo-glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.team-info h3 {
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.team-role {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 16px !important;
}

.team-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Ailokis Card */
.ailokis-card {
    border-color: rgba(99, 102, 241, 0.3);
}

.ailokis-avatar {
    width: 140px;
    height: 140px;
}

.ailokis-pulse {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: ailokis-pulse 2s ease-in-out infinite;
}

@keyframes ailokis-pulse {
    0% { stroke-dashoffset: 283; opacity: 1; }
    50% { stroke-dashoffset: 0; opacity: 0.5; }
    100% { stroke-dashoffset: 283; opacity: 1; }
}

.about-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.about-link:hover {
    background: #4f46e5;
    color: white;
}

/* Responsive About */
@media (max-width: 768px) {
    .about-header h1 {
        font-size: 32px;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .team-photo-wrapper {
        margin: 0 auto;
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .ailokis-avatar {
        width: 120px;
        height: 120px;
    }
}

/* =============================================================================
   RESEARCH & REFLECTIONS PAGES
   ============================================================================= */

.section-header {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.section-header h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
}

.reflections-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--bg) 100%);
}

.section-container {
    padding: 48px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Featured Paper Card */
.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.featured-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 16px;
}

.featured-card h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.featured-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
}

.featured-desc {
    line-height: 1.8;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.featured-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.topic-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
}

.coming-soon {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 14px;
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.theme-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}

.theme-card:hover {
    border-color: var(--accent);
}

.theme-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.theme-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.theme-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Author Section */
.author-card {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.author-title {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 12px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.author-location {
    font-style: italic;
}

/* Reflections Cards */
.intro-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.ailokis-quote {
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.quote-context {
    color: var(--text-secondary);
    font-size: 14px;
}

.reflection-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.reflection-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
}

.reflection-date {
    color: var(--text-secondary);
}

.reflection-type {
    color: var(--accent);
}

.reflection-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.reflection-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.reflection-card p:last-child {
    margin-bottom: 0;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        padding: 32px 0;
    }

    .section-header h1 {
        font-size: 28px;
    }

    .section-container {
        padding: 32px 16px;
    }

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

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-img {
        margin: 0 auto;
    }

    .featured-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}
