/* ========================================
   STELLAR INTRO STYLES  - SKYEDEV
   ======================================== */

/* Custom Fonts */
@font-face { 
    font-family: 'SV-Tech'; 
    src: url('/src/starvortex_assets/tech.ttf') format('truetype'); 
}

/* CSS Variables - Pure White Theme */
:root {
    --intro-bg: #000;
    --intro-white: #fff;
    --intro-white-90: rgba(255, 255, 255, 0.9);
    --intro-white-70: rgba(255, 255, 255, 0.7);
    --intro-white-50: rgba(255, 255, 255, 0.5);
    --intro-white-30: rgba(255, 255, 255, 0.3);
    --intro-white-20: rgba(255, 255, 255, 0.2);
    --intro-white-10: rgba(255, 255, 255, 0.1);
    --intro-white-05: rgba(255, 255, 255, 0.05);
    --subtitle-font: 'Orbitron', sans-serif;
    --data-font: 'SV-Tech', 'Courier New', monospace;
}

/* ========================================
   BASE STYLES CON ID ÚNICO
   ======================================== */

#stellarIntro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--intro-bg);
    z-index: 10000;
    overflow: hidden;
    font-family: var(--data-font);
    color: var(--intro-white);
}

#stellarIntro .intro-phase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

#stellarIntro .intro-phase.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   SVG TECH ICONS
   ======================================== */

#stellarIntro .tech-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}

#stellarIntro .tech-icon svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   SKIP INDICATOR
   ======================================== */

#stellarIntro .skip-indicator {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--subtitle-font);
    color: var(--intro-white-50);
    z-index: 10001;
    opacity: 0;
    animation: skipFadeIn 1.5s ease 3s forwards;
}

@keyframes skipFadeIn {
    to { opacity: 1; }
}

#stellarIntro .skip-bracket {
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--intro-white-30);
}

#stellarIntro .skip-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border: 1px solid var(--intro-white-20);
    position: relative;
}

#stellarIntro .skip-icon {
    width: 16px;
    height: 16px;
    color: var(--intro-white-50);
}

#stellarIntro .skip-text {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--intro-white-50);
    text-transform: uppercase;
    font-weight: 300;
}

#stellarIntro .skip-bar {
    width: 50px;
    height: 2px;
    background: var(--intro-white-20);
    position: relative;
    --progress: 0%;
}

#stellarIntro .skip-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--progress);
    height: 100%;
    background: var(--intro-white);
    transition: width 0.03s linear;
}

#stellarIntro .skip-indicator.holding .skip-content {
    border-color: var(--intro-white-50);
}

#stellarIntro .skip-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   PHASE 1: VOICE AUTHENTICATION
   ======================================== */

#stellarIntro .phase-voice {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#stellarIntro .voice-container {
    width: 100%;
    max-width: 1000px;
    text-align: center;
    padding: 40px;
}

/* AI Voice Visualizer */
#stellarIntro .ai-voice-visualizer {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 80px;
}

#stellarIntro .voice-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

#stellarIntro .core-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--intro-white-30);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#stellarIntro .ring-1 {
    width: 40px;
    height: 40px;
    animation: ringPulse 2s ease-out infinite;
}

#stellarIntro .ring-2 {
    width: 60px;
    height: 60px;
    animation: ringPulse 2s ease-out infinite 0.5s;
}

#stellarIntro .ring-3 {
    width: 80px;
    height: 80px;
    animation: ringPulse 2s ease-out infinite 1s;
}

@keyframes ringPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

#stellarIntro .core-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background: var(--intro-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: corePulse 1.5s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

/* Frequency Bars */
#stellarIntro .frequency-bars {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 50px;
}

#stellarIntro .freq-bar {
    width: 2px;
    background: var(--intro-white);
    border-radius: 1px;
    animation: freqBar 0.4s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.05s);
}

@keyframes freqBar {
    0%, 100% { height: 5px; opacity: 0.3; }
    50% { height: calc(15px + var(--delay) * 2px); opacity: 1; }
}

/* Subtitle Container */
#stellarIntro .subtitle-container {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

#stellarIntro .subtitle-brackets {
    display: flex;
    align-items: center;
    gap: 25px;
}

#stellarIntro .bracket-left,
#stellarIntro .bracket-right {
    font-size: 1.5rem;
    color: var(--intro-white-20);
    font-weight: 200;
}

#stellarIntro .subtitle-text {
    font-family: var(--subtitle-font);
    font-size: 1.15rem;
    color: var(--intro-white-90);
    letter-spacing: 0.08em;
    line-height: 1.9;
    max-width: 700px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#stellarIntro .subtitle-text.visible {
    opacity: 1;
    transform: translateY(0);
}

