* {
  box-sizing: border-box;
}

html, body {
  background-color: #030712; /* Fondo sólido oscuro para eliminar el lienzo blanco nativo si hay retraso de rasterizado */
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch; /* Suavidad en iOS */
  overscroll-behavior-y: none; /* Evita efecto rebote */
}

body {
  background: radial-gradient(circle at center, rgba(17, 24, 39, 1) 0%, rgba(3, 7, 18, 1) 100%);
  background-color: #030712;
  color: rgba(255, 255, 255, 0.95);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden; /* Cero scroll en la web */

  /* Bloqueo total de selección de texto */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ========================================================
   VISTA PRINCIPAL Y ANIMACIONES DE TRANSICIÓN
   ======================================================== */
.main-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #030712;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

/* ========================================================
   OPTIMIZACIÓN DE RENDIMIENTO: ACELERACIÓN POR HARDWARE Y ANTI-FLICKERING
   ======================================================== */
.main-view,
.dramas-grid,
.loading-grid-container {
  will-change: transform;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

.drama-card,
.drama-card .poster-box,
.drama-card .poster-img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@media (max-width: 768px) {
  *, *::before, *::after {
    background-attachment: scroll !important;
  }
}

/* Scrollbar estilizada */
.main-view {
  scrollbar-width: thin;
  scrollbar-color: rgba(253, 11, 11, 0.45) rgba(3, 7, 18, 0.95);
}
.main-view::-webkit-scrollbar {
  width: 8px;
}
.main-view::-webkit-scrollbar-track {
  background: rgba(3, 7, 18, 0.95);
}
.main-view::-webkit-scrollbar-thumb {
  background: rgba(253, 11, 11, 0.45);
  border-radius: 4px;
}
.main-view::-webkit-scrollbar-thumb:hover {
  background: rgba(253, 11, 11, 0.8);
}

.main-view.fading-out {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

/* ========================================================
   BARRA SUPERIOR MODERNA (NAVBAR FIJA QUE NUNCA DESAPARECE)
   ======================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* Izquierda: Logo y Marca */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(253, 11, 11, 0.65);
  box-shadow: 0 2px 10px rgba(253, 11, 11, 0.35);
  transition: transform 0.25s ease;
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.08);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.gradient-accent {
  background: linear-gradient(135deg, #ffffff 10%, #fd0b0b 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Centro: Buscador */
.search-container {
  position: relative;
  flex: 1;
  max-width: 440px;
  margin: 0 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: rgba(253, 11, 11, 0.65);
  box-shadow: 0 0 16px rgba(253, 11, 11, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.search-box:focus-within .search-icon {
  transform: scale(1.15);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

/* MENÚ DESPLEGABLE MODERNO DEL BUSCADOR (HASTA 3 RESULTADOS) */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(13, 17, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(253, 11, 11, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.88), 0 0 20px rgba(253, 11, 11, 0.2);
  overflow: hidden;
  z-index: 200;
  display: flex;
  flex-direction: column;
  animation: fadeInDown 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.15s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(253, 11, 11, 0.18);
}

.search-item:active {
  background: rgba(253, 11, 11, 0.3);
}

.search-item-img {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.search-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  flex: 1;
}

.search-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
  max-width: 100%;
  background: linear-gradient(90deg, #ffffff 15%, #ff4b4b 65%, #fd0b0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}

.search-item-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fd0b0b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.search-item-badge i {
  font-size: 0.7rem;
}

.search-no-results {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 0;
}

/* Derecha: Botón Iniciar sesión / Logout */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-login {
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.92), rgba(185, 28, 28, 0.95));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  border: 1px solid rgba(253, 11, 11, 0.5);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(253, 11, 11, 0.35);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
  user-select: none;
  white-space: nowrap;
}

.btn-login:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(253, 11, 11, 0.55);
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 20, 20, 1));
}

.btn-login:active {
  transform: translateY(0) scale(0.98);
}

/* ========================================================
   CONTENIDO PRINCIPAL: GRILLA DE HASTA 100 POSTERS
   ======================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
}

.loading-grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 16px;
}

/* GRILLA ESTRICTA DE 5 COLUMNAS EN ESCRITORIO CON ESPACIADO GENEROSO */
.dramas-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 24px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 28px 80px 28px;
}

/* TARJETA INDIVIDUAL DE DRAMA: MISMO DISEÑO Y TAMAÑO */
.drama-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: transform 0.25s ease;
}

/* Título del drama sobre el póster con altura fija para alineación perfecta y degradado blanco a rojo */
.drama-card .poster-title {
  margin: 0 auto 10px auto;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.3px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.35;
  height: 2.7em; /* Exactamente 2 líneas para que todas las portadas inicien alineadas en la misma fila */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;

  /* Color degradado: blanco al inicio y transición viva al rojo idéntico a la muestra */
  background: linear-gradient(90deg, #ffffff 15%, #ff4b4b 65%, #fd0b0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.drama-card .poster-title:hover {
  filter: drop-shadow(0 0 10px rgba(253, 11, 11, 0.7)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
  opacity: 0.95;
}

/* Contenedor del póster con esquinas redondeadas y sombra */
.drama-card .poster-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.85), 0 0 18px rgba(220, 38, 38, 0.12);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.drama-card .poster-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 22px 48px -6px rgba(0, 0, 0, 0.95), 0 0 28px rgba(220, 38, 38, 0.35);
}

.drama-card .poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Overlay con icono de Play al pasar el cursor */
.drama-card .poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.drama-card .poster-box:hover .poster-overlay {
  opacity: 1;
}

.play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s ease, background 0.3s ease;
}

.drama-card .poster-box:hover .play-circle {
  transform: scale(1.05);
  background: rgba(239, 68, 68, 1);
}

.play-circle svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  margin-left: 3px;
}

/* Botón Reproducir debajo del póster con tonos rojos */
.drama-card .btn-reproducir {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px -4px rgba(220, 38, 38, 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(8px);
}

.drama-card .btn-reproducir:hover {
  background: rgba(239, 68, 68, 1);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px -4px rgba(239, 68, 68, 0.65), 0 0 18px rgba(239, 68, 68, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
}

.drama-card .btn-reproducir:active {
  transform: translateY(0) scale(0.98);
}

.icon-play {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.no-results-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.15rem;
  font-weight: 600;
}

.status-msg {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 6px;
  text-align: center;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top: 3px solid rgba(239, 68, 68, 1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  animation: spin 1s linear infinite;
  margin: 30px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Adaptabilidad responsive cuidando el tamaño y proporción:
   PC y Laptops (>= 1024px) conservan estrictamente 5 columnas para que la tarjeta de anuncio
   se ubique siempre en la última posición de la primera fila (superior derecha, abajo del menú) */
@media (max-width: 1024px) {
  .dramas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 16px;
    padding: 24px 20px 60px 20px;
  }
}

/* ========================================================
   MODO RESPONSIVE EXCLUSIVO PARA MÓVILES (PANTALLAS PEQUEÑAS <= 680px)
   PC / Laptop permanece 100% intacto en su grilla de 5 columnas
   ======================================================== */
@media (max-width: 680px) {
  /* Grilla en móvil: Una sola columna con scroll vertical */
  .dramas-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 32px 0 !important;
    padding: 16px 14px 80px 14px !important;
    width: 100%;
    max-width: 100%;
  }

  /* Límite estricto en móvil: Máximo 10 posters mostrados aleatoriamente */
  .dramas-grid div.drama-card:nth-of-type(n+11),
  .dramas-grid .drama-card:nth-child(n+12) {
    display: none !important;
  }

  /* Tarjeta individual centrada con tamaño equilibrado */
  .drama-card {
    width: 100%;
    max-width: 285px;
    margin: 0 auto;
  }

  /* Título de la tarjeta: más cerca del póster, ocupa el ancho del póster y máximo 2 líneas tipo párrafo */
  .drama-card .poster-title {
    margin: 0 auto 6px auto;
    font-size: 0.98rem;
    line-height: 1.3;
    height: auto;
    max-height: 2.6em;
    width: 100%;
    max-width: 285px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Contenedor del póster: bordes redondeados y proporción armónica */
  .drama-card .poster-box {
    width: 100%;
    max-width: 285px;
    border-radius: 14px;
    box-shadow: 0 10px 26px -4px rgba(0, 0, 0, 0.88), 0 0 16px rgba(220, 38, 38, 0.18);
  }

  .drama-card .poster-img {
    border-radius: 14px;
  }

  .play-circle {
    width: 48px;
    height: 48px;
  }

  .play-circle svg {
    width: 20px;
    height: 20px;
  }

  /* Botón reproducir: ancho ajustado al póster */
  .drama-card .btn-reproducir {
    margin-top: 10px;
    width: 100%;
    max-width: 285px;
    padding: 9px 16px;
    font-size: 0.92rem;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .drama-card,
  .drama-card .poster-box,
  .drama-card .poster-title,
  .drama-card .btn-reproducir {
    max-width: 255px;
  }
}

/* ========================================================
   VISTA DEL REPRODUCTOR INMERSIVO (DESAPARICIÓN / APARICIÓN)
   ======================================================== */
.player-view {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 14, 0.97);
  backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.player-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Modo Pantalla Completa Nativo (Fullscreen API) */
#player-view:fullscreen,
#player-view:-webkit-full-screen,
#player-view:-moz-full-screen,
#player-view:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #000000 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  inset: 0 !important;
}

#player-view:fullscreen .player-wrapper,
#player-view:-webkit-full-screen .player-wrapper,
#player-view:-moz-full-screen .player-wrapper,
#player-view:-ms-fullscreen .player-wrapper {
  height: 100% !important;
  width: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#player-view:fullscreen .custom-player-916,
#player-view:-webkit-full-screen .custom-player-916,
#player-view:-moz-full-screen .custom-player-916,
#player-view:-ms-fullscreen .custom-player-916 {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  aspect-ratio: unset !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#player-view:fullscreen .video-element,
#player-view:-webkit-full-screen .video-element,
#player-view:-moz-full-screen .video-element,
#player-view:-ms-fullscreen .video-element {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.player-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100vh;
}

/* CONTENEDOR ESTRICTO 9/16 */
.custom-player-916 {
  position: relative;
  aspect-ratio: 9 / 16 !important;
  height: 92vh;
  max-height: 92vh;
  width: calc(92vh * (9 / 16));
  max-width: 95vw;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.98), 0 0 30px rgba(253, 11, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.3s ease;
}

.video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ========================================================
   LOGO REDONDO DINÁMICO (EXCLUSIVAMENTE EN LAS 4 ESQUINAS)
   ======================================================== */
.watermark-logo {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  will-change: opacity, transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0.9;
}

.watermark-logo.top-left {
  top: 18px;
  left: 18px;
  right: auto;
  bottom: auto;
}

.watermark-logo.top-right {
  top: 18px;
  right: 18px;
  left: auto;
  bottom: auto;
}

.watermark-logo.bottom-left {
  bottom: 74px;
  left: 18px;
  right: auto;
  top: auto;
}

.watermark-logo.bottom-right {
  bottom: 74px;
  right: 18px;
  left: auto;
  top: auto;
}

.watermark-logo.fade-out {
  opacity: 0;
  transform: scale(0.7) translateZ(0);
}

.logo-circle-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 10px rgba(253, 11, 11, 0.3);
  /* Eliminado backdrop-filter: blur(6px) para evitar lag de raster en GPU sobre video decodificado */
  background: rgba(15, 15, 15, 0.92);
  display: block;
  transform: translateZ(0);
}

/* ========================================================
   ESTADO DE CARGA Y FEEDBACK
   ======================================================== */
.player-loader {
  position: absolute;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 10, 10, 0.92);
  /* Eliminado backdrop-filter: blur(8px) para cero lag de renderizado */
  padding: 20px 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  will-change: opacity, transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

.player-spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid rgba(255, 255, 255, 0.2);
  border-top: 3.5px solid rgb(253, 11, 11);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.player-loader-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
}

