/* ==========================================================================
   EDEN MAZARA VISUAL DATA ROOM & 4K MEDIA SCREENING HUB
   Luxury Real Estate Institutional Theme (Dark Glassmorphism / Gold & Emerald)
   ========================================================================== */

/* ==========================================================================
   THEME DEFINITIONS: LIGHT MODE (DEFAULT OUTDOOR HIGH-CONTRAST) & DARK MODE
   ========================================================================== */

:root,
body.light-theme {
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-border: #e2e8f0;
  --bg-glass: rgba(0, 0, 0, 0.02);
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #b89127;
  --border-emerald: #059669;
  
  --gold-primary: #997722;
  --gold-glow: rgba(184, 145, 39, 0.15);
  --emerald-primary: #047857;
  --emerald-glow: rgba(4, 120, 87, 0.15);
  --azure-primary: #0369a1;
  --azure-glow: rgba(3, 105, 161, 0.15);
  --rose-accent: #e11d48;
  
  --text-main: #0f172a;       /* Slate-900: High outdoor sunlight contrast */
  --text-muted: #334155;      /* Slate-700 */
  --text-dim: #64748b;        /* Slate-500 */
  --text-on-accent: #ffffff;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-main: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 0 20px rgba(184, 145, 39, 0.15);
  --shadow-glow: 0 4px 20px rgba(184, 145, 39, 0.2);
}

body.dark-theme {
  --bg-deep: #06090e;
  --bg-surface: #0b111a;
  --bg-card: rgba(15, 23, 38, 0.75);
  --bg-card-hover: rgba(22, 33, 54, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(212, 175, 55, 0.5);
  --border-emerald: rgba(16, 185, 129, 0.4);
  
  --gold-primary: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --azure-primary: #0284c7;
  --azure-glow: rgba(2, 132, 199, 0.25);
  --rose-accent: #f43f5e;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-on-accent: #06090e;

  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.15);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.15);
}

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

body.light-theme {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(184, 145, 39, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(4, 120, 87, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(3, 105, 161, 0.04) 0%, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
  background-color: var(--bg-deep);
  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%),
    radial-gradient(circle at 50% 80%, rgba(2, 132, 199, 0.04) 0%, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   TOP GLOBAL NAVIGATION BAR
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
}

.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: 14px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.logo-gem {
  color: var(--gold-primary);
  font-size: 22px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.brand-text .brand-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(to right, #ffffff, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
}

.metric-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.metric-dot.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.metric-dot.gold { background: #d4af37; box-shadow: 0 0 8px #d4af37; }
.metric-dot.cyan { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.metric-dot.blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }

.metric-label {
  color: var(--text-dim);
  font-weight: 500;
}
.metric-val {
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

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

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #b89127);
  color: #000;
  border-color: #f7df8b;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e5c358, #c99f32);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.badge-accent {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

/* ==========================================================================
   MAIN LAYOUT & HERO SCREENING STUDIO
   ========================================================================== */
.main-wrapper {
  max-width: 1720px;
  margin: 0 auto;
  padding: 30px 28px 80px;
}

.screening-hero {
  margin-bottom: 40px;
}

.hero-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-title-group h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 820px;
  font-size: 14.5px;
}

.btn-upload-clip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}
.btn-upload-clip:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.3);
}

.upload-icon {
  font-size: 26px;
  color: #10b981;
}

.upload-text strong {
  display: block;
  font-size: 14px;
  color: #a7f3d0;
}
.upload-text small {
  color: var(--text-muted);
  font-size: 11px;
}

/* ==========================================================================
   VIDEO THEATER & HUD OVERLAY
   ========================================================================== */
.video-theater-card {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-main);
}

.theater-main {
  display: flex;
  flex-direction: column;
  background: #000;
}

.video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020408;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* HUD Overlay */
.hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s ease;
}

.hud-overlay.hidden {
  opacity: 0;
}

.hud-top, .hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-label {
  color: var(--gold-primary);
  font-weight: 700;
}

.hud-rec {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--rose-accent);
  font-weight: 700;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose-accent);
  box-shadow: 0 0 8px var(--rose-accent);
  animation: pulseRec 1.2s infinite ease-in-out;
}

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

.hud-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hud-crosshair {
  width: 40px;
  height: 40px;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  position: relative;
}
.hud-crosshair::before, .hud-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(212, 175, 55, 0.6);
}
.hud-crosshair::before { width: 1px; height: 10px; top: -5px; left: 19px; }
.hud-crosshair::after { height: 1px; width: 10px; left: -5px; top: 19px; }

.hud-reticle-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  color: #fef08a;
}

/* Fallback Banner */
.video-fallback-banner {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 5;
}

.video-fallback-banner.hidden {
  display: none;
}

.fallback-content {
  max-width: 580px;
}

