:root {
    --emerald: #10b981;
    --bg-dark: #121212;
}

body,
html {
    background-color: var(--bg-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.tactical-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.logo {
    color: var(--emerald);
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.info-circle {
    border: 1px solid var(--emerald);
    color: var(--emerald);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-jet {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.mission-control-deck {
    width: 90%;
    max-width: 1200px;
    margin: -100px auto 0;
    /* REMOVES SPACING - PULLS TEXT UP */
    position: relative;
    z-index: 10;
}

.brand-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: -3px;
}

.brand-title .accent {
    color: var(--emerald);
    animation: flicker 0.2s infinite;
    /* RADAR FLICKER */
}

@keyframes flicker {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.9;
    }
}

.form-row {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.input-block input {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    color: #fff;
    width: 100%;
}

button {
    background: var(--emerald);
    color: #000;
    font-weight: 900;
    border: none;
    padding: 0 30px;
    cursor: pointer;
}

/* DATA NODES */
.node {
    position: absolute;
}

.node-label {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--emerald);
    color: var(--emerald);
    font-size: 0.6rem;
    padding: 2px 5px;
}

.node-pulse {
    width: 10px;
    height: 10px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
}

/* INTEL MODAL (BLOG OVERLAY) */
#intel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Deep tactical fade */
    z-index: 4000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-frame {
    width: 80%;
    max-width: 800px;
    height: 80%;
    background: #0f0f0f;
    border: 1px solid var(--emerald);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
}

#intel-id {
    color: var(--emerald);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1px;
}

.modal-scroll-zone {
    padding: 40px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    color: #ccc;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.02) 0%, transparent 100%);
}

.modal-header button {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: 0.3s;
}

.modal-header button:hover {
    border-color: var(--emerald);
    color: var(--emerald);
}

/* TACTICAL MODAL (BLOG) */
.tactical-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #000;
    border: 1px solid var(--emerald);
    padding: 40px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.2);
}

.close-signal {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #555;
    font-size: 0.7rem;
    cursor: pointer;
    letter-spacing: 1px;
}

.close-signal:hover {
    color: var(--emerald);
}

.audit-btn {
    background: transparent;
    border: 1px solid var(--emerald);
    color: var(--emerald);
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.audit-btn:hover {
    color: #000;
}

/* TACTICAL MAP ENHANCEMENTS */
#fleet-map {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1) hue-rotate(90deg) brightness(0.4);
    /* Dark Emerald Theme */
    position: relative;
    width: 100%;
    height: 100%;
}

.flight-path {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    box-shadow: 0 0 10px var(--emerald);
    animation: signal-sweep 4s infinite linear;
    transform-origin: left;
}

@keyframes signal-sweep {
    0% {
        width: 0%;
        opacity: 0;
    }

    50% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

.map-ping {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 15px var(--emerald);
    animation: ping-pulse 2s infinite;
}

@keyframes ping-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* BLOG SECTION STYLING */
.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 5%;
    background: #121212;
}

.intel-card {
    background: #1e293b;
    /* Deep Navy Card */
    border: 1px solid #334155;
    padding: 30px;
    position: relative;
    transition: border 0.3s ease;
}

.intel-card:hover {
    border-color: var(--emerald);
}

.intel-tag {
    color: var(--emerald);
    border: 1px solid var(--emerald);
    font-size: 0.6rem;
    padding: 2px 8px;
    letter-spacing: 1px;
}

.intel-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 20px 0;
    text-transform: uppercase;
}

.read-link {
    color: var(--emerald);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: bold;
    display: block;
    margin-top: 20px;
}

/* TOP RIGHT NAV FIX - OVERRIDE */
.tactical-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 90%;
    z-index: 1000;
}

/* FLEET STATS BAR */
.fleet-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #000;
    border-top: 1px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #888;
}

.stat-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.emerald-text {
    color: var(--emerald);
}

/* ANCHORING THE MONITORING ZONE */
#fleet-monitor {
    background: #000;
    border-top: 1px solid var(--emerald);
    position: relative;
}

#map-container {
    height: 450px;
    width: 100%;
    position: relative;
    background: #050505;
    overflow: hidden;
}

/* THE TACTICAL GRID */
.map-overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 5;
    pointer-events: none;
}

/* FOOTER STYLING */
.rosetta-footer {
    background: #000;
    padding: 40px 5%;
    border-top: 1px solid #1a1a1a;
    color: #666;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emerald-text {
    color: var(--emerald);
    font-weight: bold;
}

.footer-brand p {
    font-size: 0.7rem;
    color: #555;
    margin-top: 5px;
    letter-spacing: 2px;
}

