/* =================================================================
   jackpot.css -- Jackpot PuffCase 2025 -- Redesign
   ================================================================= */

#panel-jackpot {
    --jp-gold:        #ffd740;
    --jp-gold2:       #ffca28;
    --jp-gold-glow:   rgba(255,215,64,.55);
    --jp-gold-dim:    rgba(255,215,64,.12);
    --jp-purple:      #7c3aed;
    --jp-purple2:     #9d5ff5;
    --jp-purple-glow: rgba(124,58,237,.45);
    --jp-red:         #f87171;
    --jp-green:       #4ade80;
    --jp-border:      rgba(255,215,64,.18);
    --jp-card-bg:     rgba(14,10,28,.97);
    --jp-radius:      18px;
    max-width: none;
    margin: 0;
    padding: 0 0 56px;
    border-top: 2px solid rgba(160,110,5,.65);
}

/* ---- Animaciones ----------------------------------------------- */
@keyframes jp-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes jp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes jp-scale-in {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes jp-float-hero {
    0%,100% { transform: translateY(0) rotate(-5deg); }
    50%      { transform: translateY(-9px) rotate(5deg); }
}
@keyframes jp-dot-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.35; transform:scale(.7); }
}

/* Entradas del panel */
#panel-jackpot .jp-hero    { animation: jp-fade-in  .45s ease both; }
#panel-jackpot .jp-how     { animation: jp-fade-up  .4s  ease .15s both; }
#panel-jackpot .jp-layout  { animation: jp-fade-up  .5s  cubic-bezier(.22,1,.36,1) .2s both; }

/* ================================================
   HERO
   ================================================ */
#panel-jackpot .jp-hero {
    position: relative; overflow: hidden;
    padding: 36px 28px 0;
}
#panel-jackpot .jp-hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(160,110,5,.18) 0%, transparent 45%),
        linear-gradient(180deg, rgba(30,20,5,.65) 0%, transparent 100%);
    pointer-events: none;
}
#panel-jackpot .jp-hero-bg::after {
    content: '\1F3B0';
    position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    font-size: 140px; opacity: .03; pointer-events: none; filter: grayscale(1);
}
#panel-jackpot .jp-hero-content {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 26px;
}
#panel-jackpot .jp-hero-icon {
    font-size: 3.4rem; flex-shrink: 0; line-height: 1;
    filter:
        drop-shadow(0 0 22px var(--jp-gold-glow))
        drop-shadow(0 0 8px rgba(255,215,64,.4));
    animation: jp-float-hero 4s ease-in-out infinite;
}
#panel-jackpot .jp-hero-text { display: flex; flex-direction: column; gap: 4px; }
#panel-jackpot .jp-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--jp-gold2); opacity: .85;
}
#panel-jackpot .jp-hero-eyebrow::before {
    content: ''; display: inline-block; width: 20px; height: 1px;
    background: var(--jp-gold2); opacity: .7;
}
#panel-jackpot .jp-hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900; margin: 0; color: #fff;
    letter-spacing: .04em; line-height: 1;
    text-shadow: 0 0 40px rgba(255,215,64,.25), 0 2px 20px rgba(0,0,0,.6);
}
#panel-jackpot .jp-hero-title span {
    color: var(--jp-gold);
    text-shadow: 0 0 28px var(--jp-gold-glow);
}
#panel-jackpot .jp-hero-sub { font-size: .8rem; color: rgba(255,255,255,.38); margin: 0; letter-spacing: .05em; }

/* Stats bar */
#panel-jackpot .jp-hero-stats {
    position: relative; z-index: 1;
    display: flex; align-items: stretch;
    background: rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,215,64,.14);
    border-bottom: 1px solid rgba(0,0,0,.25);
    border-left: 1px solid rgba(255,215,64,.1);
    border-right: 1px solid rgba(255,215,64,.1);
    backdrop-filter: blur(6px);
    overflow-x: auto; scrollbar-width: none;
}
#panel-jackpot .jp-hero-stats::-webkit-scrollbar { display: none; }
#panel-jackpot .jp-stat {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; flex: 1; min-width: 90px; padding: 14px 8px;
    transition: background .2s;
}
#panel-jackpot .jp-stat:hover { background: rgba(255,215,64,.04); }
#panel-jackpot .jp-stat-val {
    font-family: 'Rajdhani', sans-serif; font-size: 1.45rem; font-weight: 900;
    color: var(--jp-gold); line-height: 1;
    text-shadow: 0 0 12px var(--jp-gold-glow); white-space: nowrap;
}
#panel-jackpot .jp-stat-lbl {
    font-size: .56rem; color: rgba(255,255,255,.32);
    text-transform: uppercase; letter-spacing: .09em; white-space: nowrap;
}
#panel-jackpot .jp-stat-div {
    width: 1px; align-self: stretch;
    background: rgba(255,255,255,.07); flex-shrink: 0; margin: 10px 0;
}

