:root {
    --bg-color: #050b14;
    --panel-bg: rgba(10, 20, 38, 0.75);
    --panel-glass: rgba(13, 27, 42, 0.65);
    --border-color: rgba(30, 144, 255, 0.25);
    --border-glow: rgba(0, 210, 255, 0.4);
    --accent-blue: #00d2ff;
    --accent-green: #39ff14; /* Neon Green */
    --accent-orange: #ffb703;
    --accent-red: #ff3333;
    --text-color: #e0e6ed;
    --text-muted: #8892b0;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --glow-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(circle at center, #0f223d 0%, #03070d 100%);
}

/* ---------------------------------------------------- */
/* Landing View Styles */
/* ---------------------------------------------------- */
#landing-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
    animation: fadeIn 0.8s ease-out;
}

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

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 50px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radar-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid var(--accent-green);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
}

.logo-text span {
    color: var(--accent-green);
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    background: linear-gradient(135deg, #fff 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 210, 255, 0.15);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

.cta-button-group {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d2ff 0%, #007bb5 100%);
    border: none;
    color: #03070d;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 210, 255, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(30, 144, 255, 0.15);
    border-color: var(--accent-blue);
}

/* Glass Card Features Grid */
.airspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.airspace-card {
    background: var(--panel-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 25px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.airspace-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.airspace-card-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.airspace-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 10px;
}

.airspace-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Info Section: How it Works & FAQ */
.info-section {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 60px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.info-section h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-blue);
    padding-left: 15px;
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step-card {
    position: relative;
    padding-left: 50px;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.step-card h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Accordion FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent-blue);
    transition: transform 0.2s;
}

.faq-item.active {
    border-color: var(--border-color);
    background: rgba(30, 144, 255, 0.05);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

/* Landing Footer */
.landing-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.landing-footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

.landing-footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------- */
/* Simulator Layout (App Container) Styles */
/* ---------------------------------------------------- */
#app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#sidebar {
    width: 380px;
    min-width: 380px;
    background: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 999;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(8, 15, 25, 0.5);
}

.sidebar-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

.sidebar-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.panel-section {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Flight strip list */
.flight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flight-card:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 210, 255, 0.05);
}

.flight-card.selected {
    border-color: var(--accent-green);
    background: rgba(57, 255, 20, 0.08);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
}

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

.callsign {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-green);
}

.type {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
}

.flight-card-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.detail-item span {
    color: var(--text-muted);
    font-size: 0.6rem;
    display: block;
}

/* Plane Control Form */
#plane-control {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.control-group {
    margin-bottom: 12px;
}

.control-group-spaced {
    margin-top: 15px;
}

.footer-server-status {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.control-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

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

.control-val {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-blue);
}

.slider-control {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
    transition: transform 0.1s ease;
}

.slider-control::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.btn-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.btn {
    background: rgba(30, 144, 255, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn:hover:not(:disabled) {
    background: rgba(30, 144, 255, 0.35);
    border-color: var(--accent-blue);
    color: #fff;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn.active-command {
    background: rgba(57, 255, 20, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn.danger {
    background: rgba(255, 51, 51, 0.15);
    border-color: rgba(255, 51, 51, 0.3);
    color: #ff8888;
}

.btn.danger:hover {
    background: rgba(255, 51, 51, 0.35);
    border-color: var(--accent-red);
    color: #fff;
}

/* Radio Log */
#radio-log-container {
    height: 180px;
    background: rgba(5, 10, 20, 0.9);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.radio-log-header {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(30, 144, 255, 0.15);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

#radio-log {
    padding: 10px 15px;
    overflow-y: auto;
    flex-grow: 1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.4;
}

.log-entry {
    margin-bottom: 6px;
    border-left: 2px solid var(--accent-blue);
    padding-left: 6px;
}

.log-entry.controller {
    border-color: var(--accent-blue);
    color: #9cdcfe;
}

.log-entry.pilot {
    border-color: var(--accent-green);
    color: #b5cea8;
}

.log-entry.system {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* Radar Display Area */
#radar-wrapper {
    flex-grow: 1;
    position: relative;
    height: 100%;
    background: #04080e;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    background: transparent;
    z-index: 10;
}

canvas:active {
    cursor: grabbing;
}

/* Overlay controls */
#map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(8, 15, 25, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 999;
}

.control-title {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-color);
}

.checkbox-label input {
    cursor: pointer;
    accent-color: var(--accent-blue);
}

#hud-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(8, 15, 25, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 5;
    color: var(--accent-blue);
    text-shadow: 0 0 5px rgba(0, 210, 255, 0.2);
}

#hud-info b {
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.5px;
}

