/* ============================================================
   PokeTaker Platform — Design System & Custom Styles
   Modern Dark Glassmorphism & Pokémon Energy Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-dark: #000000;
  --bg-card: rgba(10, 10, 10, 0.85);
  --bg-card-hover: rgba(20, 20, 20, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 204, 0, 0.25);
  --border-glow: rgba(255, 204, 0, 0.5);

  --primary: #ffcc00;
  --primary-hover: #e6b800;
  --accent-purple: #ff3300;
  --accent-gold: #ffd700;
  --accent-emerald: #10b981;
  --accent-rose: #ff3300;

  --text-main: #f5f6f9;
  --text-muted: #b8b8b8;
  --text-dim: #8a96ab;

  /* Sistema Tipográfico Unificado de 4 Fuentes */
  --lilita: 'Lilita One', system-ui, sans-serif;
  --grotesk: 'Space Grotesk', system-ui, sans-serif;
  --manrope: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --font-heading: var(--lilita);
  --font-body: var(--manrope);
  --font-tech: var(--grotesk);
  --font-mono: var(--mono);

  /* Escala Fluida Clamp */
  --fs-grade: clamp(2.9rem, 11vw, 5rem);
  --fs-h2: clamp(1.15rem, 3vw, 1.5rem);
  --fs-hud: clamp(.95rem, 3.5vw, 1.2rem);
  --fs-label: .82rem;
  --fs-body: .95rem;
  --fs-hint: .8rem;
  --fs-metric: .74rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 25px rgba(255, 204, 0, 0.25);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.3);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.icon {
  color: var(--primary);
  flex-shrink: 0;
}

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 204, 0, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 51, 0, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 60%),
    linear-gradient(rgba(0, 0, 0, 0.87), rgba(0, 0, 0, 0.93)),
    var(--bg-photo, none);
  background-size: auto, auto, auto, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #ffcc00;
}

/* Layout Container — ancho aprovechando pantallas de escritorio grandes
   (antes 1280px dejaba mucho margen vacío en PC; la portada ya usa el
   ancho completo, esto unifica el resto de páginas al mismo criterio).
   Solo cambia el ancho/reparto del contenido, no toca fondos ni nav. */
.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.glass-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border-glass);
  padding: 0.25rem 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.logo-brand {
  flex-shrink: 0;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.logo-brand img {
  height: 68px !important;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(255, 204, 0, 0.5));
}

.logo-badge {
  background: var(--primary);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

/* Todos los botones de sección: amarillo, mayúsculas, mismo estilo pill —
   son accesos directos a las secciones del producto, deben leerse como un
   único grupo consistente de botones, no como texto de navegación suelto. */
.nav-link-product {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 204, 0, 0.35);
  background: rgba(255, 204, 0, 0.06);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link-product svg {
  width: 14px;
  height: 14px;
}

.nav-link-product:hover {
  background: rgba(255, 204, 0, 0.16);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--border-glass);
}

/* Navegación por ámbitos: cada categoría abre un panel accesible de rutas. */
.nav-domains {
  overflow: visible;
  gap: 0.55rem;
}

.nav-domain-item,
.nav-domain {
  position: relative;
}

.nav-domain {
  --domain-accent: #ffd700;
  --domain-glow: rgba(255, 203, 5, .16);
}

.nav-domain-community {
  --domain-accent: #84cc16;
  --domain-glow: rgba(132, 204, 22, .15);
}

.nav-domain-nearby {
  --domain-accent: #ff8b1f;
  --domain-glow: rgba(255, 139, 31, .16);
}

.nav-domain-trigger {
  min-height: 42px;
  padding: 0.62rem 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  border: 1px solid color-mix(in srgb, var(--domain-accent) 42%, transparent);
  border-radius: 13px;
  background:
    linear-gradient(145deg, var(--domain-glow), rgba(255,255,255,.025) 58%),
    rgba(7, 9, 14, .92);
  color: #f7f8fb;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-domain-trigger::-webkit-details-marker { display: none; }
.nav-domain-trigger svg:first-child { color: var(--domain-accent); }
.nav-domain-trigger svg:last-child {
  width: 13px;
  transition: transform .18s ease;
}
.nav-domain-trigger:hover,
.nav-domain[open] > .nav-domain-trigger,
.nav-domain.is-current > .nav-domain-trigger {
  border-color: var(--domain-accent);
  box-shadow: 0 8px 24px var(--domain-glow), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.nav-domain[open] > .nav-domain-trigger svg:last-child { transform: rotate(180deg); }
.nav-domain-trigger:focus-visible,
.nav-domain-panel a:focus-visible,
.user-menu-trigger:focus-visible,
.user-menu-item:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.nav-domain-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(440px, calc(100vw - 32px));
  padding: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--domain-accent) 32%, rgba(255,255,255,.08));
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0, var(--domain-glow), transparent 34%),
    rgba(7, 9, 14, .985);
  box-shadow: 0 24px 70px rgba(0,0,0,.72);
  backdrop-filter: blur(22px);
  z-index: 400;
  animation: nav-panel-in .16s ease-out;
}

