/* ============================================================
   TERRANA — CLASS C TECHNICAL MANUAL
   styles.css — Full Production Build
   ============================================================ */

/* --- Core Reset & Custom CSS Variables --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
}

:root {
    --bg-dark: #0a0c10;
    --card-bg: rgba(16, 20, 28, 0.85);
    --border-color: #1e293b;
    --accent-amber: #ff9f1c;
    --accent-cyan: #00f5d4;
    --text-primary: #e2e8f0;
    --text-muted: #64748b;
    --ui-panel-border: rgba(255, 255, 255, 0.45);
    --bar-color-empty: #10151f;
    --border-glow: rgba(0, 245, 212, 0.2);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Schematic Background Mesh Grid --- */
.schematic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(30, 41, 59, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 41, 59, 0.15) 1px, transparent 1px);
    pointer-events: none;
}

/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */
.sidebar {
    width: 300px;
    height: 100vh;
    background: #0f131a;
    border-right: 2px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 100;
    overflow-y: auto;
}

/* Header row: TERRANA text + logo side by side */
.nav-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-header h2 {
    color: var(--accent-amber);
    letter-spacing: 3px;
    font-size: 1.5rem;
    /* flex child — doesn't need extra tweaks */
}

.nav-header span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 8px;
}

/* AngelStarr logo — 4× size, centred in its own block above audio buttons */
.sidebar-logo {
    width: 352px;
    height: 352px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 18px rgba(0, 245, 212, 0.45));
    display: block;
}

.sidebar-logo-block {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    margin: 0 -20px; /* bleed to sidebar edges */
}

/* Header row back to horizontal — logo no longer lives here */
.nav-header-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

/* ============================================================
   DIAGNOSTICS PANEL
   ============================================================ */
.system-diagnostics {
    background: rgba(6, 8, 12, 0.8);
    border: 1px solid var(--border-color);
    padding: 15px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.diag-title {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: bold;
}

/* Single consolidated .diag-row rule — fixes duplicate conflict */
.diag-row {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.diag-row span:first-child {
    color: var(--text-primary);
    white-space: nowrap;
}

/* Right-side values sit tight against their label, no space-between blowout */
.diag-row span:last-child {
    color: var(--accent-cyan);
    white-space: nowrap;
    text-align: right;
}

.tick-value {
    color: var(--accent-cyan);
    font-weight: bold;
}

.cyan-text {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Blinking cursor after ONLINE */
.blink-cursor {
    display: inline-block;
    color: var(--accent-cyan);
    font-weight: bold;
    animation: blinkCursor 1s step-end infinite;
    margin-left: 1px;
}

/* Navigation matrix separator label */
.nav-matrix-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: bold;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: -15px;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -15px;
}

.sidebar a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.sidebar a:hover,
.sidebar a.active {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    background: rgba(0, 245, 212, 0.08);
}

/* Support / PayPal button */
.support-section {
    margin-top: -10px;
}

.paypal-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-amber);
    color: var(--accent-amber);
    padding: 12px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    display: block;
}

.paypal-btn:hover {
    background: var(--accent-amber);
    color: var(--bg-dark);
}

/* Telemetry scrolling ticker */
.telemetry-ticker {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    white-space: nowrap;
    color: var(--accent-cyan);
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.telemetry-ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: tickerScroll 24s linear infinite;
}

/* Sidebar footer — audio button */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-btn {
    width: 100%;
    background: #161b22;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.audio-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 245, 212, 0.04);
}

.audio-btn.muted {
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.content {
    margin-left: 300px;
    width: calc(100vw - 300px);
    padding: 50px;
    min-height: 100vh;
    position: relative;
}

/* Hide all inactive sections */
.manual-section {
    display: none !important;
    opacity: 0;
}

/* Active section */
.manual-section.active-section {
    display: block !important;
    opacity: 1;
    animation: fadeIn 0.3s ease-out forwards;
}

/* ============================================================
   SECTION HEADINGS — sweep underline + flicker
   Combined into a single rule set to avoid conflicts.
   The static border-bottom is removed; the ::after sweep IS the underline.
   ============================================================ */
.manual-section h2 {
    color: var(--accent-cyan);
    padding-bottom: 12px;
    margin-bottom: 35px;
    letter-spacing: 2px;
    font-size: 1.6rem;
    position: relative;
    overflow: visible; /* allow ::after to paint below */
    /* Flicker animation — subtle cyan glow pulse */
    animation: flickerCyan 7s infinite;
}

/* Static dim baseline underline (always present) */
.manual-section h2::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
}

