/* ==========================================================================
   Mikasoff Recargas · Portal de revendedores
   Colores medidos de los bocetos: crema/durazno + rojo carmesí.
   ========================================================================== */

:root {
  /* Paleta de marca: rosa empolvado, rojo profundo, coral y crema. */
  --brand-rose: #cc8780;
  --brand-red: #ad3029;
  --brand-coral: #cd5252;
  --brand-cream: #feefcd;

  /* Superficies: la crema de la paleta y tintes de ella */
  --bg: #fffaf0;
  --panel: #fff4df;
  --side: #f8e2c5;
  --card: var(--brand-cream);
  --card-hi: #fff8e9;
  --line: #f0d4b3;
  --line-strong: #e4bda2;

  --red: var(--brand-red);
  --red-600: #932923;
  --red-700: #79221d;
  --red-400: var(--brand-coral);
  --red-300: var(--brand-rose);
  --red-200: #e0b7b3;
  --red-100: #f8e1d9;

  --ink: #4a2c27;
  --ink-2: #7a625a;
  --ink-3: #aa938a;

  --ok: #43733d;
  --ok-bg: #d9e6c4;
  --warn: #96590c;
  --warn-bg: #fbd89d;
  --bad: #a52a24;
  --bad-bg: #f6d1cb;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 6px 18px rgba(173, 48, 41, 0.07);
  --shadow-pop: 0 18px 50px rgba(100, 32, 26, 0.24);

  --font: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;

  --sidebar-w: 236px;
  --tabbar-h: 66px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--red); }
img { display: block; max-width: 100%; height: auto; } /* con height:auto una imagen nunca se deforma si el ancho se achica */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(173, 48, 41, 0.35);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 0 22px; height: 44px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  background: var(--red); color: #fff;
  box-shadow: 0 6px 14px rgba(173, 48, 41, 0.22);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, opacity 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--red-600); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(173, 48, 41, 0.2); }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn.block { width: 100%; }
