/* ================== GLOBAL ================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #120000;
    color: #ffd84d;
}

.dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ================== HEADER ================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #1a0000;
    border-bottom: 2px solid #3cff6a;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-center {
    flex-grow: 1;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.balance span {
    font-size: 24px;
    font-weight: 700;
    color: #ffd84d;
    text-shadow: 0 0 5px #ffd84d;
}




/* BANNER POPUP*/

/* Overlay */
.banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Caja banner DESKTOP */
.banner-box {
  position: relative;
  width: 35%;
  max-width: 420px;
  animation: fadeIn 0.4s ease;
}

/* Imagen */
.banner-box img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Botón cerrar */
.close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  background: red;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

/* MOBILE */
@media (max-width: 768px) {
  .banner-box {
    width: 85%;
    max-width: none;
  }

  .close-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
}

/* Animación */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}









/* Overlay fondo oscuro */
.banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Caja del banner */
.banner-box {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: fadeIn 0.4s ease;
}

/* Imagen responsive */
.banner-box img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Botón cerrar */
.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: red;
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 35px;
  height: 35px;
}

/* Animación */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}



/* =========================
   WELCOME USUARIO
========================= */
.header-left .welcome {
    font-size: 18px;            /* tamaño legible */
    font-weight: 700;           /* negrita */
    color: #3cff6a;             /* verde brillante */
    text-shadow: 0 0 8px #3cff6a, 0 0 12px rgba(60,255,106,0.4); /* glow sutil */
    margin-bottom: 4px;         /* espacio debajo del welcome */
}




.referral-container p {
    margin: 0;
    font-size: 12px;
}

.copy-button {
    background-color: transparent;
    color: #ffd84d;
    border: 1px solid #3cff6a;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.copy-button:hover {
    box-shadow: 0 0 10px #3cff6a;
}

/* ================== MAIN CONTENT ================== */
.content {
    flex-grow: 1;
    margin-top: 60px; /* dejar espacio para header */
    margin-bottom: 60px; /* dejar espacio para navbar */
    overflow-y: auto;
    padding: 10px;
}

.main-space {
    min-height: 300px; /* espacio libre para tus juegos */
}

/* ================== CARDS ================== */
.card {
    background-color: #1a0000;
    border: 2px solid #3cff6a;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(60,255,106,0.4);
}

.card h3 {
    color: #ffd84d;
    margin: 0 0 8px 0;
}

.card p {
    color: #ffd84d;
    font-size: 14px;
}

/* ================== INPUTS ================== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 6px 10px;
    margin: 6px 0 10px 0;
    border: 2px solid #3cff6a;
    border-radius: 8px;
    background-color: #120000;
    color: #ffd84d;
    font-size: 14px;
}

input::placeholder {
    color: rgb(255, 255, 255);
}

/* ================== BOTONES ================== */
button {
    cursor: pointer;
    border: 2px solid #3cff6a;
    background-color: #120000;
    color: #ffd84d;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

button:hover {
    box-shadow: 0 0 15px #3cff6a;
    background-color: #1a0000;
}

/* ================== MODAL ================== */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: transparent;   /* ✅ sin fondo */
    backdrop-filter: none;     /* ✅ sin blur */
    pointer-events: none;      /* ✅ no bloquea */
}
.modal-content,
.card.recharge {
    pointer-events: auto;
}


.modal-content {
    background-color: #1a0000;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #3cff6a;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 15px #3cff6a;
}

.close {
    color: #ffd84d;
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #3cff6a;
}

/* ================== MESSAGES ================== */
.msg, .message, #result-message {
    font-size: 12px;
    margin-top: 6px;
}

/* ================== NAVBAR INFERIOR ================== */
.bottom-navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #1a0000;
    border-top: 2px solid #3cff6a;
    box-shadow: 0 0 10px rgba(60,255,106,0.5);
    z-index: 100;
}

.bottom-navbar .nav-btn {
    background-color: #120000;
    border: 2px solid #3cff6a;
    color: #ffd84d;
    font-weight: 700;
    border-radius: 12px;
    padding: 8px 12px;
    flex-grow: 1;
    margin: 0 4px;
    transition: all 0.25s ease;
}

