/* =========================
   ESTILOS GENERALES
========================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
}

/* =========================
   ENCABEZADO
========================= */

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #020617;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #22c55e;
}

.boton-menu {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
}

/* =========================
   MENÚ LATERAL
========================= */

.menu-lateral {
    position: fixed;
    top: 0;
    right: -260px;
    width: 240px;
    height: 100%;
    background: #020617;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: 0.3s;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.menu-lateral a {
    color: white;
    text-decoration: none;
    margin-bottom: 15px;
}

/* Clase activa para mostrar menú */
.menu-activo {
    right: 0;
}

/* =========================
   HERO
========================= */

.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 26px;
}

.hero span {
    color: #22c55e;
}

.hero p {
    color: #94a3b8;
    margin-top: 10px;
}

/* Botón principal */
.boton-principal {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #22c55e;
    color: black;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   TARJETAS
========================= */

.tarjetas {
    padding: 20px;
}

.tarjeta {
    background: #020617;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.tarjeta h3 {
    color: #22c55e;
}

/* =========================
   MEJORAS MENÚ
========================= */

.menu-lateral {
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.menu-lateral a:hover {
    color: #22c55e;
}

/* =========================
   FORMULARIOS
========================= */

.contenedor-formulario {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.caja-formulario {
    width: 100%;
    max-width: 380px;
    background: #020617;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.caja-formulario h1 {
    color: #22c55e;
    text-align: center;
    margin-bottom: 10px;
}

.caja-formulario p {
    color: #94a3b8;
    text-align: center;
    margin-bottom: 25px;
}

.caja-formulario label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
}

.caja-formulario input {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: white;
    outline: none;
    box-sizing: border-box;
}

.caja-formulario input:focus {
    border: 1px solid #22c55e;
}

.enlace-secundario {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #22c55e;
    text-decoration: none;
}

/* =========================
   PANEL DE USUARIO
========================= */

.panel {
    padding: 25px 20px;
}

.bienvenida {
    text-align: center;
    margin-bottom: 25px;
}

.bienvenida h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.bienvenida span {
    color: #22c55e;
}

.bienvenida p {
    color: #94a3b8;
}

.resumen-panel {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.tarjeta-panel {
    background: #020617;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.tarjeta-panel h3 {
    color: #94a3b8;
    margin-bottom: 10px;
}

.tarjeta-panel strong {
    font-size: 26px;
    color: #22c55e;
}

.acciones-panel {
    display: grid;
    gap: 12px;
}

.boton-secundario {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid #22c55e;
    color: #22c55e;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.enlace-salir {
    color: #22c55e;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   BARRA INFERIOR TIPO APP
========================= */
/* =========================
   BARRA INFERIOR PRO
========================= */

.barra-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 62px;
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(34, 197, 94, 0.18);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    padding: 8px 0;
    z-index: 999;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.35);
}

.barra-inferior a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 50px;
    width: 100%;
}

.barra-inferior span {
    font-size: 11px;
    line-height: 1;
}

.barra-inferior a:hover {
    color: #22c55e;
    transform: translateY(-2px);
}

/* Espacio para que la barra no tape contenido */
body {
    padding-bottom: 90px;
}

/* =========================
   PANEL PRO
========================= */

.tarjeta-saldo {
    background: linear-gradient(135deg, #020617, #052e16);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.tarjeta-saldo p {
    color: #94a3b8;
    margin: 0 0 10px;
}

.tarjeta-saldo small {
    color: #94a3b8;
}

.estadisticas-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.tarjeta-mini {
    background: #020617;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tarjeta-mini span {
    font-size: 24px;
}

.tarjeta-mini p {
    color: #94a3b8;
    margin: 8px 0;
}

.tarjeta-mini strong {
    color: #22c55e;
    font-size: 24px;
}

/* =========================
   MEJORAS VISUALES PRO
========================= */

/* Animación suave */
* {
    transition: all 0.2s ease;
}

/* Botones más modernos */
.boton-principal {
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.boton-principal:hover {
    transform: translateY(-2px);
    background: #16a34a;
}

/* Tarjetas más elegantes */
.tarjeta,
.tarjeta-panel {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Inputs más pro */
input {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll más suave */
html {
    scroll-behavior: smooth;
}

/* Fondo con leve degradado */
body {
    background: linear-gradient(180deg, #020617, #0f172a);
}

/* =========================
   HOME PROFESIONAL
========================= */

.hero-pro {
    padding: 55px 20px 35px;
}

.etiqueta {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.grupo-botones {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.estadisticas-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px 25px;
}

.estadisticas-home article {
    background: #020617;
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 16px;
    padding: 16px 10px;
    text-align: center;
}

.estadisticas-home strong {
    display: block;
    color: #22c55e;
    font-size: 20px;
}

.estadisticas-home span {
    color: #94a3b8;
    font-size: 12px;
}

.seccion-home {
    padding: 25px 20px;
}

.seccion-home h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.texto-seccion {
    color: #94a3b8;
    line-height: 1.6;
}

.tarjeta-destacada {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, #020617, #052e16);
}

.faq {
    display: grid;
    gap: 14px;
}

.faq article {
    background: #020617;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq h3 {
    color: #22c55e;
    margin-top: 0;
}

.faq p {
    color: #94a3b8;
}

.footer {
    text-align: center;
    padding: 35px 20px 90px;
    background: #020617;
    margin-top: 25px;
}

.footer h3 {
    color: #22c55e;
}

.footer p {
    color: #94a3b8;
}

.footer a {
    color: #22c55e;
    text-decoration: none;
    margin: 0 8px;
    font-size: 14px;
}

/* =========================
   PANEL AVANZADO
========================= */

.resumen-avanzado {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.resumen-avanzado .tarjeta-mini {
    text-align: center;
    padding: 12px;
}

.resumen-avanzado p {
    font-size: 12px;
    color: #94a3b8;
}

.resumen-avanzado strong {
    font-size: 18px;
}

/* =========================
   ACTIVIDAD RECIENTE
========================= */

.actividad-reciente {
    margin: 25px 0;
}

.titulo-seccion-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.titulo-seccion-panel h2 {
    font-size: 20px;
    margin: 0;
}

.titulo-seccion-panel a {
    color: #22c55e;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.movimiento-reciente {
    background: #020617;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.movimiento-reciente h4 {
    margin: 0 0 5px;
    color: #22c55e;
}

.movimiento-reciente p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.movimiento-reciente strong {
    display: block;
    margin-top: 6px;
    color: white;
}

/* =========================
   MENSAJES DEL SISTEMA
========================= */

.mensaje-sistema {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
}

.mensaje-error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.mensaje-exito {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.mensaje-info {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* =========================
   LANDING COMERCIAL PRO
========================= */

.seccion-home {
    max-width: 1100px;
    margin: 0 auto;
}

.seccion-home h2 {
    text-align: center;
    color: white;
}

.tarjeta h3 {
    margin-top: 0;
}

.tarjeta p {
    color: #94a3b8;
    line-height: 1.6;
}

.hero-pro {
    max-width: 850px;
    margin: 0 auto;
}

.hero-pro h1 {
    font-size: 34px;
    line-height: 1.15;
}

.hero-pro p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.tarjeta-destacada {
    text-align: center;
    padding: 28px;
}

.tarjeta-destacada h2 {
    color: #22c55e;
}

@media (min-width: 768px) {
    .tarjetas {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .grupo-botones {
        display: flex;
        justify-content: center;
    }

    .boton-principal,
    .boton-secundario {
        min-width: 180px;
    }
}

@media (min-width: 1024px) {
    .tarjetas {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-pro h1 {
        font-size: 48px;
    }
}

/* =========================
   PROGRESO RETIRO
========================= */

.progreso-retiro {
    margin-bottom: 20px;
}

.barra-contenedor {
    width: 100%;
    height: 10px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
}

.barra-relleno {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.progreso-retiro p {
    margin-top: 6px;
    font-size: 13px;
    color: #94a3b8;
}

/* =========================
   ACCIONES RÁPIDAS
========================= */

.acciones-rapidas {
    margin-top: 20px;
}

.acciones-rapidas h2 {
    margin-bottom: 15px;
}

.grid-acciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.accion {
    background: #020617;
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.accion span {
    font-size: 24px;
}

.accion p {
    margin-top: 6px;
    font-size: 13px;
    color: #94a3b8;
}

.accion:hover {
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* =========================
   MISIÓN DEL DÍA
========================= */

.mision-dia {

    background:
        linear-gradient(135deg,
            #020617,
            #052e16);

    border:
        1px solid rgba(34, 197, 94, 0.25);

    border-radius: 18px;

    padding: 18px;

    margin-bottom: 20px;

    display: flex;
    flex-direction: column;

    gap: 16px;
}

.mision-superior {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;
}

.mision-footer {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

@media (max-width: 768px) {

    .mision-superior {

        flex-direction: column;

        align-items: flex-start;
    }

    .mision-estado {

        text-align: left;
    }

    .mision-footer button {

        width: 100%;
    }
}

.mision-dia h2 {
    margin: 0 0 5px;
}

.mision-dia p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.mision-estado {
    text-align: center;
}

.mision-estado strong {
    color: #22c55e;
    font-size: 24px;
}

.mision-estado span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.enlace-extra {
    margin-top: 15px;
    text-align: center;
}

.enlace-extra a {
    color: #00ff99;
    text-decoration: none;
    font-size: 14px;
}

.enlace-extra a:hover {
    text-decoration: underline;
}

/* =============================
   BARRA DE PROGRESO ANUNCIO
   ============================= */

.barra-progreso {
    width: 100%;
    height: 14px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
    margin: 15px 0;
}

.barra-progreso-interna {
    width: 0%;
    height: 100%;
    background: #4ade80;
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* =========================
   EFECTOS PREMIUM PANEL
========================= */

.movimiento-reciente {
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.movimiento-reciente:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.movimiento-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.movimiento-top strong {
    color: #22c55e;
    font-size: 16px;
}

.movimiento-reciente small {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

/* =========================
   BONUS DIARIO PREMIUM
========================= */
/* =========================
   COFRE GRATIS
========================= */

.cofre-diario {

    background:
        linear-gradient(135deg,
            #1e293b,
            #052e16);

    border:
        1px solid rgba(34, 197, 94, 0.25);

    border-radius: 18px;

    padding: 20px;

    margin-bottom: 18px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    overflow: hidden;

    position: relative;
}

.cofre-diario::before {

    content: "";

    position: absolute;

    top: -40%;

    left: -20%;

    width: 120px;

    height: 220%;

    background:
        rgba(255, 255, 255, 0.04);

    transform: rotate(18deg);
}

.cofre-diario h2 {

    margin: 0 0 6px;

    color: #4ade80;
}

.cofre-diario p {

    margin: 0;

    color: #94a3b8;

    font-size: 14px;

    max-width: 320px;
}

#btnCofre {

    min-width: 150px;
}

#btnCofre:disabled {

    opacity: 0.65;

    cursor: not-allowed;
}

@media (max-width: 768px) {

    .cofre-diario {

        flex-direction: column;

        align-items: flex-start;
    }

    #btnCofre {

        width: 100%;
    }
}

.bonus-diario {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg,
            #052e16,
            #020617);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.bonus-diario::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 120px;
    height: 220%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(20deg);
}

.bonus-diario h2 {
    color: #4ade80;
}

.bonus-diario .boton-principal {
    width: 100%;
}

/* =========================
   TARJETAS MÁS PREMIUM
========================= */

.tarjeta-mini,
.tarjeta-panel,
.tarjeta {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.tarjeta-mini:hover,
.tarjeta-panel:hover,
.tarjeta:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.18);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28);
}

/* =========================
   ANIMACIÓN DE RECOMPENSA
========================= */

.animacion-recompensa {
    animation: recompensaGlow 0.8s ease;
}

@keyframes recompensaGlow {

    0% {
        transform: scale(1);
        color: white;
    }

    40% {
        transform: scale(1.08);
        color: #4ade80;
        text-shadow:
            0 0 12px rgba(74, 222, 128, 0.7);
    }

    100% {
        transform: scale(1);
        color: #22c55e;
    }
}

/* =========================
   AJUSTES SECCIONES INTERNAS
========================= */

main,
.panel,
.seccion-home,
.contenedor-formulario {
    padding-bottom: 110px;
}

.barra-inferior {
    min-height: 58px;
}

.barra-inferior a {
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

@media (max-width: 768px) {
    .grid-acciones {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarjetas {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tarjeta,
    .tarjeta-panel,
    .tarjeta-mini {
        max-width: 100%;
    }

    input,
    select,
    textarea {
        width: 100%;
        box-sizing: border-box;
        margin-top: 6px;
        margin-bottom: 12px;
    }
}

/* =========================
   SISTEMA XP
========================= */

.barra-xp {
    width: 100%;
    height: 10px;
    background: #0f172a;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.barra-xp-relleno {
    width: 0%;
    height: 100%;
    background:
        linear-gradient(90deg,
            #4ade80,
            #22c55e);
    transition: width 0.4s ease;
}

#textoXP {
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

/* =========================
   ACTIVIDAD GLOBAL
========================= */

.actividad-global {
    margin-top: 25px;
}

.global-item {
    background: #020617;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;

    border:
        1px solid rgba(255, 255, 255, 0.05);

    animation:
        fadeGlobal 0.4s ease;
}

.global-item p {
    margin: 0;
    color: #e2e8f0;
}

.global-item small {
    color: #64748b;
    font-size: 12px;
}

@keyframes fadeGlobal {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* =========================
   ADMIN PRO
========================= */

.seccion-home .tarjeta label {
    display: block;
    margin-top: 12px;
    color: #94a3b8;
    font-weight: bold;
}

.seccion-home .tarjeta input,
.seccion-home .tarjeta textarea,
.seccion-home .tarjeta select {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

#listaAnunciosAdmin .tarjeta,
#listaUsuarios .tarjeta,
#listaRetiros .tarjeta {
    max-width: 680px;
    margin: 0 auto 18px;
}

.boton-peligro {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.boton-peligro:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* =========================
   HEADER ADMIN
========================= */

.encabezado-admin {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 30px;

    background: rgba(10, 15, 25, .95);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.admin-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #7cff6b;
}

.admin-info {
    display: flex;
    gap: 14px;
    align-items: center;
}

.admin-mini-stat {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);

    padding: 10px 18px;
    border-radius: 12px;

    text-align: center;
}

.admin-mini-stat span {
    display: block;
    font-size: .75rem;
    color: #94a3b8;
}

.admin-mini-stat strong {
    color: #7cff6b;
    font-size: 1rem;
}

/* =========================
   DASHBOARD ADMIN
========================= */

.resumen-avanzado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tarjeta-admin {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.tarjeta-admin:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.12);
}

.icono-admin {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.tarjeta-admin p {
    color: #94a3b8;
    margin-bottom: 8px;
}

.tarjeta-admin strong {
    font-size: 32px;
    color: #22c55e;
}

/* =========================
   TARJETAS ADMIN PRO
========================= */

#listaUsuarios,
#listaRetiros,
#listaAnunciosAdmin {
    display: grid;
    gap: 22px;
}

#listaUsuarios .tarjeta,
#listaRetiros .tarjeta,
#listaAnunciosAdmin .tarjeta {
    background: linear-gradient(145deg,
            rgba(15, 23, 42, 0.95),
            rgba(2, 6, 23, 0.96));

    border: 1px solid rgba(34, 197, 94, 0.12);

    border-radius: 24px;

    padding: 24px;

    transition: 0.3s;

    box-shadow:
        0 0 25px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#listaUsuarios .tarjeta:hover,
#listaRetiros .tarjeta:hover,
#listaAnunciosAdmin .tarjeta:hover {

    transform: translateY(-4px);

    border-color: rgba(34, 197, 94, 0.35);

    box-shadow:
        0 0 35px rgba(34, 197, 94, 0.08),
        0 0 15px rgba(0, 0, 0, 0.4);
}

#listaUsuarios h3,
#listaRetiros h3,
#listaAnunciosAdmin h3 {

    color: #22c55e;

    font-size: 22px;

    margin-bottom: 18px;
}

#listaUsuarios p,
#listaRetiros p,
#listaAnunciosAdmin p {

    color: #cbd5e1;

    margin-bottom: 10px;

    line-height: 1.5;
}

/* =========================
   BOTONES ADMIN
========================= */

#listaRetiros button,
#listaAnunciosAdmin button {

    min-width: 130px;

    margin-top: 14px;

    margin-right: 10px;
}

/* =========================
   SECCIONES
========================= */

.seccion-home {
    margin-bottom: 50px;
}

.seccion-home h2 {

    font-size: 32px;

    margin-bottom: 24px;

    color: white;
}

/* =========================
   BUSCADOR ADMIN
========================= */

.input-admin {

    width: 100%;

    padding: 14px 18px;

    border-radius: 14px;

    border: 1px solid rgba(34, 197, 94, 0.15);

    background: rgba(15, 23, 42, 0.95);

    color: white;

    margin-bottom: 24px;

    font-size: 15px;

    outline: none;

    transition: 0.3s;
}

.input-admin:focus {

    border-color: #22c55e;

    box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

/* =========================
   ACCIONES ADMIN
========================= */

.acciones-admin {

    margin-top: 18px;

    display: flex;

    gap: 12px;

    align-items: center;

    flex-wrap: wrap;
}

.input-admin-pequeno {

    background: rgba(15, 23, 42, 0.95);

    border: 1px solid rgba(34, 197, 94, 0.15);

    border-radius: 12px;

    padding: 10px 14px;

    color: white;

    width: 150px;

    outline: none;
}

/* ============================= */
/* DASHBOARD ADMIN */
/* ============================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(0, 255, 120, 0.15);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 120, 0.08);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: #39ff14;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.25);
}

.dashboard-icono {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(57, 255, 20, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dashboard-card p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 6px;
}

.dashboard-card strong {
    font-size: 28px;
    color: #39ff14;
}

/* =========================================
   RETIROS - DISEÑO PROFESIONAL
========================================= */

/* Contenedor principal del sistema de retiros */
.retiro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tarjetas generales de retiro */
.tarjeta-retiro {
    background: rgba(5, 10, 25, .95);
    border: 1px solid rgba(56, 239, 125, .08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 0 30px rgba(0, 255, 120, .06);
}

/* Saldo principal */
.saldo-box strong {
    display: block;
    margin: 15px 0;
    font-size: 32px;
    color: #38ef7d;
}

/* Texto secundario informativo */
.texto-secundario {
    color: #9aa4b2;
    margin-bottom: 22px;
}

/* Formulario completo */
.formulario-retiro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Inputs y select */
.formulario-retiro input,
.formulario-retiro select {
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 0 14px;
    background: #101a35;
    color: #fff;
    font-size: 15px;
}

/* Efecto al seleccionar input */
.formulario-retiro input:focus,
.formulario-retiro select:focus {
    border: 1px solid #38ef7d;
    box-shadow: 0 0 12px rgba(56, 239, 125, .2);
}

/* Responsive móvil */
@media(max-width:768px) {

    .retiro-layout {
        grid-template-columns: 1fr;
    }

}

/* Información secundaria retiro */
.info-retiro {
    color: #9aa4b2;
    font-size: 14px;
    margin-top: 8px;
}

/* =========================================
   OCULTAR MENÚ MÓVIL EN ESCRITORIO
========================================= */

@media(min-width:900px) {

    .menu-inferior {
        display: none;
    }

}

/* =========================================
   BARRA INFERIOR - SOLO MÓVIL
========================================= */

@media screen and (min-width: 900px) {

    .barra-inferior {
        display: none !important;
    }

}

/* =========================================
   PULIDO PREMIUM GLOBAL - CLICCASH
========================================= */

/* Suaviza movimientos generales */
* {
    scroll-behavior: smooth;
}

/* Transiciones generales para elementos visuales */
.tarjeta,
.tarjeta-retiro,
.anuncio-card,
.historial-card,
.accion-rapida,
.cofre-card,
.mision-card,
.boton-principal,
button {
    transition: all .25s ease;
}

/* Efecto premium en tarjetas */
.tarjeta:hover,
.tarjeta-retiro:hover,
.anuncio-card:hover,
.historial-card:hover,
.accion-rapida:hover,
.cofre-card:hover,
.mision-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 239, 125, .22);
    box-shadow: 0 0 28px rgba(56, 239, 125, .10);
}

/* Botones con sensación app */
.boton-principal,
button {
    cursor: pointer;
}

/* Efecto al pasar el mouse en botones */
.boton-principal:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(56, 239, 125, .35);
}

/* Efecto al presionar */
.boton-principal:active,
button:active {
    transform: scale(.97);
}

/* Títulos principales más fuertes */
h1 {
    letter-spacing: -.5px;
}

/* Texto secundario más elegante */
p {
    line-height: 1.5;
}

/* Inputs más profesionales */
input,
select,
textarea {
    transition: all .25s ease;
}

/* Glow al enfocar campos */
input:focus,
select:focus,
textarea:focus {
    border-color: #38ef7d !important;
    box-shadow: 0 0 14px rgba(56, 239, 125, .20);
}

/* =========================================
   PANEL PRINCIPAL - AJUSTE DESKTOP PREMIUM
========================================= */

/* Contenedor principal más ordenado en PC */
.panel {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 28px 120px;
    box-sizing: border-box;
}

/* Mejor distribución de estadísticas del panel */
.resumen-avanzado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

/* Tarjetas internas del panel más modernas */
.tarjeta-mini,
.tarjeta-panel {
    background: rgba(5, 10, 25, .92);
    border: 1px solid rgba(56, 239, 125, .08);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

/* Panel más compacto en escritorio */
@media screen and (min-width: 900px) {

    .bienvenida {
        margin-bottom: 35px;
    }

    .bienvenida h1 {
        font-size: 34px;
    }

    .resumen-avanzado .tarjeta-mini {
        min-height: 95px;
    }

}

/* Mantiene buen espacio en móvil */
@media screen and (max-width: 768px) {

    .panel {
        padding: 25px 16px 110px;
    }

}

/* =========================================
   PANEL DESKTOP - ANCHO MÁS PREMIUM
========================================= */

/* En computador el panel no debe estirarse demasiado */
@media screen and (min-width: 900px) {

    .panel {
        max-width: 1100px;
        padding-top: 45px;
    }

    .resumen-avanzado {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .mision-dia,
    .cofre-diario,
    .tarjeta-saldo,
    .actividad-reciente,
    .actividad-global,
    .acciones-rapidas {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

}

/* =========================================
   PÁGINAS INTERNAS - ANCHO PREMIUM DESKTOP
========================================= */

/* Evita que anuncios, historial, referidos y retiros se estiren demasiado en PC */
@media screen and (min-width: 900px) {

    .seccion-home,
    .actividad-reciente,
    .actividad-global,
    .acciones-rapidas,
    .retiro-layout,
    .faq,
    .tarjetas,
    .estadisticas-home {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Mejora tarjetas de historial y anuncios en escritorio */
    .tarjetas {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Acciones rápidas más ordenadas en PC */
    .grid-acciones {
        grid-template-columns: repeat(4, 1fr);
    }

}

/* =========================================
   LOADER GLOBAL PREMIUM
========================================= */

.loader-global {
    position: fixed;
    inset: 0;

    background: rgba(2, 6, 23, 0.92);

    backdrop-filter: blur(8px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transition: all .25s ease;
}

/* Mostrar loader */
.loader-activo {
    opacity: 1;
    visibility: visible;
}

/* Caja central */
.loader-box {
    text-align: center;
}

/* Spinner */
.loader-spinner {

    width: 70px;
    height: 70px;

    border-radius: 50%;

    border: 5px solid rgba(255, 255, 255, .08);

    border-top: 5px solid #38ef7d;

    animation: giroLoader .9s linear infinite;

    margin: 0 auto 20px;
}

/* Texto */
.loader-box p {

    color: #38ef7d;

    font-size: 15px;

    letter-spacing: .5px;
}

/* Animación */
@keyframes giroLoader {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

/* =========================================
   BOTONES PREMIUM - ESTADOS
========================================= */

/* Botón cargando */
.boton-cargando {

    opacity: .7;

    pointer-events: none;

    position: relative;
}

/* Spinner pequeño */
.boton-cargando::after {

    content: "";

    width: 16px;
    height: 16px;

    border-radius: 50%;

    border: 2px solid rgba(255, 255, 255, .3);

    border-top: 2px solid white;

    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    animation: giroBoton .7s linear infinite;
}

/* Éxito */
.boton-exito {

    background: #22c55e !important;

    color: white !important;

    box-shadow:
        0 0 18px rgba(34, 197, 94, .45);
}

/* Error */
.boton-error {

    background: #ef4444 !important;

    color: white !important;

    box-shadow:
        0 0 18px rgba(239, 68, 68, .35);
}

/* Animación spinner */
@keyframes giroBoton {

    from {
        transform:
            translateY(-50%) rotate(0deg);
    }

    to {
        transform:
            translateY(-50%) rotate(360deg);
    }

}

.detalle-mision {
    margin-top: 10px;
    color: #b9c4d6;
    font-size: 0.9rem;
    line-height: 1.4;
}

.lista-misiones {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-mision {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
}

.item-mision span {
    font-size: 1.2rem;
}

.item-mision p {
    margin: 0;
    color: #dfe7f5;
    font-size: 0.95rem;
}

.mision-completa {
    border-color: rgba(0, 255, 140, 0.25);
    background: rgba(0, 255, 140, 0.08);
}

/* =========================
   MISIÓN DEL DÍA - CHECKLIST PRO
========================= */

.mision-dia {
    flex-wrap: wrap;
}

.detalle-mision,
.lista-misiones {
    width: 100%;
}

.lista-misiones {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.item-mision {
    width: 100%;
    box-sizing: border-box;
}

@media screen and (min-width: 900px) {
    .lista-misiones {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cofre-diario::before,
.bonus-diario::before {
    pointer-events: none;
}

button,
.boton-principal {
    position: relative;
    z-index: 2;
}

.mision-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media screen and (min-width: 900px) {
    .mision-footer {
        grid-template-columns: 1fr;
    }

    #btnReclamarMision {
        width: 100%;
        margin-top: 0;
    }
}

/* =========================
   MISIÓN BLOQUEADA / COMPLETA
========================= */

#btnReclamarMision:disabled {

    opacity: 0.5;

    cursor: not-allowed;

    background: #334155 !important;

    color: #94a3b8 !important;

    box-shadow: none !important;

    transform: none !important;
}

/* Misión completada */

.item-mision.completa {

    border-color: rgba(34, 197, 94, 0.35);

    background: rgba(34, 197, 94, 0.10);
}

.item-mision.completa p {

    color: #4ade80;
}

/* Animación suave */

.item-mision {

    transition:
        all 0.25s ease;
}

/* =============================
BOTÓN CPA
============================= */
.contenedor-cpa {
    margin: 20px 0;
    text-align: center;
}

.boton-cpa {
    display: inline-block;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #000;
    font-weight: bold;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.boton-cpa:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.7);
}

/* =========================
   BARRA INFERIOR 5 BOTONES
========================= */

.barra-inferior {

    grid-template-columns: repeat(5, 1fr);

    gap: 2px;
}

.barra-inferior a {

    font-size: 11px;
}

.menu-ganancias {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 25px auto;
    max-width: 850px;
}

.opcion-ganancia {
    background: rgba(2, 6, 23, 0.92);
    border: 1px solid rgba(34, 197, 94, 0.16);
    border-radius: 16px;
    padding: 16px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.opcion-ganancia span {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: normal;
}

.opcion-ganancia.activa {
    border-color: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.16);
}

@media (min-width: 768px) {
    .menu-ganancias {
        grid-template-columns: repeat(2, 1fr);
    }
}