/* NEXLIVE SUPER CHAT */

.nxs-layer{
 position:absolute;
 inset:0;
 z-index:120;
 display:flex;
 align-items:center;
 justify-content:center;
 pointer-events:none;
 overflow:hidden;
 font-family:inherit;
}

.nxs-card{
 --nxs-color:#b77cff;
 position:relative;
 width:min(86%,390px);
 padding:20px 16px;
 border:2px solid var(--nxs-color);
 border-radius:20px;
 background:rgba(17,12,30,.92);
 box-shadow:0 0 35px var(--nxs-color);
 color:white;
 text-align:center;
 animation:nxs-enter .7s both;
 overflow:hidden;
}

.nxs-avatar{
 width:54px;
 height:54px;
 margin:0 auto 8px;
 border-radius:50%;
 border:2px solid var(--nxs-color);
 display:flex;
 align-items:center;
 justify-content:center;
 background:#30223d;
 font-size:22px;
 font-weight:800;
 overflow:hidden;
}

.nxs-avatar img{
 width:100%;
 height:100%;
 object-fit:cover;
}

.nxs-label{
 font-size:10px;
 font-weight:900;
 letter-spacing:2px;
 color:var(--nxs-color);
}

.nxs-name{
 font-size:21px;
 font-weight:900;
 margin:7px 0;
 overflow-wrap:anywhere;
}

.nxs-message{
 font-size:14px;
 line-height:1.4;
 overflow-wrap:anywhere;
}

.nxs-coins{
 display:inline-block;
 margin-top:10px;
 padding:5px 12px;
 border-radius:20px;
 background:var(--nxs-color);
 color:#100c17;
 font-size:12px;
 font-weight:900;
}

.nxs-phase-1{
 --nxs-color:#b6b8c8;
 animation:nxs-fade .5s both;
}

.nxs-phase-2{
 --nxs-color:#60a5fa;
 animation:nxs-slide .65s both;
}

.nxs-phase-3{
 --nxs-color:#bd80ff;
 animation:nxs-enter .7s both;
}

.nxs-phase-4{
 --nxs-color:#ffd166;
 animation:nxs-legendary .9s both;
}

.nxs-phase-5{
 --nxs-color:#ff496e;
 animation:nxs-supreme 1s both;
}

.nxs-phase-3::before,
.nxs-phase-4::before,
.nxs-phase-5::before{
 content:"";
 position:absolute;
 inset:-60%;
 background:conic-gradient(
  transparent,
  var(--nxs-color),
  transparent 30%
 );
 opacity:.16;
 animation:nxs-rotate 3s linear infinite;
 pointer-events:none;
}

.nxs-phase-5{
 box-shadow:
  0 0 25px #ff496e,
  0 0 65px #a100ff,
  inset 0 0 25px #ff496e55;
}

.nxs-exit{
 animation:nxs-out .45s forwards!important;
}

@keyframes nxs-fade{
 from{opacity:0;transform:scale(.94)}
 to{opacity:1;transform:scale(1)}
}

@keyframes nxs-enter{
 from{opacity:0;transform:scale(.3) rotate(-5deg)}
 65%{transform:scale(1.08)}
 to{opacity:1;transform:scale(1)}
}

@keyframes nxs-slide{
 from{opacity:0;transform:translateY(100px)}
 to{opacity:1;transform:translateY(0)}
}

@keyframes nxs-legendary{
 from{opacity:0;transform:scale(1.7) rotate(8deg)}
 to{opacity:1;transform:scale(1) rotate(0)}
}

@keyframes nxs-supreme{
 0%{opacity:0;transform:scale(.1) rotate(-20deg)}
 60%{opacity:1;transform:scale(1.2) rotate(4deg)}
 100%{transform:scale(1) rotate(0)}
}

@keyframes nxs-rotate{
 to{transform:rotate(360deg)}
}

@keyframes nxs-out{
 to{opacity:0;transform:scale(.7)}
}

@media(max-width:600px){
 .nxs-card{
  width:83%;
  padding:12px;
  border-radius:14px;
 }
 .nxs-avatar{
  width:36px;
  height:36px;
  font-size:16px;
 }
 .nxs-name{font-size:16px;margin:4px 0}
 .nxs-message{font-size:11px}
 .nxs-coins{font-size:10px;margin-top:6px}
 .nxs-label{font-size:9px}
}

@media(prefers-reduced-motion:reduce){
 .nxs-card,.nxs-card::before{
  animation:none!important;
 }
}

/* SELECTOR DE FASES */

.nxs-modal{
 z-index:9999;
}

.nxs-modal-box{
 width:min(92vw,420px);
 max-height:85svh;
 overflow-y:auto;
 padding:20px;
}

.nxs-modal-head{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
}

.nxs-modal-head h3{
 margin:0;
}

