/* ==========================================================================
   COLECCIÓN DIGITAL · GALAXIA COLECCIONABLE 3D
   Estética espacial inmersiva, HUD de astronauta, Anillo 3D y Grilla Cósmica
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Cosmos Base & CSS Custom Properties
   -------------------------------------------------------------------------- */
body.viewer-page {
  --space-bg: #070913;
  --space-abyss: #04050a;
  --space-surface: rgba(13, 17, 34, 0.72);
  --space-surface-hover: rgba(22, 29, 56, 0.85);
  --space-surface-active: rgba(30, 40, 78, 0.95);
  --space-border: rgba(255, 255, 255, 0.08);
  --space-border-bright: rgba(255, 255, 255, 0.16);
  --space-border-glow: rgba(99, 102, 241, 0.35);

  /* Acentos de Neón */
  --neon-cyan: #38bdf8;
  --neon-cyan-glow: rgba(56, 189, 248, 0.4);
  --neon-violet: #a855f7;
  --neon-violet-glow: rgba(168, 85, 247, 0.4);
  --neon-emerald: #34d399;
  --neon-emerald-glow: rgba(52, 211, 153, 0.45);
  --neon-amber: #fbbf24;
  --neon-amber-glow: rgba(251, 191, 36, 0.45);
  --neon-magenta: #ec4899;
  --neon-magenta-glow: rgba(236, 72, 153, 0.45);

  /* Rares */
  --rarity-common: #38bdf8;
  --rarity-uncommon: #34d399;
  --rarity-rare: #fbbf24;
  --rarity-legendary: #ec4899;

  /* Tipografía */
  --text-white: #f8fafc;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Curvas y Easing (Emil Kowalski) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.23, 1, 0.32, 1);

  background-color: var(--space-bg) !important;
  color: var(--text-primary) !important;
  font-family: Bahnschrift, "Segoe UI Variable", "Segoe UI", -apple-system, sans-serif !important;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--neon-cyan);
}

body.viewer-page::selection {
  background: var(--neon-cyan);
  color: var(--space-abyss);
}

/* --------------------------------------------------------------------------
   2. Canvas de Galaxia Interactiva (Estrellas, Polvo y Nebulosas)
   -------------------------------------------------------------------------- */
.galaxy-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* Nebulosa de fondo suave con gradientes radiales fijos */
.galaxy-nebula-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 75% 15%, rgba(236, 72, 153, 0.07) 0%, transparent 38%);
}

/* --------------------------------------------------------------------------
   3. Estructura y Sidebar (HUD Espacial)
   -------------------------------------------------------------------------- */
body.viewer-page .app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
}

body.viewer-page .side-rail {
  background: rgba(6, 9, 20, 0.82) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-right: 1px solid var(--space-border) !important;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5) !important;
  z-index: 20;
}

body.viewer-page .brand-mark {
  color: var(--text-white) !important;
  gap: 12px;
}

body.viewer-page .brand-mark .mark-seal {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet)) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 16px var(--neon-cyan-glow) !important;
  font-weight: 800;
  border-radius: 9px !important;
  transition: transform 200ms var(--ease-spring), box-shadow 200ms ease;
}

body.viewer-page .brand-mark:hover .mark-seal {
  transform: scale(1.05) rotate(4deg);
  box-shadow: 0 0 24px var(--neon-cyan-glow) !important;
}

body.viewer-page .brand-mark small {
  color: var(--neon-cyan) !important;
  letter-spacing: 0.22em !important;
  text-shadow: 0 0 8px var(--neon-cyan-glow);
}

body.viewer-page .primary-nav {
  margin-top: 52px !important;
  gap: 8px !important;
}

body.viewer-page .nav-link {
  color: var(--text-secondary) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 9px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 140ms var(--ease-spring), box-shadow 160ms ease !important;
}

body.viewer-page .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  transform: translateX(3px) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15) !important;
}

body.viewer-page .nav-link:active {
  transform: scale(0.97) !important;
}

body.viewer-page .nav-link.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22)) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25), inset 0 0 12px rgba(56, 189, 248, 0.1) !important;
  font-weight: 700 !important;
}

body.viewer-page .rail-footer {
  border-top: 1px solid var(--space-border) !important;
  color: var(--text-secondary) !important;
  padding-top: 16px !important;
}

body.viewer-page .rail-footer small {
  color: var(--text-muted) !important;
}

