/* --- VOLCAINFO GLASS AURORAMORPHISM DESIGN THEME --- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,800;1,400&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-ui: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --bg-dark: #030306;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.08);
  --border-glow-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --volca-red: #f87171;
  --volca-orange: #fb923c;
  --volca-yellow: #facc15;
  --volca-green: #4ade80;
  --wonder-gold: #fde047;
  
  --accent-color: var(--volca-red);
  --accent-glow: rgba(248, 113, 113, 0.25);
  --glass-bg: rgba(10, 10, 15, 0.45);
  --glass-blur: blur(20px) saturate(160%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

[data-theme="golden"] {
  --font-heading: 'Playfair Display', serif;
  --font-ui: 'Playfair Display', serif;
  --accent-color: var(--wonder-gold);
  --accent-glow: rgba(253, 224, 71, 0.25);
}

/* Entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-entrance {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease;
  position: relative;
}

/* Glassy Tech Grid & Scanline Subtle Background Overlays */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* removed invalid background-line-grid */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.006) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.006) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.9;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(3, 3, 6, 0.4) 100%);
  pointer-events: none;
  z-index: 999;
}

/* Animated Aurora Background Blobs */
.aurora-container-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  overflow: hidden;
  background: #030306;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.38;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default Red (Volcanic/Monitoring) Theme Auroras */
.aurora-pink {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.5) 0%, rgba(220, 38, 38, 0.15) 100%);
  top: -10vw;
  left: -10vw;
  animation: float-aurora-pink 25s infinite alternate ease-in-out;
}

.aurora-orange {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.4) 0%, rgba(234, 88, 12, 0.12) 100%);
  bottom: -5vw;
  right: -5vw;
  animation: float-aurora-orange 30s infinite alternate ease-in-out;
}

.aurora-blue {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(124, 58, 237, 0.08) 100%);
  top: 25%;
  left: 40%;
  animation: float-aurora-blue 28s infinite alternate ease-in-out;
}

.aurora-purple {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(219, 39, 119, 0.05) 100%);
  top: -5vw;
  right: 15vw;
  animation: float-aurora-purple 22s infinite alternate ease-in-out;
}

/* Golden/Yellow Theme override (Mountain Wonders) */
[data-theme="golden"] .aurora-pink {
  background: radial-gradient(circle, rgba(234, 179, 8, 0.45) 0%, rgba(161, 98, 7, 0.1) 100%);
}
[data-theme="golden"] .aurora-orange {
  background: radial-gradient(circle, rgba(202, 138, 4, 0.4) 0%, rgba(113, 63, 18, 0.08) 100%);
}
[data-theme="golden"] .aurora-blue {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, rgba(20, 184, 166, 0.05) 100%);
}
[data-theme="golden"] .aurora-purple {
  background: radial-gradient(circle, rgba(250, 204, 21, 0.35) 0%, rgba(234, 179, 8, 0.06) 100%);
}

@keyframes float-aurora-pink {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(12%, 18%) scale(1.1) rotate(45deg); }
  100% { transform: translate(-6%, 8%) scale(0.9) rotate(-30deg); }
}

@keyframes float-aurora-orange {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-18%, -12%) scale(1.15) rotate(-60deg); }
  100% { transform: translate(12%, 18%) scale(0.9) rotate(30deg); }
}

@keyframes float-aurora-blue {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-10%, 15%) scale(1.1) rotate(90deg); }
  100% { transform: translate(15%, -10%) scale(0.95) rotate(-45deg); }
}

@keyframes float-aurora-purple {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18%, -18%) scale(1.15); }
  100% { transform: translate(-12%, 12%) scale(0.9); }
}

@keyframes golden-glow {
  0% { box-shadow: 0 0 5px rgba(253, 224, 71, 0.2); }
  50% { box-shadow: 0 0 15px rgba(253, 224, 71, 0.5); }
  100% { box-shadow: 0 0 5px rgba(253, 224, 71, 0.2); }
}
.glowing-golden {
  animation: golden-glow 2s infinite alternate;
}

@keyframes red-glow {
  0% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }
  100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
}
.glowing-red {
  animation: red-glow 2s infinite alternate;
}