/* Animated cyan sweep — plays when section becomes active */
.manual-section.active-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
    transform-origin: left center;
    animation: headingSweep 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ============================================================
   COVER PAGE
   ============================================================ */
.cover-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.cover-frame {
    position: relative;
    width: 100%;
    max-width: 850px;
    border: 4px double var(--accent-amber);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    gap: 25px;
    overflow: hidden;
}

.cover-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-render {
    width: 100%;
    height: auto;
    max-width: 790px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.9));
    display: block;
}

/* Thruster glow — calibrated to mid-rear thruster manifold housing */
.thruster-glow-matrix {
    position: absolute;
    width: 45px;
    height: 45px;
    bottom: 36%;
    left: 48%;
    transform: translate(-50%, 50%);
    background: radial-gradient(circle, rgba(0, 245, 212, 0.95) 0%, rgba(0, 180, 216, 0.5) 45%, transparent 70%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 6;
    filter: blur(2px);
    animation: plasmaThrusterPulse 0.18s linear infinite alternate;
}

.cover-title {
    background: #06080c;
    padding: 25px;
    border: 1px solid var(--border-color);
    z-index: 10;
    position: relative;
}

.cover-title h1 {
    font-size: 3.2rem;
    color: var(--accent-amber);
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.cover-status-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.classified-stamp {
    border: 2px solid rgba(255, 59, 48, 0.8);
    color: #ff5e57;
    padding: 10px 18px;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(255, 59, 48, 0.5);
    animation: classifiedBlink 3s infinite;
}

.auth-panel {
    flex: 1;
    max-width: 260px;
}

.auth-label {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.auth-bar {
    width: 100%;
    height: 10px;
    border: 1px solid var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.auth-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.7);
    transition: width 4s linear;
}

.cover-copyright-block {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    letter-spacing: 1px;
}

/* Star particle field — subtle slow-drifting dots behind ship render */
.star-particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.star-particle-field::before,
.star-particle-field::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 245, 212, 0.45) 1px, transparent 1px);
    background-size: 120px 120px, 180px 180px;
    animation: starDrift 40s linear infinite;
    opacity: 0.35;
}

.star-particle-field::after {
    animation-duration: 65s;
    animation-direction: reverse;
    opacity: 0.2;
    background-size: 90px 90px, 220px 220px;
    background-position: 40px 40px, 80px 80px;
}

/* ============================================================
   STARFIELD UI — SPECS PAGE
   ============================================================ */
.starfield-ui-wrapper {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.ui-panel-left {
    background: rgba(10, 14, 22, 0.95);
    border: 1px solid var(--ui-panel-border);
    padding: 25px;
}

.ui-header-text {
    font-size: 1.35rem;
    color: #ffffff;
    text-align: center;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 25px;
}

.systems-grid-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 0 5px;
}

.system-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Pure CSS gradient telemetry block generator at 12 interval segments */
.bar-meter-track {
    width: 100%;
    height: 190px;
    border: 1px solid var(--ui-panel-border);
    position: relative;
    background-color: var(--bar-color-empty);
}

.bar-meter-track::before {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    top: 4px;
    background-image: linear-gradient(to top, var(--accent-cyan) 11px, transparent 11px);
    background-size: 100% 15px;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 0 4px rgba(0, 245, 212, 0.45));
}