body.viewer-page .status-dot {
  background: var(--neon-emerald) !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2), 0 0 12px var(--neon-emerald) !important;
  animation: cosmicPulse 2.8s ease-in-out infinite;
}

@keyframes cosmicPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2), 0 0 10px var(--neon-emerald);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.35), 0 0 18px var(--neon-emerald);
  }
}

/* --------------------------------------------------------------------------
   4. Topbar & Header Cósmico
   -------------------------------------------------------------------------- */
body.viewer-page .viewer-main {
  padding: 0 clamp(20px, 3.8vw, 60px) 40px !important;
}

body.viewer-page .topbar {
  border-bottom: 1px solid var(--space-border) !important;
  min-height: 72px !important;
}

body.viewer-page .topbar-context {
  color: var(--text-secondary) !important;
  font-size: 12px !important;
}

body.viewer-page .live-mark {
  background: var(--neon-cyan) !important;
  box-shadow: 0 0 10px var(--neon-cyan) !important;
}

body.viewer-page .collection-switcher {
  background: rgba(13, 17, 34, 0.8) !important;
  color: var(--neon-cyan) !important;
  border: 1px solid var(--space-border) !important;
  border-radius: 7px !important;
  font-weight: 700 !important;
  backdrop-filter: blur(12px) !important;
  transition: border-color 160ms, box-shadow 160ms !important;
}

body.viewer-page .collection-switcher:hover,
body.viewer-page .collection-switcher:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 12px var(--neon-cyan-glow) !important;
}

body.viewer-page .collection-switcher option {
  background: #0d1122 !important;
  color: #fff !important;
}

body.viewer-page .button-twitch {
  background: linear-gradient(135deg, #6d28d9, #9333ea) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 0 18px rgba(147, 51, 234, 0.35) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  transition: transform 140ms var(--ease-spring), box-shadow 160ms ease, background 160ms ease !important;
}

body.viewer-page .button-twitch:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.55) !important;
  transform: translateY(-1px) !important;
}

body.viewer-page .button-twitch:active {
  transform: scale(0.97) !important;
}

/* --------------------------------------------------------------------------
   5. Barra Superior de Estadísticas y Progreso HUD
   -------------------------------------------------------------------------- */
body.viewer-page .collection-head {
  padding: 34px 0 24px !important;
  border-bottom: 1px solid var(--space-border) !important;
}

body.viewer-page .collection-id {
  color: var(--neon-cyan) !important;
  letter-spacing: 0.22em !important;
  font-weight: 800 !important;
  text-shadow: 0 0 12px var(--neon-cyan-glow) !important;
}

body.viewer-page .collection-id span {
  color: var(--neon-magenta) !important;
  text-shadow: 0 0 12px var(--neon-magenta-glow) !important;
}

body.viewer-page .collection-title-wrap h1 {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: clamp(28px, 3.2vw, 42px) !important;
  letter-spacing: -0.035em !important;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.2) !important;
  margin: 6px 0 8px !important;
}

body.viewer-page .collection-title-wrap p {
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

@media (max-width: 680px) {
  body.viewer-page .topbar { flex-wrap: wrap; padding-bottom: 12px; }
  body.viewer-page .topbar-context { display: flex; order: 3; width: 100%; min-width: 0; }
  body.viewer-page .collection-switcher { flex: 1; min-width: 0; max-width: none; }
  body.viewer-page #channel-label { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Widget de Progreso HUD */
body.viewer-page .collection-progress {
  background: rgba(13, 17, 34, 0.72) !important;
  border: 1px solid var(--space-border) !important;
  border-radius: 14px !important;
  padding: 14px 20px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  gap: 16px !important;
  min-width: 220px !important;
}

body.viewer-page .progress-number {
  color: var(--text-muted) !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: baseline !important;
}

body.viewer-page .progress-number strong {
  color: #ffffff !important;
  font-size: 42px !important;
  letter-spacing: -0.06em !important;
  text-shadow: 0 0 20px var(--neon-cyan-glow), 0 0 40px rgba(56, 189, 248, 0.2) !important;
  font-variant-numeric: tabular-nums !important;
}

body.viewer-page .progress-number span {
  color: var(--text-muted) !important;
  padding-left: 4px !important;
}

body.viewer-page .progress-number b {
  color: var(--text-secondary) !important;
  font-weight: 700 !important;
}

body.viewer-page .progress-caption {
  color: var(--neon-cyan) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 8px var(--neon-cyan-glow) !important;
}

body.viewer-page .progress-track {
  width: 120px !important;
  height: 6px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
  margin-top: 8px !important;
}

body.viewer-page .progress-track span {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), var(--neon-magenta)) !important;
  box-shadow: 0 0 12px var(--neon-cyan) !important;
  height: 100% !important;
  display: block !important;
  border-radius: inherit !important;
  transition: width 480ms var(--ease-out) !important;
}