.nav-domain-item:nth-child(2) .nav-domain-panel {
  left: 50%;
  transform: translateX(-50%);
}

.nav-domain-item:last-child .nav-domain-panel {
  right: 0;
  left: auto;
}

@keyframes nav-panel-in {
  from { opacity: 0; translate: 0 -5px; }
  to { opacity: 1; translate: 0 0; }
}

.nav-domain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-domain-head small,
.nav-domain-head strong { display: block; }
.nav-domain-head small {
  color: var(--domain-accent);
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-domain-head strong { margin-top: .2rem; color: #fff; font-size: 1.05rem; }
.nav-domain-head > a {
  color: var(--domain-accent);
  font-size: .67rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.nav-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  padding-top: .55rem;
}
.nav-domain-grid > a {
  min-width: 0;
  min-height: 62px;
  padding: .65rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #e8ebf2;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.nav-domain-grid > a > svg {
  flex: 0 0 auto;
  color: var(--domain-accent);
  margin-top: .1rem;
}
.nav-domain-grid span,
.nav-domain-grid strong,
.nav-domain-grid small { display: block; min-width: 0; }
.nav-domain-grid strong { font-size: .72rem; line-height: 1.15; }
.nav-domain-grid small { margin-top: .22rem; color: #7f8a9c; font-size: .59rem; line-height: 1.25; }
.nav-domain-grid > a:hover {
  background: var(--domain-glow);
  border-color: color-mix(in srgb, var(--domain-accent) 28%, transparent);
  transform: translateY(-1px);
}

/* Buttons — glassmorphism negro, texto amarillo grande (marca PokeTaker) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--primary);
  transition: var(--transition);
}

.btn-primary {
  border-color: rgba(255, 204, 0, 0.6);
  color: var(--primary);
  font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(255, 204, 0, 0.25), inset 0 0 20px rgba(255, 204, 0, 0.05);
}

.btn-primary:hover {
  background: rgba(255, 204, 0, 0.12);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 204, 0, 0.45);
}

.btn-accent {
  border-color: rgba(255, 215, 0, 0.6);
  color: var(--accent-gold);
  font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
}

.btn-accent:hover {
  background: rgba(255, 215, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  border: 2px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 204, 0, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-social {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose), #be123c);
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-sir {
  background: linear-gradient(135deg, #ec4899, #ff3300);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.badge-hyper {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.badge-double {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.badge-status-open {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-status-accepted {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.4);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.3);
}

/* FAQ Component */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-body {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.poke-card-item {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.poke-card-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.poke-card-img {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  object-fit: cover;
  background: #000;
}

.poke-card-body {
  padding: 1rem;
}

.poke-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poke-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

/* Floating Animation */
@keyframes floatAnimation {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.floating-card {
  animation: floatAnimation 4s ease-in-out infinite;
}

/* ============================================================
   TCG Holographic Foil & Energy Theme Styling
   ============================================================ */

/* Holographic Rainbow Foil Effect on Hover */
.poke-card-item {
  position: relative;
  overflow: hidden;
}

.poke-card-item::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 40%,
    rgba(255, 0, 128, 0.25) 50%,
    rgba(0, 255, 255, 0.25) 60%,
    transparent 80%
  );
  opacity: 0;
  transform: rotate(25deg);
  transition: opacity 0.4s ease, transform 0.6s ease;
  pointer-events: none;
}

.poke-card-item:hover::after {
  opacity: 1;
  transform: rotate(25deg) translateY(-30%);
}

/* Energy Theme Accents */
.energy-fire {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
  border-color: rgba(239, 68, 68, 0.4);
}

.energy-water {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border-color: rgba(59, 130, 246, 0.4);
}

.energy-grass {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  border-color: rgba(16, 185, 129, 0.4);
}

.energy-psychic {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
}

.energy-lightning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(250, 204, 21, 0.25));
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

/* Sparkle Particle Animations */
@keyframes sparkleShimmer {
  0% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.3; transform: scale(0.9); }
}

.sparkle-icon {
  display: inline-block;
  animation: sparkleShimmer 2s ease-in-out infinite;
}


/* Cartapedia / Cartadex — Ficha de colección con Logo Recortado de Colección */
.cartapedia-set-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 190px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: linear-gradient(155deg, rgba(16, 16, 28, 0.95) 0%, rgba(6, 6, 14, 0.98) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0.9rem;
  box-sizing: border-box;
}

.cartapedia-set-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.cartapedia-set-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--yellow-brand);
  box-shadow: 0 14px 40px rgba(255, 215, 0, 0.25), 0 0 20px rgba(255, 215, 0, 0.15);
}

