/* ── The Ascension Protocol UI ── */
#ascension-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 7, 13, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#ascension-overlay.active {
    display: flex;
    opacity: 1;
}

/* ── Holographic Avatar Core ── */
.avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff280, #ffd700, #b81c2b);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 
                inset 0 0 20px rgba(230, 57, 70, 0.8);
    animation: orbIdle 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.avatar-orb.speaking {
    animation: orbPulse 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.9), 
                inset 0 0 30px rgba(230, 57, 70, 1);
}

.avatar-rings {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: spinSlow 20s linear infinite;
    pointer-events: none;
}

.avatar-rings::after {
    content: '';
    position: absolute;
    top: 10%; left: 10%; right: 10%; bottom: 10%;
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: 50%;
    animation: spinSlowReverse 15s linear infinite;
}

@keyframes orbIdle {
    0%, 100% { transform: scale(1) translateY(0); filter: hue-rotate(0deg); }
    50% { transform: scale(1.05) translateY(-10px); filter: hue-rotate(15deg); }
}

@keyframes orbPulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.15); filter: brightness(1.3); }
}

@keyframes spinSlow { 100% { transform: rotate(360deg); } }
@keyframes spinSlowReverse { 100% { transform: rotate(-360deg); } }

/* ── Dialog Area ── */
.dialog-container {
    width: 80%;
    max-width: 800px;
    background: rgba(9, 19, 34, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(12px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(40px);
    opacity: 0;
}

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

.avatar-subtitle {
    color: #ffd700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.dialog-text {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.4;
    min-height: 80px;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ── Interactive Options ── */
.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.ascension-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.ascension-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.ascension-btn.primary {
    background: linear-gradient(135deg, #ffd700, #e63946);
    color: #091322;
    font-weight: 700;
    border: none;
}

.ascension-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
    transform: translateY(-3px) scale(1.02);
}

/* ── Auth Matrix / Dossier Grid ── */
.auth-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.auth-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.auth-card.connected {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
}

.auth-card:hover:not(.connected) {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

/* ── Dossier Output ── */
.dossier-panel {
    text-align: left;
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 1rem;
    color: #a3b8cc;
    max-height: 400px;
    overflow-y: auto;
}
.dossier-panel h3 { color: #ffd700; margin-bottom: 10px; font-family: 'Outfit'; }
.dossier-stat { display: flex; justify-content: space-between; margin-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Voice Indicator */
.voice-indicator {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.voice-indicator .mic-icon {
    width: 12px; height: 12px;
    background: #e63946;
    border-radius: 50%;
    animation: blink 2s infinite;
}
