/* ============================================================================
   OPUS 5.5 — MOTOR MULTI-SKIN (4 MODOS OSCUROS + 2 CLAROS) & 7 DISEÑOS EN VIVO
   Logotipo Estrella + Iconografía Vectorial 100% Original + 100% Estrategia
   ============================================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* SKIN POR DEFECTO: MODO OSCURO OBSIDIANA VIP (dark_obsidian) */
  --bg-main: #070b14;
  --bg-card: #101726;
  --bg-elevated: #162035;
  --bg-input: #0a101d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(42, 171, 238, 0.55);
  --accent-primary: #2aabee;
  --accent-primary-text: #040811;
  --accent-vip: #f59e0b;
  --vip-card-bg: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(16, 23, 38, 0.96));
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* ============================================================================
   LAS 6 ATMÓSFERAS / TEMAS VISUALES (4 OSCUROS DE ÉLITE + 2 CLAROS)
   ============================================================================ */

/* 1. OSCURO OBSIDIANA VIP (Default: Negro Azulado Profundo + Oro Imperial & Cian) */
body[data-skin="dark_obsidian"] {
  --bg-main: #070b14;
  --bg-card: #101726;
  --bg-elevated: #162035;
  --bg-input: #0a101d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: #2aabee;
  --accent-primary: #2aabee;
  --accent-primary-text: #040811;
  --accent-vip: #f59e0b;
  --vip-card-bg: linear-gradient(145deg, #1d2230, #111726);
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* 2. OSCURO TELEGRAM NIGHT (Azul Noche Oficial de Telegram Desktop / iOS Dark) */
body[data-skin="dark_telegram"] {
  --bg-main: #0e1621;
  --bg-card: #17212b;
  --bg-elevated: #202b36;
  --bg-input: #0e1621;
  --text-main: #f5f5f5;
  --text-muted: #8a9aa9;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: #5288c1;
  --accent-primary: #5288c1;
  --accent-primary-text: #ffffff;
  --accent-vip: #fbbf24;
  --vip-card-bg: linear-gradient(145deg, #232e3c, #17212b);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 3. OSCURO CYBER-TON MATRIX (Negro Carbono + Esmeralda Neón & Cian Web3) */
body[data-skin="dark_cyber"] {
  --bg-main: #050807;
  --bg-card: #0b1210;
  --bg-elevated: #111c19;
  --bg-input: #070c0a;
  --text-main: #ecfdf5;
  --text-muted: #6ee7b7;
  --border-subtle: rgba(16, 185, 129, 0.18);
  --border-hover: #10b981;
  --accent-primary: #10b981;
  --accent-primary-text: #02140d;
  --accent-vip: #fbbf24;
  --vip-card-bg: linear-gradient(145deg, #13241d, #0b1210);
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

/* 4. OSCURO ROYAL VELVET (Terciopelo Amatista + Rosa Neón & Oro) */
body[data-skin="dark_velvet"] {
  --bg-main: #0c0814;
  --bg-card: #150f24;
  --bg-elevated: #1f1635;
  --bg-input: #0e0919;
  --text-main: #faf5ff;
  --text-muted: #c4b5fd;
  --border-subtle: rgba(192, 132, 252, 0.16);
  --border-hover: #ec4899;
  --accent-primary: #ec4899;
  --accent-primary-text: #ffffff;
  --accent-vip: #fbbf24;
  --vip-card-bg: linear-gradient(145deg, #27173a, #150f24);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* 5. CLARO NATIVO iOS (Blanco Puro & Azul Cielo Telegram) */
body[data-skin="light_native"] {
  --bg-main: #eef2f6;
  --bg-card: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-input: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --border-hover: #24a1de;
  --accent-primary: #24a1de;
  --accent-primary-text: #ffffff;
  --accent-vip: #d97706;
  --vip-card-bg: linear-gradient(145deg, #fffbeb, #fef3c7);
  --card-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

/* 6. CLARO EDITORIAL SUIZO (Papel Cálido & Tinta Negra) */
body[data-skin="light_editorial"] {
  --bg-main: #f4f1ea;
  --bg-card: #ffffff;
  --bg-elevated: #ebe7de;
  --bg-input: #f7f5f0;
  --text-main: #141413;
  --text-muted: #57534e;
  --border-subtle: #d6d1c4;
  --border-hover: #0047ff;
  --accent-primary: #0047ff;
  --accent-primary-text: #ffffff;
  --accent-vip: #b45309;
  --vip-card-bg: linear-gradient(145deg, #fef9c3, #fef08a);
  --card-shadow: 0 4px 12px rgba(20, 20, 19, 0.05);
}

body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  background-image:
    radial-gradient(950px circle at var(--cursor-x, 50%) var(--cursor-y, 12%), rgba(42, 171, 238, 0.065), transparent 65%),
    radial-gradient(700px circle at 85% 8%, rgba(245, 158, 11, 0.045), transparent 60%);
  background-attachment: fixed;
}

@keyframes opusRowReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes livePulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
  display: inline-block;
  animation: livePulseDot 2.2s infinite ease-in-out;
}

/* ============================================================================
   TOP OPUS PROTOTYPE SWITCHER BAR (STICKY GLASSMORPHIC)
   ============================================================================ */
.proto-switcher-bar {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.proto-bar-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
}

.proto-bar-badge {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #090501;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.14rem 0.46rem;
  border-radius: 6px;
}

.proto-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.proto-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.36rem 0.68rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.proto-tab-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.proto-tab-btn.active {
  background: var(--accent-primary);
  color: var(--accent-primary-text);
  border-color: var(--accent-primary);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(42, 171, 238, 0.35);
}

.proto-tab-btn.winner-tab.active {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #090501;
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.proto-bar-right {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.top-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.36rem 0.72rem;
  border-radius: 8px;
  cursor: pointer;
}

.top-action-btn.primary {
  background: #10b981;
  border-color: #10b981;
  color: #03130d;
  font-weight: 700;
}

.top-action-btn.gold {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

/* ============================================================================
   BARRA SELECTORA DE LOS 6 TEMAS / MODOS OSCUROS Y CLAROS + IDIOMAS
   ============================================================================ */
.skin-and-lang-bar {
  background: #0a0f1c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.48rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.skin-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
}

.skin-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.skin-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.skin-pill.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: #38bdf8;
  font-weight: 700;
}

.skin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.lang-global-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.48rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lang-pills-wrap::-webkit-scrollbar,
.hyb-cats-strip::-webkit-scrollbar,
.p1-cats::-webkit-scrollbar {
  display: none;
}

.lang-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.lang-pill:hover {
  border-color: var(--accent-primary);
}

.lang-pill.active {
  background: var(--accent-primary);
  color: var(--accent-primary-text);
  border-color: var(--accent-primary);
  font-weight: 700;
}

.lang-pill-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
}

.lang-market-stats {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
}

/* ============================================================================
   ESTRUCTURAS Y DISEÑOS ADAPTADOS A VARIABLES DE SKIN (OSCUROS Y CLAROS)
   ============================================================================ */
.hyb-container,
.p2-container,
.p3-container,
.p4-container,
.p6-container {
  max-width: 1240px;
  margin: 1.2rem auto 4rem;
  padding: 0 1.15rem;
}

.p1-container {
  max-width: 800px;
  margin: 1.25rem auto 4rem;
  padding: 0 1rem;
}

.hyb-hero,
.p1-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px circle at var(--mx, 20%) var(--my, 30%), rgba(56, 189, 248, 0.085), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.09), var(--card-shadow);
  margin-bottom: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  flex-wrap: wrap;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.hyb-hero:hover {
  border-color: rgba(56, 189, 248, 0.32);
}

.p1-hero-card {
  flex-direction: column;
  text-align: center;
}

.hyb-title,
.p1-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 0.22rem;
}

.hyb-sub,
.p1-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.hyb-hero-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hyb-search,
.p1-search {
  width: 100%;
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.87rem;
  padding: 0.68rem 1rem;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

.hyb-search:focus,
.p1-search:focus {
  border-color: var(--accent-primary);
}

/* Barra de Píldoras de Categorías (Sin barra de scroll gris en PC) */
.hyb-cats-strip,
.p1-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  padding: 0.15rem 0 0.95rem;
}

.row-layout-switcher {
  display: inline-flex;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 11px;
  padding: 0.2rem;
  gap: 0.2rem;
  flex-shrink: 0;
}

.layout-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.72rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.layout-switch-btn.active {
  background: var(--accent-primary);
  color: var(--accent-primary-text);
  box-shadow: 0 2px 8px rgba(42, 171, 238, 0.28);
}

.hyb-cat-pill,
.p1-cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.79rem;
  padding: 0.45rem 0.86rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.hyb-cat-pill:hover,
.p1-cat-pill:hover {
  border-color: var(--accent-primary);
}

.hyb-cat-pill.active,
.p1-cat-pill.active {
  background: var(--accent-primary);
  color: var(--accent-primary-text);
  border-color: var(--accent-primary);
  font-weight: 700;
}

/* Franja VIP Dorada en Rectángulos Horizontales (2 por fila o 1 por fila) */
.hyb-vip-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

body[data-row-cols="1"] .hyb-vip-strip {
  grid-template-columns: 1fr;
}

.p2-vip-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.hyb-vip-card,
.p2-vip-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 158, 11, 0.12), transparent 70%),
    var(--vip-card-bg);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 15px;
  padding: 0.92rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
  box-shadow: inset 0 1px 0 0 rgba(251, 191, 36, 0.22), var(--card-shadow);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  animation: opusRowReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hyb-vip-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: inset 0 1px 0 0 rgba(251, 191, 36, 0.35), 0 14px 32px rgba(245, 158, 11, 0.14);
}

.p2-vip-card {
  flex-direction: column;
  align-items: stretch;
}

/* Estanterías por Categoría en Bloques Horizontales Anchos + Filas Rectangulares (2 o 1 por fila) */
.hyb-shelves-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hyb-rect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  container-type: inline-size;
}

body[data-row-cols="1"] .hyb-rect-grid {
  grid-template-columns: 1fr;
}

.hyb-rect-grid .hyb-item-row {
  border-right: 1px solid var(--border-subtle);
}

.hyb-rect-grid .hyb-item-row:nth-child(2n),
body[data-row-cols="1"] .hyb-rect-grid .hyb-item-row {
  border-right: none;
}

.p4-shelves-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

/* Diseño Rectangular Limpio (1 línea de título ancho + 1 línea de descripción + 1 línea de datos) */
.entity-title-full {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-desc-clamp {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.12rem;
}

.hyb-row-actions {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-shrink: 0;
}

.hyb-shelf-card,
.p1-list-box,
.p4-shelf-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07), var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.22s ease;
}

.hyb-shelf-card:hover {
  border-color: rgba(56, 189, 248, 0.24);
}

.hyb-shelf-header,
.p4-shelf-head {
  background: linear-gradient(90deg, var(--bg-elevated), rgba(42, 171, 238, 0.04));
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.88rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.hyb-addlist-btn,
.p1-join-btn {
  background: var(--accent-primary);
  color: var(--accent-primary-text);
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.44rem 0.84rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, opacity 0.15s ease;
}

.hyb-addlist-btn:hover,
.p1-join-btn:hover {
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 6px 16px rgba(42, 171, 238, 0.28);
}

.hyb-addlist-btn:active,
.p1-join-btn:active {
  transform: scale(0.96);
}

.hyb-item-row,
.p1-row,
.p4-shelf-item {
  position: relative;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.07), transparent 70%);
  transition: background-color 0.18s ease, padding-left 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  animation: opusRowReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Indicador láser minimalista lateral al pasar el cursor sobre cada rectángulo */
.hyb-item-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #38bdf8, #2aabee);
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.hyb-item-row:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.hyb-item-row .nx-entity-avatar,
.hyb-vip-card .nx-entity-avatar {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.hyb-item-row:hover .nx-entity-avatar,
.hyb-vip-card:hover .nx-entity-avatar {
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.38) !important;
}

.hyb-item-row:hover,
.p1-row:hover,
.p4-shelf-item:hover {
  background-color: var(--bg-elevated);
}

.hyb-shelf-footer,
.p4-shelf-foot {
  padding: 0.65rem 1.05rem;
  background: var(--bg-elevated);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.p1-addlist-banner {
  background: linear-gradient(135deg, #24a1de, #0284c7);
  color: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ============================================================================
   PROTOTIPO 2 (BENTO GRID) & PROTOTIPO 6 (NUEVO: MINI-CARDS APP STORE 4-COL)
   ============================================================================ */
.p2-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.p2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.p2-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.p2-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* NUEVO DISEÑO 6: GRID COMPACTO DE TARJETAS 4 COLUMNAS (ESTILO DISCORD / STEAM) */
.p6-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 0.9rem;
}

.p6-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.16s ease;
}

.p6-mini-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ============================================================================
   PROTOTIPO 3: SUPER-TABLA DE ALTA VELOCIDAD
   ============================================================================ */
.p3-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: var(--card-shadow);
}

.p3-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.p3-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.78rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.p3-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.p3-table tr:hover td {
  background: var(--bg-elevated);
}

/* ============================================================================
   PROTOTIPO 5: TELEGRAM DESKTOP SPLIT-SCREEN
   ============================================================================ */
.p5-split-layout {
  max-width: 1320px;
  margin: 1rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1rem;
  height: calc(100vh - 165px);
}

.p5-left-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.p5-right-pane {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.p5-chat-row {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 0.75rem;
}

.p5-chat-row:hover,
.p5-chat-row.active {
  background: var(--bg-elevated);
}

/* ============================================================================
   MODALS & PRIVATE OWNER VAULT
   ============================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 7, 14, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: grid;
}

.modal-box {
  background: #101726;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  max-width: 490px;
  width: 100%;
  padding: 1.45rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
}

.field-row {
  margin-bottom: 0.8rem;
}

.field-row label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  background: #070b14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  padding: 0.58rem 0.8rem;
  border-radius: 8px;
  outline: none;
}

.btn-solid-blue {
  background: var(--accent-primary);
  color: var(--accent-primary-text);
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.52rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-outline-light {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}

.toast-zone {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toast-msg {
  background: #101726;
  color: #f8fafc;
  border-left: 4px solid #2aabee;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

@media (max-width: 960px) {
  .p5-split-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hyb-vip-strip,
  .hyb-rect-grid,
  .p4-shelves-grid {
    grid-template-columns: 1fr;
  }

  .hyb-rect-grid .hyb-item-row {
    border-right: none;
  }
}

/* ============================================================================
   COMPATIBILIDAD 100% MÓVIL (TELÉFONOS & TELEGRAM MINI-APP WEBVIEW)
   Lectura completa de títulos de canal + botones táctiles cómodos
   ============================================================================ */
@media (max-width: 640px) {
  .row-layout-switcher {
    display: none;
  }

  .entity-title-full {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .entity-desc-clamp {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .proto-switcher-bar {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }

  .proto-bar-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .top-action-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 0.42rem 0.5rem;
    font-size: 0.73rem;
  }

  .lang-global-bar {
    padding: 0.45rem 0.75rem;
  }

  .lang-market-stats {
    width: 100%;
    justify-content: space-between;
    font-size: 0.68rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.35rem;
  }

  .hyb-container,
  .p1-container,
  .p2-container,
  .p3-container,
  .p4-container,
  .p6-container {
    padding: 0 0.65rem;
    margin-top: 0.75rem;
  }

  .hyb-hero {
    padding: 0.95rem;
    gap: 0.75rem;
  }

  .hyb-title {
    font-size: 1.08rem;
  }

  .hyb-hero-right {
    min-width: 100%;
    width: 100%;
  }

  .hyb-vip-strip,
  .p2-vip-strip,
  .p2-grid,
  .p6-grid {
    grid-template-columns: 1fr;
  }

  .hyb-shelf-header,
  .p4-shelf-head {
    flex-wrap: wrap;
    padding: 0.75rem 0.85rem;
  }

  .hyb-item-row,
  .p1-row,
  .p4-shelf-item,
  .hyb-vip-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .hyb-row-actions {
    width: 100%;
    justify-content: flex-end;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.55rem;
  }

  .hyb-row-actions .hyb-addlist-btn:last-child,
  .hyb-row-actions .p1-join-btn:last-child {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.85rem;
  }

  .modal-box {
    padding: 1.05rem;
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
    border-radius: 14px;
    max-height: 92dvh;
    overflow-y: auto;
  }

  /* Evita el auto-zoom brusco de Safari en iOS al tocar buscadores o inputs */
  .hyb-search,
  .p1-search,
  .field-row input,
  .field-row select,
  .field-row textarea {
    font-size: 16px !important;
  }

  .hyb-addlist-btn,
  .p1-join-btn,
  .btn-solid-blue,
  .btn-outline-light {
    min-height: 40px;
  }

  .live-floating-ticker {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    max-width: calc(100vw - 1.3rem);
  }
}

/* ============================================================================
   SISTEMA RADAR EN VIVO ("VIENDO AHORA") & DESTACADO #1 KRYPTX +18
   ============================================================================ */
@keyframes sonarPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.35);
    opacity: 0;
  }
  100% {
    transform: scale(2.35);
    opacity: 0;
  }
}

.live-sonar-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  flex-shrink: 0;
}

