/* ═════════════════════════════════════════════════════════════════════════
   Tienda Mosaico — Design System v3.0 (corporativo / SaaS / oficina)
   Inspirado en Stripe, Linear, Notion. Tema oscuro único.
   Los 3 colores del vendedor (--primary/--accent/--highlight) se aplican
   SOLO a acentos puntuales (CTAs, badges, links). Nunca al fondo.
═════════════════════════════════════════════════════════════════════════ */

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg, picture { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
a { color: inherit; text-decoration: none; }
input:focus, button:focus, select:focus, textarea:focus { outline: none; }

/* ─── Design tokens ──────────────────────────────────────────────────── */
:root {
  /* Neutros (Zinc) — base inmutable que NO depende del vendedor */
  --bg:            #09090b;
  --bg-elevated:   #18181b;
  --bg-card:       #1c1c1f;
  --bg-hover:      #27272a;
  --bg-input:      #131316;
  --border:        #2e2e35;
  --border-strong: #3f3f46;
  --text:          #fafafa;
  --text-muted:    #a1a1aa;
  --text-dim:      #71717a;

  /* Acentos del vendedor (sobreescritos por applyBrandColors en JS) */
  --primary:    #7c3aed;
  --primary-2:  #6d28d9;
  --primary-soft: rgba(124, 58, 237, 0.13);
  --primary-ring: rgba(124, 58, 237, 0.35);
  --accent:     #ec4899;
  --accent-soft: rgba(236, 72, 153, 0.12);
  --highlight:  #06b6d4;
  --highlight-soft: rgba(6, 182, 212, 0.10);

  /* Estados independientes del brand */
  --success:      #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --warning:      #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger:       #ef4444;
  --danger-soft:  rgba(239, 68, 68, 0.12);
  --info:         #3b82f6;
  --info-soft:    rgba(59, 130, 246, 0.12);
  --whatsapp:     #25d366;

  /* Espaciados (sistema 4px) */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px; --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Radius */
  --r-sm: 6px;  --r-md: 8px;  --r-lg: 12px;  --r-xl: 16px;  --r-full: 9999px;

  /* Sombras realistas (no glow neón) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);

  /* Transiciones */
  --t-fast: 120ms;
  --t-base: 180ms;
  --t-slow: 240ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --topbar-h: 64px;
  --sidebar-w: 240px;
  --content-max: 1280px;
  --mobile-nav-h: 72px;
}

.account-mail-actions {
  margin-top: var(--s-3);
}

/* Fila de correo compacta: asunto + remitente en una columna, fecha corta al lado.
   Todo con min-width:0 para que un asunto largo no ensanche la pagina. */
.mail-result-row {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 10px var(--s-3);
  margin-bottom: 6px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
}

.mail-result-row:hover {
  border-color: var(--primary);
}

.mail-result-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mail-result-subject {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-result-meta {
  color: var(--muted);
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-result-date {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.mail-message h3 {
  margin: var(--s-4) 0 var(--s-1);
}

.mail-message-body {
  margin-top: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  background: var(--surface-2);
  max-height: min(62vh, 620px);
  overflow: auto;
}

.mail-message-frame {
  width: 100%;
  min-height: min(66vh, 680px);
  margin-top: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

/* Compra rapida desde enlaces de cliente o revendedor. */
.quick-buy-role {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: var(--s-3);
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.quick-buy-mode .user-menu,
.quick-buy-mode .nav-item[data-route="/profile"],
.quick-buy-mode .nav-item[data-route="/accounts"],
.quick-buy-mode .nav-item[data-route="/inbox"],
.quick-buy-mode .mobile-nav-item[data-route="/profile"],
.quick-buy-mode .mobile-nav-item[data-route="/accounts"],
.quick-buy-mode .mobile-nav-item[data-route="/inbox"] {
  display: none !important;
}

/* ─── Base ────────────────────────────────────────────────────────────── */
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "cv11", "ss03", "tnum";
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading { overflow: hidden; }
body.loading > *:not(#boot-loader) { visibility: hidden; }
#boot-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
#boot-loader::after {
  content: '';
  width: 32px; height: 32px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
body:not(.loading) #boot-loader { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ph-spin { animation: spin 0.8s linear infinite; }

body[data-season-theme="valentine"] .topbar,
body[data-season-theme="valentine"] .hero-card { border-color: rgba(244,114,182,0.42); }
body[data-season-theme="christmas"] .topbar,
body[data-season-theme="newyear"] .topbar { box-shadow: 0 10px 32px rgba(16,185,129,0.14); }
body[data-season-theme="worldcup"] .topbar { border-bottom-color: rgba(34,197,94,0.45); }
body[data-season-theme="valentine"] {
  --bg: #170711;
  --bg-elevated: #2a0d1c;
  --bg-card: #331122;
  --bg-hover: #42162c;
  --bg-input: #210914;
  --border: rgba(251, 113, 133, 0.28);
  --border-strong: rgba(244, 114, 182, 0.52);
  --primary: #fb7185;
  --primary-2: #e11d48;
  --primary-soft: rgba(251, 113, 133, 0.18);
  --primary-ring: rgba(251, 113, 133, 0.38);
  --accent: #f9a8d4;
  --highlight: #facc15;
  background:
    linear-gradient(135deg, rgba(136, 19, 55, 0.36), transparent 42%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 10px, transparent 10px 22px),
    var(--bg);
}
body[data-season-theme="carnival"] {
  --bg: #090b18;
  --bg-elevated: #171a35;
  --bg-card: #15162f;
  --bg-hover: #22244a;
  --bg-input: #101227;
  --border: rgba(45, 212, 191, 0.28);
  --border-strong: rgba(250, 204, 21, 0.5);
  --primary: #22d3ee;
  --primary-2: #0e7490;
  --primary-soft: rgba(34, 211, 238, 0.16);
  --primary-ring: rgba(34, 211, 238, 0.34);
  --accent: #f97316;
  --highlight: #facc15;
  background:
    repeating-linear-gradient(100deg, rgba(34,211,238,0.09) 0 12px, rgba(249,115,22,0.08) 12px 24px, rgba(250,204,21,0.07) 24px 36px, transparent 36px 58px),
    var(--bg);
}
body[data-season-theme="easter"] {
  --bg: #10171d;
  --bg-elevated: #1a2524;
  --bg-card: #1d2b29;
  --bg-hover: #263735;
  --bg-input: #14201f;
  --border: rgba(167, 243, 208, 0.28);
  --border-strong: rgba(249, 168, 212, 0.46);
  --primary: #a7f3d0;
  --primary-2: #34d399;
  --primary-soft: rgba(167, 243, 208, 0.16);
  --primary-ring: rgba(167, 243, 208, 0.3);
  --accent: #f9a8d4;
  --highlight: #fde68a;
  background:
    linear-gradient(120deg, rgba(167,243,208,0.12), transparent 36%),
    repeating-linear-gradient(0deg, rgba(249,168,212,0.035) 0 8px, transparent 8px 20px),
    var(--bg);
}
body[data-season-theme="christmas"] {
  --bg: #06130f;
  --bg-elevated: #0c241a;
  --bg-card: #102a20;
  --bg-hover: #173829;
  --bg-input: #071b14;
  --border: rgba(16, 185, 129, 0.28);
  --border-strong: rgba(248, 113, 113, 0.5);
  --primary: #10b981;
  --primary-2: #047857;
  --primary-soft: rgba(16, 185, 129, 0.17);
  --primary-ring: rgba(16, 185, 129, 0.34);
  --accent: #f87171;
  --highlight: #facc15;
  background:
    repeating-linear-gradient(135deg, rgba(248,113,113,0.08) 0 10px, transparent 10px 24px),
    linear-gradient(160deg, rgba(250,204,21,0.08), transparent 42%),
    var(--bg);
}
body[data-season-theme="newyear"] {
  --bg: #070910;
  --bg-elevated: #111827;
  --bg-card: #151b2b;
  --bg-hover: #20283b;
  --bg-input: #0c1220;
  --border: rgba(250, 204, 21, 0.24);
  --border-strong: rgba(125, 211, 252, 0.46);
  --primary: #facc15;
  --primary-2: #ca8a04;
  --primary-soft: rgba(250, 204, 21, 0.16);
  --primary-ring: rgba(250, 204, 21, 0.33);
  --accent: #7dd3fc;
  --highlight: #f0abfc;
  background:
    repeating-linear-gradient(90deg, rgba(250,204,21,0.08) 0 1px, transparent 1px 28px),
    linear-gradient(145deg, rgba(125,211,252,0.08), transparent 38%),
    var(--bg);
}
body[data-season-theme="worldcup"] {
  --bg: #06140d;
  --bg-elevated: #0b2114;
  --bg-card: #10281a;
  --bg-hover: #173723;
  --bg-input: #071b10;
  --border: rgba(34, 197, 94, 0.28);
  --border-strong: rgba(250, 204, 21, 0.5);
  --primary: #22c55e;
  --primary-2: #15803d;
  --primary-soft: rgba(34, 197, 94, 0.17);
  --primary-ring: rgba(34, 197, 94, 0.34);
  --accent: #facc15;
  --highlight: #38bdf8;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(34,197,94,0.18), transparent 45%),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto;
}
body[data-season-theme]:not([data-season-theme="none"]) .topbar,
body[data-season-theme]:not([data-season-theme="none"]) .global-topbar,
body[data-season-theme]:not([data-season-theme="none"]) .sidebar {
  background: color-mix(in srgb, var(--bg-elevated) 84%, transparent);
  border-color: var(--border);
}
body[data-season-theme]:not([data-season-theme="none"]) .hero-compact,
body[data-season-theme]:not([data-season-theme="none"]) .product-card,
body[data-season-theme]:not([data-season-theme="none"]) .card,
body[data-season-theme]:not([data-season-theme="none"]) .global-product-card,
body[data-season-theme]:not([data-season-theme="none"]) .global-market-controls,
body[data-season-theme]:not([data-season-theme="none"]) .global-shop-chip,
body[data-season-theme]:not([data-season-theme="none"]) .price-row,
body[data-season-theme]:not([data-season-theme="none"]) .ai-panel {
  border-color: var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}
body[data-season-theme]:not([data-season-theme="none"]) .btn-primary,
body[data-season-theme]:not([data-season-theme="none"]) .global-theme-toggle,
body[data-season-theme]:not([data-season-theme="none"]) .ai-fab {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}
body[data-season-theme]:not([data-season-theme="none"]) .btn-secondary,
body[data-season-theme]:not([data-season-theme="none"]) .nav-item.active,
body[data-season-theme]:not([data-season-theme="none"]) .badge-success {
  background: var(--primary-soft);
  border-color: var(--border-strong);
  color: var(--text);
}
body[data-season-theme]:not([data-season-theme="none"])::before,
body[data-season-theme]:not([data-season-theme="none"])::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
}
body[data-season-theme]:not([data-season-theme="none"])::before {
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
  box-shadow: inset 0 0 80px color-mix(in srgb, var(--primary) 18%, transparent);
}
body[data-season-theme]:not([data-season-theme="none"])::after {
  inset: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 6% 10%, color-mix(in srgb, var(--accent) 18%, transparent) 0 90px, transparent 92px),
    radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--highlight) 18%, transparent) 0 110px, transparent 112px),
    radial-gradient(circle at 10% 86%, color-mix(in srgb, var(--primary) 16%, transparent) 0 120px, transparent 122px),
    radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--accent) 14%, transparent) 0 88px, transparent 90px);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  padding: 22px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
body[data-season-theme="worldcup"]::after {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,0.11) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 50%, transparent 0 92px, rgba(255,255,255,0.1) 94px 96px, transparent 98px),
    radial-gradient(circle at 7% 14%, rgba(250,204,21,0.2) 0 80px, transparent 82px),
    radial-gradient(circle at 92% 88%, rgba(34,197,94,0.18) 0 110px, transparent 112px);
}
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.011em;
  line-height: 1.2;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { color: var(--text); }

