:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #EE2737;
    --accent-hover: #ff3b4d;
    --planned: #ffffff;
    --existing: #EE2737;
    --glass-bg: rgba(16, 16, 16, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

header {
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 0) 100%);
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 1.5rem;
}

/* Left-aligned rklb.company Title in Top Banner */
.header-left-brand {
    display: flex;
    align-items: center;
    z-index: 2;
    white-space: nowrap;
}

.header-brand-title {
    font-size: 2.32rem; /* 50% increase */
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    font-family: 'Inter', -apple-system, sans-serif;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

/* Main Top Navigation for Pages */
.nav-pages {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(18, 18, 18, 0.85);
    padding: 0.3rem 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.nav-page-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 1.2rem;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-page-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-page-btn.active {
    background: #EE2737;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 14px rgba(238, 39, 55, 0.45);
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-left: 2.75rem;
}

.header-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Page containers */
.page-container {
    width: 100%;
    height: 100%;
}

#page-launch {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: 8rem;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Custom smooth dark scrollbar for Launch page */
#page-launch::-webkit-scrollbar {
    width: 8px;
}

#page-launch::-webkit-scrollbar-track {
    background: #000000;
}

#page-launch::-webkit-scrollbar-thumb {
    background: rgba(238, 39, 55, 0.35);
    border-radius: 4px;
}

#page-launch::-webkit-scrollbar-thumb:hover {
    background: #EE2737;
}

/* Neutron Centered Hero Image Stage & Hotspots */
.neutron-interactive-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 6rem;
    box-sizing: border-box;
}

.neutron-stage-stage {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 2rem 1.5rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.neutron-image-container {
    position: relative;
    width: 92%;
    max-width: 1350px;
    display: inline-block;
}

.neutron-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    user-select: none;
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.7));
}

/* Interactive Hint Under Neutron Diagram */
.neutron-stage-hint {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.35px;
    text-align: center;
    user-select: none;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.neutron-stage-hint::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #EE2737;
    box-shadow: 0 0 8px rgba(238, 39, 55, 0.8);
}

.neutron-stage-stage:has(.neutron-hotspot:hover) .neutron-stage-hint {
    opacity: 0;
    transform: translateY(4px);
}

/* Hotspot Buttons */

.neutron-hotspot {
    position: absolute;
    background: rgba(238, 39, 55, 0.04);
    border: 1px dashed rgba(238, 39, 55, 0.35);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    z-index: 15;
    outline: none;
}

/* Dim unselected hotspots when one is active to create clear focal hierarchy */
.neutron-stage-stage.has-selection .neutron-hotspot:not(.active) {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.15);
}

.neutron-stage-stage.has-selection .neutron-hotspot:not(.active):hover {
    opacity: 1;
    border-color: #EE2737;
}

/* Hover state */
.neutron-hotspot:hover {
    background: rgba(238, 39, 55, 0.15);
    border: 1.5px dashed #EE2737;
    box-shadow: 0 0 16px rgba(238, 39, 55, 0.45), inset 0 0 12px rgba(238, 39, 55, 0.25);
    transform: translateY(-2px);
    z-index: 18;
}

/* Active / Selected state with continuous cyan pulse */
.neutron-hotspot.active {
    background: rgba(238, 39, 55, 0.2);
    border: 2px solid #EE2737;
    transform: translateY(-3px);
    z-index: 25;
    animation: activeHotspotPulse 2.2s infinite ease-in-out;
}

@keyframes activeHotspotPulse {
    0%, 100% {
        box-shadow: 0 0 18px rgba(238, 39, 55, 0.7), inset 0 0 14px rgba(238, 39, 55, 0.35);
        border-color: #EE2737;
    }
    50% {
        box-shadow: 0 0 30px rgba(238, 39, 55, 0.95), inset 0 0 22px rgba(238, 39, 55, 0.5);
        border-color: #ff4d5a;
    }
}

/* Hovering an already active hotspot shows interactive hint to de-select */
.neutron-hotspot.active:hover {
    background: rgba(238, 39, 55, 0.28);
    border-color: #ff4d5a;
    box-shadow: 0 0 28px rgba(238, 39, 55, 1), inset 0 0 18px rgba(238, 39, 55, 0.45);
}

.hotspot-pin {
    margin-top: -12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111111;
    border: 1.5px solid #EE2737;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.neutron-hotspot:hover .hotspot-pin {
    background: #EE2737;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(238, 39, 55, 0.9);
    transform: scale(1.15);
}