.cartapedia-set-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cartapedia-set-code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--yellow-brand);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.cartapedia-set-card-flag {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* LOGO RECORTADO SIN MARCO DE COLECCIÓN EN EL CENTRO */
.cartapedia-set-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 0.3rem 0.5rem;
  box-sizing: border-box;
}

.cartapedia-set-logo {
  max-height: 80px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.75)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cartapedia-set-card:hover .cartapedia-set-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 35px rgba(255, 180, 0, 0.6)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95));
}

.cartapedia-set-symbol {
  max-height: 55px;
  max-width: 55px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.7));
}

.cartapedia-set-fallback-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
}

.cartapedia-set-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
}

.cartapedia-set-card-name {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartapedia-set-card:hover .cartapedia-set-card-name {
  color: var(--yellow-brand);
}

.cartapedia-set-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cartapedia-badge-cards {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: #00E676;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.cartapedia-set-card-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

/* Fichas de cartas individuales en Ficha de Colección */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.poke-card-item {
  background: linear-gradient(160deg, rgba(14, 14, 26, 0.94) 0%, rgba(6, 6, 12, 0.98) 100%);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.poke-card-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--yellow-brand);
  box-shadow: 0 14px 35px rgba(255, 215, 0, 0.25), 0 0 20px rgba(255, 215, 0, 0.15);
}

.poke-card-img-wrap {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0,0,0,0.4);
}

.poke-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.85));
  transition: transform 0.3s ease;
}

.poke-card-item:hover .poke-card-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.6)) drop-shadow(0 4px 15px rgba(0,0,0,0.9));
}

.poke-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.poke-card-title {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.05rem;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poke-card-num-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--yellow-brand);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.poke-card-rarity {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Selector de idioma (nav) — tres banderas, la activa resaltada */
.lang-switch {
  display: flex;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  padding: 0.25rem;
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.4rem;
  border-radius: 99px;
  line-height: 0;
  opacity: 0.55;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  opacity: 0.85;
}

.lang-switch-btn.active {
  opacity: 1;
  background: rgba(255, 204, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.5);
}

/* Menú desplegable de usuario (tarjeta con logo/avatar + nombre + panel) */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 99px;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
}

.user-menu-trigger:hover {
  border-color: var(--primary);
  background: rgba(255, 204, 0, 0.08);
}

.user-menu-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.user-menu-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 220px;
  background: rgba(5, 5, 5, 0.97);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  padding: 0.5rem;
  z-index: 200;
}

.user-menu-dropdown.open {
  display: block;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
}

.user-menu-item:hover {
  background: rgba(255, 204, 0, 0.1);
  color: var(--primary);
}

.user-menu-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 0.4rem 0.2rem;
}

/* Navegación principal: misma jerarquía visual que la app.
   Coleccionar a la izquierda, bola/Inicio centrada y comunidad/zona a la derecha. */
.navbar {
  min-height: 84px;
  padding: 0;
  background: rgba(5, 5, 7, .97);
  border-bottom: 1px solid rgba(255, 203, 5, .38);
  box-shadow: none;
}

.nav-content,
body.landing-body .navbar .nav-content {
  min-height: 84px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) !important;
  align-items: center;
  gap: 1.15rem;
}