@keyframes lava-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.lava-flow {
  background: linear-gradient(270deg, #f87171, #fb923c, #facc15);
  background-size: 600% 600%;
  animation: lava-flow 6s ease infinite;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Layout Framework */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

header#app-navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-brand:hover {
  transform: scale(1.02);
}

/* Brand Icon and Text Styling */
.brand-logo-img {
  height: 44px;
  width: 44px;
  margin-right: 0px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-brand:hover .brand-logo-img {
  transform: rotate(12deg) scale(1.1);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Toggle Views Segment */
.view-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.view-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-btn.active {
  background: var(--accent-color);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Lang Switch */
.lang-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Responsive collapse mechanism targeting header:nth-of-type(1) and children */
header:nth-of-type(1) .nav-toggle {
  display: none;
  background: rgba(14, 11, 11, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  padding: 8px;
  cursor: pointer;
  border-radius: 8px !important;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

header:nth-of-type(1) .nav-toggle svg,
header:nth-of-type(1) .nav-toggle i.lucide {
  width: 28px !important;
  height: 28px !important;
}

header:nth-of-type(1) .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
}

header:nth-of-type(1) .nav-toggle .icon-close {
  display: none;
}

header:nth-of-type(1).open .nav-toggle .icon-menu {
  display: none;
}

header:nth-of-type(1).open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 768px) {
  header:nth-of-type(1) .nav-toggle {
    display: flex;
  }

  header:nth-of-type(1) .nav-controls {
    display: none; /* Collapse by default */
    position: absolute;
    top: 64px; /* Directly under navbar */
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 2px solid var(--accent-color);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    align-items: stretch;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
  }

  header:nth-of-type(1).open .nav-controls {
    display: flex;
    animation: menu-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  header:nth-of-type(1) .view-switch {
    width: 100%;
    display: flex;
    border-radius: 0px !important;
  }

  header:nth-of-type(1) .view-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 0px !important;
  }

  header:nth-of-type(1) .lang-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
    border-radius: 0px !important;
  }
}

@keyframes menu-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Workspace Framework */
.app-container {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 390px 1fr;
  height: calc(100vh - 64px);
  overflow: hidden;
  padding: 16px;
  gap: 16px;
  background: transparent;
}

/* Left Sidebar Layout */
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1),
.sidebar {
  background: rgba(10, 10, 15, 0.55) !important; /* Semi-transparent glass-morphism background */
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0px !important; /* Blocky design language override */
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55) !important;
  position: relative;
  overflow-x: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: sidebar-entrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Subtle scanning radar sweep line to emphasize the blocky seismic design */
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1)::before,
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color, #ef4444), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.5s ease;
}

/* Let the scanning sweep line perform an absolute premium loop when hover occurs */
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1):hover::before,
.sidebar:hover::before {
  opacity: 1;
  animation: sidebar-sweep 4s linear infinite;
}

@keyframes sidebar-sweep {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

/* Highlight border and glowing shadow feedback when the entire container receives interactive cursor */
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1):hover,
.sidebar:hover {
  border-color: rgba(239, 68, 68, 0.25) !important; /* Interactive seismic accent color glow */
  box-shadow: 0 15px 45px rgba(239, 68, 68, 0.06), 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

/* Animate children on hover to give beautiful, responsive micro-interaction feedback */
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) h2,
.sidebar h2 {
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1):hover h2,
.sidebar:hover h2 {
  color: #fff;
  transform: translateX(4px);
}

section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) .subtitle,
.sidebar .subtitle {
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1):hover .subtitle,
.sidebar:hover .subtitle {
  color: var(--accent-color, #ef4444);
  transform: translateX(4px);
}

/* Beautiful initial entrance slide & scale-in animation */
@keyframes sidebar-entrance {
  0% {
    opacity: 0;
    transform: translateX(-15px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.sidebar h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.sidebar p.subtitle {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Search Box Element */
.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.clr-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px 14px 12px 38px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  outline: none;
  transition: all 0.25s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.02);
}

/* Filters Layout */
/* Filters Layout & Glass-morphism focus styling on selected elements */
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) > button#btn-filter-toggle:nth-of-type(1),
.filters-toggle-btn {
  width: 100%;
  background: rgba(14, 11, 11, 0.55) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0px !important; /* Industrial Override: sharp blocky geometric corners */
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important; /* Subtle industrial deep drop-shadow */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) > button#btn-filter-toggle:nth-of-type(1):hover,
.filters-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55) !important;
}

/* Embedded chevron rotation transition matching both pure i and lucide svg structures */
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) > button#btn-filter-toggle:nth-of-type(1) i,
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) > button#btn-filter-toggle:nth-of-type(1) svg,
.filters-toggle-btn i,
.filters-toggle-btn svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) > button#btn-filter-toggle:nth-of-type(1).active i,
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) > button#btn-filter-toggle:nth-of-type(1).active svg,
.filters-toggle-btn.active i,
.filters-toggle-btn.active svg {
  transform: rotate(180deg) !important;
}