#hud-info span {
    color: var(--accent-green);
}

#help-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(8, 15, 25, 0.85);
    border: 1px solid var(--border-color);
    color: var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
}

#help-btn:hover {
    background: var(--accent-blue);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Sound button */
.sound-toggle-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 1.1rem;
    outline: none;
}

.sound-toggle-btn:hover {
    color: var(--accent-green);
}

.sim-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sim-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.sim-btn:hover {
    background: rgba(30, 144, 255, 0.25);
    border-color: var(--accent-blue);
}

.sim-btn.active {
    background: var(--accent-blue);
    color: #080f19;
    border-color: var(--accent-blue);
}

.admin-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.85rem;
}

.admin-input:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-top: 10px;
}

.admin-table th, .admin-table td {
    border: 1px solid rgba(30, 144, 255, 0.15);
    padding: 8px 10px;
    text-align: left;
}

.admin-table th {
    background: rgba(8, 15, 25, 0.8);
    color: var(--accent-blue);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table .actions {
    display: flex;
    gap: 5px;
}

.admin-table .actions button {
    padding: 2px 6px;
    font-size: 0.7rem;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 13, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 99;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 20, 35, 0.96);
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    padding: 25px;
    z-index: 100;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    color: var(--text-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal h2 {
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.modal p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.session-form-group {
    margin-bottom: 15px;
}

.session-form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.session-select {
    width: 100%;
    padding: 10px;
    background: rgba(5, 10, 20, 0.9);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
}

.session-select:focus {
    border-color: var(--accent-blue);
    box-shadow: var(--glow-shadow);
}

/* Inline styles removal helper classes */
.btn-launch {
    text-decoration: none;
    display: inline-block;
    background: var(--accent-blue);
    color: #050b14;
    border-color: var(--accent-blue);
    padding: 8px 20px;
    font-weight: 700;
}

.hero-primary-btn {
    text-decoration: none;
    text-align: center;
}

.hero-radar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-outer-ring {
    width: 320px;
    height: 320px;
    border: 2px solid rgba(0, 210, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.radar-middle-ring {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 50%;
}

.radar-inner-ring {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 210, 255, 0.05);
    border-radius: 50%;
}

.radar-sweep-line {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(57,255,20,0.8), rgba(0,0,0,0));
    left: 50%;
    top: 50%;
    transform-origin: left center;
    animation: radarSweepSpin 4s linear infinite;
}

.radar-dot-green {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    top: 30%;
    left: 40%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseGlow 2s infinite;
}

.radar-dot-blue {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    top: 65%;
    left: 70%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulseGlow 2.5s infinite;
}

.radar-label-green {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-green);
    top: 22%;
    left: 43%;
}

.radar-label-blue {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-blue);
    top: 57%;
    left: 73%;
}

.section-margin-bottom {
    margin-bottom: 60px;
}

.section-title-custom {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-blue);
    padding-left: 15px;
    color: #fff;
}

.footer-margin-top {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sidebar-title-font {
    font-size: 1.1rem;
}

.sidebar-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-admin-custom {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent-blue);
    font-size: 0.7rem;
    padding: 4px 8px;
}

.btn-exit-custom {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    padding: 4px 8px;
}


.panel-flex-grow {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 300px; /* Constrain the height so commands panel is never pushed out */
    transition: max-height 0.3s ease, flex-grow 0.3s ease, padding 0.3s ease;
}

.panel-flex-grow.collapsed {
    flex-grow: 0;
    max-height: 40px;
}

.traffic-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
    padding: 6px 10px;
    margin: -6px -10px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.traffic-header:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-blue) !important;
}

#traffic-toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