#stellarIntro .subtitle-line {
    width: 0;
    height: 1px;
    background: var(--intro-white-20);
    margin-top: 25px;
    transition: width 0.8s ease;
}

#stellarIntro .subtitle-text.visible ~ .subtitle-line,
#stellarIntro .subtitle-brackets:has(.subtitle-text.visible) ~ .subtitle-line {
    width: 150px;
}

/* Voice Status */
#stellarIntro .voice-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.5;
}

#stellarIntro .status-dot {
    width: 6px;
    height: 6px;
    background: var(--intro-white);
    border-radius: 50%;
    animation: statusBlink 1.5s ease-in-out infinite;
}

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

#stellarIntro .status-label {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--intro-white-50);
    font-weight: 300;
}

/* ========================================
   PHASE 2: DATA VISUALIZATION
   ======================================== */

#stellarIntro .phase-data {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#stellarIntro .data-container {
    width: 100%;
    max-width: 1400px;
    position: relative;
}

/* HUD Corners */
#stellarIntro .hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    color: var(--intro-white-30);
    opacity: 0;
    animation: cornerFadeIn 0.8s ease forwards;
}

#stellarIntro .hud-corner.top-left { top: -20px; left: -20px; animation-delay: 0.2s; }
#stellarIntro .hud-corner.top-right { top: -20px; right: -20px; animation-delay: 0.3s; }
#stellarIntro .hud-corner.bottom-left { bottom: -20px; left: -20px; animation-delay: 0.4s; }
#stellarIntro .hud-corner.bottom-right { bottom: -20px; right: -20px; animation-delay: 0.5s; }

@keyframes cornerFadeIn {
    to { opacity: 1; }
}

/* Data Header */
#stellarIntro .data-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    padding: 15px 0;
    border-bottom: 1px solid var(--intro-white-10);
    opacity: 0;
    transform: translateY(-15px);
    animation: slideDown 0.6s ease forwards 0.3s;
}

@keyframes slideDown {
    to { opacity: 1; transform: translateY(0); }
}

#stellarIntro .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

#stellarIntro .header-icon-box {
    width: 30px;
    height: 30px;
    border: 1px solid var(--intro-white-20);
    display: flex;
    align-items: center;
    justify-content: center;
}

#stellarIntro .header-icon {
    width: 18px;
    height: 18px;
    color: var(--intro-white-70);
}

#stellarIntro .header-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--intro-white-70);
    font-weight: 400;
}

#stellarIntro .header-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--intro-white-20), transparent);
}

#stellarIntro .header-sub {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--intro-white-30);
}

#stellarIntro .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.65rem;
    color: var(--intro-white-50);
}

#stellarIntro .header-divider {
    width: 1px;
    height: 15px;
    background: var(--intro-white-20);
}

#stellarIntro .header-status {
    color: var(--intro-white-70);
}

/* Medical Section */
#stellarIntro .medical-section {
    padding: 30px;
    border: 1px solid var(--intro-white-10);
    position: relative;
}

#stellarIntro .scan-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--intro-white-10);
}

#stellarIntro .scan-icon {
    width: 25px;
    height: 25px;
    color: var(--intro-white-50);
}

#stellarIntro .scan-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--intro-white-70);
}

#stellarIntro .scan-progress {
    flex: 1;
    height: 2px;
    background: var(--intro-white-10);
    margin-left: 20px;
    position: relative;
    overflow: hidden;
}

#stellarIntro .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--intro-white);
    transition: width 0.3s ease;
}

#stellarIntro .progress-glow {
    position: absolute;
    top: -2px;
    right: 0;
    width: 30px;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--intro-white));
    filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#stellarIntro .scan-percent {
    font-size: 0.65rem;
    color: var(--intro-white-50);
    letter-spacing: 0.1em;
    min-width: 35px;
    text-align: right;
}

/* Scan Grid */
#stellarIntro .scan-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* Data Readouts */
#stellarIntro .data-readouts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#stellarIntro .readout-item {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#stellarIntro .readout-item.visible {
    opacity: 1;
    transform: translateX(0);
}

#stellarIntro .readout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

#stellarIntro .readout-id {
    font-size: 0.55rem;
    color: var(--intro-white-30);
    letter-spacing: 0.1em;
}

#stellarIntro .readout-label {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--intro-white-50);
}

#stellarIntro .readout-value {
    display: block;
    font-size: 0.75rem;
    color: var(--intro-white-90);
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

#stellarIntro .readout-bar {
    height: 2px;
    background: var(--intro-white-10);
    position: relative;
}

