/**
 * THE 88TH FLOOR: SMART TOWER LOCKDOWN
 * Architectural Skyscraper Showcase & Hotspots Blueprint Styles
 * High-Contrast Cyber-Luxury, Holographic Vector HUD, Sector Lockdown Laser Grids,
 * and Translucent Decryption Airlock Modal.
 */

/* ============================================================================
   1. TOWER MAQUETTE CARD (CENTER HERO SHOWCASE)
   ============================================================================ */
.tower-maquette-card {
  display: flex;
  flex-direction: column;
  background: #08090D;
  border: none;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: none;
  position: relative;
  width: 100%;
  height: 100%;
}

/* Floating HUD Header inside Tower Viewport */
.maquette-hud-header {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm, 6px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 30;
  flex-shrink: 0;
}

.hud-live-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--color-cyan, #00e5ff);
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.hud-building-name {
  margin: 2px 0 0 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.hud-progress-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--color-cyan, #00F2FF);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hud-lockdown-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 3px;
  text-align: right;
}

/* Escenario Central con Maqueta y Efectos */
.maquette-stage {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  background: #08090D;
  overflow: hidden;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tower-render-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.08) brightness(0.96) saturate(1.1);
  mask-image: radial-gradient(ellipse 65% 90% at 50% 50%, black 75%, rgba(0, 0, 0, 0.75) 88%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 65% 90% at 50% 50%, black 75%, rgba(0, 0, 0, 0.75) 88%, transparent 100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.tower-vignette-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background: 
    linear-gradient(to right, #08090D 0%, rgba(8, 9, 13, 0.4) 6%, transparent 18%, transparent 82%, rgba(8, 9, 13, 0.4) 94%, #08090D 100%),
    linear-gradient(to bottom, rgba(8, 9, 13, 0.2) 0%, transparent 10%, transparent 88%, rgba(8, 9, 13, 0.35) 100%);
}

/* Capa SVG Vectorial */
.tower-vector-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.tower-zone-poly {
  fill: rgba(0, 229, 255, 0.0);
  stroke: rgba(0, 229, 255, 0.15);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  pointer-events: auto;
  cursor: pointer;
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

.tower-zone-poly:hover {
  fill: rgba(0, 229, 255, 0.12);
  stroke: var(--color-cyan, #00e5ff);
  stroke-width: 2.5;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.6));
}

.tower-zone-poly.zone-penthouse:hover {
  fill: rgba(255, 208, 116, 0.18);
  stroke: var(--color-gold-champagne, #ffd074);
  filter: drop-shadow(0 0 16px rgba(255, 208, 116, 0.7));
}

/* ============================================================================
   2. SECTOR LOCK & ELIMINATION OVERLAY (REJILLA LÁSER ROJA)
   ============================================================================ */
.sector-lock-layer {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: grayscale(85%) contrast(1.2) brightness(0.3);
  -webkit-backdrop-filter: grayscale(85%) contrast(1.2) brightness(0.3);
}

.sector-lock-layer.active-lock {
  opacity: 1;
  visibility: visible;
}

/* Posiciones porcentuales que cubren cada sector verticalmente */
.sector-lock-layer[data-zone="5"] { top: 15%; height: 16%; }
.sector-lock-layer[data-zone="4"] { top: 31%; height: 17%; }
.sector-lock-layer[data-zone="3"] { top: 48%; height: 20%; }
.sector-lock-layer[data-zone="2"] { top: 68%; height: 16%; }
.sector-lock-layer[data-zone="1"] { top: 84%; height: 14%; }

.lock-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, rgba(255, 42, 85, 0.3) 0, rgba(255, 42, 85, 0.3) 2px, transparent 0, transparent 16px),
    repeating-linear-gradient(-45deg, rgba(255, 42, 85, 0.3) 0, rgba(255, 42, 85, 0.3) 2px, transparent 0, transparent 16px);
  border-top: 1px solid var(--color-crimson, #ff2a55);
  border-bottom: 1px solid var(--color-crimson, #ff2a55);
  box-shadow: inset 0 0 30px rgba(255, 0, 80, 0.5);
  animation: gridScanPulse 2.5s infinite alternate;
}

.lock-stamp-tag {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
  background: rgba(255, 42, 85, 0.88);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #fff;
  box-shadow: 0 0 20px rgba(255, 42, 85, 0.8);
  transform: rotate(-3deg);
  z-index: 2;
  text-transform: uppercase;
}

@keyframes gridScanPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ============================================================================
   3. LOS 5 PINES HOLOGRÁFICOS SECUENCIALES (HOTSPOTS)
   ============================================================================ */
.hotspots-overlay-plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.hotspot-pin:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Núcleo del Pin */
.pin-core {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 17, 36, 0.94);
  border: 2px solid var(--color-cyan, #00e5ff);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.7), inset 0 0 8px rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.pin-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.pin-icon-status {
  font-size: 0.8rem;
  display: none;
}

/* Sonar Ring (Onda expansiva del radar) */
.pin-sonar-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--color-cyan, #00e5ff);
  opacity: 0;
  pointer-events: none;
}

/* ESTADO 1: PIN ACTIVO / INVESTIGACIÓN DISPONIBLE */
.hotspot-pin.pin-active .pin-sonar-ring {
  animation: pinSonarPulse 2.2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.hotspot-pin.pin-active .pin-core {
  background: radial-gradient(circle, #00e5ff 0%, #0a1124 85%);
  border-color: #ffffff;
  box-shadow: 0 0 25px var(--color-cyan, #00e5ff), 0 0 45px rgba(255, 0, 127, 0.5);
}

.hotspot-pin.pin-active .pin-number {
  color: #040711;
  font-weight: 900;
}

/* ESTADO 2: PIN BLOQUEADO (CANDADO DIGITAL) */
.hotspot-pin.pin-locked {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(80%);
}

.hotspot-pin.pin-locked .pin-core {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(14, 20, 32, 0.85);
  box-shadow: none;
}

.hotspot-pin.pin-locked .pin-number {
  display: none;
}

.hotspot-pin.pin-locked .pin-icon-status {
  display: inline-block;
  color: #94a3b8;
}

/* ESTADO 3: PIN COMPLETADO (VERIFICADO CON ACID EMERALD) */
.hotspot-pin.pin-completed {
  cursor: pointer;
  opacity: 0.9;
}

.hotspot-pin.pin-completed .pin-core {
  border-color: var(--color-emerald-acid, #00ff88);
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.hotspot-pin.pin-completed .pin-number {
  display: none;
}

.hotspot-pin.pin-completed .pin-icon-status {
  display: inline-block;
  color: var(--color-emerald-acid, #00ff88);
}

/* PIN 5: APEX GOLD CROWN */
.hotspot-pin.pin-gold-apex.pin-active .pin-core {
  background: radial-gradient(circle, #ffd074 0%, #0a1124 85%);
  border-color: #ffd074;
  box-shadow: 0 0 30px rgba(255, 208, 116, 0.9), 0 0 60px rgba(255, 0, 127, 0.6);
}

.hotspot-pin.pin-gold-apex.pin-active .pin-sonar-ring {
  border-color: #ffd074;
}

/* Tarjeta Callout Flotante del Pin */
.pin-callout-card {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 11, 24, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-left: 3px solid var(--color-cyan, #00e5ff);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.hotspot-pin:hover .pin-callout-card,
.hotspot-pin.pin-active .pin-callout-card {
  opacity: 1;
  visibility: visible;
  left: 56px;
}

.callout-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-cyan, #00e5ff);
  font-weight: 700;
}

.callout-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.callout-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #94a3b8;
}

/* Shake de error en pin bloqueado */
.pin-shake-error {
  animation: pinShake 0.4s ease-in-out;
}

@keyframes pinShake {
  0%, 100% { transform: translate(-50%, -50%); }
  20%, 60% { transform: translate(-56%, -50%); }
  40%, 80% { transform: translate(-44%, -50%); }
}

@keyframes pinSonarPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.8);
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
    box-shadow: 0 0 0 25px rgba(255, 0, 127, 0);
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ============================================================================
   4. MAQUETTE CTA BAR (DOCKED AT BOTTOM INSIDE TOWER VIEWPORT)
   ============================================================================ */
.maquette-cta-bar {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(8, 12, 22, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm, 6px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  z-index: 30;
  flex-shrink: 0;
}

.cta-pin-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-investigate-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-cyan, #00e5ff);
  color: #040711;
  border: none;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn-investigate-pin:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

/* ============================================================================
   5. AIRLOCK MODAL (MODAL CINEMÁTICO TRANSLÚCIDO)
   ============================================================================ */
.airlock-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 16px;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.airlock-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.airlock-modal-dialog {
  background: rgba(10, 17, 36, 0.95);
  border: 1px solid var(--color-cyan, #00e5ff);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 229, 255, 0.3);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.airlock-modal-backdrop.open .airlock-modal-dialog {
  transform: scale(1) translateY(0);
}

.airlock-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(4, 7, 17, 0.95);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.airlock-header-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--neon-fuchsia, #ff007f);
  display: flex;
  align-items: center;
  gap: 6px;
}

.airlock-modal-title {
  margin: 4px 0 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.airlock-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.airlock-close-btn:hover {
  background: rgba(255, 42, 85, 0.2);
  border-color: var(--color-crimson, #ff2a55);
  color: #fff;
}

.airlock-telemetry-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  background: rgba(0, 229, 255, 0.06);
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94a3b8;
}

.airlock-game-body {
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Eliminate horizontal module buttons bar in airlock modal */
#minigamesNav, .module-nav-bar {
  display: none !important;
}

/* ============================================================================
   6. PATCH V2: INTRUSION FUNNEL REDACTED & FORENSIC SECURITY STYLING
   ============================================================================ */
.funnel-step.redacted {
  border-left-color: rgba(255, 42, 85, 0.3) !important;
  opacity: 0.6;
}

.redacted-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff3366;
  background: rgba(255, 42, 85, 0.12);
  border: 1px dashed rgba(255, 42, 85, 0.45);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.redacted-count {
  color: #64748b;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: bold;
}

/* ============================================================================
   7. PATCH V2: SUSPECT MONITOR HIGH-CONTRAST NEON ZONE CODING & GLASSMORPHISM
   ============================================================================ */
.suspect-card {
  background: rgba(15, 18, 26, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.suspect-card:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.suspect-card.selected {
  border-color: var(--color-gold-champagne, #FFB800) !important;
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.35);
}

/* Neon Zone Badges */
.badge-zone-penthouse {
  border: 1px solid #FFB800 !important;
  color: #FFB800 !important;
  background: rgba(255, 184, 0, 0.12) !important;
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.25);
  font-weight: 700;
}

.badge-zone-sky {
  border: 1px solid #00F2FF !important;
  color: #00F2FF !important;
  background: rgba(0, 242, 255, 0.12) !important;
  box-shadow: 0 0 8px rgba(0, 242, 255, 0.25);
  font-weight: 700;
}

.badge-zone-mid {
  border: 1px solid #8B5CF6 !important;
  color: #8B5CF6 !important;
  background: rgba(139, 92, 246, 0.12) !important;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.25);
  font-weight: 700;
}

.badge-zone-low {
  border: 1px solid #64748B !important;
  color: #94A3B8 !important;
  background: rgba(100, 116, 139, 0.15) !important;
  font-weight: 600;
}

/* Filter Chips Luminous Indicator Dots */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-all {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.dot-penthouse {
  background: #FFB800;
  box-shadow: 0 0 8px #FFB800;
}

.dot-sky {
  background: #00F2FF;
  box-shadow: 0 0 8px #00F2FF;
}

.dot-mid {
  background: #8B5CF6;
  box-shadow: 0 0 8px #8B5CF6;
}

.dot-low {
  background: #64748B;
  box-shadow: 0 0 6px #64748B;
}

/* Elimination Sweep & Alibi Confirmed Stamp */
.suspect-grid {
  position: relative;
}

.suspect-grid.elimination-sweep-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 42, 85, 0) 0%, rgba(255, 42, 85, 0.45) 50%, rgba(255, 42, 85, 0) 100%);
  border-bottom: 2px solid #ff2a55;
  box-shadow: 0 0 25px rgba(255, 42, 85, 0.8);
  pointer-events: none;
  z-index: 80;
  animation: sweepLaserDown 0.65s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes sweepLaserDown {
  0% { transform: translateY(-30px); opacity: 1; }
  100% { transform: translateY(600px); opacity: 0; }
}

.suspect-card.eliminated {
  background: #0a0e18 !important;
  border-color: rgba(255, 42, 85, 0.22) !important;
  opacity: 0.45;
}

.suspect-card.eliminated:hover {
  opacity: 0.75;
}

.suspect-card .eliminated-stamp-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff3366;
  border: 1px solid rgba(255, 42, 85, 0.5);
  background: rgba(255, 42, 85, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* ============================================================================
   CYBER MEDIA LIGHTBOX & PINCH-TO-ZOOM VIEWER
   ============================================================================ */
.cyber-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 6, 12, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  user-select: none;
}

.cyber-lightbox-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.lightbox-locked {
  overflow: hidden !important;
  touch-action: none !important;
}

.lightbox-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top, 10px));
  background: rgba(8, 12, 20, 0.9);
  border-bottom: 1px solid rgba(0, 242, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 30;
  flex-shrink: 0;
  gap: 12px;
}

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

.lightbox-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--color-cyan, #00f2ff);
  text-transform: uppercase;
}

.lightbox-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.lightbox-hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lightbox-zoom-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 20px;
  min-width: 58px;
  text-align: center;
  transition: all 0.2s ease;
}

.lightbox-zoom-pill.active {
  color: var(--color-cyan, #00f2ff);
  border-color: rgba(0, 242, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.25);
}

.lightbox-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.18s ease;
}

.lightbox-btn:hover {
  background: rgba(0, 242, 255, 0.15);
  border-color: var(--color-cyan, #00f2ff);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.35);
}

.lightbox-btn:active {
  transform: scale(0.95);
}

.lightbox-btn.close-btn {
  background: rgba(255, 0, 85, 0.1);
  border-color: rgba(255, 0, 85, 0.35);
  color: #ff3366;
}

.lightbox-btn.close-btn:hover {
  background: rgba(255, 0, 85, 0.25);
  border-color: #ff0055;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 0, 85, 0.4);
}

.lightbox-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab;
  background-image: 
    radial-gradient(circle at center, rgba(0, 229, 255, 0.04) 0%, transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

.lightbox-viewport:active {
  cursor: grabbing;
}

.lightbox-stage {
  transform-origin: center center;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.lightbox-media-img {
  max-width: 88vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 242, 255, 0.2);
  pointer-events: none;
  display: block;
}

.lightbox-hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  background: rgba(8, 12, 20, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #94a3b8;
  z-index: 30;
  flex-shrink: 0;
  gap: 12px;
}

.lightbox-quick-btn {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.3);
  color: var(--color-cyan, #00f2ff);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-quick-btn:hover {
  background: rgba(0, 242, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 242, 255, 0.4);
}

/* ============================================================================
   TACTICAL CCTV 16:9 SURVEILLANCE PLAYER
   ============================================================================ */
.cctv-surveillance-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  background: rgba(8, 11, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cctv-screen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020409;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 255, 0.25);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.cctv-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cctv-crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.65) 100%);
  background-size: 100% 3px, 100% 100%;
  z-index: 5;
}

.cctv-hud-header {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: #cbd5e1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.cctv-rec-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 0, 85, 0.2);
  border: 1px solid rgba(255, 0, 85, 0.6);
  padding: 2px 7px;
  border-radius: 3px;
  color: #ff3366;
  font-weight: 700;
}

.cctv-rec-dot {
  width: 6px;
  height: 6px;
  background: #ff0055;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff0055;
  animation: cctvBlink 1s infinite alternate;
}

@keyframes cctvBlink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.cctv-cam-tag {
  color: var(--color-cyan, #00f2ff);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cctv-res-tag {
  color: #64748b;
  font-size: 0.58rem;
}

.cctv-hud-alert {
  position: absolute;
  top: 36px;
  left: 10px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(10, 14, 24, 0.75);
  border: 1px solid #ff0055;
  color: #ff3366;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.25);
}

.cctv-hud-footer {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: #94a3b8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.cctv-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cctv-channel-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cctv-btn-chan {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.cctv-btn-chan:hover {
  background: rgba(0, 242, 255, 0.1);
  border-color: rgba(0, 242, 255, 0.35);
  color: #ffffff;
}

.cctv-btn-chan.active {
  background: rgba(0, 242, 255, 0.18);
  border-color: var(--color-cyan, #00f2ff);
  color: var(--color-cyan, #00f2ff);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.cctv-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cctv-action-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.18s ease;
}

.cctv-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cctv-action-btn.expand-btn {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold, #ffb800);
  border-color: rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.08);
  padding: 0 12px;
  min-width: unset;
}

.cctv-action-btn.expand-btn:hover {
  background: rgba(255, 184, 0, 0.2);
  border-color: #ffb800;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.35);
}