.neutron-hotspot.active .hotspot-pin {
    background: #EE2737;
    color: #ffffff;
    border: 2px solid #ffffff;
    transform: scale(1.28);
    box-shadow: 0 0 18px rgba(238, 39, 55, 1), 0 0 28px rgba(238, 39, 55, 0.6);
    animation: activePinPulse 2.2s infinite ease-in-out;
}

@keyframes activePinPulse {
    0%, 100% {
        transform: scale(1.26);
        box-shadow: 0 0 16px rgba(238, 39, 55, 0.95), 0 0 24px rgba(238, 39, 55, 0.5);
    }
    50% {
        transform: scale(1.36);
        box-shadow: 0 0 24px rgba(238, 39, 55, 1), 0 0 36px rgba(238, 39, 55, 0.8);
    }
}

.neutron-hotspot.active:hover .hotspot-pin {
    transform: scale(1.32);
    box-shadow: 0 0 22px rgba(238, 39, 55, 1), 0 0 34px rgba(238, 39, 55, 0.7);
}

/* Hover Summary Popup (Appears directly below the image) */
.neutron-hover-popup {
    position: absolute;
    z-index: 100;
    width: 350px;
    max-width: 90vw;
    padding: 1.1rem 1.25rem;
    pointer-events: none;
    transform: translate(-50%, 0);
    transition: opacity 0.15s ease, transform 0.15s ease;
    border-color: rgba(238, 39, 55, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    background: rgba(12, 12, 12, 0.96);
    backdrop-filter: blur(14px);
    border-radius: 10px;
}

.nhp-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #EE2737;
    margin-bottom: 0.35rem;
}

.nhp-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.nhp-image-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #060606;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.nhp-image {
    width: 100%;
    height: auto;
    display: block;
}

.nhp-image-tag {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(0, 0, 0, 0.82);
    color: #f1f5f9;
    border: 1px solid rgba(238, 39, 55, 0.5);
    padding: 2px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.nhp-status-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
}

.nhp-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
    line-height: 1.35;
}

.nhp-field-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.nhp-field-val {
    color: #e2e8f0;
    font-weight: 500;
}

.nhp-field-val.nhp-highlight {
    color: #EE2737;
    font-weight: 600;
}

.nhp-action {
    font-size: 0.72rem;
    font-weight: 600;
    color: #EE2737;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nhp-badge-selected {
    color: #ffffff;
    background: rgba(238, 39, 55, 0.2);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(238, 39, 55, 0.45);
    font-size: 0.62rem;
    letter-spacing: 0.6px;
    display: inline-block;
}

