/* ==========================================================================
   ARGUS SURREAL CCTV // CORE DESIGN SYSTEM & GLASSMORPHISM BENTO GRID
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Transparent White Frosted Glassmorphism & Surrealist Glow */
  --bg-primary: #05070d;
  --bg-surface-glass: rgba(255, 255, 255, 0.09);
  --bg-surface-glass-hover: rgba(255, 255, 255, 0.16);
  --bg-surface-elevated: rgba(255, 255, 255, 0.13);

  --border-glass: rgba(255, 255, 255, 0.22);
  --border-glass-bright: rgba(255, 255, 255, 0.5);
  --border-neon-cyan: rgba(0, 240, 255, 0.65);
  --border-neon-magenta: rgba(255, 0, 128, 0.7);
  --border-neon-emerald: rgba(0, 255, 170, 0.65);

  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.4);
  --accent-purple: #9d4edd;
  --accent-magenta: #ff007f;
  --accent-emerald: #00ffaa;
  --accent-amber: #ffaa00;
  --accent-crimson: #ff2a5f;
  --accent-crimson-glow: rgba(255, 42, 95, 0.5);

  --text-main: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --text-mono: #38bdf8;

  --font-main: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-hud: 'JetBrains Mono', monospace;

  --blur-amount: 26px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-glass: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-glass), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-glass-hover: 0 25px 60px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-glass-bright), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --shadow-neon-cyan: 0 0 25px var(--accent-cyan-glow);
  --shadow-neon-alert: 0 0 35px var(--accent-crimson-glow);

  --feed-viewport-height: 420px;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Surrealist Living Background Engine */
.surreal-canvas-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.surreal-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: brightness(0.65) contrast(1.18) saturate(1.15);
  transition: transform 0.6s ease-out, filter 0.3s ease;
}

.surreal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.surreal-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 30%, transparent 20%, rgba(5, 7, 13, 0.6) 65%, rgba(5, 7, 13, 0.94) 100%);
  pointer-events: none;
}

.surreal-pulse-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 42, 95, 0.28) 0%, rgba(157, 78, 221, 0.15) 50%, transparent 80%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.surreal-pulse-overlay.active {
  opacity: 1;
  animation: cosmicPulse 1.2s infinite alternate ease-in-out;
}

@keyframes cosmicPulse {
  0% {
    opacity: 0.35;
    transform: scale(0.98);
  }

  100% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

/* Main App Shell */
.app-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.25rem 1.75rem 2rem 1.75rem;
  max-width: 1800px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER BAR (Glass Pill)
   ========================================================================== */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  flex-wrap: wrap;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-eye {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(157, 78, 221, 0.3));
  border: 1px solid var(--border-neon-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  overflow: hidden;
}

.brand-logo-eye svg {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 6px var(--accent-cyan));
  animation: eyeBlink 5s infinite;
}

@keyframes eyeBlink {

  0%,
  94%,
  98%,
  100% {
    transform: scaleY(1);
  }

  96% {
    transform: scaleY(0.1);
  }
}

.brand-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #ffffff 10%, #7dd3fc 50%, #c084fc 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-tag {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  -webkit-text-fill-color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 600;
}

/* Header Telemetry Pills */
.telemetry-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  font-family: var(--font-hud);
  font-size: 0.78rem;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.active {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseBeacon 2s infinite;
}

.status-dot.alert {
  background: var(--accent-crimson);
  box-shadow: 0 0 12px var(--accent-crimson);
  animation: pulseRapid 0.6s infinite;
}

@keyframes pulseBeacon {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes pulseRapid {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.glass-btn:hover::before {
  left: 100%;
}

.glass-btn:hover {
  background: var(--bg-surface-glass-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass-hover);
}

.glass-btn:active {
  transform: translateY(0);
}

.glass-btn-primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(157, 78, 221, 0.35));
  border-color: var(--border-neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.glass-btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.38), rgba(157, 78, 221, 0.5));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
}

.glass-btn-danger {
  border-color: rgba(255, 42, 95, 0.4);
  color: #ff9fb2;
}

.glass-btn-danger:hover {
  background: rgba(255, 42, 95, 0.25);
  border-color: var(--accent-crimson);
  box-shadow: var(--shadow-neon-alert);
}