.center-feedback {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6) translateZ(0);
  will-change: opacity, transform;
  backface-visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 3.8rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.8));
}

.center-feedback.show {
  opacity: 1;
  transform: scale(1.1) translateZ(0);
}

/* ========================================================
   FEEDBACK VISUAL LATERAL DE SALTOS DE 10S (DOBLE TOQUE VIP)
   ======================================================== */
.seek-feedback {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 26;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity, transform;
  transform: translateZ(0);
  transition: opacity 0.22s ease;
}

.seek-feedback.seek-feedback-left {
  left: 0;
  background: radial-gradient(circle at left center, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 75%);
  border-top-right-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
}

.seek-feedback.seek-feedback-right {
  right: 0;
  background: radial-gradient(circle at right center, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 75%);
  border-top-left-radius: 50% 100%;
  border-bottom-left-radius: 50% 100%;
}

.seek-feedback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transform: scale(0.8) translateZ(0);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.seek-feedback-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.seek-feedback.show {
  opacity: 1;
}

.seek-feedback.show .seek-feedback-content {
  transform: scale(1.05) translateZ(0);
}

/* ========================================================
   TOAST DE NOTIFICACIÓN DE REANUDACIÓN (RESUME PLAYBACK VIP)
   ======================================================== */
.resume-playback-toast {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px) translateZ(0);
  z-index: 30;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #f5f5f5;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.resume-playback-toast i {
  color: #ffd700;
  font-size: 1rem;
}

.resume-playback-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) translateZ(0);
}

/* ========================================================
   BARRA DE CONTROLES PERSONALIZADA Y DESVANECIMIENTO
   ======================================================== */
.btn-minimize-close {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  will-change: opacity, transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 1;
  pointer-events: auto;
}

.btn-minimize-close:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.08) translateZ(0);
}

.controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 24px 16px 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.55) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: opacity, transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 1;
  pointer-events: auto;
}

.custom-player-916.hide-controls .controls-overlay {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) translateZ(0);
}

.custom-player-916.hide-controls .btn-minimize-close,
.custom-player-916.hide-controls #btn-minimize-close {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px) translateZ(0) !important;
}

.custom-player-916.hide-controls {
  cursor: none;
}

.custom-player-916.hide-controls .watermark-logo {
  opacity: 0.45;
}

/* Barra de progreso: contenedor base con fondo oscuro translúcido */
.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transform-origin: center bottom;
  transition: transform 0.15s ease;
}

.progress-container:hover {
  transform: scaleY(1.35) translateZ(0);
}

/* Barra de precarga / buffer (Preload visible en color distintivo plata translúcida) */
.progress-buffer-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
  transition: width 0.2s ease-out;
  z-index: 1;
}

/* Relleno multicolor degradado: Rojo -> Anaranjado -> Amarillo (Progreso de reproducción activo) */
.progress-bar {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fd0b0b 0%, #ff6a00 50%, #ffd000 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(253, 11, 11, 0.8);
  transition: width 0.1s linear;
  z-index: 2;
}

/* Marcadores de pausa de colaboradores / anuncios en la barra de progreso (20%, 40%, 60%, 80%) */
.progress-ad-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.progress-ad-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  line-height: 1;
  color: rgb(253, 11, 11) !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 4px rgba(253, 11, 11, 0.7));
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.progress-ad-marker.marker-20 { left: 20%; }
.progress-ad-marker.marker-40 { left: 40%; }
.progress-ad-marker.marker-60 { left: 60%; }
.progress-ad-marker.marker-80 { left: 80%; }

.progress-ad-marker.passed {
  opacity: 0.45;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ctrl {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.15s ease;
}

.btn-ctrl:hover {
  transform: scale(1.15) translateZ(0);
}

.btn-ctrl:active {
  transform: scale(0.95) translateZ(0);
}

.time-countdown {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.6px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Responsive para pantallas pequeñas: Barra superior y buscador */
@media (max-width: 680px) {
  .navbar {
    padding: 0 12px;
    height: 58px;
    gap: 10px;
  }

  /* Ocultar texto 'Dramas Shorts' para dar todo el espacio a la barra de búsqueda */
  .nav-brand .brand-text {
    display: none !important;
  }

  .nav-brand {
    gap: 0;
    flex-shrink: 0;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  /* Buscador expandido respetando los márgenes del icono izquierdo y botón derecho */
  .search-container {
    flex: 1;
    margin: 0;
    max-width: 100%;
    position: relative;
  }

  .search-box {
    padding: 7px 12px;
    gap: 8px;
    width: 100%;
  }

  .search-icon {
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .search-input {
    font-size: 0.85rem;
    width: 100%;
  }

  .search-input::placeholder {
    font-size: 0.82rem;
  }

  /* Desplegable superpuesto a los posters, adaptado con máximo 3 resultados */
  .search-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 20px rgba(253, 11, 11, 0.35);
    z-index: 300;
  }

  .search-item {
    padding: 8px 12px;
    gap: 10px;
  }

  .search-item-img {
    width: 36px;
    height: 50px;
  }

  .search-item-title {
    font-size: 0.85rem;
  }

  .search-item-badge {
    font-size: 0.72rem;
  }

  /* Botón de sesión en móvil: icono circular estilizado */
  .nav-actions {
    flex-shrink: 0;
  }

  .btn-login {
    padding: 8px 10px;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    justify-content: center;
  }

  .btn-login span {
    display: none !important;
  }

  .btn-login i {
    font-size: 0.95rem;
    margin: 0;
  }

  /* ========================================================
     REPRODUCTOR EN MÓVIL: CONTROLES ELEVADOS Y ADAPTADOS
     ======================================================== */
  .player-view {
    height: 100% !important;
    height: 100dvh !important;
  }

  .player-wrapper {
    height: 100% !important;
    max-height: 100dvh !important;
    justify-content: center !important;
  }

  .custom-player-916 {
    max-height: 94vh !important;
    margin-top: -20px !important;
    margin-bottom: 20px !important;
  }

  /* Elevar controles para no tocar la barra de navegación del teléfono */
  .controls-overlay {
    padding: 24px 18px max(34px, env(safe-area-inset-bottom, 34px)) 18px !important;
    gap: 12px !important;
  }

  .watermark-logo.bottom-left,
  .watermark-logo.bottom-right {
    bottom: 96px !important;
  }

  .watermark-logo.top-left,
  .watermark-logo.top-right {
    top: max(20px, env(safe-area-inset-top, 20px)) !important;
  }

  .btn-ctrl {
    font-size: 2.1rem !important;
    padding: 6px !important;
  }

  .time-countdown {
    font-size: 0.95rem !important;
  }

  .progress-container {
    height: 6px !important;
  }

  /* ========================================================
     MODALES Y POPUPS EN MÓVIL (LOGIN, REGISTRO, ALERTAS)
     Adaptabilidad cuando se abre el teclado táctil
     ======================================================== */
  .login-modal,
  .auth-alert-backdrop {
    padding: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Tarjetas de formulario (Login, Registro, Unificar) */
  .login-card {
    max-width: 360px !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 24px 20px 20px 20px !important;
    border-radius: 18px !important;
    margin: auto !important;
  }

  .login-header {
    margin-bottom: 16px !important;
  }

  .login-icon-box {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
    margin-bottom: 8px !important;
  }

  .login-title {
    font-size: 1.3rem !important;
  }

  .login-subtitle {
    font-size: 0.82rem !important;
  }

  .btn-google-auth {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
  }

  .auth-divider {
    margin: 12px 0 !important;
  }

  .input-group {
    margin-bottom: 12px !important;
  }

  .input-group label {
    font-size: 0.82rem !important;
    margin-bottom: 5px !important;
  }

  .input-field {
    padding: 9px 12px !important;
  }

  .input-field input {
    font-size: 0.88rem !important;
  }

  .btn-submit-login {
    height: 44px !important;
    font-size: 0.92rem !important;
    margin-top: 6px !important;
  }

  .auth-footer-link {
    margin-top: 14px !important;
    font-size: 0.82rem !important;
  }

  /* Cajas de alerta (Éxito, Error credenciales, Oopps, Usuario existe) */
  .auth-alert-box {
    max-width: 330px !important;
    max-height: calc(100dvh - 28px) !important;
    overflow-y: auto !important;
    padding: 26px 20px 22px 20px !important;
    border-radius: 18px !important;
    gap: 12px !important;
    margin: auto !important;
  }

  .auth-alert-icon {
    font-size: 2.8rem !important;
  }

  .auth-alert-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  .auth-alert-desc {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  .btn-auth-retry,
  .btn-auth-action {
    height: 44px !important;
    font-size: 0.92rem !important;
  }

  /* Modal Anti-AdBlock en móvil */
  .adblock-box {
    max-width: 330px !important;
    padding: 26px 20px 22px 20px !important;
    border-radius: 20px !important;
  }

  .adblock-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.6rem !important;
    margin-bottom: 14px !important;
  }

  .adblock-title {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
  }

  .adblock-desc {
    font-size: 0.85rem !important;
    margin-bottom: 18px !important;
  }

  .btn-adblock-action {
    height: 44px !important;
    font-size: 0.92rem !important;
  }

  /* ========================================================
     PERFIL DE USUARIO EN MÓVIL (DESPLEGABLE Y POPUP)
     ======================================================== */
  .profile-card.dropdown-mode {
    top: 58px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    padding: 16px 14px 14px 14px !important;
  }

  .profile-card.popup-mode {
    width: calc(100% - 24px) !important;
    max-width: 340px !important;
    padding: 20px 16px 18px 16px !important;
    max-height: calc(100dvh - 30px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  .profile-avatar-circle {
    width: 66px !important;
    height: 66px !important;
  }

  .profile-username {
    font-size: 1.15rem !important;
  }

  .profile-saldo-value {
    font-size: 1.22rem !important;
  }
}

@media (max-width: 360px) {
  .login-card {
    max-width: 300px !important;
    padding: 20px 16px !important;
  }
  .auth-alert-box,
  .adblock-box,
  .profile-card.dropdown-mode,
  .profile-card.popup-mode {
    max-width: 300px !important;
    padding: 16px 12px !important;
  }
}

/* ========================================================
   MODAL / POPUP DE INICIAR SESIÓN (GLASSMORPHISM Y DESAPARICIÓN)
   ======================================================== */
.login-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(13, 17, 26, 0.96);
  border: 1px solid rgba(253, 11, 11, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(253, 11, 11, 0.2);
  padding: 36px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  animation: modalPopIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-close-login {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-login:hover {
  background: rgba(253, 11, 11, 0.85);
  color: #ffffff;
  transform: rotate(90deg);
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.login-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(253, 11, 11, 0.12);
  border: 1.5px solid rgba(253, 11, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fd0b0b;
  box-shadow: 0 0 20px rgba(253, 11, 11, 0.35);
  margin-bottom: 12px;
}

.login-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.login-subtitle {
  margin: 6px 0 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
}

.input-field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  transition: all 0.25s ease;
}

.input-field:focus-within {
  border-color: rgba(253, 11, 11, 0.7);
  box-shadow: 0 0 14px rgba(253, 11, 11, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.input-icon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  margin-right: 10px;
  transition: color 0.2s ease;
}

.input-field:focus-within .input-icon {
  color: #fd0b0b;
}

.input-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
}

.input-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.btn-toggle-pwd {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.btn-toggle-pwd:hover {
  color: #ffffff;
}

.login-error-msg {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #ff8080;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.btn-submit-login {
  margin-top: 6px;
  height: 46px;
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 1));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid rgba(253, 11, 11, 0.6);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(253, 11, 11, 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-submit-login:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(253, 11, 11, 0.65);
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 20, 20, 1));
}

.btn-submit-login:active {
  transform: translateY(0) scale(0.98);
}

.btn-submit-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========================================================
   POPUPS DE ALERTA: ERROR DE CREDENCIALES Y ÉXITO DE LOGIN
   ======================================================== */
.auth-alert-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 14, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-alert-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.auth-alert-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(15, 20, 32, 0.98);
  border: 1.5px solid rgba(253, 11, 11, 0.55);
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(253, 11, 11, 0.25);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: modalPopIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-alert-box.success {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(34, 197, 94, 0.3);
  cursor: pointer;
}

.auth-alert-icon {
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 2px;
}

.auth-alert-icon.error {
  color: #fd0b0b;
  filter: drop-shadow(0 0 16px rgba(253, 11, 11, 0.6));
  animation: shakeAlert 0.4s ease;
}

.auth-alert-icon.success {
  color: #22c55e;
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.6));
  animation: pulseSuccess 0.45s ease;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes pulseSuccess {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.auth-alert-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.35;
}

.auth-alert-desc {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.btn-auth-retry {
  margin-top: 10px;
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 1));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid rgba(253, 11, 11, 0.6);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(253, 11, 11, 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-auth-retry:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(253, 11, 11, 0.65);
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 20, 20, 1));
}

.btn-auth-retry:active {
  transform: translateY(0) scale(0.98);
}

/* ========================================================
   ESTILOS ADICIONALES DE AUTENTICACIÓN (GOOGLE, REGISTRO, ACCIONES)
   ======================================================== */
.btn-google-auth {
  width: 100%;
  height: 46px;
  background: rgba(18, 24, 38, 0.88);
  border: 1.5px solid rgba(253, 11, 11, 0.4);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 10px rgba(253, 11, 11, 0.1);
}

.btn-google-auth i {
  font-size: 1.25rem;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(253, 11, 11, 0.5));
}

.btn-google-auth:hover {
  background: rgba(253, 11, 11, 0.12);
  border-color: rgba(253, 11, 11, 0.9);
  box-shadow: 0 6px 25px rgba(253, 11, 11, 0.35), inset 0 0 14px rgba(253, 11, 11, 0.12);
  transform: translateY(-2px) scale(1.01);
  color: #ffffff;
}

.btn-google-auth:hover i {
  transform: scale(1.18);
  filter: drop-shadow(0 0 12px rgba(253, 11, 11, 0.95));
}

.btn-google-auth:active {
  transform: translateY(0) scale(0.98);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider span {
  padding: 0 10px;
}

.auth-footer-link {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.auth-footer-link a {
  color: #fd0b0b;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer-link a:hover {
  color: #ff4d4d;
  text-decoration: underline;
}

.auth-alert-box.info {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(59, 130, 246, 0.3);
}

.auth-alert-icon.info {
  color: #3b82f6;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.6));
  animation: pulseSuccess 0.45s ease;
}

.btn-auth-action {
  margin-top: 10px;
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 1));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid rgba(253, 11, 11, 0.6);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(253, 11, 11, 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-auth-action.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(21, 128, 61, 1));
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.btn-auth-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(253, 11, 11, 0.65);
}

.btn-auth-action.success:hover {
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.65);
}

.btn-auth-action:active {
  transform: translateY(0) scale(0.98);
}

/* ========================================================
   SISTEMA DE SEGURIDAD ANTI-ADBLOCK (FONDO NEGRO Y MODAL)
   ======================================================== */

/* Ocultar totalmente la web cuando el bloqueo está activo */
body.adblock-locked {
  overflow: hidden !important;
}

body.adblock-locked #main-view,
body.adblock-locked #player-view {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Telón de fondo a pantalla completa con degradado negro de alta seguridad */
.adblock-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(ellipse at center, rgba(16, 22, 34, 0.98), #02060e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  animation: fadeInAdblock 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInAdblock {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(25px);
  }
}