.fallback-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.fallback-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.fallback-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.fallback-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Drag & Drop Overlay */
.drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border: 2px dashed var(--emerald-primary);
}

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

.drop-card {
  text-align: center;
}

.drop-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

/* Video Controls Bar */
.video-controls-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(11, 17, 26, 0.95);
  border-top: 1px solid var(--border-subtle);
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}
.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

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

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

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

#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;
  transition: transform 0.15s ease;
}
#videoScrubber::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.btn-ctrl-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.speed-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  cursor: pointer;
}

/* Sidebar Tracks */
.theater-sidebar {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(11, 17, 26, 0.5);
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
  max-height: 580px;
}

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

.sidebar-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.badge-status {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  padding: 2px 8px;
  border-radius: 50px;
}

.flight-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flight-track-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}
.flight-track-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}
.flight-track-card.active {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.track-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-primary);
  opacity: 0.8;
}

.track-info h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.track-info p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 4px;
}
.track-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.local-clips-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.box-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.loaded-clips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.empty-clips-msg {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

.clip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  cursor: pointer;
}
.clip-item:hover {
  background: rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   CATALOG SECTION & FILTER BAR
   ========================================================================== */
.catalog-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.section-title-bar h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
}
.section-sub {
  color: var(--text-muted);
  font-size: 13.5px;
}

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

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

.search-box input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}
.search-box input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-dim);
}

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

.view-toggle {
  display: flex;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-view {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  color: var(--text-dim);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}
.btn-view.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.tab-count {
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 50px;
}
.tab-btn.active .tab-count {
  background: rgba(212, 175, 55, 0.3);
  color: #fef08a;
}

/* Tags Filter Bar */
.tags-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-chip {
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tag-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}
.tag-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #7dd3fc;
}

/* ==========================================================================
   ASSET GRID & CARDS
   ========================================================================== */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

.asset-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.asset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

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

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.asset-card:hover .card-media img {
  transform: scale(1.05);
}

/* PDF Preview Frame */
.pdf-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e2f, #0f111a);
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
}

.pdf-icon {
  font-size: 42px;
  margin-bottom: 8px;
  color: var(--gold-primary);
}

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

.badge-size {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-muted);
}

.card-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  color: var(--text-main);
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.btn-card-action {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-card-primary {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-primary);
  font-weight: 600;
}
.btn-card-primary:hover {
  background: var(--gold-primary);
  color: #000;
}

/* Detailed Spec View */
.asset-grid.spec-view {
  grid-template-columns: 1fr;
}
.asset-grid.spec-view .asset-card {
  flex-direction: row;
}
.asset-grid.spec-view .card-media {
  width: 280px;
  aspect-ratio: auto;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}
.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ==========================================================================
   MODALS (INSPECTOR & LIGHTBOX)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.modal-overlay.active {
  display: flex;
}

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

.modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.5);
}

.modal-title-group h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}
.modal-title-group p {
  font-size: 12px;
  color: var(--text-muted);
}

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

.btn-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-close:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fff;
}

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

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

.pane-header {
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.7);
  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;
  letter-spacing: 0.5px;
}

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

.btn-zoom {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
}
.btn-zoom:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

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

.pane-caption {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.inspector-footer {
  padding: 12px 24px;
  background: rgba(11, 17, 26, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

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

.parcel-pill {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}
.parcel-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
}
.parcel-pill.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

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

.lightbox-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  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;
  border-radius: var(--radius-sm);
}

.lightbox-sidebar {
  padding: 30px;
  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: 11px;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.lightbox-sidebar h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.lightbox-sidebar p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.lightbox-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.meta-item .meta-k {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 2px;
}
.meta-item .meta-v {
  font-size: 12.5px;
  font-weight: 600;
}
.meta-v.green {
  color: #10b981;
}

.lightbox-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.lightbox-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}
.lightbox-nav-btn:hover {
  background: rgba(212, 175, 55, 0.4);
  border-color: var(--gold-primary);
}
.lightbox-nav-btn.prev { left: 20px; }
.lightbox-nav-btn.next { right: 400px; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 9, 14, 0.9);
  padding: 24px 28px;
}

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

.footer-left p {
  font-size: 11px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .video-theater-card {
    grid-template-columns: 1fr;
  }
  .theater-sidebar {
    max-height: 350px;
  }
  .lightbox-content {
    grid-template-columns: 1fr;
  }
  .lightbox-sidebar {
    display: none;
  }
  .lightbox-nav-btn.next {
    right: 20px;
  }
}

/* ==========================================================================
   CONFIDENTIAL ACCESS GATEWAY / PASSWORD PROTECTION MODAL
   ========================================================================== */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: radial-gradient(circle at 50% 35%, rgba(16, 24, 34, 0.98), rgba(4, 7, 11, 0.995));
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

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