.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }
.sm    { font-size: 13px; }
.xs    { font-size: 12px; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

::selection { background: var(--primary-soft); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ─── Topbar ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--content-max);
  height: 100%; margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex; align-items: center; gap: var(--s-4);
}
.brand {
  display: flex; align-items: center; gap: var(--s-3);
  flex-shrink: 0; min-width: 0;
}
.brand-logo {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  background: var(--bg-hover); border: 1px solid var(--border);
  overflow: hidden; flex-shrink: 0;
}
.brand-logo:has(img) { background: #fff; padding: 2px; border-color: var(--border-strong); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.brand-name {
  font-weight: 600; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.searchwrap {
  flex: 1; max-width: 400px; position: relative;
}
.searchwrap input {
  width: 100%;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text);
  padding: 9px var(--s-3) 9px 38px;
  border-radius: var(--r-md);
  font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.searchwrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.searchwrap input::placeholder { color: var(--text-dim); }
.search-icon {
  position: absolute; left: var(--s-3); top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 16px; pointer-events: none;
}
.header-actions {
  display: flex; align-items: center; gap: var(--s-2);
  margin-left: auto;
}
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px;
  background: transparent; border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn.active { background: var(--primary-soft); color: var(--primary); }

.ai-assistant {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 95;
}
.ai-fab {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary), var(--highlight));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 14px 32px rgba(0,0,0,0.36), 0 0 0 6px var(--primary-soft);
}
.ai-panel {
  position: absolute;
  left: 0;
  bottom: 70px;
  width: min(380px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 112px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(24,24,27,0.98);
  box-shadow: var(--shadow-lg);
}
.ai-assistant.open .ai-panel { display: flex; }
.ai-assistant.open .ai-fab { display: none; }
.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.ai-panel-head strong { display: block; font-size: 15px; }
.ai-panel-head span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.ai-message { display: flex; flex-direction: column; gap: var(--s-2); }
.ai-message.user { align-items: flex-end; }
.ai-message.assistant { align-items: flex-start; }
.ai-media-thumb {
  max-width: min(220px, 82%);
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
}
.ai-audio-player {
  width: min(260px, 88%);
  height: 36px;
  display: block;
}
.ai-audio-list {
  display: grid;
  gap: 6px;
  width: min(280px, 92%);
}
.ai-audio-list small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.ai-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
}
.ai-message.user .ai-bubble {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}
.ai-type-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.16em;
  border-radius: 999px;
  background: var(--highlight);
  animation: aiCursorBlink 0.85s steps(1) infinite;
}
@keyframes aiCursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
.ai-thinking-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--s-3);
  align-items: center;
  max-width: 94%;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-input));
}
.ai-thinking-orbit {
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--highlight));
  animation: aiPulse 1.15s ease-in-out infinite;
}
.ai-thinking-card strong,
.ai-thinking-card span { display: block; }
.ai-thinking-card strong { font-size: 13px; }
.ai-thinking-card span { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.ai-thinking-bars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.ai-thinking-bars b {
  width: 22px;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--primary);
  opacity: 0.35;
  animation: aiBar 0.9s ease-in-out infinite;
}
.ai-thinking-bars b:nth-child(2) { animation-delay: 0.12s; }
.ai-thinking-bars b:nth-child(3) { animation-delay: 0.24s; }
@keyframes aiPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--primary-ring); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px transparent; }
}
@keyframes aiBar {
  0%, 100% { opacity: 0.25; transform: scaleX(0.55); }
  50% { opacity: 1; transform: scaleX(1); }
}
.ai-quick-row,
.ai-reply-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 0 var(--s-4) var(--s-3);
}
.ai-reply-chips { padding: 0; }
.ai-quick-row button,
.ai-reply-chips button {
  padding: 7px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 12px;
}
.ai-quick-row button:hover,
.ai-reply-chips button:hover {
  color: var(--text);
  border-color: var(--primary);
}
.ai-form {
  display: grid;
  grid-template-columns: 38px 38px 1fr 44px;
  gap: var(--s-2);
  padding: var(--s-3);
  border-top: 1px solid var(--border);
}
.ai-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ai-tool-btn {
  width: 38px;
  height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.ai-tool-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.ai-tool-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ai-tool-btn.recording {
  color: #fff;
  border-color: rgba(239,68,68,0.55);
  background: var(--danger);
  animation: aiRecordPulse 1s ease-in-out infinite;
}
@keyframes aiRecordPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.35); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.ai-form input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text);
  padding: 10px 12px;
}
.ai-form .btn { width: 44px; padding: 0; }
.ai-recommendations {
  width: 100%;
  display: grid;
  gap: var(--s-2);
}
.ai-rec {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  align-items: center;
  width: 100%;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
}
.ai-rec strong,
.ai-rec span,
.ai-rec small { display: block; }
.ai-rec strong { font-size: 13px; }
.ai-rec span { color: var(--highlight); margin-top: 3px; font-size: 12px; }
.ai-rec p { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.ai-rec small { color: var(--text-dim); font-size: 11px; margin-top: 4px; }
.ai-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.ai-action-row button,
.ai-pay-strip button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-input);
  color: var(--text);
  padding: 7px 10px;
  font-size: 12px;
}
.ai-action-row button:hover,
.ai-pay-strip button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.ai-sources {
  display: grid;
  gap: 5px;
  max-width: 92%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
}
.ai-sources span {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
}
.ai-sources a {
  color: var(--highlight);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ai-web-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 92%;
  padding: 6px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--primary-ring);
  background: var(--primary-soft);
  color: var(--highlight);
  font-size: 11px;
}
.ai-pay-strip {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.ai-pay-strip > div {
  min-width: 0;
  margin-right: auto;
}
.ai-pay-strip strong,
.ai-pay-strip span {
  display: block;
  line-height: 1.2;
}
.ai-pay-strip strong { font-size: 12px; }
.ai-pay-strip span { color: var(--highlight); font-size: 12px; }
.ai-checkout-panel {
  margin: 0 var(--s-3) var(--s-2);
  border: 1px solid var(--primary-ring);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.ai-messages > .ai-checkout-panel {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}
.ai-checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3);
  border-bottom: 1px solid var(--border);
  background: var(--primary-soft);
}
.ai-checkout-head strong,
.ai-checkout-head span { display: block; }
.ai-checkout-head strong { font-size: 13px; }
.ai-checkout-head span { color: var(--text-muted); font-size: 12px; }
.ai-checkout-head button {
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
}
.ai-checkout-body {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-3);
}
.ai-checkout-body p {
  color: var(--text-muted);
  font-size: 13px;
}
.ai-checkout-body label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}
.ai-checkout-body input,
.ai-checkout-body select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text);
  padding: 10px 12px;
}
.ai-checkout-body select {
  color-scheme: dark;
}
.ai-check-inline {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
}
.ai-check-inline input {
  width: auto;
}
.ai-currency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}
.ai-currency-grid button {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text);
  padding: 10px;
}
.ai-currency-grid span { color: var(--text-muted); }
.ai-pay-method-mini {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  padding: var(--s-3);
}
.ai-pay-method-mini strong { font-size: 13px; }
.ai-pay-method-mini span { color: var(--text-muted); font-size: 12px; }
.ai-confirm-box {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--primary-ring);
  border-radius: var(--r-md);
  background: var(--primary-soft);
}
.ai-confirm-box strong {
  color: var(--text);
  font-size: 13px;
}
.ai-confirm-box span {
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ai-confirm-box div {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.ai-checkout-loading,
.ai-waiting,
.ai-countdown {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-muted);
  font-size: 13px;
}
.ai-waiting span {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--highlight);
  animation: aiPulse 1s ease-in-out infinite;
}
.ai-qr-box {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: #fff;
}
.ai-qr-box img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}
.ai-binance-note,
.pay-binance-note {
  margin: var(--s-2) 0;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--r-md);
  color: var(--text);
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
  line-height: 1.45;
}
.ai-binance-verify,
.pay-binance-verify {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding: var(--s-3);
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: var(--r-lg);
  background: rgba(20, 184, 166, 0.08);
}
.ai-binance-verify input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  background: var(--bg-input);
}
.ai-cred-list {
  display: grid;
  gap: var(--s-2);
}
.ai-cred-card {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
}
.ai-cred-card strong { font-size: 13px; }
.ai-cred-card span { color: var(--text-muted); font-size: 12px; }
.ai-cred-card.error { border-color: rgba(244,63,94,0.45); }
.ai-cred-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
}
.ai-cred-row em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
}
.ai-cred-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
}
.ai-cred-row button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  background: var(--bg-card);
}
.ai-code-card { max-width: 420px; }
@media (max-width: 520px) {
  .ai-assistant {
    left: 14px;
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .ai-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    height: min(620px, calc(100vh - 88px));
  }
}
#cart-icon-btn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  top: auto !important;
  left: auto !important;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  color: #fff;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 32px rgba(0,0,0,0.36), 0 0 0 6px var(--primary-soft);
}
#cart-icon-btn:hover {
  background: var(--primary-2);
  color: #fff;
  transform: translateY(-1px);
}
#cart-icon-btn i { font-size: 22px; }
#cart-icon-btn .cart-badge {
  top: -3px;
  right: -3px;
  border-color: var(--bg);
}
body.has-floating-cart .main {
  padding-bottom: calc(var(--s-8) + 88px + env(safe-area-inset-bottom));
}
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  background: var(--primary); color: #fff;
  border: 2px solid var(--bg-elevated);
  border-radius: var(--r-full);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.currency-selector {
  background: var(--bg-input); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 7px var(--s-3);
  font-size: 13px; font-weight: 500;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23a1a1aa' d='M8 11L3 6h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--s-2) center;
  background-size: 14px;
}
.currency-selector:hover { border-color: var(--border-strong); }
.currency-selector:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.user-menu {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 6px var(--s-3);
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  transition: border-color var(--t-fast);
}
.user-menu:hover { border-color: var(--border-strong); cursor: pointer; }
.user-menu .avatar {
  width: 24px; height: 24px; border-radius: var(--r-full);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.menu-toggle,
.support-toggle { display: none; }
.support-toggle {
  flex: 0 0 38px;
  color: #fff;
  background: var(--primary);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.support-toggle:hover { color: #fff; filter: brightness(1.08); }

/* ─── Layout principal ────────────────────────────────────────────────── */
.app-layout {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--topbar-h));
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: var(--s-6) var(--s-4);
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.sidebar-section { margin-bottom: var(--s-6); }
.sidebar-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0 var(--s-3) var(--s-2);
}
.nav-item {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%;
  padding: 9px var(--s-3);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}
.nav-item i { font-size: 18px; }
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
  background: var(--primary-soft); color: var(--primary);
}
.nav-item .nav-badge {
  margin-left: auto;
  min-width: 20px; padding: 1px 6px;
  background: var(--bg-hover); color: var(--text-muted);
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  text-align: center;
}
.nav-item.active .nav-badge { background: var(--primary); color: #fff; }

.mobile-bottom-nav {
  display: none;
}
.mobile-nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 8px 4px 7px;
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}
.mobile-nav-item i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.mobile-nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.main {
  padding: var(--s-8) var(--s-8);
  min-width: 0;
}
.page-header {
  margin-bottom: var(--s-6);
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-4);
}
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.012em; }
.page-subtitle { color: var(--text-muted); font-size: 14px; margin-top: var(--s-1); }

.view { display: none; }
.view.active { display: block; animation: fadeIn 240ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Cards base ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-4);
}
.card-title { font-size: 15px; font-weight: 600; }
.card-divider { height: 1px; background: var(--border); margin: var(--s-4) 0; }

/* ─── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 9px var(--s-4);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  user-select: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:not(:disabled):hover { filter: brightness(1.1); }
.btn-primary:focus { box-shadow: 0 0 0 3px var(--primary-ring); }

.btn-secondary {
  background: var(--bg-card); color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-dim); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.1); }

.btn-danger {
  background: transparent; color: var(--danger);
  border-color: var(--danger-soft);
}
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px var(--s-3); font-size: 13px; }
.btn-lg { padding: 12px var(--s-5); font-size: 15px; }
.btn[disabled] { pointer-events: none; }

/* ─── Forms ───────────────────────────────────────────────────────────── */
.field {
  display: block;
  margin-bottom: var(--s-4);
}
.field-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--text); margin-bottom: var(--s-2);
}
.field-hint {
  font-size: 12px; color: var(--text-dim);
  margin-top: var(--s-1);
}
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 10px var(--s-3);
  font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.input.input-error { border-color: var(--danger); }
.input.input-error:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

/* ─── Badges ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  background: var(--bg-hover); color: var(--text-muted);
}
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-dot::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor;
}

/* ─── Stat cards ──────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-5);
}
.stat-label {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.stat-value {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-meta { font-size: 12px; color: var(--text-dim); margin-top: var(--s-1); }
.stat-meta.up { color: var(--success); }
.stat-meta.down { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════════════
   VISTAS
═══════════════════════════════════════════════════════════════════════ */

/* ─── Catálogo ────────────────────────────────────────────────────────── */
.hero-compact {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-6);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); margin-bottom: var(--s-6);
}
.hero-compact .hero-logo {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-hover); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--primary);
  flex-shrink: 0; overflow: hidden;
}
.hero-compact .hero-logo:has(img) { background: #fff; padding: 4px; }
.hero-compact .hero-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.hero-compact .hero-text h1 { font-size: 22px; margin-bottom: 4px; }
.hero-compact .hero-text p { color: var(--text-muted); font-size: 14px; }

.storefront-hero {
  overflow: hidden;
  margin-bottom: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
}
.storefront-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3.2 / 1;
  min-height: 150px;
  max-height: 260px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 72%, #111), color-mix(in srgb, var(--accent) 58%, #111));
}
.storefront-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.36));
  pointer-events: none;
}
.storefront-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.storefront-identity {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: var(--s-4);
  min-height: 88px;
  padding: 0 var(--s-6) var(--s-5);
}
.storefront-identity .hero-logo {
  width: 96px;
  height: 96px;
  margin-top: -48px;
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid var(--bg-card);
  border-radius: var(--r-lg);
  background: var(--bg-hover);
  color: var(--primary);
  font-size: 34px;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  z-index: 1;
}
.storefront-identity .hero-logo:has(img) { background: #fff; padding: 4px; }
.storefront-identity .hero-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.storefront-identity .hero-text {
  min-width: 0;
  flex: 1;
  padding-top: var(--s-4);
}
.storefront-identity .hero-text h1 { margin: 0 0 3px; font-size: 22px; }
.storefront-identity .hero-text > p { color: var(--text-muted); font-size: 14px; }
.storefront-reputation {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.shop-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0;
  color: var(--text-muted);
  text-align: left;
}
.shop-rating-summary:hover { color: var(--text); }
.shop-rating-summary strong { color: var(--text); font-size: 13px; }
.shop-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-dim);
}
.shop-rating-stars i.is-active { color: #fbbf24; }
.shop-rating-modal-card { max-width: 430px; }
.shop-rating-modal-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-right: var(--s-7);
}
.shop-rating-modal-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: #fbbf24;
  background: rgba(251,191,36,.13);
  font-size: 24px;
}
.shop-rating-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(46px, 1fr));
  gap: var(--s-2);
  margin: var(--s-6) 0 var(--s-3);
}
.shop-rating-picker button {
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text-dim);
  font-size: 28px;
  transition: transform var(--t-fast), border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.shop-rating-picker button:hover,
.shop-rating-picker button.is-active {
  color: #fbbf24;
  border-color: rgba(251,191,36,.6);
  background: rgba(251,191,36,.1);
}
.shop-rating-picker button:focus-visible { outline: 3px solid rgba(251,191,36,.28); outline-offset: 2px; }
.shop-rating-choice { min-height: 22px; margin: 0 0 var(--s-5); text-align: center; color: var(--text-muted); }

@media (max-width: 640px) {
  .storefront-cover { aspect-ratio: 2.15 / 1; min-height: 128px; }
  .storefront-identity { align-items: flex-start; padding: 0 var(--s-4) var(--s-4); }
  .storefront-identity .hero-logo { width: 78px; height: 78px; flex-basis: 78px; margin-top: -39px; }
  .storefront-identity .hero-text { padding-top: var(--s-3); }
  .storefront-identity .hero-text h1 { font-size: 19px; }
  .storefront-reputation { gap: var(--s-2); }
  .shop-rating-picker { gap: 6px; }
}

.filter-bar {
  display: flex; gap: var(--s-3); align-items: center;
  margin-bottom: var(--s-5); flex-wrap: wrap;
}
.filter-bar .searchwrap-inline {
  flex: 1; min-width: 260px; max-width: 480px; position: relative;
}
.filter-bar .searchwrap-inline input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 10px var(--s-3) 10px 40px;
  border-radius: var(--r-md); font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.filter-bar .searchwrap-inline input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring);
}
.filter-bar .searchwrap-inline i {
  position: absolute; left: var(--s-3); top: 50%; transform: translateY(-50%);
  color: var(--text-dim);
}
.tmdb-country-inline {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 150px;
}
.tmdb-country-inline i {
  position: absolute;
  left: var(--s-3);
  color: var(--text-dim);
  pointer-events: none;
}
.tmdb-country-inline input {
  width: 100%;
  height: 42px;
  padding: 0 var(--s-3) 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
}
.tmdb-country-inline input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
}
.product-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.product-card:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.product-card.is-offer {
  padding-top: calc(var(--s-5) + 24px);
  border-color: rgba(245,158,11,.58);
  box-shadow: 0 12px 30px rgba(245,158,11,.10);
}
.product-card.is-offer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(245,158,11,.12), transparent 44%);
}
.product-offer-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(245,158,11,.55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245,158,11,.98), rgba(250,204,21,.92));
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 10px 22px rgba(245,158,11,.20);
}
.product-head {
  display: flex; align-items: center; gap: var(--s-3);
}
.product-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-hover); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-muted);
  flex-shrink: 0; overflow: hidden;
}
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-info { min-width: 0; flex: 1; }
.product-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-status { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.product-detail-pop {
  position: relative;
  flex-shrink: 0;
}
.product-detail-pop summary {
  list-style: none;
}
.product-detail-pop summary::-webkit-details-marker {
  display: none;
}
.product-info-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.product-info-btn:hover,
.product-detail-pop[open] .product-info-btn {
  color: var(--primary);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.product-detail {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 48px));
  z-index: 20;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3);
  box-shadow: var(--shadow-lg);
}
.product-prices {
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--s-3); background: var(--bg-input);
  border-radius: var(--r-md); border: 1px solid var(--border);
}
.price-row { display: flex; justify-content: space-between; align-items: center; }
.price-label { font-size: 12px; color: var(--text-muted); }
.price-value {
  font-size: 14px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.offer-price-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  text-align: right;
}
.regular-price {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: line-through;
}
.offer-price {
  color: var(--warning);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.offer-chip {
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.14);
  color: var(--warning);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.offer-badge {
  border-color: rgba(245,158,11,.38);
  background: rgba(245,158,11,.15);
  color: var(--warning);
}
/* Aviso al volver de pagar en la app del banco */
.bank-wait {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 var(--s-3);
  padding: 10px 12px;
  border: 1px solid rgba(245,158,11,.38);
  background: rgba(245,158,11,.12);
  color: var(--warning);
  border-radius: var(--r-md, 10px);
  font-size: 13px; font-weight: 700;
}
.bank-wait i { font-size: 18px; animation: bank-wait-spin 2.4s linear infinite; }
@keyframes bank-wait-spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* Valores copiables dentro del mensaje de entrega */
.copy-val {
  cursor: pointer;
  border-radius: 5px;
  padding: 0 3px;
  background: rgba(124,58,237,.10);
  border-bottom: 1px dashed rgba(124,58,237,.55);
  transition: background var(--t-fast), color var(--t-fast);
}
.copy-val:hover, .copy-val:active {
  background: rgba(124,58,237,.24);
  color: var(--primary);
}

/* Contador de fin de oferta */
.offer-timer {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.12);
  color: var(--warning);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.offer-timer i { font-size: 13px; }
.offer-timer-live { animation: offer-timer-pulse 1.6s ease-in-out infinite; }
.offer-timer .offer-countdown { font-weight: 900; letter-spacing: .06em; }
@keyframes offer-timer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.0); }
  50% { box-shadow: 0 0 0 3px rgba(245,158,11,.16); }
}
.product-actions { display: flex; gap: var(--s-2); }
.product-actions .btn { flex: 1; }

/* ─── Combos ──────────────────────────────────────────────────────────── */
.combos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-4);
}
.combo-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
  position: relative; transition: border-color var(--t-fast);
}
.combo-card::before {
  content: 'COMBO';
  position: absolute; top: var(--s-3); right: var(--s-3);
  padding: 2px var(--s-2);
  background: var(--primary-soft); color: var(--primary);
  border-radius: var(--r-sm);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
}
.combo-card:hover { border-color: var(--primary); }
.combo-head { display: flex; align-items: center; gap: var(--s-3); padding-right: 60px; }
.combo-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.combo-icon img { width: 100%; height: 100%; object-fit: cover; }
.combo-title { flex: 1; min-width: 0; }
.combo-title strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.combo-price {
  font-size: 20px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.combo-items {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-3); background: var(--bg-input);
  border-radius: var(--r-md); border: 1px solid var(--border);
  font-size: 13px;
}
.combo-item { display: flex; align-items: center; gap: var(--s-2); color: var(--text-muted); }
.combo-item-icon { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }

/* ─── Cuentas ─────────────────────────────────────────────────────────── */
.accounts-tabs {
  display: flex; gap: var(--s-2); margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--border); padding-bottom: 0;
  overflow-x: auto;
}
.accounts-tab {
  padding: var(--s-3) var(--s-4);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.accounts-tab:hover { color: var(--text); }
.accounts-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.accounts-tab .count {
  margin-left: 6px; font-size: 11px; color: var(--text-dim);
}
.accounts-tab.active .count { color: var(--primary); }

.account-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-5);
  margin-bottom: var(--s-3);
}
.account-head {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.account-head .product-icon { width: 40px; height: 40px; font-size: 18px; }
.account-title { flex: 1; min-width: 0; }
.account-title strong { display: block; font-size: 15px; font-weight: 600; }
.expiry-ok    { color: var(--success); font-weight: 500; }
.expiry-warn  { color: var(--warning); font-weight: 600; }
.expiry-bad   { color: var(--danger); font-weight: 600; }

.account-creds {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-3);
  display: flex; flex-direction: column; gap: var(--s-2);
}

/* ─── Web de códigos asociado a cada cuenta ─── */
.account-webs {
  margin-top: var(--s-3);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.account-webs-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-1);
}
.account-webs-label i { color: var(--primary); font-size: 14px; }
.web-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.web-link {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3);
  color: var(--text);
  transition: background var(--t-fast);
  cursor: pointer;
  text-decoration: none;
}
.web-link:hover { background: var(--bg-hover); }
.web-link > i:first-child {
  color: var(--primary); font-size: 16px; flex-shrink: 0;
}
.web-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex-shrink: 0;
}
.web-url {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 11px;
}
.web-arrow {
  color: var(--text-dim); font-size: 14px; flex-shrink: 0;
}
.web-link:hover .web-arrow { color: var(--primary); }
.web-form {
  background: var(--bg-card); padding: var(--s-3);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--s-2);
}

/* Bandeja dedicada de codigos IMAP */
/* Nada dentro de Codigos puede ser mas ancho que la pantalla: si se desborda,
   el telefono encoge la pagina y se ve como si hiciera zoom al entrar. */
.view[data-view="inbox"],
#inbox-content {
  max-width: 100%;
  overflow-x: hidden;
}
.mail-message iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* ── Seccion de codigos: un paso por pantalla ──────────────────────────────
   Plataformas -> correos de esa plataforma -> mensajes. Nada de dos columnas:
   el layout viejo forzaba un ancho minimo mayor que el telefono, la pagina se
   desbordaba a lo ancho y por eso se veia "con zoom" al entrar. */
.inbox-step {
  max-width: 100%;
  overflow-x: hidden;
}
.inbox-step-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: var(--s-3);
}
.inbox-step-title {
  font-size: 20px;
  margin: 0;
  overflow-wrap: anywhere;
}
.inbox-step-mail {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.inbox-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.inbox-step-head-text { min-width: 0; }
.inbox-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 6px 0;
  margin-bottom: var(--s-2);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Paso 1: tarjetas de plataforma */
.inbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--s-3);
}
.inbox-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--s-3);
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.inbox-tile:hover { border-color: var(--primary); }
.inbox-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--primary);
  font-size: 26px;
  flex-shrink: 0;
}
.inbox-tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.inbox-tile-name {
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}
.inbox-tile-count {
  color: var(--text-muted);
  font-size: 12px;
}

/* Paso 2: los correos de la plataforma elegida */
.inbox-mails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inbox-mail-pick {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: 12px var(--s-3);
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.inbox-mail-pick:hover { border-color: var(--primary); }
.inbox-mail-pick > i:first-child { color: var(--primary); font-size: 20px; }
.inbox-mail-pick-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inbox-mail-pick-text strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-mail-pick-text small { color: var(--text-muted); font-size: 12px; }

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
}
.inbox-account-list,
.inbox-reader {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.inbox-account-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.inbox-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--s-2);
}
.inbox-list-head strong {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.inbox-account {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  gap: var(--s-3);
  align-items: center;
  text-align: left;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.inbox-account:hover,
.inbox-account.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 60%, var(--bg-input));
}
.inbox-account.active { transform: translateY(-1px); }
.inbox-account-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--primary);
  font-size: 22px;
}
.inbox-account-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inbox-account-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inbox-account-text strong {
  font-size: 13px;
  font-weight: 700;
}
.inbox-account-text small {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-reader {
  min-height: 420px;
}
.inbox-reader-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.inbox-reader-head h2 {
  font-size: 20px;
  margin-top: 2px;
}
.inbox-mail-body .empty-state {
  min-height: 260px;
}
.inbox-results {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
@media (max-width: 480px) {
  .web-link { flex-wrap: wrap; }
  .web-url { flex-basis: 100%; }
}
.account-creds .cred-row,
.web-form .cred-row {
  display: grid;
  grid-template-columns: minmax(82px, 120px) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.account-creds .cred-row:last-child,
.web-form .cred-row:last-child { border-bottom: 0; }
.cred-lbl {
  font-size: 12px; color: var(--text-muted);
  min-width: 0;
}
.cred-val {
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
  font-size: 13px; font-weight: 500; color: var(--text);
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}
.cred-val[data-copy] { cursor: pointer; transition: color var(--t-fast); }
.cred-val[data-copy]:hover { color: var(--primary); }
.cred-val[data-copy]::after {
  content: ' '; display: inline-block; width: 14px; height: 14px; margin-left: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'><rect x='9' y='9' width='13' height='13' rx='2'/><path d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/></svg>");
  background-repeat: no-repeat; background-size: contain;
  vertical-align: middle; opacity: 0.5;
  transition: opacity var(--t-fast);
}
.cred-val[data-copy]:hover::after { opacity: 1; }
.account-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}
.account-actions .btn { min-height: 36px; }
@media (max-width: 480px) {
  .account-creds .cred-row,
  .web-form .cred-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .cred-val { font-size: 12px; }
  .account-actions .btn-primary { flex: 1 1 160px; }
}

/* ─── Carrito / Checkout ──────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-6);
  align-items: start;
  min-width: 0;
}
.checkout-items {
  display: flex; flex-direction: column; gap: var(--s-3);
  min-width: 0;
}
.checkout-item {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-4);
  min-width: 0;
}
.checkout-item-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-hover); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.checkout-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-info strong { display: block; font-size: 14px; font-weight: 600; }
.checkout-item-info .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.checkout-item-price {
  font-size: 14px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  min-width: 84px;
  text-align: right;
}
.qty-group {
  display: inline-flex; align-items: center;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 2px;
  flex: 0 0 auto;
}
.qty-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: 4px;
  transition: background var(--t-fast), color var(--t-fast);
}
.qty-btn:hover { background: var(--bg-hover); color: var(--text); }
.qty-display {
  min-width: 28px; text-align: center;
  font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.checkout-item-remove {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
}
.checkout-item-remove:hover { background: var(--danger-soft); color: var(--danger); }

.checkout-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-5);
  position: sticky; top: calc(var(--topbar-h) + var(--s-4));
  min-width: 0;
}
.checkout-summary h3 { margin-bottom: var(--s-4); }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  padding: var(--s-2) 0;
}
.summary-row.total {
  font-size: 18px; font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: var(--s-2); padding-top: var(--s-3);
}
.summary-row.total .mono { font-size: 20px; }
.checkout-actions {
  display: flex; flex-direction: column; gap: var(--s-2);
  margin-top: var(--s-4);
}
.stock-warning {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-3);
  margin-top: var(--s-3);
  border: 1px solid var(--danger-soft);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-md);
  background: var(--danger-soft);
}
.stock-warning i {
  color: var(--danger);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.stock-warning strong { display: block; font-size: 13px; }
.stock-warning p {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}
.empty-state {
  text-align: center; padding: var(--s-16) var(--s-6);
}
.empty-state i {
  font-size: 48px; color: var(--text-dim); margin-bottom: var(--s-3);
}
.empty-state h2 { margin-bottom: var(--s-2); }
.empty-state p { color: var(--text-muted); margin-bottom: var(--s-5); }

/* ─── Login screen ────────────────────────────────────────────────────── */
.login-view {
  min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-6);
}
.login-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-8);
  box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: var(--s-6); }
.login-logo {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-4);
  border-radius: var(--r-lg);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; overflow: hidden;
}
.login-logo:has(img) { background: #fff; padding: 6px; }
.login-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.login-header h1 { font-size: 22px; margin-bottom: var(--s-1); }
.login-error {
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: var(--s-3); border-radius: var(--r-md);
  font-size: 13px; margin-bottom: var(--s-3);
}
.login-footer {
  text-align: center; font-size: 13px; color: var(--text-muted);
  margin-top: var(--s-5);
}
.reset-code-panel { margin-top: var(--s-5); }
.reset-code-card {
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
}
.reset-code-card h2 {
  font-size: 18px;
  margin-bottom: var(--s-2);
}
.reset-customer-summary {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.reset-customer-summary div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  align-items: center;
}
.reset-customer-summary span {
  color: var(--text-muted);
  font-size: 12px;
}
.reset-customer-summary strong {
  text-align: right;
  word-break: break-word;
}

/* ─── Profile ─────────────────────────────────────────────────────────── */
.profile-hero {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-6);
  margin-bottom: var(--s-6);
}
.profile-hero-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-5);
}
.profile-hero-greeting { color: var(--text-muted); font-size: 14px; }
.profile-hero-name { font-size: 20px; font-weight: 700; }
.profile-balance-label {
  font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--s-2);
}
.profile-balance {
  font-size: 48px; font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.profile-balance.negative { color: var(--danger); }
.profile-type {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: var(--s-3);
  padding: 4px var(--s-3);
  background: var(--primary-soft); color: var(--primary);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
}
.profile-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}
.profile-actions .btn { min-width: 180px; }
.topup-summary {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  margin-bottom: var(--s-4);
}
.topup-summary strong { font-size: 20px; }
.topup-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.topup-quick button {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 8px 6px;
  font-weight: 700;
}
.topup-quick button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.history-table {
  width: 100%;
  font-size: 14px;
}
.history-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.history-row:last-child { border-bottom: 0; }
.history-meta { color: var(--text-muted); font-size: 13px; }
.history-amount {
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.history-amount.credit { color: var(--success); }
.history-amount.debit  { color: var(--danger); }

/* ─── Pagination ──────────────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: var(--s-2); margin-top: var(--s-6);
}
.pagination button {
  min-width: 36px; height: 36px;
  padding: 0 var(--s-3);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  transition: all var(--t-fast);
}
.pagination button:hover:not(:disabled) {
  background: var(--bg-hover); border-color: var(--border-strong); color: var(--text);
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-info { color: var(--text-dim); font-size: 13px; }

/* ─── Modal purchase success ──────────────────────────────────────────── */
.modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: var(--s-4);
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6) var(--s-6);
  max-width: 460px; width: 100%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  position: relative;
  animation: modalIn 240ms var(--ease);
}
#m-purchase .modal-card { max-width: 520px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.modal-close {
  position: absolute; top: var(--s-3); right: var(--s-3);
  width: 32px; height: 32px;
  color: var(--text-muted); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }
.success-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s-3);
  background: var(--success-soft); color: var(--success);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.purchase-credentials {
  margin-top: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.purchase-credentials-item {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-3);
}
.delivery-copy-fields {
  margin-top: var(--s-3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s-2);
}
.delivery-copy-chip {
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 4px 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}
.delivery-copy-chip:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.delivery-copy-chip span {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--text-muted);
}
.delivery-copy-chip code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.delivery-copy-chip i {
  color: var(--text-muted);
}

/* ─── Toasts ──────────────────────────────────────────────────────────── */
#toasts {
  position: fixed; top: var(--s-4); right: var(--s-4);
  z-index: 200; pointer-events: none;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.toast {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 240ms var(--ease);
  max-width: 360px;
}
.toast.s { border-left-color: var(--success); }
.toast.w { border-left-color: var(--warning); }
.toast.d { border-left-color: var(--danger); }
.toast.i { border-left-color: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

/* ─── Not found ───────────────────────────────────────────────────────── */
.not-found-card {
  min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-6);
}
.not-found-card-inner {
  text-align: center; max-width: 420px;
}
.not-found-card-inner .error-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s-4);
  background: var(--danger-soft); color: var(--danger);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}

/* ─── Drawer mobile ───────────────────────────────────────────────────── */
.drawer-overlay {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--bg-elevated); border-right: 1px solid var(--border);
  padding: var(--s-6) var(--s-4); z-index: 61;
  transform: translateX(-100%);
  transition: transform var(--t-base) var(--ease);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-close {
  position: absolute; top: var(--s-3); right: var(--s-3);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 768px) {
  :root { --topbar-h: 56px; }
  .topbar-inner { padding: 0 var(--s-4); gap: var(--s-3); }
  .support-toggle { display: inline-flex; }
  .searchwrap { display: none; }
  .topbar .currency-selector {
    display: inline-flex !important;
    width: 94px;
    min-width: 82px;
    max-width: 112px;
    padding: 7px 26px 7px 10px;
    font-size: 12px;
  }
  .user-menu .user-name { display: none; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-name { font-size: 14px; }
  .header-actions { flex-shrink: 0; gap: var(--s-1); }
  .user-menu { display: none; }

  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  .main {
    padding: var(--s-5) var(--s-4) calc(var(--mobile-nav-h) + 128px + env(safe-area-inset-bottom));
  }
  body.has-floating-cart .main {
    padding-bottom: calc(var(--mobile-nav-h) + 142px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    min-height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    box-shadow: 0 -12px 32px rgba(0,0,0,0.34);
    backdrop-filter: blur(18px);
    overflow: hidden;
  }
  .mobile-nav-item {
    min-width: 0;
    min-height: 56px;
    gap: 3px;
    padding: 5px 2px;
    font-size: 10px;
    border-radius: 12px;
  }
  .mobile-nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-nav-item i {
    width: 22px;
    height: 22px;
    font-size: 21px;
  }
  #cart-icon-btn {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(var(--mobile-nav-h) + 18px + env(safe-area-inset-bottom));
  }
  .ai-assistant {
    bottom: calc(var(--mobile-nav-h) + 20px + env(safe-area-inset-bottom));
  }
  .ai-panel {
    bottom: calc(var(--mobile-nav-h) + 12px + env(safe-area-inset-bottom));
    height: min(620px, calc(100vh - var(--topbar-h) - var(--mobile-nav-h) - 24px));
  }
  .page-title { font-size: 20px; }
  .hero-compact { padding: var(--s-4); flex-direction: column; align-items: flex-start; }
  .hero-compact .hero-text h1 { font-size: 18px; }

  .products-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .product-card { padding: var(--s-3); gap: var(--s-2); }
  .product-card .btn { font-size: 12px; padding: 7px var(--s-2); }

  .inbox-layout {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .inbox-account-list,
  .inbox-reader {
    padding: var(--s-3);
    border-radius: var(--r-md);
  }
  .inbox-account {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    padding: var(--s-2);
  }
  .inbox-account-icon {
    width: 44px;
    height: 44px;
  }
  .inbox-reader-head {
    flex-direction: column;
    align-items: stretch;
  }
  .inbox-reader-head .btn {
    width: 100%;
  }
  .product-name { font-size: 13px; }
  .product-icon { width: 36px; height: 36px; font-size: 18px; }
  .price-value { font-size: 13px; }

  .combos-grid { grid-template-columns: 1fr; }

  .stat-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .stat-card { padding: var(--s-4); }
  .stat-value { font-size: 22px; }

  .profile-balance { font-size: 36px; }
  .profile-actions { display: grid; grid-template-columns: 1fr; }
  .profile-actions .btn { width: 100%; min-width: 0; }
  .topup-quick { grid-template-columns: repeat(3, 1fr); }
  .login-card { padding: var(--s-5); }

  #toasts { top: auto; bottom: var(--s-4); right: var(--s-4); left: var(--s-4); }
  .toast { max-width: none; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .filter-bar .searchwrap-inline { min-width: 100%; max-width: none; }
  .checkout-item {
    display: grid;
    grid-template-columns: 44px minmax(8px, 1fr) minmax(76px, max-content) 32px;
    gap: var(--s-2);
    padding: var(--s-3);
  }
  .checkout-item-icon {
    width: 44px;
    height: 44px;
    grid-column: 1;
    grid-row: 1;
  }
  .checkout-item-info {
    grid-column: 2 / 5;
    grid-row: 1;
  }
  .qty-group {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: start;
  }
  .checkout-item-price {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
  }
  .checkout-item-remove {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
  }
  .modal { padding: var(--s-3); }
  .modal-card { padding: var(--s-6) var(--s-4) var(--s-4); border-radius: var(--r-lg); }
  .pay-method-card { flex-direction: column; }
  .pay-method-qr { width: 100%; }
  .pay-method-qr img { width: min(180px, 100%); height: auto; aspect-ratio: 1; }
  .pay-method-value { align-items: flex-start; }
  .pay-processing-box { padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); }
}

/* ═══════════════════════════════════════════════════════════════════
   v2.6.x — PAGOS CON COMPROBANTE
   ═══════════════════════════════════════════════════════════════════ */

.btn-voucher {
  background: linear-gradient(135deg, #10b981, #7c3aed);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-voucher:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}
.btn-voucher:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.pay-claim-card {
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.pay-qr-generating-card {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-qr-generating {
  text-align: center;
  padding: var(--s-8) var(--s-4);
}
.pay-qr-loader {
  width: 86px;
  height: 86px;
  margin: 0 auto var(--s-5);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: radial-gradient(circle at 50% 50%, var(--primary) 0 44%, rgba(124, 58, 237, 0.14) 46% 100%);
  box-shadow: 0 0 0 0 var(--primary-ring);
  animation: qrPulse 1.05s ease-in-out infinite;
}
.pay-qr-loader i {
  font-size: 38px;
  animation: qrFloat 1.4s ease-in-out infinite;
}
.pay-qr-generating h2 {
  justify-content: center;
  margin-bottom: var(--s-2);
}
@keyframes qrPulse {
  0%, 100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.38); }
  50% { transform: scale(1); box-shadow: 0 0 0 14px rgba(124, 58, 237, 0); }
}
@keyframes qrFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.pay-claim-card h2 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  font-size: 20px;
}
.pay-section {
  margin-bottom: var(--s-4);
}
.pay-section h4 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-3) 0 var(--s-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
}
.pay-section .field { margin-bottom: var(--s-3); }
.pay-section .field-label {
  display: block;
  font-size: 13px;
  margin-bottom: var(--s-1);
  font-weight: 500;
}

.pay-method-card {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--r-md);
  padding: var(--s-3);
}
.pay-method-card-center {
  align-items: center;
}
.pay-method-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pay-method-qr img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}
.pay-method-qr-large img {
  width: min(240px, 72vw);
  height: min(240px, 72vw);
}
.pay-same-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  font-size: 14px;
}
.pay-qr-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  font-size: 14px;
}
.pay-qr-countdown strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
}
.pay-amount-strong {
  margin-top: 0;
}
.btn-qr-download {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn-qr-download:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}
.btn-qr-download:active {
  transform: translateY(0);
}
.pay-method-info { flex: 1; min-width: 0; }
.pay-method-label {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: var(--s-2);
}
.pay-method-value {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--s-2) var(--s-3);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  word-break: break-all;
  margin-bottom: var(--s-2);
}
.pay-method-value code {
  flex: 1;
  background: none;
  padding: 0;
}
.payment-note-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--primary-ring);
  border-radius: var(--r-md);
  background: var(--primary-soft);
}
.payment-note-copy {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}
.payment-note-copy code {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-copy {
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  font-size: 18px;
  padding: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-copy:hover { background: rgba(124, 58, 237, 0.15); }

.pay-method-instructions {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  margin-top: var(--s-2);
}
.pay-no-method {
  padding: var(--s-3) var(--s-4);
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  border-radius: var(--r-md);
  font-size: 14px;
}
.pay-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--border, rgba(255,255,255,0.1));
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
  margin: var(--s-3) 0;
}
.pay-amount strong {
  font-size: 24px;
  color: #10b981;
}