section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) > div#filter-panel:nth-of-type(3),
.filters-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: rgba(14, 11, 11, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0px !important; /* Sharp industrial corners to matches toggle */
  padding: 14px;
}

section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(1) > div#filter-panel:nth-of-type(3).open,
.filters-panel.open {
  display: flex;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.filter-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 8px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.filter-select option {
  background: #0f0f14;
  color: #fff;
}

/* Volcanoes List Column */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 2px;
}

.item-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.item-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: background 0.3s;
}

.item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.item-card.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  animation: red-glow 2s infinite alternate;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.item-card.active::after {
  background: var(--accent-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.card-meta {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Right content panel layout */
.main-content {
  display: grid;
  grid-template-rows: 1fr;
  height: 100%;
  overflow: hidden;
  background: transparent;
  gap: 16px;
}

/* Map Frame */
.map-frame {
  position: relative;
  border: var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* --- MAP LAYER SWITCHER OVERLAY --- */
.map-layer-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 400;
  display: flex;
  gap: 1.5px;
  background: rgba(10, 10, 15, 0.75) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 4px;
  border-radius: 0px !important; /* Sharp industrial corners for blocky look */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.layer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 11, 11, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0px !important; /* Sharp blocky style override */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer-btn i,
.layer-btn svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: color 0.25s;
}

.layer-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.layer-btn:hover i,
.layer-btn:hover svg {
  color: #fff;
}

.layer-btn.active {
  background: var(--accent-color) !important;
  color: #000 !important;
  border-color: var(--accent-color) !important;
}

.layer-btn.active i,
.layer-btn.active svg {
  color: #000 !important;
}

#map {
  width: 100%;
  height: 100%;
  background: #030306;
}

/* Map Marker Pulses */
.marker-pulse svg {
  animation: marker-pulse-anim 1.5s infinite alternate;
}

@keyframes marker-pulse-anim {
  0% { transform: scale(0.9); opacity: 0.95; }
  100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 18px var(--accent-color)); }
}

/* Detail Panel Container */
.detail-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: var(--glass-shadow);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

/* Tab Header Navigation */
.tabs-header {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 10;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.35s ease;
}

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

.tab-btn.active {
  color: var(--accent-color);
}

.tab-btn.active::after {
  background: var(--accent-color);
}

/* Tab Content Window */
.tabs-content {
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
  z-index: 5;
  padding: 24px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.35s ease;
  height: 100%;
}

.tab-pane.active {
  display: block;
}

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

/* Dynamic Details Cards */
.details-headline {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-img-box {
  width: 130px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  flex-shrink: 0;
}

.detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-headers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.detail-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.detail-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Alert Colors badges */
.level-badge-warning {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.level-badge-watch {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fb923c;
}

.level-badge-advisory {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
  color: #facc15;
}

.level-badge-normal {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.detail-desc {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

/* Grid parameters dashboard */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.tel-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 12px 14px;
}

.tel-header {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tel-value {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #fff;
}

.tel-btn-row {
  margin-top: 15px;
}

.source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
}

.source-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Guide & Glossary tab styling */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media(max-width: 768px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
}

.guide-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-block h3 {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  border-bottom: 1px solid var(--border-glow);
  padding-bottom: 8px;
}

.glossary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.01);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.glossary-item h4 {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.glossary-item p {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 3D Model Panel Layout */
.model-workspace {
  display: grid;
  grid-template-columns: 1fr 240px;
  height: 100%;
  gap: 16px;
}

@media(max-width: 900px) {
  .model-workspace {
    grid-template-columns: 1fr;
  }
}

.canvas-container {
  background: #040406;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
  min-height: 250px;
}

#volcano-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#volcano-canvas:active {
  cursor: grabbing;
}

.radar-focus-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.help-indicator-hud {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: calc(100% - 24px);
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.4;
  opacity: 0.55;
  pointer-events: none;
}

.model-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  padding: 14px;
  border-radius: 6px;
  overflow-y: auto;
}

.ctrl-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.small-ctrl-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.small-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.small-ctrl-btn.active {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  font-weight: 900;
}

.poi-list-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.poi-panel-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.poi-panel-btn.active {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.04);
}

.poi-panel-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-color);
}

.poi-name {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 2px;
}

.poi-desc {
  font-size: 8px;
  line-height: 1.3;
  color: var(--text-secondary);
  display: none;
}

.poi-panel-btn.active .poi-desc {
  display: block;
}

/* Safety alerts tab styling */
.safety-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media(max-width: 768px) {
  .safety-workspace {
    grid-template-columns: 1fr;
  }
}

.safety-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  padding: 16px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.safety-card h3 {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-glow);
  padding-bottom: 8px;
}