/* System bar data capture mapping matrices */
.bar-meter-track[data-bars="12"]::before { transform: scaleY(calc(12 / 12)); }
.bar-meter-track[data-bars="11"]::before { transform: scaleY(calc(11 / 12)); }
.bar-meter-track[data-bars="10"]::before { transform: scaleY(calc(10 / 12)); }
.bar-meter-track[data-bars="9"]::before  { transform: scaleY(calc(9  / 12)); }
.bar-meter-track[data-bars="8"]::before  { transform: scaleY(calc(8  / 12)); }
.bar-meter-track[data-bars="7"]::before  { transform: scaleY(calc(7  / 12)); }
.bar-meter-track[data-bars="6"]::before  { transform: scaleY(calc(6  / 12)); }
.bar-meter-track[data-bars="5"]::before  { transform: scaleY(calc(5  / 12)); }
.bar-meter-track[data-bars="4"]::before  { transform: scaleY(calc(4  / 12)); }
.bar-meter-track[data-bars="3"]::before  { transform: scaleY(calc(3  / 12)); }
.bar-meter-track[data-bars="2"]::before  { transform: scaleY(calc(2  / 12)); }
.bar-meter-track[data-bars="1"]::before  { transform: scaleY(calc(1  / 12)); }
.bar-meter-track[data-bars="0"]::before  { transform: scaleY(0); }

.system-tag-box {
    width: 100%;
    border: 1px solid var(--ui-panel-border);
    color: #ffffff;
    font-size: 0.75rem;
    text-align: center;
    padding: 4px 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.power-static {
    width: 100%;
    background: #141923;
    border: 1px solid var(--ui-panel-border);
    color: var(--accent-cyan);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    margin-top: 2px;
    padding: 4px 0;
    display: block;
}

/* Linking harness bracket matrix */
.branching-schematic-harness {
    width: calc(100% - 60px);
    height: 18px;
    border: 1px solid var(--ui-panel-border);
    border-top: none;
    margin: 15px auto 0 auto;
    position: relative;
}

.branching-schematic-harness::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 15px;
    background-color: var(--ui-panel-border);
    bottom: -15px;
    left: 50%;
}

.select-system-banner {
    display: block;
    background: transparent;
    border: 1px solid var(--ui-panel-border);
    color: #ffffff;
    font-size: 1.15rem;
    text-align: center;
    padding: 12px 0;
    width: calc(100% - 40px);
    margin: 25px auto 15px auto;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.select-system-banner:hover {
    background: rgba(0, 245, 212, 0.05);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.select-system-banner:disabled {
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
    background: transparent;
}


.horizontal-sub-matrix-bar {
    width: calc(100% - 40px);
    height: 24px;
    border: 1px solid var(--ui-panel-border);
    margin: 15px auto 5px auto;
    background-image: repeating-linear-gradient(to right, #ffffff, #ffffff 4px, transparent 4px, transparent 6px);
    background-size: 6px 100%;
    padding: 2px;
    filter: drop-shadow(0 0 4px rgba(0, 245, 212, 0.45));
}

/* ============================================================
   RIGHT PANEL — OVERVIEW
   ============================================================ */
.ui-panel-right {
    background: rgba(12, 16, 24, 0.75);
    border: 1px solid var(--border-color);
}

.overview-header-accent {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    font-weight: bold;
    font-size: 1.15rem;
    padding: 8px 20px;
    letter-spacing: 1px;
}

.overview-stats-body {
    padding: 25px;
}

.stat-slider-row {
    margin-bottom: 18px;
}

.stat-labels {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.slider-track-line {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.15);
    position: relative;
}

.slider-track-line::before {
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background-color: var(--accent-cyan);
    filter: drop-shadow(0 0 4px rgba(0, 245, 212, 0.45));
}

.slider-track-line.data-full::before  { width: 100%; }
.slider-track-line.data-cargo::before { width: 4%; }

.panel-inner-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.shielded-capacity-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 1px;
}

/* Telemetry quad mesh */
.telemetry-quad-mesh {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mesh-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cell-icon-wrap {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-c-box {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
}

/* Data icon symbol replicators */
.icon-circle-cross {
    width: 24px;
    height: 24px;
    border: 2px solid #ffffff;
    transform: rotate(45deg);
    position: relative;
}

.icon-circle-cross::before,
.icon-circle-cross::after {
    content: "";
    position: absolute;
    background: #ffffff;
}

.icon-circle-cross::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.icon-circle-cross::after  { left: 9px; top: 2px; width: 2px; height: 16px; }

.icon-circle-arrows {
    width: 24px;
    height: 24px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-image: linear-gradient(90deg, transparent 40%, #ffffff 40%, #ffffff 60%, transparent 60%);
}

.icon-circle-shield {
    width: 26px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.cell-data-block {
    display: flex;
    flex-direction: column;
}

.cell-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.cell-val {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: bold;
}

/* Weapons row */
.weapons-triple-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    margin-top: 25px;
    padding-left: 5px;
}

.wpn-sub-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: help;
}

/* Weapon tooltip hover cards */
.wpn-sub-cell::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 0;
    background: #0b1018;
    border: 1px solid var(--accent-cyan);
    color: var(--text-primary);
    padding: 10px;
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.2s ease;
    font-size: 0.72rem;
    line-height: 1.4;
    z-index: 30;
    white-space: pre-line;
}

.wpn-sub-cell:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.icon-circle-wpn {
    width: 22px;
    height: 22px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: relative;
}

.icon-circle-wpn::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    top: 4px;
    left: 4px;
}

.cell-val-small {
    font-size: 1rem;
    color: #ffffff;
    font-weight: bold;
    display: block;
}

.registration-status-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.valuation-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cell-val-large {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: bold;
    display: block;
    letter-spacing: 1px;
}

/* ============================================================
   SPEC CARDS GRID
   ============================================================ */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.specs-grid {
    margin-top: 40px;
}

.spec-card,
.credits-card,
.view-card,
.spec-card-full-width {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 4px;
}

.spec-card h3,
.credits-card h3,
.spec-card-full-width h3 {
    color: var(--accent-amber);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px dashed rgba(255, 159, 28, 0.3);
    padding-bottom: 8px;
}

.spec-card p,
.spec-card-full-width p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ============================================================
   BLUEPRINTS
   ============================================================ */
.blueprint-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 35px;
}

.legend-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.legend-panel h3 {
    color: var(--accent-amber);
    font-size: 1rem;
    margin-bottom: 4px;
}

.interaction-prompt {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: bold;
    opacity: 0.8;
}

.legend-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

.tab-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bp-tab {
    background: #161b22;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: all 0.2s ease;
}

.bp-tab.active,
.bp-tab:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
}

