/* ==============================================
   AEROFIELD — EARTH OBSERVATORY
   Dedicated Earth page styles.
   Theme: Indus Valley + 2026 UI (blue/teal accent)
   ============================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-primary, #0a0a0f);
    color: var(--text-primary, #e8e4dc);
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    -webkit-font-smoothing: antialiased;
}

body {
    padding-bottom: 56px; /* Prevents overlap with fixed .footer-strip */
}


/* ==============================================
   BACKGROUND LAYERS
   ============================================== */
.earth-bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.018;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(45, 212, 168, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 168, 0.35) 1px, transparent 1px);
    background-size: 80px 80px;
}

.earth-bg-radial {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(45, 212, 168, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 80% 90%, rgba(68, 153, 255, 0.02) 0%, transparent 50%);
}


/* ==============================================
   NAVBAR
   ============================================== */
.earth-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 3vw, 40px);
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle, rgba(212, 160, 74, 0.08));
}

.earth-navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(45, 212, 168, 0.2),
        rgba(68, 153, 255, 0.15),
        transparent);
}

.earth-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.earth-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--glow-amber, #d4a04a), var(--glow-copper, #c87533));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    box-shadow: 0 0 18px rgba(212, 160, 74, 0.3);
}

.earth-logo-icon svg { width: 22px; height: 22px; }

.earth-logo-text {
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--glow-amber, #d4a04a);
    letter-spacing: 0.04em;
}