.nhp-action-desel {
    color: #EE2737;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Big Detail/Overview Panel (Original Large Centered Size) */
.neutron-detail-section {
    width: 92%;
    max-width: 1350px;
    margin-top: 8.1rem; /* Further reduced space between Neutron diagram and card by 10% */
    animation: fadeInUp 0.35s ease-out;
}

.neutron-detail-card {
    padding: 2.2rem 2.8rem;
    border: 1px solid rgba(238, 39, 55, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.92) 0%, rgba(8, 8, 8, 0.98) 100%);
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Smooth tactile pulse whenever card content updates or returns to overview */
.neutron-detail-card.card-update-pulse {
    animation: detailCardUpdatePulse 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes detailCardUpdatePulse {
    0% {
        opacity: 0.72;
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Two Fleet Boxes Positioned Directly Below the Big Box */
.neutron-fleet-grid {
    width: 92%;
    max-width: 1350px;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    box-sizing: border-box;
}

/* Collapsible Fleet & Flight Panels */
.neutron-side-panel {
    flex: 1 1 450px;
    max-width: 660px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.neutron-side-panel.minimized {
    flex: 0 0 280px;
    padding: 1rem 1.25rem;
}

.neutron-side-panel.minimized .side-panel-content {
    display: none;
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
}

.neutron-side-panel.minimized .side-panel-header {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.side-panel-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.side-panel-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.side-panel-title-text h4 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.side-panel-counter {
    font-size: 0.77rem;
    color: #EE2737;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-panel-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.side-panel-toggle-btn:hover {
    background: rgba(238, 39, 55, 0.2);
    border-color: #EE2737;
    color: #EE2737;
    transform: translateY(-1px);
}

/* Side Panel Tables */
.side-panel-table-container {
    width: 100%;
    overflow-x: auto;
}

.side-panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.08rem;
    table-layout: fixed;
}

.side-panel-table thead tr {
    height: 44px;
}

.side-panel-table tbody tr {
    height: 52px;
}

.side-panel-table th {
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 44px;
    box-sizing: border-box;
}

.side-panel-table td {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    text-align: center;
    height: 52px;
    box-sizing: border-box;
    line-height: 1.2;
    font-size: 1.08rem;
}

.side-panel-table tr:last-child td {
    border-bottom: none;
}

.th-right, .td-right {
    text-align: center;
}

.vehicle-serial, .flight-no {
    font-weight: 700;
    color: #fff;
    font-family: 'Space Mono', monospace, monospace;
    font-size: 1.08rem;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.vehicle-subtext {
    font-size: 0.85rem;
    color: #94a3b8;
}

.mission-name {
    font-weight: 600;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.25;
}

.mission-sub {
    font-size: 0.85rem;
    color: #94a3b8;
}

.flight-date-cell {
    font-size: 1.02rem;
    color: #cbd5e1;
    font-weight: 500;
    white-space: nowrap;
}

.flights-count {
    font-weight: 700;
    color: #EE2737;
    font-size: 1.15rem;
}

/* Side Badges */
.side-badge {
    display: inline-block;
    padding: 0.32rem 0.85rem;
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.side-badge.badge-mfg {
    background: rgba(238, 39, 55, 0.15);
    color: #EE2737;
    border: 1px solid rgba(238, 39, 55, 0.4);
}

.side-badge.badge-active {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.side-badge.badge-planned {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ndc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
    position: relative;
    min-height: 80px;
}

.neutron-page-title {
    font-family: 'Orbitron', 'Inter', -apple-system, sans-serif;
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
    font-weight: 900;
    letter-spacing: clamp(0.35rem, 0.9vw, 1rem);
    text-indent: clamp(0.35rem, 0.9vw, 1rem);
    color: #ffffff;
    text-align: center;
    margin: 1.75rem auto 1.25rem auto;
    line-height: 1.05;
    text-transform: uppercase;
    text-shadow: 0 0 35px rgba(238, 39, 55, 0.45), 0 6px 30px rgba(0, 0, 0, 0.95);
    user-select: none;
}

@media (max-width: 900px) {
    .neutron-page-title {
        font-size: clamp(1.4rem, 3.8vw, 2.2rem);
        letter-spacing: 0.25rem;
        text-indent: 0.25rem;
    }
}

/* Global Footprint Page Title on Map View */
.facilities-page-title {
    position: absolute;
    top: 8.85rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', 'Inter', -apple-system, sans-serif;
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
    font-weight: 900;
    letter-spacing: clamp(0.35rem, 0.9vw, 1rem);
    text-indent: clamp(0.35rem, 0.9vw, 1rem);
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    margin: 0;
    line-height: 1.05;
    text-transform: uppercase;
    text-shadow: 0 0 35px rgba(238, 39, 55, 0.45), 0 6px 30px rgba(0, 0, 0, 0.95);
    z-index: 5;
    pointer-events: none;
    user-select: none;
}

/* Table View Title - Identical styling, positioned in-flow at the exact vertical position as Map View */
.facilities-page-title.table-title {
    position: static;
    transform: none;
    margin: calc(8.85rem - 118px) auto 1.5rem auto;
    pointer-events: auto;
}

@media (max-width: 900px) {
    .facilities-page-title {
        font-size: clamp(1.4rem, 3.8vw, 2.2rem);
        letter-spacing: 0.25rem;
        text-indent: 0.25rem;
        top: 9.5rem;
    }

    .facilities-page-title.table-title {
        margin-top: calc(9.5rem - 118px);
        margin-bottom: 1rem;
    }
}

/* Centered NEUTRON Text Header */
.ndc-overview-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0.75rem 0.5rem;
    overflow: hidden;
}

.neutron-title-text {
    font-family: 'Orbitron', 'Inter', -apple-system, sans-serif;
    font-size: clamp(2rem, 5.8vw, 4.2rem);
    font-weight: 900;
    letter-spacing: clamp(0.5rem, 2.2vw, 2.2rem);
    text-indent: clamp(0.5rem, 2.2vw, 2.2rem); /* offsets right letter-spacing to ensure perfect center */
    color: #ffffff;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    text-shadow: none;
}

.ndc-step-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.65rem;
    background: rgba(238, 39, 55, 0.15);
    color: #EE2737;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.ndc-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem 0;
    letter-spacing: -0.3px;
}

.ndc-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ndc-header-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ndc-reset-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(238, 39, 55, 0.35);
    color: #EE2737;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.ndc-reset-btn:hover {
    background: #EE2737;
    border-color: #EE2737;
    color: #fff;
    transform: translateY(-1px);
}

.ndc-status-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.ndc-status-chip .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.ndc-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ndc-layout-cols {
    display: flex;
    align-items: stretch;
    gap: 2.2rem;
    width: 100%;
}

.ndc-text-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ndc-photo-col {
    flex: 0 0 290px;
    max-width: 320px;
    display: flex;
}

.ndc-photo-wrap {
    width: 100%;
    min-height: 250px;
    background: #060606;
    border: 1px solid rgba(238, 39, 55, 0.35);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    box-sizing: border-box;
}

.ndc-photo {
    max-width: 100%;
    max-height: 310px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.ndc-photo-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(0, 0, 0, 0.85);
    color: #EE2737;
    border: 1px solid rgba(238, 39, 55, 0.5);
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.ndc-main-info {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
    text-align: center;
    max-width: 1050px;
    margin: 0 auto;
}

.ndc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.ndc-spec-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    flex: 0 1 230px;
    min-width: 210px;
    max-width: 260px;
    transition: all 0.2s ease;
}

.ndc-spec-box:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(238, 39, 55, 0.35);
}

.ndc-spec-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-align: center;
}

.ndc-spec-val {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

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

.launch-coming-soon-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem 8rem;
    box-sizing: border-box;
}

.coming-soon-card {
    text-align: center;
    padding: 3rem 3rem 3.5rem;
}

.coming-soon-badge-container {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1.25rem;
}

.coming-soon-pill {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    background: rgba(238, 39, 55, 0.15);
    border: 1.5px solid rgba(238, 39, 55, 0.5);
    border-radius: 20px;
    color: #EE2737;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(238, 39, 55, 0.3);
}

.blank-page-content {
    max-width: 650px;
    margin: 5rem auto;
    padding: 3.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.neutron-placeholder-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 16px rgba(238, 39, 55, 0.5));
}

.blank-page-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.blank-page-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
}

main {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 118px;
    overflow: hidden;
}

.view-section {
    width: 100%;
    height: 100%;
}

#table-view {
    overflow-y: auto;
    height: 100%;
    padding-bottom: 3rem;
    scroll-behavior: smooth;
}

