.age-gate-overlay{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.95);
    backdrop-filter:blur(6px);
    z-index:99999;
    padding:20px;
}
.age-gate-overlay.hidden{display:none;}
.age-gate-card{
    width:100%;
    max-width:420px;
    background:linear-gradient(160deg,#1a1a1a,#2d2d2d);
    border:2px solid rgba(255,215,0,0.5);
    border-radius:20px;
    box-shadow:0 25px 60px rgba(0,0,0,0.8), 0 0 30px rgba(255,215,0,0.2);
    padding:28px 32px;
    text-align:center;
    color:#f8fbff;
}
.age-gate-card h2{margin:0 0 12px; font-size:22px; letter-spacing:.4px;}
.age-gate-card p{margin:0 0 22px; color:rgba(220,225,255,0.85); font-size:15px;}
.age-gate-actions{display:flex; gap:12px; flex-wrap:wrap; justify-content:center;}
.age-gate-btn{
    min-width:140px;
    padding:12px 20px;
    border-radius:999px;
    border:none;
    font-weight:700;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease;
}
.age-gate-btn.primary{
    background:linear-gradient(135deg,#ffdd67,#f4b30a);
    color:#1a1200;
    box-shadow:0 12px 24px rgba(244,179,10,0.35);
}
.age-gate-btn.secondary{
    background:rgba(255,255,255,0.15);
    color:#f5f7ff;
    border:1px solid rgba(255,255,255,0.25);
}
.age-gate-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 32px rgba(0,0,0,0.35);
}
body.age-gate-active{overflow:hidden;}
/* Pantalla naranja: solicitud de carga pendiente (siempre encima de modales y ventanas) */
.pending-request-overlay{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(200,100,0,0.95);
    backdrop-filter:blur(8px);
    z-index:2147483646;
    padding:20px;
    pointer-events:auto;
}
.pending-request-overlay.hidden{display:none !important;}
.pending-request-card{
    width:100%;
    max-width:440px;
    background:linear-gradient(160deg,#2d1f0a,#4a3512);
    border:2px solid rgba(255,165,0,0.8);
    border-radius:20px;
    box-shadow:0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255,140,0,0.25);
    padding:28px 32px;
    text-align:center;
    color:#fff8e7;
}
.pending-request-card h2{margin:0 0 16px; font-size:22px; letter-spacing:.4px; color:#fff;}
.pending-request-card p{margin:0 0 24px; color:rgba(255,248,231,0.95); font-size:16px; line-height:1.5;}
.pending-request-actions{display:flex; justify-content:center;}
.pending-request-btn{
    min-width:160px;
    padding:14px 24px;
    border-radius:999px;
    border:none;
    background:linear-gradient(135deg,#ffb347,#ff8c00);
    color:#1a1200;
    font-weight:700;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease;
    box-shadow:0 8px 20px rgba(255,140,0,0.4);
}
.pending-request-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(255,140,0,0.5);
}
html{max-width:100vw; overflow-x:hidden; box-sizing:border-box;}
body{max-width:100vw; overflow-x:hidden; box-sizing:border-box;}
.sticky-cta {
    position: fixed;
    bottom: 200px;
    right: 20px;
    left: auto;
    z-index: 2400;
}

.sticky-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sticky-cta-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding-top: 18px;
}

.sticky-cta-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.7);
    background: rgba(12, 14, 28, 0.95);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-cta-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.sticky-cta-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #ffeb8a 0%, #f4c10a 35%, #ffdf59 55%, #ffd024 100%);
    color: #2b1a00;
    border: none;
    border-radius: 999px;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(242, 200, 34, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sticky-cta-btn.secondary {
    background: linear-gradient(135deg, #ffe080 0%, #f9b815 40%, #fede5d 65%, #ffc933 100%);
}

.sticky-cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 32px rgba(242, 200, 34, 0.6);
}

.gold-glow {
    position: relative;
    overflow: hidden;
}

.gold-glow::before {
    content: '';
    position: absolute;
    top: -120%;
    left: -120%;
    width: 240%;
    height: 240%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(25deg);
    animation: goldPulse 3s infinite;
    pointer-events: none;
}

.sticky-cta-icon {
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.sticky-cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sticky-cta-text strong {
    font-size: 20px;
    line-height: 1.2;
}

.sticky-cta-text small {
    font-size: 13px;
    font-weight: 500;
    color: rgba(43, 26, 0, 0.85);
}

.support-action {
    width: 100%;
    display: flex;
    justify-content: center;
}

.request-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #2ecc71, #1abc9c);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(46, 204, 113, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(39, 174, 96, 0.55);
}

.request-user-icon {
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.request-user-icon svg{
    width:22px;
    height:22px;
}

@keyframes goldPulse {
    0% {
        transform: translate(-30%, -30%) rotate(25deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(10%, 10%) rotate(25deg);
        opacity: 0.2;
    }
    100% {
        transform: translate(-30%, -30%) rotate(25deg);
        opacity: 0.8;
    }
}
:root{
  --bg:#000000;
  --panel:#1a1a1a;
  --gold:#ffd700;
  --gold2:#ffae00;
  --gray:#e0e0e0;
  --dark-gray:#2b2b2b;
  --mid-gray:#3a3a3a;
  --nav-text:#e8e8f3;
  --nav-active:rgba(255,255,255,.1);
  --cobro1:#e74c3c;
  --cobro2:#f1c40f;
  --cobro3:#1e8e3e;
  --premio1:#e74c3c;
  --premio2:#f39c12;
  --premio3:#2ecc71;
  --pago:#9b59b6;
  --danger:#c0392b;
  --danger-hover:#e74c3c;
  --success:#27ae60;
  --success-light:#2ecc71;
  --warning:#f39c12;
  --info:#3498db;
}

*{box-sizing:border-box}
body{font-family:Arial, sans-serif; background:#000000; color:#fff; margin:0; text-align:center; overflow-x:hidden; max-width:100vw; box-sizing:border-box;}
button,input,select,textarea{border:none; cursor:pointer; border-radius:12px; transition:all .25s ease;}
button:hover{transform:translateY(-2px);}
.container{margin:20px auto; width:90%; max-width:1200px;}
.hidden{display:none;}
.form-hint{font-size:12px; color:var(--gold); margin-top:-4px;}

/* Mensaje de recordatorio de plataforma - más grande y llamativo */
#whatsappReminder {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--gold) !important;
    text-align: center !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 174, 0, 0.15)) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
    display: block !important;
    letter-spacing: 0.5px !important;
    line-height: 1.5 !important;
    animation: pulse 2s ease-in-out infinite !important;
}

/* Título dorado con efecto de brillo */
.golden-title-glow {
    color: var(--gold);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: goldShine 3s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes goldShine {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4),
            0 0 40px rgba(255, 215, 0, 0.2),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        filter: brightness(1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6),
            0 0 50px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        filter: brightness(1.3);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
        transform: scale(1.02);
    }
}