.earth-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.earth-nav-title {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #e8e4dc);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.earth-nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.earth-status-dot {
    width: 6px;
    height: 6px;
    background: var(--glow-teal, #2dd4a8);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.earth-status-text {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.7rem;
    color: var(--text-secondary, #9a9488);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(45, 212, 168, 0.4); }
    50% { opacity: 0.5; box-shadow: 0 0 8px rgba(45, 212, 168, 0.7); }
}

.earth-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.earth-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid rgba(212, 160, 74, 0.15);
    border-radius: 8px;
    background: rgba(22, 22, 31, 0.6);
    color: var(--text-secondary, #9a9488);
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.earth-btn:hover {
    background: rgba(45, 212, 168, 0.08);
    border-color: rgba(45, 212, 168, 0.3);
    color: var(--text-primary, #e8e4dc);
}

.earth-btn.active {
    background: rgba(45, 212, 168, 0.12);
    border-color: rgba(45, 212, 168, 0.4);
    color: var(--glow-teal, #2dd4a8);
    box-shadow: 0 0 12px rgba(45, 212, 168, 0.15);
}

.earth-btn--back {
    border-color: rgba(212, 160, 74, 0.2);
}

.earth-btn--back:hover {
    background: rgba(212, 160, 74, 0.08);
    border-color: rgba(212, 160, 74, 0.35);
    color: var(--glow-amber, #d4a04a);
}

.earth-btn--reset {
    padding: 6px 10px;
}

.earth-btn--reset svg {
    width: 16px;
    height: 16px;
}


/* ==============================================
   3D VIEWPORT
   ============================================== */
.earth-viewport {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.earth-viewport canvas {
    display: block;
    cursor: grab;
}

.earth-viewport canvas:active {
    cursor: grabbing;
}


/* ==============================================
   CORNER FRAMES
   ============================================== */
.earth-frame {
    position: fixed;
    width: 36px;
    height: 36px;
    z-index: 50;
    pointer-events: none;
}

.earth-frame--tl { top: 70px;  left: 12px;  border-top: 1.5px solid rgba(45,212,168,0.25); border-left: 1.5px solid rgba(45,212,168,0.25); }
.earth-frame--tr { top: 70px;  right: 12px; border-top: 1.5px solid rgba(45,212,168,0.25); border-right: 1.5px solid rgba(45,212,168,0.25); }
.earth-frame--bl { bottom: 50px; left: 12px;  border-bottom: 1.5px solid rgba(45,212,168,0.15); border-left: 1.5px solid rgba(45,212,168,0.15); }
.earth-frame--br { bottom: 50px; right: 12px; border-bottom: 1.5px solid rgba(45,212,168,0.15); border-right: 1.5px solid rgba(45,212,168,0.15); }


/* ==============================================
   ATMOSPHERE LAYER LEGEND (left sidebar)
   ============================================== */
.earth-atmos-legend {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 200px;
    padding: 16px;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 212, 168, 0.1);
    border-radius: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.earth-atmos-legend.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-20px);
}

.eal-title {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary, #9a9488);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(45, 212, 168, 0.08);
}

.eal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.eal-item:hover { opacity: 0.8; }

.eal-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.eal-info { display: flex; flex-direction: column; gap: 1px; }

.eal-name {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary, #e8e4dc);
}

.eal-range {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.65rem;
    color: var(--text-muted, #5c574e);
    letter-spacing: 0.03em;
}

.eal-divider {
    height: 1px;
    background: rgba(45, 212, 168, 0.06);
    margin: 6px 0;
}


/* ==============================================
   ORBITAL SHELLS LEGEND (right sidebar)
   ============================================== */
.earth-orbit-legend {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 200px;
    padding: 16px;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 160, 74, 0.1);
    border-radius: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.earth-orbit-legend.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(20px);
}

.eol-title {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary, #9a9488);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 160, 74, 0.08);
}

.eol-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.eol-item:hover { opacity: 0.8; }

.eol-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.eol-info { display: flex; flex-direction: column; gap: 1px; flex: 1; }

.eol-name {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #e8e4dc);
}

.eol-range {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.65rem;
    color: var(--text-muted, #5c574e);
    letter-spacing: 0.03em;
}

.eol-count {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--glow-amber, #d4a04a);
    min-width: 20px;
    text-align: right;
}


/* ==============================================
   SATELLITE INFO PANEL (bottom overlay)
   ============================================== */
.earth-sat-panel {
    position: fixed;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 150;
    width: min(700px, 92vw);
    max-height: 360px;
    overflow-y: auto;
    background: linear-gradient(165deg, rgba(12, 12, 20, 0.94) 0%, rgba(8, 8, 14, 0.96) 100%);
    backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid rgba(45, 212, 168, 0.12);
    border-radius: 18px;
    padding: 22px 26px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                visibility 0s 0.35s;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.45),
        0 0 1px rgba(45, 212, 168, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.earth-sat-panel.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                visibility 0s 0s;
}

.earth-sat-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary, #9a9488);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.earth-sat-close:hover { color: var(--glow-teal, #2dd4a8); }

/* Satellite Card */
.sat-card { position: relative; }

.sat-card-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.sat-card-name {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #e8e4dc);
    background: linear-gradient(135deg, #e8e4dc, #2dd4a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sat-card-id {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    color: var(--text-muted, #5c574e);
    letter-spacing: 0.05em;
}

.sat-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(22, 22, 31, 0.5);
    color: var(--text-secondary, #9a9488);
    backdrop-filter: blur(4px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sat-badge--active {
    border-color: rgba(45, 212, 168, 0.4);
    color: var(--glow-teal, #2dd4a8);
    background: rgba(45, 212, 168, 0.08);
}

.sat-badge--retired {
    border-color: rgba(154, 148, 136, 0.2);
    color: var(--text-muted, #5c574e);
}

.sat-badge--complete {
    border-color: rgba(212, 160, 74, 0.4);
    color: var(--glow-amber, #d4a04a);
    background: rgba(212, 160, 74, 0.08);
}

.sat-badge--type {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--glow-indigo, #6366f1);
}

.sat-badge--orbit {
    font-weight: 700;
}

.sat-card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary, #9a9488);
    margin-bottom: 14px;
}

.sat-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.sat-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 13px;
    background: linear-gradient(145deg, rgba(22, 22, 34, 0.55), rgba(16, 16, 24, 0.5));
    border-radius: 8px;
    border: 1px solid rgba(45, 212, 168, 0.07);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.sat-stat:hover {
    border-color: rgba(45, 212, 168, 0.15);
    background: linear-gradient(145deg, rgba(26, 26, 40, 0.6), rgba(20, 20, 30, 0.55));
}

.sat-stat-label {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted, #5c574e);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sat-stat-value {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary, #e8e4dc);
}

/* Satellite Gallery Image (ISRO reference) */
.sat-card-gallery {
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(45, 212, 168, 0.1);
    background: rgba(10, 10, 15, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}
.sat-card-gallery:hover {
    border-color: rgba(45, 212, 168, 0.2);
}

.sat-card-gallery img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.sat-card-gallery img:hover {
    opacity: 1;
}

.sat-card-img-label {
    padding: 6px 12px;
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted, #5c574e);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ISRO / Wikipedia Reference Link */
.sat-card-ref {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    padding: 9px 16px;
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--glow-teal, #2dd4a8);
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(45, 212, 168, 0.12);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(45, 212, 168, 0.04) 0%, rgba(45, 212, 168, 0.02) 100%);
    letter-spacing: 0.06em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sat-card-ref:hover {
    background: linear-gradient(135deg, rgba(45, 212, 168, 0.12) 0%, rgba(45, 212, 168, 0.06) 100%);
    border-color: rgba(45, 212, 168, 0.3);
    color: #fff;
    box-shadow: 0 2px 12px rgba(45, 212, 168, 0.1);
}


/* ==============================================
   TELEMETRY HUD (top-right)
   ============================================== */
.earth-telemetry {
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 212, 168, 0.08);
    border-radius: 10px;
}

.et-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.et-label {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted, #5c574e);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    min-width: 36px;
}

.et-value {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--glow-teal, #2dd4a8);
    letter-spacing: 0.03em;
}


/* ==============================================
   MISSION STATS BAR (bottom)
   ============================================== */
.earth-stats-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 clamp(16px, 4vw, 60px);
    background: rgba(10, 10, 15, 0.78);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(45, 212, 168, 0.06);
}

.esb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esb-label {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted, #5c574e);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.esb-value {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary, #e8e4dc);
}

.esb-sep {
    width: 1px;
    height: 18px;
    background: rgba(45, 212, 168, 0.1);
}


/* ==============================================
   HUD (bottom overlay)
   ============================================== */
.earth-hud {
    position: fixed;
    bottom: 50px;
    left: 20px;
    right: 20px;
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.earth-hud-label {
    display: flex;
    align-items: center;
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--glow-teal, #2dd4a8);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.earth-hud-hint {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.65rem;
    color: rgba(154, 148, 136, 0.25);
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.earth-hud-coord {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(45, 212, 168, 0.25);
    letter-spacing: 0.05em;
}


/* ==============================================
   FOOTER — Sanskrit Marquee (reused from solar)
   ============================================== */
.footer-strip {
    position: fixed;
    bottom: 44px;
    left: 0;
    right: 0;
    z-index: 95;
    height: 0;
    overflow: visible;
    pointer-events: none;
}

.footer-strip-inner {
    position: relative;
    height: 0;
}

.sanskrit-marquee {
    display: none;
}




/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
    .earth-atmos-legend,
    .earth-orbit-legend {
        width: 170px;
        padding: 12px;
    }

    .earth-stats-bar {
        gap: 12px;
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .earth-navbar {
        height: 56px;
        padding: 0 12px;
    }

    .earth-nav-center { display: none; }

    .earth-btn--layer span:first-child { display: none; }

    .earth-atmos-legend {
        left: 8px;
        width: 150px;
        padding: 10px;
        font-size: 0.7rem;
    }

    .earth-orbit-legend {
        right: 8px;
        width: 140px;
        padding: 10px;
    }

    .earth-sat-panel {
        width: 95vw;
        max-height: 50vh;
    }

    .earth-stats-bar {
        gap: 8px;
        padding: 0 8px;
        overflow-x: auto;
    }

    .esb-item:nth-child(n+7) { display: none; }

    .earth-telemetry {
        top: 62px;
        right: 8px;
        padding: 6px 10px;
    }

    .earth-hud { display: none; }
}

@media (max-width: 480px) {
    .earth-atmos-legend,
    .earth-orbit-legend {
        display: none;
    }
}


/* ==============================================
   SCROLLBAR
   ============================================== */
.earth-sat-panel::-webkit-scrollbar {
    width: 4px;
}

.earth-sat-panel::-webkit-scrollbar-track {
    background: transparent;
}

.earth-sat-panel::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 168, 0.2);
    border-radius: 4px;
}


/* ==============================================
   SATELLITE IMAGERY PANEL (NASA GIBS)
   ============================================== */
.earth-imagery-panel {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 224px;
    background: linear-gradient(165deg, rgba(12, 12, 20, 0.94) 0%, rgba(8, 8, 14, 0.96) 100%);
    border: 1px solid rgba(45, 212, 168, 0.12);
    border-radius: 14px;
    padding: 16px;
    z-index: 60;
    backdrop-filter: blur(20px) saturate(1.4);
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(45, 212, 168, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.earth-imagery-panel.active { display: block; }

.eip-title {
    display: flex;
    align-items: center;
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: #2dd4a8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(45, 212, 168, 0.08);
}

.eip-subtitle {
    font-size: 0.65rem;
    color: rgba(232, 228, 220, 0.35);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.eip-section {
    margin-bottom: 12px;
}

.eip-label {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(232, 228, 220, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.eip-select {
    width: 100%;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(45, 212, 168, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.72rem;
    color: #e8e4dc;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%232dd4a8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.eip-select:focus {
    border-color: rgba(45, 212, 168, 0.5);
    box-shadow: 0 0 12px rgba(45, 212, 168, 0.1);
}

.eip-select option {
    background: #0a0a18;
    color: #e8e4dc;
}

.eip-date {
    width: 100%;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(45, 212, 168, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.72rem;
    color: #e8e4dc;
    outline: none;
    color-scheme: dark;
}

.eip-date:focus {
    border-color: rgba(45, 212, 168, 0.5);
}

.eip-range {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(45, 212, 168, 0.15);
    border-radius: 2px;
    outline: none;
    margin: 6px 0 2px;
}

.eip-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2dd4a8;
    cursor: pointer;
    border: 2px solid #0a0a0f;
}

.eip-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2dd4a8;
    cursor: pointer;
    border: 2px solid #0a0a0f;
}

.eip-range-val {
    font-size: 0.65rem;
    color: rgba(45, 212, 168, 0.6);
    float: right;
    margin-top: -2px;
}

.eip-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(232, 228, 220, 0.6);
    cursor: pointer;
    padding: 3px 0;
    transition: color 0.2s;
}

.eip-toggle:hover { color: #e8e4dc; }

.eip-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #2dd4a8;
    cursor: pointer;
}

.eip-toggle--inline {
    display: inline-flex;
    margin-right: 10px;
    font-size: 0.68rem;
}

.eip-load-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(45, 212, 168, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(45, 212, 168, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: #2dd4a8;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s;
    margin-top: 8px;
}

.eip-load-btn:hover {
    background: linear-gradient(135deg, rgba(45, 212, 168, 0.35), rgba(99, 102, 241, 0.35));
    box-shadow: 0 0 20px rgba(45, 212, 168, 0.15);
    transform: translateY(-1px);
}

.eip-load-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.eip-load-btn.loading::after {
    content: ' ⟳';
    animation: eip-spin 1s linear infinite;
    display: inline-block;
}

@keyframes eip-spin { to { transform: rotate(360deg); } }

.eip-credit {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(45, 212, 168, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eip-credit span {
    font-size: 0.58rem;
    color: rgba(232, 228, 220, 0.25);
}

.eip-credit a {
    color: rgba(45, 212, 168, 0.5);
    text-decoration: none;
}

.eip-credit a:hover { color: #2dd4a8; }


/* ==============================================
   LIVE DATA FEEDS PANEL
   ============================================== */
.earth-livedata-panel {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 244px;
    background: linear-gradient(165deg, rgba(12, 12, 20, 0.94) 0%, rgba(8, 8, 14, 0.96) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    padding: 16px;
    z-index: 60;
    backdrop-filter: blur(20px) saturate(1.4);
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.earth-livedata-panel.active { display: block; }

.eld-title {
    display: flex;
    align-items: center;
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.eld-subtitle {
    font-size: 0.65rem;
    color: rgba(232, 228, 220, 0.35);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.eld-card {
    background: linear-gradient(150deg, rgba(18, 18, 30, 0.65), rgba(12, 12, 22, 0.55));
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.eld-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}

.eld-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.eld-card-icon { display: flex; align-items: center; }

.eld-card-name {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(232, 228, 220, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    flex: 1;
}

.eld-card-live {
    font-size: 0.55rem;
    color: #2dd4a8;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.eld-card-body { padding: 8px 10px; }

.eld-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 0.68rem;
}

.eld-stat span:first-child {
    color: rgba(232, 228, 220, 0.35);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.eld-stat span:last-child {
    color: #e8e4dc;
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-weight: 500;
}

.eld-event {
    padding: 4px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.06);
    font-size: 0.65rem;
    color: rgba(232, 228, 220, 0.6);
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.eld-event:last-child { border-bottom: none; }
.eld-event-icon { font-size: 0.75rem; flex-shrink: 0; }

.eld-event-text {
    flex: 1;
    line-height: 1.3;
}

.eld-event-mag {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-weight: 700;
    color: #f43f5e;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.eld-loading {
    font-size: 0.65rem;
    color: rgba(232, 228, 220, 0.3);
    padding: 4px 0;
    text-align: center;
}

.eld-refresh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.eld-refresh-btn {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: #6366f1;
    cursor: pointer;
    transition: all 0.2s;
}

.eld-refresh-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}

.eld-last-update {
    font-size: 0.55rem;
    color: rgba(232, 228, 220, 0.2);
}

.eld-spacewx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.65rem;
}

.eld-spacewx-label {
    color: rgba(232, 228, 220, 0.4);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.eld-spacewx-val {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-weight: 600;
}

.eld-wx-green { color: #2dd4a8; }
.eld-wx-yellow { color: #d4a04a; }
.eld-wx-orange { color: #f97316; }
.eld-wx-red { color: #f43f5e; }


/* ==============================================
   2D MAP MODE (Leaflet)
   ============================================== */
.earth-map2d-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0a0a0f;
    display: none;
}

.earth-map2d-container.active { display: flex; flex-direction: column; }

.map2d-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(10, 10, 18, 0.95);
    border-bottom: 1px solid rgba(45, 212, 168, 0.12);
    z-index: 110;
    flex-wrap: wrap;
}

.map2d-toolbar .eip-select {
    width: auto;
    min-width: 160px;
}

.map2d-toolbar .eip-date {
    width: auto;
    min-width: 130px;
}

.map2d-close-btn {
    margin-left: auto;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 6px;
    padding: 5px 12px;
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    color: #f43f5e;
    cursor: pointer;
    transition: all 0.2s;
}

.map2d-close-btn:hover {
    background: rgba(244, 63, 94, 0.3);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.15);
}

.map2d-view {
    flex: 1;
    width: 100%;
    background: #0a0a18;
}

.map2d-view .leaflet-tile-pane { filter: saturate(1.2) contrast(1.1); }

.map2d-view .leaflet-control-attribution {
    background: rgba(10, 10, 18, 0.8) !important;
    color: rgba(232, 228, 220, 0.3) !important;
    font-size: 0.55rem !important;
}

.map2d-view .leaflet-control-attribution a { color: rgba(45, 212, 168, 0.5) !important; }

.map2d-view .leaflet-control-zoom a {
    background: rgba(10, 10, 18, 0.9) !important;
    color: #2dd4a8 !important;
    border-color: rgba(45, 212, 168, 0.2) !important;
}

.map2d-view .leaflet-control-zoom a:hover { background: rgba(45, 212, 168, 0.15) !important; }

.leaflet-popup-content-wrapper {
    background: rgba(10, 10, 18, 0.95) !important;
    border: 1px solid rgba(45, 212, 168, 0.2) !important;
    border-radius: 8px !important;
    color: #e8e4dc !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: rgba(10, 10, 18, 0.95) !important;
}

.leaflet-popup-content {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
}


/* ==============================================
   GIBS LOADING TOAST
   ============================================== */
.gibs-loading-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 18, 0.92);
    border: 1px solid rgba(45, 212, 168, 0.25);
    border-radius: 8px;
    padding: 10px 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.gibs-loading-toast .gibs-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(45, 212, 168, 0.2);
    border-top-color: #2dd4a8;
    border-radius: 50%;
    animation: eip-spin 0.8s linear infinite;
}

.gibs-loading-toast .gibs-text {
    font-size: 0.72rem;
    color: rgba(232, 228, 220, 0.8);
    font-family: var(--font-display, 'Rajdhani', sans-serif);
}


/* ==============================================
   RESPONSIVE — NEW PANELS
   ============================================== */
@media (max-width: 900px) {
    .earth-imagery-panel {
        width: 190px;
        padding: 12px;
        font-size: 0.65rem;
    }

    .earth-livedata-panel {
        width: 200px;
        padding: 12px;
    }

    .map2d-toolbar {
        padding: 6px 10px;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .earth-imagery-panel,
    .earth-livedata-panel {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 90px;
        transform: translateX(-50%);
        width: 90vw;
        max-height: 40vh;
    }
}

@media (max-width: 480px) {
    .map2d-toolbar .eip-toggle--inline { display: none; }
}

.earth-imagery-panel::-webkit-scrollbar,
.earth-livedata-panel::-webkit-scrollbar { width: 3px; }

.earth-imagery-panel::-webkit-scrollbar-track,
.earth-livedata-panel::-webkit-scrollbar-track { background: transparent; }

.earth-imagery-panel::-webkit-scrollbar-thumb,
.earth-livedata-panel::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 3px;
}


/* ==============================================
   SATELLITE INFO CARD — ENHANCED SECTIONS
   ============================================== */

/* Section container */
.sat-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}
.sat-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--glow-amber, #d4a04a), transparent);
}

.sat-section-title {
    display: flex;
    align-items: center;
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--glow-amber, #d4a04a);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* COSPAR ID badge */
.sat-badge--cospar {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-family: 'Rajdhani', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

/* Orbital Parameters stats */
.sat-orbital-stats {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}

/* Instruments list */
.sat-instruments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sat-instrument {
    background: linear-gradient(135deg, rgba(45, 212, 168, 0.06), rgba(45, 212, 168, 0.02));
    border: 1px solid rgba(45, 212, 168, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.03em;
    line-height: 1.3;
    transition: border-color 0.2s ease;
}
.sat-instrument:hover {
    border-color: rgba(45, 212, 168, 0.22);
}

/* 3D Model Block Diagram */
.sat-model-diagram {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sat-3d-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.sat-3d-block:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: rgba(212, 160, 74, 0.18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sat-3d-block-color {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.sat-3d-block-info {
    flex: 1;
    min-width: 0;
}

.sat-3d-block-name {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.04em;
}

.sat-3d-block-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
    margin-top: 1px;
}

/* Subsystem Blocks */
.sat-subsystems {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sat-subsystem-block {
    background: linear-gradient(145deg, rgba(12, 12, 35, 0.5), rgba(10, 10, 28, 0.4));
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 10px;
    padding: 11px;
    transition: all 0.25s ease;
}

.sat-subsystem-block:hover {
    border-color: rgba(99, 102, 241, 0.22);
    background: linear-gradient(145deg, rgba(16, 16, 42, 0.55), rgba(12, 12, 34, 0.45));
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.05);
}

.sat-sub-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.sat-sub-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.sat-sub-label {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--glow-indigo, #6366f1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sat-sub-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.67rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
}


/* ==============================================
   API ENDPOINTS INFO PANEL
   ============================================== */

.earth-endpoints-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 380px;
    max-height: calc(100vh - 140px);
    background: linear-gradient(165deg, rgba(12, 12, 22, 0.96) 0%, rgba(8, 8, 16, 0.97) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
                0 0 1px rgba(99, 102, 241, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 500;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.earth-endpoints-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.eep-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.eep-title {
    display: flex;
    align-items: center;
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eep-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.eep-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.eep-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.eep-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eep-body::-webkit-scrollbar { width: 3px; }
.eep-body::-webkit-scrollbar-track { background: transparent; }
.eep-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 3px;
}

.eep-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s;
}

.eep-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.03);
}

.eep-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.eep-card-icon {
    font-size: 1rem;
    line-height: 1;
}

.eep-card-name {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    flex: 1;
}

.eep-badge {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.eep-badge--free {
    background: rgba(45, 212, 168, 0.1);
    border: 1px solid rgba(45, 212, 168, 0.2);
    color: #2dd4a8;
}

.eep-badge--auth {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.eep-card-url {
    font-family: 'Rajdhani', monospace;
    font-size: 0.62rem;
    color: rgba(99, 102, 241, 0.7);
    word-break: break-all;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.eep-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.eep-meta-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.eep-meta-label {
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eep-meta-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
}

.eep-card-usage {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
    margin-bottom: 8px;
}

.eep-card-docs {
    display: inline-block;
    font-family: var(--font-ui, 'Rajdhani', sans-serif);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--glow-teal, #2dd4a8);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.eep-card-docs:hover {
    color: #fff;
}

.eep-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.eep-footer-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    color: rgba(45, 212, 168, 0.5);
    letter-spacing: 0.04em;
}

/* Responsive: Endpoints panel */
@media (max-width: 768px) {
    .earth-endpoints-panel {
        right: 10px;
        width: calc(100vw - 20px);
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .sat-subsystems {
        grid-template-columns: 1fr;
    }
    .sat-orbital-stats {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   SVG ICON SYSTEM  (.ic)
   ============================================= */

/* Base icon */
.ic {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
}

/* ── Navbar button icon ── */
.ic--btn {
    width: 15px;
    height: 15px;
    margin-right: 2px;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}
.earth-nav-btn:hover .ic--btn,
.earth-nav-btn.active .ic--btn {
    opacity: 1;
}

/* Small button icon (refresh, close 2D) */
.ic--btn-sm {
    width: 12px;
    height: 12px;
    margin-right: 3px;
    vertical-align: -1px;
}

/* ── Nav title globe ── */
.ic--nav-title {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    vertical-align: -3px;
    color: var(--glow-teal, #2dd4a8);
    filter: drop-shadow(0 0 4px rgba(45, 212, 168, 0.35));
}

/* ── Panel title icons ── */
.ic--panel-title {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: -2px;
    opacity: 0.8;
}
.eip-title .ic--panel-title { color: var(--glow-teal, #2dd4a8); }
.eld-title .ic--panel-title { color: var(--glow-amber, #d4a04a); }
.eep-title .ic--panel-title { color: var(--glow-indigo, #6366f1); }

/* ── HUD icon ── */
.ic--hud {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: -2px;
    color: var(--glow-teal, #2dd4a8);
    filter: drop-shadow(0 0 3px rgba(45, 212, 168, 0.3));
}

/* ── Section title icon (inside sat-card) ── */
.ic--section {
    width: 13px;
    height: 13px;
    margin-right: 5px;
    vertical-align: -1px;
    color: var(--glow-amber, #d4a04a);
    filter: drop-shadow(0 0 3px rgba(212, 160, 74, 0.25));
}

/* ── Type badge icon ── */
.ic--badge {
    width: 12px;
    height: 12px;
    margin-right: 2px;
    vertical-align: -1px;
    color: var(--glow-indigo, #6366f1);
}

/* ── Small badge (endpoint auth) ── */
.ic--badge-sm {
    width: 10px;
    height: 10px;
    margin-right: 3px;
    vertical-align: -1px;
}

/* ── Subsystem block icon ── */
.ic--sub {
    width: 14px;
    height: 14px;
    color: var(--glow-indigo, #6366f1);
    filter: drop-shadow(0 0 3px rgba(99, 102, 241, 0.2));
}

/* Override existing .sat-sub-icon for SVG content */
.sat-sub-icon .ic--sub {
    display: block;
}

/* ── Endpoint card icon ── */
.ic--ep {
    width: 18px;
    height: 18px;
    color: var(--glow-teal, #2dd4a8);
    filter: drop-shadow(0 0 3px rgba(45, 212, 168, 0.2));
    margin-right: 4px;
}

/* ── Docs link icon ── */
.ic--docs {
    width: 11px;
    height: 11px;
    margin-right: 3px;
    vertical-align: -1px;
    opacity: 0.7;
}

/* ── Gallery label icon ── */
.ic--label {
    width: 12px;
    height: 12px;
    margin-right: 4px;
    vertical-align: -1px;
    opacity: 0.7;
}

/* ── Reference link icon ── */
.ic--ref {
    width: 11px;
    height: 11px;
    margin-right: 4px;
    vertical-align: -1px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
a:hover .ic--ref,
.sat-card-ref:hover .ic--ref {
    opacity: 1;
}

/* ── Live data card icon ── */
.ic--card {
    width: 16px;
    height: 16px;
    color: var(--glow-teal, #2dd4a8);
}

/* ── EONET event icon ── */
.ic--event {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--glow-amber, #d4a04a);
}

/* Reference arrow span */
.ref-arrow {
    margin-left: 4px;
    font-size: 0.75rem;
    opacity: 0.5;
    transition: margin-left 0.2s ease, opacity 0.2s ease;
}
a:hover .ref-arrow,
.sat-card-ref:hover .ref-arrow {
    margin-left: 8px;
    opacity: 1;
}

/* ── Earthquake severity dots ── */
.eld-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.eld-dot--critical {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
.eld-dot--warning {
    background: #f97316;
    box-shadow: 0 0 6px rgba(249, 115, 22, 0.4);
}
.eld-dot--info {
    background: #eab308;
    box-shadow: 0 0 5px rgba(234, 179, 8, 0.35);
}