#table-view::-webkit-scrollbar {
    width: 8px;
}

#table-view::-webkit-scrollbar-track {
    background: #000000;
}

#table-view::-webkit-scrollbar-thumb {
    background: rgba(238, 39, 55, 0.35);
    border-radius: 4px;
}

#table-view::-webkit-scrollbar-thumb:hover {
    background: #EE2737;
}

#map-view.active, #table-view.active {
    display: block;
}

/* Action Buttons & Modal */
.table-actions {
    max-width: 1650px;
    width: 94%;
    margin: 1rem auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 1.5rem;
}

#map-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

#map-container:active {
    cursor: grabbing;
}

svg.world-map {
    width: 100%;
    height: 100%;
}

.country {
    fill: #8c8c8c;
    stroke: #b2b2b2;
    stroke-width: 0.6;
    transition: fill 0.25s ease;
}

.country:hover {
    fill: #a3a3a3;
}

.dc-marker {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    stroke: #ffffff;
    stroke-width: 2;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.dc-marker:hover {
    stroke-width: 3.5;
    stroke: #ffffff;
    transform: scale(1.35);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

/* Callout Leader Lines and Boxes */
.callout-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1.2;
    stroke-dasharray: 2 2;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
    transition: stroke 0.2s, stroke-width 0.2s;
}

.callout-anchor {
    stroke: #ffffff;
    stroke-width: 1.5;
    pointer-events: none;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
}

.callout-box-group {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.callout-box-group:hover {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.85));
}

.callout-box-group:hover .callout-line {
    stroke: #EE2737;
    stroke-width: 2;
    stroke-dasharray: none;
}