/* Tarjetas de Estadísticas (Collection Facts HUD) */
body.viewer-page .collection-facts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 18px 0 !important;
  border-block: none !important;
}

@media (max-width: 640px) {
  body.viewer-page .collection-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.viewer-page .collection-facts > div {
    padding: 10px 8px !important;
    text-align: center;
  }
}

body.viewer-page .collection-facts > div {
  min-width: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid var(--space-border) !important;
  border-radius: 12px !important;
  background: rgba(13, 17, 34, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 180ms var(--ease-spring), border-color 180ms ease, box-shadow 180ms ease !important;
}

body.viewer-page .collection-facts > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

body.viewer-page .collection-facts > div:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.12) !important;
}

body.viewer-page .collection-facts > div:hover::before {
  opacity: 1;
}

body.viewer-page .fact-value {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.3) !important;
  display: block !important;
}

body.viewer-page .fact-label {
  color: var(--text-secondary) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-top: 4px !important;
  display: block !important;
}

/* --------------------------------------------------------------------------
   6. Barra de Herramientas, Filtros y Selector de Vista (Órbita vs Grilla)
   -------------------------------------------------------------------------- */
body.viewer-page .inventory-section {
  padding-top: 24px !important;
  position: relative;
}

body.viewer-page .inventory-toolbar {
  align-items: center !important;
  gap: 20px !important;
  margin-bottom: 22px !important;
}

body.viewer-page .inventory-toolbar h2 {
  color: #ffffff !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.15) !important;
}

body.viewer-page .inventory-toolbar p {
  color: var(--text-secondary) !important;
  font-size: 12px !important;
}

body.viewer-page .inventory-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

/* Selector de Modo de Vista (Órbita 3D vs Grilla Cósmica) */
.view-mode-group {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(13, 17, 34, 0.85);
  border: 1px solid var(--space-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.view-mode-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 120ms var(--ease-spring), box-shadow 140ms ease;
}

.view-mode-button svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.view-mode-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.view-mode-button:active {
  transform: scale(0.96);
}

.view-mode-button.is-selected {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.28));
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

/* Buscador de Cartas HUD */
body.viewer-page .search-field {
  width: 210px !important;
  height: 38px !important;
  background: rgba(13, 17, 34, 0.8) !important;
  border: 1px solid var(--space-border) !important;
  border-radius: 9px !important;
  color: var(--text-secondary) !important;
  backdrop-filter: blur(14px) !important;
  transition: border-color 160ms, box-shadow 160ms !important;
}

body.viewer-page .search-field:focus-within {
  outline: none !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 16px var(--neon-cyan-glow) !important;
}

body.viewer-page .search-field input {
  color: #ffffff !important;
  font-size: 12px !important;
}

body.viewer-page .search-field input::placeholder {
  color: var(--text-muted) !important;
}

/* Grupo de Filtros (Todas, Obtenidas, Pendientes) */
body.viewer-page .filter-group {
  background: rgba(13, 17, 34, 0.85) !important;
  border: 1px solid var(--space-border) !important;
  border-radius: 9px !important;
  padding: 4px !important;
  backdrop-filter: blur(14px) !important;
}

body.viewer-page .filter-button {
  min-height: 32px !important;
  padding: 0 11px !important;
  border-radius: 6px !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out), transform 120ms var(--ease-spring), box-shadow 140ms ease !important;
}

body.viewer-page .filter-button span {
  color: var(--text-muted) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  margin-left: 5px !important;
}

body.viewer-page .filter-button:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

body.viewer-page .filter-button:active {
  transform: scale(0.96) !important;
}

body.viewer-page .filter-button.is-selected {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25)) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.28) !important;
  font-weight: 700 !important;
}

body.viewer-page .filter-button.is-selected span {
  color: #ffffff !important;
  background: rgba(56, 189, 248, 0.35) !important;
}

