/* ==========================================================================
   EDEN MAZARA VISUAL DATA ROOM & 4K MEDIA SCREENING HUB
   Extraordinarily Visual & Media-First Architecture
   ========================================================================== */

/* ==========================================================================
   1. THEME DEFINITIONS: LIGHT MODE (DEFAULT) & DARK MODE
   ========================================================================== */
:root,
body.light-theme {
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #b89127;
  
  --gold-primary: #997722;
  --gold-accent: #d4af37;
  --gold-light: #fef3c7;
  --emerald-primary: #047857;
  --emerald-light: #ecfdf5;
  --azure-primary: #0369a1;
  
  --text-main: #0f172a;       /* High outdoor legibility */
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-subtle: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 16px 36px -4px rgba(15, 23, 42, 0.14), 0 0 20px rgba(184, 145, 39, 0.15);
}

body.dark-theme {
  --bg-deep: #06090e;
  --bg-surface: #0b111a;
  --bg-card: #0f1726;
  --bg-card-hover: #162136;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: #d4af37;
  
  --gold-primary: #d4af37;
  --gold-accent: #f7e7b4;
  --gold-light: rgba(212, 175, 55, 0.15);
  --emerald-primary: #10b981;
  --emerald-light: rgba(16, 185, 129, 0.15);
  --azure-primary: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.light-theme {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(184, 145, 39, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(4, 120, 87, 0.04) 0%, transparent 45%);
}

body.dark-theme {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 45%);
}

/* ==========================================================================
   2. SLIM TOP GLOBAL HEADER
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.dark-theme .top-nav {
  background: rgba(11, 17, 26, 0.92);
}

.nav-container {
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text .brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
}

.brand-text .brand-subtitle {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  text-decoration: none;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.btn-secondary {
  border-color: var(--border-medium);
}

.btn-theme-toggle {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.btn-lock-toggle {
  background: var(--emerald-light);
  border-color: rgba(4, 120, 87, 0.4);
  color: var(--emerald-primary);
}

.btn-lock-toggle.active {
  background: var(--emerald-light);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

/* ==========================================================================
   3. PRIORITIZED 4K VIDEO & DRONE SCREENING THEATER (CINEMA STAGE)
   ========================================================================== */
.main-wrapper {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}

.cinema-stage-section {
  margin-bottom: 32px;
}

.cinema-header-strip {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cinema-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cinema-heading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin: 0;
}

.cinema-subheading {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  max-width: 800px;
  line-height: 1.5;
}

.cinema-frame {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-medium);
}

.cinema-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 720px;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mainVideoPlayer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.motion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: none;
}

.motion-canvas.active {
  display: block;
}

/* Center Play Button Overlay */
.center-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.center-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.btn-big-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #997722);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 35px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.btn-big-play:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 50px rgba(212, 175, 55, 0.7);
}

.now-playing-pill {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Drag & Drop Overlay */
.drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(4, 7, 11, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  border: 3px dashed var(--gold-primary);
}

.drop-overlay.active {
  display: flex;
}

.drop-card {
  text-align: center;
  color: #fff;
}

.drop-card h3 {
  font-size: 22px;
  margin: 12px 0 6px;
}

.drop-card p {
  color: #94a3b8;
  font-size: 13px;
}

/* Cinema Controls Bar */
.cinema-controls-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #0b111a;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .cinema-controls-bar {
  background: #ffffff;
  color: #0f172a;
  border-top: 1px solid var(--border-subtle);
}

.btn-ctrl-play {
  background: transparent;
  border: none;
  color: inherit;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-ctrl-play:hover {
  transform: scale(1.15);
  color: var(--gold-primary);
}

.cinema-scrubber-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

#videoScrubber {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

body.light-theme #videoScrubber {
  background: #e2e8f0;
}

#videoScrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  cursor: pointer;
}

.cinema-time-display {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.speed-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  outline: none;
  cursor: pointer;
}

body.light-theme .speed-select {
  background: #f8fafc;
  border-color: var(--border-medium);
}

.btn-cinema-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--emerald-primary), #059669);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cinema-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Visual Drone Track Selector */
.drone-tracks-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px 20px;
  background: #06090e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .drone-tracks-bar {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

.track-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.track-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.light-theme .track-card:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.track-card.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
}

body.light-theme .track-card.active {
  background: #fffbeb;
  border-color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(184, 145, 39, 0.15);
}

.track-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.track-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.track-card:hover .track-media img {
  transform: scale(1.06);
}

.track-time {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
}

.track-meta-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   4. VISUAL MEDIA CATALOG & TOOLBAR
   ========================================================================== */
.visual-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-focus);
}

.filter-pill.active {
  background: #fef3c7;
  border-color: #d4af37;
  color: #78350f;
  box-shadow: 0 2px 6px rgba(184, 145, 39, 0.15);
}

body.dark-theme .filter-pill.active {
  background: rgba(212, 175, 55, 0.2);
  color: #f7e7b4;
  border-color: #d4af37;
}