/* ====================================================
   PHASE 2: Sector-aware Session Modal
   ==================================================== */
.session-modal {
    width: 520px;
    display: block;
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
}

.btn-launch {
    padding: 10px 24px;
    background: var(--accent-blue);
    color: #03070d;
    font-weight: 700;
    border-color: var(--accent-blue);
}

.btn-launch:hover {
    background: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

.session-text-input {
    padding: 10px;
    margin-bottom: 0;
}

/* ====================================================
   PHASE 3: STCA — Short Term Conflict Alert Banner
   ==================================================== */
.stca-banner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: rgba(200, 0, 0, 0.85);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 22px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #ff0000;
    letter-spacing: 0.08em;
    text-align: center;
    animation: stca-pulse 0.6s ease-in-out infinite alternate;
    white-space: nowrap;
}

@keyframes stca-pulse {
    from { background: rgba(200, 0, 0, 0.85); box-shadow: 0 0 8px rgba(255,0,0,0.4); }
    to   { background: rgba(255, 30, 30, 0.95); box-shadow: 0 0 22px rgba(255,0,0,0.8); }
}

.stca-banner.hidden {
    display: none;
}

/* ====================================================
   PHASE 2: Overflight aircraft label color (ACC)
   Overflights rendered in cyan on radar, different from green arrivals
   ==================================================== */
.overflight-label {
    color: var(--accent-blue);
}

/* ====================================================
   PHASE 4: Off-screen canvas — no layout changes needed
   The static canvas is managed in JS, not in DOM
   ==================================================== */

/* Premium Voice & Context Menu Styling */
.mic-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.85rem;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mic-toggle-btn:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: var(--glow-shadow);
}

.mic-toggle-btn.listening {
    background: rgba(255, 51, 51, 0.2);
    border-color: var(--accent-red);
    color: var(--accent-red);
    animation: mic-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes mic-pulse {
    from { box-shadow: 0 0 4px rgba(255, 51, 51, 0.4); }
    to { box-shadow: 0 0 16px rgba(255, 51, 51, 0.8); }
}

/* Voice Help Button */
.voice-help-btn {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.35);
    border-radius: 4px;
    color: #ffc800;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.voice-help-btn:hover {
    background: rgba(255, 200, 0, 0.25);
    border-color: #ffc800;
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.4);
}