.nav-wing {
  min-width: 0;
  display: flex;
  align-items: center;
}
.nav-wing-left { justify-content: flex-end; }
.nav-wing-right { justify-content: flex-start; gap: .5rem; }
.nav-category-right { min-width: 0; }
.nav-account-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.logo-brand.nav-center-brand {
  position: relative;
  width: 84px;
  height: 84px;
  justify-self: center;
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 3;
}
.logo-brand.nav-center-brand img,
body.landing-body .logo-brand.nav-center-brand img {
  width: 74px !important;
  height: 74px !important;
  object-fit: cover;
  border: 2px solid #171717;
  border-radius: 50%;
  filter: none;
  transition: transform .18s ease, border-color .18s ease;
}
.logo-brand.nav-center-brand:hover img,
.logo-brand.nav-center-brand:focus-visible img {
  border-color: #ffd700;
  transform: translateY(-1px);
}
.nav-center-brand:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 50%;
}
.nav-center-label {
  position: absolute;
  left: 50%;
  bottom: -6px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #ffd700;
  color: #080808;
  font: 900 .52rem/1.25 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.nav-domains {
  gap: .4rem;
  overflow: visible;
}
.nav-domain {
  --domain-accent: #ffd700;
  --domain-glow: transparent;
}
.nav-domain-trigger {
  width: 152px;
  min-width: 152px;
  min-height: 44px;
  padding: .62rem .82rem;
  gap: .42rem;
  border: 1px solid #292929;
  border-radius: 11px;
  background: #111114;
  color: #ededed;
  box-shadow: none;
  font-size: .74rem;
  letter-spacing: .015em;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.nav-domain-trigger svg:first-child { color: #ffd700; }
.nav-domain-trigger:hover,
.nav-domain[open] > .nav-domain-trigger,
.nav-domain.is-current > .nav-domain-trigger,
.nav-domain-direct.is-current {
  border-color: #ffd700;
  background: #17160f;
  color: #fff;
  box-shadow: none;
  transform: none;
}
.nav-domain-direct { text-decoration: none; }

.nav-domain-panel {
  top: calc(100% + 10px);
  width: min(390px, calc(100vw - 32px));
  padding: .65rem;
  border: 1px solid #303030;
  border-top: 3px solid #ffd700;
  border-radius: 13px;
  background: #0b0b0d;
  box-shadow: 0 18px 46px rgba(0,0,0,.6);
  backdrop-filter: none;
}
.nav-domain-panel-wide { width: min(510px, calc(100vw - 32px)); }
.nav-domains-left .nav-domain-panel { right: 0; left: auto; }
.nav-domains-right .nav-domain-nearby .nav-domain-panel {
  right: auto;
  left: 0;
  transform: none;
}

.nav-domain-head {
  padding: .45rem .5rem .65rem;
  border-bottom-color: #282828;
}
.nav-domain-head small {
  color: #ffd700;
  font-size: .53rem;
  letter-spacing: .09em;
}
.nav-domain-head strong {
  margin-top: .1rem;
  font-size: .94rem;
}
.nav-domain-head > a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: #ffd700;
  font-size: .62rem;
}
.nav-domain-head-note {
  color: #8e8e8e;
  font-size: .57rem;
  font-weight: 750;
  white-space: nowrap;
}
.nav-domain-grid {
  gap: .25rem;
  padding-top: .45rem;
}
.nav-domain-grid > a {
  min-height: 58px;
  padding: .55rem;
  border: 1px solid transparent;
  border-radius: 9px;
}
.nav-domain-grid > a > svg { color: #ffd700; }
.nav-domain-grid strong { font-size: .69rem; }
.nav-domain-grid small { margin-top: .15rem; color: #909090; font-size: .56rem; }
.nav-domain-grid > a:hover {
  background: #171717;
  border-color: #303030;
  transform: none;
}
.nav-domain-grid-single { grid-template-columns: 1fr; }

.lang-switch {
  border-color: #2b2b2b;
  background: #101012;
}
.user-menu-trigger {
  min-height: 44px;
  border-color: #292929;
  border-radius: 11px;
  background: #111114;
  color: #ffd700;
}
.user-menu-trigger:hover {
  border-color: #ffd700;
  background: #17160f;
}
.user-menu-dropdown {
  top: calc(100% + .65rem);
  width: min(410px, calc(100vw - 32px));
  padding: .7rem;
  border: 1px solid #303030;
  border-top: 3px solid #ffd700;
  border-radius: 13px;
  background: #0b0b0d;
  box-shadow: 0 18px 46px rgba(0,0,0,.6);
}
.user-menu-summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  padding: .5rem .55rem .75rem;
  border-bottom: 1px solid #282828;
}
.user-menu-summary img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.user-menu-summary span,
.user-menu-summary strong,
.user-menu-summary small,
.user-menu-item span,
.user-menu-item strong,
.user-menu-item small { display: block; min-width: 0; }
.user-menu-summary strong { color: #fff; font-size: .84rem; }
.user-menu-summary small { margin-top: .1rem; color: #8c8c8c; font-size: .6rem; }
.user-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
}
.user-menu-item {
  align-items: flex-start;
  min-height: 68px;
  padding: .68rem;
  border-radius: 9px;
  color: #e8e8e8;
}
.user-menu-item > svg {
  flex: 0 0 auto;
  margin-top: .08rem;
  color: #ffd700;
}
.user-menu-item strong { font-size: .7rem; }
.user-menu-item small { margin-top: .14rem; color: #8e8e8e; font-size: .56rem; }
.user-menu-item-wide { grid-column: 1 / -1; }
.user-menu-preferences {
  margin-top: .55rem;
  padding: .55rem .65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid #292929;
  border-radius: 9px;
  background: #111114;
}
.user-menu-preferences > span {
  color: #b7b7b7;
  font-size: .63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.user-menu-preferences .lang-switch { padding: .18rem; }
.user-menu-preferences .lang-switch-btn {
  gap: .28rem;
  color: #b7b7b7;
  font-size: .58rem;
  font-weight: 800;
}
.nav-profile-trigger {
  width: 152px;
  min-width: 152px;
  padding: .45rem .72rem .45rem .48rem;
  border-radius: 11px;
}
.nav-profile-trigger .user-menu-avatar {
  width: 30px;
  height: 30px;
}
.nav-profile-trigger .user-menu-name {
  flex: 1;
  color: #ededed;
  font-size: .72rem;
  text-align: left;
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .nav-wing-right .user-menu-dropdown { right: -110px; }
}
.user-menu-item:hover {
  background: #171717;
  color: #fff;
}
.user-menu-dropdown form { margin: 0; }
.user-menu-dropdown button.user-menu-item {
  width: 100%; border: 0; background: transparent; font: inherit;
  text-align: left; cursor: pointer;
}
.user-menu-logout > svg,
.user-menu-logout strong { color: #ff8797; }

@media (max-width: 1180px) and (min-width: 769px) {
  .nav-content { gap: .55rem; padding-inline: .75rem; }
  .nav-wing-right { gap: .5rem; }
  .nav-domain-trigger { min-width: 152px; padding-inline: .58rem; font-size: .65rem; }
  .nav-profile-trigger .user-menu-name { display: block; }
  .user-menu-trigger { padding-right: .42rem; }
  .nav-domains-right .nav-domain-nearby .nav-domain-panel {
    right: 0;
    left: auto;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .nav-wing .nav-domain-trigger > span { display: none; }
  .nav-wing .nav-domain-trigger {
    min-width: 42px;
    width: 42px;
    padding-inline: .45rem;
    justify-content: center;
  }
  .nav-domains-right .nav-domain-nearby .nav-domain-trigger { width: 56px; }
  .nav-profile-trigger {
    width: 56px !important;
    padding-inline: .35rem !important;
  }
  .nav-profile-trigger .user-menu-name { display: none; }
}

/* Barra de scroll a juego con el tema negro/amarillo */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 99px;
  border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}

.grid > *, .flex > *, [class*="grid"] > *, [class*="flex"] > * {
  min-width: 0;
}

body {
  overflow-x: hidden;
  font-size: clamp(0.95rem, 1vw + 0.6rem, 1.05rem);
}

h1 { font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw + 0.4rem, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw + 0.3rem, 1.5rem); }

input, select, textarea {
  font-size: 16px; /* Evita zoom automático en iOS Safari */
}

/* ============================================================
   FLUID RESPONSIVE CONTAINERS & AUTO-FIT GRIDS
   ============================================================ */
:root {
  --sp-1: clamp(0.5rem, 2vw, 0.75rem);
  --sp-2: clamp(0.75rem, 3vw, 1.25rem);
  --sp-3: clamp(1rem, 4vw, 2rem);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--sp-2);
}

.pregrad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--sp-2);
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    min-height: 60px;
    padding: var(--sp-1) var(--sp-2);
  }

  .logo-brand img {
    height: 48px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: var(--sp-1);
    justify-content: center;
  }

  .nav-links li a.nav-link {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }
}

/* ============================================================
   MOBILE NAVIGATION & CAMERA RETICLE HUD STYLING
   ============================================================ */
.mobile-nav-bar {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8a96ab;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 2px;
  transition: var(--transition);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: #ffd700;
  transform: translateY(-2px);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .mobile-nav-bar {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
}

/* Camera HUD Overlay */
.camera-hud-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 400px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
}

.camera-hud-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-hud-reticle {
  position: absolute;
  inset: 10%;
  border: 2px dashed rgba(255, 215, 0, 0.6);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.2);
}

.camera-hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #ffd700;
  border-style: solid;
}
.camera-hud-corner.tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.camera-hud-corner.tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.camera-hud-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.camera-hud-corner.br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