.bottom-navbar .nav-btn:hover {
    box-shadow: 0 0 12px #3cff6a;
    background-color: #1a0000;
}

/* ================== RESPONSIVE MOBILE ================== */
@media (max-width: 480px) {
    .header-left, .header-center, .header-right {
        flex-direction: column;
        align-items: center;
    }

    .header-left, .header-right {
        gap: 4px;
    }

    .balance span {
        font-size: 20px;
    }

    .card {
        padding: 8px;
    }

    .bottom-navbar .nav-btn {
        padding: 10px 0;
        font-size: 14px;
    }
}






.main-space .games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;

    overflow-y: scroll; /* scroll vertical funcional */
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none;     /* Firefox */
}

/* Chrome, Edge, Safari */
.main-space .games::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}


/* =========================
   TARJETA DE JUEGO
========================= */
.main-space .game-card {
  position: relative;
  height: 220px; /* más grande que antes */
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Oscurecer imagen */
.main-space .game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Texto sobre la tarjeta */
.main-space .game-card span {
  position: relative;
  z-index: 2;
  font-size: 1.6rem; /* más grande */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 10px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
  color: #fff;
  transition: color 0.3s ease;
}

/* Hover: efecto glow */
.main-space .game-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 18px 40px rgba(255, 215, 0, 0.3);
}

.main-space .game-card:hover span {
  color: #FFD700;
}

/* =========================
   FONDOS POR JUEGO
========================= */
.main-space .slot1 { background: url("/static/img/slot1.jpeg") center / cover no-repeat; }
.main-space .slot2 { background: url("/static/img/slot2.jpg") center / cover no-repeat; }
.main-space .slot3 { background: url("/static/img/slot3.jpg") center / cover no-repeat; }
.main-space .slot4 { background: url("/static/img/slot4.jpg") center / cover no-repeat; }
.main-space .slot5 { background: url("/static/img/slot5.jpg") center / cover no-repeat; }
.main-space .slot6 { background: url("/static/img/slot6.jpg") center / cover no-repeat; }
.main-space .slot7 { background: url("/static/img/slot7.jpg") center / cover no-repeat; }
.main-space .slot8 { background: url("/static/img/slot8.jpg") center / cover no-repeat; }
.main-space .slot9 { background: url("/static/img/slot9.jpg") center / cover no-repeat; }
.main-space .slot10 { background: url("/static/img/slot10.jpg") center / cover no-repeat; }
.main-space .slot11 { background: url("/static/img/slot11.jpg") center / cover no-repeat; }
.main-space .slot12 { background: url("/static/img/slot12.jpeg") center / cover no-repeat; }
.main-space .slot13 { background: url("/static/img/slot13.png") center / cover no-repeat; }
.main-space .slot14 { background: url("/static/img/slot14.png") center / cover no-repeat; }
.main-space .slot15 { background: url("/static/img/slot15.png") center / cover no-repeat; }
.main-space .slot16 { background: url("/static/img/slot16.jpg") center / cover no-repeat; }
.main-space .slot17 { background: url("/static/img/slot17.jpg") center / cover no-repeat; }
.main-space .slot18 { background: url("/static/img/slot18.jpg") center / cover no-repeat; }
.main-space .slot19 { background: url("/static/img/slot19.jpg") center / cover no-repeat; }
.main-space .slot20 { background: url("/static/img/slot20.jpg") center / cover no-repeat; }









/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 900px) {
  .main-space .games {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .main-space .games {
    grid-template-columns: 1fr; /* uno debajo del otro */
  }

  .main-space .game-card {
    height: 180px; /* se hace un poco más chico en móvil */
  }

  .main-space .game-card span {
    font-size: 1.3rem;
  }
}





/* ESTADO DE SOLICITUDES*/

#pendingRequests {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}

#pendingRequests .request {
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    color: #fff;
}

#pendingRequests .deposit {
    background-color: #f0ad4e; /* naranja para pendiente */
}

#pendingRequests .withdrawal {
    background-color: #5bc0de; /* azul para pendiente */
}