/* Distance calculator slider */
.distance-slider-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.distance-hud-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.range-wrap {
  position: relative;
  width: 100%;
}

.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: transform 0.1s;
}

.slider-input::-webkit-slider-thumb:active {
  transform: scale(1.18);
}

.threat-banner {
  border-radius: 4px;
  padding: 12px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.threat-red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  animation: pulse-red 1s infinite alternate;
}

.threat-green {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

@keyframes pulse-red {
  0% { opacity: 0.85; box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.1); }
  100% { opacity: 1; box-shadow: inset 0 0 14px rgba(239, 68, 68, 0.35); }
}

/* Audio Signal Beacon toggle */
.beacon-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beacon-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 12px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

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

.beacon-btn.playing {
  background: var(--volca-orange);
  color: #000;
  border-color: var(--volca-orange);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.checklist-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  gap: 8px;
}

.checklist-item svg {
  width: 12px;
  height: 12px;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Symmetrical Footing indicator line */
.symmetrical-radar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(4, 4, 6, 0.85);
  border-top: 1px solid var(--border-glow);
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 8px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.12em;
}

/* Leaflet Custom Glass Popup Styles & Precise interactive selector matching focus request */
section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(2) > div:nth-of-type(1) > div#map:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(6) > div:nth-of-type(1) > div:nth-of-type(1),
.custom-glass-leaflet-popup-wrapper .leaflet-popup-content-wrapper {
  background: rgba(10, 10, 15, 0.55) !important; /* Semi-transparent design */
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0px !important; /* Sharp blocky corners */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
  padding: 8px !important;
  transform-origin: center bottom !important;
  animation: leaflet-popup-smooth-zoom 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  will-change: transform, opacity;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

section#workspace:nth-of-type(2) > main:nth-of-type(1) > section:nth-of-type(2) > div:nth-of-type(1) > div#map:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(6) > div:nth-of-type(1) > div:nth-of-type(1):hover,
.custom-glass-leaflet-popup-wrapper .leaflet-popup-content-wrapper:hover {
  background: rgba(10, 10, 15, 0.68) !important;
  border-color: rgba(239, 68, 68, 0.45) !important; /* Red hover response glow */
  box-shadow: 0 24px 60px rgba(239, 68, 68, 0.15) !important;
}

@keyframes leaflet-popup-smooth-zoom {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(12px);
    backdrop-filter: blur(5px) saturate(100%);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    backdrop-filter: blur(24px) saturate(160%);
  }
}

.custom-glass-leaflet-popup-wrapper .leaflet-popup-tip {
  background: rgba(10, 10, 15, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0px !important;
}

.custom-glass-leaflet-popup-wrapper .leaflet-popup-close-button {
  color: var(--text-secondary) !important;
  font-size: 16px !important;
  padding: 10px 12px 0 0 !important;
}

.custom-glass-leaflet-popup-wrapper .leaflet-popup-close-button:hover {
  color: #fff !important;
}

.popup-badge {
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
}

.badge-dark {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
}

/* Mobile responsive layout triggers */
@media (max-width: 950px) {
  .app-container {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }
  .sidebar {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-glow);
  }
  .main-content {
    grid-template-rows: 450px;
    height: auto;
  }
  .map-frame {
    height: 450px;
  }
  .navbar {
    padding: 0 20px;
  }
}

/* --- CINEMATIC HERO PAGE & SCROLL MECHANICS --- */

@media (min-width: 951px) {
  html {
    scroll-behavior: smooth;
  }
}

.workspace-section {
  height: 100vh;
  padding-top: 64px;
  box-sizing: border-box;
  background: #030306;
}

@media (max-width: 950px) {
  .workspace-section {
    height: auto;
    padding-top: 64px;
  }
}

@media (min-width: 951px) {
  .app-container {
    margin-top: 0 !important;
    height: calc(100vh - 64px) !important;
  }
}

/* Hero Section Cabinet Setup and interactive depth-zoom transition */
section#hero-section:nth-of-type(1), .hero-section {
  position: relative;
  min-height: 100vh;
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 80px;
  padding: 84px 80px 45px 80px;
  box-sizing: border-box;
  /* Premium volcanic skyline background with subtle grid overlay */
  background: radial-gradient(circle at 75% 30%, rgba(239, 68, 68, 0.12) 0%, rgba(20, 10, 10, 0.3) 40%, rgba(3, 3, 6, 0.98) 85%), #030306;
  background-size: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease, backdrop-filter 0.6s ease;
  will-change: transform;
}