.callout-rect {
    fill: rgba(14, 14, 14, 0.94);
    stroke-width: 1.2;
    rx: 6;
    ry: 6;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.callout-box-group:hover .callout-rect {
    fill: rgba(24, 24, 24, 0.98);
    stroke: #EE2737 !important;
}

.callout-title {
    fill: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    pointer-events: none;
    letter-spacing: -0.2px;
}

.callout-subtitle {
    fill: #94a3b8;
    font-size: 8.5px;
    font-weight: 500;
    pointer-events: none;
}

/* Map Zoom Controls */
.map-controls {
    position: absolute;
    top: 9.5rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 20;
}

.map-control-btn {
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.map-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #EE2737;
    color: #EE2737;
    transform: translateY(-1px);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.legend-panel {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    padding: 1.25rem 1.5rem;
    min-width: 280px;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legend-panel.minimized {
    min-width: unset;
    padding: 0.75rem 1.1rem;
}

.legend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.legend-panel.minimized .legend-header {
    margin-bottom: 0;
}

.legend-panel:not(.minimized) .legend-header {
    margin-bottom: 1rem;
}

.legend-panel h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
    letter-spacing: -0.2px;
}

.legend-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}

.legend-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #EE2737;
    color: #EE2737;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: opacity 0.25s ease, max-height 0.3s ease;
    max-height: 300px;
    opacity: 1;
    overflow: hidden;
}