#stellarIntro .bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--intro-white-70);
    transition: width 1.2s ease;
}

#stellarIntro .bar-fill.warning { background: var(--intro-white-50); }
#stellarIntro .bar-fill.success { background: var(--intro-white); }

#stellarIntro .readout-item.visible .bar-fill {
    width: var(--fill);
}

/* Status Display */
#stellarIntro .status-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#stellarIntro .status-box {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--intro-white-15);
    background: var(--intro-white-05);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#stellarIntro .status-box.visible {
    opacity: 1;
    transform: scale(1);
}

#stellarIntro .status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--intro-white-10);
}

#stellarIntro .status-icon-wrap {
    width: 20px;
    height: 20px;
    border: 1px solid var(--intro-white-30);
    display: flex;
    align-items: center;
    justify-content: center;
}

#stellarIntro .status-icon {
    font-size: 0.7rem;
    color: var(--intro-white-70);
}

#stellarIntro .status-title {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--intro-white-70);
}

#stellarIntro .status-code {
    margin-left: auto;
    font-size: 0.5rem;
    color: var(--intro-white-30);
    letter-spacing: 0.1em;
}

#stellarIntro .status-content {
    margin-bottom: 15px;
}

#stellarIntro .status-line {
    font-size: 0.65rem;
    color: var(--intro-white-50);
    line-height: 1.8;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#stellarIntro .status-line.visible {
    opacity: 1;
    transform: translateY(0);
}

#stellarIntro .status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--intro-white-10);
}

#stellarIntro .status-dots {
    display: flex;
    gap: 5px;
}

#stellarIntro .status-dots .dot {
    width: 4px;
    height: 4px;
    background: var(--intro-white-20);
}

#stellarIntro .status-dots .dot.active {
    background: var(--intro-white);
}

#stellarIntro .status-stamp {
    font-size: 0.55rem;
    color: var(--intro-white-50);
    letter-spacing: 0.15em;
    padding: 3px 8px;
    border: 1px solid var(--intro-white-20);
}

/* Percentage Ring */
#stellarIntro .percentage-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

#stellarIntro .percentage-ring svg {
    width: 100%;
    height: 100%;
}

#stellarIntro .percentage-ring circle {
    transition: stroke-dashoffset 1.5s ease;
}

#stellarIntro .percentage-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#stellarIntro .percent-num {
    font-size: 1.5rem;
    color: var(--intro-white);
    font-weight: 300;
}

#stellarIntro .percent-sign {
    font-size: 0.6rem;
    color: var(--intro-white-50);
}

/* System Info */
#stellarIntro .system-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#stellarIntro .info-block {
    padding-left: 12px;
    border-left: 1px solid var(--intro-white-20);
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#stellarIntro .info-block.visible {
    opacity: 1;
    transform: translateX(0);
}

#stellarIntro .info-label {
    display: block;
    font-size: 0.5rem;
    letter-spacing: 0.15em;
    color: var(--intro-white-30);
    margin-bottom: 6px;
}

#stellarIntro .info-value {
    display: block;
    font-size: 0.75rem;
    color: var(--intro-white-70);
    letter-spacing: 0.08em;
}

#stellarIntro .info-value.large {
    font-size: 2rem;
    font-weight: 300;
    color: var(--intro-white);
}

#stellarIntro .info-value.warning { color: var(--intro-white-50); }
#stellarIntro .info-value.success { color: var(--intro-white); }

#stellarIntro .info-sub {
    display: block;
    font-size: 0.6rem;
    color: var(--intro-white-30);
    margin-top: 4px;
}

#stellarIntro .info-underline {
    width: 30px;
    height: 1px;
    background: var(--intro-white-10);
    margin-top: 10px;
}

/* Data Subtitle */
#stellarIntro .data-subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--intro-white-10);
}

#stellarIntro .subtitle-line-left,
#stellarIntro .subtitle-line-right {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--intro-white-20));
}

#stellarIntro .subtitle-line-right {
    background: linear-gradient(90deg, var(--intro-white-20), transparent);
}

#stellarIntro .data-subtitle {
    font-family: var(--subtitle-font);
    font-size: 1rem;
    color: var(--intro-white-70);
    letter-spacing: 0.08em;
    font-weight: 300;
    text-align: center;
    max-width: 600px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#stellarIntro .data-subtitle.visible {
    opacity: 1;
}

/* Data Footer */
#stellarIntro .data-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--intro-white-10);
    font-size: 0.55rem;
    color: var(--intro-white-30);
}

#stellarIntro .footer-left,
#stellarIntro .footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#stellarIntro .footer-bracket {
    color: var(--intro-white-20);
}

