* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:root { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: #2a2a40 #0b0b12; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0b12; }
::-webkit-scrollbar-thumb { background: #2a2a40; border-radius: 999px; border: 2px solid #0b0b12; }
::-webkit-scrollbar-thumb:hover { background: var(--twitch); }
:root {
  --bg: #0b0b12;
  --card: #15151f;
  --card2: #1d1d2b;
  --text: #f1f1f5;
  --muted: #a8a8b8;
  --twitch: #9146ff;
  --kick: #53fc18;
  --insta: #e1306c;
  --yt: #ff0000;
  --gold: #ffd447;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; }

/* Fondo con banner oficial de Twitch */
.bg-blur {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(11,11,18,.78), rgba(11,11,18,.94)),
    url('assets/banner-twitch.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  filter: saturate(1.2);
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,11,18,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #26263a;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: .8rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; letter-spacing: 1px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--twitch); object-fit: cover; }
.nav-auth { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.btn-tipeos {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(135deg, #6b4a00, #3a2a00);
  border: 1px solid var(--gold); color: var(--gold);
  border-radius: 999px; padding: .55rem 1.1rem;
  font-weight: 800; font-size: .9rem; text-decoration: none;
  box-shadow: 0 0 18px rgba(255,212,71,.35);
}
.btn-tipeos:hover { box-shadow: 0 0 26px rgba(255,212,71,.6); }
.btn-blacklist {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(90,15,15,.6);
  border: 1px solid #eb0400; color: #ff9a9a;
  border-radius: 999px; padding: .55rem 1.1rem;
  font-weight: 800; font-size: .9rem;
  box-shadow: 0 0 18px rgba(235,4,0,.35);
  cursor: help; white-space: nowrap;
}
.btn-google {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: .45rem 1.2rem .45rem .5rem;
  font-weight: 800; font-size: .9rem; cursor: pointer;
  box-shadow: 0 0 18px rgba(145,70,255,.45), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn-google:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 26px rgba(145,70,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-google:active { transform: translateY(0) scale(.98); }
.btn-google:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.twitch-icon,
.g-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  flex-shrink: 0;
}
.twitch-icon svg,
.g-icon svg { display: block; }
.user-chip { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.user-chip:hover span { color: var(--gold); }
.user-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--twitch); }
.user-chip span { font-weight: 700; font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout {
  background: transparent; color: var(--muted);
  border: 1px solid #333; border-radius: 999px;
  padding: .4rem .8rem; font-size: .8rem; cursor: pointer;
}
.btn-logout:hover { color: #fff; border-color: #666; }

/* HERO (sin recuadro, directo sobre el fondo) */
.hero { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1rem; text-align: center; }
.hero-logo-wrap { display: flex; justify-content: center; align-items: end; gap: 0; margin-bottom: 1rem; }
.hero-logo {
  width: 140px; height: 140px; border-radius: 50%;
  border: 4px solid var(--twitch);
  object-fit: cover;
  box-shadow: 0 0 40px rgba(145,70,255,.6);
}
.hero-logo.pulse { animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(145,70,255,.6); }
  14% { transform: scale(1.08); box-shadow: 0 0 60px rgba(145,70,255,.9); }
  28% { transform: scale(1); box-shadow: 0 0 40px rgba(145,70,255,.6); }
  42% { transform: scale(1.08); box-shadow: 0 0 60px rgba(145,70,255,.9); }
  56% { transform: scale(1); box-shadow: 0 0 40px rgba(145,70,255,.6); }
}
.hero-logo-alt {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--kick);
  margin-left: -25px;
  object-fit: cover;
  background: #000;
}
.badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0; }
.badge { background: #26263a; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.partner { background: var(--twitch); }
.badge.adult { background: #eb0400; }
h1 { font-size: 3rem; letter-spacing: 3px; margin: .5rem 0; }
.slogan { color: var(--gold); font-weight: 800; letter-spacing: 2px; margin-bottom: .8rem; }
.desc { color: var(--muted); max-width: 600px; margin: 0 auto 1.5rem; }
.stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 1.6rem; }
.stats span { color: var(--muted); font-size: .85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1rem; }
.btn { padding: .65rem 1.2rem .65rem .6rem; border-radius: 12px; text-decoration: none; font-weight: 800; display: inline-flex; gap: .6rem; align-items: center; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.2); flex-shrink: 0; }
.btn .brand-icon svg { display: block; }
.btn.twitch { background: linear-gradient(135deg, #9146ff, #772ce8); border-color: rgba(255,255,255,.22); box-shadow: 0 0 18px rgba(145,70,255,.35); }
.btn.twitch:hover { box-shadow: 0 6px 26px rgba(145,70,255,.6); }
.btn.kick { background: #0e0e0e; border: 2px solid var(--kick); color: var(--kick); box-shadow: 0 0 18px rgba(83,252,24,.18); }
.btn.kick .brand-icon { background: rgba(83,252,24,.14); border-color: rgba(83,252,24,.5); color: var(--kick); }
.btn.kick:hover { box-shadow: 0 6px 26px rgba(83,252,24,.4); }
.btn.insta { background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); border-color: rgba(255,255,255,.22); box-shadow: 0 0 18px rgba(238,42,123,.3); }
.btn.insta:hover { box-shadow: 0 6px 26px rgba(238,42,123,.55); }
.btn.yt { background: #fff; color: #111; border-color: rgba(0,0,0,.12); box-shadow: 0 0 18px rgba(255,255,255,.15); }
.btn.yt .brand-icon.yt-icon { background: #ff0000; border-color: rgba(0,0,0,.2); }
.btn.yt:hover { box-shadow: 0 6px 26px rgba(255,0,0,.35); }
.btn.discord { background: #5865F2; color: #fff; border-color: rgba(255,255,255,.22); box-shadow: 0 0 18px rgba(88,101,242,.4); }
.btn.discord:hover { box-shadow: 0 6px 26px rgba(88,101,242,.65); }
.btn.bet { background: linear-gradient(135deg,#0b2f9e,#1976d2); border: 2px solid #64b5f6; color: #fff; cursor: pointer; font-family: inherit; }
.btn.bet:hover { box-shadow: 0 0 22px rgba(25,118,210,.65); }
.btn.bet.big { width: 100%; justify-content: center; margin: 1rem 0 .5rem; font-size: 1rem; }
.btn.app { background: linear-gradient(135deg,#0e9f6e,#057a55); border: 2px solid #3DDC84; color: #fff; cursor: pointer; font-family: inherit; }
.btn.app:hover { box-shadow: 0 0 22px rgba(61,220,132,.6); }
.btn.app.big { width: 100%; justify-content: center; margin: 1rem 0 .5rem; font-size: 1rem; }
.btn.ios { background: #1d1d2b; border: 2px solid #333; color: var(--muted); cursor: not-allowed; font-family: inherit; opacity: .7; }
.btn.ios.big { width: 100%; justify-content: center; margin: 0 0 .5rem; font-size: 1rem; }
#appModal .admin-card p { margin-bottom: .8rem; }
.bet-age { width: 64px; height: 64px; border-radius: 50%; background: #eb0400; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem; border: 3px solid #fff; margin-bottom: .8rem; }
.bet-age.promo { background: #1976d2; font-size: 1rem; width: auto; height: auto; border-radius: 999px; padding: .35rem 1rem; display: inline-flex; }
#betModal .admin-card { border-top: 1px solid #2a2a40; }
#betModal .admin-card p { margin-bottom: .8rem; }
.bet-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.bet-code { background: rgba(255,212,71,.15); border: 1px dashed var(--gold); color: var(--gold); padding: .15rem .6rem; border-radius: 8px; letter-spacing: 1px; font: inherit; font-weight: 800; cursor: pointer; }
.bet-code:hover { background: rgba(255,212,71,.28); }
.bet-copy-msg { font-size: .8rem; color: #4ade80; font-weight: 800; margin-left: .3rem; }
.bet-promo-text { background: rgba(0,0,0,.35); border: 1px solid #2a2a40; border-radius: 10px; padding: 1rem; }
.btn.small { padding: .5rem .9rem; font-size: .9rem; }
.yt-wrap { margin-top: 1rem; border-radius: 14px; overflow: hidden; border: 1px solid #2a2a40; background: #000; aspect-ratio: 16/9; }
.yt-wrap iframe { width: 100%; height: 100%; display: block; border: 0; }
.yt-thumb { position: relative; display: block; width: 100%; height: 100%; text-decoration: none; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-thumb .yt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.8); background: rgba(0,0,0,.25); }
.yt-thumb:hover .yt-play { transform: scale(1.08); }
.yt-thumb .yt-play { transition: transform .15s; }
.yt-thumb .yt-age { position: absolute; left: .8rem; bottom: .8rem; background: rgba(0,0,0,.8); border: 1px solid #eb0400; color: #fff; font-size: .8rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; }
.clips-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1rem; }
.clip-card { background: var(--card); border: 1px solid #2a2a40; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.clip-card:hover { border-color: var(--twitch); }
.clip-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.clip-player img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-player .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: rgba(0,0,0,.35); }
.clip-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip-info { padding: .9rem 1rem; }
.clip-info h3 { font-size: 1rem; margin-bottom: .3rem; }
.clip-info p { font-size: .85rem; color: var(--muted); }
.clip-info a { font-size: .85rem; color: var(--gold); text-decoration: none; }

/* SECTIONS */
.section { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
.section h2 { font-size: 1.8rem; margin-bottom: 1rem; border-left: 5px solid var(--twitch); padding-left: .7rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid #2a2a40; border-radius: 14px; padding: 1.3rem; }
.card.highlight { border-color: var(--twitch); }
.card h3 { margin-bottom: .6rem; }
.list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.small { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.center { text-align: center; }
.embed-buttons { margin-top: 1rem; display: flex; gap: .6rem; }

.player-wrap { margin-top: 1rem; border-radius: 14px; overflow: hidden; border: 1px solid #2a2a40; background: #000; position: relative; width: 100%; aspect-ratio: 16/9; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }

.clip { text-decoration: none; transition: transform .15s; }
.clip:hover { transform: translateY(-3px); border-color: var(--twitch); }
.clip-thumb { background: linear-gradient(135deg,var(--twitch),#000); height: 120px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: .8rem; }

.social-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1rem; }
.social { display: flex; align-items: center; gap: .8rem; padding: 1rem; border-radius: 14px; text-decoration: none; background: var(--card); border: 1px solid #2a2a40; }
.social div { display: flex; flex-direction: column; flex: 1; }
.social span { font-size: .85rem; color: var(--muted); }
.social em { font-style: normal; font-weight: 800; font-size: .9rem; }
.s-icon { font-size: 1.8rem; }
.social.tw { border-left: 5px solid var(--twitch); }
.social.kk { border-left: 5px solid var(--kick); }
.social.ig { border-left: 5px solid var(--insta); }
.social.yb { border-left: 5px solid var(--yt); }

.contact { margin-top: 1rem; }
.contact a { color: var(--gold); }

footer { max-width: 1100px; margin: 2rem auto; padding: 1.5rem 1rem; text-align: center; color: var(--muted); border-top: 1px solid #26263a; }
footer button { margin-top: 1rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid #333; background: #1a1a28; color: white; cursor: pointer; }

/* Banner final juego responsable +18 */
.safer-banner {
  background: linear-gradient(135deg, #3d0a0a, #1a1a28);
  border-top: 3px solid #eb0400;
  border-bottom: 3px solid #eb0400;
  margin-top: 2rem;
}
.safer-inner {
  max-width: 1100px; margin: 0 auto; padding: 2rem 1rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.safer-age {
  flex-shrink: 0;
  width: 90px; height: 90px; border-radius: 50%;
  background: #eb0400; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900;
  border: 3px solid white;
}
.safer-text h2 { font-size: 1.4rem; margin-bottom: .6rem; border: none; padding: 0; }
.safer-text p { margin-bottom: .8rem; }
.safer-rules { margin: .8rem 0; }
.safer-help { background: rgba(0,0,0,.4); padding: 1rem; border-radius: 10px; }
.safer-help a { color: var(--gold); }

@media (max-width: 700px) {
  .safer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* Panel admin en ventana emergente */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.modal-box {
  width: 100%; max-width: 700px;
  background: var(--card2);
  border: 1px solid var(--twitch);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(145,70,255,.4);
  overflow: hidden;
}
.modal-box.small { max-width: 480px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid #2a2a40;
  font-size: 1.1rem;
}
.modal-tabs { display: flex; gap: .5rem; padding: 1rem 1.3rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tab {
  flex: 1 0 auto; padding: .7rem .9rem;
  background: #0e0e16; color: var(--muted);
  border: 1px solid #2a2a40; border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-weight: 800; cursor: pointer;
  white-space: nowrap; font-size: .9rem;
}
.tab.active { background: var(--twitch); color: #fff; }
.modal-box .admin-card { border: none; border-radius: 0; margin: 0; }
.modal-box #tabBodyClips .admin-card:first-child,
.modal-box #tabBodySorteos .admin-card:first-child,
.modal-box #tabBodyReclamos .admin-card:first-child,
.modal-box #tabBodyAdmins .admin-card { border-top: 1px solid #2a2a40; }
.reclamo-card { background: #0e0e16; border: 1px solid #2a2a40; border-radius: 10px; padding: .8rem; margin-bottom: .8rem; }
.reclamo-top { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .6rem; }
.reclamo-top .info { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.reclamo-top .info span { font-size: .8rem; color: var(--muted); }
.reclamo-top img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid #2a2a40; }
.reclamo-data { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; margin-bottom: .7rem; }
.admin-card { background: var(--card); border: 1px solid #2a2a40; border-radius: 14px; padding: 1.3rem; }
.admin-card h2 { font-size: 1.2rem; margin-bottom: .8rem; border-left: 5px solid var(--twitch); padding-left: .6rem; }
.field { margin-bottom: .8rem; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.field input, .field select { width: 100%; background: #0e0e16; border: 1px solid #2a2a40; color: #fff; padding: .6rem .8rem; border-radius: 8px; }
.field input:focus { outline: none; border-color: var(--twitch); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.btn-save { background: var(--twitch); color: #fff; border: none; border-radius: 10px; padding: .7rem 1.4rem; font-weight: 800; cursor: pointer; }
.btn-cancel { background: transparent; color: var(--muted); border: 1px solid #333; border-radius: 10px; padding: .7rem 1.2rem; cursor: pointer; margin-left: .5rem; }
.clip-row { display: flex; align-items: center; gap: .8rem; background: #0e0e16; border: 1px solid #2a2a40; border-radius: 10px; padding: .6rem .8rem; margin-bottom: .6rem; }
.clip-row img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: #000; flex-shrink: 0; }
.clip-row .info { flex: 1; min-width: 0; }
.clip-row .info strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-row .info span { font-size: .8rem; color: var(--muted); font-family: monospace; word-break: break-all; }
.clip-actions { display: flex; gap: .4rem; margin-left: auto; flex-shrink: 0; align-items: center; }
.icon-btn { background: #1d1d2b; color: #fff; border: 1px solid #333; border-radius: 8px; padding: .4rem .6rem; cursor: pointer; font-size: .85rem; }
.icon-btn:hover { border-color: var(--twitch); }
.icon-btn.danger:hover { border-color: #eb0400; color: #ff8080; }
.admin-row { display: flex; align-items: center; gap: .8rem; background: #0e0e16; border: 1px solid #2a2a40; border-radius: 10px; padding: .6rem .8rem; margin-bottom: .6rem; }
.admin-row .info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.admin-row .icon-btn { flex-shrink: 0; }
.role-tag { font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: #26263a; }
.role-tag.super { background: var(--twitch); }
.count-pill { font-size: .85rem; color: var(--muted); }
.panel-toast { padding: 0 1.3rem; }
.toast-msg {
  margin-top: .8rem; padding: .7rem 1rem; border-radius: 10px;
  background: rgba(20, 80, 40, .9); border: 1px solid #2ea043;
  font-size: .9rem; font-weight: 700;
  animation: toastIn .2s ease-out;
}
.toast-msg.error { background: rgba(90, 15, 15, .92); border-color: #eb0400; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.btn-save:disabled, .icon-btn:disabled { opacity: .55; cursor: wait; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }

@media (max-width: 700px) {
  h1 { font-size: 2.2rem; }
  .nav nav { display: none; }
  .modal { padding: .6rem .4rem; }
  .modal-box { border-radius: 12px; }
  .modal-head { padding: .9rem 1rem; }
  .modal-tabs { padding: .8rem .8rem 0; gap: .4rem; }
  .tab { flex: 0 0 auto; font-size: .82rem; padding: .6rem .8rem; }
  .clip-row { flex-wrap: wrap; gap: .6rem; }
  .clip-row img { width: 72px; height: 42px; }
  .clip-row .info { flex: 1 1 0; }
  .clip-actions { width: 100%; margin-left: 0; display: grid; grid-template-columns: 44px 44px 1fr 1fr; gap: .4rem; }
  .clip-actions .icon-btn { width: 100%; padding: .6rem .4rem; text-align: center; }
  .reclamo-top img { width: 100%; height: auto; max-height: 180px; }
  .reclamo-top { flex-wrap: wrap; }
  .icon-btn { min-height: 38px; }
}

/* Sorteos en el panel */
.mono { font-family: monospace; }
.winner-line {
  margin-top: .8rem; padding: .7rem 1rem; border-radius: 10px;
  background: rgba(255,212,71,.08); border: 1px solid var(--gold);
}
.parts-list { max-height: 220px; overflow-y: auto; background: rgba(0,0,0,.4); border: 1px solid #2a2a40; border-radius: 10px; padding: .5rem; }
.part-row { display: flex; align-items: center; gap: .5rem; font-size: .85rem; padding: .3rem .5rem; }
.part-num { color: var(--muted); font-family: monospace; width: 1.5rem; }
.part-name { font-weight: 700; font-family: monospace; }

/* Mi cuenta — estilo neón (solo visual, mismos IDs) */
.user-chip { cursor: pointer; }
.user-modal {
  background: rgba(13,13,24,.96);
  border: 1.5px solid rgba(168,85,247,.8);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(168,85,247,.25), 0 0 35px rgba(145,70,255,.45), inset 0 0 30px rgba(145,70,255,.06);
  overflow: hidden;
}
.user-head {
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(168,85,247,.25);
  padding: 1rem 1.1rem;
}
.user-head-title { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; }
.user-head-title strong { letter-spacing: .2px; }
.user-close {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,.06); color: #d8b4fe;
  border: 1px solid rgba(168,85,247,.45); cursor: pointer; font-size: 1rem;
}
.user-close:hover { background: rgba(145,70,255,.25); color: #fff; }
.user-body { padding: .4rem 1.1rem 1.2rem; }
.u-section { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.u-section:last-child { border-bottom: none; }
.u-section-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.15rem; font-weight: 800; margin-bottom: .7rem;
  border: none; padding: 0;
}
.u-bar { width: 5px; height: 26px; border-radius: 999px; background: linear-gradient(180deg,#c084fc,#7c3aed); box-shadow: 0 0 12px rgba(168,85,247,.9); }
.u-ico { color: #a855f7; display: inline-flex; align-items: center; flex-shrink: 0; }
.u-btn .u-ico { color: inherit; }
.u-btn .u-ico svg { display: block; }
.u-hint { margin-bottom: .7rem; }
.u-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: .9rem 1rem;
}
.u-profile { display: flex; align-items: center; gap: .9rem; }
.u-profile img, .user-perfil img {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  border: 2px solid #a855f7; box-shadow: 0 0 16px rgba(168,85,247,.7);
  background: #000; flex-shrink: 0;
}
.user-perfil { display: flex; align-items: center; gap: .9rem; }
.user-perfil .info, .u-profile .info { min-width: 0; overflow-wrap: anywhere; }
#upName { font-size: 1.05rem; }
#upLogin { color: #9ca3af; font-size: .9rem; }
/* Filas de tipeos inyectadas por JS */
.u-tipeos .admin-row, #upTipeos .admin-row {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
}
.u-tipeos .tipeo-pend { border-color: rgba(255,212,71,.5); }
.u-tipeos .icon-btn, #upTipeos .icon-btn {
  background: rgba(145,70,255,.2); border: 1px solid rgba(168,85,247,.6);
  border-radius: 10px; padding: .55rem .9rem; font-weight: 800;
}
/* Estado de cuenta inyectado por JS */
.cuenta-box { display: flex; align-items: center; justify-content: center; gap: .6rem; text-align: center; font-weight: 800; font-size: 1.05rem; border-radius: 14px; padding: 1rem; border: 1.5px solid; }
.cuenta-box.ok { color: #4ade80; background: linear-gradient(180deg, rgba(34,197,94,.22), rgba(34,197,94,.08)); border-color: rgba(74,222,128,.7); box-shadow: 0 0 18px rgba(34,197,94,.25), inset 0 0 20px rgba(34,197,94,.08); }
.cuenta-box.bad { color: #f87171; background: rgba(235,4,0,.08); border-color: #eb0400; cursor: pointer; box-shadow: 0 0 18px rgba(235,4,0,.25); flex-direction: column; }
.cuenta-box span { font-weight: 400; font-size: .8rem; }
/* Botones full-width */
.u-btn {
  width: 100%; display: flex; align-items: center; gap: .7rem;
  padding: .95rem 1.1rem; border-radius: 14px; font-weight: 800; font-size: 1rem;
  cursor: pointer; border: 1.5px solid transparent; font-family: inherit; text-align: left;
}
.u-btn .u-arrow { margin-left: auto; font-size: 1.4rem; opacity: .8; }
.u-btn-help { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #fff; }
.u-btn-help:hover { border-color: var(--twitch); }
.u-btn-admin {
  background: linear-gradient(135deg,#7c3aed,#5b21b6); color: #fff;
  border-color: rgba(196,132,252,.7); box-shadow: 0 0 22px rgba(124,58,237,.55);
}
.u-btn-admin:hover { filter: brightness(1.1); }
.u-ico-box { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 4px; }
.u-btn-logout { background: rgba(235,4,0,.06); border-color: rgba(235,4,0,.6); color: #f87171; }
.u-btn-logout:hover { background: rgba(235,4,0,.15); }
.u-btn-ghost { width: auto; background: transparent; border-color: #333; color: var(--muted); font-size: .9rem; padding: .6rem 1rem; margin-bottom: 1rem; }
#upLogout { width: 100%; }
#upFaqBtn { width: 100%; }
/* FAQ dentro del panel de usuario */
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: #0e0e16; border: 1px solid #2a2a40; border-radius: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: .5rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item[open] { border-color: var(--twitch); }
.faq-item[open] summary { color: var(--gold); border-bottom: 1px solid #2a2a40; }
.faq-item p { padding: .8rem 1rem; font-size: .85rem; color: #c9c9d6; line-height: 1.5; }
.faq-item p strong { color: #fff; }