.legend-panel.minimized .legend-items {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-existing {
    background-color: var(--existing);
    box-shadow: 0 0 8px rgba(238, 39, 55, 0.6);
}

.dot-planned {
    background-color: var(--planned);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Bottom Right Stats Panel */
.stats-panel {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    padding: 1.25rem 1.5rem;
    min-width: 290px;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-panel.minimized {
    min-width: unset;
    padding: 0.75rem 1.1rem;
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.stats-panel.minimized .stats-header {
    margin-bottom: 0;
}

.stats-panel:not(.minimized) .stats-header {
    margin-bottom: 1rem;
}

.stats-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
    letter-spacing: -0.2px;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: opacity 0.25s ease, max-height 0.3s ease;
    max-height: 400px;
    opacity: 1;
    overflow: hidden;
}

.stats-panel.minimized .stats-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.7rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(238, 39, 55, 0.35);
    transform: translateY(-1px);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

.stat-value-group {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Space Mono', monospace, monospace;
}

.stat-val.highlight-cyan {
    color: #EE2737;
    text-shadow: 0 0 12px rgba(238, 39, 55, 0.4);
}

.stat-val.highlight-white {
    color: #ffffff;
}

.stat-val.highlight-pink {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.stat-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.legend-sizes {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.legend-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.size-circles {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
}

.size-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.circle {
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.c-small { width: 8px; height: 8px; }
.c-med { width: 16px; height: 16px; }
.c-large { width: 28px; height: 28px; }

/* Tooltip Styles */
.tooltip {
    position: absolute;
    pointer-events: none;
    visibility: hidden;
    background: rgba(12, 12, 12, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(238, 39, 55, 0.35);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    color: var(--text-main);
    font-size: 0.9rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(238, 39, 55, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease, visibility 0.22s;
    min-width: 240px;
}

/* Invisible hit-box bridge extending around the tooltip to prevent accidental dropouts while cursor travels between small box and popup */
.tooltip::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -20px;
    right: -20px;
    bottom: -14px;
    z-index: -1;
    pointer-events: none;
}

.tooltip.visible {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.tooltip.visible::before {
    pointer-events: auto;
}

.tooltip.visible:hover {
    pointer-events: auto;
    border-color: rgba(238, 39, 55, 0.7);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.85), 0 0 26px rgba(238, 39, 55, 0.35);
}

/* Guard: ensure tooltip is NEVER visible or receiving events if facilities page or map view is not displayed */
main:has(#page-facilities[style*="display: none"]) ~ #tooltip,
main:has(#page-facilities:not([style*="display: block"])) ~ #tooltip,
main:has(#map-view[style*="display: none"]) ~ #tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tt-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.tt-country {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tt-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tt-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.tt-value {
    font-weight: 600;
}

.tt-status-existing { color: var(--existing); }
.tt-status-planned { color: var(--planned); }

.table-container {
    margin: 0 auto 4rem auto;
    width: 94%;
    max-width: 1650px;
    padding: 1.8rem 2.4rem;
    overflow-x: auto;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(238, 39, 55, 0.25);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 45px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

#dc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

#dc-table th, #dc-table td {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

#dc-table th {
    font-weight: 700;
    color: #a1a1aa;
    text-transform: uppercase;
    font-size: 1.2rem; /* Increased by 50% from 0.8rem */
    letter-spacing: 1.5px;
    position: sticky;
    top: 0;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(14px);
    z-index: 2;
    border-bottom: 1px solid rgba(238, 39, 55, 0.3);
}

#dc-table tbody tr {
    transition: all 0.3s ease;
    cursor: pointer;
}

#dc-table tbody tr:hover {
    background: rgba(238, 39, 55, 0.06);
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

#dc-table tbody tr:hover td {
    border-bottom-color: transparent;
}

#dc-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 1.28rem;
    color: #fff;
    letter-spacing: -0.2px;
}

#dc-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.source-link {
    color: #EE2737;
    text-decoration: none;
    font-size: 1.28rem; /* Increased by 50% from 0.85rem */
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(238, 39, 55, 0.12);
    border-radius: 6px;
}

.source-link:hover {
    background: #EE2737;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(238, 39, 55, 0.5);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-size: 1.125rem; /* Increased by 50% from 0.75rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-badge.existing,
.status-badge.operational {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-badge.existing::before,
.status-badge.operational::before {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.status-badge.planned,
.status-badge.inprogress,
.status-badge.in-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-badge.planned::before,
.status-badge.inprogress::before,
.status-badge.in-progress::before {
    background: #F59E0B;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* Country formatting with icons (using emojis) */
.country-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.country-flag {
    font-size: 1.8rem;
}

/* Progress bar for capacity */
.capacity-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.capacity-text {
    font-weight: 600;
    color: #fff;
    min-width: 60px;
}

.capacity-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.capacity-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--existing), #fff);
    box-shadow: 0 0 10px var(--existing);
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.capacity-bar-fill.planned-fill {
    background: linear-gradient(90deg, var(--planned), #fff);
    box-shadow: 0 0 10px var(--planned);
}
/* Action Buttons & Modal */
.table-actions {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 1.5rem;
}

.primary-btn {
    background: #EE2737;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 0 15px rgba(238, 39, 55, 0.45);
}

.primary-btn:hover {
    background: #ff3b4d;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(238, 39, 55, 0.6);
}

.edit-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.edit-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* ==========================================================================
   INTRODUCTION PAGE (SINGLE VIEW - NO SUBSECTIONS)
   ========================================================================== */

#page-intro {
    min-height: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--bg-color);
    scroll-behavior: smooth;
}

#page-intro::-webkit-scrollbar {
    width: 8px;
}

#page-intro::-webkit-scrollbar-track {
    background: #000000;
}

#page-intro::-webkit-scrollbar-thumb {
    background: rgba(238, 39, 55, 0.35);
    border-radius: 4px;
}

.intro-single-wrapper {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0.5rem 2rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.intro-main-title {
    font-family: 'Orbitron', 'Inter', -apple-system, sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: clamp(0.22rem, 0.65vw, 0.75rem);
    text-indent: clamp(0.22rem, 0.65vw, 0.75rem);
    color: #ffffff;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2.4rem;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 0 35px rgba(238, 39, 55, 0.45), 0 6px 30px rgba(0, 0, 0, 0.95);
    user-select: none;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .intro-main-title {
        font-size: clamp(1.2rem, 3.5vw, 1.9rem);
        letter-spacing: 0.15rem;
        text-indent: 0.15rem;
        white-space: normal;
        margin-bottom: 1.8rem;
    }
}

/* Project Details Section on Introduction Page */
.intro-project-card {
    width: 100%;
    max-width: 1250px;
    margin: 1.2rem auto 3.6rem auto;
    padding: 0 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    text-align: center;
}

.intro-project-tag {
    display: inline-block;
    font-family: 'Orbitron', 'Inter', -apple-system, sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: clamp(0.22rem, 0.65vw, 0.75rem);
    text-indent: clamp(0.22rem, 0.65vw, 0.75rem);
    color: #EE2737;
    text-transform: uppercase;
    margin: 0 0 1.8rem 0;
    line-height: 1.15;
    text-shadow: 0 0 35px rgba(238, 39, 55, 0.55), 0 0 15px rgba(238, 39, 55, 0.35);
}

.intro-project-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(1.05rem, 1.25vw, 1.22rem);
    line-height: 1.78;
    color: #cbd5e1;
    margin: 0 auto;
    max-width: 1220px;
}

.intro-project-desc p {
    margin: 0 0 1.2rem 0;
}

.intro-project-desc p:last-child {
    margin-bottom: 0;
}

.intro-project-desc strong {
    color: #ffffff;
}

.intro-project-desc strong.intro-highlight-brand {
    color: #EE2737;
    font-weight: 700;
}

@media (max-width: 900px) {
    .intro-project-card {
        margin: 0.5rem auto 2.5rem auto;
        padding: 0 0.5rem;
    }
    .intro-project-tag {
        font-size: clamp(1.2rem, 3.5vw, 1.9rem);
        letter-spacing: 0.15rem;
        text-indent: 0.15rem;
        margin-bottom: 1.2rem;
    }
    .intro-project-desc {
        font-size: 0.98rem;
        line-height: 1.68;
    }
}

.intro-equation-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2.25rem;
    width: 100%;
    max-width: 1020px;
    margin: 0 auto 1.85rem auto;
}


.equation-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 135px;
    max-width: 135px;
    flex-shrink: 0;
}

.equation-part.equation-result {
    width: 260px;
    max-width: 260px;
}

.equation-card {
    width: 135px;
    height: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.equation-card.equation-card-result {
    width: 260px;
    height: 164px;
}

.equation-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
    transition: filter 0.25s ease, transform 0.25s ease;
}

.equation-card:hover .equation-card-img {
    filter: drop-shadow(0 0 20px rgba(238, 39, 55, 0.7)) brightness(1.15);
    transform: translateY(-4px) scale(1.03);
}

.equation-op {
    height: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 800;
    color: #EE2737;
    text-shadow: 0 0 16px rgba(238, 39, 55, 0.6);
    user-select: none;
    padding: 0 0.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.equation-op.equals {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.equation-label {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.2px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 2.6rem;
    line-height: 1.3;
    white-space: normal;
}

.equation-label.highlight-cyan {
    color: #EE2737;
    text-shadow: 0 0 12px rgba(238, 39, 55, 0.4);
}

/* ==========================================================================
   Introduction Video Section
   ========================================================================== */

.intro-video-section {
    width: 100%;
    max-width: 1280px;
    margin: 2.5rem auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.intro-video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0 0.5rem;
}

.intro-video-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #EE2737;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.intro-video-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
    font-family: 'Inter', sans-serif;
}

.intro-video-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-select-video {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 9px;
    background: rgba(238, 39, 55, 0.12);
    border: 1px solid rgba(238, 39, 55, 0.4);
    color: #EE2737;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.btn-select-video:hover {
    background: #EE2737;
    border-color: #EE2737;
    box-shadow: 0 0 18px rgba(238, 39, 55, 0.5);
    transform: translateY(-1px);
    color: #ffffff;
}

.intro-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(238, 39, 55, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.intro-video-frame.drag-over {
    border-color: #EE2737;
    box-shadow: 0 0 35px rgba(238, 39, 55, 0.55), inset 0 0 20px rgba(238, 39, 55, 0.15);
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    display: block;
    outline: none;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(18, 18, 18, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
    border-radius: 17px;
    padding: 2rem;
    text-align: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.video-placeholder.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(238, 39, 55, 0.15);
    border: 1px solid rgba(238, 39, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 20px rgba(238, 39, 55, 0.3);
    transition: transform 0.25s ease, background 0.25s ease;
}

.video-placeholder:hover .placeholder-icon {
    transform: scale(1.08);
    background: rgba(238, 39, 55, 0.25);
    box-shadow: 0 0 28px rgba(238, 39, 55, 0.6);
}

.placeholder-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.placeholder-sub {
    font-size: 0.92rem;
    color: #94a3b8;
    margin: 0 0 0.85rem 0;
    max-width: 480px;
    line-height: 1.5;
}

.placeholder-sub strong {
    color: #EE2737;
}

.placeholder-hint {
    font-size: 0.8rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.placeholder-hint code {
    color: #ff4554;
    background: rgba(238, 39, 55, 0.15);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

@media (max-width: 1150px) {
    .intro-equation-wrapper {
        flex-wrap: wrap;
        gap: 1.2rem;
    }
    .equation-part {
        max-width: 200px;
    }
    .intro-main-title {
        font-size: 2.2rem;
        margin-bottom: 1.8rem;
    }
    .equation-op {
        font-size: 2rem;
        padding-bottom: 1rem;
    }
    .equation-label {
        font-size: 1rem;
    }
}

/* Site-wide Disclaimer Note */
.site-disclaimer-note {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
    box-sizing: border-box;
    letter-spacing: 0.1px;
}

.disclaimer-x-link {
    color: #EE2737;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.disclaimer-x-link:hover {
    color: #ff5565;
    text-decoration-color: #ff5565;
}

.intro-disclaimer {
    margin: 3.5rem auto 1.5rem auto;
    max-width: 1050px;
    padding: 0 1.5rem;
}

.disclaimer-map-view {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    margin: 0;
    max-width: min(720px, calc(100% - 660px));
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0.45rem 1.4rem;
    font-size: 0.74rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    white-space: normal;
}

@media (max-width: 1350px) {
    .disclaimer-map-view {
        max-width: min(680px, calc(100% - 580px));
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 1050px) {
    .disclaimer-map-view {
        position: static;
        transform: none;
        max-width: 92%;
        margin: 1rem auto;
        border-radius: 10px;
    }
}

.disclaimer-table-view {
    margin: 2.5rem auto 3rem auto;
    max-width: 1650px;
    width: 94%;
    padding: 0 1rem;
}

.disclaimer-neutron-view {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    width: 94%;
    max-width: 1050px;
    padding: 0 1rem;
}

/* ==========================================================================
   Neutron Development Chronology Styles
   ========================================================================== */
.ndc-chronology-section {
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(238, 39, 55, 0.25);
    width: 100%;
    box-sizing: border-box;
}

.ndc-chrono-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.ndc-chrono-title-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ndc-chrono-heading {
    font-family: 'Orbitron', 'Inter', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #EE2737;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 16px rgba(238, 39, 55, 0.4);
}

.ndc-chrono-badge {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #EE2737;
    background: rgba(238, 39, 55, 0.12);
    border: 1px solid rgba(238, 39, 55, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
}

.ndc-chrono-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    position: relative;
}

.ndc-chrono-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
    z-index: 1;
}

.ndc-chrono-item {
    display: flex;
    align-items: stretch;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.ndc-chrono-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18px;
    flex-shrink: 0;
    padding-top: 1.15rem;
    position: relative;
    z-index: 2;
}

.ndc-chrono-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #EE2737;
    box-shadow: 0 0 10px rgba(238, 39, 55, 0.95), 0 0 4px rgba(238, 39, 55, 0.8);
    flex-shrink: 0;
    border: 2px solid #08080a;
    position: relative;
    z-index: 2;
}

.ndc-chrono-content {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(14, 14, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #EE2737;
    border-radius: 8px;
    padding: 1.1rem 1.35rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.ndc-chrono-content:hover {
    border-color: rgba(238, 39, 55, 0.5);
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(238, 39, 55, 0.15);
}

.ndc-chrono-item-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 0.65rem;
}

.ndc-chrono-date {
    display: inline-block;
    font-family: 'Orbitron', 'Inter', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ff6470;
    background: rgba(238, 39, 55, 0.14);
    border: 1px solid rgba(238, 39, 55, 0.4);
    padding: 2px 9px;
    border-radius: 4px;
    white-space: nowrap;
}

.ndc-chrono-item-heading {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.ndc-chrono-item-desc {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.91rem;
    line-height: 1.68;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.ndc-chrono-links-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ndc-chrono-links-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.ndc-chrono-links-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ndc-chrono-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff5c68;
    background: rgba(238, 39, 55, 0.08);
    border: 1px solid rgba(238, 39, 55, 0.3);
    border-radius: 4px;
    padding: 3px 10px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.ndc-chrono-link:hover {
    background: #EE2737;
    color: #ffffff;
    border-color: #EE2737;
    box-shadow: 0 0 10px rgba(238, 39, 55, 0.5);
}

.ndc-chrono-link-icon {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .ndc-chrono-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .ndc-chrono-item {
        gap: 0.75rem;
    }
    .ndc-chrono-list::before {
        left: 6px;
    }
    .ndc-chrono-marker {
        width: 14px;
        padding-top: 1rem;
    }
    .ndc-chrono-dot {
        width: 10px;
        height: 10px;
    }
    .ndc-chrono-content {
        padding: 0.9rem 1rem;
    }
    .ndc-chrono-item-heading {
        font-size: 0.96rem;
    }
    .ndc-chrono-item-desc {
        font-size: 0.87rem;
    }
}