section#hero-section:nth-of-type(1):hover {
  transform: scale(1.012);
  background: radial-gradient(circle at 75% 30%, rgba(239, 68, 68, 0.08) 0%, rgba(20, 10, 10, 0.18) 40%, rgba(3, 3, 6, 0.94) 85%), rgba(10, 10, 15, 0.15);
  backdrop-filter: blur(12px);
}

/* Master row wrapper for hero elements */
.hero-main-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex: 1;
  z-index: 5;
  perspective: 1200px;
}

/* Warm magma pulse effect on hero background */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(239, 68, 68, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Hero Content container targeted for mouse tilt and 3D space placement */
section#hero-section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) {
  flex: 1.2;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 5;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform;
}

/* Layered parallax depth placements for content objects */
section#hero-section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > .hero-header-badge {
  transform: translateZ(15px);
}

section#hero-section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > .hero-title,
section#hero-section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > #hero-primary-title {
  transform: translateZ(35px);
}

section#hero-section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > .hero-lead,
section#hero-section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > #hero-sub-title {
  transform: translateZ(20px);
}

section#hero-section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > .hero-stats-row {
  transform: translateZ(25px);
}

section#hero-section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > .hero-ctas {
  transform: translateZ(30px);
}

/* Stunning Fiery Title with Color Flow */
.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 58px;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.title-gradient {
  background: linear-gradient(135deg, #f87171 0%, #fb923c 45%, #facc15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  font-weight: 900;
  text-shadow: none;
}

[data-theme="golden"] .title-gradient {
  background: linear-gradient(135deg, #fde047 0%, #ca8a04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 620px;
}

.hero-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 0 0 26px 0;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 9999px;
  width: fit-content;
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.05);
  transition: all 0.3s ease;
}

[data-theme="golden"] .hero-header-badge {
  background: rgba(253, 224, 71, 0.1);
  border: 1px solid rgba(253, 224, 71, 0.2);
  color: var(--wonder-gold);
  box-shadow: 0 0 20px rgba(253, 224, 71, 0.05);
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  animation: pulse-ring 1.8s infinite;
}

[data-theme="golden"] .live-pulse {
  background-color: var(--wonder-gold);
  box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.7);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(248, 113, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 52px;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-lead {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 10px 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat .val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: #fff;
  line-height: 1;
}

.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-color);
  color: #030306;
  border: none;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px var(--accent-glow);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
  opacity: 0.95;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glow-hover);
  transform: translateY(-1px);
}

/* Interactive Features Stack Column in Hero */
.hero-visual {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.radar-scan-circle {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 2px dashed rgba(248, 113, 113, 0.15);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.04) 0%, rgba(3, 3, 6, 0.8) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(239, 68, 68, 0.05);
  overflow: hidden;
  transition: all 0.5s ease;
}

[data-theme="golden"] .radar-scan-circle {
  border-color: rgba(253, 224, 71, 0.15);
  background: radial-gradient(circle, rgba(253, 224, 71, 0.04) 0%, rgba(3, 3, 6, 0.8) 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(253, 224, 71, 0.05);
}

.radar-scan-circle::before {
  content: '';
  position: absolute;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.radar-scan-circle::after {
  content: '';
  position: absolute;
  width: calc(100% - 120px);
  height: calc(100% - 120px);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.02);
}

.radar-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.5), rgba(248, 113, 113, 0));
  transform-origin: left center;
  animation: radar-sweep 4s linear infinite;
}

[data-theme="golden"] .radar-line {
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.5), rgba(253, 224, 71, 0));
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-volcano-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.65;
  mix-blend-mode: color-dodge;
  filter: saturate(1.2) contrast(1.1);
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-in-out;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.radar-scan-circle:hover .hero-volcano-img {
  transform: scale(1.08) rotate(4deg);
  opacity: 0.75;
}

.radar-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(248, 113, 113, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 113, 113, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  pointer-events: none;
}

[data-theme="golden"] .radar-grid {
  background-image: 
    linear-gradient(rgba(253, 224, 71, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 224, 71, 0.02) 1px, transparent 1px);
}

/* Scroll Promo Indicator */
.scroll-indicator {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  z-index: 5;
  pointer-events: none;
  margin: 15px auto 5px auto;
  align-self: center;
}

