/* ==========================================================================
   EMUPLAYERS CMS - PREMIUM MODULES STYLESHEET
   ========================================================================== */
:root {
    --ep-gold: #ffb400;
    --ep-gold-glow: rgba(255, 180, 0, 0.3);
    --ep-red: #ef4444;
    --ep-red-glow: rgba(239, 68, 68, 0.3);
    --ep-green: #10b981;
    --ep-bg-glass: rgba(19, 21, 25, 0);
    --ep-bg-dark: rgba(10, 12, 15, 0.95);
    --ep-border: rgba(255, 255, 255, 0.08);
    --ep-border-hover: rgba(255, 255, 255, 0.2);
    --ep-text-main: #ffffff;
    --ep-text-muted: #888888;
}

/* Contenedor Principal */
.ep-wrapper {
    background: var(--ep-bg-glass); 
    /* border: 1px solid var(--ep-border); */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border-radius: 4px; */
    /* padding: 30px; */
    margin-bottom: 30px;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.5); */
}

/* Alertas */
.ep-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ep-alert.success { background: rgba(16, 185, 129, 0.1); border-left: 4px solid var(--ep-green); color: var(--ep-green); }
.ep-alert.error { background: rgba(239, 68, 68, 0.1); border-left: 4px solid var(--ep-red); color: var(--ep-red); }

/* Grid de Personajes y Tarjetas */
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ep-card {
    background: var(--ep-bg-dark);
    border: 1px solid var(--ep-border);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ep-card:hover {
    border-color: var(--ep-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.ep-card.active {
    border-color: var(--ep-gold);
    box-shadow: 0 0 15px var(--ep-gold-glow);
}
.ep-card.active::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--ep-gold);
}
.ep-card-title { color: var(--ep-text-main); font-size: 18px; margin: 0 0 5px 0; font-weight: 700; text-transform: uppercase; }
.ep-card-desc { color: var(--ep-text-muted); font-size: 12px; margin: 0; }

/* Panel de Acción (Dashboard interno) */
.ep-action-panel {
    background: var(--ep-bg-dark);
    border: 1px solid var(--ep-border);
    padding: 30px;
    border-radius: 4px;
    margin-top: 30px;
    display: none; /* Oculto por defecto, revelado por JS */
}

/* Formularios y Tablas */
.ep-input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--ep-border);
    color: var(--ep-text-main);
    padding: 12px 15px;
    border-radius: 4px;
    outline: none;
    transition: border 0.3s;
}
.ep-input:focus { border-color: var(--ep-gold); }

.ep-btn {
    width: 100%;
    background: var(--ep-gold);
    color: #000;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}
.ep-btn:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 0 15px var(--ep-gold-glow); }
.ep-btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; }

.ep-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.ep-table th, .ep-table td { padding: 15px; border-bottom: 1px solid var(--ep-border); text-align: left; }
.ep-table th { color: var(--ep-gold); font-weight: 600; text-transform: uppercase; font-size: 13px; }
.ep-table td { color: var(--ep-text-main); font-size: 14px; }

/* Modales Propios */
.ep-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    z-index: 10000; display: none;
}
.ep-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    background: var(--ep-bg-glass); border: 1px solid var(--ep-border); border-top: 3px solid var(--ep-gold);
    padding: 30px; border-radius: 4px; z-index: 10001; width: 100%; max-width: 450px;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; box-shadow: 0 15px 50px rgba(0,0,0,0.8);
}
.ep-modal.show { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.ep-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--ep-text-muted); cursor: pointer; font-size: 18px; }
.ep-modal-close:hover { color: var(--ep-red); }

/* --- MARKET MODULE STYLES --- */
.ep-vault-container { width: 100%; max-width: 600px; margin: 0 auto; background: rgba(0,0,0,0.8); border: 2px solid #333; padding: 5px; }
.ep-vault-grid { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(15, minmax(35px, auto)); gap: 1px; position: relative; }
.ep-vault-slot { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.02); }
.ep-vault-item-block { background: rgba(255, 180, 0, 0.15); border: 1px solid var(--ep-gold); position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all 0.2s; }
.ep-vault-item-block:hover { background: rgba(255, 180, 0, 0.3); z-index: 100; box-shadow: 0 0 15px var(--ep-gold-glow); }
.ep-vault-item-img { max-width: 90%; max-height: 90%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8)); }