.nxs-close{
 width:34px;
 height:34px;
 border:0;
 border-radius:50%;
 background:#382447;
 color:white;
 font-size:24px;
 cursor:pointer;
}

.nxs-options{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:8px;
 margin:14px 0;
}

.nxs-options button{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 gap:4px;
 padding:12px;
 background:#271a35;
 border:1px solid #49345a;
 border-radius:12px;
 color:white;
 text-align:left;
 cursor:pointer;
}

.nxs-options button strong{
 font-size:13px;
}

.nxs-options button span{
 font-size:11px;
 color:#c7b3d5;
}

.nxs-options button.selected{
 background:#55217c;
 border-color:#ba75f0;
 box-shadow:0 0 0 1px #ba75f0;
}

.nxs-input{
 display:block;
 box-sizing:border-box;
 width:100%;
 min-height:85px;
 padding:12px;
 resize:vertical;
 background:#170f22;
 border:1px solid #51345f;
 border-radius:12px;
 color:white;
 font:inherit;
 outline:none;
}

.nxs-input:focus{
 border-color:#b66bea;
}

.nxs-selected{
 margin:12px 0;
 color:#d6b2ef;
 font-size:13px;
 font-weight:700;
}

.nxs-send{
 display:block;
 width:100%;
 padding:13px;
 border:0;
 border-radius:12px;
 background:#8c20cf;
 color:white;
 font-weight:800;
 cursor:pointer;
}

.nxs-note{
 display:block;
 margin-top:10px;
 color:#a89aaf;
 text-align:center;
 font-size:11px;
}

@media(max-width:390px){
 .nxs-modal-box{
  padding:14px;
 }
 .nxs-options button{
  padding:9px;
 }
}


/* NEXLIVE - ALERTAS PREMIUM */

.nxs-layer{
 position:absolute;
 inset:0;
 display:flex;
 align-items:center;
 justify-content:center;
 z-index:120;
 pointer-events:none;
 overflow:hidden;
}

.nxs-card{
 --nxs-color:#a78bfa;
 position:relative;
 isolation:isolate;
 box-sizing:border-box;
 width:min(76%,310px);
 padding:15px 17px;
 background:linear-gradient(
  145deg,
  rgba(24,20,36,.96),
  rgba(12,11,22,.96)
 );
 border:1px solid var(--nxs-color);
 border-radius:15px;
 box-shadow:0 12px 35px #0009;
 text-align:center;
 color:#fff;
 overflow:hidden;
 animation:nxs-premium-in .65s
  cubic-bezier(.16,1,.3,1) both;
}

.nxs-card::after{
 content:"";
 position:absolute;
 top:0;
 left:-120%;
 width:65%;
 height:100%;
 background:linear-gradient(
  90deg,
  transparent,
  rgba(255,255,255,.17),
  transparent
 );
 transform:skewX(-25deg);
 animation:nxs-shine 1.3s ease-out .3s both;
 pointer-events:none;
}

.nxs-label{
 font-size:10px;
 font-weight:800;
 letter-spacing:1.8px;
 text-transform:uppercase;
 color:var(--nxs-color);
}

.nxs-avatar{
 width:43px;
 height:43px;
 margin:9px auto 6px;
 border-radius:50%;
 border:2px solid var(--nxs-color);
 background:#292136;
 overflow:hidden;
 display:flex;
 align-items:center;
 justify-content:center;
 font-size:17px;
 font-weight:800;
}

.nxs-avatar img{
 width:100%;
 height:100%;
 object-fit:cover;
}

.nxs-name{
 font-size:18px;
 font-weight:800;
 margin:4px 0;
 overflow-wrap:anywhere;
}

.nxs-message{
 font-size:13px;
 line-height:1.4;
 color:#e9e5f1;
 overflow-wrap:anywhere;
}

.nxs-coins{
 display:inline-block;
 margin-top:10px;
 padding:5px 13px;
 border-radius:20px;
 background:var(--nxs-color);
 color:#111;
 font-size:11px;
 font-weight:900;
}

.nxs-phase-1{
 --nxs-color:#b5b9c9;
 animation:nxs-soft-in .45s ease-out both;
}

.nxs-phase-2{
 --nxs-color:#60a5fa;
 animation:nxs-slide-premium .6s
 cubic-bezier(.16,1,.3,1) both;
}

.nxs-phase-3{
 --nxs-color:#b881ff;
 box-shadow:0 0 24px #9c4dff55,
 0 12px 35px #0009;
}

.nxs-phase-4{
 --nxs-color:#ffd166;
 box-shadow:0 0 30px #ffd16666,
 0 12px 35px #0009;
 animation:nxs-gold-in .8s
 cubic-bezier(.16,1,.3,1) both;
}