/* ============================================================
   QUICK WINS VISUALES & UX (RESPONSIVE, MICRO-INTERACTIONS, TOASTS)
   ============================================================ */

/* Navbar Glass Blur */
.navbar {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Mobile Bottom Navigation Bar (Fija en pantallas <= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .mobile-nav-bar,
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(5, 6, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 204, 0, 0.25);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--manrope);
    font-size: var(--fs-metric);
    font-weight: 600;
    min-width: 50px;
    min-height: 44px;
    gap: 3px;
    transition: color 0.2s ease;
  }
  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    color: var(--primary);
  }
  .mobile-nav-primary {
    color: #ffd700;
    transform: translateY(-8px);
  }
  .mobile-nav-primary:hover,
  .mobile-nav-primary.active {
    transform: translateY(-10px);
  }
  .mobile-nav-primary-icon {
    width: 46px;
    height: 46px;
    margin-top: -10px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #090a0e;
    background: #08090d;
    border: 3px solid #090b11;
    box-shadow: 0 8px 22px rgba(255, 203, 5, .28);
  }
  .mobile-nav-primary-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
}

/* Ocultar la barra de navegación superior (Header) en móvil (<768px) para dejar SOLO la bottom nav bar */
@media (max-width: 768px) {
  header.navbar,
  .navbar,
  header.main-header {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-nav-bar,
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Best Price Badge & Micro-Interactions */
.badge-best-price {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  animation: pulse-best-price 2s infinite;
}
@keyframes pulse-best-price {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.2);
}

/* Skeleton Loading Shimmer */
.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Toast Notifications Container */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  min-width: 260px;
  padding: 12px 18px;
  background: rgba(15, 18, 26, 0.95);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Strict Horizontal Overflow Guard (Prohibido Scroll Lateral) */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
}