/* Caja de alerta con estilo glassmorphism oscuro y resplandor neón */
.adblock-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(13, 18, 30, 0.92);
  border: 1px solid rgba(253, 11, 11, 0.45);
  border-radius: 24px;
  padding: 36px 30px 30px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(253, 11, 11, 0.25);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Icono central de escudo/seguridad con aura neón */
.adblock-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(253, 11, 11, 0.12);
  color: #fd0b0b;
  border: 1.5px solid rgba(253, 11, 11, 0.55);
  box-shadow: 0 0 25px rgba(253, 11, 11, 0.4);
  animation: pulseAdblockIcon 2.5s infinite ease-in-out;
}

@keyframes pulseAdblockIcon {
  0%, 100% {
    box-shadow: 0 0 20px rgba(253, 11, 11, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(253, 11, 11, 0.65);
    transform: scale(1.05);
  }
}

.adblock-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: 0.3px;
}

.adblock-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px 0;
}

/* Mensaje dinámico de estado / advertencia */
.adblock-status-msg {
  margin: 0 0 20px 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  background: rgba(253, 11, 11, 0.16);
  border: 1px solid rgba(253, 11, 11, 0.5);
  color: #ffb4b4;
  animation: fadeInAdblock 0.25s ease;
}

/* Botón 'Ya lo desactivé' */
.btn-adblock-action {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 1));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid rgba(253, 11, 11, 0.65);
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 22px rgba(253, 11, 11, 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-adblock-action:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(253, 11, 11, 0.7);
}

