/* ==========================================================================
   SENTINEL ZERO STYLE SYSTEM v5 — Glassmorphism & Cyberpunk Premium
   ========================================================================== */

:root {
    --bg-dark: #020407;
    --bg-panel: rgba(4, 8, 18, 0.90);
    --border-color: rgba(6, 182, 212, 0.12);
    --border-hover: rgba(6, 182, 212, 0.28);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --color-primary: #06b6d4;      /* Cyber Cyan */
    --color-accent: #f43f5e;       /* Neon Rose */
    --color-success: #10b981;      /* Emerald Green */
    --color-warning: #f59e0b;      /* Amber Yellow */
    --color-danger: #ef4444;       /* Ruby Red */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --card-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(6, 182, 212, 0.06);
    --glow-primary: 0 0 20px rgba(6, 182, 212, 0.3);
}

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

html {
    background-color: var(--bg-dark);
}

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Premium Background Aesthetics --- */
.glass-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.glowing-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, transparent 70%);
}

/* --- Main Layout Container --- */
.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

/* --- Header System --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    pointer-events: all;
    position: relative;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-success);
}

.pulse {
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--color-success); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.system-mode-badge {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.system-mode-badge.sift {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--color-accent);
}

/* --- Scrollytelling Viewport & Layout --- */
.scroll-spacer {
    height: 1000vh;
    width: 100%;
    position: relative; /* CRITICAL: must be in-flow to give body scroll height */
    pointer-events: none;
    z-index: 0;
}

.app-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    pointer-events: none; /* Allows scrolling through to the body spacer */
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--bg-dark);
    pointer-events: none;
    will-change: contents;
    image-rendering: auto;
}