/* Active deck label above blueprint image */
.active-deck-label {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    font-weight: bold;
    padding: 6px 0 10px 2px;
    opacity: 0.85;
}

.display-box {
    background: #06080c;
    border: 2px dashed var(--border-color);
    padding: 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.display-box img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

/* ============================================================
   STRUCTURAL BREAKDOWN
   ============================================================ */
.level-selector {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.level-selector label {
    font-weight: bold;
    color: var(--accent-amber);
}

.level-selector select {
    background: #161b22;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

.quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.view-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 320px;
}

.view-card span {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: bold;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 8px;
}

/* Projection image fade transition on level change */
.view-card img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    margin: auto;
    transition: opacity 0.25s ease;
}

.view-card img.fading {
    opacity: 0;
}

/* ============================================================
   CREDITS / ENGINEERING MODIFICATIONS
   ============================================================ */
.telemetry-disclaimer {
    background: rgba(255, 159, 28, 0.03);
    border: 1px solid rgba(255, 159, 28, 0.25);
    border-left: 4px solid var(--accent-amber);
    padding: 20px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.telemetry-disclaimer strong {
    color: var(--accent-amber);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.integration-grid {
    grid-template-columns: 1fr 400px;
    align-items: start;
}

.credits-side-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.manifest-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manifest-entry {
    background: rgba(6, 8, 12, 0.5);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manifest-entry.warning-highlight {
    border-left: 4px solid var(--accent-amber);
    background: rgba(255, 159, 28, 0.02);
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.module-title {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.author-tag {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    background: rgba(0, 245, 212, 0.05);
    padding: 4px 8px;
    border: 1px solid rgba(0, 245, 212, 0.15);
}

.status-flag {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
}

.status-flag.alert-color {
    color: var(--bg-dark);
    background: var(--accent-amber);
}

.entry-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.telemetry-link {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.telemetry-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* Compact utility cards */
.manifest-entry-compact {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.manifest-entry-compact:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.manifest-entry-compact strong {
    color: var(--accent-cyan);
    font-size: 0.95rem;
}

.author-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 5px;
}

.manifest-entry-compact p {
    font-size: 0.85rem;
    margin: 8px 0;
    line-height: 1.4;
}

.telemetry-link-compact,
.terminal-notes-link {
    font-size: 0.75rem;
    color: var(--accent-amber);
    text-decoration: none;
    font-weight: bold;
}

.telemetry-link-compact:hover,
.terminal-notes-link:hover {
    color: var(--text-primary);
}

/* External link arrow icon */
.ext-link-icon {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 2px;
    vertical-align: middle;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

a:hover .ext-link-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

/* Chassis modification components */
.manipulation-block p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.terminal-notes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    position: relative;
}

.terminal-notes li {
    font-size: 0.85rem;
    line-height: 1.4;
}

.terminal-notes li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ============================================================
   CRT SCANLINE OVERLAY
   ============================================================ */
.crt-effect::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 20;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

.crt-effect::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.04) 10%, rgba(255, 255, 255, 0) 20%);
    z-index: 21;
    background-size: 100% 100%;
    animation: scanlineScroll 6s linear infinite;
    pointer-events: none;
}

/* ============================================================
   LIGHTBOX / ZOOM
   ============================================================ */
.zoomable-asset {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoomable-asset:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}

.view-card-prompt {
    font-size: 0.68rem;
    margin-top: -8px;
    margin-bottom: -4px;
    opacity: 0.7;
    border-left: none !important;
    padding-left: 0 !important;
    letter-spacing: 1px;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 500;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 6, 10, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    gap: 0;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

/* Inner container — holds image + minimap, acts as pan/zoom viewport */
.lightbox-inner {
    position: relative;
    width: 90vw;
    height: 82vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #06080c;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.lightbox-inner.grabbing {
    cursor: grabbing;
}

.lightbox-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    transition: none;
}

/* Minimap inside lightbox */
.lightbox-minimap {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 120px;
    height: 90px;
    border: 1px solid var(--accent-cyan);
    background: rgba(6, 8, 12, 0.9);
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
    opacity: 0.85;
}

.lightbox-minimap .minimap-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
}

.lightbox-minimap .minimap-viewport {
    position: absolute;
    border: 1px solid var(--accent-cyan);
    background: rgba(0, 245, 212, 0.12);
    box-shadow: 0 0 4px rgba(0, 245, 212, 0.4);
    transition: all 0.05s linear;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Zoom controls row below image */
.lightbox-zoom-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-shrink: 0;
}

/* Projection label top-left */
.lightbox-projection-label {
    position: absolute;
    top: 24px;
    left: 40px;
    font-size: 0.72rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    font-weight: bold;
    opacity: 0.85;
    pointer-events: none;
}

/* Hint bar */
.lightbox-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 8px;
    opacity: 0.5;
    flex-shrink: 0;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 34px;
    color: var(--text-primary);
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 20;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-cyan);
}

/* ============================================================
   GLITCH ANIMATIONS
   ============================================================ */
.glitch-header,
.glitch-title {
    position: relative;
    animation: staticGlow 4s linear infinite;
}

.glitch-header::before, .glitch-title::before,
.glitch-header::after,  .glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
}