.btn-adblock-action:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-adblock-action:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Animación de vibración (Shake) cuando el usuario intenta engañar a la web */
.shake-modal {
  animation: adblockShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes adblockShake {
  10%, 90% {
    transform: translate3d(-3px, 0, 0);
  }
  20%, 80% {
    transform: translate3d(5px, 0, 0);
  }
  30%, 50%, 70% {
    transform: translate3d(-7px, 0, 0);
  }
  40%, 60% {
    transform: translate3d(7px, 0, 0);
  }
}

/* ========================================================
   COMPONENTE DE PERFIL DE USUARIO (DESPLEGABLE Y POPUP)
   ======================================================== */
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* En modo desplegable el overlay es transparente para detectar clics fuera */
.profile-overlay.dropdown-mode-active {
  display: block !important;
  background: transparent;
  pointer-events: auto;
}

/* En modo popup el overlay se oscurece con desenfoque de fondo */
.profile-overlay.popup-mode-active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

/* Tarjeta principal del perfil */
.profile-card {
  background: rgba(13, 17, 26, 0.97);
  border: 1px solid rgba(253, 11, 11, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.92), 0 0 30px rgba(253, 11, 11, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
}

/* Modo Desplegable (anclado bajo el logo) */
.profile-card.dropdown-mode {
  position: absolute;
  top: 72px;
  left: 20px;
  width: 320px;
  border-radius: 20px;
  padding: 18px 18px 16px 18px;
  animation: profileFadeInDown 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Modo Popup / Fullscreen (centrado en pantalla) */
.profile-card.popup-mode {
  position: relative;
  top: auto;
  left: auto;
  width: 380px;
  max-width: 95vw;
  border-radius: 24px;
  padding: 26px 24px 22px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.98), 0 0 45px rgba(253, 11, 11, 0.4);
  animation: profilePopIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes profilePopIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Cabecera del perfil */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Insignias de Nivel */
.profile-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Nivel Especial / Premium: Dorado con degradado animado de izquierda a derecha */
.profile-level-badge.level-especial,
.profile-level-badge.level-premium {
  background: rgba(255, 140, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 14px rgba(255, 140, 0, 0.35);
}

.profile-level-badge.level-especial span,
.profile-level-badge.level-especial i,
.profile-level-badge.level-premium span,
.profile-level-badge.level-premium i {
  background: linear-gradient(90deg, #ffd700 0%, #ff8c00 25%, #ff2a2a 50%, #ffea00 75%, #ffd700 100%);
  background-size: 200% auto;
  animation: shimmerGradient 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nivel Colaborador: Cyan y Púrpura eléctrico con degradado animado */
.profile-level-badge.level-colaborador {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.35);
}

.profile-level-badge.level-colaborador span,
.profile-level-badge.level-colaborador i {
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 25%, #c084fc 50%, #38bdf8 75%, #818cf8 100%);
  background-size: 200% auto;
  animation: shimmerGradient 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nivel Free / Común / Normal: Plateado metálico con animación */
.profile-level-badge.level-free,
.profile-level-badge.level-comun,
.profile-level-badge.level-normal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 200, 200, 0.45);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.profile-level-badge.level-free span,
.profile-level-badge.level-free i,
.profile-level-badge.level-comun span,
.profile-level-badge.level-comun i,
.profile-level-badge.level-normal span,
.profile-level-badge.level-normal i {
  background: linear-gradient(90deg, #b0b0b0 0%, #ffffff 25%, #7a7a7a 50%, #f0f0f0 75%, #b0b0b0 100%);
  background-size: 200% auto;
  animation: shimmerGradient 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botón de control (Fullscreen / Minimizar) */
.btn-profile-ctrl {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.88rem;
}

.btn-profile-ctrl:hover {
  background: rgba(253, 11, 11, 0.2);
  border-color: rgba(253, 11, 11, 0.55);
  transform: scale(1.12);
}

.btn-profile-ctrl:active {
  transform: scale(0.94);
}

/* Avatar circular de perfil */
.profile-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.profile-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(253, 11, 11, 0.7);
  box-shadow: 0 0 20px rgba(253, 11, 11, 0.4), inset 0 0 12px rgba(253, 11, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle, rgba(253, 11, 11, 0.15) 0%, rgba(13, 17, 26, 0.8) 80%);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Título de Usuario */
.profile-user-section {
  text-align: center;
  margin-bottom: 12px;
}

.profile-username {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Tarjeta de Saldo Dinámico */
.profile-saldo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.profile-saldo-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.profile-saldo-value {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.2;
  word-break: break-all;
  transition: all 0.3s ease;
}

/* Escala de colores según rango de saldo */
.profile-saldo-value.saldo-rojo {
  color: #ff2a2a !important;
  text-shadow: 0 0 10px rgba(253, 11, 11, 0.6);
}

.profile-saldo-value.saldo-rojo-naranja {
  background: linear-gradient(135deg, #ff2a2a, #ff7a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 122, 0, 0.5));
}

.profile-saldo-value.saldo-naranja-verde {
  background: linear-gradient(135deg, #ff9800, #84cc16);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(132, 204, 22, 0.5));
}

.profile-saldo-value.saldo-verde-oscuro {
  color: #16a34a !important;
  text-shadow: 0 0 10px rgba(22, 163, 74, 0.6);
}

.profile-saldo-value.saldo-verde-dorado {
  background: linear-gradient(90deg, #10b981 0%, #22c55e 30%, #ffd700 70%, #10b981 100%);
  background-size: 200% auto;
  animation: shimmerGradient 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.profile-saldo-value.saldo-dorado-supremo {
  background: linear-gradient(90deg, #ffd700 0%, #ffae00 30%, #fff275 70%, #ffd700 100%);
  background-size: 200% auto;
  animation: shimmerGradient 2.5s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7));
}

/* Campos de datos: Correo y UID */
.profile-fields-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.profile-field-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 10px;
  gap: 8px;
  transition: border-color 0.25s ease;
}

.profile-field-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.86rem;
  font-family: inherit;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-field-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-field-action-btn:hover {
  transform: scale(1.15);
}

.profile-field-action-btn:active {
  transform: scale(0.92);
}

/* Campo Shop */
.profile-shop-group {
  margin-top: 2px;
}

.profile-shop-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(253, 11, 11, 0.08);
  border: 1px solid rgba(253, 11, 11, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
}

.profile-shop-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.profile-shop-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Botón Exclusivo para Administrador: cPanel (Prohibido para otros usuarios) */
.profile-cpanel-group {
  margin-top: 6px;
  display: none !important; /* Estrictamente oculto por defecto */
}

.profile-cpanel-group.visible-admin {
  display: block !important;
}

.profile-cpanel-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.12), rgba(18, 18, 18, 0.95));
  border: 1px solid rgba(253, 11, 11, 0.45);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  color: inherit;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(253, 11, 11, 0.08);
}

.profile-cpanel-box:hover {
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.22), rgba(28, 28, 28, 0.98));
  border-color: rgba(253, 11, 11, 0.85);
  box-shadow: 0 6px 18px rgba(253, 11, 11, 0.25), inset 0 0 12px rgba(253, 11, 11, 0.15);
  transform: translateY(-1px);
}

.profile-cpanel-box:active {
  transform: scale(0.98);
}

.profile-cpanel-box i.fa-cpanel {
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 5px rgba(253, 11, 11, 0.5));
}

/* Animación de barrido de izquierda a derecha (Shimmer) */
@keyframes shimmerGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* ========================================================
   CAPA OVERLAY VAST 3.0 (PRE-ROLL Y MID-ROLLS)
   ======================================================== */
.vast-ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
}

.vast-ad-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.vast-ad-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 110;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.vast-ad-badge {
  background: rgba(0, 0, 0, 0.78);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  letter-spacing: 0.5px;
}

.vast-ad-countdown {
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.btn-vast-skip {
  background: linear-gradient(135deg, #ff2a2a, #dc2626);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #ff4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(253, 11, 11, 0.4);
  transition: transform 0.2s, background 0.2s;
  pointer-events: auto;
}

.btn-vast-skip:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, #ff4444, #ef4444);
}

.btn-vast-unmute {
  position: absolute;
  bottom: 18px;
  right: 14px;
  z-index: 110;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s;
}

.btn-vast-unmute:hover {
  transform: scale(1.08);
}

.vast-ad-cta {
  position: absolute;
  bottom: 18px;
  left: 14px;
  z-index: 110;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.vast-ad-cta:hover {
  background: rgba(253, 11, 11, 0.9);
  border-color: #ff2a2a;
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .vast-ad-overlay {
    border-radius: 0;
  }
  .vast-ad-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .vast-ad-cta {
    bottom: 12px;
    left: 10px;
    font-size: 10px;
    padding: 6px 10px;
  }
  .btn-vast-unmute {
    bottom: 12px;
    right: 10px;
    width: 34px;
    height: 34px;
  }
}

/* ========================================================
   TARJETA DE ANUNCIO EN LA GRILLA (ZONA #7462757)
   - Solo se muestra si el anuncio realmente carga y tiene contenido
   - Por defecto: oculto fuera de pantalla para que NUNCA aparezca marco vacío
   - Posición PC: Última de la primera fila (Top-Right)
   - Móvil: Empuja la grilla vertical hacia abajo sin alterarla
   ======================================================== */
.grid-ad-card {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 280px !important;
  height: 420px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.grid-ad-card.ad-cargado {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, opacity 0.3s ease;
  animation: fadeInAdCard 0.35s ease forwards;
}

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

.ad-card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  height: 2.7em;
  margin: 0 auto 10px auto;
  background: rgba(0, 0, 0, 0.55);
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  backdrop-filter: blur(6px);
}

.ad-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(253, 11, 11, 0.15);
  border: 1px solid rgba(253, 11, 11, 0.35);
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98), rgba(10, 10, 10, 0.99));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

@media (max-width: 680px) {
  /* En móvil: Solo empuja la grilla vertical hacia abajo sin tocar los dramas */
  .grid-ad-card.ad-cargado {
    order: -1 !important;
    width: 100% !important;
    max-width: 285px !important;
    margin: 0 auto 18px auto !important;
  }

  .grid-ad-card.ad-cargado .ad-card-frame {
    aspect-ratio: auto !important;
    min-height: 120px !important;
    width: 100% !important;
  }
}

/* ========================================================
   AVISO PREVIO A COLABORADORES (CONTEO REGRESIVO DE 6s)
   Posición: Esquina superior derecha del reproductor
   Diseño no intrusivo con icono i y texto elegante
   ======================================================== */
.colaboradores-notice {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(253, 11, 11, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 10px rgba(253, 11, 11, 0.25);
  /* Eliminado backdrop-filter: blur(10px) para evitar lag de composición GPU */
  border-radius: 999px;
  padding: 6px 14px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 35;
  pointer-events: none;
  user-select: none;
  will-change: opacity, transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: noticeFadeIn 0.25s ease-out;
}

.colaboradores-notice .colaboradores-icon {
  font-size: 0.95rem;
  color: rgb(253, 11, 11);
  flex-shrink: 0;
}

.colaboradores-notice .colaboradores-text {
  white-space: nowrap;
}

@keyframes noticeFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 680px) {
  .colaboradores-notice {
    top: max(16px, env(safe-area-inset-top, 16px));
    right: 14px;
    font-size: 0.76rem;
    padding: 5px 12px;
    gap: 6px;
  }
}

/* ========================================================
   OVERLAY FLOTANTE IN-PAGE PUSH (ZONA #7462993)
   - PC / Laptop: Esquina inferior derecha (bottom-right), z-index alto, por encima de la grilla
   - Móvil: Esquina superior derecha (top-right), moderado, superpuesto
   - Totalmente flotante: no empuja ni mueve ninguna carátula
   ======================================================== */
.inpage-push-overlay {
  position: fixed;
  z-index: 900;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.75));
}

/* PC y Laptop: esquina inferior derecha fija por encima de la grilla */
@media (min-width: 681px) {
  .inpage-push-overlay {
    bottom: 24px !important;
    right: 24px !important;
    top: auto !important;
    left: auto !important;
    max-width: 360px !important;
    min-width: 250px;
  }
}

/* Móvil: PROHIBIDO en inferior derecha o centro; ÚNICAMENTE en parte superior derecha superpuesto */
@media (max-width: 680px) {
  .inpage-push-overlay {
    top: 66px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    max-width: 280px !important;
    width: auto !important;
  }
}

/* Ocultar automáticamente si el reproductor de video inmersivo, el cPanel o Dragshop están activos */
.player-view.active ~ .inpage-push-overlay,
.cpanel-view.active ~ .inpage-push-overlay,
.dragshop-view.active ~ .inpage-push-overlay,
body.player-active .inpage-push-overlay,
body.cpanel-active .inpage-push-overlay,
body.dragshop-active .inpage-push-overlay {
  display: none !important;
}

/* ========================================================
   PERSISTENCIA DE VISTA ACTIVA EN RECARGA (F5 / REFRESH)
   Mantiene al usuario en cPanel o Dragshop sin parpadeo de
   la página principal hasta presionar el botón Volver
   ======================================================== */
html.cpanel-active-loading #cpanel-view {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
html.dragshop-active-loading #dragshop-view {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
html.cpanel-active-loading body,
html.dragshop-active-loading body {
  overflow: hidden !important;
}

/* ========================================================
   VISTA COMPLETA DEDICADA: cPanel SPA
   - No redirecciona a otra página; opera en el mismo DOM
   - Espacio tipo página completa con animación concéntrica
   - Verificación rigurosa sin espabilación
   ======================================================== */
.cpanel-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #09090c;
  background: radial-gradient(circle at 50% 15%, rgba(220, 38, 38, 0.08) 0%, rgba(9, 9, 12, 0.98) 70%), #09090c;
  z-index: 1500;
  display: none;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(253, 11, 11, 0.45) rgba(3, 7, 18, 0.95);
}

.cpanel-view.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Scrollbar estilizada de cPanel idéntica a la página principal */
.cpanel-view::-webkit-scrollbar {
  width: 8px;
}
.cpanel-view::-webkit-scrollbar-track {
  background: rgba(3, 7, 18, 0.95);
}
.cpanel-view::-webkit-scrollbar-thumb {
  background: rgba(253, 11, 11, 0.45);
  border-radius: 4px;
}
.cpanel-view::-webkit-scrollbar-thumb:hover {
  background: rgba(253, 11, 11, 0.8);
}

/* Barra superior moderna de cPanel */
.cpanel-navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.cpanel-nav-left,
.cpanel-nav-right {
  display: flex;
  align-items: center;
  min-width: 110px;
}

.cpanel-nav-right {
  justify-content: flex-end;
}

.btn-cpanel-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cpanel-back:hover {
  background: rgba(253, 11, 11, 0.15);
  border-color: rgba(253, 11, 11, 0.4);
  color: #fff;
  transform: translateX(-2px);
}