.footer-legal {
    text-align: right;
    font-size: 0.6rem;
    color: #444;
}

.footer-legal p {
    margin: 2px 0;
}

/* JET INTEL HUD POPUP */
#jet-intel-HUD {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--emerald);
    padding: 20px;
    z-index: 2000;
    box-shadow: 0 0 30px var(--emerald-glow);
    font-family: 'Courier New', monospace;
    min-width: 250px;
    display: none;
    /* Controlled by JS */
}

.hud-box h3 {
    color: var(--emerald);
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.hud-box p {
    color: #fff;
    font-size: 0.8rem;
    margin: 5px 0;
}

.emerald {
    color: var(--emerald);
    font-weight: bold;
}

.map-ping.interactive-node {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.map-ping.interactive-node:hover {
    transform: scale(2.5);
    background: #fff;
    /* White flash on hover for feedback */
}

/* MISSION INTAKE ZONE */
.mission-intake-zone {
    margin-top: 40px;
    width: 100%;
}

.intake-container {
    display: flex;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    height: 60px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.input-tag {
    font-size: 0.6rem;
    color: #888;
    margin-bottom: 2px;
}

.input-group input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    outline: none;
}

.input-divider {
    width: 1px;
    background: #333;
    height: 70%;
    align-self: center;
}

#mission-trigger {
    background: #00ffcc;
    /* High-intensity neon from your image */
    color: #000;
    border: none;
    padding: 0 40px;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#mission-trigger:hover {
    background: #fff;
    box-shadow: 0 0 20px #00ffcc;
}

/* TACTICAL DATA NODES (HERO) */
.tactical-node {
    position: absolute;
    width: 200px;
}

.node-dot {
    width: 10px;
    height: 10px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ffcc;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    transition: 0.3s;
}

.node-dot:hover {
    transform: scale(1.5);
    background: #fff;
}

.node-data-box {
    margin-left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 1px solid #00ffcc;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #00ffcc;
    display: flex;
    flex-direction: column;
    opacity: 0.7;
    transition: 0.3s;
}

.tactical-node:hover .node-data-box {
    opacity: 1;
    border-left: 2px solid #fff;
}

.data-line {
    margin-bottom: 2px;
}

/* MISSION TERMINAL OVERLAY */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-box {
    width: 80%;
    max-width: 600px;
    font-family: 'Courier New', monospace;
    color: var(--emerald);
}

.terminal-header {
    border-bottom: 1px solid var(--emerald);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

#terminal-logs {
    height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.log-line {
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.log-line.error {
    color: #fe4a49;
}

.log-line.success {
    color: var(--emerald);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.hidden {
    display: none !important;
}

/* MISSION RESULTS */
#mission-results {
    padding: 60px 40px;
    background: #000;
    min-height: 400px;
}

.results-header {
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 5%;
}

.jet-card {
    background: #111;
    border: 1px solid #333;
    padding: 25px;
    border-radius: 4px;
    transition: 0.3s ease;
    display: block;
    /* Override previous flex if needed */
}

.jet-card:hover {
    border-color: var(--emerald);
    box-shadow: 0 0 15px var(--emerald-glow);
}

.integrity-tag {
    background: var(--emerald);
    color: #000;
    font-size: 0.6rem;
    padding: 2px 6px;
    font-weight: 900;
}

.audit-btn {
    width: 100%;
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--emerald);
    color: var(--emerald);
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audit-btn:hover {
    background: var(--emerald);
    color: #000;
}

/* CHARTER FLIGHT CARDS */
.jet-card {
    display: block;
    /* Override previous flex if needed, or refine */
    flex-direction: column;
}

.jet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.jet-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.integrity-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    border: 1px solid var(--emerald);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
}

.tail-sub {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #ccc;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.price-row .emerald-text {
    font-size: 1.1rem;
}

/* ACTIVE FLEET NODES */
.active-node {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 20;
    cursor: pointer;
}

.node-pulse {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--emerald);
    animation: ping-pulse 2s infinite;
}

.node-data-HUD {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--emerald);
    padding: 10px;
    width: 150px;
    font-size: 0.7rem;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 30;
    text-align: center;
}

.active-node:hover .node-data-HUD {
    opacity: 1;
}

.node-data-HUD p {
    margin: 2px 0;
}


/* RESPONSIVE LOCK */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* RESPONSIVE TYPOGRAPHY & LAYOUT */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .mission-control-deck {
        margin: -40px auto 0;
    }

    .form-row,
    .intake-container {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
        width: 90%;
    }

    .input-divider {
        display: none;
    }

    .tactical-header {
        padding: 20px 5%;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        font-size: 1.5rem;
    }
}