/* ================================================
   COMO FUNCIONA
   ================================================ */
#panel-jackpot .jp-how {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 8px; flex-wrap: wrap;
    padding: 28px 32px 24px;
    background: rgba(0,0,0,.15);
    border-bottom: 1px solid rgba(255,215,64,.07);
}
#panel-jackpot .jp-how-step {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; flex-shrink: 0; width: 130px; text-align: center;
    padding: 16px 10px 14px;
    background: rgba(255,215,64,.04); border: 1px solid rgba(255,215,64,.12);
    border-radius: 16px; cursor: default;
    transition: background .25s, border-color .25s, transform .22s, box-shadow .25s;
    animation: jp-fade-up .35s ease both;
}
#panel-jackpot .jp-how-step:nth-child(1) { animation-delay: .06s; }
#panel-jackpot .jp-how-step:nth-child(3) { animation-delay: .12s; }
#panel-jackpot .jp-how-step:nth-child(5) { animation-delay: .18s; }
#panel-jackpot .jp-how-step:nth-child(7) { animation-delay: .24s; }
#panel-jackpot .jp-how-step:hover {
    background: rgba(255,215,64,.1); border-color: rgba(255,215,64,.35);
    transform: translateY(-4px); box-shadow: 0 10px 28px rgba(255,215,64,.1);
}
#panel-jackpot .jp-how-num {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,215,64,.28), rgba(120,80,0,.15));
    border: 1.5px solid rgba(255,215,64,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; line-height: 1;
    box-shadow: 0 0 16px rgba(255,215,64,.2), 0 3px 8px rgba(0,0,0,.3);
    transition: box-shadow .25s, border-color .25s;
}
#panel-jackpot .jp-how-step:hover .jp-how-num { box-shadow: 0 0 26px rgba(255,215,64,.4); border-color: rgba(255,215,64,.8); }
#panel-jackpot .jp-how-num--gold {
    background: linear-gradient(135deg, rgba(255,215,64,.28), rgba(100,70,0,.15));
    border-color: rgba(255,215,64,.5);
    box-shadow: 0 0 16px rgba(255,215,64,.2), 0 3px 8px rgba(0,0,0,.3);
}
#panel-jackpot .jp-how-step:hover .jp-how-num--gold { box-shadow: 0 0 26px rgba(255,215,64,.42); border-color: rgba(255,215,64,.8); }
#panel-jackpot .jp-how-info { display: flex; flex-direction: column; gap: 3px; align-items: center; }
#panel-jackpot .jp-how-info strong { font-size: .82rem; color: rgba(255,255,255,.88); font-weight: 700; line-height: 1.2; }
#panel-jackpot .jp-how-info span   { font-size: .68rem; color: rgba(255,255,255,.35); }
#panel-jackpot .jp-how-arrow {
    flex-shrink: 0; align-self: center; margin-top: -10px;
    color: rgba(255,215,64,.3); font-size: .8rem; letter-spacing: 1px;
}

/* ================================================
   LAYOUT INNER
   ================================================ */
#panel-jackpot .jp-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 20px 0;
}

/* ================================================
   POT CARD — Caldero premium
   ================================================ */