.btn.lg { height: 50px; font-size: 16px; border-radius: 16px; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.soft {
  background: var(--red-300); color: #fff; box-shadow: none;
}
.btn.soft:hover { background: var(--red-400); }
.btn.ghost {
  background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red-200);
}
.btn.ghost:hover { background: var(--red-100); }
.btn.ghost:active { box-shadow: inset 0 0 0 2px var(--red-200); }
.btn.wa { background: #1f9d55; box-shadow: 0 6px 14px rgba(31, 157, 85, 0.22); }
.btn.wa:hover { background: #17874a; }

/* Selector "Contactar soporte": despliega los dos admins en vez de un botón por cada uno. */
.support-pick { display: block; }
.modal-foot .support-pick { flex: 1; }
.support-pick summary { list-style: none; cursor: pointer; width: 100%; }
.support-pick summary::-webkit-details-marker { display: none; }
.support-pick summary svg:last-child { width: 16px; height: 16px; flex: none; transition: transform 0.15s; }
.support-pick[open] summary svg:last-child { transform: rotate(180deg); }
.support-pick-menu { display: grid; gap: 6px; margin-top: 8px; padding: 8px; background: var(--card-hi); border: 1px solid var(--line); border-radius: 14px; }
.support-pick-menu a {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: #1f9d55; text-decoration: none; background: rgba(31, 157, 85, 0.1);
}
.support-pick-menu a:hover { background: rgba(31, 157, 85, 0.18); }
.support-pick-menu a svg { width: 18px; height: 18px; flex: none; }

.spinner {
  width: 1em; height: 1em; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.btn.ghost .spinner, .link-btn .spinner { border-color: var(--red-200); border-top-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none; border: 0; padding: 0; color: var(--red); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 6px; align-items: center;
}

/* ---------- Campos ---------- */

.field { display: grid; gap: 6px; }
.field > label, .label {
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input-wrap:focus-within {
  border-color: var(--red-300); background: var(--card-hi);
  box-shadow: 0 0 0 4px rgba(173, 48, 41, 0.08);
}
.input-wrap > .icon { margin-left: 16px; color: var(--red); width: 22px; height: 22px; }
.input-wrap input, .input-wrap select, .input-wrap textarea {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 0; background: transparent; outline: none;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.input-wrap > .icon + input { padding-left: 12px; }
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: var(--ink-3); font-weight: 500; }
.input-wrap.has-error { border-color: var(--red); }
.input-wrap .suffix {
  border: 0; background: none; padding: 0 16px 0 8px; height: 50px; color: var(--red);
  display: inline-flex; align-items: center;
}
.input-wrap textarea { height: auto; padding: 12px 16px; resize: none; min-height: 74px; }

select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px !important; }
.select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.hint { font-size: 13px; color: var(--ink-2); }
.error-text { font-size: 13.5px; color: var(--bad); font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }

/* ---------- Estados (pastillas) ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--ok-bg); color: var(--ok);
}
.pill.processing { background: var(--warn-bg); color: var(--warn); }
.pill.failed { background: var(--bad-bg); color: var(--bad); }
.pill.partial { background: var(--warn-bg); color: var(--warn); }
/* Entrega parcial: cuántos llegaron, reintegro y reenvío */
.partial-info { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 12.5px; line-height: 1.35; color: var(--muted, #6b6b6b); max-width: 260px; white-space: normal; }
.partial-info b { color: var(--warn); font-size: 13px; }
.partial-info .btn { align-self: flex-start; margin-top: 4px; white-space: normal; text-align: left; }
.partial-info .resent { color: var(--ok); font-weight: 600; }
.qty-partial { color: var(--warn); font-weight: 700; }
.qty-partial small { font-weight: 500; color: var(--muted, #6b6b6b); }
.price s.was { display: block; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--muted, #6b6b6b); }
.partial-txt { color: var(--warn); font-weight: 600; }
.pill.role { background: var(--red-100); color: var(--red); }

/* ---------- Pase de Nivel · Completo: detalle por nivel ---------- */

.lvl-list { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--card-hi); border: 1px solid var(--line); }
.lvl-title { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.lvl-row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.lvl-row .lvl-ic { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.lvl-row span:nth-child(2) { flex: 1; }
.lvl-row.delivered .lvl-ic { color: var(--ok); }
.lvl-row.delivered b { color: var(--ok); }
.lvl-row.failed .lvl-ic { color: var(--warn); }
.lvl-row.failed b { color: var(--warn); }
.lvl-row.ambiguous .lvl-ic, .lvl-row.processing .lvl-ic { color: var(--ink-3); }

/* ---------- Layout ---------- */

.app { min-height: 100vh; min-height: 100dvh; display: flex; background: var(--bg); }

.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--side);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 16px 20px;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
}
.sidebar { --logo-halo: var(--side); }
.sidebar .brand { display: block; margin: 0 6px 22px; text-decoration: none; }
.nav { display: grid; gap: 6px; }
.nav a {
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px;
  border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px;
  transition: background 0.15s, color 0.15s;
}
.nav a .icon { width: 24px; height: 24px; color: var(--red); }
.nav a[data-nav='/diamantes'] .icon { color: #0284c7; }
.nav a[data-nav='/extras'] .icon { color: #7c3aed; }
.nav a[data-nav='/historial'] .icon { color: #d97706; }
.nav a:hover { background: rgba(173, 48, 41, 0.08); }
.nav a.active {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 16px rgba(173, 48, 41, 0.28);
}
.nav a.active .icon { color: #fff !important; }
.sidebar .spacer { flex: 1; }
.sidebar .logout {
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px; border: 0; background: none;
  color: var(--red); font-weight: 700; font-size: 15px; border-radius: 16px; text-align: left; width: 100%;
}
.sidebar .logout:hover { background: rgba(173, 48, 41, 0.08); }
.sidebar .logout .icon { width: 24px; height: 24px; }
.sidebar .credit { margin: 14px 8px 0; font-size: 11px; color: var(--ink-3); line-height: 1.35; }

.main { flex: 1; min-width: 0; background: var(--panel); display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 36px 0;
}
.topbar .titles { min-width: 0; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.page-sub { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.topbar .decor { margin-left: auto; margin-right: 12px; display: flex; gap: 6px; align-items: flex-start; color: var(--red); }
.topbar-actions { display: flex; align-items: center; gap: 14px; flex: none; position: relative; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--red);
}
.icon-btn:hover { background: rgba(173, 48, 41, 0.08); }
.icon-btn .icon { width: 26px; height: 26px; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--panel); line-height: 1;
}

/* El anillo rojo ya viene dibujado en la ilustración del avatar */
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: block; }
.avatar img { width: 100%; height: 100%; object-fit: contain; }
.avatar.xl { width: 96px; height: 96px; }
.avatar.lg { width: 72px; height: 72px; }

.user-menu-btn {
  display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; border-radius: 30px; color: var(--red);
}
.user-menu-btn .icon { width: 18px; height: 18px; }

.popover {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; min-width: 220px; max-width: calc(100vw - 24px);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-pop);
  padding: 8px; animation: pop 0.14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.popover .item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: none;
  border-radius: 12px; font-weight: 700; text-align: left; text-decoration: none; color: var(--ink);
}
.popover .item:hover { background: var(--card); }
.popover .item .icon { color: var(--red); }
.popover.notifs { width: 340px; padding: 0; overflow: hidden; }
.popover .p-head { padding: 14px 16px; font-weight: 800; border-bottom: 1px solid var(--line); }
.popover .p-list { max-height: 360px; overflow: auto; }
.notif { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: var(--card); }
.notif b { font-size: 14px; }
.notif span { font-size: 13px; color: var(--ink-2); }
.notif small { font-size: 12px; color: var(--ink-3); }
.empty { padding: 28px 18px; text-align: center; color: var(--ink-2); }

.view { padding: 22px 36px 48px; width: 100%; max-width: 1180px; flex: 1; }
.view > * + * { margin-top: 22px; }

/* ---------- Tarjetas ---------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad { padding: 22px; }
.section-title { font-size: 20px; font-weight: 800; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-weight: 700; font-size: 14.5px; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

/* ---------- Inicio ---------- */

.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; }
.who { display: flex; align-items: center; gap: 18px; min-width: 0; }
.who .avatar { width: 78px; height: 78px; }
.who h2 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.who h2 .heart { color: var(--red); width: 22px; height: 22px; }
.who p { color: var(--ink-2); }
.balance {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 16px; padding: 16px 20px; flex: none;
  background: var(--card-hi); border: 1.5px solid var(--line-strong); border-radius: 18px; min-width: 360px;
}
.balance .wallet { color: var(--red); width: 50px; height: 50px; }
.balance .meta { min-width: 0; }
.balance small { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.balance strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.balance .btn { grid-column: 1 / -1; width: 100%; }

.banner {
  position: relative; overflow: hidden; border-radius: 20px; min-height: 104px; padding: 18px 28px;
  display: flex; align-items: center; background: linear-gradient(100deg, #f6d5c6 0%, #fbe6cd 55%, #f2c8bb 100%);
  border: 1px solid var(--line);
}
.banner .copy { position: relative; z-index: 2; max-width: 62%; }
.banner .script { font-family: var(--font-script); font-size: 38px; font-weight: 700; color: var(--red); line-height: 1.05; }
.banner .copy p { margin-top: 6px; color: var(--red-600); font-size: 14.5px; display: flex; gap: 6px; align-items: center; }
.banner .chibi {
  position: absolute; right: 22px; bottom: 0; height: 100px; width: auto; z-index: 1;
}
.banner .deco { position: absolute; color: var(--red-300); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick a {
  display: flex; align-items: center; gap: 16px; padding: 20px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.quick a:hover { transform: translateY(-3px); border-color: var(--red-200); box-shadow: 0 12px 26px rgba(173, 48, 41, 0.12); }
.quick a[href='/diamantes']:hover { border-color: #38bdf8; box-shadow: 0 12px 26px rgba(14, 165, 233, 0.16); }
.quick a[href='/extras']:hover { border-color: #c084fc; box-shadow: 0 12px 26px rgba(124, 58, 237, 0.16); }
.quick a[href='/historial']:hover { border-color: #fbbf24; box-shadow: 0 12px 26px rgba(217, 119, 6, 0.16); }
.quick .q-ico { width: 62px; height: 62px; flex: none; display: grid; place-items: center; }
.quick a[href='/diamantes'] .q-ico { color: #0284c7; }
.quick a[href='/extras'] .q-ico { color: #7c3aed; }
.quick a[href='/historial'] .q-ico { color: #d97706; }.quick .q-ico .icon { width: 58px; height: 58px; }
.quick b { display: block; font-size: 17px; font-weight: 800; }
.quick span { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.3; margin-top: 2px; }

.list { overflow: hidden; }
.list .row {
  display: grid; grid-template-columns: 52px minmax(0, 2.2fr) minmax(0, 1fr) 150px 120px; align-items: center; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--line);
}
.list .row:first-child { border-top: 0; }
.row .thumb { width: 38px; height: 38px; object-fit: contain; }
.row .name { font-weight: 800; font-size: 15.5px; }
.row .name small { display: block; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.row .price { font-weight: 800; font-size: 16px; }
.row .when { color: var(--ink-2); font-size: 14px; text-align: right; font-weight: 600; }

/* ---------- Diamantes ---------- */

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px 16px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  cursor: pointer; text-align: center; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.pkg:hover { transform: translateY(-3px); border-color: var(--red-200); }
.pkg.selected { border-color: var(--red); box-shadow: 0 0 0 4px rgba(173, 48, 41, 0.12), var(--shadow); background: var(--card-hi); }
.pkg.soldout { opacity: 0.55; cursor: not-allowed; }
/* Las tarjetas de diamantes son imágenes verticales: se muestran enteras, sin recortar ni deformar. */
.pkg img.art { height: 178px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(60, 20, 18, 0.28)); transition: transform 0.18s; }
.pkg:hover img.art { transform: translateY(-3px) scale(1.02); }
.pkg .cap { font-size: 15px; font-weight: 800; text-align: center; }
.pkg .amount { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 800; }
.pkg .amount img { width: 20px; height: 20px; filter: none; }
.pkg .buy {
  width: 100%; height: 38px; border-radius: 12px; border: 0; background: var(--red); color: #fff; font-weight: 800; font-size: 15.5px;
}
.pkg .tag { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 800; color: var(--bad); background: var(--bad-bg); padding: 2px 9px; border-radius: 99px; }

.panel { padding: 22px; display: grid; gap: 16px; position: relative; overflow: hidden; background: var(--panel); }
.panel .fields { display: grid; gap: 16px; max-width: 640px; position: relative; z-index: 1; }
.panel .art { position: absolute; right: 44px; bottom: 14px; width: 150px; pointer-events: none; }
.panel .art img { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(110, 34, 28, 0.2)); }
.panel .fields { max-width: min(640px, calc(100% - 210px)); }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--red-200); }
.picked img { height: 52px; width: auto; max-width: 44px; object-fit: contain; flex: none; border-radius: 6px; }
.picked div { flex: 1; min-width: 0; display: grid; }
.picked b { font-weight: 800; }
.picked span { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.picked strong { font-weight: 800; font-size: 18px; color: var(--red); }
/* En pantallas medianas la muñeca le quitaría ancho al formulario: se oculta (en la computadora grande se ve completa). */
@media (max-width: 1100px) { .panel .art { display: none; } .panel .fields { max-width: none; } }
.id-row { display: flex; gap: 12px; }
.id-row .input-wrap { flex: 1; }
.id-row .btn { height: 50px; flex: none; }

.player {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px;
  background: var(--card-hi); border: 1.5px solid var(--ok-bg);
}
.player.bad { border-color: var(--bad-bg); background: #fff3ee; }
.player .avatar { width: 48px; height: 48px; overflow: hidden; border: 2px solid var(--ok); background: #fff; display: grid; place-items: center; color: var(--ok); }
.player .avatar img { object-fit: cover; }
.player .avatar .icon { width: 26px; height: 26px; }
.player.bad .avatar { border-color: var(--bad); color: var(--bad); }
.player b { display: block; font-size: 16px; }
.player span { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.player .ok-badge { margin-left: auto; color: var(--ok); }

/* ---------- Juegos Disponibles (tarjetas de juego, portal y tienda) ---------- */

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: #fff7ea; border: 1.5px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--red-200); box-shadow: 0 12px 26px rgba(173, 48, 41, 0.14); }
.game-card:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gc-banner { display: block; aspect-ratio: 326 / 126; background: var(--card-hi); overflow: hidden; }
.gc-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gc-banner .gc-fallback { object-fit: contain; padding: 10px; }
.gc-banner > .icon { width: 56px; height: 56px; margin: 30px auto; display: block; color: var(--red); }
.gc-body { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px 16px; }
.gc-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gc-txt b { font-size: 24px; font-weight: 800; line-height: 1.15; }
.gc-txt span { color: var(--ink-2); font-size: 16px; }
.gc-badge { width: 38px; height: 38px; border-radius: 50%; flex: none; }
@media (max-width: 1100px) { .game-grid { gap: 16px; } .gc-txt b { font-size: 20px; } .gc-txt span { font-size: 14.5px; } }
@media (max-width: 760px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card { border-radius: 18px; }
  .gc-body { padding: 10px 12px 12px; }
  .gc-txt b { font-size: 16.5px; }
  .gc-txt span { font-size: 12.5px; }
  .gc-badge { width: 26px; height: 26px; }
}

/* ---------- Streaming (tarjetas por servicio con sus opciones a la vista) ---------- */

.st-note { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.st-note .icon { width: 16px; height: 16px; color: var(--red); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; align-items: start; }
.st-card {
  display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 14px; background: #fff7ea;
  border: 1.5px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.st-banner { aspect-ratio: 255 / 88; border-radius: 14px; overflow: hidden; background: var(--card-hi); display: grid; place-items: center; }
.st-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-banner b { font-size: 22px; color: var(--red); }
.st-opts { display: grid; gap: 6px; }
.st-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; text-align: left; cursor: pointer;
  background: #fde8e4; border: 1.5px solid transparent; border-radius: 12px; font: inherit; color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}
.st-opt:hover:not(:disabled) { border-color: var(--red-200); background: #fbdcd6; }
.st-opt:disabled { cursor: not-allowed; opacity: 0.6; }
.st-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #f7c9c1; color: var(--red); }
.st-ic .icon { width: 15px; height: 15px; }
.st-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.st-price { font-weight: 800; color: var(--red); white-space: nowrap; font-size: 14.5px; }
.st-opt:disabled .st-price { color: var(--ink-3); font-size: 12.5px; }
.st-buy { align-self: center; min-width: 60%; justify-content: center; }
.st-card.soldout .st-banner { filter: grayscale(0.6); }
@media (max-width: 760px) { .st-grid { grid-template-columns: 1fr; } }

/* Región (LATAM / Brasil) dentro de un juego. */
.region-tabs { display: inline-flex; gap: 6px; padding: 4px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); margin-bottom: 18px; }
.region-tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 99px; font-weight: 800; color: var(--ink-2); cursor: pointer; font-size: 15px; }
.region-tabs button.on { background: var(--red); color: #fff; }
.ff-sub { margin: 26px 0 14px; font-size: 20px; }

/* ---------- Reseñas (estrellas) ---------- */

.stars-in { display: flex; align-items: center; gap: 4px; }
.star-opt { position: relative; cursor: pointer; color: var(--line-strong, #e6c39c); line-height: 0; border-radius: 8px; }
/* El radio queda DENTRO de su estrella (position: relative arriba): si no, al enfocarlo el navegador salta a donde quedó. */
.star-opt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.star-opt .icon { width: 34px; height: 34px; transition: transform 0.12s, color 0.12s; }
.star-opt.on { color: #f59e0b; }
.star-opt:hover .icon { transform: scale(1.12); }
.star-opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.stars-label { margin-left: 8px; font-weight: 800; color: var(--ink-2); font-size: 14px; }
.stars-view { display: inline-flex; gap: 1px; color: var(--line-strong, #e6c39c); vertical-align: -2px; }
.stars-view .icon { width: 16px; height: 16px; }
.stars-view .on { color: #f59e0b; }

.review-box { margin-top: 18px; padding: 18px; border: 1.5px dashed var(--line-strong, #e6c39c); border-radius: var(--radius); background: var(--card); }
.review-box h3 { margin: 0 0 4px; font-size: 17px; }
.review-box textarea { width: 100%; min-height: 76px; resize: vertical; }
.review-done { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); font-weight: 700; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.review-card { padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.review-card p { margin: 0; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.review-card footer { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.review-card footer span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-btn { margin-left: 6px; padding: 4px 10px; font-size: 12.5px; }
.rv-mini { margin-left: 6px; white-space: nowrap; }
.rv-mini .icon { width: 13px; height: 13px; }
.reviews-avg { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Extras / Juegos ---------- */

.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; text-decoration: none; font-weight: 800; color: var(--ink-2); }
.back-link:hover { color: var(--red); }
.back-link .icon { width: 18px; height: 18px; }

.extras-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.extra {
  display: flex; align-items: center; gap: 18px; padding: 16px 22px; min-height: 96px; text-align: left; width: 100%;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; position: relative; text-decoration: none; color: inherit;
}
.extra:hover { transform: translateY(-3px); border-color: var(--red-200); box-shadow: 0 12px 26px rgba(173, 48, 41, 0.12); }
.extra .pic { width: 74px; height: 66px; display: grid; place-items: center; flex: none; }
.extra .pic img { width: auto; height: auto; max-width: 74px; max-height: 66px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(60, 20, 20, 0.22)); }
.extra .pic img[src*='card-'] { border-radius: 5px; max-height: 70px; }
.extra .pic .icon { width: 56px; height: 56px; color: var(--red); }
.extra .txt { flex: 1; min-width: 0; }
.extra b { display: block; font-size: 18px; font-weight: 800; }
.extra .p { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.extra .p.soft { font-size: 16px; color: var(--ink-2); font-weight: 700; }
.extra .go { color: var(--red); width: 24px; height: 24px; flex: none; }
.extra.soldout { opacity: 0.6; }
.extra .tag { position: absolute; top: 10px; right: 14px; font-size: 11.5px; font-weight: 800; color: var(--bad); background: var(--bad-bg); padding: 2px 9px; border-radius: 99px; }
.extra .stock-line {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: #0284c7; background: #e0f2fe;
  padding: 2px 8px; border-radius: 6px; margin-top: 4px;
}
.stock-pill {
  display: inline-block; font-size: 12px; font-weight: 600; color: #0369a1; background: #e0f2fe;
  padding: 3px 8px; border-radius: 6px; margin-top: 4px;
}
.stock-pill b { display: inline; color: #0284c7; font-weight: 800; }
.stock-pill.region-stock { color: #15803d; background: #dcfce7; }
.stock-pill.region-stock b { color: #16a34a; }
.stock-pill.no-stock { color: var(--bad); background: var(--bad-bg); }
.stock-pill.no-stock b { color: var(--bad); }

/* ---------- Historial ---------- */

.searchbar { display: flex; gap: 12px; align-items: stretch; }
.searchbar .input-wrap { flex: 1; }
.searchbar .btn { height: 50px; }

.table-card { overflow: hidden; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 14px; font-weight: 700; padding: 14px 18px; color: var(--ink); border-bottom: 1px solid var(--line-strong); background: rgba(255,255,255,.35); }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.table tr:last-child td { border-bottom: 0; }
.table .prod { display: flex; align-items: center; gap: 12px; }
.table .prod img { width: 30px; height: 30px; object-fit: contain; }
.table td.num, .table th.num { text-align: center; }
.table td.price { font-weight: 800; }
.table td .nick { display: block; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.table tr[hidden] { display: none !important; }
.table tr.has-lvl td { border-bottom: 0; }
.table tr.lvl-row-detail td { padding-top: 0; }
.lvl-toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; background: none; color: var(--ink-3); cursor: pointer; vertical-align: middle; margin-left: 2px; padding: 0; }
.lvl-toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.lvl-toggle.open svg { transform: rotate(180deg); }

.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; border: 0; background: transparent; font-weight: 800; color: var(--ink);
}
.pager button:hover:not([disabled]) { background: var(--card); }
.pager button.on { background: var(--red); color: #fff; }
.pager button[disabled] { opacity: 0.35; cursor: default; }

/* ---------- Perfil ---------- */

.profile-card { padding: 22px 24px 8px; }
.profile-head { display: flex; align-items: center; gap: 22px; }
.profile-head .info { flex: 1; min-width: 0; }
.profile-head h2 { font-size: 26px; font-weight: 800; }
.profile-head .handle { color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.badges { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px -24px 0; border-top: 1px solid var(--line-strong); }
.stats > div { padding: 16px 24px 18px; border-left: 1px solid var(--line-strong); }
.stats > div:first-child { border-left: 0; }
.stats small { display: block; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.stats strong { display: block; font-size: 24px; font-weight: 800; margin-top: 2px; word-break: break-word; }
.row-link {
  display: flex; align-items: center; gap: 18px; width: 100%; padding: 20px 24px; text-align: left; text-decoration: none; color: var(--ink);
  border: 0; background: none; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; border-radius: inherit;
}
.row-link:hover { background: rgba(173, 48, 41, 0.05); }
.row-link .icon:first-child { width: 44px; height: 44px; color: var(--red); }
.row-link .icon:last-child { margin-left: auto; color: var(--red); width: 24px; height: 24px; }
.row-link .color { color: var(--red); }
.row-link + .row-link { border-top: 1px solid var(--line); }

/* ---------- Modales ---------- */

.backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px;
  background: rgba(74, 36, 28, 0.42); backdrop-filter: blur(3px); animation: fade 0.15s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 480px; max-height: calc(100dvh - 36px); overflow: auto;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 26px; box-shadow: var(--shadow-pop);
  animation: rise 0.2s ease-out; position: relative;
}
.modal.wide { max-width: 560px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 4px; }
.modal-head h3 { font-size: 21px; font-weight: 800; flex: 1; }
.modal-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); color: var(--red); display: grid; place-items: center; }
.modal-x:hover { background: var(--red-100); }
.modal-body { padding: 12px 22px 8px; display: grid; gap: 14px; }
.modal-foot { padding: 12px 22px 22px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; }

/* ---------- Anuncios del portal (modal tipo RocketPass) ---------- */

.ann-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
}
.ann-badge svg { width: 14px; height: 14px; }
.ann-sub { color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.ann-text { color: var(--ink); font-weight: 600; line-height: 1.5; }
.ann-bullets { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--card-hi); border: 1px solid var(--line); }
.ann-bullet { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 14px; }
.ann-bullet svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 1px; }
.ann-skip { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.ann-skip input { width: 16px; height: 16px; accent-color: var(--red); }

.sheet-hero { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.sheet-hero img { width: 72px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 5px 7px rgba(60, 20, 20, 0.22)); }
.sheet-hero b { font-size: 19px; display: block; }
.sheet-hero span { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.sheet-hero .price { margin-left: auto; font-size: 20px; font-weight: 800; color: var(--red); white-space: nowrap; }

.summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line); font-weight: 600; }
.summary > div:first-child { border-top: 0; }
.summary > div span:first-child { color: var(--ink-2); }
.summary > div b { text-align: right; word-break: break-word; }
.summary .total { background: var(--red-100); font-size: 17px; }
.summary .total b { color: var(--red); font-size: 19px; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--red); font-size: 22px; font-weight: 800; }
.stepper button:hover { background: var(--red-100); }
.stepper input { width: 90px; text-align: center; height: 44px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 800; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line-strong); background: var(--card); color: var(--red); border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: 14px; }
.chip:hover, .chip.on { background: var(--red); color: #fff; border-color: var(--red); }

.result { text-align: center; padding: 10px 0 4px; display: grid; gap: 8px; justify-items: center; }
.result .big { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.result .big .icon { width: 42px; height: 42px; }
.result.pending .big { background: var(--warn-bg); color: var(--warn); }
.result.fail .big { background: var(--bad-bg); color: var(--bad); }
.result h4 { font-size: 22px; font-weight: 800; }
.result p { color: var(--ink-2); max-width: 340px; }
.result .code { font-family: ui-monospace, Consolas, monospace; background: var(--card); padding: 3px 10px; border-radius: 8px; font-weight: 700; color: var(--ink); }

.notice { padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 14px; display: flex; gap: 10px; }
.notice .notice-x { margin-left: auto; flex: none; width: 24px; height: 24px; border: 0; background: transparent; color: var(--warn); display: grid; place-items: center; cursor: pointer; opacity: .75; }
.notice .notice-x:hover { opacity: 1; }

/* ---------- Toasts ---------- */

#toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 16px; font-weight: 700; box-shadow: var(--shadow-pop);
  display: flex; align-items: center; gap: 10px; animation: rise 0.2s ease-out;
}
.toast.ok { background: #2f5d2c; }
.toast.err { background: var(--red-700); }

/* ---------- Skeleton ---------- */

.skeleton { background: linear-gradient(90deg, var(--card) 25%, #fff8ea 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Login ---------- */

.login-page {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 15% 10%, #f8dcc8 0%, transparent 60%),
    radial-gradient(800px 520px at 90% 90%, #f3cdc0 0%, transparent 60%),
    var(--bg);
}
.login-card {
  position: relative; width: 100%; max-width: 430px; overflow: hidden; text-align: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 28px; padding: 54px 34px 44px;
  box-shadow: 0 30px 80px rgba(150, 45, 38, 0.16), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
}
.login-card .logo { width: 290px; margin: 0 auto; display: block; }
.login-card .portal { margin: 6px 0 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.login-card .portal .heart { color: var(--red); width: 16px; height: 16px; }
.login-card h1 { margin-top: 22px; font-size: 23px; font-weight: 800; display: flex; justify-content: center; align-items: center; gap: 8px; }
.login-card .lead { color: var(--ink-2); margin: 2px 0 18px; font-size: 16px; }
.login-card form { display: grid; gap: 14px; text-align: left; position: relative; z-index: 2; }
.login-card .forgot { margin-top: 18px; position: relative; z-index: 2; font-size: 14px; }
.login-card .deco { position: absolute; pointer-events: none; color: var(--red); }
.form-error {
  background: var(--bad-bg); color: var(--bad); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 14px; text-align: left;
  display: flex; gap: 8px; align-items: flex-start;
}
.login-credit { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; font-size: 10.5px; color: var(--ink-3); }

/* ---------- Logo ---------- */

.logo { display: block; }
.logo img { width: 100%; height: auto; display: block; }

/* ---------- Tabbar y barra móvil ---------- */

.mobile-top { display: none; }
.tabbar { display: none; }
.drawer-backdrop { display: none; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --sidebar-w: 208px; }
  .topbar, .view { padding-left: 24px; padding-right: 24px; }
  .balance { min-width: 300px; }
  .balance strong { font-size: 26px; }
  .list .row { grid-template-columns: 46px minmax(0, 2fr) minmax(0, 1fr) 130px 100px; padding: 12px 16px; }
  .quick a { padding: 16px; gap: 12px; }
}

@media (max-width: 900px) {
  .welcome { flex-direction: column; align-items: stretch; }
  .balance { min-width: 0; }
  .banner .copy { max-width: 60%; }
  .banner .script { font-size: 32px; }
}

/* ==========================================================================
   Móvil
   ========================================================================== */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .sidebar {
    position: fixed; z-index: 90; left: 0; top: 0; bottom: 0; width: min(78vw, 290px); transform: translateX(-102%);
    transition: transform 0.22s ease; box-shadow: var(--shadow-pop);
  }
  body.drawer-open .sidebar { transform: none; }
  body.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(74, 36, 28, 0.4); }
  body.drawer-open { overflow: hidden; }

  .main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: var(--bg); }
  .mobile-top {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; position: sticky; top: 0; z-index: 30;
    background: var(--bg);
  }
  .mobile-top .brand { width: 148px; display: block; }
  .mobile-top .icon-btn .icon { width: 28px; height: 28px; }
  .mobile-top .icon-btn .dot { border-color: var(--bg); }

  .topbar { padding: 6px 16px 0; }
  .topbar .topbar-actions, .topbar .decor { display: none; }
  .page-title { font-size: 23px; }
  .page-sub { font-size: 14px; }
  .topbar.home-top { display: none; }
  .view { padding: 14px 16px 28px; }
  .view > * + * { margin-top: 18px; }

  .welcome { padding: 0; background: none; border: 0; box-shadow: none; gap: 14px; }
  .who .avatar { width: 66px; height: 66px; }
  .who h2 { font-size: 22px; }
  .balance {
    display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; padding: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  }
  .balance .wallet { width: 44px; height: 44px; }
  .balance strong { font-size: 28px; }
  .balance .btn { grid-column: 1 / -1; width: 100%; }

  .banner { display: none; }

  .home-quick-title { display: none; }
  .quick { gap: 10px; }
  .quick a { flex-direction: column; gap: 8px; padding: 14px 6px 12px; text-align: center; }
  .quick .q-ico { width: 44px; height: 44px; }
  .quick .q-ico .icon { width: 40px; height: 40px; }
  .quick b { font-size: 14.5px; }
  .quick span { display: none; }

  .list .row { grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: 'ico name pill' 'ico price pill'; gap: 0 12px; padding: 12px 14px; }
  .list .row .thumb { grid-area: ico; align-self: center; width: 36px; height: 36px; }
  .list .row .name { grid-area: name; font-size: 15px; }
  .list .row .name small { display: none; }
  .list .row .price { grid-area: price; font-size: 14.5px; color: var(--ink-2); font-weight: 700; }
  .list .row .pill-cell { grid-area: pill; align-self: center; }
  .list .row .when { display: none; }

  .pkg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pkg { padding: 14px 12px 12px; }
  .panel { padding: 16px; }
  .panel .art { display: none; }
  .panel .fields { max-width: none; }
  .id-row .btn { padding: 0 16px; }
  .extras-grid { grid-template-columns: 1fr; gap: 12px; }
  .extra { min-height: 84px; padding: 12px 16px; }

  .searchbar .btn { padding: 0 18px; }
  .table-card { background: none; border: 0; box-shadow: none; overflow: visible; }
  table.table, .table thead, .table tbody, .table tr, .table td { display: block; }
  .table thead { display: none; }
  .table tr {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; margin-bottom: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  }
  .table td { padding: 0; border: 0; }
  .table td[data-l="Fecha"] { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--ink-2); }
  .table td[data-l="Producto"] { grid-column: 1; grid-row: 1; }
  .table td[data-l="ID"] { grid-column: 1; grid-row: 3; font-size: 13px; color: var(--ink-2); }
  .table td[data-l="Cantidad"] { display: none; }
  .table td[data-l="Precio"] { grid-column: 2; grid-row: 1; text-align: right; font-size: 16px; }
  .table td[data-l="Estado"] { grid-column: 2; grid-row: 2 / span 2; text-align: right; align-self: end; }
  .table tr.lvl-row-detail { display: block; background: none; border: 0; padding: 0; margin: -6px 0 10px; }
  .table tr.lvl-row-detail td { padding: 0; }
  .pager { justify-content: center; }

  .profile-card { padding: 18px 16px 6px; }
  .profile-head { flex-wrap: wrap; gap: 14px; }
  .profile-head .info { min-width: 60%; }
  .profile-head .btn { width: 100%; order: 3; }
  .stats { grid-template-columns: 1fr; margin: 16px -16px 0; }
  .stats > div { border-left: 0; border-top: 1px solid var(--line-strong); padding: 12px 16px; }
  .stats > div:first-child { border-top: 1px solid var(--line-strong); }
  .row-link { padding: 16px; font-size: 16px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg); border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 24px rgba(150, 45, 38, 0.08);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
    font-size: 11.5px; font-weight: 700;
  }
  .tabbar a .icon { width: 26px; height: 26px; }

  /* Todos los botones del mismo color: negro, más claro cuando no están activos. */
  .tabbar a { color: rgba(0, 0, 0, 0.55); }
  .tabbar a .icon { color: rgba(0, 0, 0, 0.55); }

  .tabbar a.active { font-weight: 800; color: #000; }
  .tabbar a.active .icon { color: #000; fill: #000; fill-opacity: 0.14; stroke-width: 2.3; }

  .modal { border-radius: 26px 26px 0 0; max-height: 92dvh; }
  .backdrop { align-items: end; padding: 0; }
  .backdrop .modal { max-width: 560px; margin: 0 auto; animation: sheet 0.25s ease-out; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  #toasts { bottom: calc(var(--tabbar-h) + 14px); }
  .popover.notifs { position: fixed; top: 64px; right: 10px; left: 10px; width: auto; }

  .login-page { padding: 16px; }
  .login-card { padding: 38px 24px 32px; }
  .login-card .logo { width: 250px; }
}

@media (max-width: 380px) {
  .id-row { flex-direction: column; }
  .id-row .btn { width: 100%; }
  .pkg .amount { font-size: 19px; }
  .login-card { padding: 30px 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ───────────── Fotos de perfil ───────────── */

/* Con foto propia el anillo rojo lo dibuja el CSS (la ilustración de la marca ya lo trae). */
.avatar.custom img { object-fit: cover; border-radius: 50%; border: 2.5px solid var(--red); background: var(--card); }
.avatar.xl.custom img { border-width: 4px; }
.avatar.sm { width: 36px; height: 36px; }
.avatar.sm.custom img { border-width: 2px; }

.avatar-edit { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }
.avatar-edit .cam {
  position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 3px solid var(--card); box-shadow: 0 4px 10px rgba(173, 48, 41, 0.35);
  transition: transform 0.15s;
}
.avatar-edit .cam .icon { width: 17px; height: 17px; }
.avatar-edit:hover .cam { transform: scale(1.1); }
.link-btn .icon { width: 16px; height: 16px; }

.menu-who { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-who .avatar { width: 52px; height: 52px; }
.menu-who b { display: block; font-size: 16px; font-weight: 800; }
.menu-who span { color: var(--ink-2); font-size: 13px; font-weight: 600; }

/* Editor de la foto */
.cropper { position: relative; width: min(100%, 280px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.cropper canvas { display: none; width: 100%; height: 100%; border-radius: 22px; touch-action: none; cursor: grab; }
.cropper canvas:active { cursor: grabbing; }
.cropper.editing { border-radius: 22px; }
.cropper.editing canvas { display: block; border-radius: 22px; }
.cropper .current { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.cropper.editing .current { display: none; }
.cropper-hint { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.cropper.over { outline: 3px dashed var(--red-300); outline-offset: 6px; }
.cropper:not(.editing) { cursor: pointer; margin-bottom: 34px; }
.zoom { display: flex; align-items: center; gap: 12px; max-width: 280px; margin: 0 auto; width: 100%; color: var(--red); }
.zoom input { flex: 1; accent-color: var(--red); }
.modal-foot { flex-wrap: wrap; }

/* Panel admin */
.ucell { display: flex; align-items: center; gap: 10px; }
.ucell .avatar { flex: none; }
.who-mini { display: flex; align-items: center; gap: 10px; margin: 14px 6px 0; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.who-mini b { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.who-mini span { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }

/* ───────────── Arte en el login (pantallas anchas) ───────────── */

.login-art { position: absolute; bottom: 0; pointer-events: none; display: none; z-index: 0; }
.login-art:not(.left) { right: max(2vw, calc(50% - 760px)); height: min(86vh, 760px); width: auto; filter: drop-shadow(0 18px 30px rgba(110, 34, 28, 0.2)); }
.login-art.left { left: max(3vw, calc(50% - 720px)); height: min(52vh, 440px); width: auto; filter: drop-shadow(0 12px 22px rgba(110, 34, 28, 0.18)); }
.login-card { z-index: 2; }
@media (min-width: 1100px) { .login-art { display: block; } }
.back-store {
  position: absolute; top: 18px; left: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 8px;
  border-radius: 999px; background: rgba(255, 250, 240, 0.85); backdrop-filter: blur(6px); border: 1px solid var(--line-strong);
  color: var(--red); font-weight: 800; font-size: 14px; text-decoration: none;
}
.back-store:hover { background: var(--card-hi); }
.back-store .icon { width: 20px; height: 20px; }

/* ───────────── Mantenimiento ───────────── */

.maint { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--bg); }
.maint-art { position: relative; overflow: hidden; background: #0e1a2a; }
.maint-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.maint-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 26, 42, 0) 55%, rgba(14, 26, 42, 0.55) 100%), linear-gradient(0deg, rgba(14, 26, 42, 0.35), rgba(14, 26, 42, 0) 40%); }
.maint-art .deco { position: absolute; z-index: 1; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.35; transform: scale(0.8); } }
.maint-card { align-self: center; justify-self: center; width: min(520px, 100%); padding: 40px 32px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.maint-chibi { width: 170px; height: auto; filter: drop-shadow(0 10px 14px rgba(110, 34, 28, 0.22)); animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.maint-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font-weight: 800; font-size: 13.5px; }
.maint-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.maint-card p { color: var(--ink-2); font-size: 16.5px; max-width: 420px; }
.maint-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.maint-card small { color: var(--ink-3); font-weight: 600; max-width: 380px; }
.maint-banner {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--warn-bg); color: var(--warn); font-weight: 800; font-size: 14px;
  text-decoration: none; border-bottom: 1px solid #f0c577;
}
@media (max-width: 860px) {
  .maint { grid-template-columns: 1fr; grid-template-rows: 180px 1fr; }
  .maint-art img { object-position: 50% 24%; }
  .maint-card { padding: 22px 20px 36px; margin-top: -60px; position: relative; }
  .maint-chibi { width: 130px; }
  .maint-card h1 { font-size: 25px; }
}

/* ───────────── Varios ───────────── */

.extra .p .from { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1.5px solid var(--line-strong); background: var(--card); border-radius: 14px; padding: 8px 14px; display: grid; gap: 0; text-align: center; min-width: 92px; }
.opt b { font-size: 14.5px; font-weight: 800; }
.opt span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.opt:hover:not([disabled]) { border-color: var(--red-300); }
.opt.on { background: var(--red); border-color: var(--red); color: #fff; }
.opt.on span { color: #ffe9e2; }
.opt[disabled] { opacity: 0.45; cursor: not-allowed; }

.alias-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--card-hi); border: 1.5px dashed var(--red-300); }
.alias-box small { display: block; color: var(--ink-2); font-weight: 700; font-size: 12px; }
.alias-box b { font-size: 19px; font-weight: 800; color: var(--red); word-break: break-all; }
.alias-box span { display: block; color: var(--ink-2); font-size: 13px; font-weight: 600; }

.result .result-art { width: 96px; height: auto; margin-bottom: -4px; }
.empty-art { display: grid; justify-items: center; gap: 10px; padding: 28px 18px; }
.empty-art img { width: 110px; height: auto; }

/* ---------- Compra (modales) ---------- */

.methods { display: grid; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line-strong); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method:hover { border-color: var(--red-300); }
.method.on { border-color: var(--red); background: var(--card-hi); box-shadow: 0 0 0 4px rgba(173, 48, 41, 0.1); }
.method .mi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--red-100); color: var(--red); flex: none; }
.method .mi .icon { width: 22px; height: 22px; }
.method .mt { display: grid; gap: 1px; min-width: 0; }
.method .mt b { font-size: 15.5px; font-weight: 800; }
.method .mt small { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.pm-box { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.pm-box p { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.notice.soft { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); }
.level-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 2px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 13px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.level-confirm input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); cursor: pointer; }
.level-confirm b { color: var(--ink); }
.notice .icon { width: 20px; height: 20px; flex: none; }
.sheet-hero > div:nth-child(2) { min-width: 0; }

/* ---------- Verificación del ID y comprobantes (compartido) ---------- */

.verify-hint { display: flex; gap: 8px; align-items: center; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line-strong); color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.verify-hint .icon { width: 18px; height: 18px; color: var(--red); flex: none; }
.sim-badge { display: inline-block; vertical-align: middle; padding: 1px 8px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
button:disabled[data-go], button:disabled[data-buy], button:disabled#buy { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.req { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--red-100); color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.drop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 2px dashed var(--red-300); background: var(--card-hi); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.drop:hover, .drop:focus-visible { background: #fff; border-color: var(--red); outline: 0; }
.drop-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--red-100); color: var(--red); flex: none; }
.drop-ic .icon { width: 24px; height: 24px; }
.drop-t { display: grid; gap: 1px; }
.drop-t b { font-size: 15.5px; font-weight: 800; }
.drop-t small { color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.drop-preview { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--ok); background: #f1f7e6; }
.drop-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.pv-pdf { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: var(--bad-bg); color: var(--bad); font-weight: 800; }
.pv-t { flex: 1; min-width: 0; display: grid; }
.pv-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-t small { color: var(--ok); font-weight: 700; }


/* Admin → Imágenes */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 10px; }
.img-item { background: rgba(255,255,255,.03); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 14px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.img-item figure { margin: 0; display: grid; gap: 6px; justify-items: start; }
.img-item figcaption { font-size: .78rem; color: var(--muted, #aaa); }
.img-item .img-pair { display: grid; gap: 12px; }
.img-item img { background: rgba(255,255,255,.04); border-radius: 10px; padding: 4px; }
.img-item .btn + .btn { margin-top: 2px; }

/* ---------- Opciones de un juego como tarjetas (Brasil, Minecoins, Robux, Gamepass…) — mismo formato que los diamantes ---------- */
.v-pkgs, .s-pkgs.v-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .s-pkgs.v-pkgs, .v-pkgs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v-pkgs .pkg { padding: 16px 12px 14px; gap: 12px; }
.v-pkgs .pkg img.art { height: 184px; max-width: 100%; object-fit: contain; }
.v-pkgs .pkg .cap { min-height: 2.5em; display: flex; align-items: center; justify-content: center; line-height: 1.2; }
.v-pkgs .pkg .buy { height: 42px; font-size: 16.5px; width: 100%; }
.v-pkgs .pkg .buy.wa { background: #1f9d55; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.v-pkgs .pkg .buy.wa .icon { width: 17px; height: 17px; }
.v-pkgs .pkg.is-private:hover .buy.wa { background: #17874a; }
.v-pkgs .pkg:focus-visible { outline: 3px solid var(--red-300, #e9a39b); outline-offset: 2px; }
.v-ph {
  height: 184px; width: 100%; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 14px; text-align: center; background: radial-gradient(circle at 50% 30%, #fff8e9 0, #fbd8cf 70%); border: 1px solid var(--line);
  box-shadow: inset 0 -10px 24px rgba(173, 48, 41, 0.08);
}
.v-ph img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 14px rgba(60, 20, 18, 0.18); }
.v-ph .icon { width: 40px; height: 40px; color: var(--red); }
.v-ph b { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.1; color: var(--red); overflow-wrap: anywhere; }
.ff-sub.first { margin-top: 0; }
.v-sub { margin: -8px 0 14px; color: var(--muted, #8a6a62); font-size: 14px; }
.v-private { display: flex; gap: 8px; align-items: center; margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: #e3f4e8; color: #17663b; font-size: 14px; font-weight: 600; }
.v-private .icon { width: 18px; height: 18px; flex: none; }
.st-ic.wa { background: #d3f0dc; color: #17874a; }
.st-buy.wa { background: #1f9d55; }
.st-buy.wa:hover { background: #17874a; }
@media (max-width: 760px) {
  .v-pkgs, .s-pkgs.v-pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .v-pkgs .pkg img.art, .v-ph { height: 160px; }
  .v-ph b { font-size: 18px; }
}
/* Streaming: la imagen propia de una opción, al lado del nombre (con el puntito de WhatsApp si se pide por chat) */
.st-thumb { position: relative; width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: visible; }
.st-thumb img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 6px rgba(60, 20, 18, 0.18); }
.st-wa-dot { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.st-wa-dot .icon { width: 10px; height: 10px; }

/* Requisitos de la opción de streaming elegida (los carga el admin, uno por línea) */
.st-req { margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.st-req > b { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.st-req > b .icon { width: 16px; height: 16px; color: var(--red); flex: none; }
.st-req ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-req li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.st-req li .icon { width: 16px; height: 16px; color: #2e9e5b; flex: none; margin-top: 1px; }

/* ───────────── Cartel del canal de WhatsApp (diseño propio, con las chibis de Mika) ───────────── */
.chn-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(58, 18, 18, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; overflow-y: auto; }
.chn-backdrop.is-in { opacity: 1; }
.chn-backdrop.is-out { opacity: 0; }
.chn-card { position: relative; width: min(440px, 100%); margin: auto; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #ffe3ec 0%, #fff4f6 45%, #fffaf3 100%); box-shadow: 0 30px 80px -20px rgba(160, 30, 50, .55), 0 0 0 1px rgba(255, 160, 180, .55) inset; transform: translateY(18px) scale(.96); transition: transform .35s cubic-bezier(.2, 1.3, .4, 1); }
.chn-backdrop.is-in .chn-card { transform: none; }
.chn-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #b3243b; background: rgba(255, 255, 255, .8); box-shadow: 0 2px 10px rgba(180, 40, 60, .18); }
.chn-x .icon { width: 18px; height: 18px; }
.chn-x:hover { background: #fff; }
.chn-floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.chn-float { position: absolute; bottom: -30px; opacity: 0; animation: chn-rise linear infinite; filter: drop-shadow(0 2px 4px rgba(200, 60, 90, .25)); }
@keyframes chn-rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: .85; } 80% { opacity: .55; } 100% { transform: translateY(-560px) rotate(28deg); opacity: 0; } }

.chn-hero { position: relative; z-index: 1; height: 210px; display: grid; place-items: end center; background: linear-gradient(180deg, #ff9fb4 0%, #ffc6d2 55%, transparent 100%); }
.chn-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .55) 0 3px, transparent 4px), radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .6) 0 2px, transparent 3px), radial-gradient(circle at 62% 60%, rgba(255, 255, 255, .45) 0 2px, transparent 3px), radial-gradient(circle at 35% 70%, rgba(255, 255, 255, .5) 0 2px, transparent 3px); }
.chn-halo { position: absolute; bottom: 10px; left: 50%; width: 190px; height: 190px; margin-left: -95px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 220, 230, .6) 45%, transparent 70%); animation: chn-glow 3.2s ease-in-out infinite; }
@keyframes chn-glow { 50% { transform: scale(1.08); opacity: .8; } }
.chn-chibi { position: relative; z-index: 2; height: 200px; width: auto; margin-bottom: -18px; filter: drop-shadow(0 10px 14px rgba(160, 30, 50, .35)); animation: chn-bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes chn-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
.chn-mini { position: absolute; z-index: 1; bottom: 12px; height: 96px; width: auto; opacity: .95; filter: drop-shadow(0 6px 8px rgba(160, 30, 50, .3)); }
.chn-mini-l { left: 22px; transform: rotate(-10deg); animation: chn-bob 3.8s ease-in-out .6s infinite; }
.chn-mini-r { right: 24px; transform: rotate(9deg); animation: chn-bob 4.2s ease-in-out 1.1s infinite; }
.chn-spark { position: absolute; z-index: 2; color: #fff; text-shadow: 0 0 10px #ffd34d, 0 0 2px #ff9f1a; animation: chn-twinkle 1.9s ease-in-out infinite; }
.chn-spark.s1 { top: 28px; left: 32%; font-size: 22px; }
.chn-spark.s2 { top: 58px; right: 30%; font-size: 16px; animation-delay: .6s; }
.chn-spark.s3 { top: 100px; left: 22%; font-size: 13px; animation-delay: 1.1s; }
@keyframes chn-twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .35; } 50% { transform: scale(1.15) rotate(25deg); opacity: 1; } }

.chn-body { position: relative; z-index: 1; padding: 22px 22px 18px; text-align: center; }
.chn-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: #1d7a45; background: #d9f5e3; box-shadow: 0 0 0 1px #b7ebc9 inset; }
.chn-badge i { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: chn-ping 1.6s ease-out infinite; }
@keyframes chn-ping { 70% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.chn-title { margin: 10px 0 8px; font-size: 26px; line-height: 1.1; font-weight: 900; color: #6b1424; letter-spacing: -.01em; }
.chn-title span { background: linear-gradient(90deg, #e0294a, #ff6f91, #e0294a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: chn-slide 3s linear infinite; }
@keyframes chn-slide { to { background-position: 200% 0; } }
.chn-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 12px; }
.chn-chips span { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #9c1f36; background: #fff; box-shadow: 0 2px 8px rgba(200, 60, 90, .12), 0 0 0 1px #ffd2dc inset; }
.chn-text { display: grid; gap: 6px; margin: 0 auto 12px; max-width: 360px; }
.chn-text p { margin: 0; font-size: 14.5px; line-height: 1.45; color: #5a3238; font-weight: 600; }
.chn-pill { display: inline-flex; flex-direction: column; gap: 4px; margin: 2px 0 16px; padding: 9px 16px; border-radius: 14px; font-weight: 900; font-size: 14px; color: #c2183b; background: linear-gradient(90deg, #fff0f4, #ffe3ea); box-shadow: 0 0 0 1.5px #ffc2cf inset; animation: chn-heart 1.8s ease-in-out infinite; }
@keyframes chn-heart { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.04); } 24% { transform: scale(1); } 36% { transform: scale(1.03); } }
.chn-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 18px; text-decoration: none; color: #fff; font-size: 17px; background: linear-gradient(180deg, #2fe07a 0%, #1fb456 100%); box-shadow: 0 10px 24px -8px rgba(31, 180, 86, .8), 0 0 0 1px rgba(0, 0, 0, .04) inset; animation: chn-pulse 2.2s ease-in-out infinite; transition: transform .15s ease, filter .15s ease; }
.chn-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.chn-cta:active { transform: translateY(1px) scale(.99); }
.chn-cta:focus-visible { outline: 3px solid #ffd34d; outline-offset: 3px; }
.chn-cta b { font-weight: 900; letter-spacing: .02em; }
.chn-cta-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.chn-cta-ic .icon { width: 18px; height: 18px; }
.chn-shine { position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent); animation: chn-shine 2.6s ease-in-out infinite; }
@keyframes chn-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes chn-pulse { 0%, 100% { box-shadow: 0 10px 24px -8px rgba(31, 180, 86, .8), 0 0 0 0 rgba(37, 211, 102, .45); } 50% { box-shadow: 0 10px 24px -8px rgba(31, 180, 86, .8), 0 0 0 10px rgba(37, 211, 102, 0); } }
.chn-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.chn-skip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #8a5a60; cursor: pointer; }
.chn-skip input { width: 16px; height: 16px; accent-color: #e0294a; }
.chn-later { border: 0; background: transparent; color: #b3243b; font-family: inherit; font-size: 13.5px; font-weight: 800; line-height: 1; padding: 8px 6px; cursor: pointer; border-radius: 8px; }
.chn-later:hover { background: rgba(224, 41, 74, .08); }
@media (max-width: 420px) {
  .chn-card { border-radius: 24px; }
  .chn-hero { height: 180px; }
  .chn-chibi { height: 172px; }
  .chn-mini { height: 74px; bottom: 10px; }
  .chn-mini-l { left: 10px; } .chn-mini-r { right: 12px; }
  .chn-title { font-size: 23px; }
  .chn-body { padding: 18px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .chn-float, .chn-halo, .chn-chibi, .chn-mini, .chn-spark, .chn-badge i, .chn-title span, .chn-pill, .chn-cta, .chn-shine { animation: none !important; }
  .chn-float { display: none; }
  .chn-card { transition: none; }
}
/* ───────────── Streaming: datos de la cuenta entregada ───────────── */
.acc-card { margin: 14px 0 6px; padding: 14px; border-radius: var(--radius-sm); background: var(--card-hi); border: 1.5px solid var(--line-strong); text-align: left; }
.acc-head { font-weight: 800; color: var(--red); margin-bottom: 8px; }
.acc-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.acc-row:first-of-type { border-top: 0; }
.acc-label { font-size: 12px; font-weight: 700; color: var(--ink); opacity: .75; }
.acc-value { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; color: var(--ink); word-break: break-all; user-select: all; }
.acc-copy { border: 1px solid var(--line-strong); background: var(--panel); color: var(--red); font-weight: 800; font-size: 12px; border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.acc-copy:hover { background: var(--brand-cream); }
.acc-notes { margin: 8px 0 0; font-size: 13px; color: var(--ink); white-space: pre-line; }
.acc-warn { margin: 8px 0 0; font-size: 12px; color: var(--ink); opacity: .7; }
.acc-btn { margin-top: 6px; }
.badge-instant { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 8px; }
@media (max-width: 480px) { .acc-row { grid-template-columns: 1fr auto; } .acc-label { grid-column: 1 / -1; } }
.st-name .badge-instant { display: table; }
.acc-steps { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink); line-height: 1.5; } .acc-steps li { margin: 3px 0; } .acc-steps a { color: var(--red); font-weight: 800; }