/* Native Video Control Suppression (Android / WebKit Chrome) */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
}

/* ============================================================
   POKETAKER REUSABLE HOLOGRAPHIC CAMERA & MODULE SPLASH OVERLAY
   ============================================================ */
.poketaker-splash-overlay,
.camera-loader-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: radial-gradient(circle at center, #10131e 0%, #07080c 100%);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
}

.poketaker-splash-overlay.hiding,
.camera-loader-overlay.hiding {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
  pointer-events: none;
}

.poketaker-splash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 360px;
  width: 100%;
  padding: 1.45rem 1.2rem 1.2rem;
  border: 1px solid rgba(255, 203, 5, .48);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(24, 28, 40, .96), rgba(5, 8, 14, .97));
  box-shadow: 0 20px 60px rgba(0,0,0,.58), 0 0 35px rgba(255,203,5,.12);
  overflow: hidden;
}

.poketaker-splash-card::before {
  content: "POKETAKER · OPTICAL SYSTEM";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: .42rem;
  border-bottom: 1px solid rgba(255,203,5,.18);
  background: rgba(255,203,5,.055);
  color: #ffd700;
  font: 800 .56rem/1 var(--mono);
  letter-spacing: .14em;
}

.splash-logo-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.splash-pt-badge {
  position: relative;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 203, 5, .72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 5, .13), rgba(7, 8, 12, .96) 70%);
  color: #101219;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(255, 203, 5, 0.6);
  z-index: 2;
  overflow: visible;
}

.splash-brand-image {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 203, 5, .54));
}

