/* -*- coding: utf-8 -*- */
:root {
    --bg-main: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.85);
    --bg-surface: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --emerald: #10B981;
    --amber: #F59E0B;
    --red: #EF4444;
    --cyan: #06B6D4;
    --blue: #3B82F6;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.header-vip {
    text-align: center;
    padding: 24px 0 16px;
    border-bottom: 1px solid hsla(217, 33%, 25%, 0.5);
    margin-bottom: 24px;
}
.header-vip h1 { font-family: var(--font-heading); font-size: 24px; color: var(--emerald); }
.header-vip span { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }

.screen { display: none; flex-direction: column; gap: 20px; animation: fadeIn 0.3s ease; }
.screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.card-vip {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid hsla(217, 33%, 30%, 0.5);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.input-vip {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid hsla(217, 33%, 35%, 0.5);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}
.input-vip:focus { border-color: var(--emerald); box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }

.btn-vip {
    padding: 16px;
    border-radius: 14px;
    border: none;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-emerald { background: var(--emerald); color: #000; box-shadow: 0 4px 20px rgba(16,185,129,0.4); }
.btn-emerald:hover { background: #059669; transform: scale(1.02); }

.btn-amber { background: var(--amber); color: #000; box-shadow: 0 4px 20px rgba(245,158,11,0.4); }
.btn-cyan { background: var(--cyan); color: #000; box-shadow: 0 4px 20px rgba(6,182,212,0.4); }

.badge-status {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
}
.status-verde { background: rgba(16,185,129,0.2); color: var(--emerald); border: 1px solid var(--emerald); }
.status-naranja { background: rgba(245,158,11,0.2); color: var(--amber); border: 1px solid var(--amber); }
.status-rojo { background: rgba(239,68,68,0.2); color: var(--red); border: 1px solid var(--red); }
.status-pendiente { background: rgba(6,182,212,0.2); color: var(--cyan); border: 1px solid var(--cyan); }

.draw-card {
    text-align: center;
    padding: 24px;
    background: linear-gradient(145deg, var(--bg-surface), #131d33);
    border-radius: 20px;
    border: 2px solid var(--blue);
}
.draw-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.draw-time { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); }

.ball-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.ball-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    box-shadow: inset -6px -6px 12px rgba(0,0,0,0.5), 0 6px 18px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.ball-emerald { background: radial-gradient(circle at 30% 30%, hsl(152, 76%, 60%), hsl(152, 76%, 44%)); color: hsl(222, 47%, 7%); }
.ball-emerald-dark { background: radial-gradient(circle at 30% 30%, hsl(160, 84%, 39%), hsl(163, 94%, 24%)); color: #ECFDF5; border: 2px solid #10B981; }
.ball-amber { background: radial-gradient(circle at 30% 30%, hsl(45, 100%, 75%), hsl(35, 100%, 50%)); color: hsl(222, 47%, 7%); }
.ball-purple { background: radial-gradient(circle at 30% 30%, hsl(258, 90%, 75%), hsl(258, 90%, 66%)); color: hsl(222, 47%, 7%); }
.ball-blue { background: radial-gradient(circle at 30% 30%, hsl(217, 91%, 70%), hsl(217, 91%, 60%)); color: hsl(222, 47%, 7%); }




.paywall-banner {
    background: rgba(245,158,11,0.15);
    border: 1px solid var(--amber);
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}
.free-banner {
    background: rgba(16,185,129,0.15);
    border: 1px solid var(--emerald);
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
    background: var(--bg-surface);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-family: var(--font-mono);
}
.win-tag { color: var(--emerald); font-weight: 700; }
.loss-tag { color: var(--red); font-weight: 700; }

.avatar-vip {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #FFF;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.avatar-activo {
    background: linear-gradient(135deg, #059669, #10B981);
    border: 2px solid #6EE7B7;
    box-shadow: 0 0 12px rgba(16,185,129,0.55);
}
.avatar-inactivo {
    background: linear-gradient(135deg, #991B1B, #EF4444);
    border: 2px solid #FCA5A5;
    box-shadow: 0 0 12px rgba(239,68,68,0.45);
}

#fab-chat-vip {
    position: fixed;
    right: 16px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(16,185,129,0.45);
    z-index: 8000;
    cursor: pointer;
}
#panel-chat-vip {
    display: none;
    flex-direction: column;
    position: fixed;
    right: 10px;
    bottom: 86px;
    width: min(420px, calc(100vw - 20px));
    height: min(72vh, 560px);
    background: #0F172A;
    border: 1px solid #334155;
    border-radius: 16px;
    z-index: 8001;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    overflow: hidden;
}
.chat-vip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px 8px 14px;
    border-bottom: 1px solid #334155;
    background: #111827;
}
.chat-vip-foro {
    background: linear-gradient(135deg, #06B6D4, #3B82F6);
    color: #FFF;
    border: none;
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
#chat-vip-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 10px;
    border-bottom: 1px solid #1E293B;
}
#chat-vip-chips button {
    flex: 0 0 auto;
    background: #1E293B;
    color: #CBD5E1;
    border: 1px solid #334155;
    border-radius: 99px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
#chat-vip-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-burbuja {
    max-width: 88%;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.chat-burbuja.user { align-self: flex-end; background: #1E3A5F; color: #E0F2FE; }
.chat-burbuja.bot { align-self: flex-start; background: #13261f; color: #D1FAE5; border: 1px solid #065F46; }
.chat-vip-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #334155;
}
.chat-vip-input input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #06B6D4;
    background: rgba(15,23,42,0.9);
    color: #F8FAFC;
    font-size: 13px;
}
.chat-vip-input button {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
}

@keyframes pulseAviso {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(245,158,11,0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 18px rgba(245,158,11,0.95); }
}

.btn-aviso-parpadeo {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1.5px solid #F59E0B;
    background: rgba(245,158,11,0.16);
    color: #FDE68A;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    animation: pulseAviso 1.4s ease-in-out infinite;
}
