body {
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0a; /* Fondo ultra oscuro */
}

.l2-font {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Estilo para los inputs */
.form-control:focus {
    background-color: #1a1a1a;
    border-color: #ffc107; /* Color dorado al enfocar */
    color: white;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/* Navbar Personalizada */
.navbar {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: #d1d1d1 !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: #ffc107 !important;
}

/* Modales estilo Dark Game */
.modal-content {
    background-image: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #444;
}

.btn-warning {
    background-color: #a67c00;
    border: none;
    color: white;
}

.btn-warning:hover {
    background-color: #d19b00;
}

/* Contenedor especial de pago */
.alert-payment {
    background: linear-gradient(135deg, #0a210f 0%, #000000 100%);
    border-left: 5px solid #198754 !important;
    padding: 2rem;
    color: #fff;
}

/* Efecto de brillo que recorre el mensaje */
.glitter-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 135, 84, 0.2), transparent);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

.font-monospace {
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

/* Estilo para el Modal de Éxito */
#modalSuccessPago .modal-content {
    background: radial-gradient(circle at center, #0a1a0a 0%, #000000 100%);
    box-shadow: 0 0 30px rgba(25, 135, 84, 0.3) !important;
}

#modalSuccessPago .glitter-effect {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(25, 135, 84, 0.1), transparent);
    transform: rotate(30deg);
    animation: shine-modal 5s infinite;
}

@keyframes shine-modal {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

#modalSuccessPago code {
    font-size: 1.2rem;
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.swal2-popup {
    border: 2px solid #5c4b24 !important; /* Dorado oscuro */
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%) !important;
}

.swal2-title h2 {
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    font-size: 1.5rem;
}

.swal2-input:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3) !important;
}

/* Asegura que el input tenga ancho suficiente para el espaciado de letras */
.custom-swal-input {
    width: 80% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Estilo para el placeholder (el 0 0 0 0) */
.custom-swal-input::placeholder {
    color: #444 !important; /* Gris oscuro para que no resalte */
    letter-spacing: 8px;
    opacity: 1;
}

/* Capa de carga a pantalla completa */
#loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Oculto por defecto */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-l2 {
    width: 60px;
    height: 60px;
    border: 5px solid #222;
    border-top: 5px solid #ffc107; /* Color Dorado L2 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #ffc107;
    margin-top: 15px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#botonReset {
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

#botonReset:hover {
    color: #ffc107 !important; /* El amarillo de tu botón Login */
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5); /* Un pequeño brillo */
}


/* --- ESTILO PANEL DROPDOWN ANDROMEDA --- */

.andro-dropdown {
    background: rgba(15, 17, 21, 0.85) !important; /* Fondo cristalino */
    backdrop-filter: blur(15px); /* Desenfoque de fondo */
    -webkit-backdrop-filter: blur(15px);
    
    /* Borde dorado sólido y fino */
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 12px !important;
    
    /* Triple brillo: Sombra exterior + Resplandor dorado + Brillo interno */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 
                0 0 15px rgba(212, 175, 55, 0.2),
                inset 0 0 15px rgba(212, 175, 55, 0.05) !important;
    
    padding: 8px 0 !important;
    min-width: 250px;
    margin-top: 12px !important;
    overflow: hidden; /* Corta los brillos internos en las esquinas */
}

/* Línea de resplandor superior dorada */
.andro-dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    z-index: 10;
}

/* Ajuste del Header Interno */
.border-andro-gold-low {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.text-andro-gold {
    color: #d4af37 !important;
}

/* --- ESTILO DE LOS ITEMS --- */

.andro-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 3px solid transparent;
    margin: 2px 0;
}

/* Efecto Hover: Deslizamiento y Brillo */
.andro-dropdown .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #fff !important;
    border-left: 3px solid #d4af37;
    padding-left: 20px !important; /* Efecto de empuje */
}

/* Iconos dinámicos */
.andro-dropdown .dropdown-item i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.andro-dropdown .dropdown-item:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px currentColor);
}

/* Opción Salir Específica */
.item-exit:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    border-left-color: #dc3545 !important;
    color: #ff4d4d !important;
}

/* --- ANIMACIÓN DE APERTURA --- */
.dropdown-menu.show {
    animation: androFadeIn 0.3s ease-out forwards;
}

@keyframes androFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- AJUSTE DEFINITIVO PARA MÓVIL (CENTRADO TOTAL) --- */

@media (max-width: 768px) {
    /* 1. Forzamos la anulación de los estilos de posicionamiento de Bootstrap */
    .andro-dropdown {
        position: fixed !important; /* Cambiamos a fixed para que se centre respecto a la pantalla, no al botón */
        top: 35% !important;        /* Lo bajamos un poco para que sea cómodo al tacto */
        left: 50% !important;
        right: auto !important;
        
        /* Centrado absoluto */
        transform: translate(-50%, 0) !important;
        
        /* Dimensiones adaptables */
        width: 85vw !important;    /* 85% del ancho de la pantalla */
        max-width: 350px !important;
        
        margin: 0 !important;      /* Quitamos márgenes que puedan desplazarlo */
        z-index: 9999 !important;  /* Por encima de todo */
    }

    /* 2. Ajustamos la animación para que respete el centrado fijo */
    .dropdown-menu.show {
        animation: androFadeInMobileFixed 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    /* 3. Evitamos que Bootstrap use su lógica de posicionamiento (Popper) */
    .dropdown-menu[data-bs-popper] {
        top: 35% !important;
        left: 50% !important;
        margin-top: 0 !important;
    }
}

/* Animación optimizada para el menú fijo en móvil */
@keyframes androFadeInMobileFixed {
    from {
        opacity: 0;
        transform: translate(-50%, 20px); /* Viene desde un poco más abajo */
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}