#celestial-terminal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(1000px) rotateY(0deg);
    width: 90%;
    max-width: 800px;
    height: 60vh;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid #00aaff;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.5);
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

#celestial-terminal.hidden {
    display: none;
    pointer-events: none;
}

.terminal-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 20px rgba(0, 170, 255, 0.8);
    pointer-events: none;
}

.terminal-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    text-align: center;
    border-bottom: 1px solid #00aaff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.terminal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 0 10px #00aaff;
}

.terminal-header p {
    margin: 0;
    font-size: 1rem;
    color: #00aaff;
}

#terminal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: 1px solid #00aaff;
    color: #00aaff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#terminal-close-btn:hover {
    background: #00aaff;
    color: #001428;
}

.terminal-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.terminal-tab {
    background: none;
    border: none;
    color: #00aaff;
    font-size: 1.2rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.terminal-tab.active, .terminal-tab:hover {
    border-bottom: 2px solid #00aaff;
    text-shadow: 0 0 10px #00aaff;
}

.terminal-body {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.terminal-tab-content {
    display: none;
}

.terminal-tab-content.active {
    display: block;
}

.type-out {
    white-space: pre-wrap;
    overflow: hidden;
    width: 0;
    animation: typing 2s steps(40, end) forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