.glitch-header::before, .glitch-title::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitchTrigger-1 5s linear infinite alternate-reverse;
}

.glitch-header::after, .glitch-title::after {
    left: -2px;
    text-shadow: -1px 0 rgba(255, 0, 0, 0.7);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitchTrigger-2 5s linear infinite alternate-reverse;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

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

@keyframes scanlineScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

@keyframes staticGlow {
    0%, 92%, 100% { text-shadow: 0 0 0px transparent; }
    93%, 98%      { text-shadow: 0 0 8px rgba(255, 159, 28, 0.6); }
}

@keyframes plasmaThrusterPulse {
    0%   { transform: translate(-50%, 50%) scale(0.92); opacity: 0.75; filter: blur(2px); }
    100% { transform: translate(-50%, 50%) scale(1.08); opacity: 0.98; filter: blur(3px); }
}

@keyframes glitchTrigger-1 {
    0%       { clip: rect(20px,  9999px, 66px,  0); }
    5%       { clip: rect(80px,  9999px, 5px,   0); }
    10%      { clip: rect(110px, 9999px, 125px, 0); }
    15%      { clip: rect(5px,   9999px, 18px,  0); }
    20%, 100%{ clip: rect(0, 0, 0, 0); }
}

@keyframes glitchTrigger-2 {
    0%, 80% { clip: rect(0, 0, 0, 0); }
    85%     { clip: rect(70px,  9999px, 105px, 0); }
    90%     { clip: rect(12px,  9999px, 85px,  0); }
    95%     { clip: rect(138px, 9999px, 140px, 0); }
    100%    { clip: rect(40px,  9999px, 60px,  0); }
}

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

/* Heading underline sweep — left to right on section activate */
@keyframes headingSweep {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Heading cyan flicker — very subtle glow pulse */
@keyframes flickerCyan {
    0%, 96%, 100% { text-shadow: none; }
    97%           { text-shadow: 0 0 6px rgba(0, 245, 212, 0.7); }
    98%           { text-shadow: 0 0 14px rgba(0, 245, 212, 0.9); }
    99%           { text-shadow: 0 0 4px rgba(0, 245, 212, 0.5); }
}

/* Ticker scroll */
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* Logo coin spin — fixed (was previously orphaned/broken) */
@keyframes coinSpin {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes starDrift {
    from { transform: translateY(0); }
    to   { transform: translateY(80px); }
}

@keyframes classifiedBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

/* ============================================================
   SECTION PROGRESS INDICATOR (sidebar vertical line)
   ============================================================ */
.sidebar ul {
    position: relative;
}

.nav-progress-track {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--border-color);
    pointer-events: none;
}

.nav-progress-fill {
    width: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px rgba(0, 245, 212, 0.5);
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 0%;
}

/* ============================================================
   BOOT SEQUENCE INTRO OVERLAY
   ============================================================ */
#boot-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    color: var(--accent-cyan);
    padding: 40px;
    opacity: 1;
    transition: opacity 0.6s ease;
}

#boot-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-logo {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 8px;
    color: var(--accent-amber);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 159, 28, 0.6);
}