/* --------------------------------------------------------------------------
   7. ANILLO / CARRUSEL ORBITAL 3D DE CARTAS (Vista Principal)
   -------------------------------------------------------------------------- */
.orbit-stage-container {
  position: relative;
  width: 100%;
  min-height: 560px;
  height: clamp(560px, 66vh, 720px);
  margin: 10px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  transform-style: preserve-3d;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  border: 1px solid var(--space-border);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(13, 17, 38, 0.5) 0%, rgba(5, 7, 16, 0.75) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Guía visual holográfica en el plano base */
.orbit-floor-grid {
  position: absolute;
  top: 55%;
  left: 50%;
  width: min(880px, 92vw);
  height: min(880px, 92vw);
  transform: translate(-50%, -50%) rotateX(76deg);
  border-radius: 50%;
  border: 1.5px dashed rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.12), inset 0 0 45px rgba(99, 102, 241, 0.08);
  pointer-events: none;
  transform-style: preserve-3d;
}

.orbit-floor-grid::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.orbit-floor-grid::after {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.15);
}

/* Núcleo central cósmico en el centro de la órbita */
.orbit-core-light {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(168, 85, 247, 0.12) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
  animation: coreGlow 4s ease-in-out infinite;
}

@keyframes coreGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.95; }
}

/* Anillo 3D donde residen las cartas */
.orbit-ring {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Envoltorio individual para cada carta en la órbita */
.orbit-card-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 154px;
  height: 226px;
  margin-top: -113px;
  margin-left: -77px;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateY(var(--card-angle, 0deg)) translateZ(var(--card-radius, 480px));
}

/* Efecto de levitación vertical suave (Floating / Bobbing) */
.orbit-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: orbitCardBob 4.4s ease-in-out infinite var(--bob-delay, 0s);
  cursor: pointer;
  transition: filter 200ms ease, transform 200ms var(--ease-spring);
}

@keyframes orbitCardBob {
  0%, 100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  50% {
    transform: translateY(-13px) rotateZ(0.8deg);
  }
}

.orbit-card-inner:hover .collection-card.is-owned {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.8), 0 0 35px var(--neon-cyan-glow), 0 15px 35px rgba(0, 0, 0, 0.8) !important;
}

.orbit-card-inner:hover .collection-card.is-missing {
  transform: scale(1.04) translateY(-2px);
  opacity: 0.65 !important;
}

/* Controles flotantes de la órbita (HUD Inferior) */
.orbit-hud-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(10, 14, 28, 0.85);
  border: 1px solid var(--space-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.orbit-ctrl-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: color 140ms, background 140ms, border-color 140ms, transform 120ms var(--ease-spring), box-shadow 140ms;
}

.orbit-ctrl-btn:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.orbit-ctrl-btn:active {
  transform: scale(0.92);
}

.orbit-ctrl-btn svg {
  width: 14px;
  height: 14px;
}

.orbit-status-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
  padding: 0 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.orbit-hint-text {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 14, 28, 0.65);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  pointer-events: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. DISEÑO VISUAL DE LAS CARTAS (Obtenidas vs Pendientes)
   -------------------------------------------------------------------------- */
body.viewer-page .collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px !important;
  background: rgba(15, 20, 39, 0.95) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
  transform-style: preserve-3d;
  transition: transform 220ms var(--ease-spring), box-shadow 220ms ease, border-color 220ms ease, opacity 200ms ease !important;
}

/* Arte de la carta */
body.viewer-page .card-art {
  position: relative !important;
  aspect-ratio: 0.8 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--art-color, #1e2548) !important;
  color: #fff !important;
}

