/* === REPLIKT VISUAL ENGINE === */
:root {
    --bg: #050510;
    --glass: rgba(20, 20, 35, 0.85);
    --neon: #00f3ff;
    --danger: #ff3333;
    --text: #fff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --input-bg: rgba(0, 0, 0, 0.5);
    --header-bg: rgba(5, 5, 16, 0.95);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
   overflow-y: auto !important;
}

/* EFECTOS NEÓN & TEXTO */
.glow-text { text-shadow: 0 0 10px var(--neon); }
.glow-box { box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); }
h1, h2, h3 { margin: 0; letter-spacing: 1px; }

/* CONTENEDOR CENTRAL */
.container {
  padding: 20px 20px 80px 20px !important;  
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* TARJETAS DE CRISTAL (GLASSMORPHISM) */
.card {
    background: var(--glass);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-out;
}

/* INPUTS DE ALTA SEGURIDAD */
input {
    background: var(--input-bg);
    border: 1px solid #333;
    color: var(--neon);
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 16px;
    outline: none;
    text-align: center;
    margin-bottom: 15px;
    transition: 0.3s;
}
input:focus { 
    border-color: var(--neon); 
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15); 
}

/* BOTONES */
.btn {
    background: linear-gradient(90deg, rgba(0,243,255,0.1), rgba(0,243,255,0.25));
    border: 1px solid var(--neon);
    color: var(--neon);
    padding: 15px;
    width: 100%;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    font-size: 14px;
}
.btn:active { transform: scale(0.98); background: var(--neon); color: #000; }

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255, 50, 50, 0.1);
}
.btn-danger:active { background: var(--danger); color: #fff; }

/* UTILIDADES */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-small { font-size: 11px; color: #888; }
.full-width { width: 100%; }

/* ANIMACIONES */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 100% { transform: rotate(360deg); } }

.loader {
    width: 30px; height: 30px;
    border: 3px solid #333;
    border-top: 3px solid var(--neon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* SEMÁFORO (Para Ajustes) */
.status-dot {
    width: 8px; height: 8px; 
    border-radius: 50%; 
    display: inline-block; 
    margin-right: 6px;
}
/* Composer: oculto por defecto (para que NO salga en la lista de chats) */
#composer{
  display:none !important;
}

/* Composer: visible SOLO cuando estás dentro del chat */
body.in-chat #composer{
  display:block !important;
}

