/* =================================================================== */
/*      MAKUMOTO MODALS: CORE (v2.0)
/*      Sistemas Críticos: Lyra (IA Onboarding) y Pasarela de Pagos
/* =================================================================== */

/* =================================================================== */
/*      1. LYRA / ACTIVATE HUB (COSMIC THEME)
/* =================================================================== */

/* El Overlay de Lyra */
#activate-hub-modal {
    z-index: var(--z-modal); /* 300 */
    background: rgba(15, 12, 21, 0.95); /* Fondo casi sólido para inmersión */
}

/* La Tarjeta Principal */
.lyra-modal-card {
    position: relative;
    width: 90%; max-width: 380px;
    height: 80vh; max-height: 800px;
    
    /* Tema Cósmico */
    background-color: #0f0c15;
    background-image: radial-gradient(circle at 50% 20%, #2c2044 0%, #0f0c15 70%);
    
    border: 1px solid #3c305a;
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(171, 113, 237, 0.3);
    
    display: flex; flex-direction: column;
    overflow: hidden;
    margin: auto;
    color: #fff;
}

/* --- Pantalla de Presentación (Intro) --- */
.lyra-presentation-screen {
    position: absolute;
    inset: 0; /* Ocupa todo el modal */
    background: #0f0c15;
    z-index: 10; /* Tapa el chat */
    
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 20px; text-align: center;
    
    transition: opacity 0.5s ease;
}

.lyra-avatar-large {
    width: 140px; height: 140px;
    border-radius: 50%;
    background-color: #333;
    background-size: cover; background-position: center top;
    border: 3px solid #ab71ed;
    box-shadow: 0 0 30px rgba(171, 113, 237, 0.6);
    margin-bottom: 25px;
    /* La animación float está en fx.css, aquí solo la estructura */
}

.lyra-presentation-title {
    font-size: 1.8rem; font-weight: 800; color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(171, 113, 237, 0.5);
}

.lyra-presentation-desc {
    font-size: 1rem; color: #ccc; line-height: 1.5;
    max-width: 90%; margin: 0 auto 30px auto;
}

#start-chat-btn {
    background: linear-gradient(90deg, #ab71ed, #9b59b6);
    color: white; border: none;
    padding: 14px 30px; border-radius: 50px;
    font-weight: 800; font-size: 1rem;
    box-shadow: 0 5px 15px rgba(171, 113, 237, 0.4);
    cursor: pointer; text-transform: uppercase;
}

/* --- Chat Interno --- */
.activate-chat-body {
    flex: 1; padding: 20px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 20px;
}

.chat-bubble {
    display: flex; gap: 15px; max-width: 90%;
}

.chat-bubble .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background-size: cover; flex-shrink: 0;
    border: 1px solid #ab71ed;
}

.chat-bubble p {
    background: #2c2541; color: #fff;
    padding: 15px; border-radius: 0 15px 15px 15px;
    line-height: 1.5; border: 1px solid #3c305a;
}

/* Botones de Misión */
.mission-button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px; border-radius: 12px;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; gap: 15px;
    transition: all 0.2s;
}
.mission-button:hover {
    background: rgba(171, 113, 237, 0.1);
    border-color: #ab71ed; transform: translateX(5px);
}

/* =================================================================== */
/*      2. MY PLAN (MEMBRESÍAS)
/* =================================================================== */

.plan-modal-title { 
    text-align: center; margin-bottom: 20px; 
    color: var(--color-primary); font-size: 1.5rem; font-weight: 800;
}

.plan-cards-container { display: flex; flex-direction: column; gap: 15px; }

.premium-plan-card {
    background: #1a1a1a; border: 1px solid #333;
    border-radius: 12px; padding: 20px;
    position: relative; overflow: hidden;
}

/* Variantes */
.premium-plan-card.elite { border-color: #3498db; }
.premium-plan-card.advanced { 
    border-color: var(--color-primary); 
    background: linear-gradient(145deg, #221f00, #1a1a1a); 
}

/* Badges */
.card-badge {
    position: absolute; top: 0; right: 0;
    font-size: 0.6rem; font-weight: 700;
    padding: 3px 10px; border-bottom-left-radius: 8px;
}
.card-badge.blue { background: #3498db; color: #fff; }
.card-badge.gold { background: var(--color-primary); color: #000; }

/* Contenido Tarjeta */
.card-header { display: flex; align-items: center; margin-bottom: 15px; }
.card-header h4 { margin: 0; font-size: 1.2rem; flex: 1; color: #fff; }
.price { font-size: 1.1rem; font-weight: 700; color: #fff; }

.btn-activate {
    width: 100%; padding: 10px; border: none; border-radius: 8px;
    font-weight: 700; cursor: pointer; text-transform: uppercase;
}
.btn-activate.elite { background: #3498db; color: #fff; }
.btn-activate.advanced { background: var(--color-primary); color: #000; }

/* =================================================================== */
/*      3. PAYPAL CLEAN ROOM (GATEWAY)
/*      Pantalla Completa de Seguridad para Pagos
/* =================================================================== */

#payment-gateway-fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100dvh;
    
    /* FONDO NEGRO PURO - Cero distracciones */
    background-color: #000000;
    
    /* NIVEL DIOS - Encima de todo */
    z-index: var(--z-alert); /* 500 o más (usar --z-god si existe) */
    
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    
    /* Reset de seguridad para iframes de PayPal */
    transform: none; filter: none; perspective: none;
}

.gateway-card {
    background: #111;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px 20px;
    width: 90%; max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative;
}

.gateway-title {
    color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 10px;
}

.gateway-price {
    color: var(--color-primary);
    font-size: 2.5rem; font-weight: 800; margin-bottom: 30px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Contenedor Botones PayPal (Aislado) */
#gateway-paypal-container {
    width: 100%; min-height: 150px;
    margin-bottom: 20px;
    position: relative; z-index: 10;
}

.gateway-cancel-btn {
    background: transparent; border: 1px solid #444; color: #888;
    padding: 12px 30px; border-radius: 50px; cursor: pointer;
    font-size: 0.9rem; transition: all 0.2s;
}
.gateway-cancel-btn:hover { border-color: #fff; color: #fff; }

/* Auxiliar: Ocultar el resto de la app cuando se paga */
body.payment-mode-active > *:not(#payment-gateway-fullscreen) {
    display: none !important;
}