/* ==========================================================================
   BENTO GRID LAYOUT
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(130px, auto);
  gap: 1.35rem;
  width: 100%;
}

/* Base Bento Card */
.bento-card {
  position: relative;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--border-glass-bright);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card-title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-hud);
}

/* --------------------------------------------------------------------------
   BENTO CARD 1: HERO PRIMARY FEED (Occupies 8 cols, 3 rows)
   -------------------------------------------------------------------------- */
.bento-hero-feed {
  grid-column: span 8;
  grid-row: span 4;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* View Mode & Sizing Control Toolbar */
.view-mode-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
}

.view-mode-group,
.feed-size-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.feed-height-slider {
  width: 90px;
  margin-left: 0.3rem;
}

/* Primary Focus Viewport */
.viewport-container {
  position: relative;
  width: 100%;
  height: var(--feed-viewport-height);
  min-height: 200px;
  background: #030408;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gallery Multi-Camera Matrix Viewport */
.gallery-matrix-container {
  position: relative;
  width: 100%;
  height: var(--feed-viewport-height);
  min-height: 200px;
  border-radius: var(--radius-md);
  overflow-y: auto;
  display: grid;
  gap: 0.75rem;
  padding: 0.6rem;
  background: rgba(3, 5, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-matrix-container.layout-grid-1 {
  grid-template-columns: 1fr;
}

.gallery-matrix-container.layout-grid-2,
.gallery-matrix-container.layout-split {
  grid-template-columns: 1fr 1fr;
}

.gallery-matrix-container.layout-grid-4,
.gallery-matrix-container.layout-quad {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.gallery-matrix-container.layout-grid-many {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Individual Multi-Feed Tile in Gallery */
.gallery-tile {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  transition: var(--transition-smooth);
}

.gallery-tile:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.gallery-tile.active-tile {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow), inset 0 0 15px rgba(0, 240, 255, 0.15);
}

.gallery-tile.detected-human {
  border-color: var(--accent-crimson);
  box-shadow: 0 0 25px var(--accent-crimson-glow);
  animation: pulseTileAlarm 1.2s infinite alternate;
}

@keyframes pulseTileAlarm {
  0% {
    border-color: rgba(255, 42, 95, 0.6);
  }

  100% {
    border-color: rgba(255, 42, 95, 1);
  }
}

.gallery-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.6rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.gallery-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-tile-title {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.gallery-tile-actions {
  display: flex;
  gap: 0.35rem;
  pointer-events: auto;
}

.main-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hud-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Vision Shader Filters */
.viewport-container.filter-night-vision {
  filter: contrast(1.4) brightness(1.2) hue-rotate(90deg) saturate(1.8);
}

.viewport-container.filter-thermal {
  filter: contrast(2) saturate(2.5) invert(1) hue-rotate(180deg);
}

.viewport-container.filter-cyberpunk {
  filter: contrast(1.3) saturate(1.7) hue-rotate(290deg);
}

/* Viewport HUD Corner Decors */
.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent-cyan);
  border-style: solid;
  pointer-events: none;
  z-index: 6;
  opacity: 0.8;
}

.hud-corner.tl {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.hud-corner.tr {
  top: 12px;
  right: 12px;
  border-width: 2px 2px 0 0;
}

.hud-corner.bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 2px 2px;
}

.hud-corner.br {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
}

.viewport-overlay-top {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
  pointer-events: none;
}

.cam-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cam-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 42, 95, 0.25);
  border: 1px solid var(--border-neon-magenta);
  color: #ff859d;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.cam-meta-badge {
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(5, 10, 20, 0.75);
  border: 1px solid var(--border-glass);
  font-family: var(--font-hud);
  font-size: 0.72rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

/* Motion Threat Banner Alert */
.threat-alert-banner {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  background: rgba(255, 42, 95, 0.9);
  border: 1px solid #ff7090;
  box-shadow: 0 0 35px rgba(255, 42, 95, 0.7);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 7;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.threat-alert-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Primary Feed Controls Bottom Bar */
.viewport-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.4rem 0.5rem;
  flex-wrap: wrap;
}

.vision-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glass-bright);
}

.chip-btn.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.viewport-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   BENTO CARD 2: QR CODE & MOBILE PAIRING (Span 4 cols, 2 rows)
   -------------------------------------------------------------------------- */