body.viewer-page .art-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Footer / Metadatos de la carta */
body.viewer-page .card-footer {
  min-height: 60px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 11px !important;
  background: rgba(10, 13, 26, 0.92) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.viewer-page .card-footer h3 {
  margin: 0 0 3px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.viewer-page .card-id {
  color: var(--neon-cyan) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

/* Etiquetas de Rareza */
body.viewer-page .rarity-tag {
  min-height: 17px !important;
  padding: 0 6px !important;
  border-radius: 4px !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: rgba(56, 189, 248, 0.2) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

body.viewer-page .rarity-tag.is-uncommon {
  background: rgba(52, 211, 153, 0.22) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #6ee7b7 !important;
}

body.viewer-page .rarity-tag.is-rare {
  background: rgba(251, 191, 36, 0.25) !important;
  border-color: rgba(251, 191, 36, 0.7) !important;
  color: #fde68a !important;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.3) !important;
}

body.viewer-page .rarity-tag.is-legendary {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(168, 85, 247, 0.35)) !important;
  border-color: rgba(236, 72, 153, 0.8) !important;
  color: #fbcfe8 !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5) !important;
}

/* Badge de Copias */
body.viewer-page .copy-badge {
  min-width: 26px !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-align: center !important;
  background: rgba(52, 211, 153, 0.18) !important;
  border: 1px solid rgba(52, 211, 153, 0.6) !important;
  color: #6ee7b7 !important;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.25) !important;
}

/* --------------------------------------------------------------------------
   8A. CARTAS OBTENIDAS ("EN ARCHIVO")
   - 100% visibles, nítidas, colores vibrantes
   - Resplandor/aura exterior según rareza
   - Reflejo holográfico / shimmer al pasar el cursor
   - Etiqueta brillante
   -------------------------------------------------------------------------- */
body.viewer-page .collection-card.is-owned {
  opacity: 1 !important;
  filter: none !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25) !important;
}

/* Aura exterior según rareza para cartas obtenidas */
body.viewer-page .collection-card.is-owned[data-rarity="Común"],
body.viewer-page .collection-card.is-owned:not([data-rarity]) {
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 0 24px rgba(56, 189, 248, 0.35), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body.viewer-page .collection-card.is-owned[data-rarity="Poco común"] {
  border-color: rgba(52, 211, 153, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.5), 0 0 28px rgba(52, 211, 153, 0.4), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body.viewer-page .collection-card.is-owned[data-rarity="Rara"] {
  border-color: rgba(251, 191, 36, 0.85) !important;
  box-shadow: 0 0 0 1.5px rgba(251, 191, 36, 0.6), 0 0 35px rgba(251, 191, 36, 0.48), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body.viewer-page .collection-card.is-owned[data-rarity="Legendaria"] {
  border-color: rgba(236, 72, 153, 0.95) !important;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.7), 0 0 45px rgba(236, 72, 153, 0.55), 0 0 25px rgba(168, 85, 247, 0.45), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  animation: legendaryAura 3.6s ease-in-out infinite;
}

@keyframes legendaryAura {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.7), 0 0 40px rgba(236, 72, 153, 0.5), 0 0 20px rgba(168, 85, 247, 0.4);
  }
  50% {
    box-shadow: 0 0 0 2.5px rgba(236, 72, 153, 0.9), 0 0 55px rgba(236, 72, 153, 0.7), 0 0 35px rgba(168, 85, 247, 0.65);
  }
}

/* Efecto Shimmer / Glare Holográfico en Cartas Obtenidas */
body.viewer-page .collection-card.is-owned::after {
  content: "";
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 70%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
  mix-blend-mode: overlay;
}

body.viewer-page .collection-card.is-owned:hover::after {
  opacity: 1;
  animation: cardShimmerSweep 1.6s ease-in-out infinite;
}

@keyframes cardShimmerSweep {
  0% { transform: translateY(-50%) rotate(25deg); }
  100% { transform: translateY(50%) rotate(25deg); }
}

/* Etiqueta brillante de estado EN ARCHIVO */
body.viewer-page .collection-card.is-owned .card-status {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 8px !important;
  letter-spacing: 0.08em !important;
  padding: 3px 7px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* --------------------------------------------------------------------------
   8B. CARTAS SIN OBTENER ("PENDIENTE")
   - Fantasmas cósmicos o siluetas translúcidas
   - Baja opacidad (0.28 a 0.35)
   - Filtro desaturado/oscurecido (grayscale(85%) brightness(0.6) contrast(0.9))
   - Borde punteado o tenue apagado
   - Sin brillo holográfico
   -------------------------------------------------------------------------- */
body.viewer-page .collection-card.is-missing {
  opacity: 0.32 !important;
  filter: grayscale(85%) brightness(0.58) contrast(0.9) !important;
  border: 1.5px dashed rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  background: rgba(9, 12, 24, 0.82) !important;
  transition: opacity 200ms ease, filter 200ms ease, border-color 200ms ease !important;
}

body.viewer-page .collection-card.is-missing:hover {
  opacity: 0.55 !important;
  filter: grayscale(60%) brightness(0.72) contrast(0.95) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

body.viewer-page .collection-card.is-missing::after {
  display: none !important;
}

body.viewer-page .collection-card.is-missing .card-status {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

body.viewer-page .collection-card.is-missing .card-art {
  filter: saturate(0.2) !important;
  opacity: 0.65 !important;
}

/* --------------------------------------------------------------------------
   9. VISTA ALTERNATIVA: GRILLA CÓSMICA
   -------------------------------------------------------------------------- */
body.viewer-page .collection-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  perspective: 1200px;
}

body.viewer-page .collection-grid .collection-card {
  cursor: pointer;
  transform-origin: center bottom;
}

body.viewer-page .collection-grid .collection-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
}

body.viewer-page .collection-grid .collection-card:active {
  transform: scale(0.97) !important;
}

/* Mensaje cuando no hay resultados */
body.viewer-page .no-results {
  color: var(--text-secondary) !important;
  padding: 48px 20px !important;
  border-radius: 14px !important;
  background: rgba(13, 17, 34, 0.6) !important;
  border: 1px solid var(--space-border) !important;
  backdrop-filter: blur(14px) !important;
  text-align: center !important;
  font-size: 14px !important;
}

/* --------------------------------------------------------------------------
   10. MODAL DE INSPECCIÓN 3D (Estilo Pokémon TCG Pocket / Tilt Holográfico)
   -------------------------------------------------------------------------- */
.card-inspect-modal {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 15, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 1;
  transition: opacity 220ms var(--ease-out);
}

.card-inspect-modal[hidden] {
  display: none !important;
}

.inspect-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

.inspect-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: 820px;
  width: 100%;
  padding: 32px;
  border-radius: 24px;
  background: rgba(11, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: inspectPopIn 280ms var(--ease-spring);
}

@keyframes inspectPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.inspect-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  font-size: 20px;
  cursor: pointer;
  transition: color 140ms, background 140ms, transform 140ms var(--ease-spring), border-color 140ms;
}

.inspect-close-btn:hover {
  color: #fff;
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.6);
  transform: rotate(90deg) scale(1.08);
}

.inspect-close-btn:active {
  transform: scale(0.92);
}

/* Escenario 3D de la carta en el modal */
.inspect-stage {
  flex: none;
  perspective: 1200px;
  transform-style: preserve-3d;
  width: clamp(240px, 28vw, 300px);
  aspect-ratio: 0.72;
}

.inspect-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 90ms ease-out;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.inspect-card-3d.is-owned {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 35px var(--neon-cyan-glow);
}

.inspect-card-3d.is-owned[data-rarity="Rara"] {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 45px var(--neon-amber-glow);
}

.inspect-card-3d.is-owned[data-rarity="Legendaria"] {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 55px var(--neon-magenta-glow), 0 0 30px var(--neon-violet-glow);
}

.inspect-card-3d.is-missing {
  opacity: 0.45;
  filter: grayscale(85%) brightness(0.65) contrast(0.95);
  border: 2px dashed rgba(255, 255, 255, 0.25);
}

.inspect-card-content {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #0d1124;
  display: flex;
  flex-direction: column;
}

.inspect-card-art {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--art-color, #1e2548);
}

.inspect-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Capa de destello holográfico / Glare dinámico según la posición del cursor */
.inspect-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 5;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  mix-blend-mode: overlay;
  opacity: var(--glare-opacity, 0.5);
  transition: opacity 160ms ease;
}