.arrow-bounce {
  animation: scroll-bounce 1.6s infinite;
  color: var(--accent-color);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Custom view buttons highlight under golden theme */
[data-theme="golden"] .view-btn.active {
  background: var(--wonder-gold);
  color: #000;
  box-shadow: 0 0 15px rgba(253, 224, 71, 0.3);
}

/* Responsive Overrides for Hero */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 90px 20px 40px 20px;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
  }
  .hero-main-row {
    flex-direction: column;
    gap: 20px;
  }
  .hero-content {
    max-width: 100%;
    align-items: center;
    text-align: center;
    padding-bottom: 40px; /* Added spacing */
    margin-bottom: 20px;   /* Added spacing */
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-lead {
    font-size: 13px;
  }
  .hero-stats-row {
    gap: 16px;
  }
  .hero-stat .val {
    font-size: 20px;
  }
  .radar-scan-circle {
    width: 240px;
    height: 240px;
  }
  .hero-volcano-img {
    width: 160px;
    height: 160px;
  }
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 950px) and (min-width: 769px) {
  section#hero-section:nth-of-type(1) {
    padding: 84px 30px 45px 30px;
  }
  .hero-main-row {
    gap: 20px;
  }
  .radar-scan-circle {
    width: 280px;
    height: 280px;
  }
  .hero-title {
    font-size: 36px;
  }
}

/* --- INTERACTIVE FEATURE CAROUSEL SLIDER --- */
.hero-feature-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 15px auto 5px auto;
  position: relative;
  z-index: 10;
  background: rgba(14, 11, 11, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  backdrop-filter: blur(8px);
  border-radius: 12px;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ambient-glow 6s infinite alternate ease-in-out;
  animation-delay: 1s;
}

section#hero-section:nth-of-type(1):hover .hero-feature-container {
  background: rgba(14, 11, 11, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.drag-hint-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--accent-color);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
  opacity: 0.9;
  padding: 0;
  flex-shrink: 0;
}

.drag-hint-icon {
  width: 12px;
  height: 12px;
  color: var(--accent-color);
  animation: drag-wiggle 1.5s infinite ease-in-out;
}

@keyframes drag-wiggle {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.hero-feature-carousel {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px;
  cursor: grab;
  user-select: none;
}

.hero-feature-carousel:active {
  cursor: grabbing;
}

/* Hide scrollbar but keep interactive scrolling */
.hero-feature-carousel::-webkit-scrollbar {
  display: none;
}

.hero-feature-carousel {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Sleek Feature Pill Ticker Items */
.feature-info-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-info-pill:hover {
  transform: translateY(-1px);
}

.info-badge {
  background: var(--accent-color);
  color: #000;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  border-radius: 0px !important;
}

.info-badge-gold {
  background: var(--wonder-gold);
  color: #000;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  border-radius: 0px !important;
}

.info-badge-cyan {
  background: #06b6d4;
  color: #000;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  border-radius: 0px !important;
}

.info-main {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
}

.info-main strong {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-right: 4px;
}

.info-divider {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.15);
  font-size: 10px;
  user-select: none;
  flex-shrink: 0;
}

/* Stagger entrance animation for individual feature items inside section#hero-section:nth-of-type(1) > div:nth-of-type(3) */
@keyframes slide-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section#hero-section:nth-of-type(1) > div:nth-of-type(3) .drag-hint-bar {
  opacity: 0;
  animation: slide-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

section#hero-section:nth-of-type(1) > div:nth-of-type(3) > .info-divider {
  opacity: 0;
  animation: slide-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

section#hero-section:nth-of-type(1) > div:nth-of-type(3) .feature-info-pill,
section#hero-section:nth-of-type(1) > div:nth-of-type(3) .hero-feature-carousel .info-divider {
  opacity: 0;
  animation: slide-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

section#hero-section:nth-of-type(1) > div:nth-of-type(3) .hero-feature-carousel > *:nth-child(1) { animation-delay: 0.3s; }
section#hero-section:nth-of-type(1) > div:nth-of-type(3) .hero-feature-carousel > *:nth-child(2) { animation-delay: 0.4s; }
section#hero-section:nth-of-type(1) > div:nth-of-type(3) .hero-feature-carousel > *:nth-child(3) { animation-delay: 0.5s; }
section#hero-section:nth-of-type(1) > div:nth-of-type(3) .hero-feature-carousel > *:nth-child(4) { animation-delay: 0.6s; }
section#hero-section:nth-of-type(1) > div:nth-of-type(3) .hero-feature-carousel > *:nth-child(5) { animation-delay: 0.7s; }
section#hero-section:nth-of-type(1) > div:nth-of-type(3) .hero-feature-carousel > *:nth-child(6) { animation-delay: 0.8s; }
section#hero-section:nth-of-type(1) > div:nth-of-type(3) .hero-feature-carousel > *:nth-child(7) { animation-delay: 0.9s; }

/* --- CURATOR PORTAL & BADGE OVERLAYS --- */
.curator-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 6, 0.82);
  backdrop-filter: blur(20px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.curator-modal-content {
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 860px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(30px) scale(0.96);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 50px rgba(248, 113, 113, 0.03);
}

.curator-modal-overlay.active .curator-modal-content {
  transform: translateY(0) scale(1);
  border-color: var(--accent-color);
  box-shadow: 0 0 60px rgba(248, 113, 113, 0.12);
}

[data-theme="golden"] .curator-modal-overlay.active .curator-modal-content {
  border-color: var(--wonder-gold);
  box-shadow: 0 0 60px rgba(253, 224, 71, 0.12);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn:hover {
  background: var(--accent-color);
  color: #030306;
  border-color: var(--accent-color);
  transform: rotate(90deg) scale(1.05);
}

.modal-header-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
}

.modal-header-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-color);
  animation: pulse-ring 2s infinite;
}