.scrolly-container {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.scroll-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-split {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1600px;
    height: 100%;
    max-height: calc(100vh - 120px);
    margin: 0 auto;
}

/* --- Intro / Welcome Card Styling --- */
.intro-card {
    max-width: 650px;
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform-origin: bottom center;
}

.intro-card .card-header {
    width: 100%;
}


.intro-card h2 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-primary), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.intro-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 4px 0;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.stat-pill:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.intro-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.badge-accent {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--color-accent);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scroll-hint {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.bounce {
    animation: bounce 1.8s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --- Glass Panel Base (shared by all major cards) --- */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    box-shadow: var(--card-shadow);
}

/* ============================================================
   MINIMIZE BUTTON — Native Dark Theme
   ============================================================ */
.btn-minimize {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: auto;
}

.btn-minimize:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-minimize i {
    font-size: 0.85rem;
}

/* Minimized card — collapses in place */
.minimized-card {
    transform: scale(0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

/* Hide all children of minimized cards except the minimize button */
.minimized-card > *:not(.btn-minimize) {
    display: none;
}

/* --- Navigation & Tabs --- */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 12px;
}

.nav-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.nav-tab.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
    flex: 1;
    min-height: 0;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* --- Cards & Glass Panels --- */
.panel-card, .console-card, .runbook-card {
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform-origin: bottom center;
}

.panel-card {
    flex: 1;
    min-height: 0;
}

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

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0; /* Header handles bottom margin now */
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* --- Alerts List System --- */
.alerts-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 4px;
}

.alert-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.alert-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Severity left border */
.alert-item.severity-critical { border-left: 3px solid #ef4444; }
.alert-item.severity-critical::before { background-color: var(--color-danger); }
.alert-item.severity-high { border-left: 3px solid #f59e0b; }
.alert-item.severity-high::before { background-color: var(--color-accent); }
.alert-item.severity-medium { border-left: 3px solid #06b6d4; }
.alert-item.severity-medium::before { background-color: var(--color-warning); }
.alert-item.severity-low { border-left: 3px solid #10b981; }

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

.alert-sig {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.alert-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.alert-badge.critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.alert-badge.high     { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.alert-badge.medium   { background: rgba(6, 182, 212, 0.2);  color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.4); }
.alert-badge.low      { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }

.alert-meta-row {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.alert-meta-row span i {
    margin-right: 4px;
    color: var(--color-primary);
}

/* --- Forensic Targets & Input --- */
.forensics-targets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.target-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.target-row:hover {
    background: rgba(6, 182, 212, 0.07);
    border-color: rgba(6, 182, 212, 0.25);
}

.target-row.active {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.target-icon {
    font-size: 1.4rem;
    color: var(--color-primary);
    opacity: 0.8;
    min-width: 24px;
    text-align: center;
}

.target-row.active .target-icon {
    color: var(--color-accent);
    opacity: 1;
}

.target-name {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 600;
}

.target-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.target-info {
    display: flex;
    flex-direction: column;
}

.task-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.task-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.task-input-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    resize: none;
    height: 80px;
    transition: border-color 0.3s;
}

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

/* --- Buttons --- */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    background: #22d3ee;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.btn-accent:hover {
    background: #fb7185;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.5);
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn:disabled,
.btn-primary:disabled,
.btn-accent:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    filter: saturate(0.4);
}

.action-footer {
    display: flex;
    justify-content: flex-end;
}

/* --- Right Panel Cards --- */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.border-yellow { border-bottom-color: rgba(245, 158, 11, 0.3); }
.border-green { border-bottom-color: rgba(16, 185, 129, 0.3); }

.color-yellow { color: var(--color-warning); }
.color-green { color: var(--color-success); }

.console-actions {
    display: flex;
    gap: 8px;
}

.console-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.console-badge.confidence {
    color: var(--color-primary);
    border-color: rgba(6, 182, 212, 0.2);
}

/* --- Live Console mindstream --- */
.console-card {
    flex: 1;
    min-height: 380px;
}

.console-output {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
}

.console-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    gap: 10px;
    padding: 40px;
}

.logo-icon-large {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.console-placeholder .sub {
    font-size: 0.75rem;
}

/* Stream formatting */
.log-line {
    border-left: 2px solid var(--color-primary);
    padding-left: 12px;
    animation: slideIn 0.3s ease-out;
}

.log-line.tool-call {
    border-color: var(--color-accent);
}

.log-line.tool-result {
    border-color: var(--color-success);
    background: rgba(16, 185, 129, 0.02);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
}

.log-line.self-correction {
    border-color: var(--color-warning);
    background: rgba(245, 158, 11, 0.02);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
}

.log-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-right: 8px;
}

.log-tag {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-right: 8px;
}

.log-tag.info { color: var(--color-primary); }
.log-tag.tool { color: var(--color-accent); }
.log-tag.result { color: var(--color-success); }
.log-tag.correct { color: var(--color-warning); }

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

/* --- Self Correction Inspector --- */
.correction-card {
    margin-top: 10px;
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform-origin: bottom center;
}

.correction-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.col-lbl {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.col-content {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    min-height: 80px;
    white-space: pre-wrap;
    font-family: var(--font-mono);
    overflow-y: auto;
    overflow-x: hidden;
    word-break: break-word;
}

.text-danger { color: #fca5a5; border-color: rgba(239, 104, 104, 0.2); }
.text-success { color: #a7f3d0; border-color: rgba(16, 185, 129, 0.2); }

.status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-tag.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* --- Runbook markdown card --- */
.runbook-card {
    margin-top: 10px;
}

.runbook-body {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.markdown-body h1 { font-size: 1.4rem; color: #ffffff; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.markdown-body h2 { font-size: 1.15rem; color: var(--color-primary); }
.markdown-body h3 { font-size: 1rem; color: #ffffff; }

.markdown-body p {
    margin-bottom: 12px;
    color: #e2e8f0;
}

.markdown-body ul, .markdown-body ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.markdown-body li {
    margin-bottom: 6px;
    color: #e2e8f0;
}

/* --- Loading States & Spinner --- */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 150px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hide {
    display: none !important;
}

.forensics-art-container {
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.forensics-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* --- Dock System --- */
.app-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    pointer-events: none;
    align-items: flex-end;
}

.dock-orb {
    width: auto;
    min-width: 54px;
    height: 54px;
    padding: 0 14px;
    border-radius: 27px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: all;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dock-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.dock-orb:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
    color: #ffffff;
}

.dock-orb:hover .dock-label {
    color: var(--text-primary);
}

@keyframes popIn {
    0% { transform: scale(0) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ============================================================
   SECTION 5 — ABOUT / PROJECT SHOWCASE
   ============================================================ */
#sec-about {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    width: 100%;
    max-width: 1320px;
    height: 100%;
    max-height: calc(100vh - 120px);
}

/* Tech showcase card */
.about-tech {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.about-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(244, 63, 94, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.about-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-warning);
    margin-bottom: 4px;
}

.about-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
}

.tech-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-section-label i {
    color: var(--color-primary);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: default;
}

.tech-pill.primary {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-primary);
}

.tech-pill.primary:hover {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.tech-pill.secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.tech-pill.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-icon {
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.85rem;
}

/* Right column */
.about-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Developer card */
.about-dev {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    background: linear-gradient(135deg, rgba(4, 8, 18, 0.95), rgba(6, 182, 212, 0.04)) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
}

.dev-avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #818cf8);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}

.dev-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
}

.dev-role {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.dev-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.dev-github {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: var(--font-mono);
}

.dev-github:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.dev-link-icon {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Mission card */
.about-mission {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, rgba(4, 8, 18, 0.95), rgba(129, 140, 248, 0.04)) !important;
    border-color: rgba(129, 140, 248, 0.2) !important;
}

.mission-icon {
    font-size: 1.8rem;
    color: #818cf8;
    filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.4));
}

.mission-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.mission-body {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.mission-tagline {
    font-size: 0.78rem;
    font-weight: 600;
    color: #818cf8;
    letter-spacing: 0.5px;
    font-style: italic;
    border-top: 1px solid rgba(129, 140, 248, 0.15);
    padding-top: 10px;
    margin-top: 4px;
}
