/* CQI Nexus - Futuristic Quantum Interface Styles */

:root {
    /* Primary Palette */
    --deep-space: #0A0A1A;
    --quantum-blue: #00D4FF;
    --energy-cyan: #00FFCC;
    --star-white: #FFFFFF;
    --nebula-purple: #9D4EDD;
    
    /* Functional Colors */
    --success: #00FF88;
    --warning: #FFAA00;
    --alert: #FF3366;
    --neutral: #8899AA;
    
    /* Gradients */
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-cyan: 0 0 20px rgba(0, 255, 204, 0.5);
    --glow-purple: 0 0 20px rgba(157, 78, 221, 0.5);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --panel-gap: 1.5rem;
    --border-radius: 8px;
}

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

body {
    font-family: var(--font-sans);
    background: var(--deep-space);
    color: var(--star-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.2), transparent);
    background-size: 350px 200px;
    animation: twinkle 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.quantum-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.quantum-particles::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--quantum-blue);
    border-radius: 50%;
    box-shadow: 
        100px 200px 0 var(--energy-cyan),
        300px 400px 0 var(--nebula-purple),
        500px 100px 0 var(--quantum-blue),
        700px 300px 0 var(--energy-cyan),
        900px 500px 0 var(--nebula-purple);
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Header */
.app-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(10,10,26,0.95) 0%, rgba(10,10,26,0.8) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
}

.quantum-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--quantum-blue);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    box-shadow: var(--glow-blue);
}

.quantum-ring::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid var(--energy-cyan);
    border-radius: 50%;
    animation: rotate 8s linear infinite reverse;
}

.quantum-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--star-white);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--quantum-blue);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--star-white);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--quantum-blue);
    opacity: 0.8;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    color: var(--success);
}

/* Main Content */
.app-main {
    position: relative;
    z-index: 5;
    flex: 1;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr;
    gap: var(--panel-gap);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Panels */
.panel {
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.panel-icon {
    font-size: 1.25rem;
    color: var(--quantum-blue);
}

.panel-header h2 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--star-white);
    flex: 1;
}

/* Personal Node Panel */
.personal-node {
    grid-row: span 2;
}

.node-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--energy-cyan);
    padding: 0.25rem 0.5rem;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.panel-content {
    padding: 1.5rem;
}

.node-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.node-orb {
    position: relative;
    width: 120px;
    height: 120px;
}

.node-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

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

.node-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--quantum-blue), var(--energy-cyan));
    border-radius: 50%;
    box-shadow: 0 0 30px var(--quantum-blue);
}

.node-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
}

.ring-1 {
    width: 80px;
    height: 80px;
    animation: rotate 8s linear infinite;
}

.ring-2 {
    width: 100px;
    height: 100px;
    animation: rotate 12s linear infinite reverse;
    border-color: rgba(0, 255, 204, 0.3);
}

.ring-3 {
    width: 120px;
    height: 120px;
    animation: rotate 16s linear infinite;
    border-color: rgba(157, 78, 221, 0.3);
}

.node-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--neutral);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--quantum-blue);
}

.progress-bar {
    height: 6px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--quantum-blue), var(--energy-cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--quantum-blue);
}

/* QAI Chat Panel */
.qai-chat {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.ai-icon {
    color: var(--energy-cyan);
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ai-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--success);
    letter-spacing: 1px;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    max-height: 300px;
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlide 0.3s ease;
}

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

.message-avatar {
    flex-shrink: 0;
}

.ai-avatar {
    position: relative;
    width: 36px;
    height: 36px;
}

.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--energy-cyan), var(--quantum-blue));
    border-radius: 50%;
    box-shadow: 0 0 15px var(--energy-cyan);
}

.ai-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 50%;
    animation: rotate 6s linear infinite;
}

.message-content {
    flex: 1;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 0 12px 12px 12px;
    padding: 0.875rem 1rem;
}

.message-sender {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--energy-cyan);
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--star-white);
}