.modal-header-section h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #fff;
}

.modal-header-section p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.curator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.curator-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 26px 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(15px);
  opacity: 0;
}

.curator-modal-overlay.active .curator-card {
  transform: translateY(0);
  opacity: 1;
  transition-delay: calc(var(--card-idx) * 100ms);
}

.curator-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.avatar-ring {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 950;
  font-size: 20px;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
  transition: all 0.3s;
}

.curator-card:hover .avatar-ring {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--accent-glow);
}

.curator-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 700;
}

.curator-card .role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.curator-card .desc {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- DETAILED SLIDE-IN MOUNTAIN SPECIFICATION PANEL --- */
.mountain-detail-panel {
  position: fixed;
  top: 76px;
  right: 20px;
  width: 360px;
  max-height: calc(100vh - 100px);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateX(390px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mountain-detail-panel.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.m-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.m-close-btn:hover {
  background: var(--accent-color);
  color: #030306;
  border-color: var(--accent-color);
}

.m-visual-banner,
div#m-detail-panel:nth-of-type(3) > div#m-banner-bg:nth-of-type(1) {
  padding: 30px 52px 20px 24px;
  position: relative;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Subtle, noise-based geological texture overlay */
div#m-detail-panel:nth-of-type(3) > div#m-banner-bg:nth-of-type(1)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.11;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

div#m-detail-panel:nth-of-type(3) > div#m-banner-bg:nth-of-type(1) > * {
  position: relative;
  z-index: 2;
}

.m-alert-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--volca-green);
}

/* Warning alert color-codings */
.m-alert-badge.LEVEL-I {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--volca-green);
}

.m-alert-badge.LEVEL-II {
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--volca-yellow);
}

.m-alert-badge.LEVEL-III {
  background: rgba(251, 146, 60, 0.15);
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: var(--volca-orange);
}

.m-alert-badge.LEVEL-IV {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--volca-red);
}

.m-visual-banner h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #fff;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.m-visual-banner p {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.m-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.3s;
}

.spec-tile:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.spec-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-tile strong {
  font-family: var(--font-heading);
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.m-content-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}

.m-content-body h4 {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0;
}

.m-content-body p {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.m-fun-fact-box {
  background: rgba(248, 113, 113, 0.04);
  border: 1px solid rgba(248, 113, 113, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 6px;
  transition: all 0.3s ease;
}

[data-theme="golden"] .m-fun-fact-box {
  background: rgba(253, 224, 71, 0.03);
  border-color: rgba(253, 224, 71, 0.12);
}

.fact-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--accent-color);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

#m-fun-fact {
  font-size: 11px;
  line-height: 1.45;
  color: #f1f5f9;
  font-style: italic;
}

@media (max-width: 950px) {
  .hero-feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px 0;
  }
}

@media (max-width: 768px) {
  button:not(.m-close-btn):not(.clr-btn), .btn, .hero-btn-primary, .hero-btn-secondary, .layer-btn {
    min-height: 44px;
    padding: 12px 16px;
  }
  .mountain-detail-panel {
    width: 100%;
    right: 0;
    top: auto;
    bottom: 0;
    max-height: 60vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(120%);
  }
  .mountain-detail-panel.active {
    transform: translateY(0);
  }
  .hero-stats-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
  }
  .hero-btn-primary, .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-feature-container {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 12px;
    width: calc(100% + 40px);
    margin: 10px -20px;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0;
  }
  .hero-feature-carousel {
    max-width: 100%;
    width: 100%;
    padding-bottom: 5px;
  }
  .hero-timeline-container {
    overflow-x: auto;
    padding-bottom: 20px;
  }
  .timeline-track-wrapper {
    min-width: 600px; /* force scroll on tiny screens */
  }
}


/* --- INTERACTIVE HORIZONTAL TIMELINE SYSTEM --- */

