/* mang.quest // cyberpunk data-viz dashboard */

:root {
    --bg-deep: #0a0f1a;
    --bg-node: #0d1525;
    --signal-green: #00e6b4;
    --data-blue: #4a90d9;
    --terminal-light: #c0c8d4;
    --alert-red: #ff4757;
    --panel-surface: #1a2540;

    --font-display: 'Orbitron', 'Inter', sans-serif;
    --font-body: 'Exo 2', 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;

    --status-h: 32px;
    --glow-soft: 0 0 8px rgba(0, 230, 180, 0.2);
    --glow-strong: 0 0 16px rgba(0, 230, 180, 0.35);
    --panel-border: 1px solid rgba(0, 230, 180, 0.15);
    --panel-shadow: inset 0 0 12px rgba(0, 230, 180, 0.05), 0 0 8px rgba(0, 230, 180, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--terminal-light);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--status-h);
    background-image:
        radial-gradient(circle at 20% 10%, rgba(0, 230, 180, 0.08), transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(74, 144, 217, 0.06), transparent 50%);
}

/* Subtle grid texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 230, 180, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 180, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 1;
}

/* ==== STATUS BAR ==== */
.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--status-h);
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 230, 180, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--terminal-light);
    box-shadow: 0 0 20px rgba(0, 230, 180, 0.08);
}

.status-left, .status-center, .status-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.status-center {
    overflow: hidden;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--signal-green);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal-green);
    box-shadow: 0 0 8px var(--signal-green);
    animation: pulse 2s ease-in-out infinite;
}

.status-divider {
    color: rgba(0, 230, 180, 0.35);
}

.status-label {
    color: rgba(192, 200, 212, 0.55);
}

.status-value {
    color: var(--signal-green);
    text-shadow: 0 0 6px rgba(0, 230, 180, 0.45);
}

.status-blink {
    width: 8px;
    height: 8px;
    background: var(--signal-green);
    box-shadow: 0 0 6px var(--signal-green);
    animation: blink 1.2s steps(2, end) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ==== HERO ==== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--status-h));
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #060a13 0%, #0a0f1a 60%, #0d1525 100%);
    display: flex;
    align-items: center;
    padding: 60px clamp(20px, 5vw, 80px);
    z-index: 2;
}

.node-graph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.node-graph .edge {
    stroke: rgba(0, 230, 180, 0.18);
    stroke-width: 1;
    fill: none;
    transition: stroke-opacity 0.4s ease;
}

.node-graph .edge.hot {
    stroke: rgba(0, 230, 180, 0.55);
    stroke-width: 1.2;
}

.node-graph .node-circle {
    fill: var(--signal-green);
    filter: drop-shadow(0 0 4px var(--signal-green));
}

.node-graph .node-circle.alt {
    fill: var(--data-blue);
    filter: drop-shadow(0 0 4px var(--data-blue));
}

.node-graph .node-pulse {
    fill: none;
    stroke: rgba(0, 230, 180, 0.4);
    stroke-width: 1;
}

.scanlines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(0, 230, 180, 0.03) 0px,
        rgba(0, 230, 180, 0.03) 1px,
        transparent 1px,
        transparent 4px
    );
    mix-blend-mode: screen;
    opacity: 0.4;
}

.hero-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid var(--signal-green);
    z-index: 3;
    box-shadow: 0 0 8px rgba(0, 230, 180, 0.5);
}
.hero-corner.top-left { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.hero-corner.top-right { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.hero-corner.bottom-left { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.hero-corner.bottom-right { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 760px;
    width: 100%;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--signal-green);
    letter-spacing: 0.18em;
    margin-bottom: 28px;
    display: inline-flex;
    gap: 10px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 230, 180, 0.3);
    background: rgba(0, 230, 180, 0.05);
    text-shadow: 0 0 8px rgba(0, 230, 180, 0.4);
}

.eyebrow-bracket {
    color: var(--signal-green);
    opacity: 0.6;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--terminal-light);
    line-height: 1.05;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    letter-spacing: -0.01em;
    color: var(--terminal-light);
    text-shadow: 0 0 24px rgba(0, 230, 180, 0.25);
}