/* Voice Help Panel */
.voice-help-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 440px;
    max-height: 80vh;
    background: rgba(8, 18, 34, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 210, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.voice-help-panel.hidden {
    display: none;
}
.voice-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.15);
    background: rgba(0, 210, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
}
.voice-help-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.voice-help-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.voice-help-body {
    padding: 14px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.voice-help-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.voice-help-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.12);
}
.voice-help-row {
    font-size: 0.78rem;
    color: rgba(200, 220, 240, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.voice-ex {
    font-family: 'JetBrains Mono', monospace;
    color: #a8e6cf;
    background: rgba(0, 255, 100, 0.06);
    border: 1px solid rgba(0, 255, 100, 0.15);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.73rem;
}
.voice-help-alt {
    color: rgba(255, 200, 0, 0.7);
    font-style: italic;
    font-size: 0.72rem;
}
.voice-help-tip {
    background: rgba(255, 200, 0, 0.06);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.75rem;
    color: rgba(255, 200, 0, 0.85);
    line-height: 1.5;
}

/* Glassmorphism Context Menu */
.context-menu {
    position: absolute;
    z-index: 1000;
    width: 170px;
    background: rgba(10, 22, 41, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
    padding: 6px 0;
    display: none;
    font-family: var(--font-mono);
}

.context-menu-header {
    padding: 6px 14px 8px 14px;
    font-size: 0.68rem;
    color: var(--accent-green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.context-menu-item {
    position: relative;
    padding: 8px 14px;
    color: var(--text-color);
    font-size: 0.74rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.context-menu-item:hover {
    background: rgba(0, 210, 255, 0.15);
    color: #fff;
}

.context-menu-item .arrow-right {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* Submenu container */
.context-submenu {
    position: absolute;
    left: 100%;
    top: -6px;
    width: 130px;
    background: rgba(8, 17, 33, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 8px;
    padding: 6px 0;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}

.context-menu-item:hover > .context-submenu {
    display: block;
}

/* Extracted Inline Styles to Centralize CSS */
.btn-launch-radar {
    text-decoration: none;
    display: inline-block;
    background: var(--accent-blue);
    color: #050b14;
    border-color: var(--accent-blue);
    padding: 8px 20px;
    font-weight: 700;
}

.btn-primary-custom {
    text-decoration: none;
    text-align: center;
}

.hero-radar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-circle-outer {
    width: 320px;
    height: 320px;
    border: 2px solid rgba(0, 210, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.radar-circle-mid {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 50%;
}

.radar-circle-inner {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 210, 255, 0.05);
    border-radius: 50%;
}

.radar-sweep-hero {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(57,255,20,0.8), rgba(0,0,0,0));
    left: 50%;
    top: 50%;
    transform-origin: left center;
    animation: radarSweepSpin 4s linear infinite;
}

.radar-dot-green {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    top: 30%;
    left: 40%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseGlow 2s infinite;
}

.radar-dot-blue {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    top: 65%;
    left: 70%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulseGlow 2.5s infinite;
}

.radar-text-green {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-green);
    top: 22%;
    left: 43%;
}

.radar-text-blue {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-blue);
    top: 57%;
    left: 73%;
}

.margin-bottom-large {
    margin-bottom: 60px;
}

.hidden-initially {
    display: none;
}

.panel-scroll-y {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.text-placeholder-center {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 20px;
}

.control-panel-footer {
    background: rgba(5, 12, 22, 0.5);
    border-top: 1px solid var(--border-color);
    display: none;
}

.accent-green-text {
    color: var(--accent-green);
}

/* Flight Plan Modal Glassmorphism Details */
.flight-plan-modal {
    background: rgba(10, 20, 35, 0.92) !important;
    border: 2px solid var(--accent-blue) !important;
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.25) !important;
    max-width: 90vw;
}

.fp-item-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.fp-item-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(30, 144, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fp-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin-top: 4px;
}
.fp-input:focus {
    outline: none;
    border-color: #00d2ff;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

/* Developer & Contact Card Styles */
.developer-card {
    background: rgba(30, 41, 59, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-top: 25px;
    box-shadow: var(--shadow-sm);
}

.developer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.dev-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-value {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 500;
}

.info-value a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: #34d399;
    text-decoration: underline;
}

/* Sidebar & Layers Toggle Button styling */
.sidebar-toggle-btn, .layers-toggle-btn {
    display: none;
}

@media (max-width: 900px) {
    .sidebar-toggle-btn, .layers-toggle-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        position: absolute;
        top: 20px;
        z-index: 20;
        padding: 8px 12px;
        background: rgba(8, 15, 25, 0.9);
        border: 1px solid var(--border-color);
        color: #fff;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
    }
    
    .sidebar-toggle-btn {
        left: 20px;
    }
    
    .layers-toggle-btn {
        right: 20px;
    }
    
    .sidebar-toggle-btn:hover, .layers-toggle-btn:hover {
        border-color: var(--accent-blue);
        background: rgba(0, 210, 255, 0.1);
    }
    
    #sidebar {
        position: absolute;
        top: 0;
        left: -380px;
        bottom: 0;
        width: 340px;
        min-width: 340px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 90;
    }
    
    #sidebar.active {
        left: 0;
    }
    
    #radar-wrapper {
        width: 100%;
        height: 100%;
    }
    
    #map-controls {
        display: none;
        top: 70px;
        right: 20px;
        z-index: 85;
        width: 220px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    }
    
    #map-controls.active {
        display: flex;
    }
}

/* Mobile Responsive Media Queries */
@media (max-width: 768px) {
    /* Landing Header */
    .landing-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Hero Section */
    .hero-section {
        flex-direction: column;
        padding: 80px 20px 40px 20px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-radar-container {
        margin-top: 30px;
        width: 280px;
        height: 280px;
    }
    
    /* Info sections */
    .info-section {
        padding: 0 20px;
    }
    
    .info-section h2 {
        font-size: 1.8rem;
    }
    
    /* Setup and Admin Modals */
    .modal {
        width: 92% !important;
        max-width: 92% !important;
        max-height: 90vh !important;
        padding: 15px !important;
        overflow-y: auto !important;
    }
    
    .session-modal {
        width: 92% !important;
    }
    
    /* Radar map HUD converted to slim footer bar */
    #hud-info {
        top: auto;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        align-items: center;
        padding: 6px 12px;
        font-size: 0.72rem;
        text-align: center;
        border-radius: 6px;
    }
    
    #hud-info br {
        display: none;
    }
    
    #hud-info b::after {
        content: " |";
        margin-left: 8px;
        opacity: 0.4;
    }
    
    #hud-info span::after {
        content: " |";
        margin-left: 8px;
        opacity: 0.4;
    }
    
    #hud-info span:last-child::after {
        content: "";
    }
    
    /* Flight strip list text size */
    .flight-card {
        padding: 5px 8px;
    }
    
    .flight-card-callsign {
        font-size: 0.8rem !important;
    }
    
    .flight-card-details {
        font-size: 0.75rem !important;
    }
    
    .flight-card-state {
        font-size: 0.7rem !important;
    }
}