.bento-qr-pair {
  grid-column: span 4;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qr-deck-content {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin: 0.5rem 0;
}

.qr-code-frame {
  position: relative;
  width: 140px;
  height: 140px;
  padding: 8px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-code-frame canvas,
.qr-code-frame img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.qr-scanner-laser {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: scanLaser 2.2s infinite ease-in-out alternate;
  pointer-events: none;
}

@keyframes scanLaser {
  0% {
    top: 8px;
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    top: 124px;
    opacity: 0.3;
  }
}

.qr-instructions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.qr-step {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-hud);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.link-input-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  margin-top: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.link-input-text {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
}

/* Fast Mobile 4-Digit PIN Code Box */
.mobile-pin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pin-label-group {
  display: flex;
  flex-direction: column;
}

.pin-label-text {
  font-size: 0.65rem;
  font-family: var(--font-hud);
  color: var(--text-muted);
  text-transform: uppercase;
}

.pin-code-display {
  font-family: var(--font-hud);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--accent-cyan);
  text-shadow: 0 0 14px var(--accent-cyan-glow);
}

/* --------------------------------------------------------------------------
   BENTO CARD 3: AI HUMAN DETECTION & RADAR (Span 4 cols, 2 rows)
   -------------------------------------------------------------------------- */
.bento-radar {
  grid-column: span 4;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.radar-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-label {
  font-size: 0.7rem;
  font-family: var(--font-hud);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-value.highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px var(--accent-cyan-glow);
}

.stat-value.danger {
  color: var(--accent-crimson);
  text-shadow: 0 0 15px var(--accent-crimson-glow);
}

/* Live Waveform Canvas */
.waveform-box {
  position: relative;
  width: 100%;
  height: 70px;
  background: rgba(2, 6, 15, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 240, 255, 0.15);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Slider Controls */
.radar-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   BENTO CARD 4: MULTI-CAMERA MATRIX / WALL (Span 8 cols, 2 rows)
   -------------------------------------------------------------------------- */
.bento-cam-wall {
  grid-column: span 8;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.cam-grid-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  overflow-y: auto;
  max-height: 250px;
  padding-right: 0.4rem;
  flex: 1;
}

.thumb-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020409;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.thumb-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.thumb-card.active-primary {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.6rem;
  pointer-events: none;
}

.thumb-tag {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
}

.thumb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thumb-btn-remove {
  pointer-events: auto;
  background: rgba(255, 42, 95, 0.3);
  border: 1px solid var(--accent-crimson);
  color: #fff;
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  cursor: pointer;
}

/* Empty camera slot */
.cam-add-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.cam-add-slot:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   BENTO CARD 5: EVENT LOG & SNAPSHOTS GALLERY (Span 4 cols, 2 rows)
   -------------------------------------------------------------------------- */
.bento-event-log {
  grid-column: span 4;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  max-height: 250px;
  padding-right: 0.35rem;
  flex: 1;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-glass-bright);
  transform: translateX(3px);
}

.event-snap-thumb {
  width: 48px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.event-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}

.event-tag {
  color: var(--accent-crimson);
}

/* Custom Scrollbar for Bento elements */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ==========================================================================
   SNAPSHOT MODAL / LIGHTBOX
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  max-width: 800px;
  width: 100%;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.modal-body {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-img-preview {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: #000;
}

/* ==========================================================================
   MOBILE CAMERA TRANSMITTER VIEW STYLES (`camera.html`)
   ========================================================================== */
.mobile-cam-body {
  background: #05070f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
}

.mobile-viewfinder {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 36vh;
  min-height: 200px;
  max-height: 320px;
  margin: 0.5rem auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-viewfinder.size-compact {
  height: 24vh;
  min-height: 150px;
  max-height: 200px;
  max-width: 330px;
}

.mobile-viewfinder.size-medium {
  height: 36vh;
  min-height: 200px;
  max-height: 320px;
  max-width: 440px;
}

.mobile-viewfinder.size-large {
  height: 50vh;
  min-height: 280px;
  max-height: 420px;
  max-width: 520px;
}

.mobile-viewfinder.size-full {
  flex: 1;
  height: auto;
  min-height: 58vh;
  max-height: none;
  max-width: 100%;
}

.mobile-viewfinder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-top-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.mobile-controls-dock {
  margin-top: 0.75rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
}

.mobile-btn-action {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-btn-action:active {
  transform: scale(0.92);
  background: rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .bento-hero-feed {
    grid-column: span 12;
    grid-row: span auto;
  }

  .bento-cam-wall {
    grid-column: span 12;
  }

  .bento-qr-pair {
    grid-column: span 6;
  }

  .bento-radar {
    grid-column: span 6;
  }

  .bento-event-log {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  :root {
    --feed-viewport-height: 250px;
  }

  .app-container {
    padding: 0.75rem;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .bento-qr-pair,
  .bento-radar {
    grid-column: span 12;
  }

  .viewport-container,
  .gallery-matrix-container {
    height: var(--feed-viewport-height);
    min-height: 190px;
  }

  .view-mode-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .view-mode-group,
  .feed-size-group {
    justify-content: space-between;
  }
}

/* ==========================================================================
   ARGUS SURREAL CCTV // AUTHENTICATION & CONSOLE GATEKEEPER STYLES
   ========================================================================== */

/* Header Session Pill */
.user-session-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-neon-cyan);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transition: var(--transition-smooth);
}

.user-session-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

.user-avatar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseEmerald 2.2s infinite;
}

@keyframes pulseEmerald {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.user-name {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-clearance {
  font-family: var(--font-hud);
  font-size: 0.62rem;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.glass-btn-sm {
  padding: 0.25rem 0.55rem !important;
  font-size: 0.68rem !important;
  border-radius: var(--radius-sm) !important;
}

/* Auth Gatekeeper Fullscreen Modal Overlay */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-gatekeeper-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-neon-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 240, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: cardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Biometric Scanline Effect */
.auth-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-emerald), transparent);
  box-shadow: 0 0 15px var(--accent-cyan);
  animation: scanlineSweep 4s linear infinite;
  pointer-events: none;
}

@keyframes scanlineSweep {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Auth Header */
.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.auth-eye-emblem {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.12);
  border: 1.5px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-cyan-glow);
  position: relative;
}

.auth-eye-emblem svg {
  width: 32px;
  height: 32px;
}

.auth-title {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}

.auth-subtitle {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Demo Credentials Quick Pill */
.auth-demo-banner {
  background: rgba(0, 240, 255, 0.08);
  border: 1px dashed rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-demo-banner:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.auth-demo-tag {
  background: var(--accent-cyan);
  color: #05070d;
  font-family: var(--font-hud);
  font-weight: 800;
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.auth-demo-text {
  font-family: var(--font-hud);
  color: #fff;
  flex: 1;
  text-align: left;
}

/* Tabs */
.auth-tabs-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.45rem 0.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

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

.auth-tab-btn.active {
  background: var(--accent-cyan);
  color: #05070d;
  font-weight: 800;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* Auth Panels */
.auth-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.auth-panel.active {
  display: flex;
}

/* PIN Display & Dots */
.auth-pin-display-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.pin-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-dot.filled {
  background: var(--accent-cyan);
  box-shadow: 0 0 18px var(--accent-cyan);
  transform: scale(1.2);
}

/* Numpad Grid */
.auth-numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
}

.auth-numpad-btn,
.lock-numpad-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 700;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.auth-numpad-btn:hover,
.lock-numpad-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

.auth-numpad-btn:active,
.lock-numpad-btn:active {
  transform: scale(0.94);
  background: var(--accent-cyan);
  color: #05070d;
}

.auth-numpad-btn.btn-action-key,
.lock-numpad-btn.btn-action-key {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Auth Input Groups */
.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.auth-input-label {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.auth-input-field:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px var(--accent-cyan-glow);
}

.auth-input-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 1rem;
  border-radius: 6px;
  transition: color 0.2s;
}

.auth-input-toggle:hover {
  color: #fff;
}

/* Error Banner with Cyber Shake Animation */
.auth-error-banner {
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid var(--accent-crimson);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: #ff6b8b;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.3);
  display: none;
}

.auth-error-banner.shake {
  animation: errorShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

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

/* Spinner */
.auth-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  margin-right: 0.4rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   LOCKED TERMINAL FULLSCREEN OVERLAY
   ========================================================================== */
.locked-terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(3, 5, 11, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.locked-terminal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.locked-terminal-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-neon-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.2);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
}

.locked-terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  font-family: var(--font-hud);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lock-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-amber);
  background: rgba(255, 170, 0, 0.08);
  box-shadow: 0 0 5px rgba(255, 170, 0, 0.2);
  transition: all 0.15s ease;
}

.lock-pin-dot.filled {
  background: var(--accent-amber);
  box-shadow: 0 0 16px var(--accent-amber);
  transform: scale(1.2);
}

/* ==========================================================================
   2-STEP AUTHENTICATION (2FA) & VERIFICATION OPTIONS STYLES
   ========================================================================== */

.auth-step-view {
  display: none;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

.auth-step-view.active {
  display: flex;
  animation: stepFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-2fa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 auto;
}

.auth-2fa-operator-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-hud);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.auth-2fa-operator-pill strong {
  color: #fff;
}

.auth-2fa-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.auth-2fa-method-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
}

.auth-2fa-method-item:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.auth-2fa-method-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.auth-2fa-method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auth-2fa-method-title {
  font-family: var(--font-hud);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.auth-2fa-method-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.auth-2fa-method-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.2s, color 0.2s;
}

.auth-2fa-method-item:hover .auth-2fa-method-arrow {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

/* Biometric Scanner Visual Widget */
.biometric-scanner-widget {
  width: 100px;
  height: 100px;
  margin: 0.5rem auto;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--accent-cyan-glow);
  background: rgba(0, 240, 255, 0.05);
}

.biometric-scanner-widget svg {
  width: 50px;
  height: 50px;
  color: var(--accent-cyan);
}

.biometric-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent-cyan);
  animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Email PIN Input */
.email-pin-input {
  font-family: var(--font-hud) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.4em !important;
  text-align: center !important;
  padding: 0.6rem !important;
}

/* Simulated Email Dispatch Pill */
.email-demo-pill {
  background: rgba(0, 255, 170, 0.1);
  border: 1px dashed var(--accent-emerald);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  color: var(--accent-emerald);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.email-demo-pill:hover {
  background: rgba(0, 255, 170, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
}

/* 2FA Sub-Panel */
.auth-2fa-subpanel {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.auth-2fa-subpanel.active {
  display: flex;
  animation: stepFade 0.25s ease-out;
}

.auth-back-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  margin-top: 0.25rem;
  align-self: center;
  transition: color 0.2s;
}

.auth-back-link:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   SETTINGS & ACCOUNT DETAILS MODAL STYLES
   ========================================================================== */

.settings-modal-card {
  width: 100%;
  max-width: 660px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
  border: 1px solid var(--border-neon-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 240, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.9rem;
}

.settings-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-tabs-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.5rem;
}

.settings-tab-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.settings-tab-btn.active {
  color: #05070d;
  background: var(--accent-cyan);
  font-weight: 800;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.settings-panel {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-panel.active {
  display: flex;
  animation: stepFade 0.25s ease-out;
}

/* 2FA Master Switch Banner */
.settings-2fa-banner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-switch-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Custom Cyber Toggle Switch */
.switch-container {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.switch-container input:checked + .switch-slider {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.switch-container input:checked + .switch-slider:before {
  transform: translateX(24px);
  background-color: #05070d;
}

/* 2FA Configuration Methods Cards */
.settings-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.settings-method-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.settings-method-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 240, 255, 0.4);
}

.settings-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-method-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.settings-badge {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.settings-badge-active {
  background: rgba(0, 255, 170, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

.settings-badge-info {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.settings-feedback-banner {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-hud);
  font-size: 0.74rem;
  display: none;
  text-align: center;
}

.settings-feedback-banner.success {
  display: block;
  background: rgba(0, 255, 170, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.25);
}

.settings-feedback-banner.error {
  display: block;
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid var(--accent-crimson);
  color: #ff6b8b;
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.25);
}

/* ==========================================================================
   GOOGLE SIGN-IN & SIGN-UP SOCIAL BUTTON STYLES
   ========================================================================== */

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.78rem 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-hud);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(66, 133, 244, 0.75);
  box-shadow: 0 0 25px rgba(66, 133, 244, 0.4);
  transform: translateY(-2px);
}

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

.google-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider-line {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.4rem 0;
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.auth-divider-line:not(:empty)::before {
  margin-right: 0.85em;
}

.auth-divider-line:not(:empty)::after {
  margin-left: 0.85em;
}

.google-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 0.4rem;
}

.google-btn-container > div {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.google-btn-container iframe {
  margin: 0 auto !important;
}