/* -------------------------
   MODAL DE RECARGA
-------------------------- */
.card.recharge {
    position: fixed;           /* Fijada en pantalla */
    top: 50%;                  /* Centrado vertical */
    left: 50%;                 /* Centrado horizontal */
    transform: translate(-50%, -50%); /* Ajuste perfecto al centro */
    z-index: 9999;             /* Encima de todo */
    width: 90%;
    max-width: 360px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    display: none;             /* Se muestra solo al abrir */
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* -------------------------
   CONTENEDOR DE CARDS
-------------------------- */
.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar horizontal */
    justify-content: flex-start;
    gap: 15px; /* Espacio entre cards */
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    margin-bottom: 200px;

    background: transparent; /* <--- quitar fondo negro */
}


/* -------------------------
   CARD BASE
-------------------------- */


.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #1a1a1a32;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 360px; /* Más compacto */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
    color: #fff;
    position: relative;
    gap: 12px;
}

/* Cerrar card */
.card .close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #ff5555;
    transition: transform 0.2s;
}
.card .close:hover {
    transform: rotate(90deg);
}



/* -------------------------
   TÍTULOS
-------------------------- */
.card h3 {
    margin: 0;
    font-size: 1.35rem;
    text-align: center;
    color: #ffd700;
}

.card h4 {
    margin-bottom: 5px;
    color: #00ffff;
    font-size: 1rem;
}

/* -------------------------
   FORMULARIOS
-------------------------- */
.card form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.card form label {
    font-size: 0.85rem;
    color: #aaa;
}

.card form input[type="number"],
.card form input[type="text"],
.card form input[type="file"] {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #111;
    color: #fff;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: 0.2s;
}

.card form input[type="number"]:focus,
.card form input[type="text"]:focus,
.card form input[type="file"]:focus {
    border-color: #ffd700;
    outline: none;
}

/* -------------------------
   BOTONES
-------------------------- */
.card form button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #ffd700;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
}
.card form button:hover {
    background: #ffc107;
}

/* -------------------------
   MENSAJES
-------------------------- */
/* ======================================================
   MENSAJES FLOTANTES
====================================================== */

/* Mensaje global superior */
#msg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Mensaje por tipo */
#msg.success { background-color: rgba(46, 204, 113, 0.95); color: white; }
#msg.error   { background-color: rgba(231, 76, 60, 0.95); color: white; }
#msg.info    { background-color: rgba(52, 152, 219, 0.95); color: white; }

/* Mostrar mensaje */
#msg.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ----------------------------- */
/* Mensajes dentro de cards */
.msg {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Tipos de mensajes */
.msg.success { background-color: #2ecc71; color: white; }
.msg.error   { background-color: #e74c3c; color: white; }
.msg.info    { background-color: #3498db; color: white; }

/* Mostrar */
.msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animación inicial */
.msg {
    transform: translateY(-20px);
}

/* ----------------------------- */
/* Ajuste responsive */
@media (max-width: 768px) {
    #msg {
        font-size: 14px;
        padding: 10px 16px;
    }
    .msg {
        font-size: 13px;
        padding: 6px 10px;
    }
}


/* -------------------------
   LISTADOS DE SOLICITUDES
-------------------------- */
.card ul {
    list-style: none;
    padding-left: 0;
    width: 100%;
}

.card ul li {
    background: #222;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    color: #fff;
}

/* -------------------------
   TEXTO DE ALIAS Y CBU
-------------------------- */
.card .alias, 
.card .cbu {
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    color: #ccc;
}

/* -------------------------
   RESPONSIVE
-------------------------- */
@media screen and (max-width: 500px) {
    .card {
        width: 95%;
        padding: 15px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card form button {
        font-size: 0.9rem;
    }
}



.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #25D366; /* verde WhatsApp */
    color: white;
    font-size: 18px;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
}

.telegram-float {
    position: fixed;
    bottom: 140px; /* separa del botón de WhatsApp si los tenés juntos */
    right: 20px;
    background-color: #0088cc; /* azul Telegram */
    color: white;
    font-size: 18px;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.telegram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
}