#stellarIntro .footer-center {
    display: flex;
    align-items: center;
    gap: 15px;
}

#stellarIntro .footer-line {
    width: 60px;
    height: 1px;
    background: var(--intro-white-10);
}

#stellarIntro .footer-dots {
    display: flex;
    gap: 6px;
}

#stellarIntro .footer-dots .dot {
    width: 4px;
    height: 4px;
    background: var(--intro-white-20);
}

#stellarIntro .footer-dots .dot.active {
    background: var(--intro-white-70);
}

#stellarIntro .footer-divider {
    color: var(--intro-white-20);
}

/* ========================================
   PHASE 3: GLOBE/TERRAIN VISUALIZATION
   ======================================== */

#stellarIntro .phase-globe {
    background: var(--intro-bg);
}

#stellarIntro .globe-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Canvas para Three.js Terrain - CENTRADO y CON Z-INDEX CORRECTO */
#stellarIntro #terrainCanvas.centered-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw !important;
    height: 90vh !important;
    max-width: 1400px;
    max-height: 900px;
    z-index: 1 !important; /* DEBAJO del HUD */
}

/* Sci-Fi HUD Elements */
#stellarIntro .hud-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 5;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

#stellarIntro .hud-corner-frame {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 4;
}

#stellarIntro .hud-corner-frame.tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

#stellarIntro .hud-corner-frame.tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

#stellarIntro .hud-corner-frame.bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

#stellarIntro .hud-corner-frame.br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

#stellarIntro .hud-corner-frame::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
}

#stellarIntro .hud-corner-frame.tl::before { top: -2px; left: -2px; }
#stellarIntro .hud-corner-frame.tr::before { top: -2px; right: -2px; }
#stellarIntro .hud-corner-frame.bl::before { bottom: -2px; left: -2px; }
#stellarIntro .hud-corner-frame.br::before { bottom: -2px; right: -2px; }

/* Data Streams */
#stellarIntro .data-stream {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    z-index: 3;
}

#stellarIntro .data-stream.stream-left {
    left: 25%;
    animation: dataFlow 3s ease-in-out infinite;
}

#stellarIntro .data-stream.stream-right {
    right: 25%;
    animation: dataFlow 3s ease-in-out infinite 1.5s;
}

@keyframes dataFlow {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* Data Ticker */
#stellarIntro .data-ticker {
    margin-left: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    max-width: 300px;
}

#stellarIntro .ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScroll 15s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

#stellarIntro .globe-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 40px;
    display: flex;
    flex-direction: column;
    z-index: 10 !important; /* SOBRE el canvas */
}

#stellarIntro #terrainViewport {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* DEBAJO del HUD */
}

#stellarIntro #terrainViewport canvas {
    cursor: grab;
}

#stellarIntro #terrainViewport canvas:active {
    cursor: grabbing;
}

#stellarIntro .globe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--intro-white-10);
}

#stellarIntro .globe-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#stellarIntro .globe-icon {
    width: 25px;
    height: 25px;
    color: var(--intro-white-50);
}

#stellarIntro .globe-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--intro-white-70);
}

#stellarIntro .globe-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

#stellarIntro .globe-status {
    font-size: 0.6rem;
    color: var(--intro-white-50);
    letter-spacing: 0.15em;
}

#stellarIntro .status-blink {
    width: 6px;
    height: 6px;
    background: var(--intro-white);
    animation: statusBlink 1s ease-in-out infinite;
}

#stellarIntro .globe-data-panels {
    display: flex;
    justify-content: space-between;
    flex: 1;
    padding: 40px 0;
}

#stellarIntro .globe-panel {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#stellarIntro .globe-panel.left {
    align-items: flex-start;
}

#stellarIntro .globe-panel.right {
    align-items: flex-end;
    text-align: right;
}

#stellarIntro .panel-title {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--intro-white-30);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--intro-white-10);
    width: 100%;
}

#stellarIntro .panel-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#stellarIntro .panel-item.visible {
    opacity: 1;
    transform: translateY(0);
}

#stellarIntro .panel-label {
    display: block;
    font-size: 0.5rem;
    letter-spacing: 0.15em;
    color: var(--intro-white-30);
    margin-bottom: 4px;
}

#stellarIntro .panel-value {
    font-size: 0.7rem;
    color: var(--intro-white-70);
    letter-spacing: 0.05em;
}

#stellarIntro .panel-value.warning {
    color: var(--intro-white-50);
}

#stellarIntro .panel-value.success {
    color: var(--intro-white);
}

