/* VIP Super11 / Triplex — sin chat, sin foro. Temas bronce / plata. */
:root {
    --bg-main: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.9);
    --bg-surface: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --accent: #CD7F32;
    --accent-2: #B45309;
    --accent-glow: rgba(205, 127, 50, 0.45);
    --emerald: #10B981;
    --red: #EF4444;
    --cyan: #06B6D4;
    --blue: #3B82F6;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}
body.theme-plata {
    --accent: #C5CDD8;
    --accent-2: #94A3B8;
    --accent-glow: rgba(197, 205, 216, 0.4);
}

* { 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: 12px 0 16px;
    border-bottom: 1px solid hsla(217, 33%, 25%, 0.5);
    margin-bottom: 20px;
}
.header-vip img.logo-vip {
    height: 132px;
    width: auto;
    max-width: 92%;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px auto;
    filter: drop-shadow(0 0 18px var(--accent-glow));
}
.header-vip .brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 4px auto 10px auto;
    max-width: 96%;
    text-align: center;
    line-height: 1.35;
}
.header-vip .marca {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    display: block;
}
.header-vip h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--accent);
    margin-top: 6px;
}
.header-vip .slogan {
    font-size: 12px;
    color: #38BDF8;
    font-weight: 800;
    letter-spacing: 0.4px;
    display: block;
    margin-top: 4px;
}
.badge-pruebas {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #FDE68A;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid #F59E0B;
    border-radius: 99px;
    padding: 4px 12px;
}
.badge-gratis {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #6EE7B7;
}

.screen { display: none; flex-direction: column; gap: 16px; 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: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.card-vip h2 { font-size: 16px; color: var(--accent); }
.card-vip p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 12px; font-weight: 800; color: var(--accent); }
.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;
    width: 100%;
}
.input-vip:focus { border-color: var(--accent); }

.btn-vip {
    padding: 15px;
    border-radius: 14px;
    border: none;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #0F172A;
    background: var(--accent);
}
.btn-ghost {
    background: transparent;
    color: #38BDF8;
    border: 1px solid #334155;
}
.login-error {
    display: none;
    font-size: 12px;
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    padding: 10px;
    border-radius: 8px;
}