#panel-jackpot .jp-pot-card {
    background: linear-gradient(160deg, rgba(28,18,6,.98) 0%, rgba(12,8,4,.99) 100%);
    border: 1px solid rgba(255,215,64,.2);
    border-radius: var(--jp-radius);
    overflow: hidden; margin-bottom: 20px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(255,215,64,.05) inset;
    transition: border-color .3s, box-shadow .3s;
}
#panel-jackpot .jp-pot-card--active {
    border-color: rgba(255,215,64,.45);
    box-shadow: 0 12px 48px rgba(0,0,0,.5), 0 0 30px rgba(255,215,64,.1);
}
#panel-jackpot .jp-pot-card--spinning {
    animation: jp-pot-blink-new .8s ease infinite;
}
@keyframes jp-pot-blink-new {
    0%,100% { box-shadow: 0 0 20px rgba(124,58,237,.25); }
    50%      { box-shadow: 0 0 50px rgba(255,215,64,.5); }
}

#panel-jackpot .jp-pot-header {
    background: linear-gradient(90deg, rgba(255,215,64,.1), transparent 70%);
    border-bottom: 1px solid rgba(255,215,64,.12);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 10px;
}
#panel-jackpot .jp-pot-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem; font-weight: 800; color: #fff; flex: 1; letter-spacing: .04em;
}
#panel-jackpot .jp-pot-icon { font-size: 1.3rem; }
#panel-jackpot .jp-fee-badge-inline {
    font-size: .62rem; font-weight: 800; letter-spacing: .06em;
    color: #f87171; background: rgba(248,113,113,.1);
    border: 1px solid rgba(248,113,113,.25);
    padding: 3px 8px; border-radius: 7px;
}

/* Caldero */
#panel-jackpot .jp-cauldron-wrap {
    width: 160px; height: 160px;
    margin: 22px auto 6px; position: relative;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
#panel-jackpot .jp-cauldron-glow {
    position: absolute; inset: -18px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,64,.15) 0%, transparent 70%);
    animation: jp-glow-gold 2.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes jp-glow-gold {
    0%,100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.12); }
}

/* Valor del bote */
#panel-jackpot .jp-pot-value-wrap {
    padding: 6px 22px 14px; text-align: center;
}
#panel-jackpot .jp-pot-label {
    font-size: .6rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .12em; color: rgba(255,255,255,.32); margin-bottom: 6px;
}
#panel-jackpot .jp-pot-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.6rem; font-weight: 900; color: var(--jp-gold);
    text-shadow: 0 0 30px var(--jp-gold-glow); line-height: 1; transition: all .3s;
}
#panel-jackpot .jp-pot-pc {
    font-size: .78rem; color: rgba(255,215,64,.5); margin-top: 3px; font-weight: 600;
}

/* Barra jugadores */
#panel-jackpot .jp-players-bar { padding: 0 22px 14px; }
#panel-jackpot .jp-players-label {
    display: flex; justify-content: space-between;
    font-size: .7rem; color: rgba(255,255,255,.35); margin-bottom: 8px;
}
#panel-jackpot .jp-players-track {
    height: 7px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden;
}
#panel-jackpot .jp-players-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--jp-purple), var(--jp-gold));
    transition: width .5s ease;
}

/* Timer */
#panel-jackpot .jp-timer-wrap { padding: 8px 22px 16px; text-align: center; }
#panel-jackpot .jp-timer {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,215,64,.08); border: 1px solid rgba(255,215,64,.25);
    border-radius: 12px; padding: 10px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.7rem; font-weight: 900; color: var(--jp-gold);
    letter-spacing: .04em;
}
#panel-jackpot .jp-timer--urgente {
    background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.4); color: #f87171;
    animation: jp-urgente-pulse-new 1s infinite;
}
@keyframes jp-urgente-pulse-new {
    0%,100% { box-shadow: none; }
    50%      { box-shadow: 0 0 20px rgba(248,113,113,.4); }
}
#panel-jackpot .jp-timer-label {
    font-size: .72rem; color: rgba(255,255,255,.35); margin-top: 6px;
}
#panel-jackpot .jp-waiting-msg {
    font-size: .78rem; color: rgba(255,255,255,.28);
    padding: 6px 22px 16px; text-align: center; line-height: 1.5;
}

/* ================================================
   ENTER CARD
   ================================================ */
#panel-jackpot .jp-enter-card {
    background: linear-gradient(160deg, rgba(28,18,6,.98) 0%, rgba(12,8,4,.99) 100%);
    border: 1px solid rgba(255,215,64,.16);
    border-radius: var(--jp-radius);
    overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