.inspect-prism-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 6;
  background: conic-gradient(
    from var(--glare-angle, 0deg) at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(236, 72, 153, 0.25),
    rgba(251, 191, 36, 0.25),
    rgba(52, 211, 153, 0.25),
    rgba(56, 189, 248, 0.25),
    rgba(168, 85, 247, 0.25),
    rgba(236, 72, 153, 0.25)
  );
  mix-blend-mode: color-dodge;
  opacity: var(--prism-opacity, 0);
  transition: opacity 160ms ease;
}

/* Panel de Información de la Carta en Inspección */
.inspect-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspect-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inspect-status-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inspect-status-pill.is-owned {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
}

.inspect-status-pill.is-missing {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.inspect-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.inspect-id {
  color: var(--neon-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.inspect-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0;
}

.inspect-stat-box {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.inspect-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.inspect-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
  display: block;
}

.inspect-tip {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.06);
  border-left: 3px solid var(--neon-cyan);
}

.inspect-hint {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   11. Secciones Complementarias (Cómo se completa, Promo y Footer)
   -------------------------------------------------------------------------- */
body.viewer-page .how-it-works {
  background: rgba(13, 17, 34, 0.6) !important;
  border: 1px solid var(--space-border) !important;
  border-radius: 16px !important;
  padding: 22px 26px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  margin-top: 36px !important;
}

body.viewer-page .how-stamp {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2)) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: var(--neon-cyan) !important;
  box-shadow: 0 0 12px var(--neon-cyan-glow) !important;
}