.btn-cpanel-back:active {
  transform: scale(0.96);
}

.cpanel-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpanel-brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cpanel-brand-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(253, 11, 11, 0.5));
}

.cpanel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

/* Badge de rol en la cabecera */
.cpanel-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(253, 11, 11, 0.15);
  border: 1px solid rgba(253, 11, 11, 0.4);
  color: #ff4d4d;
  box-shadow: 0 0 12px rgba(253, 11, 11, 0.25);
}

.cpanel-role-badge.role-colaborador {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(6, 182, 212, 0.45);
  color: #22d3ee;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

/* Contenedor del Loader con círculos centrados dando vueltas en grande */
.cpanel-loader-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  transition: opacity 0.35s ease;
}

.cpanel-spinner-rings {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.cpanel-ring {
  position: absolute;
  border-radius: 50%;
}

/* Anillo exterior */
.ring-outer {
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid rgb(253, 11, 11);
  border-right: 3px solid rgba(253, 11, 11, 0.4);
  filter: drop-shadow(0 0 12px rgba(253, 11, 11, 0.55));
  animation: cpanelSpinCW 1.6s cubic-bezier(0.5, 0.1, 0.49, 0.9) infinite;
}

/* Anillo medio */
.ring-mid {
  width: 74%;
  height: 74%;
  border: 3px solid transparent;
  border-bottom: 3px solid #f97316;
  border-left: 3px solid rgba(249, 115, 22, 0.45);
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.45));
  animation: cpanelSpinCCW 1.2s cubic-bezier(0.5, 0.1, 0.49, 0.9) infinite;
}

/* Anillo interior */
.ring-inner {
  width: 48%;
  height: 48%;
  border: 2.5px solid transparent;
  border-top: 2.5px solid rgb(253, 11, 11);
  border-bottom: 2.5px solid rgba(253, 11, 11, 0.35);
  filter: drop-shadow(0 0 8px rgba(253, 11, 11, 0.5));
  animation: cpanelSpinCW 0.85s linear infinite;
}

/* Núcleo central con icono cPanel */
.cpanel-ring-center {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgb(253, 11, 11);
  animation: cpanelPulse 1.8s ease-in-out infinite;
}

@keyframes cpanelSpinCW {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cpanelSpinCCW {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes cpanelPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(253, 11, 11, 0.85));
  }
}

/* Texto Validando usuario... */
.cpanel-loader-text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  text-align: center;
  animation: cpanelTextBreathe 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes cpanelTextBreathe {
  0%, 100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(253, 11, 11, 0.45);
  }
}

/* Área de contenido del cPanel */
.cpanel-content-area {
  flex: 1;
  padding: 24px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  animation: cpanelContentFadeIn 0.4s ease forwards;
}

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

/* Dashboard Principal de Control de Acceso / Catálogo */
.cpanel-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.cpanel-header-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cpanel-sub-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

.cpanel-sub-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 4px;
}

.cpanel-sub-desc code {
  background: rgba(253, 11, 11, 0.15);
  color: #ff4d4d;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: monospace;
  font-weight: 600;
  border: 1px solid rgba(253, 11, 11, 0.3);
}

.cpanel-header-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cpanel-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Grid de 2 Espacios (Agregar a la izquierda, Editar a la derecha) */
.cpanel-grid-container {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 24px;
  align-items: start;
}

.cpanel-card-panel {
  background: rgba(15, 20, 32, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.25s ease;
}

.cpanel-card-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.cpanel-panel-add {
  position: sticky;
  top: 90px;
}

.cpanel-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cpanel-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.cpanel-panel-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 6px;
}

.tag-create {
  background: rgba(253, 11, 11, 0.16);
  color: #ff4d4d;
  border: 1px solid rgba(253, 11, 11, 0.35);
}

.cpanel-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cpanel-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cpanel-tool:hover {
  background: rgba(253, 11, 11, 0.15);
  border-color: rgba(253, 11, 11, 0.4);
  color: #fff;
}

/* Formularios de cPanel */
.cpanel-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cpanel-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cpanel-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cpanel-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.cpanel-label-hint {
  font-size: 0.7rem;
  color: #64748b;
  font-style: italic;
}

.cpanel-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.cpanel-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 0.88rem;
  pointer-events: none;
  transition: color 0.25s ease;
}

.cpanel-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.25s ease;
}

.cpanel-input:focus {
  border-color: rgba(253, 11, 11, 0.6);
  box-shadow: 0 0 12px rgba(253, 11, 11, 0.22);
  background: rgba(0, 0, 0, 0.6);
}

.cpanel-input:focus + .cpanel-input-icon,
.cpanel-input-box:focus-within .cpanel-input-icon {
  color: rgb(253, 11, 11);
}

/* Vista Previa en Vivo */
.cpanel-preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.cpanel-preview-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cpanel-card-preview {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cpanel-preview-poster-box {
  width: 55px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpanel-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpanel-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #475569;
  font-size: 0.62rem;
  text-align: center;
  padding: 4px;
}

.cpanel-preview-placeholder i {
  font-size: 1.1rem;
}

.cpanel-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
}

.cpanel-preview-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpanel-preview-link {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botones de Acción */
.cpanel-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-cpanel-submit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(135deg, rgb(253, 11, 11) 0%, #b91c1c 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(253, 11, 11, 0.35);
  transition: all 0.25s ease;
}

.btn-cpanel-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(253, 11, 11, 0.5);
  filter: brightness(1.08);
}

.btn-cpanel-submit:active {
  transform: scale(0.98);
}

.btn-cpanel-reset,
.btn-cpanel-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cpanel-reset:hover,
.btn-cpanel-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Barra de Búsqueda */
.cpanel-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.cpanel-search-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 0.92rem;
  pointer-events: none;
}

.cpanel-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 40px 11px 40px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}

.cpanel-search-input:focus {
  border-color: rgba(253, 11, 11, 0.6);
  box-shadow: 0 0 14px rgba(253, 11, 11, 0.22);
}

.btn-cpanel-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
}

.btn-cpanel-clear-search:hover {
  color: #fff;
}

.cpanel-list-status {
  font-size: 0.78rem;
  color: #64748b;
  padding: 0 4px;
}

/* Listado de Cards con Scroll Fluido */
.cpanel-cards-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.cpanel-cards-scroll-list::-webkit-scrollbar {
  width: 6px;
}

.cpanel-cards-scroll-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.cpanel-cards-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(253, 11, 11, 0.35);
  border-radius: 6px;
}

.cpanel-cards-scroll-list::-webkit-scrollbar-thumb:hover {
  background: rgba(253, 11, 11, 0.6);
}

.cpanel-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.22s ease;
}

.cpanel-card-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(253, 11, 11, 0.3);
  transform: translateX(2px);
}

.cpanel-card-thumb-box {
  width: 48px;
  height: 68px;
  border-radius: 7px;
  overflow: hidden;
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpanel-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpanel-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cpanel-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpanel-card-id-badge {
  font-size: 0.7rem;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cpanel-card-title-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpanel-card-link-preview {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-cpanel-action-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.35);
  color: #ff4d4d;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-cpanel-action-edit:hover {
  background: rgba(253, 11, 11, 0.25);
  color: #fff;
  border-color: rgba(253, 11, 11, 0.6);
  transform: scale(1.04);
}

.cpanel-list-loading,
.cpanel-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: #64748b;
  font-size: 0.88rem;
  text-align: center;
}

.cpanel-load-more-box {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.btn-cpanel-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cpanel-load-more:hover {
  background: rgba(253, 11, 11, 0.15);
  border-color: rgba(253, 11, 11, 0.4);
  color: #fff;
}

/* Modal de Edición */
.cpanel-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cpanelModalFadeIn 0.25s ease;
}

@keyframes cpanelModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cpanel-modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #0f1420;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 92vh;
  overflow-y: auto;
  /* Popup sin scroll visual */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE y Edge */
}

.cpanel-modal-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.cpanel-modal-card .cpanel-form {
  gap: 10px;
}

.cpanel-modal-card .cpanel-form-group {
  gap: 4px;
}

.cpanel-modal-card .cpanel-input {
  padding: 8px 14px 8px 38px;
  font-size: 0.86rem;
}

.cpanel-modal-card .cpanel-preview-wrapper {
  padding: 8px 12px;
  margin-top: 0;
  gap: 6px;
}

.cpanel-modal-card .cpanel-preview-poster-box {
  width: 44px;
  height: 60px;
}

.cpanel-modal-card .cpanel-actions-row {
  margin-top: 4px;
}

.cpanel-modal-card .btn-cpanel-submit,
.cpanel-modal-card .btn-cpanel-cancel {
  padding: 10px 14px;
  font-size: 0.85rem;
}

.btn-cpanel-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cpanel-modal-close:hover {
  background: rgba(253, 11, 11, 0.3);
  color: #fff;
}