.boot-terminal {
    width: 100%;
    max-width: 640px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    line-height: 1.8;
    color: var(--accent-cyan);
    min-height: 260px;
}

.boot-line {
    display: block;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.boot-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.boot-line.ok    { color: #4ade80; }
.boot-line.warn  { color: var(--accent-amber); }
.boot-line.error { color: #f87171; }

.boot-skip-btn {
    margin-top: 40px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 8px 24px;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.boot-skip-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ============================================================
   SUBTITLE TYPING EFFECT
   ============================================================ */
.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    min-height: 1.2em;
}

/* ============================================================
   SYSTEM BARS — animate in on section load
   ============================================================ */
.bar-meter-track.animate-in::before {
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* System column hover dimming */
.systems-grid-row:hover .system-col {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.systems-grid-row:hover .system-col:hover {
    opacity: 1;
}

.systems-grid-row .system-col {
    transition: opacity 0.2s ease;
}

/* ============================================================
   BLUEPRINT PAN & ZOOM VIEWER
   ============================================================ */
.display-box {
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.display-box.grabbing {
    cursor: grabbing;
}

.display-box img {
    transform-origin: 0 0;
    transition: none;
    pointer-events: none;
}

/* Minimap */
.blueprint-minimap {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 120px;
    height: 90px;
    border: 1px solid var(--accent-cyan);
    background: rgba(6, 8, 12, 0.9);
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
    opacity: 0.85;
}

.minimap-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
}

.minimap-viewport {
    position: absolute;
    border: 1px solid var(--accent-cyan);
    background: rgba(0, 245, 212, 0.12);
    box-shadow: 0 0 4px rgba(0, 245, 212, 0.4);
    transition: all 0.05s linear;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.minimap-label {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.55rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    opacity: 0.7;
    pointer-events: none;
}

.zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.zoom-btn {
    background: rgba(6, 8, 12, 0.85);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    width: 28px;
    height: 28px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
}

.zoom-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

/* ============================================================
   AMBIENT AUDIO INDICATOR
   ============================================================ */
.ambient-indicator {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-align: center;
    padding: 4px 0 0 0;
    opacity: 0.6;
    transition: color 0.3s ease;
}

.ambient-indicator.active {
    color: var(--accent-cyan);
    opacity: 0.9;
}

/* ============================================================
   FIX 14: Remove .text-center stray class effect (it did nothing)
   This comment documents the removal — the class in HTML is harmless
   ============================================================ */

/* ============================================================
   MAINTENANCE LOG — Section 05
   ============================================================ */
.maintenance-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.maintenance-log-panel {
    background: linear-gradient(160deg, rgba(6, 10, 16, 0.97) 0%, rgba(10, 14, 20, 0.95) 100%);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 4px 24px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    min-height: 520px;
    max-height: 680px;
}

.maint-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 245, 212, 0.03);
    flex-shrink: 0;
}

.maint-header-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: bold;
}

.maint-header-status {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.maint-log-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.maint-log-body::-webkit-scrollbar { width: 4px; }
.maint-log-body::-webkit-scrollbar-track { background: transparent; }
.maint-log-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.maint-log-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 20px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
    transition: background 0.15s ease;
}

.maint-log-row:hover { background: rgba(255, 255, 255, 0.02); }
.maint-log-row:last-child { border-bottom: none; }

@keyframes maintRowSlideIn {
    from { opacity: 0; transform: translateX(-6px); background: rgba(0, 245, 212, 0.06); }
    to   { opacity: 1; transform: translateX(0);    background: transparent; }
}

.maint-row-new { animation: maintRowSlideIn 0.55s ease forwards; }

.maint-timestamp {
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.7rem;
    opacity: 0.75;
    margin-top: 1px;
}

.maint-badge {
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 1px;
    flex-shrink: 0;
    margin-top: 1px;
}

.maint-badge-ok   { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.35); color: #4ade80; }
.maint-badge-warn { background: rgba(255, 159, 28, 0.12);  border: 1px solid rgba(255, 159, 28, 0.35);  color: var(--accent-amber); }

/* Operator OP badge — same size/shape as OK/WARN, cyan tint */
.maint-badge-op {
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.4);
    color: var(--accent-cyan);
}

.maint-msg { color: var(--text-primary); flex: 1; }
.maint-warn .maint-msg { color: rgba(255, 200, 100, 0.9); }
.maint-op .maint-msg   { color: var(--text-primary); }

.maint-log-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.maint-entry-count  { font-size: 0.65rem; color: var(--accent-cyan); letter-spacing: 1px; opacity: 0.7; }
.maint-scroll-hint  { font-size: 0.6rem;  color: var(--text-muted);  letter-spacing: 1px; opacity: 0.5; }

.maintenance-side-col { display: flex; flex-direction: column; gap: 24px; }

.maint-status-card {
    background: linear-gradient(160deg, rgba(16, 22, 34, 0.95) 0%, rgba(10, 14, 22, 0.92) 100%);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: relative;
}

.maint-status-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.15), transparent);
    pointer-events: none;
}