.title-dot {
    color: var(--signal-green);
    text-shadow: 0 0 12px var(--signal-green);
    display: inline-block;
    animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

.title-sub {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    letter-spacing: 0.32em;
    color: var(--data-blue);
    margin-top: 18px;
    opacity: 0.85;
}

.hero-desc {
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(192, 200, 212, 0.78);
    margin-bottom: 32px;
}

.hero-readout {
    background: rgba(13, 21, 37, 0.6);
    border: 1px solid rgba(0, 230, 180, 0.2);
    padding: 16px 20px;
    margin-bottom: 32px;
    max-width: 420px;
    box-shadow: var(--glow-soft);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.readout-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 230, 180, 0.12);
}
.readout-row:last-child { border-bottom: none; }

.readout-key { color: rgba(192, 200, 212, 0.55); }
.readout-val {
    color: var(--signal-green);
    text-shadow: 0 0 6px rgba(0, 230, 180, 0.4);
}
.readout-val.pulse-val { animation: pulseFade 2.4s ease-in-out infinite; }

@keyframes pulseFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.action-btn {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    padding: 14px 26px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--terminal-light);
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.action-btn.primary {
    background: rgba(0, 230, 180, 0.1);
    border: 1px solid var(--signal-green);
    color: var(--signal-green);
    box-shadow: var(--glow-soft);
}

.action-btn.primary:hover {
    background: rgba(0, 230, 180, 0.22);
    box-shadow: var(--glow-strong);
    transform: translateY(-1px);
}

.action-btn.ghost {
    border: 1px solid rgba(74, 144, 217, 0.45);
    color: var(--data-blue);
    background: transparent;
}

.action-btn.ghost:hover {
    background: rgba(74, 144, 217, 0.1);
    border-color: var(--data-blue);
    box-shadow: 0 0 8px rgba(74, 144, 217, 0.4);
}

.btn-bracket {
    font-family: var(--font-mono);
    opacity: 0.7;
}

.btn-arrow {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.action-btn.ghost:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==== SECTION HEADER ==== */
.panels-section {
    position: relative;
    padding: 80px clamp(20px, 4vw, 60px) 60px;
    z-index: 3;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 230, 180, 0.15);
}

.section-marker {
    width: 12px;
    height: 12px;
    background: var(--signal-green);
    box-shadow: 0 0 10px var(--signal-green);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.04em;
    color: var(--terminal-light);
}

.section-title-accent {
    color: var(--signal-green);
    text-shadow: 0 0 10px rgba(0, 230, 180, 0.5);
}

.section-meta {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(192, 200, 212, 0.45);
    letter-spacing: 0.1em;
}

/* ==== PANEL GRID (MASONRY) ==== */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 180px;
    gap: 16px;
    position: relative;
}

.panel {
    position: relative;
    background: rgba(26, 37, 64, 0.8);
    border: var(--panel-border);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 22px 22px 18px;
    overflow: hidden;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.95) translateY(8px);
    animation: panelEnter 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
    animation-delay: var(--delay, 0ms);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.panel.span-2 { grid-row: span 2; }