.nxs-phase-5{
 --nxs-color:#ff587e;
 border-color:#ff587e;
 background:linear-gradient(
  145deg,
  rgba(51,17,38,.97),
  rgba(19,11,31,.97)
 );
 box-shadow:0 0 30px #ff587e66,
 0 12px 45px #000b;
 animation:nxs-cinematic .9s
 cubic-bezier(.16,1,.3,1) both;
}

.nxs-phase-3::before,
.nxs-phase-4::before,
.nxs-phase-5::before{
 content:"";
 position:absolute;
 inset:-70%;
 background:conic-gradient(
  transparent 0deg,
  var(--nxs-color) 45deg,
  transparent 80deg,
  transparent 180deg,
  var(--nxs-color) 230deg,
  transparent 270deg
 );
 opacity:.09;
 animation:nxs-rotate 6s linear infinite;
 pointer-events:none;
 z-index:-1;
}

.nxs-exit{
 animation:nxs-premium-out .4s ease-in forwards!important;
}

@keyframes nxs-soft-in{
 from{opacity:0;transform:translateY(12px)}
 to{opacity:1;transform:translateY(0)}
}

@keyframes nxs-premium-in{
 from{
  opacity:0;
  transform:translateY(45px) scale(.85);
  filter:blur(8px);
 }
 to{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
 }
}

@keyframes nxs-slide-premium{
 from{
  opacity:0;
  transform:translateX(-110px);
 }
 to{
  opacity:1;
  transform:translateX(0);
 }
}

@keyframes nxs-gold-in{
 0%{
  opacity:0;
  transform:scale(.65) rotate(-5deg);
 }
 70%{
  opacity:1;
  transform:scale(1.04) rotate(1deg);
 }
 100%{
  transform:scale(1) rotate(0);
 }
}

@keyframes nxs-cinematic{
 0%{
  opacity:0;
  transform:scale(1.4);
  filter:blur(14px);
 }
 65%{
  opacity:1;
  transform:scale(.97);
  filter:blur(0);
 }
 100%{
  transform:scale(1);
 }
}

@keyframes nxs-shine{
 from{left:-120%}
 to{left:160%}
}

@keyframes nxs-premium-out{
 to{
  opacity:0;
  transform:translateY(-25px) scale(.94);
  filter:blur(5px);
 }
}

@keyframes nxs-rotate{
 to{transform:rotate(360deg)}
}

@media(max-width:600px){
 .nxs-card{
  width:min(72%,270px);
  padding:11px 13px;
  border-radius:13px;
 }
 .nxs-avatar{
  width:34px;
  height:34px;
  margin:6px auto 4px;
 }
 .nxs-name{font-size:15px}
 .nxs-message{font-size:11px}
 .nxs-label{font-size:9px}
 .nxs-coins{
  font-size:10px;
  margin-top:7px;
 }
}

@media(prefers-reduced-motion:reduce){
 .nxs-card,
 .nxs-card::before,
 .nxs-card::after,
 .nxs-exit{
  animation:none!important;
 }
}


/* NEXLIVE - SUPER CHAT FLOTANTE */

.nxs-layer{
 position:absolute;
 inset:0;
 z-index:120;
 display:flex;
 justify-content:center;
 align-items:center;
 pointer-events:none;
 overflow:hidden;
}

.nxs-card,
.nxs-phase-1,
.nxs-phase-2,
.nxs-phase-3,
.nxs-phase-4,
.nxs-phase-5{
 box-sizing:border-box;
 width:min(78%,310px);
 padding:12px 15px 15px;
 position:relative;
 overflow:visible;
 border:0;
 border-radius:16px;
 background:rgba(13,10,25,.22);
 backdrop-filter:blur(2px);
 -webkit-backdrop-filter:blur(2px);
 box-shadow:none;
 text-align:center;
 color:white;
 animation:nxs-float-entry .85s
 cubic-bezier(.16,1,.3,1) both;
}

.nxs-card::before{
 content:"";
 position:absolute;
 inset:auto 12% -3px;
 height:3px;
 border-radius:10px;
 background:var(--nxs-color);
 box-shadow:0 0 12px var(--nxs-color);
 opacity:.9;
 animation:nxs-line-entry .85s ease-out both;
}

.nxs-card::after{
 display:none;
}

.nxs-label{
 font-size:10px;
 font-weight:800;
 letter-spacing:2px;
 text-shadow:0 2px 8px #000;
}

.nxs-avatar{
 width:45px;
 height:45px;
 margin:8px auto 6px;
 border:2px solid var(--nxs-color);
 box-shadow:0 0 16px var(--nxs-color);
 background:#21162d;
 animation:nxs-avatar-pop .8s both;
}

.nxs-name{
 font-size:19px;
 font-weight:900;
 margin:5px 0;
 text-shadow:0 2px 8px #000;
}