.message-time {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neutral);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.chat-input-area {
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding-top: 1rem;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.quick-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: var(--quantum-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.quick-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.input-row {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    color: var(--star-white);
    outline: none;
    transition: all 0.2s ease;
}

.chat-input:focus {
    border-color: var(--quantum-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.chat-input::placeholder {
    color: var(--neutral);
    opacity: 0.6;
}

.send-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--quantum-blue), var(--energy-cyan));
    border: none;
    border-radius: 6px;
    color: var(--deep-space);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Module Grid */
.module-grid {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.module-card {
    position: relative;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--quantum-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.module-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.module-card.locked:hover {
    transform: none;
    border-color: rgba(0, 212, 255, 0.2);
}

.module-icon {
    font-size: 1.5rem;
    color: var(--quantum-blue);
    margin-bottom: 0.75rem;
}

.module-card.locked .module-icon {
    color: var(--neutral);
}

.module-card h3 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--star-white);
}

.module-card p {
    font-size: 0.8rem;
    color: var(--neutral);
    margin-bottom: 1rem;
}

.module-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    color: var(--success);
    display: inline-block;
}

.module-card.locked .module-status {
    background: rgba(136, 153, 170, 0.1);
    border-color: rgba(136, 153, 170, 0.3);
    color: var(--neutral);
}

.lock-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    opacity: 0.5;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--deep-space);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlide 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.modal-header h2 {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--star-white);
}

.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 6px;
    color: var(--alert);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 51, 102, 0.2);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

/* Galactic Map */
.galactic-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 600px;
}

.galactic-map {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.star {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: starPulse 2s ease-in-out infinite;
}

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

.star.personal {
    width: 16px;
    height: 16px;
    background: var(--energy-cyan);
    box-shadow: 0 0 20px var(--energy-cyan);
}

.star.discovered {
    width: 10px;
    height: 10px;
    background: var(--quantum-blue);
    box-shadow: 0 0 10px var(--quantum-blue);
}

.star.undiscovered {
    width: 6px;
    height: 6px;
    background: var(--neutral);
    opacity: 0.5;
}

.star.relay {
    width: 12px;
    height: 12px;
    background: var(--nebula-purple);
    box-shadow: 0 0 15px var(--nebula-purple);
}

.star:hover {
    transform: scale(1.5);
}

.map-controls {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--neutral);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.personal { background: var(--energy-cyan); }
.legend-dot.discovered { background: var(--quantum-blue); }
.legend-dot.undiscovered { background: var(--neutral); opacity: 0.5; }
.legend-dot.relay { background: var(--nebula-purple); }

.map-info {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
}

.info-placeholder {
    color: var(--neutral);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 0;
}

/* Timeline */
.timeline-container {
    padding: 2rem;
    overflow-x: auto;
}

.timeline-track {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--quantum-blue), var(--energy-cyan), var(--nebula-purple));
    opacity: 0.3;
}

.timeline-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-node:hover {
    transform: translateY(-5px);
}

.timeline-node.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeline-node.locked:hover {
    transform: none;
}

.node-marker {
    width: 20px;
    height: 20px;
    background: var(--quantum-blue);
    border-radius: 50%;
    border: 3px solid var(--deep-space);
    box-shadow: 0 0 15px var(--quantum-blue);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-node.active .node-marker {
    background: var(--energy-cyan);
    box-shadow: 0 0 20px var(--energy-cyan);
    animation: markerPulse 2s ease-in-out infinite;
}

.timeline-node.locked .node-marker {
    background: var(--neutral);
    box-shadow: none;
}

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

.node-year {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--star-white);
}

.node-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--quantum-blue);
    text-align: center;
}

.node-desc {
    font-size: 0.8rem;
    color: var(--neutral);
    text-align: center;
}

/* First Contact Simulation */
.simulation-container {
    padding: 2rem;
    min-height: 400px;
}

.phase-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.phase-step {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--neutral);
    transition: all 0.3s ease;
}

.phase-step.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--quantum-blue);
    color: var(--quantum-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.phase-step.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--deep-space);
}

.phase-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.phase-content h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--energy-cyan);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.phase-content p {
    font-size: 1rem;
    color: var(--star-white);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.signal-visual {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.waveform {
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, var(--quantum-blue), var(--energy-cyan));
    border-radius: 2px;
    animation: waveform 1s ease-in-out infinite;
}

.waveform:nth-child(2) { animation-delay: 0.1s; }
.waveform:nth-child(3) { animation-delay: 0.2s; }

@keyframes waveform {
    0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.action-btn {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--quantum-blue), var(--energy-cyan));
    border: none;
    border-radius: 6px;
    color: var(--deep-space);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: var(--quantum-blue);
}

.action-btn.secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Footer */
.app-footer {
    position: relative;
    z-index: 10;
    padding: 1.5rem 2rem;
    background: linear-gradient(0deg, rgba(10,10,26,0.95) 0%, rgba(10,10,26,0.8) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.footer-stat .stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--neutral);
}

.footer-stat .stat-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--quantum-blue);
}

.footer-status {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--success);
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .app-main {
        grid-template-columns: 1fr;
    }
    
    .personal-node {
        grid-row: auto;
    }
    
    .module-grid {
        grid-column: 1;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .galactic-container {
        grid-template-columns: 1fr;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}