.pill-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.08);
}

body.dark-theme .pill-badge {
  background: rgba(255, 255, 255, 0.12);
}

.search-input-box {
  position: relative;
  width: 280px;
}

.search-input-box input {
  width: 100%;
  padding: 8px 32px 8px 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.search-input-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.btn-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

/* ==========================================================================
   5. EXTRAORDINARILY VISUAL ASSET GRID (ZERO TEXT WALLS)
   ========================================================================== */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
  box-shadow: var(--shadow-card);
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-card-hover);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.asset-card:hover .card-media img {
  transform: scale(1.04);
}

.media-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}

.asset-card:hover .media-hover-overlay {
  opacity: 1;
}

.hover-view-icon {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hover-comp-btn {
  background: linear-gradient(135deg, #d4af37, #997722);
  color: #000;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-media {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* PDF Media Placeholder */
.pdf-media {
  background: #f1f5f9;
}

body.dark-theme .pdf-media {
  background: #0f172a;
}

.pdf-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.pdf-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.pdf-filename {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-badge {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Card Minimal Meta Bar */
.card-meta-bar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
}

.card-title-text {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.card-sub-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-size-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg-card-hover);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-dl-link {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.15s;
}

.card-dl-link:hover {
  color: var(--gold-primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-size: 18px;
  margin: 12px 0 6px;
}

.empty-state p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ==========================================================================
   6. MODALS: CADASTRAL DUAL-VIEWER & FULLSCREEN LIGHTBOX
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1600px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card-hover);
}

.modal-title-group h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-title-group p {
  font-size: 11.5px;
  color: var(--text-dim);
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ctrl-badge {
  background: var(--gold-light);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

/* Inspector Body */
.inspector-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-medium);
  overflow: hidden;
}

.inspector-pane {
  background: #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

body.dark-theme .inspector-pane {
  background: #06090e;
}

.pane-header {
  padding: 8px 14px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 5;
}

.pane-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-primary);
  font-weight: 700;
}

.pane-zoom-controls {
  display: flex;
  gap: 4px;
}

.btn-zoom {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
}

.pan-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.pan-viewport img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  user-select: none;
}

.pane-caption {
  padding: 8px 14px;
  background: var(--bg-surface);
  font-size: 11.5px;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.inspector-footer {
  padding: 10px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}

.parcel-selector-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.parcel-pill-group {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
}

.parcel-pill {
  padding: 4px 10px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.parcel-pill.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: var(--bg-surface);
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  max-width: 1400px;
  height: 85vh;
}

.lightbox-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  overflow: hidden;
}

.lightbox-media-wrapper {
  background: #020408;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.lightbox-media-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-media-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox-sidebar {
  padding: 24px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lightbox-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold-primary);
  background: var(--gold-light);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

.lightbox-sidebar h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.lightbox-sidebar p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.lightbox-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.meta-item .meta-k {
  display: block;
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 2px;
}

.meta-item .meta-v {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
}

.lightbox-nav-btn.prev { left: 16px; }
.lightbox-nav-btn.next { right: 380px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; z-index: 100; }

/* ==========================================================================
   7. CONFIDENTIAL PASSWORD GATEWAY
   ========================================================================== */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: radial-gradient(circle at 50% 35%, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.995));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.4s ease, visibility 0.4s;
}

body.dark-theme .auth-gate-overlay {
  background: radial-gradient(circle at 50% 35%, rgba(16, 24, 34, 0.98), rgba(4, 7, 11, 0.995));
}

.auth-gate-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-gate-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid rgba(184, 145, 39, 0.45);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12), 0 0 40px rgba(184, 145, 39, 0.15);
  border-radius: 20px;
  padding: 40px 34px;
  text-align: center;
}

body.dark-theme .auth-gate-card {
  background: #0f1726;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.85);
}

.auth-crest {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
}

.crest-svg {
  width: 100%;
  height: 100%;
}

.auth-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184, 145, 39, 0.1);
  border: 1px solid rgba(184, 145, 39, 0.4);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 11.5px;
  color: var(--emerald-primary);
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.auth-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-input-wrapper {
  position: relative;
  width: 100%;
}

.auth-icon-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
}

.auth-input {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 40px 12px 42px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.auth-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.auth-toggle-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}

.auth-error-alert {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 10px;
}

.btn-auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #d4af37, #997722);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 15px rgba(184, 145, 39, 0.3);
}

.btn-auth-submit.btn-success {
  background: #059669 !important;
}

.auth-legal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-dim);
}

/* Shake Animation */
.shake-animation {
  animation: shake 0.45s ease both;
}

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

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 20px 28px;
}

.footer-container {
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-left strong {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 1100px) {
  .drone-tracks-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .lightbox-content {
    grid-template-columns: 1fr;
  }
  .lightbox-sidebar {
    display: none;
  }
  .lightbox-nav-btn.next {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .drone-tracks-bar {
    grid-template-columns: 1fr 1fr;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .inspector-body {
    grid-template-columns: 1fr;
  }
}