.auth-gate-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, rgba(20, 29, 41, 0.85), rgba(9, 14, 21, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.85), 
              0 0 50px rgba(212, 175, 55, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 44px 38px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.auth-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.auth-crest {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.3));
}

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

.auth-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #F7E7B4;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 8px #D4AF37;
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FFFFFF 30%, #F7E7B4 70%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #10B981;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.auth-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(243, 244, 246, 0.72);
  margin-bottom: 26px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.auth-icon-prefix {
  position: absolute;
  left: 16px;
  color: #D4AF37;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  background: rgba(10, 16, 24, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px 44px 14px 44px;
  color: #FFFFFF;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.auth-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25), inset 0 0 10px rgba(212, 175, 55, 0.05);
  background: rgba(13, 20, 30, 0.95);
}

.auth-toggle-pwd {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
  transition: color 0.2s;
}

.auth-toggle-pwd:hover {
  color: #D4AF37;
}

.auth-error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  text-align: center;
  animation: fadeInAlert 0.3s ease;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-auth-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #F3E7C4 0%, #D4AF37 50%, #997722 100%);
  color: #06090E;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.45);
  filter: brightness(1.08);
}

.btn-auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-auth-submit.btn-success {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%) !important;
  color: #FFFFFF !important;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6, 9, 14, 0.3);
  border-top-color: #06090E;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.auth-legal-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.auth-legal-sub {
  color: #D4AF37;
  font-size: 10px;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.shake-animation {
  animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

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

/* Navbar Lock Toggle Button */
.btn-lock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lock-toggle:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: #D4AF37;
}

.btn-lock-toggle.active {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
}

/* ==========================================================================
   LIGHT THEME OVERRIDES (HIGH-CONTRAST FOR DIRECT SUNLIGHT / OUTDOOR USE)
   ========================================================================== */

/* Top Navigation */
body.light-theme .top-nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
body.light-theme .logo-mark {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-color: rgba(184, 145, 39, 0.5);
  box-shadow: 0 2px 8px rgba(184, 145, 39, 0.15);
}
body.light-theme .brand-text .brand-title {
  background: linear-gradient(to right, #0f172a, #997722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-theme .brand-text .brand-subtitle {
  color: #475569;
}
body.light-theme .metric-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
body.light-theme .metric-label {
  color: #64748b;
}
body.light-theme .metric-val {
  color: #0f172a;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
body.light-theme .btn-theme-toggle {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
body.light-theme .btn-theme-toggle:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}
body.dark-theme .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
body.dark-theme .btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
body.light-theme .hero-title-group h1 {
  color: #0f172a;
}
body.light-theme .hero-desc {
  color: #334155;
}
body.light-theme .badge-accent {
  background: rgba(184, 145, 39, 0.1);
  border-color: rgba(184, 145, 39, 0.4);
  color: #78350f;
}
body.light-theme .btn-upload-clip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  border-color: rgba(5, 150, 105, 0.5);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}
body.light-theme .upload-text strong {
  color: #065f46;
}
body.light-theme .upload-text small {
  color: #475569;
}
body.light-theme .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
body.light-theme .btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Video Theater & Sidebar */
body.light-theme .video-theater-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
body.light-theme .video-controls-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
body.light-theme .btn-ctrl {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
body.light-theme .btn-ctrl:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
body.light-theme .time-display {
  color: #334155;
}
body.light-theme #videoScrubber {
  background: #e2e8f0;
}
body.light-theme .speed-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
body.light-theme .theater-sidebar {
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
}
body.light-theme .sidebar-header h3 {
  color: #0f172a;
}
body.light-theme .flight-track-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
body.light-theme .flight-track-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
body.light-theme .flight-track-card.active {
  background: #fffbeb;
  border-color: #d4af37;
  box-shadow: 0 2px 8px rgba(184, 145, 39, 0.15);
}
body.light-theme .track-num {
  color: #997722;
}
body.light-theme .track-info h4 {
  color: #0f172a;
}
body.light-theme .track-info p {
  color: #475569;
}
body.light-theme .track-meta {
  color: #64748b;
}
body.light-theme .box-title {
  color: #64748b;
}
body.light-theme .clip-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
body.light-theme .clip-item:hover {
  background: #fef3c7;
  border-color: #d4af37;
}

/* Catalog, Search, Tabs & Tags */
body.light-theme .section-title-bar {
  border-bottom: 1px solid #e2e8f0;
}
body.light-theme .section-title-bar h2 {
  color: #0f172a;
}
body.light-theme .section-sub {
  color: #475569;
}
body.light-theme .search-box input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
body.light-theme .search-box input:focus {
  border-color: #997722;
  box-shadow: 0 0 0 3px rgba(184, 145, 39, 0.15);
  background: #ffffff;
}
body.light-theme .search-box input::placeholder {
  color: #94a3b8;
}
body.light-theme .search-icon {
  color: #64748b;
}
body.light-theme .btn-clear {
  color: #64748b;
}
body.light-theme .btn-view {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
}
body.light-theme .btn-view.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
body.light-theme .tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}
body.light-theme .tab-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}
body.light-theme .tab-btn.active {
  background: #fef3c7;
  border-color: #d4af37;
  color: #78350f;
  box-shadow: 0 2px 6px rgba(184, 145, 39, 0.12);
}
body.light-theme .tab-count {
  background: #e2e8f0;
  color: #334155;
}
body.light-theme .tab-btn.active .tab-count {
  background: #fde68a;
  color: #78350f;
}
body.light-theme .tag-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
body.light-theme .tag-chip:hover {
  border-color: #94a3b8;
  color: #0f172a;
}
body.light-theme .tag-chip.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

