/* HICHAMTV PRO · efectos comunes: botones de arriba (estilo lateral Admin), Venom, Día/Noche, brillo en tarjetas. */

/* ---------- Barra de botones: mismo cristal oscuro que el lateral del Admin ---------- */
html body header.public-site-header .public-site-nav,
html body .bank-nav{
  display:flex;align-items:center;gap:6px;padding:7px!important;
  border:1px solid rgba(184,242,255,.25)!important;border-radius:22px!important;
  background:linear-gradient(155deg,rgba(28,92,122,.8),rgba(8,30,52,.93))!important;
  box-shadow:0 24px 70px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.16)!important;
}

/* ---------- Botón «pill» idéntico al del lateral ---------- */
html body .hx-pill.hx-pill,
html body .bank-nav a{
  position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  box-sizing:border-box;min-height:40px;padding:9px 14px!important;margin:0;
  font-family:var(--alive-font,"Baloo 2 Local",system-ui,sans-serif)!important;font-size:14px!important;font-weight:900!important;line-height:1.1;
  letter-spacing:0;white-space:nowrap;text-decoration:none;text-align:center;
  color:#d4edf5!important;background:linear-gradient(155deg,rgba(6,22,38,.62),rgba(10,40,60,.42))!important;
  border:1px solid rgba(150,220,240,.16)!important;border-radius:14px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;overflow:visible;transform:none!important;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  transition:background .2s ease,color .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
html body .hx-pill.hx-pill::after,html body .bank-nav a::after{display:none!important;animation:none!important}
html body .hx-pill.hx-pill:hover,html body .hx-pill.hx-pill:focus-visible,
html body .bank-nav a:hover,html body .bank-nav a:focus-visible{
  color:#fff1b1!important;background:rgba(255,218,89,.13)!important;border-color:rgba(255,218,89,.45)!important;
  box-shadow:0 0 22px rgba(255,218,89,.22),inset 0 0 12px rgba(255,218,89,.08)!important;transform:none!important;
}
html body .hx-pill.hx-pill[aria-current="page"],html body .hx-pill.hx-pill.is-current,
html body .bank-nav a[aria-current="page"]{
  color:#241b00!important;background:linear-gradient(125deg,#fff1a4,#ffd34f 58%,#f8b32e)!important;
  border-color:transparent!important;box-shadow:0 10px 30px rgba(255,202,59,.24)!important;
}
/* Color elegido en el editor */
html body .hx-pill.hx-pill[style*="--hb-c"]{background:var(--hb-c)!important;color:var(--hb-t)!important;border-color:rgba(255,255,255,.22)!important}
html body .hx-pill.hx-pill[style*="--hb-c"]:hover{filter:brightness(1.12)}
/* Tamaño elegido en el editor */
html body .hx-pill.hx-pill[style*="--hb-w"]{width:var(--hb-w);min-width:var(--hb-w)}
html body .hx-pill.hx-pill[style*="--hb-h"]{height:var(--hb-h);min-height:var(--hb-h)}
/* Posición elegida en el editor (escritorio; en móvil la fila se desplaza sola) */
@media(min-width:1181px){
  html body header.public-site-header .public-site-nav{overflow:visible}
  html body .hx-pill.hx-pill[data-hb]{translate:var(--hb-x,0px) var(--hb-y,0px);z-index:2}
}
html body .admin-top-nav .admin-logout{color:#ffd7d7!important}

/* Botones de secciones del Reseller en una fila */
html body .bank-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
html body .bank-nav::-webkit-scrollbar{display:none}
@media(max-width:760px){html body .bank-nav a{min-height:38px;padding:8px 12px!important;font-size:13px!important}}

/* ---------- Venom: lienzo único, nunca mueve los botones ---------- */
.hx-venom-canvas{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:350}

/* ---------- Interruptor Día / Noche ---------- */
.hx-daynight{
  --dn-w:66px;--dn-h:32px;
  position:relative;flex:0 0 auto;width:var(--dn-w);height:var(--dn-h);padding:0;margin:0;
  border:1px solid rgba(255,255,255,.28);border-radius:999px;cursor:pointer;overflow:hidden;isolation:isolate;
  background:linear-gradient(160deg,#111a44,#253a82);
  box-shadow:inset 0 2px 6px rgba(0,0,0,.45),0 6px 18px rgba(0,0,0,.25);
  transition:background .6s ease,border-color .6s ease;
}
.hx-daynight:focus-visible{outline:3px solid #ffe792;outline-offset:3px}
.hx-daynight .dn-knob{
  position:absolute;z-index:3;top:3px;left:3px;width:24px;height:24px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#fff8c8,#ffd84a 55%,#f2a51a);
  box-shadow:0 0 14px rgba(255,214,74,.85);
  transform:translateX(34px);transition:transform .6s cubic-bezier(.6,-0.28,.35,1.4),background .6s ease,box-shadow .6s ease;
}
/* cráteres de la luna */
.hx-daynight .dn-knob::before,.hx-daynight .dn-knob::after{
  content:"";position:absolute;border-radius:50%;background:rgba(190,140,20,.45);transition:opacity .4s ease;
}
.hx-daynight .dn-knob::before{width:7px;height:7px;top:5px;left:12px}
.hx-daynight .dn-knob::after{width:5px;height:5px;top:14px;left:6px}
.hx-daynight .dn-star{position:absolute;z-index:1;width:3px;height:3px;border-radius:50%;background:#fff;box-shadow:0 0 6px #fff;transition:transform .6s ease,opacity .6s ease}
.hx-daynight .dn-star:nth-child(1){top:7px;left:12px}
.hx-daynight .dn-star:nth-child(2){top:18px;left:22px;width:2px;height:2px}
.hx-daynight .dn-star:nth-child(3){top:10px;left:30px;width:2px;height:2px}
.hx-daynight .dn-star:nth-child(4){top:21px;left:8px;width:2px;height:2px}
.hx-daynight .dn-cloud{
  position:absolute;z-index:2;width:22px;height:9px;border-radius:9px;background:#fff;
  box-shadow:6px -4px 0 1px #fff,13px 0 0 #fff;opacity:.95;transition:transform .6s ease,opacity .6s ease;
}
.hx-daynight .dn-cloud.c1{bottom:4px;left:30px;transform:translateY(16px)}
.hx-daynight .dn-cloud.c2{bottom:-3px;left:42px;transform:translateY(16px);opacity:.75}
/* Modo noche: la nube pequeña junto a la luna */
html.theme-night .hx-daynight .dn-cloud.c2{transform:translate(-36px,-6px) scale(.7);opacity:.55}
/* Modo día: sol a la izquierda, cielo azul, nubes */
html.theme-day .hx-daynight{background:linear-gradient(160deg,#6cc6ff,#2d8cf0);border-color:rgba(255,255,255,.6)}
html.theme-day .hx-daynight .dn-knob{transform:translateX(0);background:radial-gradient(circle at 35% 35%,#fff9d6,#ffcc2e 60%,#ff9d00);box-shadow:0 0 0 4px rgba(255,236,150,.35),0 0 18px rgba(255,204,46,.95)}
html.theme-day .hx-daynight .dn-knob::before,html.theme-day .hx-daynight .dn-knob::after{opacity:0}
html.theme-day .hx-daynight .dn-star{transform:translateY(-26px);opacity:0}
html.theme-day .hx-daynight .dn-cloud.c1{transform:translateY(0)}
html.theme-day .hx-daynight .dn-cloud.c2{transform:translateY(0)}
.hx-daynight-float{position:fixed;z-index:360;bottom:16px;inset-inline-start:16px}
header.public-site-header .hx-daynight{align-self:center}
header.public-site-header .hx-daynight.hx-daynight-top{position:absolute;z-index:5;top:16px;inset-inline-end:14px;margin:0}

/* Estrellas fugaces al cambiar de modo */
.hx-dn-fx{position:fixed;inset:0;z-index:9990;pointer-events:none;overflow:hidden}
.hx-dn-fx i{
  position:absolute;width:140px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,rgba(255,255,255,0),#fff 70%,#fff8c8);
  filter:drop-shadow(0 0 6px #fff);transform:rotate(-35deg);opacity:0;
  animation:hxShoot 1.1s ease-out forwards;
}
.hx-dn-fx.day i{background:linear-gradient(90deg,rgba(255,214,74,0),#ffd84a 70%,#fff)}
@keyframes hxShoot{0%{opacity:0;translate:0 0}15%{opacity:1}100%{opacity:0;translate:-420px 300px}}

/* ---------- Modo DÍA: fondo claro azul, textos oscuros, tarjetas claras ---------- */
html.theme-day{filter:invert(1) hue-rotate(180deg);background:#060a1a}
/* Lo que no debe invertirse: fotos, vídeos, logotipos, juegos, botones dorados, interruptor y Venom */
html.theme-day img,html.theme-day video,html.theme-day picture,html.theme-day iframe,html.theme-day canvas,
html.theme-day svg image,html.theme-day [style*="background-image"],html.theme-day .hx-daynight,
html.theme-day .btn-gold,html.theme-day .hx-pill[aria-current="page"],html.theme-day .bank-nav a[aria-current="page"],
html.theme-day .admin-sidebar a.on,html.theme-day .hx-pill[style*="--hb-c"],html.theme-day .hx-dn-fx{
  filter:invert(1) hue-rotate(180deg)
}
html.theme-day [style*="background-image"] img,html.theme-day .btn-gold img{filter:none}
/* cielo de día un poco más azul */
html.theme-day body,html.theme-day body.wow-page,html.theme-day body.wow-admin{background:#061844!important}
html.theme-day .aurora{opacity:.55}

/* ---------- Brillo que cruza TODAS las tarjetas ---------- */
.hx-shine{position:absolute;inset:0;z-index:3;overflow:hidden;border-radius:inherit;pointer-events:none;contain:paint}
.hx-shine::before{
  content:"";position:absolute;top:-25%;bottom:-25%;left:0;width:38%;
  background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.04) 30%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.04) 70%,transparent 100%);
  transform:translateX(-120%) skewX(-18deg);will-change:transform;
  animation:hxCardShine 3.5s ease-in-out infinite;
}
html.theme-day .hx-shine::before{background:linear-gradient(100deg,transparent 0%,rgba(0,0,0,.04) 30%,rgba(0,0,0,.18) 50%,rgba(0,0,0,.04) 70%,transparent 100%)}
.hx-shine-host{position:relative}
@keyframes hxCardShine{0%{transform:translateX(-120%) skewX(-18deg)}70%,100%{transform:translateX(300%) skewX(-18deg)}}

/* ---------- Admin: avisos y renovación de sesión ---------- */
.hx-admin-toasts{position:fixed;z-index:9000;bottom:18px;inset-inline-end:18px;display:grid;gap:10px;max-width:min(420px,calc(100vw - 36px))}
.hx-admin-toast{position:relative;overflow:hidden;padding:13px 16px;border-radius:16px;font-weight:800;color:#fff;
  background:linear-gradient(155deg,rgba(28,92,122,.95),rgba(8,30,52,.97));border:1px solid rgba(184,242,255,.3);box-shadow:0 18px 50px rgba(0,0,0,.4)}
.hx-admin-toast.bad{border-color:rgba(255,110,120,.7);background:linear-gradient(155deg,rgba(110,24,40,.95),rgba(40,8,18,.97))}
.hx-admin-toast i{position:absolute;left:0;bottom:0;height:4px;width:0;background:linear-gradient(90deg,#fff1a4,#ffd34f,#f8b32e);transition:width .2s}
.hx-renew{position:fixed;inset:0;z-index:9500;display:grid;place-items:center;padding:20px;background:rgba(2,6,18,.6);backdrop-filter:blur(6px)}
.hx-renew form{width:min(400px,100%);padding:24px;border-radius:24px;display:grid;gap:12px;text-align:center}
.hx-renew b{font-size:20px;color:#ffd34f}
.hx-renew p{margin:0;color:#cfe3ef}
.hx-renew-err{min-height:1em;color:#ff9aa5;font-weight:800}
.hx-renew-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

@media(prefers-reduced-motion:reduce){
  .hx-shine::before,.hx-dn-fx i{animation:none!important;display:none}
  .hx-daynight,.hx-daynight *{transition:none!important}
}