.cpanel-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cpanel-modal-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cpanel-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.cpanel-modal-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.cpanel-modal-subtitle code {
  color: #ff4d4d;
  background: rgba(253, 11, 11, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Toast de Notificaciones Flotante */
.cpanel-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1700;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(15, 20, 32, 0.95);
  border: 1px solid rgba(253, 11, 11, 0.5);
  border-radius: 12px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(253, 11, 11, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: cpanelToastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ========================================================
   ADAPTACIÓN RESPONSIVE (PANTALLAS PEQUEÑAS Y MÓVILES)
   - Una sola columna vertical para pantallas pequeñas/móviles
   - Primero se visualiza 'Agregar Dramas' (panel izquierdo en desktop)
   - Desplazamiento vertical fluido hacia abajo para mostrar 'Editar Dramas'
   - En pantallas de escritorio se mantiene la cuadrícula de 2 columnas
   ======================================================== */
@media (max-width: 900px) {
  .cpanel-grid-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 22px;
  }

  .cpanel-panel-add {
    order: 1; /* Primero arriba: Agregar Dramas (panel izquierdo en desktop) */
    position: static !important;
    width: 100%;
  }

  .cpanel-panel-manage {
    order: 2; /* Hacia abajo: Editar Dramas con scroll vertical */
    width: 100%;
  }

  .cpanel-cards-scroll-list {
    max-height: 480px;
  }
}

@media (max-width: 680px) {
  .cpanel-navbar {
    padding: 12px 14px;
  }

  .btn-cpanel-back {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .cpanel-title {
    font-size: 1.05rem;
  }

  .cpanel-brand-icon {
    font-size: 1.45rem;
  }

  .cpanel-nav-left,
  .cpanel-nav-right {
    min-width: 75px;
  }

  .cpanel-spinner-rings {
    width: 135px;
    height: 135px;
    margin-bottom: 22px;
  }

  .cpanel-loader-text {
    font-size: 1rem;
  }

  .cpanel-content-area {
    padding: 14px 12px 40px 12px;
  }

  .cpanel-card-panel {
    padding: 18px 14px;
    border-radius: 16px;
    gap: 14px;
  }

  .cpanel-header-sub {
    gap: 10px;
    padding-bottom: 14px;
  }

  .cpanel-sub-title {
    font-size: 1.15rem;
  }

  .cpanel-card-item {
    padding: 9px 12px;
    gap: 10px;
  }

  .cpanel-card-thumb-box {
    width: 44px;
    height: 62px;
  }

  .cpanel-card-title-text {
    font-size: 0.88rem;
  }

  .btn-cpanel-action-edit {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* ========================================================
   POPUP DE ACCESO NO AUTORIZADO CPANEL (FONDO NEGRO ESTRICTO)
   - Fondo negro total según especificación
   - Tarjeta centrada con diseño moderno y acento rojo
   - Botón 'Entendido' con degradado rojo institucional
   ======================================================== */
.cpanel-unauthorized-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000; /* Fondo negro estricto solicitado */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cpanel-unauthorized-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 17, 26, 0.98);
  border: 1px solid rgba(253, 11, 11, 0.4);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 32px rgba(253, 11, 11, 0.25);
  padding: 36px 30px 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modalPopIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cpanel-unauthorized-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.cpanel-unauthorized-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgb(253, 11, 11);
  box-shadow: 0 0 24px rgba(253, 11, 11, 0.35);
  margin-bottom: 16px;
}

.cpanel-unauthorized-title {
  margin: 0 0 12px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.cpanel-unauthorized-msg {
  margin: 0 0 10px 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.cpanel-unauthorized-submsg {
  margin: 0 0 24px 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.btn-cpanel-unauthorized {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 1));
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(253, 11, 11, 0.45);
  transition: all 0.25s ease;
}

.btn-cpanel-unauthorized:hover {
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 38, 38, 1));
  box-shadow: 0 6px 26px rgba(253, 11, 11, 0.65);
  transform: translateY(-2px);
}

.btn-cpanel-unauthorized:active {
  transform: scale(0.97);
}

@media (max-width: 480px) {
  .cpanel-unauthorized-card {
    padding: 28px 20px 24px 20px;
    max-width: 320px;
    border-radius: 18px;
  }

  .cpanel-unauthorized-title {
    font-size: 1.25rem;
  }

  .cpanel-unauthorized-msg {
    font-size: 0.86rem;
  }

  .cpanel-unauthorized-submsg {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .btn-cpanel-unauthorized {
    height: 44px;
    font-size: 0.92rem;
  }
}

/* ========================================================
   MODALES DE DOBLE SESIÓN / LÍMITE DE DISPOSITIVOS
   - Fondo oscuro glassmorphism con desenfoque
   - Tarjeta centrada con acento rojo institucional y brillo
   - Botón 'Entendido' de confirmación
   ======================================================== */
.session-limit-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.session-limit-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 17, 26, 0.98);
  border: 1px solid rgba(253, 11, 11, 0.45);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(253, 11, 11, 0.25);
  padding: 36px 30px 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modalPopIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.session-limit-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.session-limit-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: rgb(253, 11, 11);
  box-shadow: 0 0 24px rgba(253, 11, 11, 0.35);
  margin-bottom: 18px;
}

.session-limit-title {
  margin: 0 0 12px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.session-limit-msg {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.session-limit-submsg {
  margin: 0 0 24px 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.btn-session-limit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 1));
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(253, 11, 11, 0.45);
  transition: all 0.25s ease;
}

.btn-session-limit:hover {
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 38, 38, 1));
  box-shadow: 0 6px 26px rgba(253, 11, 11, 0.65);
  transform: translateY(-2px);
}

.btn-session-limit:active {
  transform: scale(0.97);
}

@media (max-width: 480px) {
  .session-limit-card {
    padding: 28px 20px 24px 20px;
    max-width: 320px;
    border-radius: 18px;
  }

  .session-limit-title {
    font-size: 1.25rem;
  }

  .session-limit-msg {
    font-size: 0.88rem;
  }

  .session-limit-submsg {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .btn-session-limit {
    height: 44px;
    font-size: 0.92rem;
  }
}

/* ========================================================
   VISTA COMPLETA DEDICADA: Dragshop SPA
   - Mismo DOM, sin redireccionamiento
   - Fondo oscuro glassmorphism con degradado rojo institucional
   - Barra superior con icono de shop
   - Scrollbar estilizada idéntica a la página principal
   ======================================================== */
.dragshop-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #09090c;
  background: radial-gradient(circle at 50% 15%, rgba(220, 38, 38, 0.08) 0%, rgba(9, 9, 12, 0.98) 70%), #09090c;
  z-index: 1500;
  display: none;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(253, 11, 11, 0.45) rgba(3, 7, 18, 0.95);
}

.dragshop-view.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Scrollbar estilizada de Dragshop idéntica a la página principal */
.dragshop-view::-webkit-scrollbar {
  width: 8px;
}
.dragshop-view::-webkit-scrollbar-track {
  background: rgba(3, 7, 18, 0.95);
}
.dragshop-view::-webkit-scrollbar-thumb {
  background: rgba(253, 11, 11, 0.45);
  border-radius: 4px;
}
.dragshop-view::-webkit-scrollbar-thumb:hover {
  background: rgba(253, 11, 11, 0.8);
}

/* Barra superior moderna de Dragshop */
.dragshop-navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.dragshop-nav-left,
.dragshop-nav-right {
  display: flex;
  align-items: center;
  min-width: 110px;
}

.dragshop-nav-right {
  justify-content: flex-end;
}

.btn-dragshop-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-dragshop-back:hover {
  background: rgba(253, 11, 11, 0.15);
  border-color: rgba(253, 11, 11, 0.4);
  color: #fff;
  transform: translateX(-2px);
}

.btn-dragshop-back:active {
  transform: scale(0.96);
}

.dragshop-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dragshop-brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dragshop-brand-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(253, 11, 11, 0.5));
}

.dragshop-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

/* Badge de usuario en el menú superior derecho */
.dragshop-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  max-width: 260px;
}

.dragshop-user-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dragshop-user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dragshop-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.dragshop-role-badge.role-admin {
  background: rgba(253, 11, 11, 0.2);
  border: 1px solid rgba(253, 11, 11, 0.5);
  color: #ff4d4d;
  box-shadow: 0 0 8px rgba(253, 11, 11, 0.3);
}

.dragshop-role-badge.role-colaborador {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #22d3ee;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

/* Contenedor del Loader con círculos centrados dando vueltas en grande */
.dragshop-loader-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  transition: opacity 0.35s ease;
}

.dragshop-spinner-rings {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.dragshop-ring {
  position: absolute;
  border-radius: 50%;
}

.dragshop-ring.ring-outer {
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid rgb(253, 11, 11);
  border-right: 3px solid rgba(253, 11, 11, 0.4);
  filter: drop-shadow(0 0 12px rgba(253, 11, 11, 0.55));
  animation: cpanelSpinCW 1.6s cubic-bezier(0.5, 0.1, 0.49, 0.9) infinite;
}

.dragshop-ring.ring-mid {
  width: 74%;
  height: 74%;
  border: 3px solid transparent;
  border-bottom: 3px solid #f97316;
  border-left: 3px solid rgba(249, 115, 22, 0.45);
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.45));
  animation: cpanelSpinCCW 1.2s cubic-bezier(0.5, 0.1, 0.49, 0.9) infinite;
}

.dragshop-ring.ring-inner {
  width: 48%;
  height: 48%;
  border: 2.5px solid transparent;
  border-top: 2.5px solid rgb(253, 11, 11);
  border-bottom: 2.5px solid rgba(253, 11, 11, 0.35);
  filter: drop-shadow(0 0 8px rgba(253, 11, 11, 0.5));
  animation: cpanelSpinCW 0.85s linear infinite;
}

.dragshop-ring-center {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgb(253, 11, 11);
  animation: cpanelPulse 1.8s ease-in-out infinite;
}

.dragshop-loader-text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  text-align: center;
  animation: cpanelTextBreathe 2s ease-in-out infinite;
}

/* Área de contenido de Dragshop: Página en blanco con los mismos diseños y colores */
.dragshop-content-area {
  flex: 1;
  padding: 24px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  animation: cpanelContentFadeIn 0.4s ease forwards;
}

.dragshop-dashboard {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
  padding-bottom: 50px;
}

/* ========================================================
   SECCIONES DE DRAGSHOP: COMPRA DE DRAGCOINS Y SUSCRIPCIÓN
   - PC y Laptop: 2 columnas, hasta 5 cards por sección
   - Móvil: 1 columna, 100% responsivo y adaptado
   - Estilo dark glassmorphism con acentos rojos institucionales
   ======================================================== */

.dragshop-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dragshop-section-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dragshop-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.35);
  color: #ff4d4d;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(253, 11, 11, 0.15);
}

.dragshop-section-badge.badge-subscription {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.dragshop-section-title {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.dragshop-section-subtitle {
  font-size: clamp(0.85rem, 1.8vw, 0.98rem);
  color: #94a3b8;
  max-width: 680px;
  margin: 8px auto 0 auto;
  line-height: 1.5;
  text-align: center;
}

.dragshop-section-divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgb(253, 11, 11), transparent);
  border-radius: 999px;
  margin-top: 14px;
}

/* Grilla de 2 columnas para PC/Laptop (hasta 5 cards) */
.dragshop-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

/* Card de producto en Dragshop */
.dragshop-product-card {
  background: linear-gradient(145deg, rgba(20, 20, 28, 0.88) 0%, rgba(10, 10, 14, 0.96) 100%);
  border: 1px solid rgba(253, 11, 11, 0.22);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.dragshop-product-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(253, 11, 11, 0.14) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.dragshop-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(253, 11, 11, 0.65);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75), 0 0 24px rgba(253, 11, 11, 0.22);
}

/* Cabecera de la card */
.dragshop-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dragshop-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dragshop-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ff4d4d;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
  width: fit-content;
}

.dragshop-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.3;
}

/* Contenedor de la imagen (sin fondos negros ni barras vacías) */
.dragshop-card-img-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 4px 0 10px 0;
  overflow: visible;
  position: relative;
}

.dragshop-card-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: block;
  margin: 0 auto;
}

.dragshop-product-card:hover .dragshop-card-img {
  transform: scale(1.03);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.8), 0 0 24px rgba(253, 11, 11, 0.3);
  border-color: rgba(253, 11, 11, 0.5);
}

.dragshop-product-card[data-tipo="subscription"]:hover .dragshop-card-img {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.8), 0 0 24px rgba(245, 158, 11, 0.28);
}

.dragshop-img-fallback {
  width: 100%;
  max-width: 320px;
  height: 220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.dragshop-img-fallback i {
  font-size: 2.4rem;
  color: rgba(253, 11, 11, 0.55);
}

/* Descripción en formato lista por puntos y acordeón interactivo */
.dragshop-card-desc-wrapper {
  width: 100%;
  margin: 4px 0 8px 0;
  display: flex;
  flex-direction: column;
}

/* Píldora interactiva de toggle */
.dragshop-desc-toggle-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  user-select: none;
}