/* Specialized glowing animation for timeline and feature sets */
@keyframes ambient-glow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); border-color: rgba(255, 255, 255, 0.05); }
  50% { box-shadow: 0 0 20px 0 rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); border-color: rgba(255, 255, 255, 0.05); }
}

@keyframes ambient-glow-gold {
  0% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0); border-color: rgba(255, 255, 255, 0.05); }
  50% { box-shadow: 0 0 20px 0 rgba(253, 224, 71, 0.2); border-color: rgba(253, 224, 71, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0); border-color: rgba(255, 255, 255, 0.05); }
}

[data-theme="golden"] .hero-timeline-container,
[data-theme="golden"] .hero-feature-container {
  animation: ambient-glow-gold 5s infinite alternate ease-in-out !important;
  background: rgba(10, 10, 15, 0.8) !important;
}

[data-theme="golden"] section#hero-section:nth-of-type(1), 
[data-theme="golden"] .hero-section {
  background: radial-gradient(circle at 75% 30%, rgba(253, 224, 71, 0.1) 0%, rgba(133, 77, 14, 0.25) 40%, rgba(3, 3, 6, 0.98) 85%), #030306 !important;
}

[data-theme="golden"] .hero-section::before {
  background: radial-gradient(circle at 10% 20%, rgba(253, 224, 71, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.04) 0%, transparent 60%) !important;
}

.hero-timeline-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(14, 11, 11, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  position: relative;
  box-sizing: border-box;
  animation: ambient-glow 5s infinite alternate ease-in-out;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-icon {
  color: var(--accent-color);
  width: 16px;
  height: 16px;
  animation: pulse-red 1.5s infinite alternate;
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: 0.15em;
}

.timeline-title-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 300;
}

.timeline-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #fff;
}

.timeline-action-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.timeline-main-workspace {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: center;
}

.timeline-scroll-track {
  position: relative;
  width: 100%;
  padding: 30px 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.timeline-glowing-rail {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.timeline-progress-bar {
  height: 100%;
  width: 0%; /* Dynamic slider width */
  background: linear-gradient(90deg, var(--accent-color), var(--volca-orange));
  box-shadow: 0 0 8px var(--accent-color);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 2;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 18px;
  position: relative;
}

.timeline-node-dot {
  width: 12px;
  height: 12px;
  background: #0d0d11;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 5;
}

.timeline-node:hover .timeline-node-dot {
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.timeline-node.active .timeline-node-dot {
  border-color: var(--accent-color);
  background: var(--accent-color);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent-color);
}

/* node text offsets */
.timeline-node-date {
  position: absolute;
  bottom: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
  transition: color 0.3s;
}

.timeline-node.active .timeline-node-date {
  color: #fff;
}

.timeline-node-name {
  position: absolute;
  top: 18px;
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.3s;
}

.timeline-node.active .timeline-node-name {
  color: var(--accent-color);
  font-weight: 700;
}

/* Info Panel display block specs */
.timeline-info-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.timeline-info-panel:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.timeline-info-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timeline-info-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.timeline-info-volcano {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.timeline-info-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.severity-red {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3) !important;
}

.severity-orange {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3) !important;
}

.timeline-info-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.timeline-info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-color);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.timeline-info-impact {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}

.timeline-fly-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-color);
  color: #000;
  border: none;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}

.timeline-fly-btn:hover {
  background: #fff;
}

.timeline-fly-btn:active {
  transform: scale(0.97);
}

/* media query for timeline stack */
@media (max-width: 950px) {
  .timeline-main-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .hero-timeline-container {
    width: calc(100% + 40px);
    margin: 10px -20px;
    padding: 16px 20px;
    border-radius: 0;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .timeline-node-date {
    font-size: 8px;
  }
  .timeline-node-name {
    font-size: 8px;
    display: none; /* Hide node labels on mobile to prevent overlaps */
  }
  .timeline-node.active .timeline-node-name {
    display: block;
    top: 18px;
  }
}

/* STYLISH INDUSTRIAL OVERRIDE: NO CURVES / ABSOLUTE SHARP BLOCKY GEOMETRY */
*,
*::before,
*::after {
  border-radius: 0px !important;
}

/* Map specific tweaks to align with sharp borders */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip,
.custom-leaflet-popup,
.custom-glass-leaflet-popup-wrapper {
  border-radius: 0px !important;
}

.custom-glass-leaflet-popup-wrapper .leaflet-popup-content {
  margin: 0 !important;
  padding: 4px !important;
  width: 260px !important;
  max-width: 260px !important;
  box-sizing: border-box !important;
}