/* Overlay procesando */
.pay-processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  backdrop-filter: blur(4px);
}
.pay-processing-box {
  background: var(--bg-card, #1a1d2e);
  padding: var(--s-6) var(--s-8);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}
.pay-processing-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(124, 58, 237, 0.2);
  border-top-color: #7c3aed;
  border-radius: 50%;
  margin: 0 auto var(--s-4);
  animation: pp-spin 0.8s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pay-processing-box h2 { margin: 0 0 var(--s-2); font-size: 20px; }
.pay-processing-box p { margin: 0; font-size: 14px; }

.pay-processing-overlay.proc-warn .pay-processing-spinner,
.pay-processing-overlay.proc-error .pay-processing-spinner,
.pay-processing-overlay.proc-success .pay-processing-spinner { display: none; }
.pay-processing-overlay.proc-error .pay-processing-box::before {
  content: '✗';
  display: block;
  font-size: 56px;
  color: #ef4444;
  margin-bottom: var(--s-2);
  line-height: 1;
}
.pay-processing-overlay.proc-warn .pay-processing-box::before {
  content: '⏱';
  display: block;
  font-size: 56px;
  color: #f59e0b;
  margin-bottom: var(--s-2);
}
.pay-processing-overlay.proc-success .pay-processing-box::before {
  content: '✓';
  display: block;
  font-size: 56px;
  color: #10b981;
  margin-bottom: var(--s-2);
}
#pay-processing-result { margin-top: var(--s-4); }

/* Cred cards en modal de credenciales */
.cred-card {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  border-radius: var(--r-md);
  padding: var(--s-3);
  margin-bottom: var(--s-3);
  overflow: hidden;
}
.cred-card.cred-fail {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
}
.cred-card strong { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-1); }
.cred-fields { margin-top: var(--s-2); }
.cred-card .cred-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 34px;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}
.cred-card .cred-row:last-child { border-bottom: none; }
.cred-card .cred-row code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 480px) {
  .cred-card .cred-row { grid-template-columns: minmax(0, 1fr) 34px; gap: var(--s-1) var(--s-2); }
  .cred-card .cred-row .muted { grid-column: 1 / -1; }
  .cred-card .cred-row code { grid-column: 1; }
  .cred-card .cred-row .btn-copy { grid-column: 2; grid-row: 2; }
}