/* ====================================================
   LANDING PAGE — NEW BRANDING & SECTIONS
   ==================================================== */

/* Logo subtitle */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-sub {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Hero brand badge */
.hero-brand-badge {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

/* Hero stats row */
.hero-stats-row {
    display: flex;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 18px;
    min-width: 68px;
}
.hero-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Hero Canvas Radar */
.hero-radar-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.hero-radar-canvas {
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(0, 210, 120, 0.25),
        0 0 30px rgba(0, 210, 120, 0.12),
        0 0 80px rgba(0, 210, 120, 0.06);
    display: block;
}
.hero-radar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 210, 120, 0.6);
}

/* Section subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: -18px auto 36px;
    line-height: 1.6;
}

/* ====================================================
   FEATURES GRID
   ==================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 210, 255, 0.06);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}
.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8f4ff;
    margin: 0 0 10px;
}
.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 16px;
}
.feature-tag {
    display: inline-block;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

/* ====================================================
   CONTACT GLASSMORPHISM CARDS
   ==================================================== */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-glass-card {
    background: rgba(0, 210, 255, 0.04);
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.contact-glass-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,210,255,0.4), transparent);
}
.contact-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 210, 255, 0.1);
}
.contact-card-icon {
    font-size: 1.25rem;
    margin-bottom: 4px;
    display: block;
}
.contact-card-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 4px;
}
.contact-card-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c8e6f0;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
    display: block;
}
.contact-card-value:hover {
    color: var(--accent-blue);
}

/* ====================================================
   FOOTER REDESIGN
   ==================================================== */
.landing-footer {
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 40px 40px;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}
.footer-brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-brand-by {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.footer-copy {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(200, 220, 240, 0.8);
    margin: 0;
}
.footer-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}
.footer-server-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}
.footer-server-status a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}
.footer-server-status a:hover {
    text-decoration: underline;
}

/* ====================================================
   RESPONSIVE — NEW SECTIONS
   ==================================================== */