/* Asset Cards */
body.light-theme .asset-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
body.light-theme .asset-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 0 20px rgba(184, 145, 39, 0.15);
}
body.light-theme .card-title {
  color: #0f172a;
}
body.light-theme .card-desc {
  color: #334155;
}
body.light-theme .card-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}
body.light-theme .card-actions {
  border-top: 1px solid #f1f5f9;
}
body.light-theme .btn-card-action {
  border-color: #cbd5e1;
  color: #334155;
  background: #f8fafc;
}
body.light-theme .btn-card-action:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}
body.light-theme .btn-card-primary {
  background: #fef3c7;
  border-color: #d4af37;
  color: #92400e;
}
body.light-theme .btn-card-primary:hover {
  background: #d4af37;
  color: #000;
}
body.light-theme .pdf-placeholder {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #475569;
}

/* Modals: Cadastral Dual Comparator & Lightbox */
body.light-theme .modal-overlay {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
}
body.light-theme .modal-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.2);
}
body.light-theme .modal-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
body.light-theme .modal-title-group h2 {
  color: #0f172a;
}
body.light-theme .modal-title-group p {
  color: #475569;
}
body.light-theme .btn-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
body.light-theme .btn-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}
body.light-theme .inspector-body {
  background: #cbd5e1;
}
body.light-theme .inspector-pane {
  background: #f8fafc;
}
body.light-theme .pane-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
body.light-theme .pane-tag {
  color: #997722;
}
body.light-theme .btn-zoom {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
body.light-theme .btn-zoom:hover {
  background: #f1f5f9;
}
body.light-theme .pan-viewport {
  background: #e2e8f0;
}
body.light-theme .pane-caption {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
}
body.light-theme .inspector-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
body.light-theme .parcel-selector-title {
  color: #475569;
}
body.light-theme .parcel-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
body.light-theme .parcel-pill:hover {
  background: #fef3c7;
  border-color: #d4af37;
  color: #78350f;
}
body.light-theme .parcel-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
body.light-theme .lightbox-media-wrapper {
  background: #f1f5f9;
}
body.light-theme .lightbox-sidebar {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
}
body.light-theme .lightbox-sidebar h2 {
  color: #0f172a;
}
body.light-theme .lightbox-sidebar p {
  color: #334155;
}
body.light-theme .lightbox-meta-grid {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
body.light-theme .meta-item .meta-k {
  color: #64748b;
}
body.light-theme .meta-item .meta-v {
  color: #0f172a;
}
body.light-theme .lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
body.light-theme .lightbox-nav-btn:hover {
  background: #ffffff;
}

/* Confidential Password Barrier in Light Mode */
body.light-theme .auth-gate-overlay {
  background: radial-gradient(circle at 50% 35%, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.995));
}
body.light-theme .auth-gate-card {
  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);
}
body.light-theme .auth-title {
  background: linear-gradient(135deg, #0f172a 40%, #997722 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-theme .auth-badge-label {
  background: rgba(184, 145, 39, 0.1);
  border-color: rgba(184, 145, 39, 0.4);
  color: #78350f;
}
body.light-theme .auth-desc {
  color: #334155;
}
body.light-theme .auth-input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
body.light-theme .auth-input:focus {
  background: #ffffff;
  border-color: #997722;
  box-shadow: 0 0 0 3px rgba(184, 145, 39, 0.15);
}
body.light-theme .auth-toggle-pwd {
  color: #64748b;
}
body.light-theme .auth-toggle-pwd:hover {
  color: #0f172a;
}
body.light-theme .auth-legal-footer {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}
body.light-theme .auth-legal-sub {
  color: #997722;
}
body.light-theme .btn-lock-toggle {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
body.light-theme .btn-lock-toggle.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

/* Footer */
body.light-theme .app-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}
body.light-theme .footer-left strong {
  color: #0f172a;
}