.dragshop-desc-toggle-pill i:first-child {
  color: #ff4d4d;
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.dragshop-desc-toggle-pill.dragshop-toggle-vip i:first-child {
  color: #fbbf24;
}

.dragshop-toggle-chevron {
  font-size: 0.72rem;
  color: #94a3b8;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover sobre la card o píldora */
.dragshop-product-card:hover .dragshop-desc-toggle-pill {
  background: rgba(253, 11, 11, 0.09);
  border-color: rgba(253, 11, 11, 0.35);
  color: #ffffff;
}

.dragshop-product-card[data-tipo="subscription"]:hover .dragshop-desc-toggle-pill {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.35);
  color: #ffffff;
}

/* Estado Expandido */
.dragshop-product-card.is-expanded {
  border-color: rgba(253, 11, 11, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 22px rgba(253, 11, 11, 0.18);
}

.dragshop-product-card[data-tipo="subscription"].is-expanded {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 22px rgba(245, 158, 11, 0.22);
}

.dragshop-product-card.is-expanded .dragshop-desc-toggle-pill {
  background: rgba(253, 11, 11, 0.14);
  border-color: rgba(253, 11, 11, 0.45);
  color: #ffffff;
}

.dragshop-product-card[data-tipo="subscription"].is-expanded .dragshop-desc-toggle-pill {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #ffffff;
}

.dragshop-product-card.is-expanded .dragshop-toggle-chevron {
  transform: rotate(180deg);
}

/* Animación de apertura suave de la lista por puntos */
.dragshop-card-desc {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin 0.3s ease, padding 0.3s ease;
}

.dragshop-product-card.is-expanded .dragshop-card-desc {
  max-height: 1000px;
  opacity: 1;
  margin-top: 12px;
  padding-bottom: 4px;
}

.dragshop-desc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dragshop-desc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.48;
  color: #cbd5e1;
}

.dragshop-desc-bullet {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.dragshop-desc-text {
  flex: 1;
  word-break: break-word;
}

.dragshop-desc-key {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.dragshop-desc-val {
  color: #94a3b8;
}

.dragshop-desc-item-header {
  margin-top: 6px;
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.dragshop-desc-heading-text {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #f1f5f9;
}

/* Pie de la card: Precio y Botón Comprar */
.dragshop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dragshop-card-price-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dragshop-card-price-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.dragshop-card-price-val {
  font-size: 1.22rem;
  font-weight: 900;
  color: #ff3b3b;
  letter-spacing: -0.3px;
  text-shadow: 0 0 12px rgba(253, 11, 11, 0.3);
}

.btn-dragshop-buy {
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 0.98));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  border: 1px solid rgba(253, 11, 11, 0.6);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(253, 11, 11, 0.4);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-dragshop-buy:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(253, 11, 11, 0.65);
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 20, 20, 1));
}

.btn-dragshop-buy:active {
  transform: translateY(0) scale(0.98);
}

/* Estilos VIP para Cards y Botón "Obtener" en Suscripciones */
.dragshop-card-badge-vip {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15) !important;
}

.dragshop-sub-price-val {
  color: #fbbf24 !important;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.35) !important;
}

.btn-dragshop-obtain {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95), rgba(253, 11, 11, 0.95)) !important;
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.38) !important;
}

.btn-dragshop-obtain:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 1), rgba(245, 158, 11, 1), rgba(220, 20, 20, 1)) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.65) !important;
  transform: translateY(-2px) scale(1.03) !important;
}

.btn-dragshop-obtain:active {
  transform: translateY(0) scale(0.98) !important;
}

.dragshop-product-card[data-tipo="subscription"]:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75), 0 0 24px rgba(245, 158, 11, 0.18);
}

/* Placeholder de Suscripción */
.dragshop-subscription-placeholder {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(20, 20, 28, 0.6) 0%, rgba(10, 10, 14, 0.8) 100%);
  border: 1.5px dashed rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 38px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.dragshop-sub-placeholder-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.dragshop-sub-placeholder-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.dragshop-sub-placeholder-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 520px;
  margin: 0;
  line-height: 1.5;
}

/* Estado Vacío de Dragcoins */
.dragshop-empty-state {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dragshop-empty-state i {
  font-size: 2.5rem;
  color: rgba(253, 11, 11, 0.4);
}

/* Skeletons de carga */
.dragshop-grid-skeleton {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.dragshop-skeleton-card {
  height: 320px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.6s infinite;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modal de Compra Dragshop */
.dragshop-buy-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dragshop-buy-modal-card {
  background: linear-gradient(145deg, #14141c 0%, #0c0c10 100%);
  border: 1px solid rgba(253, 11, 11, 0.35);
  border-radius: 22px;
  padding: 30px;
  max-width: 460px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(253, 11, 11, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-dragshop-buy-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dragshop-buy-close:hover {
  background: rgba(253, 11, 11, 0.2);
  color: #ffffff;
  border-color: rgba(253, 11, 11, 0.4);
}

.dragshop-buy-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3b3b;
  font-size: 1.8rem;
  box-shadow: 0 0 24px rgba(253, 11, 11, 0.25);
}

.dragshop-buy-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.dragshop-buy-product-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 18px;
  width: 100%;
  text-align: left;
}

.dragshop-buy-thumb-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(253, 11, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d4d;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.dragshop-buy-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dragshop-buy-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.dragshop-buy-price-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ff3b3b;
}

.dragshop-buy-instructions {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.dragshop-buy-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.btn-dragshop-proceed-buy {
  background: linear-gradient(135deg, #0088cc, #0077b5);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 136, 204, 0.4);
  transition: all 0.25s ease;
}

.btn-dragshop-proceed-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 136, 204, 0.6);
  background: linear-gradient(135deg, #0099e6, #0088cc);
}

.btn-dragshop-cancel-buy {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-dragshop-cancel-buy:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Botón de pago seguro con Wompi */
.btn-dragshop-proceed-wompi {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
  width: 100%;
}

.btn-dragshop-proceed-wompi:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.btn-dragshop-proceed-wompi:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Caja de identidad verificada del usuario en el modal */
.dragshop-buy-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 6px 0 10px 0;
  width: 100%;
}

.dragshop-buy-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dragshop-buy-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.dragshop-buy-user-email {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dragshop-buy-user-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dragshop-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Popup de acceso no autorizado a Dragshop (Fondo negro con frases y botón entendido) */
.dragshop-unauthorized-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dragshop-unauthorized-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 17, 26, 0.98);
  border: 1px solid rgba(253, 11, 11, 0.4);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 32px rgba(253, 11, 11, 0.25);
  padding: 36px 30px 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modalPopIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dragshop-unauthorized-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.dragshop-unauthorized-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgb(253, 11, 11);
  box-shadow: 0 0 24px rgba(253, 11, 11, 0.35);
  margin-bottom: 16px;
}

.dragshop-unauthorized-title {
  margin: 0 0 12px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.dragshop-unauthorized-msg {
  margin: 0 0 10px 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.dragshop-unauthorized-submsg {
  margin: 0 0 24px 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.btn-dragshop-unauthorized {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 1));
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(253, 11, 11, 0.45);
  transition: all 0.25s ease;
}

.btn-dragshop-unauthorized:hover {
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 38, 38, 1));
  box-shadow: 0 6px 26px rgba(253, 11, 11, 0.65);
  transform: translateY(-2px);
}

.btn-dragshop-unauthorized:active {
  transform: scale(0.97);
}

/* Popup de membresía VIP activa (Bloqueo anti-acumulación con botón entendido) */
.dragshop-vip-active-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dragshop-vip-active-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 17, 26, 0.98);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 32px rgba(251, 191, 36, 0.25);
  padding: 36px 30px 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modalPopIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dragshop-vip-active-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.dragshop-vip-active-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffd700;
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.4);
  margin-bottom: 18px;
}

.dragshop-vip-active-title {
  margin: 0 0 14px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.gradient-accent-gold {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dragshop-vip-active-msg {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.dragshop-vip-active-submsg {
  margin: 0 0 24px 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.btn-dragshop-vip-active {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}

.btn-dragshop-vip-active:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 26px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.btn-dragshop-vip-active:active {
  transform: scale(0.97);
}

/* Botón interactivo de Shop en el modal de perfil */
.profile-shop-btn {
  width: 100%;
  border: 1px solid rgba(253, 11, 11, 0.35);
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.12), rgba(18, 18, 18, 0.95));
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  color: inherit;
}

.profile-shop-btn:hover {
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.24), rgba(30, 30, 30, 0.95));
  border-color: rgba(253, 11, 11, 0.65);
  box-shadow: 0 0 16px rgba(253, 11, 11, 0.3);
  transform: translateY(-1px);
}

.profile-shop-btn:active {
  transform: scale(0.97);
}

/* Responsivo de Dragshop para móvil */
@media (max-width: 680px) {
  .dragshop-navbar {
    padding: 12px 14px;
  }

  .btn-dragshop-back {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .dragshop-title {
    font-size: 1.05rem;
  }

  .dragshop-brand-icon {
    font-size: 1.45rem;
  }

  .dragshop-nav-left,
  .dragshop-nav-right {
    min-width: 75px;
  }

  .dragshop-spinner-rings {
    width: 135px;
    height: 135px;
    margin-bottom: 22px;
  }

  .dragshop-loader-text {
    font-size: 1rem;
  }

  .dragshop-content-area {
    padding: 14px 12px 40px 12px;
  }

  .dragshop-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .dragshop-section-title {
    font-size: 1.35rem !important;
  }

  .dragshop-product-card {
    padding: 16px !important;
  }

  .dragshop-card-img-box {
    height: auto !important;
    padding: 0 !important;
    margin: 2px 0 8px 0 !important;
    background: transparent !important;
    border: none !important;
  }

  .dragshop-card-img {
    max-height: 290px !important;
    max-width: 100% !important;
  }

  .dragshop-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .btn-dragshop-buy {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
  }

  .dragshop-card-price-box {
    text-align: center !important;
  }

  .dragshop-grid-skeleton {
    grid-template-columns: 1fr !important;
  }

  .dragshop-user-badge {
    padding: 4px 10px;
    max-width: 140px;
  }

  .dragshop-user-name {
    font-size: 0.78rem;
  }

  .btn-dragshop-add-card span {
    display: none;
  }
  .btn-dragshop-add-card {
    padding: 6px 10px;
  }
}

/* ========================================================
   MODO ADMIN DRAGSHOP: EDICIÓN, AÑADIR CARDS Y MODALES
   ======================================================== */

/* Botón Añadir Card en la barra superior */
.btn-dragshop-add-card {
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.92), rgba(185, 28, 28, 0.98));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  border: 1px solid rgba(253, 11, 11, 0.6);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(253, 11, 11, 0.35);
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-dragshop-add-card:hover {
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 20, 20, 1));
  box-shadow: 0 6px 20px rgba(253, 11, 11, 0.6);
  transform: translateY(-2px);
}

.btn-dragshop-add-card:active {
  transform: scale(0.97);
}