/* Catalogo global */
.global-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(6,182,212,0.12), transparent 24rem),
    var(--bg);
}
.global-page.global-light {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --border: #d8dee8;
  --border-strong: #b8c2d1;
  --text: #111827;
  --text-muted: #4b5563;
  --text-dim: #64748b;
  --primary-soft: rgba(37, 99, 235, 0.11);
  --primary-ring: rgba(37, 99, 235, 0.22);
  color: var(--text);
}
.global-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 21, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.global-page.global-light .global-topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.global-topbar-inner {
  max-width: var(--content-max);
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.global-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
  font-size: 16px;
}
.global-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
}
.global-count {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}
.global-top-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.global-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 18px;
}
.global-theme-toggle:hover {
  background: var(--bg-hover);
}
.global-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-12);
}
.global-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: var(--s-6);
  align-items: end;
  margin-bottom: var(--s-5);
}
.global-toolbar h1 {
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: 0;
  margin-bottom: var(--s-2);
}
.global-toolbar p {
  color: var(--text-muted);
}
.global-search-stack {
  display: grid;
  gap: var(--s-2);
}
.global-search {
  position: relative;
}
.global-search i {
  position: absolute;
  left: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 18px;
}
.global-search input {
  width: 100%;
  height: 48px;
  padding: 0 var(--s-4) 0 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--text);
}
.global-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.global-search-stack .tmdb-country-inline {
  min-width: 0;
}
.global-search-stack .tmdb-country-inline input {
  height: 42px;
}
.global-mode-tabs {
  display: flex;
  gap: var(--s-2);
  padding: 4px;
  margin: 0 0 var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-card);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.global-mode-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--s-4);
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}
.global-mode-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px rgba(0,0,0,0.24);
}
.global-shops {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding: 0 0 var(--s-4);
  margin-bottom: var(--s-2);
}
.global-shop-chip {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.global-shop-chip-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}
.global-shop-chip.active {
  border-color: var(--shop-color, var(--primary));
  color: var(--text);
  background: var(--primary-soft);
}
.global-shop-logo {
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  color: var(--text-muted);
}
.global-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.global-shop-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.global-shop-rating strong { color: var(--text); }
.global-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--text-dim);
}
.global-rating-stars i.is-active { color: #fbbf24; }
.global-shop-rating.is-compact { font-size: 10px; }
.global-market-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4);
  margin: 0 0 var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
}
.global-market-controls.is-disabled {
  opacity: 0.72;
}
.global-control-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 2px;
}
.global-market-controls strong {
  color: var(--text);
}
.global-market-controls select {
  min-width: 160px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text);
  padding: 0 var(--s-3);
}
.global-tmdb {
  display: none;
  margin: 0 0 var(--s-5);
}
.shop-tmdb {
  display: none;
  margin: 0 0 var(--s-5);
}
.global-tmdb.is-visible,
.shop-tmdb.is-visible { display: block; }
.tmdb-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(6,182,212,0.12), transparent 20rem),
    var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tmdb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.tmdb-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: 0;
}
.tmdb-head a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.tmdb-head-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tmdb-loading {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
}
.tmdb-loading p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.tmdb-spinner {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(124,58,237,0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: pp-spin 0.8s linear infinite;
}
.tmdb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4);
}
.tmdb-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: var(--s-3);
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg-card) 82%, var(--bg-hover));
}
.tmdb-poster {
  width: 86px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--text-muted);
}
.tmdb-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tmdb-poster i { font-size: 28px; }
.tmdb-info {
  min-width: 0;
}
.tmdb-info strong,
.tmdb-info em,
.tmdb-info p {
  display: block;
}
.tmdb-info strong {
  font-size: 14px;
  line-height: 1.25;
}
.tmdb-info strong span {
  color: var(--text-muted);
  font-weight: 700;
}
.tmdb-info em {
  margin-top: 2px;
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.tmdb-info p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.tmdb-providers,
.tmdb-related {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tmdb-provider-group {
  margin-top: 10px;
}
.tmdb-provider-group > b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.tmdb-provider-group.is-rent > b {
  color: var(--text-muted);
}
.tmdb-provider-group .tmdb-providers {
  margin-top: 0;
}
.tmdb-providers span,
.tmdb-related a,
.tmdb-related.muted,
.tmdb-providers.muted {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.tmdb-providers span img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
}
.tmdb-related a {
  color: var(--text);
  background: var(--primary-soft);
  border-color: var(--primary-ring);
}
.tmdb-related small {
  color: var(--text-muted);
  font-size: 10px;
}
.tmdb-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tmdb-source-links a,
.tmdb-region {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.tmdb-source-links a:hover {
  color: var(--primary);
  border-color: var(--primary-ring);
}
.tmdb-shop-products {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.tmdb-shop-product {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--primary-soft);
}
.tmdb-shop-product strong {
  font-size: 12px;
}
.tmdb-shop-product span {
  color: var(--text-muted);
  font-size: 11px;
}
.tmdb-shop-product div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tmdb-shop-product button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--r-full);
  color: #fff;
  background: var(--primary);
  font-size: 11px;
  font-weight: 800;
}
.global-worldcup {
  position: relative;
  overflow: hidden;
  display: none;
  margin: 0 0 var(--s-5);
  padding: var(--s-5);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(21, 128, 61, 0.22), rgba(24, 24, 27, 0.9)),
    var(--bg-card);
}
.global-worldcup.is-visible { display: block; }
.shop-worldcup {
  display: none;
  position: relative;
  overflow: hidden;
  margin: 0 0 var(--s-6);
  padding: var(--s-5);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(21, 128, 61, 0.24), rgba(9, 9, 11, 0.74)),
    var(--bg-card);
}
.shop-worldcup.is-visible { display: block; }
.view[data-view="worldcup"] .shop-worldcup {
  margin-top: 0;
}
.global-worldcup::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  pointer-events: none;
}
.global-worldcup::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.worldcup-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.worldcup-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: 0;
}
.worldcup-source {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  color: var(--text);
  background: rgba(0, 0, 0, 0.16);
  font-size: 12px;
  font-weight: 700;
}
.worldcup-events {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-3);
}
.worldcup-event {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  background: rgba(9, 9, 11, 0.48);
  box-shadow: var(--shadow-sm);
}
.worldcup-stadium {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  padding: var(--s-4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    rgba(0,0,0,0.18);
  background-size: 36px 36px;
}
.worldcup-arena {
  position: relative;
  min-height: 140px;
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,0.25) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(22,101,52,0.88) 0 24px, rgba(21,128,61,0.88) 24px 48px);
  overflow: hidden;
}
.worldcup-ring {
  position: absolute;
  inset: 34px auto auto 50%;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  transform: translateX(-50%);
}
.worldcup-ring.r2 {
  width: 138px;
  height: 138px;
  top: 1px;
  opacity: 0.24;
}
.worldcup-cup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  color: #111827;
  background: #facc15;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(250,204,21,0.14);
  animation: cupPulse 1.7s ease-in-out infinite;
}
.worldcup-light {
  position: absolute;
  top: -20px;
  width: 90px;
  height: 190px;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), transparent);
  transform: rotate(18deg);
  opacity: 0.46;
}
.worldcup-light.l1 { left: 12px; }
.worldcup-light.l2 { right: 12px; transform: rotate(-18deg); }
.worldcup-stadium-copy { min-width: 0; }
.worldcup-opening-title {
  margin: 8px 0 4px;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0;
}
.worldcup-opening-date {
  margin: 0 0 10px;
  color: var(--text-muted);
}
.worldcup-promo-section {
  position: relative;
  z-index: 1;
  margin-bottom: var(--s-4);
}
.worldcup-promo-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.worldcup-promo-title h3 {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: 0;
}
.worldcup-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-3);
}
.worldcup-promo-shop,
.shop-worldcup-promo {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--shop-color, #16a34a) 34%, rgba(255,255,255,0.12));
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 12% 4%, color-mix(in srgb, var(--shop-color, #16a34a) 26%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.22));
  box-shadow: 0 18px 46px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.08);
}
.worldcup-promo-shop {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
}
.worldcup-promo-shop h3,
.shop-worldcup-promo h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}
.worldcup-promo-shop p,
.shop-worldcup-promo p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}
.worldcup-prize {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(250,204,21,0.24);
  border-radius: var(--r-full);
  background: rgba(250,204,21,0.12);
  color: #fef3c7;
}
.worldcup-prize span {
  min-width: 0;
}
.worldcup-promo-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  padding: var(--s-4);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--r-lg);
  color: var(--text-muted);
  text-align: center;
  background: rgba(0,0,0,0.16);
}
.worldcup-promo-empty i {
  color: #facc15;
  font-size: 30px;
}
.worldcup-live-list {
  display: grid;
  gap: var(--s-4);
  position: relative;
  z-index: 1;
  margin: var(--s-4) 0;
}
.worldcup-live-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(34,197,94,0.18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.28));
  box-shadow: 0 18px 46px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
  padding: var(--s-4);
}
.worldcup-head-actions,
.worldcup-direct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.worldcup-head-actions {
  justify-content: flex-end;
}
.worldcup-direct-actions {
  margin: 0 0 var(--s-3);
}
.worldcup-direct-actions .btn {
  width: auto;
}
.worldcup-live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.worldcup-live-top h3 {
  margin: 4px 0;
  color: #fff;
  font-size: 21px;
  letter-spacing: 0;
}
.worldcup-live-top p {
  margin: 0;
  color: var(--text-muted);
}
.worldcup-live-score {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.24);
  text-align: center;
}
.worldcup-live-score strong {
  font-size: 31px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.worldcup-live-score span {
  color: var(--text-muted);
  font-weight: 900;
}
.worldcup-live-timeline {
  display: grid;
  gap: 8px;
  margin: 0 0 var(--s-3);
}
.worldcup-live-event {
  display: grid;
  grid-template-columns: 48px 96px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  background: rgba(0,0,0,0.16);
}
.worldcup-live-event span,
.worldcup-live-event strong {
  color: #fff;
  font-size: 12px;
}
.worldcup-live-event em {
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}
.worldcup-live-event.is-goal {
  border-color: color-mix(in srgb, var(--shop-color, #16a34a) 38%, rgba(255,255,255,0.1));
  background: linear-gradient(135deg, color-mix(in srgb, var(--shop-color, #16a34a) 18%, transparent), rgba(255,255,255,0.05));
}
.worldcup-live-event.is-goal strong {
  color: #fff;
}
.worldcup-live-player {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.worldcup-native-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-md);
  background: #020617;
}
.worldcup-native-player::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2,6,23,0.78));
}
.worldcup-live-player video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  background: #020617;
  pointer-events: none;
  user-select: none;
}
.worldcup-live-player video.worldcup-native-visible {
  pointer-events: auto;
}
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-enclosure,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-panel,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-play-button,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-start-playback-button,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-timeline,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-current-time-display,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-time-remaining-display,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-mute-button,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-volume-slider,
.worldcup-live-player video:not(.worldcup-native-visible)::-webkit-media-controls-fullscreen-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.worldcup-live-player video.worldcup-standby-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.worldcup-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(2,6,23,0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
}
.worldcup-live-badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239,68,68,0.18);
}
.worldcup-live-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.worldcup-live-controls button {
  min-width: 40px;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(2,6,23,0.74);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.worldcup-live-controls i {
  font-size: 18px;
  line-height: 1;
}
.worldcup-native-player.worldcup-ui-hidden::after,
.worldcup-native-player.worldcup-ui-hidden .worldcup-live-badge,
.worldcup-native-player.worldcup-ui-hidden .worldcup-live-controls {
  opacity: 0;
  pointer-events: none;
}
.worldcup-player-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.worldcup-player-modes button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.worldcup-player-modes button.active {
  border-color: color-mix(in srgb, var(--shop-color, #16a34a) 58%, rgba(255,255,255,0.22));
  background: linear-gradient(135deg, color-mix(in srgb, var(--shop-color, #16a34a) 36%, rgba(255,255,255,0.06)), rgba(255,255,255,0.08));
  color: #fff;
}
.worldcup-player-modes i {
  font-size: 17px;
}
@media (max-width: 520px) {
  .worldcup-live-badge {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 10px;
  }
  .worldcup-live-controls {
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }
  .worldcup-live-controls button {
    min-width: 36px;
    min-height: 36px;
    padding: 7px 9px;
  }
  .worldcup-live-controls span {
    display: none;
  }
  .worldcup-player-modes {
    grid-template-columns: 1fr;
  }
  .worldcup-player-modes button {
    justify-content: flex-start;
  }
}
.worldcup-live-streams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.worldcup-live-streams button,
.worldcup-live-streams .worldcup-cast-button {
  min-width: 0;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--shop-color, #16a34a) 42%, rgba(255,255,255,0.12));
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--shop-color, #16a34a) 34%, transparent), rgba(255,255,255,0.05));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.worldcup-live-streams .worldcup-cast-button {
  background:
    linear-gradient(135deg, rgba(15,23,42,0.92), color-mix(in srgb, var(--shop-color, #16a34a) 24%, rgba(255,255,255,0.06)));
  border-style: dashed;
}
.worldcup-cast-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
}
.worldcup-cast-icon-wrap i {
  font-size: 20px;
  line-height: 1;
}
.worldcup-cast-launcher {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  --connected-color: #fff;
  --disconnected-color: #fff;
  opacity: 0.01;
}
.worldcup-live-streams small {
  color: color-mix(in srgb, #fff 64%, transparent);
  font-weight: 750;
}
.worldcup-live-status,
.worldcup-live-empty {
  color: var(--text-muted);
  font-size: 13px;
}
.shop-worldcup-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: var(--s-4);
  margin: var(--s-4) 0;
  padding: var(--s-4);
}
.shop-worldcup-promo-copy {
  display: grid;
  align-content: center;
  gap: var(--s-2);
}
.shop-worldcup-prediction {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.18);
}
.shop-worldcup-prediction label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.shop-worldcup-prediction input[type="text"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
  outline: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(0,0,0,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.16);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.shop-worldcup-prediction input[type="text"]::placeholder {
  color: color-mix(in srgb, var(--text-muted), transparent 18%);
  font-weight: 650;
}
.shop-worldcup-prediction input[type="text"]:focus {
  border-color: color-mix(in srgb, var(--shop-color, var(--primary)), white 18%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--shop-color, var(--primary)), transparent 72%),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 14px 28px rgba(0,0,0,0.2);
}
.worldcup-score-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.worldcup-score-team {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.worldcup-score-team-name {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.worldcup-score-control {
  display: grid;
  grid-template-columns: 42px minmax(48px, 1fr) 42px;
  align-items: center;
  min-height: 52px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(0,0,0,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.worldcup-score-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--shop-color, var(--primary)), rgba(255,255,255,0.16));
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.worldcup-score-btn:active {
  transform: scale(0.94);
}
.worldcup-score-value {
  text-align: center;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.worldcup-score-separator {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  opacity: .8;
}
.worldcup-calendar {
  position: relative;
  z-index: 1;
  display: none;
  margin-top: var(--s-4);
}
.worldcup-calendar.open {
  display: grid;
  gap: var(--s-3);
}
.worldcup-day {
  padding: var(--s-4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.18);
}
.worldcup-day h3 {
  margin: 0 0 var(--s-3);
  font-size: 15px;
  text-transform: capitalize;
}
.worldcup-calendar-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(120px, 0.7fr);
  gap: var(--s-3);
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.worldcup-calendar-row,
.worldcup-calendar-link {
  color: inherit;
  text-decoration: none;
}
a.worldcup-calendar-row,
a.worldcup-calendar-link {
  border-radius: var(--r-md);
  padding-left: var(--s-2);
  padding-right: var(--s-2);
  transition: background 0.18s ease, transform 0.18s ease;
}
a.worldcup-calendar-row:hover,
a.worldcup-calendar-link:hover {
  background: rgba(34, 197, 94, 0.08);
  transform: translateY(-1px);
}
.worldcup-calendar-row:first-of-type { border-top: 0; }
.worldcup-calendar-row time,
.worldcup-calendar-row span {
  color: var(--text-muted);
  font-size: 12px;
}
.worldcup-game.pro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.82fr);
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(0,0,0,0.34), rgba(255,255,255,0.04)),
    radial-gradient(circle at 20% 12%, color-mix(in srgb, var(--kit-a) 22%, transparent), transparent 34%),
    radial-gradient(circle at 84% 28%, color-mix(in srgb, var(--kit-b) 18%, transparent), transparent 30%);
}
.worldcup-player-select {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: var(--s-2);
}
.worldcup-player-select button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1px 8px;
  align-items: center;
  min-height: 56px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  text-align: left;
}
.worldcup-player-select button.active {
  border-color: var(--kit-c);
  background: color-mix(in srgb, var(--kit-a) 24%, rgba(0,0,0,0.28));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kit-c) 16%, transparent);
}
.player-mini {
  grid-row: 1 / 3;
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 8px 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--mini-a), var(--mini-b));
  font-weight: 900;
  box-shadow: inset 0 -10px 18px rgba(0,0,0,0.22);
}
.worldcup-player-select strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.worldcup-player-select em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
}
.penalty-sim {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 50% 14%, rgba(255,255,255,0.26), transparent 24%),
    linear-gradient(180deg, #0b1224 0 27%, #14532d 28% 100%);
  perspective: 900px;
}
.stadium-depth {
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.16), transparent 48%),
    linear-gradient(180deg, rgba(15,23,42,0.7), rgba(15,23,42,0));
}
.crowd {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 18px;
  border-radius: var(--r-full);
  background: repeating-linear-gradient(90deg, #ef4444 0 8px, #facc15 8px 14px, #38bdf8 14px 20px, #f8fafc 20px 26px);
  opacity: 0.5;
}
.crowd.c1 { top: 22px; }
.crowd.c2 { top: 48px; left: 10%; right: 10%; opacity: 0.36; }
.crowd.c3 { top: 74px; left: 18%; right: 18%; opacity: 0.24; }
.penalty-goal {
  position: absolute;
  left: 50%;
  top: 92px;
  width: min(76%, 560px);
  height: 178px;
  transform: translateX(-50%);
  border: 5px solid rgba(255,255,255,0.88);
  border-bottom-width: 3px;
  border-radius: 6px 6px 14px 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.12) 1px, transparent 1px),
    rgba(255,255,255,0.03);
  background-size: 34px 34px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.32);
}
.net-lines {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0 48%, rgba(255,255,255,0.12) 49%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,0.13) 31px 33px),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255,255,255,0.12) 29px 31px);
}
.target-zone {
  position: absolute;
  left: var(--tx);
  top: var(--ty);
  width: 52px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transform: translate(-50%, -50%);
}
.target-zone.active {
  border-color: var(--kit-c);
  background: color-mix(in srgb, var(--kit-c) 26%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--kit-c) 12%, transparent), inset 0 0 16px rgba(255,255,255,0.2);
}
.keeper-pro,
.keeper-pro span,
.striker-pro span {
  position: absolute;
  display: block;
}
.keeper-pro {
  left: 50%;
  top: 78px;
  width: 92px;
  height: 108px;
  transform: translateX(-50%);
  transform-origin: 50% 80%;
  transition: transform 280ms ease;
}
.keeper-head {
  left: 36px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1c27d;
  box-shadow: inset -5px -3px 0 rgba(0,0,0,0.14);
}
.keeper-body {
  left: 28px;
  top: 22px;
  width: 38px;
  height: 48px;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(135deg, #38bdf8, #1d4ed8);
}
.keeper-arm {
  top: 30px;
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background: #93c5fd;
}
.keeper-arm.a1 { left: 0; transform: rotate(-22deg); }
.keeper-arm.a2 { right: 0; transform: rotate(22deg); }
.keeper-leg {
  top: 68px;
  width: 13px;
  height: 38px;
  border-radius: 999px;
  background: #1e3a8a;
}
.keeper-leg.l1 { left: 32px; transform: rotate(8deg); }
.keeper-leg.l2 { right: 30px; transform: rotate(-8deg); }
.striker-pro {
  position: absolute;
  left: 23%;
  bottom: 44px;
  width: 116px;
  height: 170px;
  transform-origin: 60% 92%;
}
.striker-pro .player-shadow {
  left: 9px;
  bottom: -8px;
  width: 94px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.34);
  filter: blur(3px);
}
.striker-pro .head {
  left: 45px;
  top: 10px;
  width: 28px;
  height: 30px;
  border-radius: 50%;
  background: #e7b982;
  box-shadow: inset -6px -4px 0 rgba(0,0,0,0.14);
}
.striker-pro .torso {
  left: 35px;
  top: 40px;
  width: 50px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px 16px 10px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--kit-a), var(--kit-b));
  box-shadow: inset 0 -18px 24px rgba(0,0,0,0.18);
}
.striker-pro .torso b { font-size: 18px; }
.striker-pro .arm {
  top: 48px;
  width: 12px;
  height: 52px;
  border-radius: 999px;
  background: #e7b982;
}
.striker-pro .arm.left { left: 28px; transform: rotate(24deg); }
.striker-pro .arm.right { right: 26px; transform: rotate(-32deg); }
.striker-pro .leg {
  top: 100px;
  width: 14px;
  height: 70px;
  border-radius: 999px;
  background: #111827;
}
.striker-pro .leg.back { left: 44px; transform: rotate(10deg); }
.striker-pro .leg.front { left: 66px; transform: rotate(-16deg); transform-origin: top; }
.striker-pro .nameplate {
  left: 50%;
  bottom: -30px;
  max-width: 150px;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,0.46);
  color: #fff;
  transform: translateX(-50%);
  font-size: 11px;
  white-space: nowrap;
}
.ball-pro {
  position: absolute;
  left: 44%;
  bottom: 58px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #111827 0 20%, #fff 22% 54%, #111827 56% 64%, #fff 66%);
  box-shadow: 0 10px 16px rgba(0,0,0,0.32);
  z-index: 5;
}
.worldcup-game.pro[class*="shot-"] .ball-pro {
  animation: proShot 1.05s cubic-bezier(0.2, 0.8, 0.16, 1) forwards;
}
.worldcup-game.pro[class*="shot-"] .striker-pro {
  animation: strikerKick 0.72s ease-out;
}
.worldcup-game.pro.keeper-top-left .keeper-pro,
.worldcup-game.pro.keeper-low-left .keeper-pro { animation: keeperLeft 0.78s ease-out; }
.worldcup-game.pro.keeper-top-right .keeper-pro,
.worldcup-game.pro.keeper-low-right .keeper-pro { animation: keeperRight 0.78s ease-out; }
.worldcup-game.pro.keeper-top-center .keeper-pro,
.worldcup-game.pro.keeper-low-center .keeper-pro { animation: keeperCenter 0.78s ease-out; }
.worldcup-game-actions {
  display: grid;
  align-content: start;
  gap: var(--s-3);
}
.worldcup-game-actions span { color: var(--text-muted); }
.penalty-score {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}
.penalty-score span {
  display: grid;
  place-items: center;
  min-height: 66px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.18);
}
.penalty-score strong {
  color: var(--text);
  font-size: 25px;
  line-height: 1;
}
.penalty-score em {
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}
.target-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}
.target-panel button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.16);
  color: var(--text-muted);
  font-size: 12px;
}
.target-panel button.active {
  color: #fff;
  border-color: var(--kit-c);
  background: color-mix(in srgb, var(--kit-a) 34%, rgba(0,0,0,0.18));
}
.penalty-message {
  min-height: 44px;
  color: var(--text);
  padding: var(--s-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.18);
}
.penalty-kick { min-height: 44px; }
@keyframes cupPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes proShot {
  0% { left: 44%; bottom: 58px; transform: scale(1) rotate(0deg); }
  68% { left: var(--shot-x); bottom: calc(430px - var(--shot-y)); transform: scale(0.66) rotate(520deg); }
  100% { left: var(--shot-x); bottom: calc(430px - var(--shot-y)); transform: scale(0.46) rotate(760deg); }
}
@keyframes strikerKick {
  0% { transform: rotate(0); }
  42% { transform: rotate(-7deg) translateX(-4px); }
  100% { transform: rotate(2deg); }
}
@keyframes keeperLeft {
  45% { transform: translateX(-50%) translate(-92px, -20px) rotate(-28deg); }
  100% { transform: translateX(-50%); }
}
@keyframes keeperRight {
  45% { transform: translateX(-50%) translate(92px, -20px) rotate(28deg); }
  100% { transform: translateX(-50%); }
}
@keyframes keeperCenter {
  45% { transform: translateX(-50%) translateY(-26px) scale(1.08); }
  100% { transform: translateX(-50%); }
}
.worldcup-game.pro {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
  padding: clamp(10px, 2.2vw, 18px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 12, 22, 0.92), rgba(2, 35, 18, 0.88)),
    radial-gradient(circle at 28% 10%, color-mix(in srgb, var(--kit-c) 18%, transparent), transparent 28%),
    radial-gradient(circle at 82% 4%, color-mix(in srgb, var(--kit-a) 24%, transparent), transparent 30%);
}
.worldcup-player-select {
  overflow: hidden;
  margin: -2px -2px 0;
}
.worldcup-player-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(182px, 220px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.worldcup-player-select button {
  scroll-snap-align: start;
  position: relative;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  min-height: 70px;
  padding: 9px 10px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--mini-a) 16%, rgba(255,255,255,0.06)), rgba(0,0,0,0.32)),
    linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 24px rgba(0,0,0,0.22);
}
.worldcup-player-select button.active {
  border-color: color-mix(in srgb, var(--mini-c) 86%, white);
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--mini-c) 18%, transparent), transparent 40%),
    linear-gradient(135deg, color-mix(in srgb, var(--mini-a) 30%, rgba(0,0,0,0.28)), color-mix(in srgb, var(--mini-b) 22%, rgba(0,0,0,0.32)));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mini-c) 56%, transparent), 0 18px 42px rgba(0,0,0,0.3);
}
.player-photo {
  position: relative;
  width: 48px;
  height: 56px;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.34));
}
.player-photo .photo-head {
  position: absolute;
  left: 15px;
  top: 3px;
  width: 20px;
  height: 22px;
  border-radius: 48% 48% 46% 46%;
  background: radial-gradient(circle at 34% 32%, #ffe0b4 0 10%, var(--mini-skin) 36%, color-mix(in srgb, var(--mini-skin) 72%, #5a2e1a) 100%);
}
.player-photo .photo-head::before {
  content: '';
  position: absolute;
  inset: -3px 2px 12px;
  border-radius: 50% 50% 35% 35%;
  background: var(--mini-hair);
}
.player-photo .photo-body {
  position: absolute;
  left: 7px;
  bottom: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 15px 15px 9px 9px;
  background:
    linear-gradient(90deg, transparent 0 41%, rgba(255,255,255,0.45) 42% 45%, transparent 46%),
    linear-gradient(135deg, var(--mini-a), var(--mini-b));
  box-shadow: inset 0 -15px 24px rgba(0,0,0,0.2);
}
.player-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.player-card-copy strong {
  font-size: 13px;
}
.player-card-copy em {
  font-size: 11px;
}
.player-rating {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06121f;
  background: linear-gradient(135deg, #fef3c7, var(--mini-c));
  font-weight: 900;
  font-size: 12px;
}
.penalty-sim {
  min-height: clamp(430px, 68vw, 620px);
  touch-action: none;
  isolation: isolate;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 7%, rgba(255,255,255,0.42), transparent 17%),
    linear-gradient(180deg, #050914 0 19%, #0e1a2f 20% 31%, #0e5a2d 32% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), inset 0 -80px 120px rgba(0,0,0,0.32), 0 28px 70px rgba(0,0,0,0.32);
}
.penalty-sim::after {
  content: '';
  position: absolute;
  inset: auto 8% 0;
  height: 42%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.18), transparent 54%);
  opacity: 0.28;
  z-index: 1;
}
.stadium-depth {
  height: 42%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.86), rgba(2,6,23,0.1)),
    radial-gradient(ellipse at 50% 34%, rgba(255,255,255,0.18), transparent 48%);
  z-index: 1;
}
.stadium-roof {
  position: absolute;
  left: -6%;
  right: -6%;
  top: -44px;
  height: 98px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, #050914, rgba(15,23,42,0.62));
  box-shadow: 0 24px 50px rgba(0,0,0,0.42);
}
.crowd {
  height: 26px;
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(255,255,255,0.82) 0 2px, transparent 3px) 0 0 / 16px 12px,
    linear-gradient(90deg, #ef4444, #facc15, #22c55e, #38bdf8, #f8fafc);
  filter: blur(0.2px);
}
.crowd.c1 { top: 32px; }
.crowd.c2 { top: 68px; }
.crowd.c3 { top: 104px; }
.floodlight {
  position: absolute;
  top: 30px;
  width: 34%;
  height: 130px;
  opacity: 0.28;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), transparent);
  filter: blur(12px);
  transform-origin: top;
}
.floodlight.f1 { left: 6%; transform: skewX(-18deg); }
.floodlight.f2 { right: 6%; transform: skewX(18deg); }
.pitch-perspective {
  position: absolute;
  left: 50%;
  bottom: -11%;
  width: 128%;
  height: 74%;
  transform: translateX(-50%) perspective(760px) rotateX(62deg);
  transform-origin: bottom;
  z-index: 1;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,0.32) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(21,128,61,0.92) 0 12%, rgba(22,101,52,0.92) 12% 24%);
  border: 2px solid rgba(255,255,255,0.36);
}
.pitch-perspective .box-line,
.pitch-perspective .spot-line {
  position: absolute;
  left: 50%;
  border: 2px solid rgba(255,255,255,0.48);
  transform: translateX(-50%);
}
.pitch-perspective .box-line {
  top: 6%;
  width: 58%;
  height: 33%;
}
.pitch-perspective .spot-line {
  bottom: 16%;
  width: 22%;
  height: 24%;
  border-radius: 50%;
}
.penalty-goal {
  top: 17%;
  width: min(86%, 720px);
  height: 27%;
  min-height: 138px;
  max-height: 190px;
  border-width: 6px;
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.14) 1px, transparent 1px),
    radial-gradient(ellipse at center, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
  background-size: 26px 26px;
}
.target-zone {
  width: clamp(44px, 9vw, 70px);
  height: clamp(36px, 7vw, 58px);
  border-radius: 18px;
  backdrop-filter: blur(4px);
}
.keeper-pro {
  top: 50%;
  width: 122px;
  height: 154px;
  z-index: 6;
  transform: translate(-50%, -47%) scale(0.9);
}
.keeper-shadow {
  left: 18px;
  bottom: 3px;
  width: 88px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.34);
  filter: blur(4px);
}
.keeper-head {
  left: 48px;
  top: 4px;
  width: 30px;
  height: 34px;
  background: radial-gradient(circle at 33% 28%, #ffe0b4, #c98755 58%, #8a4f32);
}
.keeper-neck {
  left: 56px;
  top: 34px;
  width: 16px;
  height: 12px;
  border-radius: 6px;
  background: #b8754d;
}
.keeper-body {
  left: 39px;
  top: 42px;
  width: 48px;
  height: 66px;
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 0 9px, transparent 10px 38px, rgba(0,0,0,0.18) 39px),
    linear-gradient(135deg, #40c4ff, #1d4ed8 72%);
  box-shadow: inset 0 -22px 30px rgba(0,0,0,0.22);
}
.keeper-arm {
  top: 54px;
  width: 54px;
  height: 14px;
  background: linear-gradient(90deg, #60a5fa, #bfdbfe);
}
.keeper-arm.a1 { left: 5px; transform: rotate(-24deg); transform-origin: right center; }
.keeper-arm.a2 { right: 5px; transform: rotate(24deg); transform-origin: left center; }
.keeper-glove {
  top: 48px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f8fafc;
  box-shadow: inset -4px -4px 0 #bae6fd;
}
.keeper-glove.g1 { left: 0; }
.keeper-glove.g2 { right: 0; }
.keeper-leg {
  top: 104px;
  width: 17px;
  height: 48px;
  background: linear-gradient(#1e3a8a, #172554);
}
.keeper-leg.l1 { left: 45px; transform: rotate(7deg); }
.keeper-leg.l2 { right: 43px; transform: rotate(-7deg); }
.keeper-boot {
  top: 146px;
  width: 26px;
  height: 10px;
  border-radius: 999px;
  background: #0f172a;
}
.keeper-boot.b1 { left: 35px; transform: rotate(-8deg); }
.keeper-boot.b2 { right: 33px; transform: rotate(8deg); }
.aim-trail {
  position: absolute;
  left: var(--aim-x, 50%);
  top: var(--aim-y, 78%);
  width: var(--aim-len, 0px);
  height: 3px;
  z-index: 12;
  transform: rotate(var(--aim-rot, -1.57rad));
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(250,204,21,0.88), transparent);
  filter: drop-shadow(0 0 8px rgba(250,204,21,0.7));
}
.penalty-sim.is-aiming .aim-trail { opacity: 1; }
.aim-trail span {
  position: absolute;
  right: -8px;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.88);
}
.striker-pro {
  left: 50%;
  bottom: 7%;
  width: 164px;
  height: 260px;
  z-index: 7;
  transform: translateX(-50%) scale(calc(var(--body-scale) * 0.94), var(--height-scale));
  filter: drop-shadow(0 18px 26px rgba(0,0,0,0.42));
}
.striker-pro .player-shadow {
  left: 18px;
  bottom: -7px;
  width: 132px;
  height: 24px;
}
.striker-pro .head {
  left: 67px;
  top: 18px;
  width: 38px;
  height: 42px;
  background: radial-gradient(circle at 36% 28%, #ffe2b7, var(--skin) 58%, color-mix(in srgb, var(--skin) 65%, #4a2415));
}
.striker-pro .hair {
  left: 64px;
  top: 13px;
  width: 44px;
  height: 24px;
  border-radius: 50% 50% 28% 28%;
  background: var(--hair);
}
.striker-pro .neck {
  left: 78px;
  top: 55px;
  width: 17px;
  height: 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--skin) 84%, #5a2e1a);
}
.striker-pro .torso {
  left: 50px;
  top: 68px;
  width: 74px;
  height: 88px;
  border-radius: 26px 26px 16px 16px;
  background:
    linear-gradient(90deg, transparent 0 43%, rgba(255,255,255,0.55) 44% 47%, transparent 48%),
    radial-gradient(circle at 24% 20%, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(135deg, var(--kit-a), var(--kit-b));
}
.striker-pro .torso i {
  position: absolute;
  inset: 11px 12px auto;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kit-c) 76%, white);
  opacity: 0.65;
}
.striker-pro .torso b {
  font-size: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.38);
}
.striker-pro .shorts {
  left: 52px;
  top: 150px;
  width: 70px;
  height: 34px;
  border-radius: 8px 8px 16px 16px;
  background: color-mix(in srgb, var(--kit-b) 80%, #111827);
}
.striker-pro .arm,
.striker-pro .forearm,
.striker-pro .calf,
.striker-pro .sock,
.striker-pro .boot {
  border-radius: 999px;
}
.striker-pro .arm {
  top: 78px;
  width: 16px;
  height: 62px;
  background: linear-gradient(var(--skin), color-mix(in srgb, var(--skin) 72%, #4a2415));
}
.striker-pro .arm.left { left: 38px; transform: rotate(24deg); }
.striker-pro .arm.right { right: 34px; transform: rotate(-31deg); }
.striker-pro .forearm {
  top: 125px;
  width: 15px;
  height: 48px;
  background: linear-gradient(var(--skin), color-mix(in srgb, var(--skin) 72%, #4a2415));
}
.striker-pro .forearm.left { left: 25px; transform: rotate(28deg); }
.striker-pro .forearm.right { right: 23px; transform: rotate(-26deg); }
.striker-pro .calf {
  top: 178px;
  width: 19px;
  height: 70px;
  background: linear-gradient(color-mix(in srgb, var(--skin) 94%, white), var(--skin));
}
.striker-pro .calf.back { left: 56px; transform: rotate(7deg); }
.striker-pro .calf.front { left: 93px; transform: rotate(-19deg); transform-origin: top center; }
.striker-pro .sock {
  top: 227px;
  width: 19px;
  height: 38px;
  background: linear-gradient(var(--kit-c), #f8fafc);
}
.striker-pro .sock.back { left: 56px; transform: rotate(7deg); }
.striker-pro .sock.front { left: 101px; transform: rotate(-20deg); }
.striker-pro .boot {
  top: 254px;
  width: 37px;
  height: 12px;
  background: #0b1120;
}
.striker-pro .boot.back { left: 45px; transform: rotate(-4deg); }
.striker-pro .boot.front { left: 100px; transform: rotate(-18deg); }
.striker-pro .nameplate {
  bottom: -34px;
  font-size: 12px;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(8px);
}
.ball-pro {
  left: 54%;
  bottom: 12%;
  width: 30px;
  height: 30px;
  z-index: 9;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,0.95), transparent 16%),
    radial-gradient(circle at 50% 50%, #111827 0 19%, #f8fafc 20% 53%, #111827 54% 63%, #f8fafc 64%);
}
.worldcup-game.pro[class*="shot-"] .ball-pro {
  animation: fcShot 1.05s cubic-bezier(0.12, 0.78, 0.18, 1) forwards;
}
.worldcup-game.pro[class*="shot-"] .striker-pro {
  animation: fcStrike 0.78s ease-out;
}
.penalty-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 14;
  pointer-events: none;
}
.penalty-hud span {
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(2,6,23,0.62);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 1px;
}
.penalty-hud strong {
  font-size: 18px;
  color: #fff;
}
.penalty-hud em {
  color: rgba(255,255,255,0.62);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}
.power-radar {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: min(72%, 320px);
  height: 7px;
  transform: translateX(-50%);
  z-index: 14;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.power-radar span {
  display: block;
  width: var(--power);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
}
.worldcup-game-actions {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 2px;
}
.worldcup-game-actions > div:first-child {
  display: grid;
  gap: 2px;
}
.target-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.penalty-message {
  min-height: 40px;
  padding: 10px 12px;
  background: rgba(2,6,23,0.42);
}
@keyframes fcShot {
  0% { left: 54%; bottom: 12%; transform: scale(1) rotate(0deg); filter: blur(0); }
  42% { transform: scale(0.82) rotate(540deg); filter: blur(1px); }
  76% { left: var(--shot-x); top: var(--shot-top); bottom: auto; transform: scale(calc(0.62 * var(--shot-power))) rotate(950deg); filter: blur(0.4px); }
  100% { left: var(--shot-x); top: var(--shot-top); bottom: auto; transform: scale(calc(0.5 * var(--shot-power))) rotate(1180deg); filter: blur(0); }
}
@keyframes fcStrike {
  0% { transform: translateX(-50%) scale(calc(var(--body-scale) * 0.94), var(--height-scale)) rotate(0deg); }
  38% { transform: translateX(-50%) scale(calc(var(--body-scale) * 0.94), var(--height-scale)) rotate(-7deg) translateX(-8px); }
  100% { transform: translateX(-50%) scale(calc(var(--body-scale) * 0.94), var(--height-scale)) rotate(2deg); }
}
.worldcup-game.pro.keeper-top-left .keeper-pro,
.worldcup-game.pro.keeper-low-left .keeper-pro { animation: fcKeeperLeft 0.88s ease-out; }
.worldcup-game.pro.keeper-top-right .keeper-pro,
.worldcup-game.pro.keeper-low-right .keeper-pro { animation: fcKeeperRight 0.88s ease-out; }
.worldcup-game.pro.keeper-top-center .keeper-pro,
.worldcup-game.pro.keeper-low-center .keeper-pro { animation: fcKeeperCenter 0.88s ease-out; }
@keyframes fcKeeperLeft {
  44% { transform: translate(-50%, -47%) translate(-120px, -24px) rotate(-38deg) scale(1.02); }
  100% { transform: translate(-50%, -47%) scale(0.9); }
}
@keyframes fcKeeperRight {
  44% { transform: translate(-50%, -47%) translate(120px, -24px) rotate(38deg) scale(1.02); }
  100% { transform: translate(-50%, -47%) scale(0.9); }
}
@keyframes fcKeeperCenter {
  44% { transform: translate(-50%, -57%) scale(1.04); }
  100% { transform: translate(-50%, -47%) scale(0.9); }
}
@media (min-width: 900px) {
  .worldcup-game.pro {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }
  .worldcup-player-select {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .worldcup-game.pro {
    grid-template-columns: 1fr;
    padding: 10px;
    margin-inline: -6px;
  }
  .worldcup-player-track {
    grid-auto-columns: minmax(160px, 78vw);
  }
  .penalty-sim {
    min-height: 510px;
    border-radius: 18px;
  }
  .penalty-goal {
    width: 92%;
    top: 16%;
    min-height: 132px;
  }
  .striker-pro {
    bottom: 8%;
    transform: translateX(-50%) scale(calc(var(--body-scale) * 0.8), calc(var(--height-scale) * 0.84));
  }
  .worldcup-game.pro[class*="shot-"] .striker-pro {
    animation-name: fcStrikeMobile;
  }
  .keeper-pro {
    transform: translate(-50%, -47%) scale(0.78);
  }
  .target-panel {
    display: none;
  }
  .penalty-kick {
    width: 100%;
  }
}
@keyframes fcStrikeMobile {
  0% { transform: translateX(-50%) scale(calc(var(--body-scale) * 0.8), calc(var(--height-scale) * 0.84)) rotate(0deg); }
  38% { transform: translateX(-50%) scale(calc(var(--body-scale) * 0.8), calc(var(--height-scale) * 0.84)) rotate(-7deg) translateX(-8px); }
  100% { transform: translateX(-50%) scale(calc(var(--body-scale) * 0.8), calc(var(--height-scale) * 0.84)) rotate(2deg); }
}
.wc26-game {
  grid-template-columns: minmax(0, 1fr);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 44, 26, 0.92)),
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--kit-c) 20%, transparent), transparent 30%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--kit-a) 20%, transparent), transparent 30%);
}
.wc26-game .worldcup-player-select {
  overflow: hidden;
  touch-action: pan-x;
}
.wc26-game .worldcup-player-track {
  display: flex;
  grid-auto-flow: initial;
  grid-auto-columns: initial;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 6px;
  scroll-snap-type: x mandatory;
  padding: 3px 5px 12px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}