.live-sonar-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #f43f5e;
  animation: sonarPulseRing 1.75s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.live-sonar-dot.emerald {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.live-sonar-dot.emerald::after {
  border-color: #10b981;
}

.live-now-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(244, 63, 94, 0.55);
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.live-now-top-btn:hover {
  transform: translateY(-1px);
  border-color: #fb7185;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.35);
}

.live-viewer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.38);
  flex-shrink: 0;
}

.live-viewer-chip.hot-kryptx {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.24), rgba(245, 158, 11, 0.22));
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.65);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.25);
}

.hyb-vip-card.kryptx-priority-card {
  border: 1.5px solid rgba(244, 63, 94, 0.68);
  background:
    radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 63, 94, 0.16), transparent 72%),
    linear-gradient(135deg, rgba(24, 13, 28, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: inset 0 1px 0 0 rgba(251, 113, 133, 0.32), 0 12px 30px rgba(244, 63, 94, 0.16);
}

.live-floating-ticker {
  position: fixed;
  bottom: 1.05rem;
  left: 1.05rem;
  z-index: 980;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10, 15, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(244, 63, 94, 0.48);
  border-radius: 999px;
  padding: 0.44rem 0.78rem 0.44rem 0.68rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(244, 63, 94, 0.14);
  color: #f8fafc;
  font-size: 0.75rem;
  max-width: 410px;
  transition: transform 0.22s ease, opacity 0.22s ease, border-color 0.22s ease;
}

.live-floating-ticker:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.75);
}