#stellarIntro .globe-footer {
    padding-top: 20px;
    border-top: 1px solid var(--intro-white-10);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#stellarIntro .scan-line-container {
    width: 100%;
    height: 2px;
    background: var(--intro-white-05);
    overflow: hidden;
    margin-bottom: 15px;
}

#stellarIntro .scan-line {
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--intro-white-70), transparent);
    animation: scanLineMove 3s linear infinite;
}

@keyframes scanLineMove {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100vw); }
}

#stellarIntro .globe-footer-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

#stellarIntro .loading-text {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--intro-white-30);
    transition: opacity 0.4s ease;
}

/* ========================================
   PHASE 3b: EARTH VISUALIZATION - ENHANCED
   ======================================== */

#stellarIntro .phase-earth {
    position: relative;
    background: var(--intro-bg);
    overflow: hidden;
}

/* Earth Canvas - Z-INDEX BAJO */
#stellarIntro #earthCanvas {
    width: 80%;
    height: 100vh;
    max-height: 90%;
    z-index: 1 !important; /* MUY BAJO para que esté DEBAJO del HUD */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: opacity 1s ease, transform 1.2s ease;
    object-fit: contain;
}

#stellarIntro #phaseEarth.active #earthCanvas {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Earth Header HUD - Z-INDEX ALTO */
#stellarIntro .earth-header-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20 !important; /* MUY ALTO para estar SOBRE el canvas */
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 20px 40px;
    border-bottom: 1px solid var(--intro-white-10);
    pointer-events: none;
}

#stellarIntro .earth-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#stellarIntro .header-section-left,
#stellarIntro .header-section-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

#stellarIntro .header-section-right {
    align-items: flex-end;
    text-align: right;
}

#stellarIntro .system-status,
#stellarIntro .network-status,
#stellarIntro .security-level,
#stellarIntro .timestamp {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
}

#stellarIntro .status-text,
#stellarIntro .network-text,
#stellarIntro .security-text {
    color: var(--intro-white-50);
}

#stellarIntro .timestamp-label {
    color: var(--intro-white-30);
}

#stellarIntro .timestamp-value {
    color: var(--intro-white-70);
    font-family: var(--data-font);
}

#stellarIntro .header-section-center {
    text-align: center;
    flex: 1;
}

#stellarIntro .mission-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

#stellarIntro .title-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--intro-white-50), transparent);
}

#stellarIntro .main-title {
    font-size: 1.1rem;
    color: var(--intro-white);
    letter-spacing: 0.2em;
    font-weight: 300;
    font-family: var(--subtitle-font);
}

#stellarIntro .mission-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#stellarIntro .bracket {
    color: var(--intro-white-30);
    font-size: 0.8rem;
}

#stellarIntro .earth-header-bottom {
    padding: 15px 0;
    border-top: 1px solid var(--intro-white-05);
}

#stellarIntro .scan-progress-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

#stellarIntro .scan-label {
    font-size: 0.55rem;
    color: var(--intro-white-30);
    letter-spacing: 0.15em;
    min-width: 200px;
}

#stellarIntro .scan-bar {
    flex: 1;
    height: 3px;
    background: var(--intro-white-05);
    position: relative;
    overflow: hidden;
}

#stellarIntro .scan-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--intro-white);
    transition: width 0.5s ease;
}

#stellarIntro .scan-glow {
    position: absolute;
    top: -2px;
    right: 0;
    width: 20px;
    height: 7px;
    background: linear-gradient(90deg, transparent, var(--intro-white-70));
    filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#stellarIntro .scan-percentage {
    font-size: 0.6rem;
    color: var(--intro-white-50);
    min-width: 40px;
    text-align: right;
    font-family: var(--data-font);
}

/* Earth Container */
#stellarIntro .phase-earth .earth-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 120px 40px 80px;
    gap: 40px;
}

/* Enhanced Panels - Z-INDEX ALTO */
#stellarIntro .phase-earth .earth-panel-left,
#stellarIntro .phase-earth .earth-panel-right {
    width: 300px;
    height: 600px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--intro-white-20);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 15 !important; /* ALTO para estar sobre el canvas */
    position: relative;
    pointer-events: auto;
}

#stellarIntro .phase-earth.active .earth-panel-left {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

#stellarIntro .phase-earth.active .earth-panel-right {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

#stellarIntro .panel-header-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--intro-white-10);
    background: linear-gradient(135deg, var(--intro-white-05), transparent);
}

#stellarIntro .panel-title-group {
    flex: 1;
}

#stellarIntro .panel-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--intro-white);
    margin-bottom: 2px;
    font-weight: 400;
}