#panel-jackpot .jp-enter-card .mj-card-header {
    background: linear-gradient(90deg, rgba(255,215,64,.1), transparent 70%);
    border-bottom: 1px solid rgba(255,215,64,.1);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 10px;
}
#panel-jackpot .jp-enter-card .mj-card-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem; font-weight: 800; color: #fff; flex: 1;
}
#panel-jackpot .jp-enter-card .mj-card-icon { font-size: 1.1rem; }
#panel-jackpot .jp-enter-body { padding: 20px; }
#panel-jackpot .jp-enter-info {
    font-size: .78rem; color: rgba(255,255,255,.38);
    margin-bottom: 14px; line-height: 1.55;
}
#panel-jackpot .jp-enter-fee {
    display: inline-block;
    background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25);
    border-radius: 7px; padding: 2px 7px;
    font-size: .7rem; font-weight: 700; color: #f87171; margin-left: 4px;
}
#panel-jackpot .jp-limits-row {
    display: flex; gap: 8px; margin-bottom: 14px;
}
#panel-jackpot .jp-limit-chip {
    flex: 1; background: rgba(255,215,64,.05);
    border: 1px solid rgba(255,215,64,.15);
    border-radius: 10px; padding: 9px 10px; text-align: center;
}
#panel-jackpot .jp-limit-val {
    font-family: 'Rajdhani', sans-serif; font-size: .9rem; font-weight: 900;
    color: var(--jp-gold); display: block;
}
#panel-jackpot .jp-limit-lbl {
    font-size: .6rem; color: rgba(255,255,255,.3);
    letter-spacing: .08em; text-transform: uppercase;
}
#panel-jackpot .jp-mi-entrada {
    background: rgba(255,215,64,.06); border: 1px solid rgba(255,215,64,.18);
    border-radius: 12px; padding: 13px 16px; margin-top: 14px;
}
#panel-jackpot .jp-mi-entrada-titulo {
    font-size: .62rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--jp-gold2); font-weight: 800; margin-bottom: 6px;
}
#panel-jackpot .jp-mi-entrada-valor {
    font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 900;
    color: #fff;
}
#panel-jackpot .jp-mi-pct { color: var(--jp-gold); font-size: .8rem; margin-top: 3px; }

/* Botón entrar */
#panel-jackpot #jp-entrar-btn {
    width: 100%; margin-top: 14px;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: linear-gradient(135deg, rgba(120,80,0,.8), var(--jp-gold) 55%, var(--jp-gold2));
    border: none; border-radius: 12px; color: #1a0d00;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
    padding: 14px 24px; cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 6px 24px rgba(255,215,64,.35), 0 1px 0 rgba(255,255,255,.2) inset;
    transition: box-shadow .25s, transform .12s;
}
#panel-jackpot #jp-entrar-btn::after {
    content: ''; position: absolute;
    top: 0; left: -100%; width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transition: left .5s ease;
}
#panel-jackpot #jp-entrar-btn:hover {
    box-shadow: 0 10px 32px rgba(255,215,64,.55);
    transform: translateY(-2px);
}
#panel-jackpot #jp-entrar-btn:hover::after { left: 160%; }
#panel-jackpot #jp-entrar-btn:active { transform: scale(.97); }
#panel-jackpot #jp-entrar-btn:disabled {
    background: rgba(255,215,64,.1); color: rgba(255,215,64,.3);
    cursor: not-allowed; box-shadow: none; transform: none;
}

/* ================================================
   COLUMNA DERECHA
   ================================================ */
#panel-jackpot .jp-main-col { min-width: 0; }

/* Wheel / Donut */
#panel-jackpot .jp-wheel-wrap {
    background: linear-gradient(160deg, rgba(20,14,40,.98) 0%, rgba(10,7,22,.99) 100%);
    border: 1px solid rgba(255,215,64,.14);
    border-radius: var(--jp-radius);
    overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    animation: jp-scale-in .5s cubic-bezier(.22,1,.36,1) .25s both;
}
#panel-jackpot .jp-wheel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(255,215,64,.08), transparent 70%);
    border-bottom: 1px solid rgba(255,215,64,.1);
}
#panel-jackpot .jp-wheel-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem; font-weight: 800; color: rgba(255,255,255,.7);
    letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 9px;
}
#panel-jackpot .jp-wheel-header h3::before {
    content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--jp-gold); box-shadow: 0 0 10px var(--jp-gold-glow);
    animation: jp-dot-pulse 2s ease-in-out infinite; flex-shrink: 0;
}