.nxs-message{
 font-size:13px;
 color:white;
 font-weight:500;
 text-shadow:0 2px 7px #000;
}

.nxs-coins{
 background:var(--nxs-color);
 color:#101018;
 border-radius:30px;
 padding:5px 15px;
 font-size:11px;
 font-weight:900;
 box-shadow:0 0 16px var(--nxs-color);
}

.nxs-phase-1{--nxs-color:#b9c0d1}
.nxs-phase-2{--nxs-color:#60a5fa}
.nxs-phase-3{--nxs-color:#b881ff}
.nxs-phase-4{--nxs-color:#ffd166}
.nxs-phase-5{--nxs-color:#ff587e}

.nxs-phase-3::before,
.nxs-phase-4::before,
.nxs-phase-5::before{
 inset:auto 12% -3px;
 height:3px;
 background:var(--nxs-color);
 opacity:1;
 animation:nxs-line-entry .85s ease-out both;
}

.nxs-exit{
 animation:nxs-float-exit .45s ease-in forwards!important;
}

@keyframes nxs-float-entry{
 0%{
  opacity:0;
  transform:translateY(65px) scale(.65);
  filter:blur(10px);
 }
 65%{
  opacity:1;
  transform:translateY(-8px) scale(1.04);
  filter:blur(0);
 }
 100%{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
 }
}

@keyframes nxs-avatar-pop{
 0%{transform:scale(0) rotate(-25deg)}
 65%{transform:scale(1.18) rotate(5deg)}
 100%{transform:scale(1) rotate(0)}
}

@keyframes nxs-line-entry{
 from{transform:scaleX(0);opacity:0}
 to{transform:scaleX(1);opacity:1}
}

@keyframes nxs-float-exit{
 to{
  opacity:0;
  transform:translateY(-35px) scale(.9);
  filter:blur(6px);
 }
}

@media(max-width:600px){
 .nxs-card,
 .nxs-phase-1,
 .nxs-phase-2,
 .nxs-phase-3,
 .nxs-phase-4,
 .nxs-phase-5{
  width:min(72%,270px);
  padding:10px 12px 13px;
 }
}

@media(prefers-reduced-motion:reduce){
 .nxs-card,
 .nxs-avatar,
 .nxs-card::before,
 .nxs-exit{
  animation:none!important;
 }
}

/* SUPER CHAT - AVISO DORADO */

.nxs-chat-event{
 display:flex;
 align-items:flex-start;
 gap:11px;
 padding:12px;
 margin:7px 5px;
 border-radius:12px;
 border:1px solid rgba(255,203,85,.6);
 background:linear-gradient(
  110deg,
  rgba(117,76,16,.48),
  rgba(45,30,12,.6)
 );
 box-shadow:0 0 16px rgba(255,190,54,.13);
 animation:nxs-chat-enter .5s ease-out both;
}

.nxs-chat-symbol{
 width:30px;
 height:30px;
 min-width:30px;
 display:flex;
 align-items:center;
 justify-content:center;
 border-radius:50%;
 background:#d99b28;
 color:#211300;
 font-size:17px;
 font-weight:900;
}

.nxs-chat-content{
 flex:1;
 min-width:0;
 display:flex;
 flex-direction:column;
 gap:4px;
}

.nxs-chat-content strong{
 color:#ffd77d;
 font-size:13px;
 font-weight:800;
}

.nxs-chat-content span{
 color:#fff0c9;
 font-size:12px;
 overflow-wrap:anywhere;
}

@keyframes nxs-chat-enter{
 from{
  opacity:0;
  transform:translateY(15px);
 }
 to{
  opacity:1;
  transform:translateY(0);
 }
}

@media(prefers-reduced-motion:reduce){
 .nxs-chat-event{
  animation:none;
 }
}


/* Super Chat persistente en conversación */
.nxl-messages .nxs-chat-event{
 display:flex;
 align-items:flex-start;
 gap:9px;
 margin:5px 0;
 padding:9px;
 border-radius:11px;
 border:1px solid rgba(224,174,65,.48);
 background:linear-gradient(
  110deg,
  rgba(110,75,20,.35),
  rgba(50,33,13,.28)
 );
 box-shadow:none;
 animation:none;
}

.nxl-messages .nxs-chat-event .nxl-avatar{
 flex-shrink:0;
}

.nxl-messages .nxs-chat-content{
 min-width:0;
 flex:1;
}

.nxl-messages .nxs-chat-content strong{
 color:#ffda85;
 font-size:12px;
}

.nxl-messages .nxs-chat-content span{
 color:#f9eed8;
 font-size:12px;
}

.nxl-messages .nxs-chat-content small{
 font-size:10px;
}

.nxl-messages .nxs-chat-symbol{
 display:none;
}