.dash-meta { font-size: 11px; font-weight: 800; color: #6EE7B7; letter-spacing: 0.4px; }
.hint { text-align: center; font-size: 11px; color: var(--text-muted); }

.vip-section {
    background: linear-gradient(180deg, rgba(30,41,59,0.92) 0%, rgba(15,23,42,0.95) 100%);
    border: 1px solid hsla(187, 80%, 40%, 0.35);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.vip-section h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #F8FAFC;
    line-height: 1.35;
}
.vip-hist-card { border-color: rgba(51,65,85,0.9); }

.vip-directiva {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(245,158,11,0.14); border: 1px solid #F59E0B;
    border-radius: 14px; padding: 14px;
}
.vip-directiva-icon { font-size: 22px; line-height: 1; }
.vip-directiva-title { font-size: 11px; font-weight: 800; color: #F59E0B; letter-spacing: 0.4px; }
.vip-directiva strong { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 13px; color: #F8FAFC; line-height: 1.45; }
.vip-diag-title { font-size: 12px; font-weight: 800; color: #38BDF8; text-align: center; letter-spacing: 0.4px; }
.vip-diag-pills { display: flex; gap: 6px; }
.vip-diag-pill {
    flex: 1; text-align: center; padding: 8px 2px; border-radius: 8px;
    background: #1E293B; border: 1px solid #334155;
}
.vip-diag-pill .n { font-size: 13px; font-weight: 900; color: #F8FAFC; }
.vip-diag-pill .h { font-size: 9px; font-weight: 800; color: #94A3B8; margin-top: 2px; }
.vip-baro-conf-title { font-size: 13px; font-weight: 800; color: #F59E0B; text-align: center; }
.vip-baro-nivel {
    font-size: 13px; font-weight: 900; padding: 12px; border-radius: 10px;
    background: #1E293B; color: #38BDF8; text-align: center; border: 2px solid #38BDF8;
}
.vip-scale { display: flex; height: 30px; border-radius: 16px; overflow: hidden; border: 1px solid #334155; }
.vip-scale span { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; }
.vip-scale .oro { background: linear-gradient(90deg, #D97706, #F59E0B); color: #000; }
.vip-scale .mora { background: linear-gradient(90deg, #6D28D9, #8B5CF6); color: #FFF; }
.vip-scale .ver { background: linear-gradient(90deg, #059669, #10B981); color: #000; }
.vip-scale .roj { background: linear-gradient(90deg, #DC2626, #EF4444); color: #FFF; }
.vip-flecha-wrap { display: flex; width: 100%; }
.vip-flecha { width: 25%; text-align: center; font-size: 18px; font-weight: 900; color: #F59E0B; }
.vip-baro-estado { padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 900; text-align: center; }
.vip-pred-cards { display: flex; flex-direction: column; gap: 12px; }
.vip-pred-card {
    background: var(--bg-card); border-radius: 16px; padding: 18px 14px;
    text-align: center; border: 1px solid #334155;
}
.vip-pred-card.op1 { border-color: #10B981; box-shadow: 0 8px 28px rgba(16,185,129,0.28); }
.vip-pred-card.op2 { border-color: #F59E0B; box-shadow: 0 8px 28px rgba(245,158,11,0.28); }
.vip-pred-card.op3 { border-color: #3B82F6; background: rgba(59,130,246,0.08); box-shadow: 0 8px 28px rgba(59,130,246,0.22); }
.vip-pred-badge {
    display: inline-block; padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.4px; margin-bottom: 12px;
}
.vip-pred-card.op1 .vip-pred-badge { background: rgba(16,185,129,0.2); color: #10B981; border: 1px solid #10B981; }
.vip-pred-card.op2 .vip-pred-badge { background: rgba(245,158,11,0.2); color: #F59E0B; border: 1px solid #F59E0B; }
.vip-pred-card.op3 .vip-pred-badge { background: rgba(59,130,246,0.2); color: #93C5FD; border: 1px solid #3B82F6; }
.vip-lottery {
    width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 34px; font-weight: 800; letter-spacing: 3px;
    box-shadow: inset -8px -8px 16px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.55);
}
.vip-lottery.op1 { background: radial-gradient(circle at 30% 30%, #34D399, #059669); color: #052e22; }
.vip-lottery.op2 { background: radial-gradient(circle at 30% 30%, #FCD34D, #D97706); color: #1c1403; }
.vip-lottery.op3 { background: radial-gradient(circle at 30% 30%, #93C5FD, #1D4ED8); color: #fff; }
.vip-prob { font-size: 13px; color: #F8FAFC; font-weight: 700; }
.vip-prob strong { color: #FFFFFF; }
.vip-box {
    margin-top: 12px;
    padding: 14px 12px;
    border-radius: 12px;
    background: #E2E8F0;
    color: #0F172A;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1.6;
    letter-spacing: 0.4px;
    word-break: break-word;
}
.vip-desglose { display: grid; grid-template-columns: 1fr; gap: 10px; }
.vip-desg-col { background: #1E293B; border-radius: 10px; padding: 12px; }
.vip-desg-col.d1 { border: 1px solid #10B981; }
.vip-desg-col.d2 { border: 1px solid #F59E0B; }
.vip-desg-col.d3 { border: 1px solid #3B82F6; }
.vip-desg-col h4 { font-size: 12px; margin: 0 0 8px; }
.vip-desg-col.d1 h4 { color: #10B981; }
.vip-desg-col.d2 h4 { color: #F59E0B; }
.vip-desg-col.d3 h4 { color: #3B82F6; }
.vip-desg-row { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: #CBD5E1; }
.vip-desg-row span:last-child { color: #10B981; font-weight: 800; }
.vip-mapa-nota { font-size: 11px; color: #94A3B8; margin: 0; line-height: 1.45; }
.vip-hist-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vip-hist-total {
    font-size: 10px; font-weight: 800; color: #38BDF8;
    border: 1px solid #38BDF8; border-radius: 8px; padding: 3px 8px; white-space: nowrap;
}
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
    background: #0B1220;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.history-item.tx { flex-direction: row; justify-content: space-between; align-items: center; }
.history-item strong { font-size: 12px; color: #F8FAFC; }
.history-meta { font-size: 10px; color: #94A3B8; margin-top: 2px; }
.vip-tx-num { font-family: var(--font-mono); font-size: 22px; font-weight: 800; color: #C5CDD8; letter-spacing: 3px; }

footer.pie-vip {
    text-align: center;
    padding: 20px 8px;
    color: #64748B;
    font-size: 11px;
    margin-top: auto;
}
footer.pie-vip a { color: #94A3B8; text-decoration: none; }
footer.pie-vip .links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-box {
    background: #0F172A;
    border: 1px solid #334155;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}
.modal-box h2 { color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.legal-txt { color: #94A3B8; font-size: 12px; line-height: 1.6; text-align: justify; }
.legal-txt p { margin-bottom: 10px; }
.btn-close-x {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 22px;
    cursor: pointer;
}

#fab-chat-sat {
    position: fixed; right: 16px; bottom: 18px; width: 52px; height: 52px;
    border-radius: 50%; border: 1px solid var(--accent); background: #1E293B;
    color: #F8FAFC; font-size: 22px; z-index: 40; cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35); display: none;
    align-items: center; justify-content: center;
}
#panel-chat-sat {
    display: none; flex-direction: column; position: fixed;
    left: 10px; right: 10px; bottom: 12px; top: 12%;
    background: #0F172A; border: 1px solid #334155; border-radius: 14px; z-index: 50;
}
.chat-sat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid #334155; }
.chat-sat-title { font-weight: 900; color: #F8FAFC; font-size: 13px; }
.chat-sat-sub { font-size: 10px; color: #94A3B8; }
.chat-sat-head button { background: #1E293B; border: 1px solid #334155; color: #F1F5F9; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
#chat-sat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; border-bottom: 1px solid #1E293B; }
#chat-sat-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-sat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-sat-burbuja { max-width: 90%; padding: 8px 10px; border-radius: 12px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
.chat-sat-burbuja.user { align-self: flex-end; background: #1E3A5F; color: #E0F2FE; }
.chat-sat-burbuja.bot { align-self: flex-start; background: #13261f; color: #D1FAE5; border: 1px solid #065F46; }
.chat-sat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #334155; }
.chat-sat-input input { flex: 1; background: #1E293B; border: 1px solid #334155; color: #F8FAFC; border-radius: 8px; padding: 10px; }
.chat-sat-input button { background: var(--accent); color: #0F172A; border: none; border-radius: 8px; padding: 0 14px; font-weight: 800; cursor: pointer; }