/* Jugadores */
#panel-jackpot .jp-jugadores-wrap {
    background: linear-gradient(160deg, rgba(20,14,40,.98) 0%, rgba(10,7,22,.99) 100%);
    border: 1px solid rgba(255,215,64,.12);
    border-radius: var(--jp-radius);
    overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    animation: jp-fade-up .5s ease .3s both;
}
#panel-jackpot .jp-jugadores-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(255,215,64,.06), transparent 70%);
    border-bottom: 1px solid rgba(255,215,64,.1);
}
#panel-jackpot .jp-jugadores-header h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: .88rem; font-weight: 800; color: rgba(255,255,255,.7);
    letter-spacing: .06em; text-transform: uppercase;
}
#panel-jackpot .jp-jugadores-count {
    font-size: .7rem;
    background: rgba(255,215,64,.12); border: 1px solid rgba(255,215,64,.25);
    color: var(--jp-gold); padding: 2px 10px; border-radius: 12px; font-weight: 700;
}

#panel-jackpot .jp-jugador-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    position: relative; overflow: hidden;
    transition: background .15s;
}
#panel-jackpot .jp-jugador-row::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0;
    width: var(--jp-pct, 0%);
    background: rgba(255,215,64,.07);
    transition: width .6s ease-out; pointer-events: none;
}
#panel-jackpot .jp-jugador-row:hover { background: rgba(255,215,64,.03); }
#panel-jackpot .jp-jugador-avatar {
    width: 32px; height: 32px; border-radius: 8px; object-fit: cover;
    border: 1.5px solid rgba(255,215,64,.2); flex-shrink: 0;
}
#panel-jackpot .jp-jugador-nombre {
    flex: 1; font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.88);
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#panel-jackpot .jp-jugador-monto {
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem; font-weight: 900; color: var(--jp-gold);
}
#panel-jackpot .jp-jugador-pct {
    font-size: .7rem; color: rgba(255,255,255,.3); width: 44px; text-align: right;
}

/* Historial */
#panel-jackpot .mj-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,215,64,.1);
}
#panel-jackpot .mj-section-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem; font-weight: 800; color: rgba(255,255,255,.65);
    letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 9px;
}
#panel-jackpot .mj-section-header h2::before {
    content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--jp-gold); box-shadow: 0 0 10px var(--jp-gold-glow);
    animation: jp-dot-pulse 2s ease-in-out infinite; flex-shrink: 0;
}
#panel-jackpot .jp-hist-tabla { width: 100%; border-collapse: collapse; }
#panel-jackpot .jp-hist-tabla th {
    font-size: .65rem; text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,.28); padding: 8px 12px; text-align: left;
    border-bottom: 1px solid rgba(255,215,64,.1);
}
#panel-jackpot .jp-hist-tabla td {
    padding: 10px 12px; font-size: .82rem; color: rgba(255,255,255,.55);
    border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle;
}
#panel-jackpot .jp-hist-tabla tbody tr {
    transition: background .15s;
}
#panel-jackpot .jp-hist-tabla tbody tr:hover { background: rgba(255,215,64,.04); }
#panel-jackpot .jp-hist-avatar {
    width: 26px; height: 26px; border-radius: 7px; object-fit: cover;
    border: 1px solid rgba(255,215,64,.2);
}
#panel-jackpot .jp-hist-nombre { font-weight: 700; color: rgba(255,255,255,.88); }
#panel-jackpot .jp-hist-pot {
    font-family: 'Rajdhani', sans-serif; font-weight: 900; color: var(--jp-gold); font-size: .95rem;
    text-shadow: 0 0 8px rgba(255,215,64,.25);
}
#panel-jackpot .jp-pct-badge {
    display: inline-block; padding: 2px 8px; border-radius: 8px;
    font-family: 'Rajdhani', sans-serif; font-size: .75rem; font-weight: 800;
}
#panel-jackpot .jp-pct-badge--high { background: rgba(74,222,128,.16); color: #4ade80; }
#panel-jackpot .jp-pct-badge--mid  { background: rgba(255,215,64,.14); color: var(--jp-gold); }
#panel-jackpot .jp-pct-badge--low  { background: rgba(124,58,237,.18); color: #9d5ff5; }