#stellarIntro .panel-subtitle {
    font-size: 0.5rem;
    color: var(--intro-white-30);
    letter-spacing: 0.1em;
}

#stellarIntro .panel-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--intro-white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

#stellarIntro .panel-status-dot.warning {
    background: #ff2659;
    box-shadow: 0 0 8px rgba(255, 38, 103, 0.5);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

#stellarIntro .panel-content-enhanced {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

#stellarIntro .data-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--intro-white-05);
    border-left: 3px solid var(--intro-white-20);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

#stellarIntro .data-block.critical {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

#stellarIntro .phase-earth.active .data-block {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation */
#stellarIntro .phase-earth.active .data-block:nth-child(1) { transition-delay: 0.8s; }
#stellarIntro .phase-earth.active .data-block:nth-child(2) { transition-delay: 0.85s; }
#stellarIntro .phase-earth.active .data-block:nth-child(3) { transition-delay: 0.9s; }
#stellarIntro .phase-earth.active .data-block:nth-child(4) { transition-delay: 0.95s; }
#stellarIntro .phase-earth.active .data-block:nth-child(5) { transition-delay: 1s; }
#stellarIntro .phase-earth.active .data-block:nth-child(6) { transition-delay: 1.05s; }

#stellarIntro .data-block:hover {
    background: var(--intro-white-10);
    transform: translateX(2px);
}

#stellarIntro .data-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#stellarIntro .data-label {
    font-size: 0.5rem;
    color: var(--intro-white-30);
    letter-spacing: 0.15em;
}

#stellarIntro .data-value {
    font-size: 0.7rem;
    color: var(--intro-white-90);
    font-family: var(--data-font);
    letter-spacing: 0.05em;
}

#stellarIntro .data-value.status-ok {
    color: #af5e4c;
}

#stellarIntro .data-value.status-warning {
    color: #ff355a;
}

#stellarIntro .data-value.status-critical {
    color: #f44336;
}

#stellarIntro .data-detail {
    font-size: 0.45rem;
    color: var(--intro-white-30);
    letter-spacing: 0.1em;
}

#stellarIntro .data-bar {
    width: 100%;
    height: 2px;
    background: var(--intro-white-05);
    margin-top: 4px;
    overflow: hidden;
}

#stellarIntro .bar-fill {
    height: 100%;
    background: transparent;
    transition: width 1s ease;
}

#stellarIntro .panel-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--intro-white-10);
    background: var(--intro-white-05);
}

#stellarIntro .footer-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#stellarIntro .status-dots {
    display: flex;
    gap: 6px;
}

#stellarIntro .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--intro-white-20);
}

#stellarIntro .dot.active {
    background: #ff3960;
    box-shadow: 0 0 6px rgba(175, 76, 109, 0.5);
}

#stellarIntro .dot.warning {
    background: #ff53b4;
    box-shadow: 0 0 6px rgba(255, 38, 197, 0.5);
}

#stellarIntro .dot.critical {
    background: #f44336;
    box-shadow: 0 0 6px rgba(244, 67, 54, 0.5);
}

#stellarIntro .footer-text {
    font-size: 0.5rem;
    color: var(--intro-white-50);
    letter-spacing: 0.1em;
}

/* Bottom HUD - Z-INDEX ALTO */
#stellarIntro .earth-bottom-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20 !important; /* MUY ALTO para estar SOBRE el canvas */
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 20px 40px;
    border-top: 1px solid var(--intro-white-10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

#stellarIntro .bottom-left,
#stellarIntro .bottom-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

#stellarIntro .hud-text {
    font-size: 0.55rem;
    color: var(--intro-white-50);
    letter-spacing: 0.1em;
}

#stellarIntro .hud-divider {
    color: var(--intro-white-20);
    font-size: 0.8rem;
}

#stellarIntro .bottom-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

#stellarIntro .pulse-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

#stellarIntro .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f44336;
    animation: pulseCritical 1s ease-in-out infinite;
}

@keyframes pulseCritical {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

#stellarIntro .pulse-text {
    font-size: 0.55rem;
    color: #f44336;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* ========================================
   PHASE 4: BODY SCAN (SPLINE 3D)
   ======================================== */

#stellarIntro .phase-body {
    background: var(--intro-bg);
}

#stellarIntro .body-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#stellarIntro #brainCanvas {
    cursor: grab;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw !important;
    height: 90vh !important;
    max-width: 1400px;
    max-height: 900px;
    z-index: 1 !important;
}

#stellarIntro #brainCanvas:active {
    cursor: grabbing;
}

#stellarIntro .body-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 40px;
    display: flex;
    flex-direction: column;
    z-index: 10 !important;
}