/* Botón Editar en la esquina superior derecha de cada card */
.btn-dragshop-card-edit {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.38);
  color: #ff4d4d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-dragshop-card-edit:hover {
  background: rgba(253, 11, 11, 0.32);
  border-color: rgba(253, 11, 11, 0.8);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(253, 11, 11, 0.45);
  transform: scale(1.08);
}

.dragshop-product-card[data-tipo="subscription"] .btn-dragshop-card-edit {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fbbf24;
}

.dragshop-product-card[data-tipo="subscription"] .btn-dragshop-card-edit:hover {
  background: rgba(245, 158, 11, 0.32);
  border-color: rgba(245, 158, 11, 0.8);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
  transform: scale(1.08);
}

/* Modales de Administración en Dragshop */
.dragshop-admin-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}

.dragshop-admin-modal-card {
  background: linear-gradient(145deg, #13131c 0%, #0c0c12 100%);
  border: 1px solid rgba(253, 11, 11, 0.4);
  border-radius: 20px;
  padding: 26px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(253, 11, 11, 0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.dragshop-admin-modal-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

.btn-dragshop-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-dragshop-modal-close:hover {
  background: rgba(253, 11, 11, 0.2);
  color: #ffffff;
  border-color: rgba(253, 11, 11, 0.5);
}

.dragshop-admin-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 32px;
}

.dragshop-admin-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(253, 11, 11, 0.12);
  border: 1px solid rgba(253, 11, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d4d;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.dragshop-admin-icon-badge.badge-add {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.dragshop-admin-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.dragshop-admin-doc-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff6b6b;
  background: rgba(253, 11, 11, 0.1);
  border: 1px solid rgba(253, 11, 11, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.dragshop-admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dragshop-admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dragshop-admin-form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dragshop-admin-input,
.dragshop-admin-textarea {
  width: 100%;
  background: rgba(6, 8, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

.dragshop-admin-input:focus,
.dragshop-admin-textarea:focus {
  border-color: rgba(253, 11, 11, 0.7);
  box-shadow: 0 0 16px rgba(253, 11, 11, 0.25);
  background: rgba(10, 12, 20, 0.95);
}

.dragshop-admin-textarea {
  resize: vertical;
  min-height: 70px;
}

/* Selector de tipo en Añadir Card */
.dragshop-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.dragshop-type-option {
  position: relative;
  cursor: pointer;
}

.dragshop-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-option-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.type-option-content i {
  font-size: 1.4rem;
  color: #94a3b8;
  transition: color 0.25s ease;
}

.type-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.type-count-badge {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.dragshop-type-option input:checked + .type-option-content {
  background: rgba(253, 11, 11, 0.12);
  border-color: rgba(253, 11, 11, 0.7);
  box-shadow: 0 0 16px rgba(253, 11, 11, 0.25);
}

.dragshop-type-option input:checked + .type-option-content i {
  color: #ff3b3b;
}

.dragshop-type-option input:disabled + .type-option-content {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}

.dragshop-limit-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Vista previa en tiempo real */
.dragshop-admin-preview-box {
  background: rgba(5, 6, 10, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dragshop-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.dragshop-preview-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dragshop-preview-img-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  overflow: hidden;
  flex-shrink: 0;
}

.dragshop-preview-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dragshop-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dragshop-preview-info h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dragshop-preview-info span {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ff3b3b;
}

/* Botones de acción modal */
.dragshop-admin-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.btn-dragshop-admin-save {
  background: linear-gradient(135deg, rgba(253, 11, 11, 0.95), rgba(185, 28, 28, 1));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(253, 11, 11, 0.4);
  transition: all 0.25s ease;
}

.btn-dragshop-admin-save:hover {
  background: linear-gradient(135deg, rgba(255, 30, 30, 1), rgba(220, 20, 20, 1));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(253, 11, 11, 0.6);
}

.btn-dragshop-admin-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-dragshop-admin-cancel {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-dragshop-admin-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Toast flotante de Dragshop */
.dragshop-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.96), rgba(8, 10, 16, 0.98));
  border: 1px solid rgba(253, 11, 11, 0.4);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(253, 11, 11, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 2500;
  animation: toastSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dragshop-toast i {
  font-size: 1.2rem;
  color: #10b981;
}

.dragshop-toast.error {
  border-color: rgba(239, 68, 68, 0.6);
}

.dragshop-toast.error i {
  color: #ef4444;
}

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

/* ========================================================
   BADGE DE ESTADO DE ALMACENAMIENTO (EXCLUSIVO ADMINISTRADOR)
   Posición: Esquina superior izquierda de la card
   ======================================================== */
.admin-video-status-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  cursor: help;
  user-select: none;
  transition: all 0.25s ease;
}

/* 1. Almacenamiento 100% completado (Circulito con chulito verde) */
.admin-video-status-badge.status-completed {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.7);
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}
.admin-video-status-badge.status-completed i {
  color: #10b981;
  font-size: 0.82rem;
}

/* 2. En proceso (Muestra porcentaje y spinner animado en ámbar) */
.admin-video-status-badge.status-uploading {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.75);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  animation: pulseBadgeUploading 2s infinite ease-in-out;
}
.admin-video-status-badge.status-uploading i {
  color: #fcd34d;
  font-size: 0.78rem;
}

@keyframes pulseBadgeUploading {
  0%, 100% {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.65);
  }
}

/* 3. Falló (Muestra X roja) */
.admin-video-status-badge.status-error {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.75);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.admin-video-status-badge.status-error i {
  color: #ef4444;
  font-size: 0.82rem;
}

/* 4. Pendiente / No iniciado */
.admin-video-status-badge.status-idle {
  background: rgba(51, 65, 85, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}
.admin-video-status-badge.status-idle i {
  color: #94a3b8;
  font-size: 0.78rem;
}

/* 5. En emisión (Para usuarios generales cuando el video aún no está 100% en R2) */
.admin-video-status-badge.status-emision {
  background: rgba(168, 85, 247, 0.28);
  border: 1px solid rgba(192, 132, 252, 0.8);
  color: #f3e8ff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
  animation: pulseBadgeEmision 2.2s infinite ease-in-out;
}
.admin-video-status-badge.status-emision i {
  color: #c084fc;
  font-size: 0.80rem;
}
@keyframes pulseBadgeEmision {
  0%, 100% {
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
  }
}

/* ========================================================
   RESPONSIVIDAD Y SCROLL TOTAL PARA PASARELA WOMPI (MÓVIL Y ESCRITORIO)
   Soluciona el bloqueo de desplazamiento (scroll) vertical en dispositivos móviles.
   ======================================================== */

/* 1. Desbloqueo del scroll en html y body cuando Wompi está abierto */
html.wompi-active,
body.wompi-active,
html:has(.waybox-backdrop:not([hidden])),
body:has(.waybox-backdrop:not([hidden])),
html:has(.waybox-modal:not([hidden])),
body:has(.waybox-modal:not([hidden])) {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: auto !important;
  overscroll-behavior: auto !important;
}

html.wompi-active body,
html.dragshop-active-loading body.wompi-active,
html:has(.waybox-backdrop:not([hidden])) body,
html:has(.waybox-modal:not([hidden])) body {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: auto !important;
}

/* 2. Inhabilitar interacción en las capas de fondo mientras Wompi está activo */
body.wompi-active #main-view,
body.wompi-active .dragshop-view,
body:has(.waybox-backdrop:not([hidden])) .dragshop-view,
body:has(.waybox-modal:not([hidden])) .dragshop-view {
  pointer-events: none !important;
}

/* 3. Backdrop de Wompi con desenfoque elegante y posición fija global */
.waybox-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: rgba(3, 7, 18, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 2147483646 !important;
  touch-action: pan-y !important;
  overflow: hidden !important;
}

/* 4. Contenedor modal de Wompi: centrado, 100% responsive y con margen inferior generoso */
.waybox-modal {
  position: absolute !important;
  top: 12px !important;
  left: 0 !important;
  right: 0 !important;
  width: calc(100% - 20px) !important;
  max-width: 440px !important;
  margin: 0 auto 80px auto !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(16, 185, 129, 0.18) !important;
  background-color: #0f172a !important;
  z-index: 2147483647 !important;
  overflow: visible !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 5. Iframe de la pasarela: ancho completo y soporte táctil fluido */
.waybox-iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 480px !important;
  border: 0 !important;
  border-radius: 15px !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 6. Preloader de carga centrado */
.waybox-preload-wrapper {
  z-index: 2147483647 !important;
}

/* 7. Dispositivos de escritorio o pantallas amplias (>= 768px) */
@media (min-width: 768px) {
  .waybox-modal {
    top: 30px !important;
    max-width: 980px !important;
    width: 92% !important;
    margin: 0 auto 90px auto !important;
    border-radius: 20px !important;
  }

  .waybox-iframe {
    border-radius: 19px !important;
  }
}

/* 8. Dispositivos móviles pequeños (<= 380px) */
@media (max-width: 380px) {
  .waybox-modal {
    width: calc(100% - 12px) !important;
    top: 8px !important;
    margin: 0 auto 60px auto !important;
    border-radius: 14px !important;
  }

  .waybox-iframe {
    border-radius: 13px !important;
  }
}

/* ========================================================
   POPUP DE RESULTADO DE TRANSACCIÓN WOMPI (EXITOSO / PENDIENTE / RECHAZADO)
   ======================================================== */
.wompi-result-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wompi-result-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 17, 26, 0.98);
  border-radius: 20px;
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modalPopIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Modos de tarjeta según estado */
.wompi-result-card.status-approved {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(16, 185, 129, 0.25);
}

.wompi-result-card.status-pending {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(251, 191, 36, 0.25);
}

.wompi-result-card.status-declined {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(239, 68, 68, 0.25);
}

.btn-wompi-result-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-wompi-result-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: rotate(90deg);
}

.wompi-result-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.wompi-result-icon-box.status-approved {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.6);
  color: #10b981;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.4);
}

.wompi-result-icon-box.status-pending {
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid rgba(251, 191, 36, 0.6);
  color: #fbbf24;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.4);
}

.wompi-result-icon-box.status-declined {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  color: #ef4444;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.4);
}

.wompi-result-title {
  margin: 0 0 14px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* Gradients para títulos de estado */
.gradient-accent-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-gold {
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-red {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Caja de detalles de la transacción */
.wompi-result-details {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.wompi-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  gap: 10px;
}

.wompi-detail-label {
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.wompi-detail-val {
  color: #f1f5f9;
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wompi-result-msg {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.wompi-result-submsg {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 20px 0;
}

/* Botón de acción del modal */
.btn-wompi-result-action {
  width: 100%;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #ffffff;
}

.btn-wompi-result-action.btn-approved {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-wompi-result-action.btn-approved:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
}

.btn-wompi-result-action.btn-pending {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-wompi-result-action.btn-pending:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

.btn-wompi-result-action.btn-declined {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.btn-wompi-result-action.btn-declined:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.6);
}

.btn-wompi-result-action:active {
  transform: scale(0.97);
}