/* ================================================
   MODALES — Premium
   ================================================ */
#jp-ruleta-modal,
#jp-result-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
#jp-ruleta-modal .jp-modal-bg,
#jp-result-modal .jp-modal-bg {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#jp-result-modal .jp-modal-box {
    position: relative; z-index: 1;
    background: linear-gradient(165deg, rgba(26,16,4,.99) 0%, rgba(12,8,2,.99) 100%);
    border: 1px solid rgba(255,215,64,.3);
    border-radius: 24px;
    padding: 44px 36px;
    max-width: 460px; width: 90%;
    text-align: center;
    box-shadow:
        0 0 80px rgba(255,215,64,.12),
        0 40px 100px rgba(0,0,0,.75),
        0 0 0 1px rgba(255,255,255,.04) inset;
    animation: jp-modal-in-new .3s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes jp-modal-in-new {
    from { opacity: 0; transform: scale(.82) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
#jp-result-modal .jp-modal-trophy {
    font-size: 4.5rem; margin-bottom: 12px;
    animation: jp-trophy-bounce .6s .15s ease both;
    display: block;
}
#jp-result-modal .jp-modal-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem; font-weight: 900; margin-bottom: 6px;
    color: var(--jp-gold); text-shadow: 0 0 30px var(--jp-gold-glow);
    letter-spacing: .04em;
}
#jp-result-modal .jp-modal-ganador {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin: 16px 0;
}
#jp-result-modal .jp-modal-avatar {
    width: 52px; height: 52px; border-radius: 14px;
    border: 2px solid var(--jp-gold); object-fit: cover;
    box-shadow: 0 0 16px rgba(255,215,64,.3);
}
#jp-result-modal .jp-modal-nombre { font-size: 1.15rem; font-weight: 800; color: #fff; }
#jp-result-modal .jp-modal-premio {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.8rem; font-weight: 900;
    color: var(--jp-gold); text-shadow: 0 0 40px var(--jp-gold-glow);
    margin: 10px 0 4px;
}
#jp-result-modal .jp-modal-premio-label { font-size: .76rem; color: rgba(255,255,255,.35); margin-bottom: 22px; }
#jp-result-modal .jp-modal-seed {
    background: rgba(0,0,0,.25); border-radius: 10px; padding: 10px;
    font-size: .63rem; font-family: 'Space Mono', monospace;
    color: rgba(255,255,255,.3); word-break: break-all; margin-bottom: 22px; text-align: left;
    border: 1px solid rgba(255,255,255,.05);
}
#jp-result-modal .jp-modal-seed strong { color: rgba(255,255,255,.5); display: block; margin-bottom: 3px; }
#jp-result-modal .mj-btn--primary {
    background: linear-gradient(135deg, rgba(120,80,0,.8), var(--jp-gold) 55%, var(--jp-gold2));
    color: #1a0d00; border: none; border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
    padding: 14px 32px; cursor: pointer;
    box-shadow: 0 6px 24px rgba(255,215,64,.35);
    transition: box-shadow .2s, transform .12s;
}
#jp-result-modal .mj-btn--primary:hover { box-shadow: 0 10px 32px rgba(255,215,64,.55); transform: translateY(-2px); }

/* Ruleta modal */
#jp-ruleta-modal .jp-ruleta-box {
    position: relative; z-index: 1;
    background: linear-gradient(160deg, rgba(20,12,40,.99) 0%, rgba(10,6,20,.99) 100%);
    border: 1px solid rgba(255,215,64,.25);
    border-radius: 22px;
    padding: 28px 24px 32px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    box-shadow:
        0 0 80px rgba(255,215,64,.1),
        0 24px 80px rgba(0,0,0,.75);
}
#jp-ruleta-modal .jp-ruleta-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.9rem; font-weight: 900; color: var(--jp-gold);
    letter-spacing: .06em; text-shadow: 0 0 24px var(--jp-gold-glow);
}
#jp-ruleta-modal #jp-ruleta-canvas {
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(124,58,237,.5), 0 0 100px rgba(124,58,237,.2);
    display: block; max-width: 100%;
}