@keyframes panelEnter {
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.panel:hover {
    border-color: rgba(0, 230, 180, 0.45);
    box-shadow:
        inset 0 0 16px rgba(0, 230, 180, 0.08),
        0 0 16px rgba(0, 230, 180, 0.25);
    transform: translateY(-2px);
}

.panel.alert {
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow:
        inset 0 0 12px rgba(255, 71, 87, 0.08),
        0 0 8px rgba(255, 71, 87, 0.15);
}

.panel.alert:hover {
    border-color: rgba(255, 71, 87, 0.55);
    box-shadow:
        inset 0 0 16px rgba(255, 71, 87, 0.12),
        0 0 18px rgba(255, 71, 87, 0.3);
}

.panel-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--signal-green);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
}
.panel-corner.tl { top: 6px; left: 6px; border-top-width: 1px; border-left-width: 1px; }
.panel-corner.tr { top: 6px; right: 6px; border-top-width: 1px; border-right-width: 1px; }
.panel-corner.bl { bottom: 6px; left: 6px; border-bottom-width: 1px; border-left-width: 1px; }
.panel-corner.br { bottom: 6px; right: 6px; border-bottom-width: 1px; border-right-width: 1px; }

.panel.alert .panel-corner { border-color: var(--alert-red); }

.panel-pulse {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--signal-green);
    box-shadow: 0 0 6px var(--signal-green);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}
.panel-pulse.alert-pulse {
    background: var(--alert-red);
    box-shadow: 0 0 6px var(--alert-red);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.panel-id {
    color: rgba(192, 200, 212, 0.45);
}

.panel-tag {
    padding: 2px 8px;
    border: 1px solid currentColor;
    text-transform: uppercase;
    border-radius: 2px;
}

.accent-green { color: var(--signal-green); }
.accent-blue { color: var(--data-blue); }
.accent-red { color: var(--alert-red); }

.panel-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--terminal-light);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.panel-text {
    font-size: 0.88rem;
    color: rgba(192, 200, 212, 0.72);
    line-height: 1.65;
}

.panel-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 230, 180, 0.12);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.76rem;
}
.foot-label { color: rgba(192, 200, 212, 0.5); }
.foot-value { color: var(--signal-green); }

/* Mini graph inside panel */
.panel-graph {
    flex: 1;
    margin-top: 14px;
    position: relative;
    min-height: 100px;
    background:
        radial-gradient(circle at 30% 50%, rgba(0, 230, 180, 0.08), transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(74, 144, 217, 0.08), transparent 40%);
    border-radius: 4px;
    overflow: hidden;
}
.panel-graph svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Bar stack */
.bar-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}
.bar-row {
    display: grid;
    grid-template-columns: 36px 1fr 44px;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.bar-key { color: rgba(192, 200, 212, 0.55); }
.bar-val { color: var(--terminal-light); text-align: right; }
.bar-track {
    height: 6px;
    background: rgba(13, 21, 37, 0.8);
    border: 1px solid rgba(0, 230, 180, 0.12);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.bar-fill {
    height: 100%;
    width: var(--w);
    border-radius: 2px;
    animation: barFill 1.2s ease-out;
}
.bar-fill.green {
    background: linear-gradient(90deg, var(--signal-green), rgba(0, 230, 180, 0.4));
    box-shadow: 0 0 6px rgba(0, 230, 180, 0.5);
}
.bar-fill.blue {
    background: linear-gradient(90deg, var(--data-blue), rgba(74, 144, 217, 0.4));
    box-shadow: 0 0 6px rgba(74, 144, 217, 0.4);
}

@keyframes barFill {
    from { width: 0; }
    to { width: var(--w); }
}

/* Alert meter */
.alert-meter {
    margin-top: auto;
    padding-top: 12px;
}
.meter-bar {
    height: 4px;
    background: rgba(13, 21, 37, 0.8);
    border: 1px solid rgba(255, 71, 87, 0.2);
    overflow: hidden;
    margin-bottom: 6px;
}
.meter-fill {
    height: 100%;
    width: var(--w);
    background: linear-gradient(90deg, var(--alert-red), rgba(255, 71, 87, 0.5));
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
    animation: meterPulse 2s ease-in-out infinite;
}
@keyframes meterPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.meter-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--alert-red);
    letter-spacing: 0.08em;
}