@media (max-width: 900px) {
    .hero-radar-canvas {
        width: 280px !important;
        height: 280px !important;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-stats-row {
        gap: 12px;
    }
}
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    .hero-radar-canvas {
        width: 240px !important;
        height: 240px !important;
    }
    .hero-stats-row {
        justify-content: center;
    }
    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

/* ====================================================
   LOGO — AVI ATCS BRANDED IMAGE
   ==================================================== */
.avi-logo {
    height: 52px !important;
    width: auto !important;
    border-radius: 0 !important;
    object-fit: contain;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* ====================================================
   LOGIN GATE MODAL
   ==================================================== */
.login-gate-modal {
    width: 460px;
    max-width: 95vw;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 40px rgba(0,210,255,0.05);
}
.login-gate-header {
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 100%);
    border-bottom: 1px solid rgba(0, 210, 255, 0.12);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-gate-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}
.login-gate-body {
    padding: 28px 30px 24px;
}
.login-gate-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e8f4ff;
    margin: 0 0 6px;
    text-align: center;
}
.login-gate-subtitle {
    font-size: 0.83rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 22px;
    line-height: 1.5;
}
.login-error-msg {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.35);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.8rem;
    color: #ff8888;
    margin-bottom: 18px;
    line-height: 1.5;
}
.login-error-msg a {
    color: var(--accent-blue);
    text-decoration: underline;
}
.login-error-msg.hidden { display: none; }
.login-gate-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.login-gate-btn {
    flex: 1;
    padding: 12px !important;
    font-size: 0.95rem !important;
    background: linear-gradient(135deg, #0080ff, #00d2ff) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 8px !important;
    transition: opacity 0.2s;
}
.login-gate-btn:hover { opacity: 0.9; }
.login-cancel-btn {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.login-cancel-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.login-gate-trial-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 200, 0, 0.06);
    border: 1px solid rgba(255, 200, 0, 0.18);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 200, 0, 0.8);
}
.login-trial-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.login-gate-trial-notice strong { display: block; color: #ffc800; margin-bottom: 4px; }
.login-gate-trial-notice p { margin: 0; color: rgba(255,200,0,0.75); }
.login-gate-trial-notice a { color: var(--accent-blue); text-decoration: none; }
.login-gate-trial-notice a:hover { text-decoration: underline; }

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-10px); }
    30% { transform: translateX(10px); }
    45% { transform: translateX(-8px); }
    60% { transform: translateX(8px); }
    75% { transform: translateX(-5px); }
    90% { transform: translateX(5px); }
}
.shake-anim { animation: shake 0.55s ease; }

/* ====================================================
   SHOWCASE SECTION
   ==================================================== */
.showcase-section {
    padding: 0 40px;
}
.showcase-cover-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,210,255,0.12);
}
.showcase-cover-img {
    width: 100%;
    display: block;
    border-radius: 20px;
}
.showcase-cover-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.showcase-badge {
    position: absolute;
    background: rgba(5, 15, 30, 0.88);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e8f4ff;
    line-height: 1.3;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.showcase-badge small {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--accent-blue);
    margin-top: 2px;
}
.badge-top-left    { top: 16px;    left: 16px; }
.badge-top-right   { top: 16px;    right: 16px; }
.badge-bottom-left { bottom: 80px; left: 16px; }
.badge-bottom-right{ bottom: 80px; right: 16px; }

.showcase-cover-cta {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(5,11,20,0.97) 0%, rgba(5,11,20,0.7) 70%, transparent 100%);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.btn-large {
    padding: 14px 36px !important;
    font-size: 1rem !important;
    flex-shrink: 0;
}
.showcase-cta-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.showcase-cta-note a {
    color: var(--accent-blue);
    text-decoration: none;
}
.showcase-cta-note a:hover { text-decoration: underline; }

/* Session block */
.showcase-session-block {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    overflow: hidden;
}
.showcase-session-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(0, 210, 120, 0.05);
    border-bottom: 1px solid rgba(0, 210, 120, 0.12);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: rgba(0, 210, 120, 0.85);
    letter-spacing: 0.5px;
}
.showcase-session-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #39ff14;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.7);
    animation: pulse-dot 1.5s ease-in-out infinite alternate;
}
@keyframes pulse-dot {
    from { box-shadow: 0 0 4px rgba(57,255,20,0.5); }
    to   { box-shadow: 0 0 14px rgba(57,255,20,0.9); }
}
.showcase-session-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
}
.showcase-session-img-wrap {
    position: relative;
    overflow: hidden;
}
.showcase-session-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.showcase-session-overlay-label {
    position: absolute;
    background: rgba(5,15,30,0.9);
    border: 1px solid rgba(0,210,255,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e8f4ff;
    line-height: 1.3;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.showcase-session-overlay-label small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--accent-blue);
    margin-top: 2px;
}
.label-radar   { top: 15%;  left: 38%; }
.label-sidebar { top: 50%;  left: 2%;  }
.label-stca    { top: 5%;   left: 20%; }
.label-log     { bottom: 8%; left: 2%; }