.ep-market-card { background: var(--ep-bg-dark); border: 1px solid var(--ep-border); border-radius: 4px; padding: 15px; position: relative; transition: all 0.3s ease; }
.ep-market-card:hover { border-color: var(--ep-gold); box-shadow: 0 5px 15px rgba(0,0,0,0.5); transform: translateY(-3px); }
.ep-mc-seller { position: absolute; top: 10px; left: 10px; font-size: 11px; color: var(--ep-text-muted); background: rgba(0,0,0,0.8); padding: 3px 8px; border-radius: 2px; }
.ep-mc-img-box { height: 120px; display: flex; align-items: center; justify-content: center; margin: 15px 0; position: relative; }
.ep-mc-img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.8)); }
.ep-mc-name { color: #fff; font-size: 14px; text-align: center; margin: 0 0 10px 0; font-weight: bold; }
.ep-mc-badges { display: flex; gap: 5px; justify-content: center; margin-bottom: 10px; }
.ep-badge-exc { background: rgba(16, 185, 129, 0.2); color: var(--ep-green); font-size: 10px; padding: 2px 6px; border-radius: 2px; font-weight: bold; border: 1px solid var(--ep-green); }
.ep-badge-sock { background: rgba(96, 165, 250, 0.2); color: #60a5fa; font-size: 10px; padding: 2px 6px; border-radius: 2px; font-weight: bold; border: 1px solid #60a5fa; }
.ep-mc-price { text-align: center; font-size: 20px; font-weight: bold; margin-bottom: 15px; }

/* Tooltip nativo de Mu */
.mu-tooltip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.95); border: 1px solid #333; padding: 10px; min-width: 200px; text-align: center; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.9); border-top: 2px solid var(--ep-gold); pointer-events: none; }
.ep-vault-item-block:hover .mu-tooltip, .ep-mc-img-box:hover .mu-tooltip { display: block; }
.mu-tt-title { font-weight: bold; font-size: 14px; margin-bottom: 5px; }
.mu-tt-blue { color: #60a5fa; font-size: 11px; margin-bottom: 2px; }
.mu-tt-exc { color: #10b981; font-size: 11px; margin-bottom: 2px; }
.mu-tt-harmony { color: #facc15; font-size: 11px; margin-top: 6px; }
.mu-tt-socket { color: #c084fc; font-size: 11px; margin-top: 2px; }

/* --- EXTRA WEBSHOP MAKER --- */
.ep-flash-ribbon { position: absolute; top: 15px; left: -35px; background: var(--ep-red); color: #fff; font-size: 11px; font-weight: bold; padding: 5px 40px; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4); text-transform: uppercase; letter-spacing: 1px; z-index: 10; }
.ep-badge { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; }

/* Custom Checkboxes the Right Way */
.ep-chk-container { display: flex; align-items: center; cursor: pointer; user-select: none; gap: 10px; position: relative; }
.ep-chk-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.ep-chk-mark { height: 20px; width: 20px; background-color: rgba(0,0,0,0.5); border: 2px solid var(--ep-border); border-radius: 4px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.ep-chk-container:hover input ~ .ep-chk-mark { border-color: var(--ep-gold); }
.ep-chk-container input:checked ~ .ep-chk-mark { background-color: var(--ep-gold); border-color: var(--ep-gold); }
.ep-chk-container input:checked ~ .ep-chk-mark.green { background-color: var(--ep-green); border-color: var(--ep-green); }
.ep-chk-mark:after { content: ""; display: none; width: 5px; height: 10px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 2px; }
.ep-chk-container input:checked ~ .ep-chk-mark:after { display: block; }

/* Custom Slider */
.ep-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; background: rgba(0,0,0,0.5); border: 1px solid var(--ep-border); border-radius: 4px; outline: none; }
.ep-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ep-gold); cursor: pointer; border: 2px solid #000; box-shadow: 0 0 10px var(--ep-gold-glow); }
.ep-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ep-gold); cursor: pointer; border: 2px solid #000; box-shadow: 0 0 10px var(--ep-gold-glow); }

/* --- PACKS MODULE STYLES --- */
.ep-pack-card { position: relative; overflow: hidden; }
.ep-pack-card:hover img { transform: scale(1.05); filter: brightness(1); }
.ep-pack-badge { position: absolute; top: 15px; right: -30px; background: var(--ep-gold); color: #000; font-size: 11px; font-weight: bold; padding: 5px 40px; transform: rotate(45deg); box-shadow: 0 4px 10px rgba(0,0,0,0.8); text-transform: uppercase; letter-spacing: 1px; z-index: 10; }

/* --- ARENA CANVAS & BRACKETS (UNDEAD EXCLUSIVE) --- */
.ep-arena-card:hover i.fa-user-ninja, .ep-arena-card:hover i.fa-shield { opacity: 0.15 !important; transform: scale(1.2); transition: all 0.3s; }

.ep-arena-canvas {
    position: relative;
    width: 1200px; /* Ancho fijo forzado para que el posicionamiento absoluto funcione perfecto */
    height: 800px;     
    background-image: url('/assets/default_assets/images/arena.png');
    background-size: 100% 100%; 
    background-repeat: no-repeat;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), inset 0 0 50px rgba(0,0,0,0.9);
}

/* El formato base de las casillas de texto */
.ep-bracket-slot {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 120px; 
    z-index: 10;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 3px #000, -1px -1px 3px #000;
    transition: all 0.3s;
}

.ep-b-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.ep-b-score { font-family: monospace; color: var(--ep-gold); }

/* Estados Dinámicos */
.ep-bracket-slot.winner { color: var(--ep-gold); text-shadow: 0 0 10px rgba(248, 183, 0, 0.6), 1px 1px 3px #000; filter: brightness(1.2); font-size: 14px; }
.ep-bracket-slot.loser { filter: grayscale(1) opacity(0.5); }
.ep-bracket-slot.disqualified { color: var(--ep-red); text-decoration: line-through; opacity: 0.7; }
.ep-bracket-slot.disqualified .ep-b-score { display: none; }

/* Casillas Especiales (Semi y Final) */
.ep-bracket-slot[class*="r4-"] { width: 140px; font-size: 15px; }
.ep-bracket-slot[class*="r2-"] { width: 160px; font-size: 18px; color: var(--ep-gold); text-shadow: 0 0 15px rgba(248,183,0,0.8), 2px 2px 5px #000; }

/* Fechas Flotantes */
.ep-bracket-date {
    position: absolute;
    color: var(--ep-gold);
    font-size: 14px;
    font-family: monospace;
    font-weight: bold;
    text-shadow: 1px 1px 4px #000;
    background: rgba(0,0,0,0.6);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* =========================================================
   POSICIONAMIENTO ABSOLUTO (ENVIADO POR EL USUARIO)
   ========================================================= */

/* OCTAVOS */
.r16-m0-p1 { top: 110px; left: 80px; } .r16-m0-p2 { top: 180px; left: 80px; }
.r16-m1-p1 { top: 255px; left: 80px; } .r16-m1-p2 { top: 325px; left: 80px; }
.r16-m2-p1 { top: 400px; left: 80px; } .r16-m2-p2 { top: 470px; left: 80px; }
.r16-m3-p1 { top: 555px; left: 80px; } .r16-m3-p2 { top: 625px; left: 80px; }

.r16-m4-p1 { top: 110px; left: 1060px; } .r16-m4-p2 { top: 180px; left: 1060px; }
.r16-m5-p1 { top: 255px; left: 1060px; } .r16-m5-p2 { top: 325px; left: 1060px; }
.r16-m6-p1 { top: 400px; left: 1060px; } .r16-m6-p2 { top: 470px; left: 1060px; }
.r16-m7-p1 { top: 555px; left: 1060px; } .r16-m7-p2 { top: 625px; left: 1060px; }

/* CUARTOS */
.r8-m0-p1 { top: 220px; left: 325px; } .r8-m0-p2 { top: 245px; left: 325px; }
.r8-m1-p1 { top: 510px; left: 325px; } .r8-m1-p2 { top: 533px; left: 325px; }

.r8-m2-p1 { top: 220px; left: 835px; } .r8-m2-p2 { top: 245px; left: 835px; }
.r8-m3-p1 { top: 510px; left: 835px; } .r8-m3-p2 { top: 533px; left: 835px; }

/* SEMIFINALES */
.r4-m0-p1 { top: 378px; left: 420px; } .r4-m0-p2 { top: 400px; left: 420px; }
.r4-m1-p1 { top: 378px; left: 740px; } .r4-m1-p2 { top: 400px; left: 740px; }

/* LA GRAN FINAL */
.r2-m0-p1 { top: 350px; left: 580px; } .r2-m0-p2 { top: 375px; left: 580px; }

/* FECHAS */
.date-r16 { top: 760px; left: 300px; } 
.date-r8  { top: 760px; left: 460px; } 
.date-r4  { top: 760px; left: 650px; } 
.date-r2  { top: 760px; left: 810px; }

/* --- BATTLEPASS COMPONENTS (UNDEAD) --- */

/* Track / Camino */
.ep-bp-track { display: flex; min-width: max-content; position: relative; padding: 40px 0; align-items: center; }
.ep-bp-line-bg { position: absolute; top: 50%; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.05); z-index: 1; transform: translateY(-50%); }
.ep-bp-line-fill { position: absolute; top: 50%; left: 0; height: 4px; background: var(--ep-gold); z-index: 2; transform: translateY(-50%); box-shadow: 0 0 10px var(--ep-gold-glow); transition: width 1s ease; }

.ep-bp-col { display: flex; flex-direction: column; align-items: center; width: 100px; position: relative; z-index: 3; justify-content: space-between; gap: 30px; }
.ep-bp-node { width: 35px; height: 35px; background: var(--ep-bg-dark); border: 2px solid var(--ep-border); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 13px; color: var(--ep-text-muted); font-weight: bold; transition: 0.3s; z-index: 5; }
.ep-bp-node.unlocked { border-color: var(--ep-gold); background: rgba(255,180,0,0.1); color: var(--ep-gold); box-shadow: 0 0 15px var(--ep-gold-glow); }

/* Reward Boxes */
.ep-bp-reward-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.ep-bp-reward-wrap.ep-bp-reverse { flex-direction: column-reverse; }

.ep-bp-box { background: rgba(0,0,0,0.6); border: 1px solid var(--ep-border); border-radius: 4px; padding: 10px; width: 80px; height: 80px; text-align: center; position: relative; transition: 0.3s; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; }
.ep-bp-box.ep-bp-premium-box { border-color: rgba(255,180,0,0.3); background: rgba(255,180,0,0.05); }
.ep-bp-box:hover { border-color: var(--ep-text-main); transform: scale(1.05); z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }

.ep-bp-img { max-width: 40px; max-height: 40px; object-fit: contain; margin-bottom: 5px; }
.ep-bp-img.ep-glow-exc { filter: drop-shadow(0 0 8px var(--ep-green)); }
.ep-bp-short-lbl { font-size: 9px; color: var(--ep-text-muted); text-transform: uppercase; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* Botones de Acción (Reclamos) */
.ep-bp-action-btn { padding: 4px 0; font-size: 9px; font-weight: bold; border-radius: 3px; text-transform: uppercase; text-align: center; width: 80px; letter-spacing: 0.5px; transition: 0.3s; text-decoration: none; }
.ep-bp-action-btn.claim { background: var(--ep-gold); color: #000; box-shadow: 0 0 10px var(--ep-gold-glow); border: 1px solid var(--ep-gold); }
.ep-bp-action-btn.claim:hover { background: #fff; border-color: #fff; }
.ep-bp-action-btn.locked { background: rgba(255,255,255,0.05); color: var(--ep-text-muted); border: 1px solid var(--ep-border); cursor: not-allowed; }
.ep-bp-action-btn.claimed { background: rgba(16,185,129,0.1); color: var(--ep-green); border: 1px solid rgba(16,185,129,0.3); }

/* Mission Cards */
.ep-bp-mission-card { position: relative; overflow: hidden; }
.ep-bp-mission-card.completed { border-color: var(--ep-green); background: rgba(16,185,129,0.05); }
.ep-bp-m-reward { position: absolute; top: 20px; right: 20px; color: var(--ep-gold); font-weight: bold; font-family: monospace; font-size: 14px; }
.ep-bp-m-bar-bg { height: 8px; background: rgba(0,0,0,0.5); border-radius: 4px; overflow: hidden; margin-top: 15px; border: 1px solid var(--ep-border); }
.ep-bp-m-bar-fill { height: 100%; background: var(--ep-gold); box-shadow: inset 0 0 5px rgba(255,255,255,0.3); transition: width 1s ease; }
.ep-bp-mission-card.completed .ep-bp-m-bar-fill { background: var(--ep-green); }
.ep-bp-m-bar-text { display: flex; justify-content: space-between; font-size: 11px; color: var(--ep-text-muted); margin-top: 8px; font-weight: bold; text-transform: uppercase; }

/* --- CASTLE SIEGE COMPONENTS (UNDEAD) --- */
.ep-cs-shield-box { width: 110px; height: 110px; padding: 10px; background: rgba(0,0,0,0.8); border: 2px solid var(--ep-border); border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; position: relative; z-index: 2; }
.ep-cs-shield-box.occupied { border-color: var(--ep-gold); box-shadow: 0 0 25px rgba(248,183,0,0.4); }
.ep-cs-shield-box.empty { filter: grayscale(100%); opacity: 0.8; }

/* Timeline */
.ep-cs-timeline-container { display: flex; justify-content: space-between; position: relative; max-width: 900px; margin: 0 auto; }
.ep-cs-timeline-bg { position: absolute; top: 20px; left: 5%; width: 90%; height: 2px; background: rgba(255,255,255,0.05); z-index: 1; }
.ep-cs-node { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; width: 20%; gap: 12px; }
.ep-cs-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--ep-bg-dark); border: 2px solid var(--ep-border); display: flex; align-items: center; justify-content: center; color: var(--ep-text-muted); transition: 0.3s; font-size: 16px; }
.ep-cs-node-name { font-size: 11px; text-transform: uppercase; color: var(--ep-text-muted); font-weight: bold; letter-spacing: 1px; text-align: center; line-height: 1.4; }

.ep-cs-node.active .ep-cs-dot { background: rgba(239,68,68,0.1); border-color: var(--ep-red); color: var(--ep-red); box-shadow: 0 0 20px rgba(239,68,68,0.5), inset 0 0 10px rgba(239,68,68,0.2); animation: csPulseRed 2s infinite; }
.ep-cs-node.active .ep-cs-node-name { color: var(--ep-red); text-shadow: 0 0 10px rgba(239,68,68,0.5); }
.ep-cs-node.passed .ep-cs-dot { background: var(--ep-gold); border-color: var(--ep-gold); color: #000; box-shadow: 0 0 10px rgba(248,183,0,0.4); }
.ep-cs-node.passed .ep-cs-node-name { color: #ccc; }
@keyframes csPulseRed { 0% { box-shadow: 0 0 10px rgba(239,68,68,0.5); } 50% { box-shadow: 0 0 25px rgba(239,68,68,0.8); } 100% { box-shadow: 0 0 10px rgba(239,68,68,0.5); } }

/* Arena Defender VS Attacker */
.ep-cs-arena { display: flex; align-items: center; justify-content: space-between; padding: 40px; margin-bottom: 40px; position: relative; }
.ep-cs-arena::before { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.05), transparent); }
.ep-cs-side { width: 40%; text-align: center; position: relative; z-index: 2; }
.ep-cs-vs { width: 10%; display: flex; justify-content: center; position: relative; z-index: 2; }
.ep-cs-vs-circle { width: 50px; height: 50px; background: var(--ep-bg-dark); border: 2px solid var(--ep-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 16px; font-weight: bold; color: #fff; box-shadow: 0 0 20px rgba(0,0,0,0.8); }

.ep-cs-atk-card { display: flex; align-items: center; background: rgba(0,0,0,0.4); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 4px; padding: 10px 15px; transition: 0.3s; }
.ep-cs-atk-card:hover { transform: translateX(-5px); border-color: var(--ep-red); box-shadow: 0 0 15px rgba(239,68,68,0.2); }

/* Treasury & Taxes */
.ep-cs-tax-card { padding: 30px 20px; text-align: center; border-top: 3px solid transparent; transition: 0.3s; }
.ep-cs-tax-card:hover { transform: translateY(-5px); border-top-color: var(--ep-gold); background: rgba(255,255,255,0.02); }
.ep-cs-tax-card i { font-size: 30px; color: var(--ep-text-muted); margin-bottom: 15px; transition: 0.3s; }
.ep-cs-tax-card:hover i { color: #fff; }
.ep-cs-tax-card .tax-name { display: block; color: var(--ep-text-muted); font-size: 11px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; margin-bottom: 10px; }
.ep-cs-tax-card .tax-rate { display: block; color: var(--ep-green); font-family: var(--font-title); font-size: 28px; }

/* Mob Cards */
.ep-cs-mob-card { text-align: center; transition: 0.3s; padding: 20px; background: rgba(0,0,0,0.4); }
.ep-cs-mob-card:hover { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 20px rgba(239,68,68,0.1); transform: translateY(-5px); }
.ep-cs-mob-card .mob-img { height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.ep-cs-mob-card .mob-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.9)); transition: 0.3s; }
.ep-cs-mob-card:hover .mob-img img { transform: scale(1.1); filter: drop-shadow(0 10px 20px rgba(239,68,68,0.5)); }
.ep-cs-mob-card.boss:hover .mob-img img { filter: drop-shadow(0 10px 20px rgba(248,183,0,0.6)); }

.ep-cs-mob-card .mob-name { color: #fff; font-size: 15px; font-weight: bold; margin: 0 0 5px 0; text-transform: uppercase; }
.ep-cs-mob-card .mob-lvl { color: var(--ep-text-muted); font-size: 11px; margin-bottom: 15px; display: block; font-weight: bold; }
.ep-cs-mob-card .mob-stats { display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 4px; }
.ep-cs-mob-card .m-stat { display: flex; justify-content: space-between; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.02); padding-bottom: 4px; }
.ep-cs-mob-card .m-stat:last-child { border: none; padding: 0; }
.ep-cs-mob-card .m-stat span { color: #888; text-transform: uppercase; font-size: 10px; font-weight: bold; }
.ep-cs-mob-card .m-stat strong { color: #d1d1d1; font-family: monospace; font-size: 13px; }

/* Codex Tabs & Skills */
.ep-cs-tab-btn { flex: 1; background: transparent; border: none; padding: 20px; color: var(--ep-text-muted); font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; position: relative; }
.ep-cs-tab-btn:hover { color: #fff; background: rgba(255,255,255,0.02); }
.ep-cs-tab-btn.active { color: var(--ep-gold); background: rgba(255,180,0,0.05); }
.ep-cs-tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--ep-gold); box-shadow: 0 0 15px var(--ep-gold-glow); }

.ep-cs-skill-card { display: flex; align-items: flex-start; gap: 20px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); padding: 20px; border-radius: 4px; transition: 0.3s; }
.ep-cs-skill-card:hover { background: rgba(255,255,255,0.02); border-color: rgba(59, 130, 246, 0.3); }
.ep-cs-skill-card .skill-icon { width: 50px; height: 50px; background: var(--ep-bg-dark); border: 1px solid var(--ep-border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--ep-gold); flex-shrink: 0; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); }

.ep-cs-skill-card .s-name { margin: 0 0 5px 0; color: #fff; font-size: 14px; font-weight: bold; text-transform: uppercase; }
.ep-cs-skill-card .s-class { display: block; color: #3b82f6; font-size: 11px; margin-bottom: 10px; font-weight: bold; }
.ep-cs-skill-card .s-req { display: inline-block; background: rgba(239, 68, 68, 0.1); color: var(--ep-red); border: 1px solid rgba(239,68,68,0.3); padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: bold; margin-bottom: 10px; }
.ep-cs-skill-card .s-stats { display: flex; gap: 15px; font-size: 12px; color: #aaa; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
.ep-cs-skill-card .s-stats strong { color: #fff; font-family: monospace; font-size: 13px; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ep-cs-treasury-grid { grid-template-columns: 1fr; }
    .ep-cs-taxes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ep-cs-arena { flex-direction: column; gap: 40px; }
    .ep-cs-arena::before { display: none; }
    .ep-cs-side { width: 100%; }
    .ep-cs-node-name { display: none; }
    .ep-cs-taxes-grid { grid-template-columns: 1fr; }
}

/* --- VIP MEMBERSHIPS COMPONENTS (UNDEAD) --- */
.ep-vip-grid { 
    display: flex; flex-wrap: wrap; justify-content: center; 
    gap: 30px; margin-bottom: 50px; align-items: stretch; 
}

.ep-vip-card { 
    width: 100%; max-width: 340px; min-width: 280px; flex: 1;
    background: var(--ep-bg-dark); border: 1px solid var(--ep-border); 
    border-radius: 6px; display: flex; flex-direction: column; position: relative; 
    transition: 0.3s cubic-bezier(0.5, 0, 0.5, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}
.ep-vip-card:hover { transform: translateY(-10px); }

/* --- TIER COLORS --- */
.ep-vip-card.tier-1 { border-top: 3px solid #cd7f32; }
.ep-vip-card.tier-1:hover { border-color: #cd7f32; box-shadow: 0 15px 30px rgba(205, 127, 50, 0.2); }
.ep-vip-card.tier-1 .ep-vip-title { color: #cd7f32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.3); }
.ep-vip-card.tier-1 .ep-vip-icon { color: #cd7f32; filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.3)); }
.ep-vip-card.tier-1 .ep-vip-benefits li i { color: #cd7f32; }

.ep-vip-card.tier-2 { border-top: 3px solid #94a3b8; }
.ep-vip-card.tier-2:hover { border-color: #94a3b8; box-shadow: 0 15px 30px rgba(148, 163, 184, 0.2); }
.ep-vip-card.tier-2 .ep-vip-title { color: #94a3b8; text-shadow: 0 0 10px rgba(148, 163, 184, 0.3); }
.ep-vip-card.tier-2 .ep-vip-icon { color: #94a3b8; filter: drop-shadow(0 0 10px rgba(148, 163, 184, 0.3)); }
.ep-vip-card.tier-2 .ep-vip-benefits li i { color: #94a3b8; }

.ep-vip-card.is-featured { 
    border-top: 3px solid var(--ep-gold); transform: scale(1.05); 
    box-shadow: 0 15px 40px rgba(248, 183, 0, 0.15); z-index: 2;
    background: linear-gradient(to bottom, #15151a, #050505);
}
.ep-vip-card.is-featured:hover { transform: scale(1.05) translateY(-10px); border-color: var(--ep-gold); box-shadow: 0 20px 50px rgba(248, 183, 0, 0.4); }
.ep-vip-card.is-featured .ep-vip-title { color: var(--ep-gold); text-shadow: 0 0 15px rgba(248, 183, 0, 0.5); }
.ep-vip-card.is-featured .ep-vip-icon { color: var(--ep-gold); filter: drop-shadow(0 0 15px rgba(248,183,0,0.5)); }
.ep-vip-card.is-featured .ep-vip-benefits li i { color: var(--ep-gold); }
.ep-vip-card.is-featured .ep-vip-btn { background: var(--ep-gold); color: #000; border: none; }
.ep-vip-card.is-featured .ep-vip-btn:hover { background: #fff; box-shadow: 0 0 20px rgba(248, 183, 0, 0.6); }

/* --- ESTRUCTURA DE LA TARJETA VIP --- */
.ep-vip-ribbon { position: absolute; top: 15px; right: -35px; background: var(--ep-gold); color: #000; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 5px 40px; transform: rotate(45deg); box-shadow: 0 5px 10px rgba(248,183,0,0.4); z-index: 10; }

.ep-vip-header { padding: 40px 20px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; }
.ep-vip-icon { font-size: 60px; margin-bottom: 20px; display: block; }
.ep-vip-img { height: 70px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8)); display: block; margin: 0 auto 20px; }
.ep-vip-title { font-size: 24px; font-weight: 800; margin: 0 0 10px; text-transform: uppercase; }
.ep-vip-duration { font-size: 11px; color: var(--ep-text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }

.ep-vip-price-box { padding: 25px 20px; text-align: center; background: rgba(0,0,0,0.4); border-bottom: 1px solid rgba(255,255,255,0.02); }
.ep-vip-price { font-family: monospace; font-size: 42px; font-weight: bold; color: #fff; line-height: 1; display: block; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.ep-vip-currency { font-size: 12px; color: var(--ep-text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 2px; }

.ep-vip-benefits { padding: 30px; flex-grow: 1; }

.ep-vip-action { padding: 25px 30px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto; }
.ep-vip-btn { width: 100%; padding: 15px !important; font-size: 14px !important; letter-spacing: 1px; background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.ep-vip-btn:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

@media (max-width: 1024px) {
    .ep-vip-card.is-featured { transform: scale(1); }
    .ep-vip-card.is-featured:hover { transform: translateY(-10px); }
}

/* --- RAFFLE BOARD STYLES --- */
.ep-raffle-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 4px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}
.ep-raffle-board::-webkit-scrollbar { width: 5px; }
.ep-raffle-board::-webkit-scrollbar-thumb { background: var(--ep-gold); border-radius: 5px; }

.ep-raffle-ticket {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--ep-border);
    color: var(--ep-text-muted);
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}
.ep-raffle-ticket.free:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
    transform: scale(1.1);
    z-index: 10;
}
.ep-raffle-ticket.selected {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--ep-green);
    color: var(--ep-green);
    box-shadow: 0 0 10px rgba(16,185,129,0.3);
}
.ep-raffle-ticket.sold {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--ep-red);
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}
.ep-raffle-ticket.mine {
    background: rgba(248, 183, 0, 0.2);
    border-color: var(--ep-gold);
    color: var(--ep-gold);
    box-shadow: inset 0 0 5px rgba(248,183,0,0.5);
    cursor: default;
}

.ep-cart-chip {
    background: rgba(16,185,129,0.2);
    color: var(--ep-green);
    border: 1px solid var(--ep-green);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 11px;
    font-weight: bold;
}

/* Estilos Locales VIP */
    .ep-vip-stat-box {
        flex: 1;
        text-align: center;
        background: rgba(0,0,0,0.6);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 6px;
        padding: 15px;
        position: relative;
        overflow: hidden;
    }
    .ep-vip-stat-box::before {
        content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    }
    .ep-vip-stat-box.st-total::before { background: #3b82f6; }
    .ep-vip-stat-box.st-sold::before { background: var(--ep-red); }
    .ep-vip-stat-box.st-free::before { background: var(--ep-green); }
    .ep-vip-stat-box.st-pct::before { background: var(--ep-gold); box-shadow: 0 0 10px var(--ep-gold-glow); }
    
    .ep-vip-stat-value { font-size: 26px; font-weight: 900; font-family: monospace; display: block; line-height: 1; margin-bottom: 5px; }
    .ep-vip-stat-label { font-size: 11px; color: var(--ep-text-muted); text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }

    .ep-reward-item {
        background: rgba(0,0,0,0.5);
        border: 1px solid rgba(255,255,255,0.1);
        padding: 12px 15px;
        border-radius: 4px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        font-weight: bold;
        color: #fff;
        transition: 0.3s;
    }
    .ep-reward-item:hover {
        background: rgba(255,255,255,0.05);
        border-color: var(--ep-gold);
        transform: translateX(5px);
    }

/* =========================================
       GIFT CODE WIDGET (IZQUIERDA)
       ========================================= */
    .gift-widget-btn {
        position: fixed; bottom: 30px; left: 30px; z-index: 9998;
        width: 110px; height: auto; background: transparent; border: none; box-shadow: none;
        cursor: pointer; display: flex; justify-content: center; align-items: center;
        transition: transform 0.3s; animation: cardFloat 3s ease-in-out infinite;
    }
    .gift-widget-btn:hover { transform: scale(1.08); animation: none; }
    .gift-widget-btn img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.7)); mix-blend-mode: normal; }

    @keyframes cardFloat {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-12px); filter: brightness(1.1); }
        100% { transform: translateY(0px); }
    }

    .gift-popup {
        position: fixed; bottom: 110px; left: 30px; z-index: 9999;
        width: 700px; 
        transform: translateY(20px); opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .gift-popup.show { transform: translateY(0); opacity: 1; visibility: visible; }

    .gift-card-wrapper {
        position: relative; width: 100%; height: auto;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.9)); 
    }

    .gift-card-bg {
        width: 100%; height: auto; display: block; border-radius: 12px;
    }

    .gift-popup-close {
        position: absolute; top: 60px; right: 130px; z-index: 10;
        color: #fff; font-size: 18px; cursor: pointer; transition: 0.3s;
        text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    }
    .gift-popup-close:hover { color: #ef4444; transform: scale(1.2); }
    
    #giftForm {
        position: absolute;
        z-index: 5;
        top: 61%;   
        left: 27%;  
        width: 45%; 
        height: 28px; 
        display: flex;
        gap: 5px; 
    }

    .gift-input { 
        position: relative; 
        flex: 1; 
        height: 100%;
        background: transparent; border: none; color: #d4af37; padding: 0 10px; 
        font-size: 14px; text-transform: uppercase; font-weight: bold; text-align: center; 
        outline: none; transition: 0.3s; box-sizing: border-box;
    }
    .gift-input:focus { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
    .gift-input::placeholder { color: #aaa; font-weight: normal; }

    .gift-btn { 
        position: relative; 
        width: 140px; 
        height: 100%;
        background: linear-gradient(to bottom, #eab20841, #a16207); border: 1px solid #facc1542; 
        color: #000; border-radius: 6px; font-weight: 900; font-size: 11px; 
        text-transform: uppercase; cursor: pointer; transition: 0.3s; 
        display: flex; justify-content: center; align-items: center; 
        text-shadow: 0 1px 2px rgba(255,255,255,0.3); padding: 0 10px; margin: 0;
    }
    .gift-btn:hover { box-shadow: 0 5px 15px rgba(234, 179, 8, 0.4); transform: translateY(-2px); filter: brightness(1.1); }
    .gift-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

    .gift-alert { 
        position: absolute; z-index: 5;
        top: 49%; 
        left: 30%; 
        width: 40%; 
        padding: 2px; border-radius: 6px; font-size: 11px; font-weight: 700; display: none; text-align: center; line-height: 1.3; box-sizing: border-box; backdrop-filter: blur(5px);
    }
    .gift-alert.success { background: rgba(16, 185, 129, 0); border: 1px solid #10b98100; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0); }
    .gift-alert.error { background: rgba(239, 68, 68, 0); border: 1px solid #ef444400; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0); }

/* --- CASINO MODULE --- */
.casino-header {
    text-align: center;
    padding: 50px 20px;
    background: radial-gradient(circle at 50% 50%, rgba(199, 103, 0, 0.15) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom: 2px solid var(--wow-gold-600);
    margin-bottom: 40px;
}

.casino-header h1 {
    font-family: var(--font-title);
    color: var(--wow-gold-500);
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(199, 103, 0, 0.8);
    margin-bottom: 10px;
}

.casino-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.casino-card {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid rgba(199, 103, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.casino-card:hover {
    transform: translateY(-15px);
    border-color: var(--wow-gold-600);
    box-shadow: 0 20px 50px rgba(199, 103, 0, 0.4);
}

.casino-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at center, rgba(199, 103, 0, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.casino-card:hover::before {
    opacity: 1;
}

.casino-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.6s ease;
}

.casino-card:hover::after {
    left: 200%;
}

.casino-card-icon {
    padding: 50px 0 20px 0;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.casino-card-icon img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s;
    filter: drop-shadow(0 0 15px rgba(248, 183, 0, 0.3));
}

.casino-card:hover .casino-card-icon img {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 10px var(--wow-gold-500));
}

.casino-card-title {
    font-family: var(--font-title);
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.casino-card-desc {
    color: #aaa;
    font-size: 0.95rem;
    padding: 0 30px 30px 30px;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.casino-limits {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-top: 1px solid rgba(199, 103, 0, 0.2);
    color: var(--wow-gold-500);
    font-size: 0.9rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.casino-card:hover .casino-limits {
    background: rgba(199, 103, 0, 0.1);
    border-top-color: rgba(199, 103, 0, 0.5);
}

.disabled-card {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.disabled-card:hover {
    transform: none;
    border-color: rgba(199, 103, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.disabled-card:hover .casino-card-icon img {
    transform: none;
    filter: grayscale(100%);
}

.badge-soon {
    position: absolute;
    top: 25px;
    right: -35px;
    background: #b91c1c;
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.casino-game-header {
    text-align: center;
    padding: 30px;
    border-bottom: 1px solid rgba(199, 103, 0, 0.3);
    margin-bottom: 30px;
}

.casino-game-header h2 {
    font-family: var(--font-title);
    color: var(--wow-gold-500);
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.casino-game-header p {
    color: var(--text-muted);
    margin: 0;
}

.casino-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

/* ROULETTE WHEEL 3D */
.roulette-container {
    margin: 0 auto;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #5a3a1f, #2a1a0f);
    border: 15px solid #3e2211;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.roulette-wheel {
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: #000;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}

.wheel-slot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 10%;
    height: 50%;
    margin-left: -5%;
    transform-origin: bottom center;
    display: flex;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wheel-num {
    position: absolute;
    top: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.roulette-center {
    position: absolute;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, #facc15, #ca8a04);
    border-radius: 50%;
    border: 3px solid #854d0e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 3rem;
    color: #000;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.roulette-pointer {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 25px solid #fff;
    z-index: 3;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}

/* CASINO BOARD (FELT) */
.roulette-board {
    background: #0b5c22;
    border: 5px solid #3e2211;
    border-radius: 10px;
    padding: 10px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 10px 20px rgba(0, 0, 0, 0.6);
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.board-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    background: transparent;
}

.board-main {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.zero-zone {
    flex: 0 0 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.numbers-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.columns-grid {
    flex: 0 0 40px;
    display: flex;
    flex-direction: column;
}

.board-bottom {
    display: flex;
    flex-direction: column;
    margin-left: 30px;
    /* offset for zero */
    margin-right: 40px;
    /* offset for columns */
}

.dozens {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top: none;
}

.halves {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top: none;
}

/* ZONES */
.bet-zone {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    min-height: 40px;
}

.bet-zone:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bet-zone.red {
    background: #e11d48;
}

.bet-zone.black {
    background: #1f2937;
}

.bet-zone.green {
    background: #16a34a;
}

.red-diamond {
    width: 30px;
    height: 30px;
    background: #e11d48;
    transform: rotate(45deg);
}

.black-diamond {
    width: 30px;
    height: 30px;
    background: #1f2937;
    transform: rotate(45deg);
}

/* CHIPS */
.chip-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.placed-chip {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px dashed #fff;
    color: #000;
    font-weight: bold;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    margin-top: -20px;
    /* stack effect */
}

/* CHIP SELECTOR */
.controls {
    background: var(--bg-panel-1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.chip-selector {
    display: flex;
    gap: 15px;
}

.chip-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px dashed rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.chip-option.selected {
    transform: scale(1.2);
    border-color: #fff;
}

.chip-1 {
    background: radial-gradient(circle, #cbd5e1, #94a3b8);
}

.chip-10 {
    background: radial-gradient(circle, #60a5fa, #2563eb);
}

.chip-50 {
    background: radial-gradient(circle, #f87171, #dc2626);
}

.chip-100 {
    background: radial-gradient(circle, #34d399, #059669);
}

.chip-500 {
    background: radial-gradient(circle, #c084fc, #7e22ce);
}

.chip-1000 {
    background: radial-gradient(circle, #facc15, #ca8a04);
}

.play-btn {
    padding: 15px 40px;
    background: linear-gradient(to bottom, var(--wow-gold-600), var(--wow-gold-500));
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.clear-btn {
    padding: 15px 20px;
    background: #e11d48;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.bet-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
}

/* --- BIG SIX STYLES --- */
.bigsix-container {
    flex: 1;
    min-width: 300px;
    background: transparent;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px; /* Space for the stand */
}

/* Base Stand */
.bigsix-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 100px;
    background: linear-gradient(to right, #5c3a21, #8b5a2b, #5c3a21);
    border-radius: 5px 5px 0 0;
    z-index: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
.bigsix-container::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 20px;
    background: #3e2723;
    border-radius: 10px;
    z-index: 1;
    box-shadow: 0 5px 10px rgba(0,0,0,0.9);
}

.bigsix-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 15px dotted #f1c40f; /* Simulates pegs */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(248, 183, 0, 0.5), 0 0 0 10px #4e342e; /* Outer wooden rim */
    transition: transform 6s cubic-bezier(0.1, 0.7, 0.1, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.bigsix-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 50px solid #e74c3c; /* Red flapper */
    z-index: 4;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.8));
}
.bigsix-pointer::after {
    content: '';
    position: absolute;
    top: -45px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #f1c40f;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.bigsix-center {
    position: absolute;
    width: 20%;
    height: 20%;
    background: var(--wow-gold-600);
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-family: var(--font-title);
    font-size: 2rem;
    color: #000;
    font-weight: bold;
}

.bigsix-slot {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: var(--font-title);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.bigsix-slot span {
    display: inline-block;
    padding-top: 25px;
}

.bet-panel {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-panel-1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
}

.bet-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-info div {
    text-align: center;
}

.bet-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.bet-info strong {
    color: var(--wow-gold-500);
    font-size: 1.2rem;
    font-family: var(--font-title);
}

.bet-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(199, 103, 0, 0.5);
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    margin-bottom: 20px;
}

.bigsix-container {
    flex: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* --- DADOS DE NORIA STYLES --- */
.dados-board {
    background: url('/assets/default_assets/images/board-bg.jpg') center/cover;
    background-color: #0b2211;
    border-radius: 10px;
    border: 2px solid var(--wow-gold-600);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(199, 103, 0, 0.3);
    padding: 40px 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.dice-scene {
    width: 100%;
    height: 150px;
    perspective: 800px;
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}

.dice {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 3s cubic-bezier(0.1, 0.7, 0.1, 1);
    transform: rotateX(-15deg) rotateY(15deg);
}

.dice .face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, #fff 0%, #e5e5e5 100%);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2), 0 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
}

.dice .face.front {
    transform: translateZ(40px);
}

.dice .face.back {
    transform: rotateY(180deg) translateZ(40px);
}

.dice .face.right {
    transform: rotateY(90deg) translateZ(40px);
}

.dice .face.left {
    transform: rotateY(-90deg) translateZ(40px);
}

.dice .face.top {
    transform: rotateX(90deg) translateZ(40px);
}

.dice .face.bottom {
    transform: rotateX(-90deg) translateZ(40px);
}

.dot-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 10px;
    box-sizing: border-box;
}

.dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 3px 3px, #444, #000);
    box-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    align-self: center;
    justify-self: center;
}

/* Face specific dot placements */
.face-1 .dot:nth-child(1) {
    grid-column: 2;
    grid-row: 2;
}

.face-2 .dot:nth-child(1) {
    grid-column: 3;
    grid-row: 1;
}

.face-2 .dot:nth-child(2) {
    grid-column: 1;
    grid-row: 3;
}

.face-3 .dot:nth-child(1) {
    grid-column: 3;
    grid-row: 1;
}

.face-3 .dot:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
}

.face-3 .dot:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
}

.face-4 .dot:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.face-4 .dot:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.face-4 .dot:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
}

.face-4 .dot:nth-child(4) {
    grid-column: 3;
    grid-row: 3;
}

.face-5 .dot:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.face-5 .dot:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.face-5 .dot:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.face-5 .dot:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
}

.face-5 .dot:nth-child(5) {
    grid-column: 3;
    grid-row: 3;
}

.face-6 .dot:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.face-6 .dot:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.face-6 .dot:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
}

.face-6 .dot:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
}

.face-6 .dot:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.face-6 .dot:nth-child(6) {
    grid-column: 3;
    grid-row: 3;
}

.dados-bet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .dados-bet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bet-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(199, 103, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-muted);
}

.bet-card.selected,
.bet-card:hover {
    background: rgba(199, 103, 0, 0.2);
    border-color: var(--wow-gold-500);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.bet-card h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-family: var(--font-title);
    color: var(--wow-gold-500);
}

.bet-card span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.bet-card .payout-badge {
    display: inline-block;
    background: #e11d48;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- BLACKJACK DEL TABERNERO STYLES --- */
.blackjack-board {
    background: url('/assets/default_assets/images/board-bg.jpg') center/cover;
    background-color: #1a472a;
    border-radius: 10px;
    border: 3px solid #8b5a2b;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9), 0 0 20px rgba(139, 90, 43, 0.3);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bj-area-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.bj-hand-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    position: relative;
}

/* CSS PLAYING CARDS */
.playing-card {
    width: 100px;
    height: 140px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), left 0.5s;
    transform-origin: center center;
}

.playing-card.card-red {
    color: #d32f2f;
}

.playing-card.card-black {
    color: #000;
}

.playing-card .card-value-top {
    text-align: left;
    line-height: 1;
}

.playing-card .card-suit-center {
    text-align: center;
    font-size: 2.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playing-card .card-value-bottom {
    text-align: right;
    line-height: 1;
    transform: rotate(180deg);
}

.playing-card.card-back {
    background: repeating-linear-gradient(45deg,
            #8b0000,
            #8b0000 10px,
            #b22222 10px,
            #b22222 20px);
    border: 3px solid #fff;
}

.playing-card.card-back .card-value-top,
.playing-card.card-back .card-suit-center,
.playing-card.card-back .card-value-bottom {
    display: none;
}

.bj-score {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--wow-gold-500);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--wow-gold-600);
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.bj-score.visible {
    opacity: 1;
}

.bj-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px 40px;
    border: 2px solid var(--wow-gold-500);
    border-radius: 10px;
    font-size: 2rem;
    font-family: var(--font-title);
    text-shadow: 0 0 10px var(--wow-gold-600);
    z-index: 10;
    text-align: center;
    display: none;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}
/* --- TRAGAMONEDAS GOBLIN STYLES --- */
.slots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    position: relative;
    max-width: 800px;
}

.slots-machine {
    background: linear-gradient(180deg, #3a2b18 0%, #1a120a 100%);
    border: 8px solid #b38b36;
    border-radius: 30px 30px 10px 10px;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.8), 
        0 20px 40px rgba(0,0,0,0.8),
        0 0 10px #b38b36;
    padding: 30px;
    position: relative;
    width: 600px;
}

.slots-header {
    text-align: center;
    margin-bottom: 20px;
    background: #000;
    border: 3px solid #b38b36;
    border-radius: 10px;
    padding: 15px;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
}
.slots-header h2 {
    margin: 0;
    color: var(--wow-gold-500);
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--wow-gold-600);
}

.slots-reels-window {
    background: #000;
    border: 5px solid #222;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    box-shadow: inset 0 0 30px rgba(0,0,0,1);
    position: relative;
    overflow: hidden;
}
/* Grid lines over the reels */
.slots-reels-window::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

.slot-reel {
    width: 130px;
    height: 150px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #555;
    overflow: hidden;
    position: relative;
}

.slot-strip {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Transition is added dynamically via JS */
}

.slot-symbol {
    width: 100%;
    height: 150px; /* same as reel height */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    background: radial-gradient(circle, #f0f0f0, #ccc);
    border-bottom: 1px solid #aaa;
    box-sizing: border-box;
}
.slot-symbol img {
    max-width: 80%;
    max-height: 80%;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}

/* LEVER */
.slot-lever-base {
    width: 60px;
    height: 120px;
    background: linear-gradient(90deg, #333, #555, #222);
    border-radius: 0 15px 15px 0;
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #111;
    border-left: none;
    display: flex;
    align-items: center;
    box-shadow: 10px 0 20px rgba(0,0,0,0.5);
}

.slot-lever-stick {
    width: 15px;
    height: 150px;
    background: linear-gradient(90deg, #ccc, #fff, #999);
    position: absolute;
    bottom: 50%;
    left: 20px;
    transform-origin: bottom center;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.slot-lever-stick::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -17px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 15px 15px, #ff4d4d, #990000);
    border-radius: 50%;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.5), 0 5px 10px rgba(0,0,0,0.5);
}

.slot-lever-stick.pulled {
    transform: rotateX(180deg) scaleY(0.8);
}

/* Animations & Results */
.slot-result-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 3rem;
    font-family: var(--font-title);
    text-shadow: 0 0 20px #000;
    text-align: center;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.slot-result-overlay.show {
    opacity: 1;
    animation: popScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.win-text { color: var(--wow-gold-500); }
.lose-text { color: #ff3333; }

.slots-jackpot-lights {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}
.jackpot-light {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #111;
    box-shadow: inset 0 0 5px #000;
    transition: 0.3s;
}
.jackpot-light.active-win {
    background: #4caf50;
    box-shadow: 0 0 20px #4caf50, inset 0 0 10px #fff;
}
.jackpot-light.active-lose {
    background: #f44336;
    box-shadow: 0 0 20px #f44336, inset 0 0 10px #fff;
}
/* --- SLOTS DASHBOARD REALISTA --- */
.slots-dashboard {
    background: linear-gradient(180deg, #444 0%, #1a1a1a 100%);
    border-top: 3px solid #666;
    border-bottom: 5px solid #0a0a0a;
    border-left: 3px solid #333;
    border-right: 3px solid #333;
    border-radius: 10px;
    padding: 20px 15px;
    margin-top: 35px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    box-shadow: inset 0 15px 15px rgba(0,0,0,0.6), 0 15px 30px rgba(0,0,0,0.9);
    transform: perspective(600px) rotateX(15deg);
    position: relative;
    z-index: 2;
}

.dashboard-display, .dashboard-input-group, .dashboard-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    border: 3px solid #222;
    border-top: 3px solid #050505;
    border-bottom: 3px solid #333;
    padding: 10px;
    border-radius: 8px;
    min-width: 140px;
    box-shadow: inset 0 0 15px rgba(0,0,0,1);
}

.display-label {
    color: #ff3333;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 5px #ff0000;
    text-transform: uppercase;
}

.display-value {
    color: #00ffcc;
    font-size: 1.6rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc;
}

.dashboard-input {
    background: transparent;
    color: #ffcc00;
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    border: none;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 10px #ffcc00;
    outline: none;
}
.dashboard-input:focus {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.slots-payouts-info {
    text-align: center;
    color: var(--wow-gold-500);
    font-size: 0.8rem;
    margin-top: 15px;
    background: rgba(0,0,0,0.8);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #b38b36;
    box-shadow: inset 0 0 10px rgba(179, 139, 54, 0.2);
}
/* --- VIDEO POKER (Arcade CRT Style) --- */
.videopoker-machine {
    background: #111;
    border: 10px solid #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,1);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* CRT Screen */
.videopoker-crt {
    background: #000033;
    border: 20px solid #1a1a1a;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 20px;
    min-height: 400px;
    box-shadow: inset 0 0 30px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.crt-scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 10;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

.vp-paytable {
    display: flex;
    flex-direction: column;
    z-index: 5;
    background: rgba(0,0,50,0.5);
    border: 2px solid #0055ff;
    border-radius: 8px;
    padding: 10px;
}

.vp-row {
    display: flex;
    justify-content: space-between;
    color: #00ccff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1rem;
    padding: 2px 10px;
    border-radius: 4px;
    text-shadow: 0 0 5px #0055ff;
}

.vp-row-active {
    background: #ffcc00;
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 15px #ffcc00;
}

.vp-message-box {
    text-align: center;
    color: #ff3333;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 0 0 10px #ff3333;
    z-index: 5;
    animation: vp-blink 1s infinite alternate;
}

@keyframes vp-blink {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

.vp-cards-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 5;
}

.vp-card-slot {
    width: 100px;
    height: 140px;
    position: relative;
    cursor: pointer;
}

.vp-card-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed #0055ff;
    border-radius: 8px;
    background: rgba(0,0,255,0.1);
}

.vp-hold-indicator {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.2rem;
    display: none;
    text-shadow: 0 0 10px #ffcc00;
}

/* 3D Dashboard */
.videopoker-dashboard {
    background: linear-gradient(180deg, #444 0%, #1a1a1a 100%);
    border-top: 3px solid #666;
    border-bottom: 5px solid #0a0a0a;
    border-left: 3px solid #333;
    border-right: 3px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-top: -10px;
    transform: perspective(600px) rotateX(20deg);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 30px rgba(0,0,0,0.8);
}

.vp-dash-top {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.vp-dash-display {
    background: #000;
    border: 3px solid #222;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,1);
}

.vp-dash-label {
    display: block;
    color: #ff3333;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}

.vp-dash-val {
    color: #00ffcc;
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffcc;
}

.vp-input, .vp-select {
    background: transparent;
    border: none;
    color: #ffcc00;
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-align: center;
    outline: none;
    text-shadow: 0 0 10px #ffcc00;
}

.vp-dash-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vp-btn {
    background: linear-gradient(180deg, #dd0000 0%, #880000 100%);
    border: 2px solid #ff3333;
    border-bottom: 6px solid #440000;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    transition: all 0.1s;
    font-family: 'Courier New', Courier, monospace;
}
.vp-btn:active {
    transform: translateY(4px);
    border-bottom: 2px solid #440000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.vp-dash-action {
    text-align: center;
}

.vp-btn-deal {
    background: linear-gradient(180deg, #00dd00 0%, #008800 100%);
    border: 2px solid #33ff33;
    border-bottom: 8px solid #004400;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
    font-size: 2rem;
    padding: 15px 50px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0,0,0,0.5);
    transition: all 0.1s;
    font-family: 'Courier New', Courier, monospace;
}
.vp-btn-deal:active {
    transform: translateY(6px);
    border-bottom: 2px solid #004400;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.vp-btn-deal:disabled {
    background: #555;
    border-color: #777;
    border-bottom-color: #333;
    cursor: not-allowed;
}
/* --- DUELO DE ELFAS (BACCARAT) --- */
.baccarat-table {
    background: #4a2118; /* Borde madera */
    padding: 20px;
    border-radius: 150px; /* Mesa ovalada */
    box-shadow: 0 30px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,1);
    position: relative;
    border: 15px solid #2a110a;
}

.table-felt {
    background: radial-gradient(circle, #008844 0%, #004422 100%);
    border-radius: 130px;
    padding: 30px 50px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    position: relative;
}

.table-logo {
    text-align: center;
    color: rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
}
.table-logo h2 {
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.table-logo p {
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    font-weight: bold;
}

.baccarat-cards-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    min-height: 200px;
}

.hand-zone {
    width: 350px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.1);
}

.hand-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    margin-bottom: 10px;
}

.hand-score {
    background: rgba(0,0,0,0.6);
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 5px 20px;
    border-radius: 20px;
    border: 1px solid #ffd700;
    margin-bottom: 20px;
    min-width: 60px;
    text-align: center;
}

.cards-display {
    display: flex;
    justify-content: center;
    gap: -30px; /* Overlap cards slightly */
}
.cards-display .bj-card {
    margin-left: -20px; /* Negative margin to stack them */
    transform: scale(0.9);
}
.cards-display .bj-card:first-child {
    margin-left: 0;
}

.vs-badge {
    background: radial-gradient(circle, #ff3333 0%, #aa0000 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #ffd700;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.betting-layout {
    display: flex;
    justify-content: center;
    gap: 20px;
    perspective: 800px;
}

.bz-zone {
    border: 3px solid rgba(255, 215, 0, 0.4);
    border-radius: 15px;
    width: 250px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.bz-zone h3 {
    margin: 0;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.bz-zone span {
    display: block;
    color: #ffd700;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: bold;
}

.bz-zone:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
    border-color: rgba(255, 215, 0, 0.8);
}

.bz-player h3 { color: #00ccff; }
.bz-tie h3 { color: #00ff66; }
.bz-banker h3 { color: #ff3333; }

.bz-active {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.5);
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

.bz-winner {
    animation: bz-pulse 1s infinite alternate;
}

@keyframes bz-pulse {
    0% { box-shadow: 0 0 10px #ffd700; background: rgba(255, 215, 0, 0.2); }
    100% { box-shadow: 0 0 30px #ffd700, inset 0 0 30px #ffd700; background: rgba(255, 215, 0, 0.5); }
}

.baccarat-controls {
    background: linear-gradient(180deg, #222 0%, #111 100%);
    border-top: 3px solid #444;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}

.bc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.bc-action-row {
    justify-content: center;
    gap: 30px;
    align-items: flex-end;
}

.bc-info {
    display: flex;
    flex-direction: column;
    color: #aaa;
    font-size: 0.9rem;
}
.bc-info strong {
    color: #fff;
    font-size: 1.5rem;
}
.bc-select {
    background: #000;
    color: #fff;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    outline: none;
}

.bc-bet-input {
    display: flex;
    flex-direction: column;
}
.bc-bet-input label {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.bc-bet-input input {
    background: #000;
    border: 2px solid #555;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 8px;
    width: 150px;
    text-align: center;
    outline: none;
    font-weight: bold;
}
.bc-bet-input input:focus {
    border-color: #ffd700;
}

.btn-deal-baccarat {
    background: linear-gradient(180deg, #ffcc00 0%, #b38000 100%);
    border: 2px solid #fff;
    color: #000;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.2s;
}
.btn-deal-baccarat:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
}
.btn-deal-baccarat:active {
    transform: scale(0.95);
}
.btn-deal-baccarat:disabled {
    background: #555;
    border-color: #333;
    color: #222;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.baccarat-msg {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
/* --- BACCARAT 3D CARDS & ANIMATIONS --- */
.baccarat-shoe {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: linear-gradient(180deg, #111 0%, #000 100%);
    border: 3px solid #333;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffd700;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    z-index: 10;
}
.baccarat-shoe::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 10px;
    background: #444;
    bottom: -5px;
    border-radius: 5px;
}

.bac-card {
    width: 90px;
    height: 130px;
    perspective: 1000px;
    margin: 0 -15px; /* Overlap */
    opacity: 0;
    transform: translateY(-100px) scale(0.5);
    animation: bac-deal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes bac-deal {
    0% { opacity: 0; transform: translateY(-100px) scale(0.5) rotateY(180deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateY(0deg); }
}

.bac-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.bac-card-front, .bac-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.bac-card-front {
    background: #fff;
    border: 2px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
}
.bac-card-front.red { color: #ff0000; }
.bac-card-front.black { color: #000000; }

.bac-card-val {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}
.bac-card-suit {
    font-size: 2rem;
    text-align: center;
    line-height: 1;
}

/* Squeeze effect for the third card */
.bac-card.squeeze {
    animation: bac-squeeze 2s ease-in-out both;
}

@keyframes bac-squeeze {
    0% { opacity: 0; transform: translateY(-100px) scale(0.5) rotateX(180deg); }
    40% { opacity: 1; transform: translateY(0) scale(1) rotateX(180deg); }
    70% { transform: translateY(0) scale(1.1) rotateX(90deg); opacity: 1; } /* Squeezing */
    100% { transform: translateY(0) scale(1) rotateX(0deg); opacity: 1; }
}