/* Atlas grid */
.atlas {
    flex: 1;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
}
.atlas-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    flex: 1;
    min-height: 130px;
    margin-bottom: 12px;
}
.atlas-cell {
    background: rgba(0, 230, 180, 0.18);
    border: 1px solid rgba(0, 230, 180, 0.3);
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 230, 180, 0.2);
    animation: atlasFlicker 4s ease-in-out infinite;
    animation-delay: calc(var(--d) * 100ms);
}
.atlas-cell:nth-child(7n+2) {
    background: rgba(74, 144, 217, 0.18);
    border-color: rgba(74, 144, 217, 0.3);
    box-shadow: 0 0 4px rgba(74, 144, 217, 0.2);
}
.atlas-cell:nth-child(11n+5) {
    background: rgba(255, 71, 87, 0.18);
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow: 0 0 4px rgba(255, 71, 87, 0.2);
}
.atlas-cell:nth-child(13n+9) {
    background: rgba(13, 21, 37, 0.6);
    border-color: rgba(192, 200, 212, 0.1);
    box-shadow: none;
}
@keyframes atlasFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.atlas-legend {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(192, 200, 212, 0.55);
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.legend-dot.green { background: var(--signal-green); box-shadow: 0 0 4px var(--signal-green); }
.legend-dot.blue { background: var(--data-blue); box-shadow: 0 0 4px var(--data-blue); }
.legend-dot.red { background: var(--alert-red); box-shadow: 0 0 4px var(--alert-red); }

/* Big counter */
.big-counter {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--signal-green);
    text-shadow: 0 0 12px rgba(0, 230, 180, 0.5);
    margin: 14px 0 4px;
    letter-spacing: 0.04em;
}
.counter-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: rgba(192, 200, 212, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.counter-trend {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.trend-arrow.up { color: var(--signal-green); }
.trend-val { color: var(--signal-green); }
.trend-meta { color: rgba(192, 200, 212, 0.45); }

/* Manifesto */
.manifesto {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--terminal-light);
    margin: 18px 0 14px;
    position: relative;
    padding: 0 8px;
}
.manifesto em {
    color: var(--signal-green);
    font-style: italic;
    text-shadow: 0 0 6px rgba(0, 230, 180, 0.4);
}
.quote-mark {
    color: var(--signal-green);
    font-size: 1.6em;
    line-height: 0;
    vertical-align: -0.2em;
    margin-right: 4px;
    text-shadow: 0 0 8px rgba(0, 230, 180, 0.5);
}
.quote-mark.close { margin-left: 4px; margin-right: 0; }
.manifesto-cite {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(192, 200, 212, 0.5);
    letter-spacing: 0.06em;
}

/* Sparkline */
.spark {
    flex: 1;
    margin: 14px 0 10px;
    width: 100%;
    min-height: 70px;
    background: rgba(13, 21, 37, 0.4);
    border: 1px solid rgba(0, 230, 180, 0.08);
    border-radius: 4px;
}
.spark .spark-line {
    fill: none;
    stroke: var(--signal-green);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 3px rgba(0, 230, 180, 0.6));
}
.spark .spark-area {
    fill: rgba(0, 230, 180, 0.12);
    stroke: none;
}
.spark-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(192, 200, 212, 0.5);
}