.showcase-session-features {
    padding: 28px 26px;
    border-left: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.showcase-feat-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e8f4ff;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.showcase-feat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.showcase-feat-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.showcase-feat-list li strong {
    display: block;
    color: #c8dff0;
    font-size: 0.84rem;
    margin-bottom: 2px;
}
.showcase-feat-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.showcase-trial-cta {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.showcase-trial-cta p {
    font-size: 0.88rem;
    font-weight: 600;
    color: #c8dff0;
    margin: 0;
}
.showcase-trial-note {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}
.showcase-trial-note a {
    color: var(--accent-blue);
    text-decoration: none;
}
.showcase-trial-note a:hover { text-decoration: underline; }

/* Responsive showcase */
@media (max-width: 900px) {
    .showcase-session-layout { grid-template-columns: 1fr; }
    .showcase-session-features { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
    .badge-top-left, .badge-top-right, .badge-bottom-left, .badge-bottom-right { display: none; }
    .showcase-section { padding: 0 16px; }
}

/* ====================================================
   LANDING PAGE — COMPACT UNIFORM LAYOUT
   Reduce height, force same-row cards
   ==================================================== */

/* ── Global spacing reduction ── */
.landing-view,
#landing-view {
    overflow-x: hidden;
}
.margin-bottom-large {
    margin-bottom: 36px !important;
}
.info-section {
    margin-bottom: 32px !important;
    padding: 28px 32px !important;
}
.info-section h2 {
    font-size: 1.4rem !important;
    margin-bottom: 18px !important;
}
.section-title-custom {
    font-size: 1.4rem !important;
    margin-bottom: 16px !important;
}

/* ── Airspace Grid: always 4 columns ── */
.airspace-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
}
.airspace-card {
    padding: 18px 16px !important;
}
.airspace-card-icon {
    font-size: 1.6rem !important;
    margin-bottom: 8px !important;
}
.airspace-card h3 {
    font-size: 0.88rem !important;
    margin-bottom: 6px !important;
}
.airspace-card p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
}

/* ── Features Grid: 3+2 layout ── */
.features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    margin: 0 auto !important;
}
.feature-card {
    padding: 18px 16px !important;
}
.feature-icon {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
}
.feature-title {
    font-size: 0.88rem !important;
    margin-bottom: 6px !important;
}
.feature-desc {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}
.feature-tag {
    font-size: 0.62rem !important;
    padding: 2px 9px !important;
}
.section-subtitle {
    margin: -10px auto 18px !important;
    font-size: 0.85rem !important;
}

/* ── Instruction Steps: 4 in a row ── */
.instruction-steps {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 0 !important;
}
.step-card {
    padding-left: 44px !important;
}
.step-card h4 {
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
}
.step-card p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
}

/* ── Contact Cards: 4 in a row ── */
.contact-cards-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
}
.contact-glass-card {
    padding: 20px 14px !important;
}
.contact-card-icon {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
}
.contact-card-label {
    font-size: 0.62rem !important;
    margin-bottom: 5px !important;
}
.contact-card-value {
    font-size: 0.78rem !important;
}

/* ── Hero section ── */
.hero-section {
    padding: 32px 60px !important;
    min-height: unset !important;
}
.hero-stats-row {
    margin-top: 18px !important;
    gap: 12px !important;
}
.hero-stat {
    padding: 8px 14px !important;
}
.hero-stat-num { font-size: 1rem !important; }
.hero-stat-label { font-size: 0.58rem !important; }

/* ── Hero Radar Canvas ── */
.hero-radar-canvas {
    width: 320px !important;
    height: 320px !important;
}

/* ── FAQ Items more compact ── */
.faq-question {
    padding: 14px 20px !important;
    font-size: 0.9rem !important;
}
.faq-answer {
    padding: 0 20px !important;
    font-size: 0.82rem !important;
}
.faq-item.active .faq-answer {
    padding: 12px 20px 16px !important;
}

/* ── Footer compact ── */
.landing-footer {
    padding: 24px 40px !important;
}

