:root{
  --bg:#0d0a18;--bg2:#130f24;--panel:#191330;--panel2:#211a3d;
  --line:rgba(255,255,255,.09);--line2:rgba(255,255,255,.14);
  --gold:#f6c453;--gold-deep:#e0a92e;--pink:#ff3d84;--cyan:#34d2f2;--green:#37d67a;--red:#ff6b6b;
  --text:#f1ecff;--muted:#a79dc7;--muted2:#7f7599;--maxw:1120px;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --mono:ui-monospace,"SF Mono","Cascadia Code",Consolas,monospace;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:
    radial-gradient(1000px 560px at 84% -10%,rgba(255,61,132,.13),transparent 60%),
    radial-gradient(820px 480px at 2% 2%,rgba(52,210,242,.10),transparent 55%),
    linear-gradient(180deg,var(--bg2),var(--bg) 44%) fixed;
  color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.6;min-height:100vh;-webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;line-height:1.12;letter-spacing:-.02em;text-wrap:balance}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.eyebrow{font:600 11px/1 var(--mono);letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.mono{font-family:var(--mono)}

/* NAV */
.nav{position:sticky;top:0;z-index:50;backdrop-filter:blur(14px);background:rgba(13,10,24,.8);border-bottom:1px solid var(--line)}
.nav .in{max-width:var(--maxw);margin:0 auto;padding:8px 20px;min-height:62px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;margin-right:auto}
.brand .logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(145deg,var(--gold),var(--gold-deep));display:grid;place-items:center;font-size:19px;box-shadow:0 6px 18px rgba(246,196,83,.34)}
.brand b{font-size:14.5px;font-weight:800;display:block}
.brand small{font:600 10px/1.3 var(--mono);color:var(--muted);letter-spacing:.06em}
.navlinks{display:flex;align-items:center;gap:8px}
.navlinks a{padding:8px 12px;border-radius:9px;font-size:13.5px;font-weight:600;color:var(--muted)}
.navlinks a:hover{color:var(--text);background:var(--panel)}
.uchip{display:flex;align-items:center;gap:9px;padding:5px 11px 5px 6px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.uchip .unm{font-size:13px;font-weight:700}
.ava{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font:800 12px/1 var(--sans);color:#241a06;background:linear-gradient(145deg,var(--cyan),#2aa7c4)}
.langsw{display:flex;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:3px}
.langsw button{border:0;background:transparent;color:var(--muted);font-family:var(--mono);font-size:12px;font-weight:600;padding:6px 9px;border-radius:7px;cursor:pointer;transition:.15s}
.langsw button:hover{color:var(--text)}
.langsw button.on{background:linear-gradient(145deg,var(--gold),var(--gold-deep));color:#241a06}
.langsw button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
@media (max-width:620px){.navlinks{order:3;width:100%}.brand small{display:none}}

/* BADGES */
.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:999px;font:700 10px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.b-premium{background:rgba(246,196,83,.16);color:var(--gold);border:1px solid rgba(246,196,83,.4)}
.b-free{background:rgba(52,210,242,.14);color:var(--cyan);border:1px solid rgba(52,210,242,.35)}
.b-admin{background:rgba(255,61,132,.15);color:var(--pink);border:1px solid rgba(255,61,132,.4)}
.b-green{background:rgba(55,214,122,.15);color:var(--green);border:1px solid rgba(55,214,122,.35)}
.b-red{background:rgba(255,107,107,.14);color:var(--red);border:1px solid rgba(255,107,107,.35)}
.b-elem{background:rgba(168,220,90,.16);color:#bce870;border:1px solid rgba(168,220,90,.42)}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:11px;font-weight:700;font-size:14px;cursor:pointer;border:1px solid transparent;transition:.16s;font-family:inherit}
.btn.sm{padding:8px 13px;font-size:12.5px}
.btn.primary{background:linear-gradient(145deg,var(--gold),var(--gold-deep));color:#241a06;box-shadow:0 8px 20px rgba(246,196,83,.28)}
.btn.primary:hover{transform:translateY(-1px)}
.btn.ghost{background:var(--panel);border-color:var(--line2);color:var(--text)}
.btn.ghost:hover{border-color:var(--gold);color:var(--gold)}
.btn.danger{background:rgba(255,107,107,.14);border-color:rgba(255,107,107,.4);color:var(--red)}
.btn.elem{background:linear-gradient(145deg,#a8dc5a,#7cb33a);color:#16240a;box-shadow:0 8px 20px rgba(168,220,90,.28)}
.btn.elem:hover{transform:translateY(-1px)}
.btn.block{width:100%;justify-content:center}

/* CARDS */
.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px}
.grid{display:grid;gap:16px}
/* Tarjetas del hub: mismo alto y reseñas/botón alineados abajo */
.grid>.card{height:100%}
.grid>.card>p{flex:1 1 auto}
/* La cabecera de cada tarjeta puede encoger sin desbordar en móvil */
.grid>.card>div:first-child{min-width:0}
.grid>.card>div:first-child>div{min-width:0}
@media (max-width:520px){
  .grid>.card{padding:18px}
  .grid>.card>div:first-child{flex-wrap:wrap}
}

/* FORMS */
.field{margin-bottom:14px}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:6px}
.input{width:100%;background:#0a0714;border:1px solid var(--line);border-radius:11px;color:var(--text);font-family:inherit;font-size:14.5px;padding:12px 14px}
.input:focus{outline:2px solid var(--cyan);outline-offset:1px;border-color:transparent}
textarea.input{min-height:90px;resize:vertical}

/* ALERTS */
.alert{padding:12px 15px;border-radius:11px;font-size:13.5px;margin-bottom:14px;border:1px solid}
.alert-error{background:rgba(255,107,107,.1);border-color:rgba(255,107,107,.3);color:#ffb3b3}
.alert-ok{background:rgba(55,214,122,.1);border-color:rgba(55,214,122,.3);color:#a6f0c6}
.alert-info{background:rgba(52,210,242,.08);border-color:rgba(52,210,242,.25);color:var(--muted)}

/* AUTH pages */
.authwrap{max-width:400px;margin:56px auto;padding:0 20px}
.authcard{background:var(--panel);border:1px solid var(--line2);border-radius:18px;padding:30px 28px}
.authcard h1{font-size:24px;font-weight:800;margin-bottom:4px}
.authcard .sub{color:var(--muted);font-size:14px;margin-bottom:22px}
.authcard .alt{text-align:center;margin-top:18px;font-size:13.5px;color:var(--muted)}
.authcard .alt a{color:var(--gold);font-weight:700}

/* stars */
.stars{color:var(--gold);letter-spacing:1px}
.stars .off{color:#3a3357}

footer.foot{border-top:1px solid var(--line);margin-top:auto;padding:24px 0;color:var(--muted2);font-size:12.5px;text-align:center}

/* ===== BADGE PREMIUM ANIMADO (por plugin) ===== */
.pbadge{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:999px;
  font:800 10.5px/1 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:#3a2704;
  position:relative;overflow:hidden;white-space:nowrap;
  background:linear-gradient(120deg,#e0a92e,#f6c453,#fff1c2,#f6c453,#e0a92e);background-size:220% 100%;
  box-shadow:0 0 0 1px rgba(246,196,83,.55),0 2px 12px rgba(246,196,83,.4);
  animation:pb-flow 3.2s linear infinite}
.pbadge .ic{display:inline-block;animation:pb-pulse 1.9s ease-in-out infinite}
.pbadge::after{content:"";position:absolute;top:0;left:-70%;width:45%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.85),transparent);transform:skewX(-20deg);
  animation:pb-shine 3.2s ease-in-out infinite}
@keyframes pb-flow{to{background-position:-220% 0}}
@keyframes pb-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.28) rotate(8deg)}}
@keyframes pb-shine{0%{left:-70%}55%,100%{left:150%}}
.pbadge.sm{padding:3px 9px;font-size:9.5px}

/* ===== Badges de rol en reseñas ===== */
.ubadge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;
  font:800 10px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  vertical-align:middle;position:relative;overflow:hidden}
.ubadge.user{background:linear-gradient(145deg,#2f74d8,#1e50a8);color:#eaf2ff;
  box-shadow:0 0 0 1px rgba(80,140,230,.5),0 2px 10px rgba(47,116,216,.4)}
.ubadge.admin{background:linear-gradient(120deg,#8f1414,#e23b3b,#ff6a6a,#e23b3b,#8f1414);background-size:220% 100%;
  color:#fff4f4;box-shadow:0 0 0 1px rgba(255,90,90,.6),0 0 14px rgba(226,59,59,.6);
  animation:ub-flow 3s linear infinite,ub-pulse 1.8s ease-in-out infinite}
.ubadge.admin .crown{display:inline-block;filter:drop-shadow(0 0 5px rgba(255,213,74,.9));animation:ub-crown 1.9s ease-in-out infinite}
.ubadge.admin::after{content:"";position:absolute;top:0;left:-70%;width:45%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.7),transparent);transform:skewX(-20deg);
  animation:ub-shine 3s ease-in-out infinite}
@keyframes ub-flow{to{background-position:-220% 0}}
@keyframes ub-pulse{0%,100%{box-shadow:0 0 0 1px rgba(255,90,90,.6),0 0 12px rgba(226,59,59,.5)}50%{box-shadow:0 0 0 1px rgba(255,120,120,.8),0 0 22px rgba(226,59,59,.9)}}
@keyframes ub-crown{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.25) rotate(-8deg)}}
@keyframes ub-shine{0%{left:-70%}55%,100%{left:150%}}

/* ===== Respuesta del admin en reseñas ===== */
.adminreply{margin-top:9px;padding:11px 13px;border-radius:11px;border-left:3px solid #e23b3b;
  background:rgba(226,59,59,.08)}
.adminreply .arhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px}
.adminreply .arhead .lbl{font:700 11px/1 var(--mono);color:#ff8a8a;letter-spacing:.04em}
.adminreply p{margin:0;font-size:13.5px}

/* ===== PANEL layout ===== */
.player{max-width:var(--maxw);margin:0 auto;padding:24px 20px 60px;display:grid;grid-template-columns:222px minmax(0,1fr);gap:28px;align-items:start}
.pside{position:sticky;top:86px}
.wcard{padding:14px;border-radius:14px;border:1px solid var(--line2);background:linear-gradient(180deg,rgba(246,196,83,.08),var(--panel));margin-bottom:12px}
.wcard .hi{font-size:14.5px;font-weight:800}
.wcard .badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.wcard .none{font-size:11.5px;color:var(--muted2);margin-top:7px}
.pnav{display:flex;flex-direction:column;gap:3px}
.pnav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:600;color:var(--muted);border-left:2px solid transparent}
.pnav a .n{width:18px;text-align:center}
.pnav a:hover{color:var(--text);background:var(--panel)}
.pnav a.on{color:var(--text);background:var(--panel);border-left-color:var(--gold)}
.pcontent{min-width:0}
.phead{margin-bottom:22px}
.phead h1{font-size:26px;font-weight:800}
.phead p{color:var(--muted);font-size:14.5px;margin:7px 0 0}
h3.sub{font-size:18px;font-weight:800;margin:30px 0 12px}

/* build cards */
.build{border:1px solid var(--line);border-radius:18px;background:var(--panel);overflow:hidden;margin-bottom:18px}
.build .bh{display:flex;align-items:center;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.build .bh .ico{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:23px;background:var(--panel2);border:1px solid var(--line2)}
.build .bh h3{font-size:17px;font-weight:800;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.build .bh .meta{font-size:12.5px;color:var(--muted);margin-top:3px}
.build .bh .price{margin-left:auto;text-align:right}
.build .bh .price b{font-size:19px;font-weight:900;color:var(--gold)}
.build .bh .price span{display:block;font:600 9px/1 var(--mono);color:var(--muted2);text-transform:uppercase;letter-spacing:.1em;margin-top:2px}
.brow{display:flex;align-items:center;gap:13px;padding:13px 18px;flex-wrap:wrap}
.brow+.brow{border-top:1px solid var(--line)}
.brow .v{font:700 14px/1 var(--mono);min-width:56px}
.brow .tag{font:600 9px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;padding:3px 6px;border-radius:5px;background:rgba(55,214,122,.15);color:var(--green)}
.brow .bmeta{font-size:12px;color:var(--muted2)}
.brow .sp{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.lockbox{padding:26px 20px;text-align:center}
.lockbox .em{font-size:28px}
.lockbox h4{font-size:16px;font-weight:800;margin:8px 0 4px}
.lockbox p{color:var(--muted);font-size:13.5px;margin:0 auto 15px;max-width:46ch}

/* reviews */
.rev-summary{display:grid;grid-template-columns:190px 1fr;gap:22px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel);margin-bottom:18px}
.rev-score{text-align:center}
.rev-score .big{font-size:50px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
.rev-score .cnt{font-size:12.5px;color:var(--muted2)}
.dist{display:flex;flex-direction:column;gap:6px}
.dist .row{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--muted)}
.dist .row .k{width:28px;color:var(--muted2);font-family:var(--mono)}
.dist .bar{flex:1;height:8px;border-radius:5px;background:var(--panel2);overflow:hidden}
.dist .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold-deep),var(--gold))}
.dist .row .p{width:34px;text-align:right;font-family:var(--mono);color:var(--muted2)}
.writebox{border:1px solid var(--line2);border-radius:18px;background:linear-gradient(180deg,rgba(52,210,242,.06),var(--panel));padding:20px;margin-bottom:22px}
.starpick{display:flex;gap:6px;font-size:30px;margin:10px 0 12px;cursor:pointer;width:max-content}
.starpick span{color:#3a3357;transition:.1s}
.starpick span.hot{color:var(--gold);text-shadow:0 0 12px rgba(246,196,83,.5)}
.review{display:flex;gap:13px;padding:17px 0;border-top:1px solid var(--line)}
.review .ra{width:40px;height:40px;border-radius:11px;flex:none;display:grid;place-items:center;font:800 15px/1 var(--sans);color:#241a06;background:linear-gradient(145deg,var(--cyan),#2aa7c4)}
.review .top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.review .who{font-size:14.5px;font-weight:800}
.review .date{font-size:11.5px;color:var(--muted2);margin-left:auto}
.review .rs{color:var(--gold);font-size:13px;letter-spacing:1px;margin:5px 0 6px}
.review .rs .off{color:#3a3357}
.review p{margin:0;font-size:14px;color:var(--muted)}

/* license cards */
.lgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.lcard{border:1px solid var(--line);border-radius:15px;background:var(--panel);padding:18px}
.lcard .k{font:600 10px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted2);margin-bottom:7px}
.keyrow{display:flex;align-items:center;gap:10px;background:#0a0714;border:1px solid var(--line);border-radius:10px;padding:10px 13px}
.keyrow code{font-family:var(--mono);font-size:13px;color:var(--gold);letter-spacing:1px;word-break:break-all}

@media (max-width:860px){
  .player{grid-template-columns:minmax(0,1fr);gap:14px}
  .pside{position:sticky;top:62px;z-index:30;background:rgba(13,10,24,.92);backdrop-filter:blur(12px);margin:0 -20px;padding:8px 14px;border-bottom:1px solid var(--line)}
  .wcard{display:none}
  .pnav{flex-direction:row;overflow-x:auto;gap:6px}
  .pnav a{white-space:nowrap;border-left:0;border-bottom:2px solid transparent;flex:none;padding:8px 12px}
  .pnav a.on{border-left:0;border-bottom-color:var(--gold)}
  .rev-summary,.lgrid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.pbadge,.pbadge .ic,.pbadge::after{animation:none}}