#stellarIntro .body-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--intro-white-10);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

#stellarIntro .body-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#stellarIntro .body-icon {
    width: 25px;
    height: 25px;
    color: var(--intro-white-50);
}

#stellarIntro .body-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--intro-white-70);
}

#stellarIntro .body-id {
    font-size: 0.6rem;
    color: var(--intro-white-50);
    letter-spacing: 0.15em;
}

#stellarIntro .body-scan-data {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border: 1px solid var(--intro-white-20);
    border-radius: 4px;
    pointer-events: auto;
}

#stellarIntro .scan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#stellarIntro .scan-item.visible {
    opacity: 1;
    transform: translateX(0);
}

#stellarIntro .scan-dot {
    width: 6px;
    height: 6px;
    background: var(--intro-white-50);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

#stellarIntro .scan-dot.success { 
    background: var(--intro-white); 
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

#stellarIntro .scan-dot.warning { 
    background: #ffa726; 
    box-shadow: 0 0 8px rgba(255, 167, 38, 0.5);
}

#stellarIntro .scan-text {
    font-size: 0.65rem;
    color: var(--intro-white-70);
    letter-spacing: 0.08em;
}

/* ========================================
   PHASE 5: BOARDING PASS
   ======================================== */

#stellarIntro .phase-boarding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

#stellarIntro .boarding-wrapper {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

#stellarIntro .boarding-wrapper.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#stellarIntro .boarding-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    max-width: 900px;
    border: 1px solid var(--intro-white-20);
    position: relative;
}

/* Left Side */
#stellarIntro .boarding-left {
    padding: 40px 35px;
    border-right: 1px dashed var(--intro-white-20);
}

#stellarIntro .boarding-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

#stellarIntro .boarding-chevrons {
    width: 30px;
    height: 30px;
    color: var(--intro-white-50);
}

#stellarIntro .boarding-title {
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--intro-white);
    font-weight: 300;
}

#stellarIntro .passenger-section {
    margin-bottom: 35px;
}

#stellarIntro .passenger-label {
    font-size: 0.55rem;
    color: var(--intro-white-30);
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

#stellarIntro .passenger-name {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

#stellarIntro .name-prefix {
    font-size: 1.2rem;
    color: var(--intro-white-50);
    font-weight: 300;
}

#stellarIntro .name-main {
    font-size: 2.2rem;
    color: var(--intro-white);
    font-weight: 300;
    letter-spacing: 0.1em;
}

#stellarIntro .diagonal-stripes {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    height: 30px;
    overflow: hidden;
}

#stellarIntro .stripe {
    width: 3px;
    height: 150%;
    background: var(--intro-white-10);
    transform: rotate(45deg);
}

#stellarIntro .coordinates {
    display: flex;
    gap: 20px;
    font-size: 0.7rem;
    color: var(--intro-white-50);
}

#stellarIntro .boarding-time {
    margin-bottom: 30px;
}

#stellarIntro .time-label {
    font-size: 0.55rem;
    color: var(--intro-white-30);
    letter-spacing: 0.2em;
    margin-bottom: 6px;
}

#stellarIntro .time-value {
    font-size: 2rem;
    color: var(--intro-white);
    font-weight: 300;
    letter-spacing: 0.1em;
}

#stellarIntro .journey-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

#stellarIntro .journey-from,
#stellarIntro .journey-to {
    flex: 1;
}

#stellarIntro .journey-label {
    font-size: 0.5rem;
    color: var(--intro-white-30);
    letter-spacing: 0.2em;
    margin-bottom: 5px;
}

#stellarIntro .journey-value {
    font-size: 1rem;
    color: var(--intro-white-70);
    letter-spacing: 0.08em;
    font-weight: 300;
}

#stellarIntro .journey-arrow {
    width: 20px;
    height: 20px;
    color: var(--intro-white-30);
}

#stellarIntro .status-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

#stellarIntro .status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

#stellarIntro .status-dot-large {
    width: 8px;
    height: 8px;
    background: var(--intro-white);
    animation: statusBlink 1.5s ease-in-out infinite;
}

#stellarIntro .status-text {
    font-size: 0.65rem;
    color: var(--intro-white-70);
    letter-spacing: 0.1em;
}

#stellarIntro .qr-code {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#stellarIntro .qr-row {
    display: flex;
    gap: 3px;
}

#stellarIntro .qr-row span {
    width: 8px;
    height: 8px;
    background: var(--intro-white-70);
}

#stellarIntro .qr-row span.empty {
    background: transparent;
}

#stellarIntro .boarding-footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--intro-white-10);
}