/* ── Responsive: collapse to 2 cols on tablet ── */
@media (max-width: 1100px) {
    .airspace-grid      { grid-template-columns: repeat(2, 1fr) !important; }
    .features-grid      { grid-template-columns: repeat(2, 1fr) !important; }
    .instruction-steps  { grid-template-columns: repeat(2, 1fr) !important; }
    .contact-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hero-section { padding: 24px 32px !important; }
}
@media (max-width: 700px) {
    .airspace-grid      { grid-template-columns: 1fr !important; }
    .features-grid      { grid-template-columns: 1fr !important; }
    .instruction-steps  { grid-template-columns: 1fr !important; }
    .contact-cards-grid { grid-template-columns: 1fr 1fr !important; }
    .hero-section { padding: 20px 16px !important; flex-direction: column !important; }
    .hero-radar-canvas  { width: 240px !important; height: 240px !important; }
}

/* ====================================================== */
/* LEAFLET MAP CONTAINER                                  */
/* ====================================================== */
#leafletMap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: none; /* hidden on landing page; shown when simulator is active */
}

/* Show map when simulator container is visible */
#app-container:not(.hidden-initially) ~ #leafletMap,
body.sim-active #leafletMap {
    display: block;
}

/* Leaflet overrides for the dark theme */
.leaflet-container {
    background: #04080e !important;
}

.leaflet-control-attribution {
    display: none !important;
}

/* ====================================================== */
/* PREMIUM MAP STYLE SELECTOR                             */
/* ====================================================== */
.map-style-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.map-style-label {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.premium-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(10, 16, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D2FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.premium-select:hover {
    border-color: rgba(0, 210, 255, 0.5);
    background: rgba(15, 22, 35, 0.8);
}

.premium-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

.premium-select option {
    background: #0b111a;
    color: #fff;
    padding: 8px;
}

/* ====================================================== */
/* MICRO-ANIMATIONS & HOVER EFFECTS                       */
/* ====================================================== */

/* Buttons: subtle glow on hover */
.btn:hover:not(:disabled),
.sim-btn:hover {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Flight cards: smooth selection transition */
.flight-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Panel sections: subtle fade-in when appearing */
.panel-section {
    animation: panelFadeIn 0.3s ease-out;
}

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

/* Slider thumb: pulse glow when active */
.slider-control:active::-webkit-slider-thumb {
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.7),
                0 0 4px rgba(0, 210, 255, 0.4);
    transform: scale(1.3);
}

/* Radar HUD: glass-morphism enhancement */
#hud-info,
#map-controls {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#hud-info:hover,
#map-controls:hover {
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

/* Help button: smooth rotation on hover */
#help-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#help-btn:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Context menu: fade-in animation */
.context-menu {
    animation: contextFadeIn 0.15s ease-out;
}

@keyframes contextFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* STCA banner: pulsing glow */
.stca-banner:not(.hidden) {
    animation: stcaPulse 1.5s ease-in-out infinite alternate;
}

@keyframes stcaPulse {
    from {
        box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
    }
    to {
        box-shadow: 0 0 25px rgba(255, 51, 51, 0.6);
    }
}

/* ====================================================== */
/* ADDITIONAL RESPONSIVE REFINEMENTS                      */
/* ====================================================== */

/* Tablet: map controls panel adjustments */
@media (max-width: 900px) {
    #map-controls {
        top: 60px;
        right: 10px;
        padding: 10px;
        font-size: 0.75rem;
    }

    #hud-info {
        top: 60px;
        left: 10px;
        padding: 10px;
        font-size: 0.72rem;
        line-height: 1.5;
    }

    #hud-info b {
        font-size: 0.85rem;
    }

    .toggle-switch {
        width: 38px;
        height: 22px;
    }

    .toggle-slider::before {
        width: 16px;
        height: 16px;
    }

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(16px);
    }
}

/* Phone: stack controls vertically */
@media (max-width: 480px) {
    .landing-header {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 15px;
        margin-bottom: 30px;
    }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .cta-button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 0.95rem;
        text-align: center;
    }

    .hero-stats-row {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .info-section {
        padding: 24px 16px;
    }

    .info-section h2 {
        font-size: 1.4rem;
    }

    #map-controls {
        top: auto;
        bottom: 60px;
        right: 10px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .modal {
        width: 92vw !important;
        max-height: 85vh !important;
        padding: 18px !important;
    }
}