/* Hop list */
.hop-list {
    list-style: none;
    margin-top: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hop {
    display: grid;
    grid-template-columns: 32px 1fr 50px;
    gap: 10px;
    align-items: center;
    padding: 6px 10px;
    background: rgba(13, 21, 37, 0.5);
    border-left: 2px solid rgba(0, 230, 180, 0.2);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    transition: all 0.3s ease;
}
.hop:hover {
    border-left-color: var(--signal-green);
    background: rgba(0, 230, 180, 0.06);
}
.hop.active {
    border-left-color: var(--signal-green);
    background: rgba(0, 230, 180, 0.1);
    box-shadow: 0 0 8px rgba(0, 230, 180, 0.2);
}
.hop.active .hop-name { color: var(--signal-green); }
.hop-num { color: rgba(192, 200, 212, 0.45); }
.hop-name { color: var(--terminal-light); }
.hop-time { color: var(--data-blue); text-align: right; }

/* Event feed */
.event-feed {
    list-style: none;
    margin-top: 12px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.event {
    display: grid;
    grid-template-columns: 76px 56px 1fr;
    gap: 10px;
    padding: 4px 6px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}
.event:hover {
    background: rgba(0, 230, 180, 0.05);
    border-left-color: rgba(0, 230, 180, 0.3);
}
.event-time { color: rgba(192, 200, 212, 0.5); }
.event-type {
    text-align: center;
    padding: 1px 4px;
    border: 1px solid currentColor;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    border-radius: 2px;
    align-self: center;
}
.event-type.green { color: var(--signal-green); }
.event-type.blue { color: var(--data-blue); }
.event-type.red { color: var(--alert-red); }
.event-msg { color: rgba(192, 200, 212, 0.78); }

/* Quest */
.quest-text {
    margin-bottom: 16px;
}
.quest-num {
    color: var(--signal-green);
    font-family: var(--font-mono);
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 230, 180, 0.4);
}
.quest-progress {
    margin-top: auto;
}
.progress-track {
    height: 8px;
    background: rgba(13, 21, 37, 0.8);
    border: 1px solid rgba(0, 230, 180, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.progress-fill {
    height: 100%;
    width: var(--w);
    background: linear-gradient(90deg, var(--data-blue), var(--signal-green));
    box-shadow: 0 0 6px rgba(0, 230, 180, 0.4);
    animation: barFill 1.4s ease-out;
}
.progress-meta {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: rgba(192, 200, 212, 0.55);
    letter-spacing: 0.06em;
}

/* Sys list */
.sys-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
}
.sys-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 230, 180, 0.1);
}
.sys-row:last-child { border-bottom: none; }
.sys-row dt { color: rgba(192, 200, 212, 0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.sys-row dd { color: var(--signal-green); }

/* ==== FOOTER ==== */
.net-footer {
    position: relative;
    background: linear-gradient(180deg, transparent, #060a13);
    padding: 60px clamp(20px, 4vw, 60px) 30px;
    border-top: 1px solid rgba(0, 230, 180, 0.15);
    margin-top: 40px;
    z-index: 3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-mark {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--terminal-light);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.footer-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(192, 200, 212, 0.55);
    letter-spacing: 0.06em;
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--signal-green);
    margin-bottom: 6px;
    opacity: 0.7;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: rgba(192, 200, 212, 0.78);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-link:hover {
    color: var(--signal-green);
    padding-left: 6px;
    text-shadow: 0 0 6px rgba(0, 230, 180, 0.4);
}

.footer-id {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(192, 200, 212, 0.5);
    letter-spacing: 0.04em;
}

.footer-base {
    border-top: 1px dashed rgba(0, 230, 180, 0.15);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(192, 200, 212, 0.5);
    letter-spacing: 0.06em;
}

.base-tick {
    width: 6px;
    height: 6px;
    background: var(--signal-green);
    box-shadow: 0 0 6px var(--signal-green);
    animation: pulse 2s ease-in-out infinite;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .status-bar {
        font-size: 0.66rem;
        padding: 0 10px;
        gap: 8px;
    }
    .status-center {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .status-center .status-label { display: none; }
    .status-right { gap: 6px; }
    .hero {
        padding: 40px 18px;
    }
    .hero-corner { width: 18px; height: 18px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .panel-grid { grid-auto-rows: 160px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-base { flex-direction: column; gap: 10px; }
    .section-meta { display: none; }
}

@media (max-width: 480px) {
    .status-left .status-label { display: none; }
    .panels-section { padding: 60px 14px 40px; }
    .panel { padding: 18px 16px 14px; }
}