/* Disabled banner */
#panel-jackpot .mj-disabled-banner {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,215,64,.07); border: 1px solid rgba(255,215,64,.2);
    border-radius: 14px; padding: 20px 24px;
    color: rgba(255,215,64,.7); margin: 16px 20px; font-weight: 600;
}

/* ================================================
   INPUTS Y BOTONES (dentro de jackpot)
   ================================================ */
#panel-jackpot .mj-label {
    font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.35); display: block; margin-bottom: 7px;
}
#panel-jackpot .mj-input {
    background: rgba(8,4,16,.9);
    border: 1px solid rgba(255,215,64,.2); color: #fff;
    border-radius: 10px; padding: 10px 14px; font-size: 1rem;
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    transition: border-color .18s; box-sizing: border-box;
}
#panel-jackpot .mj-input:focus { outline: none; border-color: var(--jp-gold); }
#panel-jackpot .mj-input-row {
    display: flex; gap: 8px; margin-bottom: 14px;
}
#panel-jackpot .mj-input-row .mj-input { flex: 1; }
#panel-jackpot .mj-btn-xs {
    background: rgba(255,215,64,.08); border: 1px solid rgba(255,215,64,.2);
    color: var(--jp-gold); border-radius: 9px;
    padding: 0 13px; font-size: .8rem; font-weight: 800;
    cursor: pointer; transition: all .18s;
    font-family: 'Rajdhani', sans-serif; letter-spacing: .04em;
    white-space: nowrap;
}
#panel-jackpot .mj-btn-xs:hover { background: rgba(255,215,64,.18); color: #1a0d00; }
#panel-jackpot .mj-msg { font-size: .82rem; margin-top: 8px; min-height: 20px; }
#panel-jackpot .mj-msg--ok  { color: #4ade80; }
#panel-jackpot .mj-msg--err { color: #f87171; }
#panel-jackpot .mj-badge { font-size: .62rem; font-weight: 800; padding: 3px 8px; border-radius: 7px; }
#panel-jackpot .mj-badge--activo { background: rgba(74,222,128,.14); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }

/* Empty state */
#panel-jackpot .mj-empty {
    text-align: center; padding: 36px 16px; color: rgba(255,255,255,.25); font-size: .88rem;
}
#panel-jackpot .jp-jugadores-empty {
    padding: 24px; text-align: center; color: rgba(255,255,255,.25); font-size: .82rem;
}
#panel-jackpot .jp-donut-empty {
    padding: 44px 24px; text-align: center; color: rgba(255,255,255,.28); font-size: .88rem;
}
#panel-jackpot .jp-donut-empty-icon { font-size: 2.6rem; margin-bottom: 10px; opacity: .4; }

/* Login card */
#panel-jackpot .mj-card--login {
    background: linear-gradient(160deg, rgba(28,18,6,.98) 0%, rgba(12,8,4,.99) 100%);
    border: 1px solid rgba(255,215,64,.14); border-radius: var(--jp-radius);
    margin-bottom: 20px;
}
#panel-jackpot .mj-card--login .mj-card-body { padding: 32px 20px; text-align: center; }
#panel-jackpot .mj-btn--steam {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border: none; border-radius: 11px; color: #fff;
    font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 800;
    padding: 11px 22px; cursor: pointer; text-decoration: none;
    transition: box-shadow .2s, transform .12s;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
#panel-jackpot .mj-btn--steam:hover { box-shadow: 0 8px 20px rgba(0,0,0,.5); transform: translateY(-1px); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) { #panel-jackpot .jp-layout { grid-template-columns: 300px 1fr; } }
@media (max-width: 900px) {
    #panel-jackpot .jp-layout { grid-template-columns: 1fr; padding: 20px 14px 0; }
    #panel-jackpot .jp-donut-wrap { flex-direction: column; }
}
@media (max-width: 600px) {
    #panel-jackpot .jp-hero { padding: 24px 16px 0; }
    #panel-jackpot .jp-how { display: none; }
    #panel-jackpot #jp-result-modal .jp-modal-box { padding: 30px 20px; }
    #panel-jackpot .jp-pot-value { font-size: 2rem; }
    #panel-jackpot #jp-ruleta-canvas { width: 260px !important; height: 260px !important; }
}