.maint-status-card h3 {
    color: var(--accent-amber);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
    border-bottom: 1px dashed rgba(255, 159, 28, 0.25);
    padding-bottom: 8px;
}

.integrity-grid { display: flex; flex-direction: column; gap: 10px; }

.integrity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.integrity-label {
    color: var(--text-muted);
    width: 105px;
    flex-shrink: 0;
    font-size: 0.68rem;
}

.integrity-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
}

.integrity-bar-fill {
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 5px rgba(0, 245, 212, 0.5);
    border-radius: 2px;
}

.integrity-pct { font-size: 0.68rem; font-weight: bold; width: 38px; text-align: right; flex-shrink: 0; }

.override-flag-list { display: flex; flex-direction: column; gap: 10px; }

.override-flag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border-left: 2px solid transparent;
    transition: background 0.15s ease;
}

.override-flag:hover { background: rgba(255, 255, 255, 0.02); }
.ok-flag   { border-left-color: rgba(74, 222, 128, 0.4); }
.warn-flag { border-left-color: rgba(255, 159, 28, 0.4); }

.flag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotPulse 2.5s ease-in-out infinite;
}

.flag-green { background: #4ade80; box-shadow: 0 0 5px rgba(74, 222, 128, 0.6); }
.flag-amber { background: var(--accent-amber); box-shadow: 0 0 5px rgba(255, 159, 28, 0.6); animation-duration: 1.6s; }

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.ok-flag   span:last-child { color: var(--text-primary); }
.warn-flag span:last-child { color: rgba(255, 200, 100, 0.9); }