.error-text{font-size:12px; color:#ff6b6b; margin-top:4px; display:block;}
.input-error{outline:2px solid #ff6b6b;}
textarea{resize:vertical}

/* HEADER */
.header{
  background:#1a1a1a;
  border-bottom:2px solid rgba(255,215,0,0.3);
  display:flex; align-items:center; gap:16px;
  padding:12px 14px;
  box-shadow:0 4px 15px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.1);
}
.header .left{display:flex; align-items:center; gap:10px; min-width:64px;}
.logo{
  width:140px; 
  height:90px; 
  object-fit:cover; 
  border-radius:10px;
  background:linear-gradient(45deg, #1a1a1a, #2d2d2d);
  border:2px solid rgba(255,215,0,0.3);
  box-shadow:0 10px 30px rgba(0,0,0,0.8), 0 0 30px rgba(255,215,0,0.15);
  transition:all 0.3s ease;
}
.logo:hover{
  border-color:rgba(255,215,0,0.5);
  box-shadow:0 10px 30px rgba(0,0,0,0.8), 0 0 40px rgba(255,215,0,0.25);
}

.header .center{flex:1; display:flex; justify-content:center; align-items:center; padding-top:0; align-self:center;}
.header .right{display:flex; flex-direction:column; align-items:flex-end; gap:8px; min-width:170px;}

/* Botones dorados */
.gold-btn{
  padding:6px 10px; width:170px; border-radius:10px; font-weight:800; letter-spacing:.2px;
  background:linear-gradient(90deg,var(--gold2),var(--gold)); color:#121212; box-shadow:0 0 14px rgba(255,215,0,.35);
  font-size:14px;
}
.gold-btn:hover{box-shadow:0 0 20px rgba(255,215,0,.55);}

/* NAV */
.nav{display:flex; align-items:center; gap:6px; flex-wrap:wrap;}
.nav a{
  display:inline-block; color:var(--nav-text); text-decoration:none; font-weight:700;
  letter-spacing:.2px; padding:10px 12px; font-size:13px; border-radius:6px; opacity:.95;
}
.nav a:hover{opacity:1; background:var(--nav-active);}
.nav a.active{background:var(--nav-active); color:#fff;}

/* Carrusel */
.carousel-container{position:relative; display:flex; justify-content:center; align-items:center; flex-direction:column; width:100%; padding:18px 0 8px;}
.carousel-container #carouselImage{
  max-width:1100px; 
  height:auto; 
  max-height:500px; 
  width:auto;
  border-radius:15px; 
  object-fit:contain; 
  background:linear-gradient(45deg, #1a1a1a, #2d2d2d);
  border:2px solid rgba(255,215,0,0.3);
  box-shadow:0 10px 30px rgba(0,0,0,0.8), 0 0 30px rgba(255,215,0,0.15);
  display:block;
  margin:0 auto;
}
.carousel{
  width:100%; max-width:1100px; height:auto; max-height:500px; border-radius:15px; background:linear-gradient(45deg, #1a1a1a, #2d2d2d);
  border:2px solid rgba(255,215,0,0.3);
  box-shadow:0 10px 30px rgba(0,0,0,0.8), 0 0 30px rgba(255,215,0,0.15);
  display:flex; align-items:center; justify-content:center; font-size:48px; color:var(--gold);
  margin-bottom:20px;
}
.thumbnail-container{display:flex; justify-content:center; gap:10px; margin-top:10px; flex-wrap:wrap;}
.thumbnail{width:56px; height:36px; border-radius:8px; background:linear-gradient(45deg, #1a1a1a, #2d2d2d); border:2px solid rgba(255,215,0,0.2); display:flex; align-items:center; justify-content:center; color:white; font-size:12px; cursor:pointer; transition:all 0.3s ease; box-shadow:0 2px 10px rgba(0,0,0,0.5);}
.thumbnail:hover{border-color:var(--gold); transform:scale(1.1); box-shadow:0 0 15px rgba(255,215,0,0.6);}
.thumbnail.active{border-color:var(--gold); box-shadow:0 0 15px rgba(255,215,0,0.8), 0 0 25px rgba(255,215,0,0.4);}

/* Juegos */
.games{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:15px;
  justify-items:stretch;
  align-items:stretch;
}
@media (max-width:1200px){ .games{ grid-template-columns: repeat(4, 1fr); } }
@media (max-width:900px){  .games{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width:600px){  .games{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:380px){  .games{ grid-template-columns: 1fr; } }

.game{background:#1a1a1a; padding:10px; border-radius:15px; box-shadow:5px 5px 15px rgba(0,0,0,0.8), 0 0 20px rgba(255,215,0,0.1); border:1px solid rgba(255,215,0,0.2); transition:transform .4s, opacity .8s, box-shadow .4s; opacity:0;}
.game.show{opacity:1;}
.game:hover{transform:scale(1.04); box-shadow:5px 5px 25px rgba(255,215,0,.8), 0 0 30px rgba(255,215,0,.4); border-color:rgba(255,215,0,0.5);}
.game-img-wrap{
  width:100%;
  aspect-ratio: 1 / 1;
  background:linear-gradient(45deg, #1a1a1a, #2d2d2d);
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  font-size:32px;
  color:var(--gold);
  border:1px solid rgba(255,215,0,0.2);
}
.game-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Panel admin */
#adminPanel{margin:0; width:100%; max-width:100vw; background:#1a1a1a; padding:20px; border-radius:0; box-shadow:0 0 15px rgba(255,215,0,.2), 0 0 30px rgba(0,0,0,.5); border:none; text-align:left; overflow-x: hidden; overflow-y: visible; box-sizing: border-box; position: relative;}
#adminPanel h2{margin:0 0 8px;}
#roleBadge{display:inline-block; margin-left:8px; font-size:12px; padding:4px 8px; border-radius:10px; background:rgba(255,255,255,.15);}
#adminPanel label{display:block; margin:10px 0 6px;}
.filters-row{display:flex; gap:10px; align-items:end; flex-wrap:wrap;}
.filters-row .field{display:flex; flex-direction:column; gap:6px;}
.filters-row select, .filters-row input[type="date"], .filters-row input[type="time"], .filters-row button, .filters-row input[type="search"]{padding:8px 10px; border-radius:8px;}
.history-counters{
  display:grid;
  gap:14px;
  margin:16px 0 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.turn-history-admin-controls{
  margin:18px 0;
  padding:18px 20px;
  border-radius:14px;
  background:rgba(26,26,26,0.8);
  border:1px solid rgba(255,215,0,0.3);
  color:#e3e7ff;
  backdrop-filter:blur(4px);
  transition:border-color .2s ease, box-shadow .2s ease;
  box-shadow:0 0 15px rgba(255,215,0,0.1);
}
.turn-history-admin-controls.hidden{display:none;}
.turn-history-admin-controls h3{
  margin:0 0 8px;
  font-size:18px;
  font-weight:700;
  color:#ffffff;
  display:flex;
  align-items:center;
  gap:8px;
}
.turn-history-admin-controls p{
  margin:0 0 14px;
  font-size:13px;
  color:rgba(210,215,255,0.75);
}
.turn-history-checkboxes{
  display:grid;
  gap:10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.turn-history-option{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(26,26,26,0.6);
  border:1px solid rgba(255,215,0,0.2);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.turn-history-option.cleared{
  border-color:rgba(126,240,255,0.4);
  background:rgba(30,58,138,0.58);
}
.turn-history-option.cleared .turn-history-name{
  color:#7ef0ff;
}
.turn-history-option:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,0.2);
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
}
.turn-history-option input{
  margin-top:4px;
  width:18px;
  height:18px;
  accent-color:#4ecdc4;
}
.turn-history-option-details{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.turn-history-name{
  font-weight:700;
  letter-spacing:.3px;
  color:#ffffff;
}
.turn-history-status{
  font-size:12px;
  color:rgba(200,210,255,0.78);
}
.turn-history-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.turn-history-actions button{
  border:none;
  border-radius:12px;
  padding:10px 18px;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.turn-history-actions .danger-btn{
  background:linear-gradient(135deg,#ff6b6b,#d64545);
  color:#fff;
  box-shadow:0 12px 25px rgba(255,107,107,0.25);
}
.turn-history-actions .secondary-btn{
  background:rgba(255,255,255,0.16);
  color:#fff;
  border:1px solid rgba(255,255,255,0.18);
}
.turn-history-actions button:disabled{
  opacity:0.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.turn-history-actions .danger-btn:hover:not(:disabled){
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(255,107,107,0.35);
}
.turn-history-actions .secondary-btn:hover:not(:disabled){
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(255,255,255,0.18);
}
.turn-history-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:21000;
  padding:20px;
}
.turn-history-modal{
  width:100%;
  max-width:420px;
  background:linear-gradient(160deg,#1a1a1a,#2d2d2d);
  border-radius:16px;
  border:2px solid rgba(255,215,0,0.4);
  box-shadow:0 18px 45px rgba(0,0,0,0.8), 0 0 30px rgba(255,215,0,0.2);
  color:#fff;
  padding:22px 24px;
  animation:modalSlideIn .25s ease;
}
.turn-history-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.turn-history-modal-header h3{
  margin:0;
  font-size:18px;
  font-weight:700;
}
.turn-history-modal-close{
  background:rgba(255,255,255,0.18);
  color:#fff;
  border:none;
  width:32px;
  height:32px;
  border-radius:50%;
  font-size:18px;
  cursor:pointer;
  transition:background .2s ease;
}
.turn-history-modal-close:hover{
  background:rgba(255,255,255,0.3);
}
.turn-history-modal-body{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:18px;
  font-size:14px;
}
.turn-history-modal-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.turn-history-modal-field label{
  font-weight:600;
  font-size:13px;
  color:#f0f3ff;
}
.turn-history-modal-field input{
  padding:10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(10,16,40,0.7);
  color:#fff;
}
.turn-history-modal-body small{
  font-size:12px;
  color:rgba(210,215,255,0.75);
}
.turn-history-modal-footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.turn-history-modal-footer .primary-btn,
.turn-history-modal-footer .secondary-btn{
  padding:10px 18px;
  border-radius:10px;
  font-weight:600;
  border:none;
  cursor:pointer;
}
.turn-history-modal-footer .primary-btn{
  background:linear-gradient(135deg,#40bda0,#2f6cd3);
  color:#fff;
}
.turn-history-modal-footer .secondary-btn{
  background:rgba(255,255,255,0.18);
  color:#fff;
}
.modern-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.9);
  backdrop-filter:blur(8px);
  z-index:11000;
  padding:20px;
}
.modern-modal.hidden{display:none;}
.modern-modal-content{
  width:100%;
  max-width:400px;
  background:rgba(26,26,26,0.95);
  border-radius:16px;
  border:2px solid rgba(255,215,0,0.4);
  box-shadow:0 18px 45px rgba(0,0,0,0.8), 0 0 30px rgba(255,215,0,0.2);
  color:#fff;
  animation:modalSlideIn .25s ease;
}
.modern-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 20px 10px;
}
.modern-modal-header h3{margin:0; font-size:18px; letter-spacing:.3px;}
.modern-modal-close{
  background:rgba(255,255,255,0.15);
  width:32px; height:32px; border-radius:50%; color:#fff; font-size:18px; display:flex; align-items:center; justify-content:center;
}
.modern-modal-body{padding:0 20px 16px;}
.modern-modal-footer{
  padding:14px 20px 20px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}
.modal-field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px;}
.modal-field input{padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.12); background:rgba(10,16,40,0.6); color:#fff;}
.time-fields{display:flex; align-items:center; gap:8px; background:rgba(10,16,40,0.6); border:1px solid rgba(255,255,255,0.12); padding:6px 12px; border-radius:8px;}
.time-fields input{background:transparent; border:none; padding:0; width:60px; text-align:center; color:#fff; font-size:16px;}
.time-fields span{color:rgba(255,255,255,0.65); font-weight:700;}
.primary-btn,.secondary-btn{
  padding:10px 16px; border-radius:10px; font-weight:600; letter-spacing:.3px;
}
.primary-btn{background:linear-gradient(135deg,#40bda0,#2f6cd3); color:#fff;}
.secondary-btn{background:rgba(255,255,255,0.15); color:#fff;}
@keyframes modalSlideIn{
  from{transform:translateY(20px); opacity:0;}
  to{transform:translateY(0); opacity:1;}
}
.counter-card{
  position:relative;
  padding:18px 20px;
  border-radius:16px;
  background:rgba(26,26,26,0.85);
  border:1px solid rgba(255,215,0,0.3);
  box-shadow:0 12px 35px rgba(0,0,0,0.6), 0 0 20px rgba(255,215,0,0.1);
  overflow:hidden;
  backdrop-filter: blur(6px);
  transition:transform .25s ease, box-shadow .25s ease;
}
.counter-card::before{
  content: "";
  position:absolute;
  inset:-40% -40% auto;
  height:160px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25), transparent 60%);
  opacity:0.45;
  transform:rotate(12deg);
}
.counter-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 45px rgba(0,0,0,0.45);
}
.counter-card .counter-title{
  font-size:14px;
  font-weight:600;
  color:#9fa8ff;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-bottom:8px;
}
.counter-card .counter-value{
  font-size:28px;
  font-weight:900;
  color:#ffffff;
  margin:4px 0;
  text-shadow:0 3px 12px rgba(0,0,0,0.25);
}
.counter-card .counter-subvalue{
  font-size:12px;
  color:rgba(210,215,255,0.85);
  letter-spacing:.25px;
}
.counter-card.net{
  background: linear-gradient(135deg, rgba(35, 99, 173, 0.85), rgba(66, 180, 153, 0.85));
  border-color: transparent;
}
.counter-card.net .counter-title{color:rgba(255,255,255,0.85);}
.counter-card.net::before{
  background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent 55%);
  opacity:0.6;
}

/* Tabla */
table{width:100%; border-collapse:collapse; margin-top:10px;}
th,td{border:1px solid #fff; padding:10px; text-align:left; vertical-align:middle;}
th{background:#333; color:#ffd700;}
/* Limitar ancho de columna Tipo (1ra columna) */
table th:nth-child(1), table td:nth-child(1) {
    max-width: 60px;
    min-width: 50px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Limitar ancho de columna Estado (2da columna) */
table th:nth-child(2), table td:nth-child(2) {
    max-width: 120px;
    min-width: 100px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Limitar ancho de columna Usuario (3ra columna: Tipo, Estado, Usuario) */
table th:nth-child(3), table td:nth-child(3) {
    max-width: 150px;
    min-width: 100px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Limitar ancho de columna Motivo usando data-label */
table td[data-label="Motivo"] {
    max-width: 120px !important;
    min-width: 80px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilo para el header de Motivo - aplicar a todos los th y luego el JavaScript puede agregar una clase */
table thead tr th {
    max-width: none;
}

/* Contenedor de tabla con scroll horizontal */
.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
    position: relative;
    box-sizing: border-box;
    /* Asegurar que no se desborde del contenedor padre */
    min-width: 0;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

/* Asegurar que la tabla no se corte dentro del contenedor */
.table-container table {
    min-width: 100%;
    width: max-content;
    table-layout: auto;
    /* Asegurar que la tabla no cause overflow horizontal en el contenedor */
    max-width: none;
}

/* Responsive para tablas de historial */
@media (max-width: 1024px) {
    table {
        font-size: 14px;
    }
    th, td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    /* Hacer la tabla scrolleable horizontalmente en tablets */
    .table-container {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }
    
    table {
        min-width: 800px; /* Ancho mínimo para mantener legibilidad */
        font-size: 13px;
        width: max-content;
    }
    
    th, td {
        padding: 6px 4px;
        white-space: nowrap;
    }
    
    /* Ocultar algunas columnas menos importantes en tablets */
    th:nth-child(4), td:nth-child(4), /* DNI */
    th:nth-child(5), td:nth-child(5) { /* Teléfono */
        display: none;
    }
}

@media (max-width: 480px) {
    /* En móviles, hacer la tabla más compacta */
    .table-container {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }
    
    table {
        min-width: 600px;
        font-size: 11px;
        width: max-content;
    }
    
    th, td {
        padding: 4px 2px;
        font-size: 11px;
    }
    
    /* Ocultar más columnas en móviles */
    th:nth-child(4), td:nth-child(4), /* DNI */
    th:nth-child(5), td:nth-child(5), /* Teléfono */
    th:nth-child(6), td:nth-child(6) { /* Fecha/Hora - mostrar solo fecha */
        display: none;
    }
    
    /* Mostrar fecha en formato más corto */
    td:nth-child(6)::before {
        content: attr(data-date-short);
    }
}

/* Vista de tarjetas para móviles muy pequeños */
@media (max-width: 360px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #fff;
        margin-bottom: 10px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: left;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #ffd700;
    }
}

/* Estados */
.state-btn{padding:6px 10px; border-radius:8px; font-weight:800; color:#111; border:1px solid rgba(255,255,255,.2);}
.state-c-0{background:var(--cobro0); color:#fff;}
.state-c-1{background:var(--cobro1); color:#fff;}
.state-c-2{background:var(--cobro2); color:#fff;}
.state-c-3{background:var(--cobro3); color:#fff;}
.state-p-btn{padding:6px 10px; border-radius:8px; font-weight:800; color:#111; border:1px solid rgba(255,255,255,.2);}
.state-p-0{background:var(--premio0); color:#fff;}
.state-p-1{background:var(--premio1); color:#fff;}
.state-p-2{background:var(--premio2); color:#fff;}
.state-p-3{background:var(--premio3); color:#fff;}

/* Footer */
.page-footer{margin-top:30px; background:#1a1a1a; border-top:2px solid rgba(255,215,0,0.3); padding:14px; text-align:center; box-shadow:0 -4px 15px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.1);}
#adminBtn{
  background:rgba(255,255,255,.18); color:#ddd; border:1px solid rgba(255,255,255,.2);
  padding:6px 12px; border-radius:8px; font-size:12px;
}
#adminBtn:hover{background:rgba(255,255,255,.28); color:#fff; transform:none;}

/* Cartel verde + botón flotante de chat/soporte (derecha: cartel arriba, botón abajo) */
.support-float-wrap{
  position:fixed;
  bottom:20px;
  right:20px;
  left:auto;
  z-index:2600;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  transition:opacity 0.25s ease;
}
.support-float-wrap.hidden{
  opacity:0;
  pointer-events:none;
}
/* Cartel "Habla con Soporte": siempre encima del botón, verde y a la derecha */
.support-float-cartel{
  order:1;
  position:relative;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#fff !important;
  font-weight:900;
  font-size:17px;
  letter-spacing:.8px;
  padding:12px 22px;
  padding-right:42px;
  border-radius:14px;
  box-shadow:0 8px 32px rgba(16,185,129,.6), 0 0 0 3px rgba(255,255,255,.35), 0 0 40px rgba(16,185,129,.4);
  text-transform:none;
  white-space:nowrap;
  animation:support-cartel-pulse 2s ease-in-out infinite;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
  flex-shrink:0;
  margin:0;
  cursor:pointer;
}
.support-float-cartel:hover{
  filter:brightness(1.08);
}
.support-float-cartel.hidden{display:none !important;}
.support-cartel-text{color:#fff !important;}
.support-cartel-close{
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.7);
  background:rgba(0,0,0,.4);
  color:#fff;
  font-size:16px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  transition:background .2s, transform .2s;
}
.support-cartel-close:hover{
  background:rgba(0,0,0,.7);
  transform:translateY(-50%) scale(1.08);
}
@keyframes support-cartel-pulse{
  0%,100%{ box-shadow:0 8px 32px rgba(16,185,129,.6), 0 0 0 3px rgba(255,255,255,.35), 0 0 40px rgba(16,185,129,.4); transform:scale(1); }
  50%{ box-shadow:0 10px 36px rgba(16,185,129,.75), 0 0 0 4px rgba(255,255,255,.5), 0 0 50px rgba(16,185,129,.5); transform:scale(1.02); }
}
/* WhatsApp flotante (botón de chat): debajo del cartel verde */
#whatsappFloat{order:2; width:60px; height:60px; background:#22c55e; border-radius:50%; display:flex; justify-content:center; align-items:center; cursor:pointer; box-shadow:0 6px 20px rgba(34,197,94,.4); flex-shrink:0;}
#whatsappFloat:hover{background:#16a34a; transform:scale(1.05); box-shadow:0 8px 24px rgba(34,197,94,.5);}
#whatsappFloat img{width:36px; height:36px;}

/* MODAL */
#loginModal{position:fixed; inset:0; background:rgba(0,0,0,.95); display:none; align-items:center; justify-content:center; z-index:9998; padding:12px;}
.login-box{width:100%; max-width:760px; background:#1a1a1a; color:#fff; border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.9), 0 0 40px rgba(255,215,0,0.2); border:2px solid rgba(255,215,0,0.4); overflow:hidden; text-align:left;}
.login-header{display:flex; align-items:center; gap:12px; padding:16px; background:#2d2d2d; border-bottom:2px solid rgba(255,215,0,0.3);}
.login-header img{width:56px; height:56px; border-radius:10px; object-fit:cover; background:#000;}
.login-header h3{margin:0; font-size:20px;}
.login-tabs{display:flex; gap:6px; padding:10px; background:#2d2d2d; border-bottom:1px solid rgba(255,215,0,0.2); flex-wrap:wrap;}
.login-tabs button{flex:1; background:#d9d9d9; color:#111; border-radius:10px; padding:10px 12px; font-weight:700; min-width:140px;}
.login-tabs button.active{background:var(--gold); color:#111;}
.login-body{padding:18px;}
.tab-panel{display:none; background:transparent;}
.tab-panel.active{display:block;}
.tab-card{
  background:#1a1a1a;
  border:1px solid rgba(255,215,0,0.3);
  border-radius:12px;
  padding:14px;
  box-shadow:0 4px 15px rgba(0,0,0,0.5), 0 0 15px rgba(255,215,0,0.1);
}
.tab-card .tab-card-header{
  display:flex; align-items:center; gap:10px;
  background:#2d2d2d;
  border:1px solid rgba(255,215,0,0.2);
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:12px;
}
.tab-card .tab-card-header img{
  width:38px; height:38px; border-radius:8px; object-fit:cover; background:#000;
}
.tab-card .tab-card-header h4{margin:0; font-size:16px;}
.tab-panel input,.tab-panel button, .tab-panel select{width:100%; max-width:520px; margin:10px auto; padding:12px; border-radius:10px; font-size:16px; display:block;}
.login-footer{display:flex; justify-content:space-between; align-items:center; padding:12px 16px; background:#2d2d2d; border-top:1px solid rgba(255,215,0,0.2); flex-wrap:wrap; gap:8px;}
#loginClose{background:#c9c9c9; color:#111; padding:10px 16px; border-radius:10px; font-weight:700;}
#supportBtnFooter{background:#28a745; color:#fff; padding:10px 16px; border-radius:10px; font-weight:700;}

/* Modal transfer */
#transferModal{
  position:fixed; 
  inset:0; 
  background:rgba(0,0,0,.95); 
  display:none; 
  justify-content:center; 
  align-items:flex-start; 
  z-index:9999; 
  padding:12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-box{
  width:100%; 
  max-width:760px; 
  background:#1a1a1a; 
  color:#fff;
  border-radius:14px; 
  box-shadow:0 20px 60px rgba(0,0,0,.9), 0 0 40px rgba(255,215,0,0.2); 
  border:2px solid rgba(255,215,0,0.4);
  overflow:hidden; 
  text-align:left;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: auto;
}
.modal-header{display:flex; align-items:center; gap:12px; padding:16px; background:#2d2d2d; border-bottom:2px solid rgba(255,215,0,0.3);}
.modal-header img{width:56px; height:56px; border-radius:10px; object-fit:cover; background:#000;}
.modal-header h3{margin:0; font-size:20px;}
.modal-body{padding:16px 18px; max-height: calc(100vh - 300px); overflow-y: auto; -webkit-overflow-scrolling: touch;}
.modal-body p{margin:8px 0;}
.alias-banner{
  margin:8px 0 14px; background:rgba(255,215,0,.12);
  border:1px solid rgba(255,215,0,.35); border-radius:12px; padding:10px 12px; display:inline-block;
}
.alias-banner .alias-big{font-size:28px; font-weight:900; letter-spacing:.5px; color:var(--gold);}
.modal-actions{display:flex; flex-direction:column; align-items:center; gap:10px; padding:0 18px 10px 18px;}
.primary-actions{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; width:100%;}
.platform-action{display:flex; justify-content:center; width:100%;}
#copyBtn{margin:0; padding:10px 16px; border-radius:12px; font-weight:800; letter-spacing:.3px; background:var(--gold); color:#121212;}
#goPlatformBtn{
  background: linear-gradient(90deg,var(--gold2),var(--gold)); color:#121212; border:0;
  cursor:pointer; position:relative; overflow:hidden; margin-top:6px;
  box-shadow:0 0 14px rgba(255,215,0,.65), 0 0 28px rgba(255,215,0,.35);
  padding:12px 18px; border-radius:12px; font-weight:900;
}
#goPlatformBtn:hover{box-shadow:0 0 20px rgba(255,215,0,.85), 0 0 44px rgba(255,215,0,.55); transform:translateY(-1px);}
.modal-footer{display:flex; justify-content:space-between; align-items:center; padding:12px 16px; background:#2d2d2d; border-top:2px solid rgba(255,215,0,0.3); flex-wrap:wrap; gap:8px; flex-shrink: 0;}
.modal-footer .close-btn{background:#c9c9c9; color:#111; padding:10px 16px; border-radius:10px; font-weight:700;}
.modal-footer .support-btn{background:#28a745; color:#fff; padding:10px 16px; border-radius:10px; font-weight:700;}

/* Responsive */
@media (max-width:820px){
  .header{flex-wrap:wrap; gap:10px; padding:10px;}
  .header .left{order:1;}
  .header .center{order:3; width:100%;}
  .header .right{
    order:2; 
    width:100%; 
    align-items:flex-end;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
  }
  .logo{width:100px; height:65px;}
  .header .right .gold-btn{
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    font-size: 11px;
    padding: 8px 4px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    word-wrap: break-word;
  }
  .nav{justify-content:center;}
  .nav a{font-size:12px; padding:8px 10px;}
}

/* Responsive para celulares */
@media (max-width: 768px) {
  .container{margin:10px auto; width:95%; padding:0 10px;}
  
  /* Header responsive */
  .header{padding:8px 10px; flex-wrap:wrap;}
  .header .left{min-width:50px; flex-shrink:0;}
  .logo{width:80px; height:50px; object-fit:cover;}
  .header .right{min-width:auto; flex-shrink:1;}
  .gold-btn{width:120px; font-size:12px; padding:5px 8px;}
  .nav{justify-content:center; flex-wrap:wrap; gap:4px;}
  .nav a{font-size:11px; padding:6px 8px;}
  
  /* Carrusel responsive */
  .carousel-container{padding:10px 0 5px;}
  #carouselImage{max-width:100% !important; width:auto !important; height:auto !important; max-height:300px !important; object-fit:contain !important;}
  .thumbnail-container{gap:6px; padding:0 5px;}
  .thumbnail{width:45px; height:28px; font-size:10px; flex-shrink:0;}
  .thumbnail img{width:100%; height:100%; object-fit:cover;}
  
  /* Juegos responsive */
  .games{gap:10px; padding:0 5px;}
  .game{padding:8px; min-width:0;}
  .game-img-wrap{font-size:24px;}
  .game-img-wrap img{width:100%; height:100%; object-fit:cover; display:block;}
  
  /* Botones dorados responsive - mantener en línea horizontal */
  .gold-buttons-container{
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px;
    padding: 0 10px;
    justify-content: space-between;
  }
  .gold-buttons-container .gold-btn{
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 10px 6px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Panel admin responsive */
  #adminPanel{width:100%; max-width:100vw; padding:15px; margin:0; overflow-x: hidden; overflow-y: visible; box-sizing: border-box; border-radius:0;}
  #adminPanel h2{font-size:18px; display:flex; flex-wrap:wrap; align-items:center; gap:8px;}
  #refreshHistoryBtn{padding:6px 12px; font-size:12px; flex-shrink:0;}
  .filters-row{flex-direction:column; gap:8px;}
  .filters-row .field{width:100%; min-width:0;}
  .history-counters{grid-template-columns: 1fr; gap:10px;}
  .table-container{overflow-x:auto; -webkit-overflow-scrolling:touch; margin:10px 0; width:100%; max-width:100%;}
  table{font-size:12px; min-width:800px; width:max-content;}
  table th, table td{padding:6px 4px; font-size:11px;}
  
  /* Notificaciones responsive */
  .notification{min-width:280px; max-width:320px; padding:12px 16px; font-size:13px; right:10px; top:10px;}
  
  /* Modales responsive */
  .main-modal {
    padding: 0;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .main-modal .main-container{
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .admin-login-modal .admin-login-container{width:90%; padding:20px;}
  
  /* Mejorar tabs en móviles - asegurar que sean visibles */
  .tabs-container {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 8px;
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tabs-container::-webkit-scrollbar {
    display: none;
  }
  
  .tab-btn {
    flex: 1 1 0;
    min-width: 90px;
    padding: 10px 6px;
    font-size: 11px;
    flex-shrink: 0;
  }
  
  .tab-icon {
    font-size: 16px;
  }
  
  .tab-text {
    font-size: 10px;
    white-space: nowrap;
    display: inline-block !important;
  }
  
  /* Asegurar que el contenido de las pestañas sea scrolleable */
  .tabs-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    min-height: 0;
  }
  
  /* Mejorar formularios en móviles */
  .form-group input,
  .form-group select {
    font-size: 16px; /* Evita zoom automático en iOS */
    padding: 14px 16px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
  }
  
  /* Mejorar main header en móviles */
  .main-header {
    padding: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .main-title {
    font-size: 20px;
  }
  
  .modal-support-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .close-main-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  /* Mejorar modal de transferencia en móviles */
  .modal-body {
    padding: 12px 14px;
  }
  
  .alias-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    margin: 8px 0 14px;
  }
  
  .alias-banner span {
    text-align: center;
  }
  
  #copyBtn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin: 0;
  }
  
  .modal-actions {
    padding: 0 14px 10px 14px;
  }
  
  #goPlatformBtn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }
  
  .close-btn, .support-btn {
    width: 100%;
    padding: 12px;
  }
  
  .modal-header {
    padding: 12px;
    flex-wrap: wrap;
  }
  
  .modal-header h3 {
    font-size: 18px;
  }
  
  .modal-header img {
    width: 48px;
    height: 48px;
  }
  
  /* WhatsApp flotante más pequeño */
  #whatsappFloat{width:50px; height:50px; bottom:20px; right:20px;}
  
  /* Sticky CTA (amarillos) arriba del verde, mismo lado derecho */
  .sticky-cta {
    bottom: 180px;
    right: 12px;
    left: auto;
    max-width: calc(100vw - 100px);
  }
  
  .sticky-cta-inner {
    align-items: stretch;
  }
  
  .sticky-cta-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }
  
  .sticky-cta-close {
    width: 28px;
    height: 28px;
    font-size: 16px;
    top: -10px;
    right: -10px;
  }
}

@media (max-width: 480px) {
  .container{width:98%; padding:0 5px;}
  
  /* Header más pequeño */
  .logo{width:60px; height:40px;}
  .header .right{
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .header .right .gold-btn{
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    font-size: 10px;
    padding: 8px 3px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    word-wrap: break-word;
  }
  .nav a{font-size:11px; padding:6px 8px;}
  
  /* Carrusel más pequeño */
  #carouselImage{width:auto !important; height:auto !important; max-width:100% !important; max-height:200px !important; object-fit:contain !important;}
  .thumbnail{width:35px; height:22px;}
  
  /* Panel admin más compacto */
  #adminPanel{width:100%; max-width:100vw; padding:10px; margin:0; overflow-x: hidden; overflow-y: visible; box-sizing: border-box; border-radius:0;}
  #adminPanel h2{font-size:16px; margin:0 0 6px;}
  .filters-row .field label{font-size:12px;}
  .filters-row input, .filters-row select, .filters-row button{font-size:13px; padding:6px 8px;}
  table{font-size:11px; min-width:700px;}
  table th, table td{padding:4px 3px; font-size:10px;}
  
  /* Botones del panel */
  #refreshHistoryBtn{padding:6px 12px; font-size:12px;}
  
  /* Tabla responsive en móviles */
  .table-container{overflow-x:auto; -webkit-overflow-scrolling:touch; margin:10px 0; width:100%; max-width:100vw; margin-left:0; margin-right:0;}
  table{display:block; width:100%; border-collapse:collapse;}
  table thead{display:none;}
  table tbody{display:block; width:100%;}
  table tr{display:block; margin-bottom:15px; border:1px solid rgba(255,255,255,0.1); border-radius:8px; padding:10px; background:rgba(14,19,51,0.5);}
  table td{display:flex; justify-content:space-between; padding:8px 5px; border:none; text-align:right; border-bottom:1px solid rgba(255,255,255,0.05);}
  table td:before{content:attr(data-label); font-weight:700; text-align:left; margin-right:10px; color:var(--gold);}
  table td:last-child{border-bottom:none;}
  
  /* Notificaciones más pequeñas */
  .notification{min-width:260px; max-width:300px; padding:10px 14px; font-size:12px;}
  
  /* Modales más pequeños */
  .main-modal .main-container{width:98%; padding:15px;}
  .admin-login-modal .admin-login-container{width:95%; padding:15px;}
  
  /* Botones dorados más pequeños - mantener en línea horizontal */
  .gold-buttons-container{
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    padding: 0 5px;
  }
  .gold-buttons-container .gold-btn{
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 10px 4px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Mejorar botones del header en móviles pequeños */
  .header .right .gold-btn{
    font-size: 9px;
    padding: 8px 2px;
    white-space: normal;
    overflow: visible;
    line-height: 1.2;
    word-wrap: break-word;
  }
}

.loading{display:inline-block; width:20px; height:20px; border:3px solid #f3f3f3; border-top:3px solid var(--gold); border-radius:50%; animation:spin 1s linear infinite;}
@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}

/* ===== SISTEMA DE NOTIFICACIONES ===== */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 24000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background: linear-gradient(135deg, var(--success), var(--success-light));
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.notification.error {
  background: linear-gradient(135deg, var(--danger), var(--danger-hover));
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.notification.warning {
  background: linear-gradient(135deg, var(--warning), #e67e22);
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
}

.notification.info {
  background: linear-gradient(135deg, var(--info), #2980b9);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.notification-message {
  font-size: 13px;
  opacity: 0.9;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== LOGIN MODERNO ===== */
.modern-login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.2);
  border: 2px solid rgba(255, 215, 0, 0.4);
  animation: modalSlideIn 0.3s ease-out;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  position: relative;
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
}

.logo-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #121212;
}

.login-header h2 {
  color: var(--gold);
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

.login-header p {
  color: var(--nav-text);
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.login-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  color: var(--nav-text);
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffd700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group select option {
  background: #1a1a1a;
  color: white;
  padding: 10px;
}

.quick-amount-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-amount-btn {
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
}

.quick-amount-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
}

.quick-amount-btn:active {
    transform: translateY(0);
    background: rgba(255, 215, 0, 0.35);
}

/* Responsive para botones de opciones de carga rápida */
@media (max-width: 480px) {
    .quick-amount-buttons {
        gap: 6px;
        margin-top: 10px;
    }
    
    .quick-amount-btn {
        padding: 10px 12px;
        font-size: 13px;
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
    }
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2), 0 0 15px rgba(255, 215, 0, 0.3);
  background: rgba(26, 26, 26, 0.95);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--nav-text);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #121212;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #121212;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.error-message {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #ff6b6b;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 13px;
  text-align: center;
}

.login-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  color: var(--nav-text);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.option-btn:hover {
  background: rgba(26, 26, 26, 0.9);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  transform: translateY(-1px);
}

.option-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.option-text {
  font-size: 14px;
  font-weight: 500;
}

.login-footer {
  display: flex;
  gap: 12px;
}

.close-btn, .support-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.support-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
}

.support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* ===== MODAL PÚBLICO ===== */
.modern-public-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.public-container {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.2);
  border: 2px solid rgba(255, 215, 0, 0.4);
  animation: modalSlideIn 0.3s ease-out;
}

.public-header {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.public-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.public-title {
  color: var(--gold);
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 600;
}

.back-btn {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.public-body {
  margin-bottom: 25px;
}

.public-panel {
  display: block;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #121212;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== MODAL DE CAMBIO DE ESTADO ===== */
.modern-status-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10002;
  align-items: center;
  justify-content: center;
}

.status-container {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.2);
  border: 2px solid rgba(255, 215, 0, 0.4);
  animation: modalSlideIn 0.3s ease-out;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  position: relative;
}

.status-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.status-header h3 {
  color: var(--gold);
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  flex: 1;
}

.close-status-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-status-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.status-info {
  background: rgba(26, 26, 26, 0.6);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item label {
  color: var(--nav-text);
  font-weight: 500;
  font-size: 14px;
  opacity: 0.8;
}

.info-item span {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}

.status-form .form-group {
    margin-bottom: 15px;
}

.status-form select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.status-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.status-form select option {
  background: var(--panel);
  color: white;
}

.status-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 80px;
}

.status-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.status-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.status-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.cancel-btn, .confirm-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.confirm-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #121212;
  border: none;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== MODAL PRINCIPAL CON PESTAÑAS ===== */
.main-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
}

.main-container {
    position: relative;
    margin: 20px auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 215, 0, 0.3);
    border: 3px solid var(--gold);
    animation: modalSlideIn 0.4s ease-out;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 2px solid #333;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 18px 18px 0 0;
    gap: 15px;
}

.main-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-support-btn {
    background: linear-gradient(135deg, #00ff88, #25d366, #00ff88);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    color: white;
    border: 2px solid #00ff88;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.6), 0 0 30px rgba(37, 211, 102, 0.4);
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.modal-support-btn:hover::before {
    left: 100%;
}

.modal-support-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.8), 0 0 40px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #00ff88, #25d366);
    border-color: #00ff88;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.main-header h2 {
    color: var(--gold);
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.close-main-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-main-btn:hover {
    background: #333;
    color: var(--gold);
}

/* Pestañas Superiores */
.tabs-container {
    display: flex;
    background: #2a2a2a;
    border-bottom: 2px solid #333;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 15px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 150px;
    flex-direction: row;
}

.tab-btn:hover {
    background: #333;
    color: var(--gold);
}

.tab-btn.active {
    background: var(--gold);
    color: #1a1a1a;
    box-shadow: 0 -3px 10px rgba(255, 215, 0, 0.3);
}

.tab-icon {
    font-size: 20px;
}

.tab-text {
    font-size: 14px;
    display: inline-block !important;
}

/* Contenido de Pestañas */
.tabs-content {
    padding: 20px;
    min-height: 300px;
    max-height: 55vh;
    overflow-y: auto;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
    display: block;
}

.main-footer {
    padding: 20px 30px;
    border-top: 2px solid #333;
    background: #2a2a2a;
    border-radius: 0 0 18px 18px;
    text-align: center;
    position: relative;
}

.main-footer .support-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.main-footer .support-btn:hover {
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== MODAL LOGIN ADMINISTRADORES ===== */
.admin-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.admin-login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #e74c3c;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.admin-login-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-login-header h2 {
    color: #e74c3c;
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 700;
}

.admin-login-header p {
    color: #b0b0b0;
    font-size: 16px;
    margin: 0;
}

.admin-login-form {
    margin-bottom: 30px;
}

.admin-credentials-hint {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-credentials-hint small {
    color: #888;
    font-size: 12px;
}

.admin-login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
}

.admin-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.admin-login-footer {
    text-align: center;
}

.close-admin-btn {
    background: #666;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.close-admin-btn:hover {
    background: #777;
}

/* ===== BOTÓN ADMIN DORADO ===== */
.admin-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border: 2px solid #e74c3c !important;
    color: white !important;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3) !important;
}

/* ===== BOTONES DORADOS CENTRADOS ===== */
.gold-btn {
    display: inline-block;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.gold-buttons-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 20px auto !important;
    padding: 0 !important;
}

/* Mejorar diseño de botones en móviles - mantener en línea horizontal */
@media (max-width: 768px) {
    .gold-buttons-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 0 10px !important;
        justify-content: space-between !important;
    }
    
    .gold-buttons-container .gold-btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
        margin: 0;
        border-radius: 8px;
        font-weight: 700;
        letter-spacing: 0.2px;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
        padding: 12px 4px;
        font-size: 11px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gold-buttons-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding: 0 8px !important;
        margin: 15px auto !important;
        justify-content: space-between !important;
    }
    
    .gold-buttons-container .gold-btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(255, 215, 0, 0.25);
        padding: 12px 2px;
        font-size: 10px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

.container[style*="display:flex"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 20px auto !important;
}

/* ===== CONFIRMACIÓN DE PREMIO ===== */
.prize-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 25px;
}

.confirmation-icon {
    font-size: 64px;
    animation: bounceIn 0.6s ease-out;
}

.confirmation-title {
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.confirmation-message {
    color: #e8e8f3;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
}

.confirmation-message p {
    margin: 15px 0;
}

.confirmation-message strong {
    color: var(--gold);
    font-weight: 800;
}

.support-section {
    margin: 20px 0;
}

.whatsapp-support-btn {
    background: linear-gradient(135deg, #25d366, #128c7e, #25d366);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.whatsapp-support-btn:hover::before {
    left: 100%;
}

.whatsapp-support-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.whatsapp-text {
    white-space: nowrap;
}

.confirmation-actions {
    margin-top: 20px;
}

.close-confirmation-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8f3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-confirmation-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== MODAL DE CONFIGURACIÓN ===== */
/* MODAL ESTÁTICO COMPLETAMENTE DESHABILITADO - NO SE DEBE USAR */
.config-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    max-width: 0 !important;
    max-height: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
}

.config-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--gold);
}

.config-header {
    text-align: center;
    padding: 25px 30px;
    border-bottom: 2px solid #333;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 18px 18px 0 0;
    position: relative;
}

.config-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: rotate 2s linear infinite;
}

.config-header h2 {
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.config-header p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

.close-config-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-config-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.config-form {
    padding: 30px;
}

.config-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 15px rgba(255,215,0,0.1);
}

.config-section h3 {
    color: var(--gold);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-section .form-group {
    margin-bottom: 20px;
}

.config-section label {
    display: block;
    color: #e8e8f3;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.config-section input,
.config-section select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.config-section input:focus,
.config-section select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.2);
    background: rgba(26, 26, 26, 0.95);
}

.config-section input::placeholder {
    color: #999;
}

.config-section select option {
    background: #2a2a2a;
    color: #fff;
    padding: 10px;
}

.config-section small {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.config-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.cancel-config-btn, .save-config-btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 140px;
}

.cancel-config-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8f3;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cancel-config-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.save-config-btn {
    background: linear-gradient(135deg, var(--gold), #ffed4e);
    color: #121212;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.save-config-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.config-footer {
    text-align: center;
    padding: 15px 30px;
    border-top: 1px solid #333;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 18px 18px;
}

.config-footer small {
    color: #aaa;
    font-size: 12px;
}

/* Estilos para cambio de contraseñas */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #fff;
}

.change-password-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.change-password-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Estilos para horarios de trabajo */
.schedule-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.schedule-form .form-group {
    margin: 0;
}

.schedule-form input[type="time"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.schedule-form input[type="time"]:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e8e8f3;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.save-schedule-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.save-schedule-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.save-schedule-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== MODAL DE SUPERADMIN ===== */
.superadmin-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.superadmin-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 3px solid #ffd700;
    display: flex;
    flex-direction: column;
}
/* Permitir scroll en el modal: contenido desplazable para ver el botón inferior */
.superadmin-modal .superadmin-container {
    max-height: 92vh;
}

.superadmin-header {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 20px;
    border-radius: 17px 17px 0 0;
    text-align: center;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

.superadmin-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.superadmin-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.superadmin-header p {
    margin: 5px 0 0 0;
    font-size: 16px;
    opacity: 0.8;
}

.close-superadmin-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.2);
    color: #000;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-superadmin-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.superadmin-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--gold);
    overflow-x: auto;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.superadmin-tab {
    background: none;
    border: none;
    color: #aaa;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.superadmin-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.superadmin-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.tab-icon {
    font-size: 18px;
}

.superadmin-tab-content {
    display: none;
    padding: 30px;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.superadmin-tab-content.active {
    display: block;
}

.sessions-header, .passwords-header, .logs-header, .chats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.sessions-header h3, .passwords-header h3, .logs-header h3 {
    margin: 0;
    color: var(--gold);
    font-size: 24px;
    font-weight: 700;
}

.logs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.log-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.log-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 215, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.log-filter-select {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    min-width: 180px;
}
.log-filter-select option, .log-filter-select optgroup {
    background: #1a1a2e;
    color: #fff;
}
.log-filter-select:hover, .log-filter-select:focus {
    border-color: rgba(255, 215, 0, 0.6);
    outline: none;
}

.log-search-btn {
    background: linear-gradient(135deg, #f2c822, #d4a017);
    color: #1a1a2e;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 200, 34, 0.4);
}
.log-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 200, 34, 0.6);
}

.refresh-sessions-btn, .refresh-logs-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.refresh-sessions-btn:hover, .refresh-logs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.session-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.session-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.session-username {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.session-role {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.session-details {
    margin-bottom: 15px;
}

.session-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.session-label {
    color: #aaa;
    font-weight: 500;
}

.session-value {
    color: #fff;
    font-weight: 600;
}

.session-actions {
    text-align: center;
}

.close-session-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.close-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.password-form {
    max-width: 500px;
    margin: 0 auto;
}

.password-form .form-group {
    margin-bottom: 20px;
}

.password-form label {
    display: block;
    color: #e8e8f3;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.password-form input, .password-form select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-form input:focus, .password-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Mejorar visibilidad de elementos select en superadmin */
.superadmin-tab-content select {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.superadmin-tab-content select option {
    background: #fff !important;
    color: #000 !important;
    padding: 8px 12px !important;
    font-weight: 600 !important;
}

.superadmin-tab-content select option:hover {
    background: #f0f0f0 !important;
}

.superadmin-tab-content select:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3) !important;
}

.password-form small {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
}

.change-superadmin-password-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.change-superadmin-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.change-superadmin-password-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Estilos para formulario de crear usuario */
.create-user-form {
    padding: 20px;
}

.create-user-form .form-group {
    margin-bottom: 20px;
}

.create-user-form label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.create-user-form input[type="text"],
.create-user-form input[type="time"],
.create-user-form select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.create-user-form input[type="time"] {
    color-scheme: dark;
}

.create-user-form input:focus,
.create-user-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.create-user-form small {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
}

.create-user-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.create-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.create-user-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.logs-list {
    max-height: 400px;
    overflow-y: auto;
}

.log-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.log-item:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-action {
    color: var(--gold);
    font-weight: 700;
    font-size: 16px;
}

.log-time {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
}

.log-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.log-info {
    display: flex;
    justify-content: space-between;
}

.log-label {
    color: #aaa;
    font-weight: 500;
    font-size: 14px;
}

.log-value {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Estilos para diferenciar logs del admin vs superadmin */
.log-item.admin-user {
    border-left: 4px solid #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.log-item.superadmin-user {
    border-left: 4px solid #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.log-value.admin-user {
    color: #3498db;
    font-weight: 700;
}

.log-value.superadmin-user {
    color: #ffd700;
    font-weight: 700;
}

.superadmin-footer {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 0 0 17px 17px;
    text-align: center;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.close-superadmin-btn-footer {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.4);
}

.close-superadmin-btn-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.6);
}

/* Botón de Superadmin en panel de admin */
.admin-actions .superadmin-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    margin-left: 10px;
}

.admin-actions .superadmin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.admin-actions .superadmin-btn:active {
    transform: translateY(0);
}

.no-data {
    text-align: center;
    color: #aaa;
    font-size: 16px;
    padding: 40px;
    font-style: italic;
}

.error-message {
    text-align: center;
    color: #e74c3c;
    font-size: 16px;
    padding: 40px;
    font-weight: 600;
}

/* Responsive para Superadmin */
@media (max-width: 1024px) {
    .superadmin-container {
        width: 98%;
        max-width: 98%;
        max-height: 95vh;
    }
    
    .superadmin-header h2 {
        font-size: 24px;
    }
    
    .superadmin-header p {
        font-size: 14px;
    }
    
    .superadmin-tab-content {
        padding: 20px;
        max-height: calc(95vh - 220px);
    }
}

@media (max-width: 768px) {
    .superadmin-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .superadmin-header {
        padding: 15px;
        border-radius: 0;
    }
    
    .superadmin-icon {
        font-size: 36px;
        margin-bottom: 5px;
    }
    
    .superadmin-header h2 {
        font-size: 20px;
    }
    
    .superadmin-header p {
        font-size: 12px;
        margin: 3px 0 0 0;
    }
    
    .close-superadmin-btn {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .superadmin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .superadmin-tab {
        flex: 0 0 auto;
        min-width: 100px;
        text-align: center;
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .superadmin-tab .tab-icon {
        font-size: 16px;
    }
    
    .superadmin-tab .tab-text {
        display: inline-block !important;
        font-size: 11px;
    }
    
    .superadmin-tab-content {
        padding: 15px;
        min-height: auto;
        max-height: calc(100vh - 200px);
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sessions-header, .passwords-header, .logs-header, .chats-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-bottom: 10px;
    }
    
    .logs-filters {
        width: 100%;
        justify-content: center;
    }
    
    .log-filter-select {
        min-width: 160px;
    }
    
    .sessions-header h3, .passwords-header h3, .logs-header h3, .chats-header h3 {
        font-size: 18px;
    }
    
    .log-search-btn, .refresh-sessions-btn, .refresh-logs-btn {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
        max-width: 200px;
    }
    
    .password-form {
        max-width: 100%;
    }
    
    .log-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .log-value {
        text-align: left;
        max-width: 100%;
        word-break: break-word;
    }
    
    .session-card {
        padding: 15px;
    }
    
    .session-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .session-actions {
        margin-top: 10px;
    }
    
    .close-session-btn {
        width: 100%;
        padding: 10px;
    }
    
    .password-form {
        max-width: 100%;
        padding: 0;
    }
    
    .password-form input, .password-form select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .create-user-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .log-item {
        padding: 12px;
        font-size: 13px;
    }
    
    .superadmin-footer {
        padding: 15px;
    }
    
    .close-superadmin-btn-footer {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .superadmin-container {
        width: 100%;
        max-width: 100%;
    }
    
    .superadmin-header {
        padding: 12px;
    }
    
    .superadmin-icon {
        font-size: 32px;
    }
    
    .superadmin-header h2 {
        font-size: 18px;
    }
    
    .superadmin-header p {
        font-size: 11px;
    }
    
    .superadmin-tab {
        padding: 10px 8px;
        font-size: 12px;
        min-width: 90px;
    }
    
    .superadmin-tab .tab-text {
        font-size: 10px;
    }
    
    .superadmin-tab-content {
        padding: 12px;
        max-height: calc(100vh - 180px);
    }
    
    .sessions-header h3, .passwords-header h3, .logs-header h3, .chats-header h3 {
        font-size: 16px;
    }
    
    .session-card {
        padding: 12px;
    }
    
    .session-username {
        font-size: 16px;
    }
    
    .password-form input, .password-form select {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .password-form label {
        font-size: 14px;
    }
    
    .create-user-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .log-item {
        padding: 10px;
        font-size: 12px;
    }
    
    .superadmin-tab-content input,
    .superadmin-tab-content select,
    .superadmin-tab-content textarea {
        font-size: 14px;
        padding: 10px;
    }
}

/* ===== DISEÑO RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-container {
        width: 98%;
        margin: 10px auto;
        border-radius: 15px;
    }
    
    .main-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-header h2 {
        font-size: 20px;
    }
    
    .main-modal {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .main-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .main-header {
        flex-shrink: 0;
        padding: 12px;
    }
    
    .tabs-container {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        gap: 4px;
        flex-shrink: 0;
    }
    
    .tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 1 1 0;
        min-width: 90px;
        padding: 12px 4px;
        font-size: 11px;
        flex-shrink: 0;
        flex-direction: column;
        gap: 4px;
    }
    
    .tab-icon {
        font-size: 18px;
    }
    
    .tab-text {
        font-size: 10px;
        white-space: nowrap;
        display: inline-block !important;
        line-height: 1.2;
    }
    
    .tabs-content {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }
    
    .form-group input {
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 15px;
    }
    
    .admin-login-container {
        width: 95%;
        padding: 30px 20px;
    }
    
    .admin-login-header h2 {
        font-size: 24px;
    }
    
    .admin-login-btn {
        font-size: 16px;
        padding: 15px;
    }
    
    /* Botones dorados responsive */
    .container {
        padding: 0 10px;
    }
    
    .gold-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .main-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .main-header {
        border-radius: 0;
        padding: 15px 20px;
        gap: 10px;
    }
    
    .modal-support-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .main-footer {
        border-radius: 0;
    }
    
    .main-footer .support-btn {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 10px auto;
        display: block;
        width: fit-content;
    }
    
    .main-footer .support-btn:hover {
        transform: translateY(-2px);
    }
    
    .tabs-content {
        padding: 12px;
        min-height: 250px;
        max-height: 55vh;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 12px;
    }
    
    .admin-login-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Botones dorados para móviles pequeños */
    .container {
        padding: 0 5px;
    }
    
    .gold-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    /* Responsive para confirmación de premio */
    .prize-confirmation {
        padding: 30px 15px;
        gap: 20px;
    }
    
    .confirmation-icon {
        font-size: 48px;
    }
    
    .confirmation-title {
        font-size: 20px;
    }
    
    .confirmation-message {
        font-size: 14px;
    }
    
    .whatsapp-support-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    /* Responsive para modal de configuración */
    .config-container {
        width: 98%;
        margin: 10px auto;
        border-radius: 15px;
    }
    
    .config-header {
        padding: 20px 15px;
        border-radius: 0;
    }
    
    .config-icon {
        font-size: 36px;
    }
    
    .config-header h2 {
        font-size: 20px;
    }
    
    .config-form {
        padding: 20px 15px;
    }
    
    .config-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .config-section h3 {
        font-size: 16px;
    }
    
    .config-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-config-btn, .save-config-btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===== RESPONSIVE MEJORADO PARA FORMULARIOS ===== */
@media (max-width: 1200px) {
    .main-container {
        width: 95%;
        max-width: 900px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .main-container {
        width: 98%;
    }
    
    .tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        flex-shrink: 0;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .main-container {
        width: 98%;
        margin: 10px auto;
    }
    
    .tabs-content {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    /* Panel de administración responsive */
    .admin-panel-container {
        display: block !important;
    }
    
    .admin-panel-container > div {
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .main-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .main-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 15px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .modal-support-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tabs-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        min-width: 120px;
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .tabs-content {
        padding: 12px;
        max-height: 60vh;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 16px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .main-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .tabs-content {
        max-height: 60vh;
        overflow-y: auto;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px; /* Importante: mantiene 16px para evitar zoom en iOS */
        border-radius: 12px;
        -webkit-appearance: none; /* Elimina estilos nativos de iOS */
        appearance: none;
    }
    
    .form-hint {
        font-size: 12px;
        margin-top: 6px;
        line-height: 1.4;
    }
    
    .error-text {
        font-size: 12px;
        margin-top: 4px;
        line-height: 1.4;
    }
    
    /* Mejorar botones de opciones de carga en móviles pequeños */
    .quick-amount-buttons {
        gap: 6px;
        margin-top: 10px;
    }
    
    .quick-amount-btn {
        padding: 12px 8px;
        font-size: 13px;
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
        min-height: 44px; /* Tamaño mínimo táctil recomendado */
        touch-action: manipulation; /* Mejora la respuesta táctil */
    }
    
    /* Mejorar todos los botones para móviles */
    button {
        min-height: 44px; /* Tamaño mínimo táctil recomendado */
        touch-action: manipulation;
    }
    
    /* Mejorar área táctil de inputs */
    input[type="text"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    select {
        min-height: 44px; /* Tamaño mínimo táctil recomendado */
        touch-action: manipulation;
    }
}

/* ===== RESPONSIVE PARA PANEL DE ADMINISTRACIÓN ===== */
@media (max-width: 1024px) {
    .admin-panel-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .admin-panel-modal {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px !important;
    }
    
    .admin-panel-grid {
        gap: 15px !important;
    }
    
    .admin-section {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .admin-panel-modal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
    }
    
    .admin-panel-grid {
        gap: 10px !important;
    }
    
    .admin-section {
        padding: 12px !important;
    }
}

/* Estilos para botones de cambio de contraseña individuales */
@media (max-width: 600px) {
    /* Hacer que los botones de cambio de contraseña sean más compactos en móviles */
    #usersList div[style*="margin-bottom: 15px"] > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    #usersList div[style*="margin-bottom: 15px"] input[type="password"] {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    #usersList div[style*="margin-bottom: 15px"] button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   SISTEMA DE MENSAJERÍA
   ============================================ */

/* Pestañas del Admin Panel */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.admin-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.admin-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.unread-badge {
    background: #e74c3c;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.admin-tab-content {
    display: block;
}

.admin-tab-content.hidden {
    display: none;
}

/* Contenedor de Mensajes */
.messages-container {
    display: flex;
    gap: 20px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.messages-sidebar {
    width: 300px;
    background: #2d2d2d;
    border-right: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.messages-search {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.messages-search input {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.messages-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.conversation-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.conversation-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.conversation-item.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold);
}

.conversation-item.unread {
    border-left: 3px solid var(--gold);
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.conversation-name {
    font-weight: 600;
    color: var(--gold);
    font-size: 14px;
}

.conversation-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.conversation-preview {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-unread {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}

.conversation-type-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.conversation-type-credit {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.conversation-type-user {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.conversation-type-prize {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.no-conversations {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    font-size: 14px;
}

/* Área de Chat */
.messages-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}

.chat-header {
    padding: 15px 20px;
    background: #2d2d2d;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info h3 {
    margin: 0;
    color: var(--gold);
    font-size: 18px;
}

.chat-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-chat-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 12px;
    word-wrap: break-word;
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--gold), #ffae00);
    color: #000;
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
    background: #2d2d2d;
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom-left-radius: 4px;
}

.message.atendido-message {
    align-self: flex-start;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--gold);
    border-left: 3px solid var(--gold);
    font-style: italic;
    font-weight: 600;
    max-width: 100%;
    text-align: center;
    margin: 10px auto;
}

.message.atendido-message .atendido-text {
    color: var(--gold);
    font-size: 13px;
}

.message-time {
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

.message.received .message-time {
    text-align: left;
}

.message.atendido-message .message-time {
    text-align: center;
    margin-top: 3px;
}

.chat-input-container {
    padding: 15px 20px;
    background: #2d2d2d;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    gap: 10px;
}

.chat-input-container input {
    flex: 1;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.attach-btn {
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attach-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold), #ffae00);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.send-btn:active {
    transform: translateY(0);
}

.message-image {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.message-image:hover {
    transform: scale(1.05);
}

.image-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.image-preview .remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.image-preview .remove-image:hover {
    background: #cc0000;
}

/* Modal de Chat para Clientes */
.chat-modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.chat-modal-body {
    display: flex;
    flex-direction: column;
    height: 500px;
    padding: 0;
    overflow: hidden;
}

.client-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-welcome {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.chat-welcome p {
    margin: 10px 0;
    font-size: 16px;
}

.client-chat-input-container {
    padding: 15px;
    background: #2d2d2d;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-chat-input-container .input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.client-chat-input-container input {
    flex: 1;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.client-chat-input-container input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .messages-container {
        flex-direction: column;
        height: auto;
        min-height: 500px;
    }
    
    .messages-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .chat-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .chat-modal-body {
        height: calc(100vh - 60px);
    }
}

/* Estilos para el modal de datos del cliente */
#clientDataModal .modern-modal-content {
    max-width: 500px;
}

#clientDataModal .form-group {
    margin-bottom: 15px;
}

#clientDataModal .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 600;
}

#clientDataModal .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: #2d2d2d;
    color: #fff;
    font-size: 14px;
}

#clientDataModal .form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#clientDataModal .form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

#clientDataModal .btn-secondary {
    background: #555;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

#clientDataModal .btn-secondary:hover {
    background: #666;
}

#clientDataModal .btn-primary {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

#clientDataModal .btn-primary:hover {
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