body.viewer-page .how-it-works h2 {
  color: #ffffff !important;
}

body.viewer-page .how-it-works p {
  color: var(--text-secondary) !important;
}

body.viewer-page .how-it-works .text-link {
  color: var(--neon-cyan) !important;
  text-decoration-color: var(--neon-cyan-glow) !important;
}

body.viewer-page .rondagg-promo {
  background: rgba(13, 17, 34, 0.65) !important;
  border: 1px solid var(--space-border) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  color: var(--text-primary) !important;
  transition: transform 180ms var(--ease-spring), border-color 180ms ease, box-shadow 180ms ease !important;
}

body.viewer-page .rondagg-promo:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--neon-cyan-glow) !important;
}

body.viewer-page .rondagg-promo strong {
  color: #ffffff !important;
}

body.viewer-page .rondagg-promo-action {
  color: var(--neon-cyan) !important;
}

body.viewer-page .page-footer {
  color: var(--text-muted) !important;
  border-top: 1px solid var(--space-border) !important;
  margin-top: 32px !important;
}

/* --------------------------------------------------------------------------
   12. Login Gate & Estados Vacíos (Cosmic Glass)
   -------------------------------------------------------------------------- */
body.viewer-page .login-gate-card,
body.viewer-page .viewer-status-card {
  background: rgba(11, 15, 30, 0.88) !important;
  border: 1px solid var(--space-border-bright) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15) !important;
  color: var(--text-primary) !important;
}

body.viewer-page .login-gate-card h1,
body.viewer-page .viewer-empty h1 {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2) !important;
}

body.viewer-page .login-gate-label {
  color: var(--neon-cyan) !important;
  letter-spacing: 0.2em !important;
  text-shadow: 0 0 10px var(--neon-cyan-glow) !important;
}

body.viewer-page .login-gate-card p,
body.viewer-page .viewer-empty p {
  color: var(--text-secondary) !important;
}

body.viewer-page #login-gate-note {
  color: var(--text-muted) !important;
}

/* Toast */
body.viewer-page .toast {
  background: rgba(11, 15, 30, 0.95) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 20px var(--neon-cyan-glow) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
}

/* --------------------------------------------------------------------------
   13. Adaptación Responsive & Accesibilidad
   -------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .inspect-dialog {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .inspect-stage {
    width: clamp(200px, 50vw, 250px);
  }
}

@media (max-width: 768px) {
  .orbit-stage-container {
    height: 480px;
    min-height: 460px;
    perspective: 1100px;
  }
  .orbit-card-node {
    width: 130px;
    height: 192px;
    margin-top: -96px;
    margin-left: -65px;
  }
  .orbit-floor-grid {
    width: 95vw;
    height: 95vw;
  }
  .orbit-hud-bar {
    padding: 4px 10px;
    gap: 8px;
  }
  .orbit-ctrl-btn {
    width: 30px;
    height: 30px;
  }
  .orbit-hint-text {
    font-size: 9px;
    padding: 3px 10px;
  }
  .view-mode-button {
    padding: 0 9px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .orbit-stage-container {
    height: 440px;
    min-height: 420px;
    perspective: 900px;
  }
  .orbit-card-node {
    width: 110px;
    height: 162px;
    margin-top: -81px;
    margin-left: -55px;
  }
  .orbit-status-badge {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.viewer-page .collection-card.is-owned:hover::after {
    animation: none !important;
  }
  .inspect-dialog {
    animation: none !important;
  }
  .orbit-card-inner {
    animation: none !important;
  }
  .orbit-core-light {
    animation: none !important;
  }
  body.viewer-page .status-dot {
    animation: none !important;
  }
  body.viewer-page .collection-card.is-owned[data-rarity="Legendaria"] {
    animation: none !important;
  }
}