#stellarIntro .footer-icon {
    font-size: 1rem;
    color: var(--intro-white-30);
}

#stellarIntro .footer-message {
    font-size: 0.5rem;
    color: var(--intro-white-30);
    line-height: 1.7;
    font-weight: 300;
}

/* Right Side */
#stellarIntro .boarding-right {
    padding: 35px 25px;
    background: var(--intro-white-05);
    display: flex;
    flex-direction: column;
}

#stellarIntro .gate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

#stellarIntro .gate-chevrons,
#stellarIntro .gate-expand {
    width: 25px;
    height: 25px;
    color: var(--intro-white-50);
}

#stellarIntro .gate-label {
    font-size: 0.55rem;
    color: var(--intro-white-30);
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

#stellarIntro .gate-number {
    font-size: 4rem;
    color: var(--intro-white);
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 30px;
}

#stellarIntro .barcode-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--intro-white-10);
}

#stellarIntro .passenger-id {
    font-size: 0.5rem;
    color: var(--intro-white-30);
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

#stellarIntro .id-number {
    font-size: 0.7rem;
    color: var(--intro-white-70);
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

#stellarIntro .barcode {
    display: flex;
    gap: 2px;
    height: 35px;
    align-items: stretch;
}

#stellarIntro .barcode.small {
    height: 20px;
}

#stellarIntro .bar {
    background: var(--intro-white-70);
}

#stellarIntro .bar.thin { width: 2px; }
#stellarIntro .bar.medium { width: 4px; }
#stellarIntro .bar.thick { width: 6px; }

#stellarIntro .flight-info {
    margin-bottom: 25px;
}

#stellarIntro .info-label {
    font-size: 0.55rem;
    color: var(--intro-white-30);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

#stellarIntro .info-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

#stellarIntro .globe-icon-small {
    width: 30px;
    height: 30px;
    color: var(--intro-white-50);
}

#stellarIntro .seat-number {
    font-size: 0.7rem;
    color: var(--intro-white-50);
    letter-spacing: 0.1em;
}

#stellarIntro .seat-number span {
    font-size: 1.1rem;
    color: var(--intro-white);
    margin-left: 8px;
    font-weight: 300;
}

#stellarIntro .date-stamp {
    margin-bottom: 25px;
}

#stellarIntro .date-label {
    font-size: 0.65rem;
    color: var(--intro-white-50);
    letter-spacing: 0.15em;
}

#stellarIntro .bottom-barcode {
    margin-top: auto;
}

/* ========================================
   FADE OUT
   ======================================== */

#stellarIntro.fade-out {
    animation: fadeOut 1.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
    #stellarIntro .scan-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ========================================
   CANVAS ELEMENTS
   ======================================== */

#terrainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    transition: opacity 0.4s ease;
}

#terrainCanvas.hidden {
    opacity: 0.2;
}

/* Responsive Design */
@media (max-width: 1400px) {
    #stellarIntro .phase-earth .earth-panel-left,
    #stellarIntro .phase-earth .earth-panel-right {
        width: 280px;
        height: 550px;
    }
}

@media (max-width: 1200px) {
    #stellarIntro .phase-earth .earth-container {
        padding: 100px 20px 80px;
        gap: 30px;
    }
    
    #stellarIntro .phase-earth .earth-panel-left,
    #stellarIntro .phase-earth .earth-panel-right {
        width: 260px;
        height: 500px;
    }
    
    #stellarIntro .earth-header-hud {
        padding: 15px 20px;
    }
}

@media (max-width: 900px) {
    #stellarIntro .phase-earth .earth-container {
        flex-direction: column;
        padding: 120px 20px 100px;
        gap: 20px;
    }
    
    #stellarIntro .phase-earth .earth-panel-left,
    #stellarIntro .phase-earth .earth-panel-right {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }
    
    #stellarIntro #earthCanvas {
        width: 90% !important;
        height: 300px !important;
    }
    
    #stellarIntro .earth-header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #stellarIntro .header-section-left,
    #stellarIntro .header-section-right {
        align-items: center;
        text-align: center;
        min-width: auto;
    }
}

/* Scrollbar Styling */
#stellarIntro .panel-content-enhanced::-webkit-scrollbar {
    width: 4px;
}

#stellarIntro .panel-content-enhanced::-webkit-scrollbar-track {
    background: var(--intro-white-05);
}

#stellarIntro .panel-content-enhanced::-webkit-scrollbar-thumb {
    background: var(--intro-white-20);
    border-radius: 2px;
}

#stellarIntro .panel-content-enhanced::-webkit-scrollbar-thumb:hover {
    background: var(--intro-white-30);
}