.wc26-game .worldcup-player-track::-webkit-scrollbar {
  height: 6px;
}
.wc26-game .worldcup-player-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}
.wc26-game .worldcup-player-select button {
  flex: 0 0 clamp(178px, 72vw, 240px);
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}
.wc26-game .worldcup-player-select button * {
  pointer-events: none;
}
.wc26-stage {
  position: relative;
  min-height: clamp(540px, 62vw, 720px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 80px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.wc26-canvas {
  display: block;
  width: 100%;
  height: clamp(540px, 62vw, 720px);
  touch-action: none;
  cursor: crosshair;
}
.wc26-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.wc26-hud span,
.wc26-player-chip {
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15,23,42,0.78), rgba(2,6,23,0.58));
  box-shadow: 0 16px 36px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
}
.wc26-hud span {
  min-width: 86px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}
.wc26-hud strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.wc26-hud em {
  color: rgba(255,255,255,0.62);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}
.wc26-player-chip {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 5;
  min-width: 210px;
  padding: 10px 14px;
  transform: translateX(-50%);
  display: grid;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}
.wc26-player-chip strong {
  color: #fff;
  font-size: 14px;
}
.wc26-player-chip span {
  color: rgba(255,255,255,0.66);
  font-size: 11px;
}
.wc26-tip {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 4;
  max-width: min(86%, 420px);
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(2,6,23,0.62);
  color: rgba(255,255,255,0.84);
  text-align: center;
  font-size: 13px;
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.wc26-power {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  width: min(66%, 360px);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  transform: translateX(-50%);
  pointer-events: none;
}
.wc26-power span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
}
.wc26-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.36) 100%);
  mix-blend-mode: multiply;
}
.wc26-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wc26-controls button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(2,6,23,0.42);
  color: rgba(255,255,255,0.76);
}
.wc26-controls button.active {
  border-color: var(--kit-c);
  color: #fff;
  background: color-mix(in srgb, var(--kit-a) 32%, rgba(2,6,23,0.42));
}
@media (max-width: 768px) {
  .wc26-game {
    margin-inline: -10px;
    padding: 8px;
    border-radius: 18px;
  }
  .wc26-stage {
    min-height: 560px;
    border-radius: 18px;
  }
  .wc26-canvas {
    height: 560px;
  }
  .wc26-player-chip {
    top: 76px;
    min-width: 180px;
    padding: 8px 10px;
  }
  .wc26-hud {
    top: 10px;
  }
  .wc26-hud span {
    min-width: 74px;
    padding: 8px 10px;
  }
  .wc26-controls {
    display: none;
  }
  .wc26-tip {
    bottom: 38px;
    font-size: 12px;
  }
  .wc26-power {
    bottom: 18px;
    width: 74%;
  }
}
.global-page.global-light .global-worldcup {
  background:
    linear-gradient(135deg, rgba(187, 247, 208, 0.72), rgba(255, 255, 255, 0.94)),
    var(--bg-card);
  border-color: rgba(22, 163, 74, 0.24);
}
.global-page.global-light .worldcup-event {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(22, 163, 74, 0.16);
}
.worldcup-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--s-2);
  align-items: center;
  margin-bottom: var(--s-2);
}
.worldcup-match strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.worldcup-match strong:last-child { text-align: right; }
.worldcup-score {
  min-width: 42px;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.global-page.global-light .worldcup-score {
  color: #166534;
  background: rgba(22, 163, 74, 0.14);
}
.worldcup-meta,
.worldcup-broadcast {
  color: var(--text-muted);
  font-size: 12px;
}
.worldcup-broadcast { margin-top: var(--s-2); }
.global-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
}
.global-product-card {
  border-top: 3px solid var(--shop-color, var(--primary));
}
.global-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.global-store-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.global-store-identity > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-store-link {
  color: var(--shop-color, var(--primary));
}
.global-whatsapp-btn {
  color: #fff;
  background: #16a34a;
  border-color: #16a34a;
}
.global-whatsapp-btn:hover {
  background: #15803d;
}
.global-combo-items {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.global-product-card .product-actions {
  flex-wrap: wrap;
}
.global-product-card .product-actions .btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-empty {
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .global-topbar-inner {
    height: 56px;
    padding: 0 var(--s-4);
  }
  .global-main {
    padding: var(--s-6) var(--s-4) var(--s-10);
  }
  .global-toolbar {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .global-count {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .global-market-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .global-market-controls select {
    width: 100%;
  }
  .tmdb-country-inline {
    width: 100%;
  }
  .tmdb-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .tmdb-grid {
    grid-template-columns: 1fr;
  }
  .tmdb-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .tmdb-poster {
    width: 72px;
  }
  .worldcup-head {
    flex-direction: column;
    align-items: stretch;
  }
  .worldcup-source {
    text-align: center;
  }
  .worldcup-events {
    grid-template-columns: 1fr;
  }
  .worldcup-live-card {
    padding: var(--s-3);
  }
  .worldcup-live-top {
    align-items: stretch;
    flex-direction: column;
  }
  .worldcup-live-score {
    width: 100%;
    justify-content: center;
  }
  .worldcup-live-event {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .worldcup-live-event strong {
    grid-column: 2;
  }
  .worldcup-live-event em {
    grid-column: 1 / -1;
  }
  .worldcup-live-streams {
    grid-template-columns: 1fr;
  }
  .worldcup-stadium,
  .worldcup-game {
    grid-template-columns: 1fr;
  }
  .shop-worldcup-promo {
    grid-template-columns: 1fr;
  }
  .worldcup-score-pick {
    gap: 6px;
  }
  .worldcup-score-control {
    grid-template-columns: 34px minmax(34px, 1fr) 34px;
    min-height: 46px;
    padding: 4px;
    border-radius: 14px;
  }
  .worldcup-score-btn {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }
  .worldcup-score-value {
    font-size: 24px;
  }
  .worldcup-score-separator {
    font-size: 22px;
  }
  .worldcup-promo-title {
    display: block;
  }
  .worldcup-calendar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .global-mode-tabs {
    width: 100%;
  }
  .global-mode-tabs button {
    flex: 1 0 auto;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   TEMÁTICAS PREMIUM — Mosaico Store
   Rediseño completo por temporada: fondo, botones, bordes, tarjetas, hero,
   inputs, badges, nav, carrito y partículas. Cada tema tiene carácter propio.
   Todo scopeado a [data-season-theme="..."]. Reemplaza el recoloreo genérico.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Motor compartido: partículas y realces que consumen tokens por tema ── */
[data-season-theme]:not([data-season-theme="none"]) .btn-primary{
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-fast) var(--ease), filter var(--t-base) var(--ease) !important;
}
[data-season-theme]:not([data-season-theme="none"]) .btn-primary:hover{ transform: translateY(-1px); filter: brightness(1.05); }
[data-season-theme]:not([data-season-theme="none"]) .btn-primary:active{ transform: translateY(0); }
[data-season-theme]:not([data-season-theme="none"]) .product-card{ position: relative; overflow: hidden; }
[data-season-theme]:not([data-season-theme="none"]) .product-card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:2px; opacity:.6;
  background: var(--sx-accentbar);
}
[data-season-theme]:not([data-season-theme="none"]) .hero-text h1{
  background-image: var(--sx-herotext) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
}
[data-season-theme]:not([data-season-theme="none"]) .cart-floating{
  background: var(--sx-cta) !important;
  box-shadow: 0 8px 24px var(--sx-cta-shadow), 0 0 0 2px var(--sx-ring) !important;
  color:#fff !important;
}
[data-season-theme]:not([data-season-theme="none"]) .topbar{
  background: var(--sx-topbar) !important;
  border-bottom: 1px solid var(--sx-ring) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.45) !important; backdrop-filter: blur(8px);
}
[data-season-theme]:not([data-season-theme="none"]) input:focus,
[data-season-theme]:not([data-season-theme="none"]) select:focus,
[data-season-theme]:not([data-season-theme="none"]) textarea:focus{
  border-color: var(--sx-ring) !important;
  box-shadow: 0 0 0 3px var(--sx-ring-soft) !important;
}
[data-season-theme]:not([data-season-theme="none"]) .mobile-bottom-nav{
  background: var(--sx-nav) !important; border-top: 1px solid var(--sx-ring) !important;
}
[data-season-theme]:not([data-season-theme="none"]) .mobile-bottom-nav .active,
[data-season-theme]:not([data-season-theme="none"]) .mobile-bottom-nav [class*="active"]{ color: var(--sx-accent) !important; }

/* Capa de partículas (nieve/corazones/destellos) */
[data-season-theme]:not([data-season-theme="none"])::before{
  content:""; position:fixed; inset:-10% 0 0 0; pointer-events:none; z-index:3;
  background-image: var(--sx-particles); background-size: 100% 120vh;
  animation: sxFall var(--sx-fall,16s) linear infinite; opacity: var(--sx-particle-opacity,.5);
}
@keyframes sxFall{
  0%{ background-position:0 -20vh,0 -10vh,0 0,0 -15vh,0 -6vh,0 -9vh,0 -13vh,0 -18vh; }
  100%{ background-position:0 100vh,6% 112vh,-4% 120vh,3% 106vh,-6% 116vh,5% 110vh,-3% 108vh,4% 118vh; }
}
[data-season-theme]:not([data-season-theme="none"])::after{
  background: var(--sx-glow) !important; opacity:1 !important; mix-blend-mode:normal !important;
}
@media (prefers-reduced-motion: reduce){ [data-season-theme]:not([data-season-theme="none"])::before{ animation:none; } }

/* Realce del CTA primario y secundario (usa tokens del tema) */
[data-season-theme]:not([data-season-theme="none"]) .btn-primary{
  background: var(--sx-cta) !important; border:1px solid var(--sx-ring) !important; color:#fff !important;
  box-shadow: 0 6px 18px var(--sx-cta-shadow), inset 0 1px 0 rgba(255,255,255,.20) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.35);
}
[data-season-theme]:not([data-season-theme="none"]) .btn-primary:hover{
  box-shadow: 0 8px 24px var(--sx-cta-shadow), 0 0 0 1px var(--sx-ring), inset 0 1px 0 rgba(255,255,255,.28) !important;
}
[data-season-theme]:not([data-season-theme="none"]) .btn-secondary{
  background: var(--sx-secondary) !important; border:1px solid var(--sx-ring-soft2) !important; color: var(--sx-secondary-text) !important;
}
[data-season-theme]:not([data-season-theme="none"]) .product-card{
  background: var(--sx-card) !important; border:1px solid var(--sx-card-border) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.42) !important;
}
[data-season-theme]:not([data-season-theme="none"]) .product-card:hover{
  border-color: var(--sx-ring) !important;
  box-shadow: 0 12px 30px var(--sx-cta-shadow), 0 0 0 1px var(--sx-ring-soft) !important;
}
[data-season-theme]:not([data-season-theme="none"]) .hero-card{
  border:1px solid var(--sx-ring) !important;
  box-shadow: 0 10px 34px var(--sx-cta-shadow), inset 0 1px 0 var(--sx-ring-soft) !important;
  background: var(--sx-hero) !important;
}

/* fondo del body por tema */
[data-season-theme]:not([data-season-theme="none"]){ background-image: var(--sx-bg) !important; background-attachment: fixed !important; }


/* ═══════════════════════ NAVIDAD ═══════════════════════ */
[data-season-theme="christmas"]{
  --bg:#06120d; --bg-elevated:#0a2017; --bg-card:#0c2419; --bg-hover:#123122; --bg-input:#071a12;
  --border:rgba(233,196,106,.16); --border-strong:rgba(233,196,106,.44);
  --primary:#c81e2b; --primary-2:#9d0208; --accent:#e9c46a; --highlight:#e9c46a;
  --text:#f7efe0; --text-muted:#c9b892; --text-dim:#97865f; --success:#2f9e6f;
  --sx-accent:#e9c46a; --sx-ring:rgba(233,196,106,.55); --sx-ring-soft:rgba(233,196,106,.22); --sx-ring-soft2:rgba(233,196,106,.34);
  --sx-cta:linear-gradient(135deg,#e5383b 0%,#b00611 52%,#7d0206 100%);
  --sx-cta-shadow:rgba(157,2,8,.42);
  --sx-secondary:linear-gradient(180deg,#103022,#0b2318); --sx-secondary-text:#f6e7c1;
  --sx-card:linear-gradient(180deg,rgba(14,38,28,.92),rgba(9,26,19,.92)); --sx-card-border:rgba(233,196,106,.18);
  --sx-accentbar:linear-gradient(90deg,transparent,#e9c46a 30%,#c81e2b 50%,#e9c46a 70%,transparent);
  --sx-herotext:linear-gradient(90deg,#f6e7c1,#e9c46a 55%,#f0d68a);
  --sx-hero:radial-gradient(120% 100% at 100% 0%,rgba(200,30,43,.14),transparent 55%),linear-gradient(180deg,rgba(14,40,29,.9),rgba(9,26,19,.9));
  --sx-topbar:linear-gradient(180deg,rgba(10,32,23,.96),rgba(7,22,15,.96));
  --sx-nav:linear-gradient(180deg,rgba(9,28,20,.97),rgba(6,18,13,.99));
  --sx-bg:radial-gradient(130% 80% at 50% -10%,rgba(200,30,43,.10),transparent 55%),radial-gradient(100% 70% at 50% 120%,rgba(11,61,46,.45),transparent 60%),linear-gradient(180deg,#06120d,#05100b);
  --sx-glow:radial-gradient(120% 75% at 50% -8%,rgba(233,196,106,.10),transparent 58%),radial-gradient(90% 55% at 50% 118%,rgba(11,61,46,.55),transparent 60%);
  --sx-particles:radial-gradient(2.2px 2.2px at 12% 20%,rgba(255,255,255,.85),transparent),radial-gradient(1.6px 1.6px at 28% 65%,rgba(255,255,255,.6),transparent),radial-gradient(2px 2px at 45% 35%,rgba(255,255,255,.75),transparent),radial-gradient(1.4px 1.4px at 62% 80%,rgba(255,255,255,.55),transparent),radial-gradient(2.4px 2.4px at 78% 25%,rgba(255,255,255,.8),transparent),radial-gradient(1.6px 1.6px at 90% 60%,rgba(255,255,255,.55),transparent),radial-gradient(1.8px 1.8px at 8% 85%,rgba(255,255,255,.65),transparent),radial-gradient(1.5px 1.5px at 55% 12%,rgba(255,255,255,.6),transparent);
  --sx-fall:14s; --sx-particle-opacity:.55;
}

/* ═══════════════════════ SAN VALENTÍN ═══════════════════════ */
[data-season-theme="valentine"]{
  --bg:#160610; --bg-elevated:#280b1a; --bg-card:#2c0e1f; --bg-hover:#3a1329; --bg-input:#1e0815;
  --border:rgba(244,114,182,.20); --border-strong:rgba(251,113,133,.5);
  --primary:#e11d63; --primary-2:#be123c; --accent:#fb7185; --highlight:#f9a8d4;
  --text:#fce7f0; --text-muted:#e6b6cd; --text-dim:#b98aa2; --success:#34d399;
  --sx-accent:#fb7185; --sx-ring:rgba(251,113,133,.55); --sx-ring-soft:rgba(251,113,133,.22); --sx-ring-soft2:rgba(251,113,133,.34);
  --sx-cta:linear-gradient(135deg,#fb7185 0%,#e11d63 55%,#9d174d 100%);
  --sx-cta-shadow:rgba(190,18,60,.45);
  --sx-secondary:linear-gradient(180deg,#33122250,#2a0e1c); --sx-secondary-text:#fbcfe1;
  --sx-card:linear-gradient(180deg,rgba(44,14,31,.92),rgba(30,10,22,.92)); --sx-card-border:rgba(251,113,133,.20);
  --sx-accentbar:linear-gradient(90deg,transparent,#f9a8d4 30%,#e11d63 50%,#f9a8d4 70%,transparent);
  --sx-herotext:linear-gradient(90deg,#ffe4ef,#fb7185 55%,#f9a8d4);
  --sx-hero:radial-gradient(120% 100% at 0% 0%,rgba(225,29,99,.16),transparent 55%),linear-gradient(180deg,rgba(44,16,32,.9),rgba(30,10,22,.9));
  --sx-topbar:linear-gradient(180deg,rgba(40,12,26,.96),rgba(22,8,17,.96));
  --sx-nav:linear-gradient(180deg,rgba(38,12,26,.97),rgba(20,7,15,.99));
  --sx-bg:radial-gradient(130% 80% at 50% -10%,rgba(225,29,99,.12),transparent 55%),radial-gradient(100% 70% at 50% 120%,rgba(157,23,77,.4),transparent 60%),linear-gradient(180deg,#160610,#10040c);
  --sx-glow:radial-gradient(120% 75% at 50% -8%,rgba(251,113,133,.12),transparent 58%),radial-gradient(90% 55% at 50% 118%,rgba(157,23,77,.5),transparent 60%);
  /* corazones */
  --sx-particles:radial-gradient(3px 3px at 14% 22%,rgba(251,113,133,.5),transparent),radial-gradient(2px 2px at 32% 60%,rgba(249,168,212,.45),transparent),radial-gradient(2.6px 2.6px at 50% 30%,rgba(251,113,133,.42),transparent),radial-gradient(2px 2px at 68% 78%,rgba(249,168,212,.4),transparent),radial-gradient(3px 3px at 82% 26%,rgba(251,113,133,.45),transparent),radial-gradient(2px 2px at 90% 58%,rgba(249,168,212,.4),transparent);
  --sx-fall:18s; --sx-particle-opacity:.5;
}

/* ═══════════════════════ AÑO NUEVO ═══════════════════════ */
[data-season-theme="newyear"]{
  --bg:#060810; --bg-elevated:#0f1626; --bg-card:#121a2c; --bg-hover:#1c2740; --bg-input:#0a1120;
  --border:rgba(250,204,21,.18); --border-strong:rgba(125,211,252,.5);
  --primary:#eab308; --primary-2:#ca8a04; --accent:#facc15; --highlight:#7dd3fc;
  --text:#f6f3e8; --text-muted:#c7c9d4; --text-dim:#8b8fa3; --success:#34d399;
  --sx-accent:#facc15; --sx-ring:rgba(250,204,21,.5); --sx-ring-soft:rgba(250,204,21,.2); --sx-ring-soft2:rgba(125,211,252,.34);
  --sx-cta:linear-gradient(135deg,#fde68a 0%,#eab308 50%,#a16207 100%);
  --sx-cta-shadow:rgba(202,138,4,.4);
  --sx-secondary:linear-gradient(180deg,#141d31,#0e1524); --sx-secondary-text:#e7edf7;
  --sx-card:linear-gradient(180deg,rgba(18,26,44,.92),rgba(11,17,30,.92)); --sx-card-border:rgba(250,204,21,.18);
  --sx-accentbar:linear-gradient(90deg,transparent,#7dd3fc 25%,#facc15 50%,#7dd3fc 75%,transparent);
  --sx-herotext:linear-gradient(90deg,#fff7d6,#facc15 55%,#fde68a);
  --sx-hero:radial-gradient(120% 100% at 100% 0%,rgba(125,211,252,.14),transparent 55%),linear-gradient(180deg,rgba(18,26,44,.9),rgba(11,17,30,.9));
  --sx-topbar:linear-gradient(180deg,rgba(15,22,38,.96),rgba(8,12,22,.96));
  --sx-nav:linear-gradient(180deg,rgba(14,20,34,.97),rgba(7,11,20,.99));
  --sx-bg:radial-gradient(130% 80% at 50% -10%,rgba(250,204,21,.10),transparent 55%),radial-gradient(100% 70% at 50% 120%,rgba(30,58,138,.4),transparent 60%),linear-gradient(180deg,#060810,#04060c);
  --sx-glow:radial-gradient(120% 75% at 50% -8%,rgba(250,204,21,.12),transparent 58%),radial-gradient(90% 55% at 50% 118%,rgba(30,58,138,.5),transparent 60%);
  /* destellos/confeti */
  --sx-particles:radial-gradient(2px 2px at 15% 20%,rgba(250,204,21,.7),transparent),radial-gradient(2px 2px at 30% 62%,rgba(125,211,252,.6),transparent),radial-gradient(2.4px 2.4px at 48% 32%,rgba(255,255,255,.7),transparent),radial-gradient(2px 2px at 66% 76%,rgba(250,204,21,.6),transparent),radial-gradient(2.4px 2.4px at 82% 24%,rgba(125,211,252,.6),transparent),radial-gradient(2px 2px at 92% 56%,rgba(255,255,255,.6),transparent);
  --sx-fall:12s; --sx-particle-opacity:.6;
}

/* ═══════════════════════ CARNAVAL ═══════════════════════ */
[data-season-theme="carnival"]{
  --bg:#08091a; --bg-elevated:#161933; --bg-card:#15172f; --bg-hover:#22254a; --bg-input:#0f1128;
  --border:rgba(45,212,191,.22); --border-strong:rgba(250,204,21,.5);
  --primary:#8b5cf6; --primary-2:#6d28d9; --accent:#2dd4bf; --highlight:#facc15;
  --text:#f2effb; --text-muted:#c3c0da; --text-dim:#8a86a8; --success:#34d399;
  --sx-accent:#2dd4bf; --sx-ring:rgba(45,212,191,.5); --sx-ring-soft:rgba(45,212,191,.2); --sx-ring-soft2:rgba(250,204,21,.34);
  --sx-cta:linear-gradient(135deg,#a855f7 0%,#7c3aed 50%,#db2777 100%);
  --sx-cta-shadow:rgba(124,58,237,.42);
  --sx-secondary:linear-gradient(180deg,#1a1d3a,#12142b); --sx-secondary-text:#e6e3f7;
  --sx-card:linear-gradient(180deg,rgba(21,23,47,.92),rgba(13,14,30,.92)); --sx-card-border:rgba(45,212,191,.2);
  --sx-accentbar:linear-gradient(90deg,#2dd4bf,#facc15 33%,#db2777 66%,#8b5cf6);
  --sx-herotext:linear-gradient(90deg,#2dd4bf,#facc15 50%,#f472b6);
  --sx-hero:radial-gradient(120% 100% at 0% 0%,rgba(219,39,119,.16),transparent 50%),linear-gradient(180deg,rgba(21,23,47,.9),rgba(13,14,30,.9));
  --sx-topbar:linear-gradient(180deg,rgba(20,22,44,.96),rgba(10,11,26,.96));
  --sx-nav:linear-gradient(180deg,rgba(18,20,40,.97),rgba(9,10,24,.99));
  --sx-bg:radial-gradient(130% 80% at 50% -10%,rgba(139,92,246,.12),transparent 55%),radial-gradient(100% 70% at 50% 120%,rgba(45,212,191,.24),transparent 60%),linear-gradient(180deg,#08091a,#050611);
  --sx-glow:radial-gradient(120% 75% at 50% -8%,rgba(219,39,119,.12),transparent 58%),radial-gradient(90% 55% at 50% 118%,rgba(45,212,191,.4),transparent 60%);
  --sx-particles:radial-gradient(3px 3px at 14% 22%,rgba(45,212,191,.6),transparent),radial-gradient(2.4px 2.4px at 32% 60%,rgba(250,204,21,.55),transparent),radial-gradient(3px 3px at 50% 30%,rgba(219,39,119,.5),transparent),radial-gradient(2.4px 2.4px at 68% 78%,rgba(139,92,246,.5),transparent),radial-gradient(3px 3px at 82% 26%,rgba(45,212,191,.55),transparent),radial-gradient(2.4px 2.4px at 90% 58%,rgba(250,204,21,.5),transparent);
  --sx-fall:13s; --sx-particle-opacity:.6;
}

/* ═══════════════════════ PASCUA ═══════════════════════ */
[data-season-theme="easter"]{
  --bg:#0e161c; --bg-elevated:#182422; --bg-card:#1a2926; --bg-hover:#243733; --bg-input:#121f1d;
  --border:rgba(167,243,208,.22); --border-strong:rgba(249,168,212,.46);
  --primary:#34d399; --primary-2:#10b981; --accent:#a7f3d0; --highlight:#f9a8d4;
  --text:#eef7f2; --text-muted:#bcd4cb; --text-dim:#85a094; --success:#34d399;
  --sx-accent:#a7f3d0; --sx-ring:rgba(167,243,208,.5); --sx-ring-soft:rgba(167,243,208,.2); --sx-ring-soft2:rgba(249,168,212,.34);
  --sx-cta:linear-gradient(135deg,#6ee7b7 0%,#34d399 50%,#f9a8d4 120%);
  --sx-cta-shadow:rgba(16,185,129,.36);
  --sx-secondary:linear-gradient(180deg,#1c2b28,#152220); --sx-secondary-text:#daf0e6;
  --sx-card:linear-gradient(180deg,rgba(26,41,38,.92),rgba(18,31,29,.92)); --sx-card-border:rgba(167,243,208,.2);
  --sx-accentbar:linear-gradient(90deg,transparent,#f9a8d4 30%,#a7f3d0 50%,#fde68a 70%,transparent);
  --sx-herotext:linear-gradient(90deg,#eafff6,#a7f3d0 50%,#f9a8d4);
  --sx-hero:radial-gradient(120% 100% at 100% 0%,rgba(249,168,212,.14),transparent 55%),linear-gradient(180deg,rgba(26,43,40,.9),rgba(18,31,29,.9));
  --sx-topbar:linear-gradient(180deg,rgba(24,38,34,.96),rgba(14,24,22,.96));
  --sx-nav:linear-gradient(180deg,rgba(22,36,32,.97),rgba(12,22,20,.99));
  --sx-bg:radial-gradient(130% 80% at 50% -10%,rgba(167,243,208,.10),transparent 55%),radial-gradient(100% 70% at 50% 120%,rgba(249,168,212,.22),transparent 60%),linear-gradient(180deg,#0e161c,#0a1014);
  --sx-glow:radial-gradient(120% 75% at 50% -8%,rgba(167,243,208,.12),transparent 58%),radial-gradient(90% 55% at 50% 118%,rgba(249,168,212,.32),transparent 60%);
  --sx-particles:radial-gradient(2.6px 2.6px at 14% 22%,rgba(167,243,208,.55),transparent),radial-gradient(2px 2px at 32% 60%,rgba(249,168,212,.5),transparent),radial-gradient(2.6px 2.6px at 50% 30%,rgba(253,230,138,.5),transparent),radial-gradient(2px 2px at 68% 78%,rgba(167,243,208,.5),transparent),radial-gradient(2.6px 2.6px at 82% 26%,rgba(249,168,212,.5),transparent),radial-gradient(2px 2px at 90% 58%,rgba(253,230,138,.45),transparent);
  --sx-fall:17s; --sx-particle-opacity:.45;
}


/* ═══════════════════ DECORADOR: emojis, luces, esquinas, botón ═══════════════════ */
.sx-decor{ position:fixed; inset:0; pointer-events:none; z-index:4; overflow:hidden; }
.sx-decor.sx-off .sx-emoji-layer{ display:none; }

/* emojis cayendo */
.sx-emoji-layer{ position:absolute; inset:-8% 0 0 0; }
.sx-emoji{
  position:absolute; top:-6%;
  will-change: transform;
  animation-name: sxDrop, sxSway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
@keyframes sxDrop{
  0%{ transform: translateY(-8vh) rotate(0deg); }
  100%{ transform: translateY(112vh) rotate(360deg); }
}
@keyframes sxSway{
  0%,100%{ margin-left: calc(var(--sway,24px) * -1); }
  50%{ margin-left: var(--sway,24px); }
}

/* tira de luces bajo la topbar */
.sx-lights{
  position:absolute; top:56px; left:0; right:0; height:14px;
  display:flex; justify-content:space-around; align-items:center; padding:0 6px;
}
.sx-lights i{
  width:7px; height:7px; border-radius:50%; display:block;
  animation: sxTwinkle 2.2s ease-in-out infinite;
}
@keyframes sxTwinkle{ 0%,100%{ opacity:.35; transform:scale(.85);} 50%{ opacity:1; transform:scale(1.15);} }

/* adornos de esquina */
.sx-corner{ position:absolute; bottom:78px; font-size:34px; opacity:.9; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); animation: sxBob 4s ease-in-out infinite; }
.sx-corner-l{ left:12px; }
.sx-corner-r{ right:12px; animation-delay:1.2s; }
@keyframes sxBob{ 0%,100%{ transform: translateY(0) rotate(-4deg);} 50%{ transform: translateY(-6px) rotate(4deg);} }

/* botón flotante de efecto (nieve/corazones/…) */
.sx-fx-toggle{
  position:fixed; left:14px; bottom:84px; z-index:6;
  width:46px; height:46px; border-radius:50%;
  border:1px solid rgba(255,255,255,.28);
  background: rgba(20,20,24,.55); backdrop-filter: blur(8px);
  cursor:pointer; display:grid; place-items:center; font-size:22px; line-height:1;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.sx-fx-toggle:hover{ transform: translateY(-2px) scale(1.06); }
.sx-fx-toggle.on{ box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 0 2px var(--sx-ring, rgba(255,255,255,.4)); }
.sx-fx-toggle:not(.on){ opacity:.55; }
.sx-fx-toggle .sx-fx-ic{ display:block; animation: sxBob 3.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce){
  .sx-emoji, .sx-lights i, .sx-corner, .sx-fx-toggle .sx-fx-ic{ animation: none !important; }
}
@media (max-width: 520px){
  .sx-corner{ font-size:26px; bottom:74px; }
  .sx-fx-toggle{ width:42px; height:42px; font-size:20px; }
}


/* ─── Aviso de vencimiento (opt-in de notificaciones push) ─────────────── */
.push-optin{
  display:flex; align-items:center; gap:var(--s-3,12px);
  padding:var(--s-3,12px) var(--s-4,16px);
  margin-top:var(--s-2,8px);
  border-radius:var(--radius,14px);
  background: rgba(124,58,237,.08);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border:1px solid rgba(124,58,237,.30);
  border:1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.push-optin > .ph{ font-size:26px; color:var(--primary); flex:0 0 auto; }
.push-optin .push-optin-txt{ display:flex; flex-direction:column; gap:2px; flex:1 1 auto; min-width:0; }
.push-optin .push-optin-txt strong{ font-size:.95rem; color:var(--text); }
.push-optin .push-optin-txt span{ font-size:.8rem; color:var(--text-muted,#9aa0aa); line-height:1.3; }
.push-optin .btn{ flex:0 0 auto; white-space:nowrap; }
.push-optin.push-denied{
  background: rgba(245,158,11,.08);
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  border-color: rgba(245,158,11,.35);
  border-color: color-mix(in srgb, var(--warning) 40%, transparent);
}
.push-optin.push-denied > .ph{ color:var(--warning); }
@media (max-width:520px){
  .push-optin{ flex-wrap:wrap; }
  .push-optin .btn{ width:100%; justify-content:center; }
}


/* ─── Badge "Compra automática" en tarjetas de producto ─────────────── */
.auto-badge{
  display:inline-flex; align-items:center; gap:.28rem;
  margin-top:.28rem;
  font-size:.66rem; font-weight:700; line-height:1;
  padding:.24rem .5rem; border-radius:999px;
  color:#fff; text-transform:uppercase; letter-spacing:.03em;
  background:linear-gradient(90deg, var(--primary,#7c3aed), var(--brand2,#ec4899));
  white-space:nowrap;
}
.auto-badge i{ font-size:.8rem; }


/* ─── Combos: logos de plataformas superpuestos (icono del combo) ─────── */
.combo-logos{ display:inline-flex; align-items:center; flex-shrink:0; }
.combo-logos .combo-logo{
  width:46px; height:46px; border-radius:12px; object-fit:cover;
  background:#0f1115;
  border:2.5px solid var(--card, #16181f);
  box-shadow:0 2px 8px rgba(0,0,0,.35);
  margin-left:-18px;
}
.combo-logos .combo-logo:first-child{ margin-left:0; }
.combo-logos .combo-logo-more{
  display:inline-flex; align-items:center; justify-content:center;
  font-size:.8rem; font-weight:800; color:#fff; background:#3a3f4d;
}
@media (max-width:520px){
  .combo-logos .combo-logo{ width:40px; height:40px; margin-left:-16px; }
}


/* ─── Sección de Combos (catálogo global) + icono que crece con logos ─── */
.product-icon:has(.combo-logos){ width:auto; height:auto; min-width:0; background:transparent; border:none; padding:0; overflow:visible; }
.global-combos{ margin:.2rem 0 1.4rem; }
.global-combos-title{ display:flex; align-items:center; gap:.5rem; font-size:1.15rem; font-weight:700; margin:0 0 .8rem; }
.global-combos-title i{ color:var(--primary,#7c3aed); font-size:1.2rem; }

/* ── Categorias de plataforma ──────────────────────────────────────────────
   Barra de filtro sobre el catalogo y etiqueta en cada tarjeta. La lista es
   fija (la misma del gestor); solo se dibujan las que tienen productos. */
.catalog-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: var(--s-3);
  scrollbar-width: none;
}
.catalog-categories::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.cat-chip:hover { border-color: var(--primary); }
.cat-chip span {
  font-size: 11px;
  font-weight: 700;
  opacity: .65;
}
.cat-chip.activa {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cat-chip.activa span { opacity: .85; }
.product-cat {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Texto de presentación de la portada ─────────────────────────────────── */
.global-tagline {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.global-about {
  margin: 3rem auto 2rem;
  max-width: 68ch;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  line-height: 1.7;
  color: var(--text-muted);
}
.global-about h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.1rem;
  color: var(--text);
}
.global-about h2:first-child { margin-top: 0; }
.global-about p { margin: 0 0 0.9rem; }
.global-about p:last-child { margin-bottom: 0; }
.global-about-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .global-about { margin: 2rem 0 1.5rem; padding: 1.25rem; border-radius: 14px; }
}