.splash-pokeball-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.splash-pt-text {
  position: relative;
  z-index: 3;
  font-family: 'Lilita One', var(--lilita), sans-serif;
  font-size: 2.2rem;
  color: #101219;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.splash-pokeball-svg {
  width: 76px;
  height: 76px;
  z-index: 2;
  filter: drop-shadow(0 0 25px rgba(255, 203, 5, 0.7));
}

.splash-ring-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 203, 5, 0.4);
  animation: splashPulseRing 2s infinite ease-out;
}

.splash-ring-laser {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #ffd700;
  border-right-color: #ff3300;
  animation: splashSpin 1.2s infinite linear;
}

@keyframes splashPulseRing {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes splashSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.splash-brand-title {
  font-family: 'Lilita One', var(--lilita), sans-serif;
  font-size: clamp(2.2rem, 7vw, 2.8rem);
  color: #ffd700;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 203, 5, 0.4);
  letter-spacing: 0.02em;
}

.splash-module-subtitle {
  font-family: 'Space Grotesk', var(--grotesk), sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffe07a;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  margin-bottom: 1.5rem;
}

.splash-status-box,
.splash-error-box {
  width: 100%;
  background: rgba(16, 18, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(12px);
}

.splash-status-text {
  font-family: 'JetBrains Mono', var(--mono), monospace;
  font-size: 0.85rem;
  color: #f4f1e8;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.splash-dots {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  color: #ffd700;
}

.splash-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd700 0%, #ffd700 100%);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.splash-metric-row {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', var(--mono), monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mut);
}

.splash-error-title {
  font-family: 'Space Grotesk', var(--grotesk), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff6a86;
  margin-bottom: 0.4rem;
}

.splash-error-desc {
  font-family: 'Manrope', var(--manrope), sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   GAMIFIED 5-PHASE GRADING EVALUATION OVERLAY
   ============================================================ */
.gamified-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #0e111d 0%, #05060a 100%);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.gamified-card-container {
  width: 100%;
  max-width: 440px;
  background: rgba(16, 18, 25, 0.95);
  border: 1px solid rgba(255, 203, 5, 0.25);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 203, 5, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-phase-header {
  width: 100%;
  margin-bottom: 1.5rem;
}

.game-phase-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd700;
  background: rgba(255, 203, 5, 0.12);
  border: 1px solid rgba(255, 203, 5, 0.3);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.game-phase-title {
  font-family: 'Space Grotesk', var(--grotesk), sans-serif;
  font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.game-phase-stepper {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.game-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.game-step-dot.active {
  background: #ffd700;
  color: #101219;
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 203, 5, 0.5);
}

.game-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 1.2rem;
}

.gthumb-box {
  position: relative;
  aspect-ratio: 63/88;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.18;
  transform: scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.gthumb-box.corner-crop { aspect-ratio: 1; }
.gthumb-box.is-scanning {
  opacity: 1;
  transform: scale(1.04);
  border-color: #ffd700;
  box-shadow: 0 0 18px rgba(37, 216, 255, 0.3);
}
.gthumb-box.is-complete {
  opacity: 0.82;
  transform: scale(1);
  border-color: rgba(52, 230, 160, 0.55);
}
.gthumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #03060b;
}

.glaser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffd700;
  box-shadow: 0 0 10px #ffd700;
  animation: laserScan 1.2s infinite ease-in-out;
  display: none;
}
.gthumb-box.is-scanning .glaser-line { display: block; }
.gthumb-label {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 3px 4px;
  border-radius: 5px;
  color: #fff;
  background: rgba(2, 6, 12, 0.78);
  font: 700 0.52rem/1.1 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

@keyframes laserScan {
  0% { top: 0%; opacity: 0.9; }
  100% { top: 100%; opacity: 0.9; }
}

.game-geo-box {
  position: relative;
  width: 180px;
  height: 250px;
  border: 2px dashed rgba(52, 211, 238, 0.6);
  border-radius: 10px;
  margin: 0 auto 1.2rem auto;
  background: rgba(52, 211, 238, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-crosshair {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  color: #ffd700;
  font-size: 1.2rem;
  font-weight: 700;
}
.game-crosshair.tl { top: 4px; left: 6px; }
.game-crosshair.tr { top: 4px; right: 6px; }
.game-crosshair.bl { bottom: 4px; left: 6px; }
.game-crosshair.br { bottom: 4px; right: 6px; }

.game-cota {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34e6a0;
  background: rgba(8, 9, 13, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(52, 230, 160, 0.3);
}
.game-cota.top { top: -12px; }
.game-cota.bottom { bottom: -12px; }
.game-cota.left { left: -16px; transform: rotate(-90deg); }
.game-cota.right { right: -16px; transform: rotate(90deg); }

.game-target-box {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(255, 203, 5, 0.3);
  border-radius: 14px;
  background: rgba(16, 18, 25, 0.8);
  width: 100%;
  margin-bottom: 1.2rem;
}

.game-target-reticle {
  width: 60px;
  height: 60px;
  border: 2px solid #ffd700;
  border-radius: 50%;
  margin: 0 auto 0.8rem auto;
  box-shadow: 0 0 20px rgba(255, 203, 5, 0.4);
  animation: reticlePulse 1.5s infinite ease-in-out;
}
@keyframes reticlePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.game-target-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: #34e6a0;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.game-card-name {
  font-family: 'Space Grotesk', var(--grotesk), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.game-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #ffd700;
  margin-top: 0.2rem;
}

.game-jp-badge {
  display: inline-block;
  margin-top: 0.6rem;
  background: rgba(255, 106, 134, 0.15);
  border: 1px solid rgba(255, 106, 134, 0.4);
  color: #ff6a86;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.game-subgrades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 1.2rem;
}

.gsub-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gsub-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.gsub-val {
  font-family: 'Lilita One', var(--lilita), sans-serif;
  font-size: 2rem;
  color: #ffd700;
  line-height: 1.1;
  margin: 4px 0;
}

.gsub-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #8af0c4;
  background: rgba(52, 230, 160, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.game-subtext {
  font-family: 'Manrope', var(--manrope), sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.game-result-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: radial-gradient(circle, rgba(255, 203, 5, 0.1) 0%, rgba(16, 18, 25, 0.9) 100%);
  border: 2px solid #ffd700;
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(255, 203, 5, 0.3);
  width: 100%;
}

.game-result-grade {
  font-family: 'Lilita One', var(--lilita), sans-serif;
  font-size: clamp(3.5rem, 12vw, 5rem);
  color: #ffd700;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 203, 5, 0.5);
}

.game-result-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #34e6a0;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* Reduced motion preference override */
@media (prefers-reduced-motion: reduce) {
  .poketaker-splash-overlay, .camera-loader-overlay { transition: none !important; }
  .splash-ring-pulse, .splash-ring-laser { animation: none !important; }
  .splash-progress-bar { transition: none !important; }
  .glaser-line, .game-target-reticle { animation: none !important; }
}

/* ============================================================
   MOBILE FIX 1: ALBUM SCANNER NAV BAR HIDE WHEN SCANNING
   ============================================================ */
body.body-scanning-active .mobile-nav-bar,
body.body-scanning-active .mobile-bottom-nav {
  display: none !important;
}

/* ============================================================
   MOBILE FIX 2: STUDIO DASHBOARD RESPONSIVE 1-COLUMN GRID
   ============================================================ */
.studio-dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .studio-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ============================================================
   CHROMATIC CAMERA HUD (RED / AMBER / GREEN STRENGTH)
   ============================================================ */
.hud-frame-overlay.hud-status-red .hud-corner {
  border-color: #ff6a86 !important;
  box-shadow: 0 0 15px rgba(255,106,134,0.6);
}
.hud-frame-overlay.hud-status-amber .hud-corner {
  border-color: #ffb43d !important;
  box-shadow: 0 0 20px rgba(255,180,61,0.7);
}
.hud-frame-overlay.hud-status-green .hud-corner {
  border-color: #34e6a0 !important;
  box-shadow: 0 0 30px rgba(52,230,160,0.9);
}

.hud-guide-banner.hud-status-red {
  background: rgba(255,106,134,0.2) !important;
  border-color: rgba(255,106,134,0.5) !important;
  color: #ff6a86 !important;
}
.hud-guide-banner.hud-status-amber {
  background: rgba(255,180,61,0.2) !important;
  border-color: rgba(255,180,61,0.5) !important;
  color: #ffb43d !important;
}
.hud-guide-banner.hud-status-green {
  background: rgba(52,230,160,0.2) !important;
  border-color: rgba(52,230,160,0.6) !important;
  color: #34e6a0 !important;
}
