:root {
  --color-jungle: #1B5E20;
  --color-white: #FFFFFF;
  --color-soft-white: #F7FBF7;
  --color-accent: #A8D5BA;
  --color-text-dark: #0B2B18;
  --panel: rgba(6, 18, 12, 0.78);
  --panel-strong: rgba(5, 14, 9, 0.93);
  --line: rgba(108, 190, 148, 0.24);
  --text: #e7f5ea;
  --muted: #7fa78e;
  --accent: var(--color-accent);
  --accent-2: #1f9d6d;
  --nav-bg: rgba(3, 9, 7, 0.88);
}

body.theme-noir {
  --accent: #75ec9b;
  --accent-2: #149a5b;
}

body.theme-savanna {
  --accent: #b8ec83;
  --accent-2: #55b56f;
}

body.theme-ocean {
  --accent: #7ce7b2;
  --accent-2: #2f9f7b;
}

body.theme-forest {
  --accent: #67e08e;
  --accent-2: #259d62;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(22, 48, 70, 0.3), transparent 36%),
    radial-gradient(circle at 80% 18%, rgba(73, 211, 159, 0.08), transparent 28%),
    #060a11;
  padding-top: clamp(76px, 8vw, 104px);
  overflow-x: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  gap: 0.7rem;
  background: radial-gradient(circle at 50% 30%, rgba(33, 84, 51, 0.38), #020603 60%);
  transition: opacity 450ms ease, visibility 450ms ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader p {
  margin: 0;
  color: #d3e2f4;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
}

.preloader-ring {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.home-light {
  color: #0f1a2b;
  background: #f4f7fb;
}

.home-light .site-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(20, 45, 80, 0.14);
}

.home-light .nav-brand,
.home-light .nav-links a {
  color: #102137;
}

.home-light .nav-links a {
  border-color: rgba(21, 45, 78, 0.18);
  background: rgba(255, 255, 255, 0.75);
}

.home-light .frame-shell {
  background: radial-gradient(circle at 20% 8%, rgba(110, 179, 138, 0.28), transparent 35%),
    radial-gradient(circle at 84% 90%, rgba(154, 219, 170, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(245, 250, 245, 0.86), rgba(233, 242, 233, 0.88) 40%, rgba(227, 238, 229, 0.92)),
    url("/static/images/wildlife/lion.jpg");
  background-size: auto, auto, auto, cover;
  background-position: center;
}

.home-light .overlay-mask {
  background: radial-gradient(circle at 18% 24%, rgba(87, 164, 111, 0.12), transparent 36%),
    radial-gradient(circle at 82% 70%, rgba(59, 145, 107, 0.12), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(225, 239, 226, 0.68));
}

.home-light .noise-layer {
  opacity: 0.06;
}

.home-light .landing-hero,
.home-light .about-card,
.home-light .premium-block {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(37, 84, 58, 0.16);
  box-shadow: 0 16px 34px rgba(39, 115, 75, 0.12);
}

.home-light .hero-kicker {
  color: #184a2f;
  background: rgba(223, 247, 229, 0.82);
  border-color: rgba(52, 135, 82, 0.34);
}

.home-light .landing-hero .brand-row p,
.home-light .feature-tile p,
.home-light .trust-card p,
.home-light .spotlight-head p,
.home-light .stats-strip span,
.home-light .premium-block p,
.home-light .about-card p {
  color: #33523d;
}

.home-light .cinema-stage {
  border-color: rgba(37, 84, 58, 0.2);
  box-shadow: 0 18px 34px rgba(24, 95, 53, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.home-light .cinema-meta {
  background: rgba(245, 251, 246, 0.82);
  border-color: rgba(37, 84, 58, 0.22);
}

.home-light .cinema-meta p {
  color: #1e4d30;
}

.home-light .stats-strip,
.home-light .feature-tile,
.home-light .spotlight-strip,
.home-light .trust-card {
  background: rgba(248, 252, 255, 0.86);
  border-color: rgba(37, 84, 58, 0.16);
}

.home-light .stats-strip div,
.home-light .spotlight-window {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 84, 58, 0.12);
}

.home-light .spotlight-pill {
  color: #1d5938;
  border-color: rgba(37, 84, 58, 0.2);
  background: rgba(229, 245, 233, 0.95);
}

.home-settings-panel {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  background: rgba(8, 17, 30, 0.28);
}

.home-settings-panel.hidden {
  display: none;
}

.home-settings-card {
  width: min(420px, 92vw);
  border-radius: 14px;
  border: 1px solid rgba(24, 56, 95, 0.18);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 36px rgba(20, 44, 74, 0.26);
  padding: 0.95rem;
  display: grid;
  gap: 0.62rem;
}

.home-settings-card h2 {
  color: #15395f;
}

.home-settings-card label {
  display: grid;
  gap: 0.35rem;
  color: #25486d;
}

.home-settings-card select {
  color: #16365a;
  border-color: rgba(24, 56, 95, 0.2);
  background: rgba(246, 250, 255, 0.96);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.home-light.high-contrast .landing-hero,
.home-light.high-contrast .about-card,
.home-light.high-contrast .premium-block {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(4, 32, 71, 0.32);
}

.home-light.reduced-motion * {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

.frame-shell {
  position: fixed;
  inset: 0;
  z-index: -4;
  background: radial-gradient(circle at 20% 10%, rgba(31, 93, 59, 0.34), transparent 38%),
    radial-gradient(circle at 80% 90%, rgba(19, 68, 39, 0.34), transparent 35%),
    linear-gradient(180deg, #020603, #050b06 45%, #020502);
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.09;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.18) 1px, transparent 0);
  background-size: 3px 3px;
}

.wildlife-slideback {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.wildlife-slideback .slide-layer {
  content: "";
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(0.9) brightness(0.72);
  transform: scale(1.08);
  transition: opacity 1200ms ease, transform 1200ms ease, background-image 1200ms ease;
  will-change: opacity, transform, background-image;
}

.wildlife-slideback .layer-a {
  opacity: 1;
}

.wildlife-slideback .layer-b {
  opacity: 0;
}

.wildlife-slideback.is-transitioning .layer-a {
  opacity: 0;
  transform: scale(1.12);
}

.wildlife-slideback.is-transitioning .layer-b {
  opacity: 1;
  transform: scale(1.03);
}

.wildlife-slideback .overlay-a,
.wildlife-slideback .overlay-b {
  position: absolute;
  inset: 0;
}

.wildlife-slideback .overlay-a {
  background: linear-gradient(160deg, rgba(2, 8, 4, 0.28), rgba(2, 8, 4, 0.82));
}

.wildlife-slideback .overlay-b {
  background:
    radial-gradient(circle at 18% 18%, rgba(122, 229, 139, 0.12), transparent 32%),
    radial-gradient(circle at 82% 68%, rgba(88, 200, 134, 0.12), transparent 30%),
    linear-gradient(160deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  width: min(1280px, calc(100vw - 1rem));
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Cinzel", serif;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.project-signature {
  position: fixed;
  right: 18px;
  bottom: 12px;
  z-index: 30;
  font-family: "Calligraffitti", cursive;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fb5f77, #f2a034, #3dc2ff, #58d08b, #cf6dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(12, 25, 46, 0.25);
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.02em;
}

body.menu-compact .nav-inner {
  padding: 0.45rem 0.85rem;
}

body.menu-compact .nav-links a {
  padding: 0.22rem 0.56rem;
  font-size: 0.8rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.7fr) minmax(280px, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.world-map {
  height: min(68vh, 620px);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(3, 14, 8, 0.38);
}

.map-side-panel {
  display: grid;
  gap: 0.7rem;
}

.map-popup h4 {
  margin: 0 0 0.35rem;
}

.radar-icon-wrap {
  background: transparent;
  border: none;
}

.radar-ping {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(48, 230, 127, 0.82);
  animation: radar-ping 2.2s ease-out infinite;
}

.radar-core {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #48ff98;
  box-shadow: 0 0 14px rgba(72, 255, 152, 0.8);
}

@keyframes radar-ping {
  0% {
    transform: scale(0.3);
    opacity: 0.9;
  }
  75% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.map-focus-btn,
.inventory-map-link {
  display: inline-block;
  margin-top: 0.35rem;
  border: 1px solid color-mix(in oklab, var(--accent) 48%, var(--line));
  border-radius: 10px;
  padding: 0.3rem 0.55rem;
  color: #d8ffe8;
  background: rgba(24, 49, 35, 0.6);
  text-decoration: none;
  font-size: 0.78rem;
  cursor: pointer;
}

.inventory-card {
  list-style: none;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0.6rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem;
  background: rgba(6, 18, 26, 0.64);
  margin-bottom: 0.55rem;
}

.inventory-thumb {
  width: 82px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.inventory-thumb.fallback {
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  text-align: center;
  background: rgba(18, 33, 46, 0.8);
}

.inventory-meta {
  display: grid;
  gap: 0.2rem;
  font-size: 0.79rem;
}

.species-card-image {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.species-card-image.fallback {
  display: grid;
  place-items: center;
  background: rgba(8, 21, 31, 0.72);
  color: #dff9ee;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .world-map {
    height: 52vh;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.nav-links a:hover {
  border-color: color-mix(in oklab, var(--accent) 44%, var(--line));
  background: color-mix(in oklab, var(--accent) 16%, transparent);
}

.nav-links a.active {
  border-color: color-mix(in oklab, var(--accent) 48%, var(--line));
  background: color-mix(in oklab, var(--accent) 18%, transparent);
}

.slideshow-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  transition: background-image 900ms ease, transform 12s ease;
  transform: scale(1.03);
}

.overlay-mask {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 24% 22%, rgba(73, 211, 159, 0.14), transparent 34%),
    radial-gradient(circle at 84% 74%, rgba(43, 163, 255, 0.16), transparent 30%),
    linear-gradient(160deg, rgba(4, 8, 14, 0.45), rgba(4, 8, 14, 0.88));
}

.floating-icons {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-icons span {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.55;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  animation: drift 11s ease-in-out infinite;
}

.floating-icons span:nth-child(1) {
  left: 6%;
  top: 26%;
}

.floating-icons span:nth-child(2) {
  left: 83%;
  top: 18%;
  animation-delay: 1s;
}

.floating-icons span:nth-child(3) {
  left: 74%;
  top: 72%;
  animation-delay: 2.2s;
}

.floating-icons span:nth-child(4) {
  left: 13%;
  top: 72%;
  animation-delay: 0.8s;
}

.layout {
  width: min(1280px, calc(100vw - 1rem));
  margin: 0 auto;
  padding: 1.2rem 1rem 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  position: relative;
  z-index: 3;
  align-items: start;
}

.layout.single {
  width: min(1040px, calc(100vw - 1rem));
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.hero {
  grid-column: 1 / -1;
  padding: 1rem 1.2rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, rgba(73, 211, 159, 0.22), rgba(30, 168, 194, 0.42));
  overflow: hidden;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wildlife-badge {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  border: 1px solid rgba(24, 56, 95, 0.25);
  background-image: url("/static/images/wildlife/lion.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 18px rgba(20, 45, 78, 0.2);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.03em;
}

.hero p,
.panel-head p,
.tiny-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.quick-links a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
}

.mission-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
}

.mission-card {
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line));
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(150deg, rgba(9, 24, 20, 0.92), rgba(8, 18, 26, 0.86));
  display: grid;
  gap: 0.22rem;
}

.mission-card .label {
  font-size: 0.72rem;
  color: #b6d8ca;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mission-card strong {
  font-size: 1.25rem;
  color: #e3fff2;
  font-family: "JetBrains Mono", monospace;
}

.mission-card.mission-wide {
  grid-column: 1 / -1;
}

.mission-card.mission-wide strong {
  font-size: 0.94rem;
  line-height: 1.35;
}

.ghost-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

.nav-links .ghost-btn {
  padding: 0.32rem 0.72rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.03);
}

.home-light .nav-links .ghost-btn {
  color: #102137;
  border-color: rgba(21, 45, 78, 0.18);
  background: rgba(255, 255, 255, 0.75);
}

.about-card {
  grid-column: 1 / -1;
  padding: 1rem 1.2rem;
  max-width: 980px;
  justify-self: center;
}

.panel-head {
  padding: 1rem 1rem 0.75rem;
  display: grid;
  gap: 0.2rem;
}

.video-wrap {
  position: relative;
  margin: 0 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #040806;
  aspect-ratio: 16 / 10;
}

#video,
#overlay {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  object-fit: cover;
}

/* Responsive and clarity tweaks */
img, video {
  max-width: 100%;
  height: auto;
  image-rendering: auto;
}

.site-footer {
  grid-column: 1 / -1;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: #dfeee0;
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .nav-inner { padding: 0.5rem 0.8rem; }
  .nav-brand { font-size: 1rem; }
  .layout { grid-template-columns: 1fr; padding: 0.8rem 0.8rem 1rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .hero { padding: 0.6rem 0.8rem; }
}

@media (min-width: 1281px) {
  .nav-inner { width: 1200px; }
}

#overlay {
  position: absolute;
  inset: 0;
}

.scan-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 34%, rgba(241, 190, 72, 0.12) 64%, transparent 86%);
  animation: scanPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.telemetry {
  padding: 1rem;
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.telemetry > .stack,
.telemetry > .inventory-layout,
.telemetry > .inventory-toolbar {
  min-width: 0;
}

.stack {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 0.75rem;
  min-width: 0;
}

.actions,
.lookup-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  align-items: stretch;
}

.lookup-row {
  padding: 0;
  margin-bottom: 0.65rem;
}

input,
select,
textarea,
button {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.66rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: rgba(8, 17, 13, 0.78);
  min-width: 0;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

button {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #06211f;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: saturate(1.1);
}

.tab-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.tab-btn.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #06211f;
}

pre,
.profile-box {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(4, 9, 7, 0.8);
  border-radius: 11px;
  padding: 0.75rem;
  white-space: pre-wrap;
  line-height: 1.35;
  min-width: 0;
}

pre {
  min-height: 88px;
}

.results {
  padding: 0 1rem 1rem;
}

.results h3 {
  margin: 0 0 0.5rem;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
}

li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem;
  background: rgba(2, 7, 5, 0.66);
}

.live-item {
  border-color: color-mix(in oklab, var(--accent) 42%, var(--line));
  background: linear-gradient(140deg, rgba(7, 19, 15, 0.92), rgba(8, 16, 24, 0.82));
}

.live-item .chip {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8fff6;
  background: rgba(66, 191, 124, 0.22);
}

.chip.is-critical {
  color: #ffecec;
  background: rgba(232, 76, 76, 0.28);
  border-color: rgba(255, 109, 109, 0.65);
  animation: chipPulse 1.8s ease-in-out infinite;
}

.chip.is-elevated {
  color: #fff5e4;
  background: rgba(229, 147, 53, 0.3);
  border-color: rgba(244, 172, 92, 0.72);
}

.chip.is-info {
  color: #e8f7ff;
  background: rgba(73, 150, 221, 0.28);
  border-color: rgba(1, 15, 27, 0.7);
}

.feed-live {
  position: relative;
  overflow: hidden;
}

.feed-live::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(86, 202, 143, 0.09) 47%, transparent 100%);
  transform: translateX(-100%);
  animation: feedSweep 2.8s ease-in-out infinite;
}

@keyframes chipPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 91, 91, 0.44);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(241, 91, 91, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(241, 91, 91, 0);
  }
}

@keyframes feedSweep {
  0% {
    transform: translateX(-100%);
  }
  55% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.qr-wrap {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.auth-gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
  background: rgba(2, 7, 5, 0.76);
}

.auth-gate.hidden {
  display: none;
}

.auth-card {
  width: min(460px, 92vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(7, 14, 11, 0.94);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.auth-form {
  display: grid;
  gap: 0.6rem;
}

.project-signature {
  display: none;
}

.admin-form {
  display: grid;
  gap: 0.58rem;
}

.link-btn {
  background: none;
  border: none;
  color: #043729;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

 .gallery-grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: stretch;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(2, 8, 16, 0.7);
  display: flex;
  flex-direction: column;
}

.gallery-card img,
.gallery-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 120px;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.gallery-card h4 {
  margin: 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.79rem;
  font-family: "JetBrains Mono", monospace;
}

.landing-hero {
  padding: 1.25rem;
  min-height: min(86vh, 860px);
  display: grid;
  align-content: center;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.82), rgba(7, 11, 18, 0.72));
}

.hero-kicker {
  margin: 0;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 36%, var(--line));
  color: #d9f6eb;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  background: rgba(12, 25, 22, 0.7);
}

.landing-hero h1 {
  font-size: clamp(1.9rem, 4.1vw, 3.2rem);
}

.landing-hero .brand-row p {
  font-size: clamp(0.95rem, 1.45vw, 1.14rem);
  max-width: 760px;
}

.landing-hero .brand-row {
  justify-content: center;
}

.landing-hero .profile-box {
  width: min(760px, 100%);
  background: rgba(7, 11, 17, 0.78);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--line));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

.landing-hero .quick-links {
  justify-content: center;
}

.landing-layout {
  max-width: 1200px;
}

.cinema-stage {
  width: min(980px, 100%);
  height: clamp(280px, 52vh, 560px);
  border-radius: 20px;
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line));
  overflow: hidden;
  position: relative;
  background: #050810;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.cinema-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 9, 16, 0.62);
  color: #dcf6ee;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.55rem;
}

.cinema-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.15s ease, transform 7s ease;
}

.cinema-slide.is-visible {
  opacity: 1;
  transform: scale(1.01);
}

.cinema-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 25%, transparent 40%);
  pointer-events: none;
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.cinema-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 8, 14, 0.72);
  border-radius: 12px;
  padding: 0.75rem;
  line-height: 1.34;
  backdrop-filter: blur(7px);
  text-align: left;
}

.cinema-meta h2 {
  font-size: clamp(1rem, 2.2vw, 1.42rem);
}

.cinema-meta p {
  margin: 0.28rem 0 0;
  color: #102947;
}

.cinema-progress {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.4rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.cinema-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #9de8ff);
  transition: width 140ms linear;
}

.hero-cta-row {
  width: min(980px, 100%);
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  text-decoration: none;
  color: #041714;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.66rem 1rem;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(29, 138, 142, 0.3);
}

.hero-cta.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.hero-cta:hover {
  transform: translateY(-1px);
}

.stats-strip {
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 15, 24, 0.84);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.62rem;
}

.stats-strip div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem;
  background: rgba(6, 12, 20, 0.8);
  display: grid;
  gap: 0.2rem;
}

.stats-strip strong {
  color: #e9fbff;
  font-family: "Cinzel", serif;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-strip {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.feature-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(7, 12, 20, 0.86);
  text-align: left;
}

.feature-tile:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}

.feature-tile h3 {
  font-size: 1rem;
}

.feature-tile p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.premium-block {
  margin-top: 0.1rem;
}

.spotlight-strip {
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(8, 12, 20, 0.84);
  overflow: hidden;
}

.spotlight-head h2 {
  margin: 0;
}

.spotlight-head p {
  margin: 0.3rem 0 0.7rem;
  color: var(--muted);
}

.spotlight-window {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 8, 14, 0.8);
}

.spotlight-track {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem;
  min-height: 56px;
}

.spotlight-track.marquee {
  width: max-content;
  animation: marquee 36s linear infinite;
}

.spotlight-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: rgba(12, 24, 34, 0.88);
  white-space: nowrap;
  font-size: 0.82rem;
  color: #ddf1ff;
}

.trust-row {
  width: min(980px, 100%);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(8, 12, 20, 0.84);
  text-align: left;
}

.trust-card h3 {
  font-size: 0.96rem;
}

.trust-card p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 10, 0.72);
}

.settings-panel.hidden {
  display: none;
}

.settings-card {
  width: min(470px, calc(100vw - 1rem));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
  background: rgba(8, 18, 24, 0.96);
}

.settings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.settings-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.large-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.inventory-shell {
  padding: 1rem;
}

.inventory-toolbar {
  margin-bottom: 0.5rem;
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.inventory-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.inventory-detail-panel .profile-box {
  min-height: 100%;
}

.inventory-modal-card {
  width: min(980px, calc(100vw - 1rem));
}

.inventory-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.inventory-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.inventory-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  max-height: 70vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.inventory-modal-info {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.inventory-thumb-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-thumb-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.inventory-thumb-card figcaption {
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.species-card {
  padding-bottom: 0.6rem;
}

.species-card .actions {
  margin-top: auto;
  padding: 0.55rem 0.45rem 0;
}

.detail-view {
  align-items: stretch;
}

.detail-gallery,
.detail-side {
  display: flex;
  flex-direction: column;
}

.detail-side .actions {
  padding: 0.6rem 0 0;
}

.panel-head {
  justify-items: start;
}

.panel-head h1,
.panel-head p {
  text-align: left;
}

.site-footer__inner {
  align-items: flex-start;
}

.site-footer__links {
  align-items: center;
}

.species-card p {
  margin: 0.2rem 0.45rem 0;
  font-size: 0.82rem;
  line-height: 1.3;
}

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  body {
    padding-top: 114px;
  }

  .nav-inner {
    width: min(1280px, calc(100vw - 0.8rem));
    padding: 0.6rem 0.8rem;
  }

  .nav-brand {
    width: 100%;
    justify-content: center;
  }

  body {
    padding-top: 124px;
  }

  .nav-inner {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
  }
  .inventory-layout,
  .inventory-modal-body {
    grid-template-columns: 1fr;
  }

  .inventory-folder-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  #video,
  #overlay {
    max-height: none;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .home-settings-card {
    width: min(95vw, 420px);
  }

  .project-signature {
    right: 10px;
    bottom: 8px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding-top: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .large-grid {
    grid-template-columns: 1fr;
  }

  #video,
  #overlay {
    max-height: 42vh;
  }
}

/* ============ RENOVATION ENHANCEMENTS ============ */
/* Enhanced animations and transitions */

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

@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(73, 211, 159, 0.4); }
  50% { box-shadow: 0 0 20px rgba(73, 211, 159, 0.8); }
  100% { box-shadow: 0 0 10px rgba(73, 211, 159, 0.4); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.feature-tile { animation: fadeInUp 600ms ease-out backwards; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.feature-tile:nth-child(2) { animation-delay: 100ms; }
.feature-tile:nth-child(3) { animation-delay: 200ms; }

.hero-cta { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.hero-cta::before { content: ''; position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent); transform: translateX(-100%); transition: transform 600ms ease; }
.hero-cta:hover::before { transform: translateX(100%); }

.stats-strip div { transition: all 200ms ease; }
.stats-strip div:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }

.reveal { animation: fadeInUp 700ms ease-out 300ms backwards; }

@media (max-width: 768px) {
  body {
    padding-top: 122px;
  }

  .nav-inner {
    gap: 0.55rem;
  }

  .nav-links,
  .quick-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .nav-links a,
  .quick-links a,
  .quick-links button,
  .ghost-btn {
    flex: 0 0 auto;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 1rem;
    min-height: auto;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta {
    width: 100%;
  }

  .cinema-stage {
    height: clamp(250px, 45vh, 400px);
  }

  .lookup-row,
  .actions {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel,
  .stack,
  .profile-box {
    border-radius: 16px;
  }

  .hero,
  .telemetry,
  .inventory-shell {
    padding: 0.9rem;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 128px;
  }

  .nav-brand span {
    font-size: 0.96rem;
  }

  .mission-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

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

  .inventory-modal-card,
  .settings-card,
  .auth-card {
    width: calc(100vw - 0.8rem);
    padding: 0.95rem;
  }

  .inventory-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-modal-head button {
    width: 100%;
  }

  .floating-icons {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr; gap: 0.5rem; }
  .landing-hero h1 { font-size: 1.8rem; }
  .cinema-stage { height: clamp(200px, 40vh, 350px); border-radius: 12px; }
}

button:focus-visible, .hero-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.panel { transition: all 300ms ease; }
.panel:hover { box-shadow: 0 24px 52px rgba(0, 0, 0, 0.44); border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); }

.video-wrap { transition: all 300ms ease; }
.video-wrap:hover { border-color: color-mix(in oklab, var(--accent) 48%, var(--line)); box-shadow: 0 0 20px rgba(73, 211, 159, 0.2); }

input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(8, 17, 13, 0.95); box-shadow: 0 0 0 2px rgba(73, 211, 159, 0.15); }

.nav-links a.active { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 22%, transparent); }

.trust-card { animation: fadeInUp 600ms ease-out backwards; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.trust-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: 0 16px 32px rgba(73, 211, 159, 0.15); }

html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ END RENOVATIONS ============ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 200ms ease;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 300ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.scan-shortcut {
  background: linear-gradient(120deg, rgba(73, 211, 159, 0.2), rgba(30, 168, 194, 0.15)) !important;
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line)) !important;
  font-weight: 600;
  animation: glow 3s ease-in-out infinite;
}

.spotlight-cta {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  color: #041714;
  text-decoration: none;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(73, 211, 159, 0.3);
}

.spotlight-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(73, 211, 159, 0.4);
}

/* Enhanced Mobile Responsive */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease, padding 300ms ease;
    border-radius: 0;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 60;
  }

  .nav-links[aria-expanded="true"] {
    max-height: 500px;
    padding: 1rem;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.8rem;
  }
}

/* ============ END MOBILE ENHANCEMENTS ============ */

/* ============ LIGHT PLATFORM OVERRIDES ============ */
:root {
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(20, 74, 44, 0.14);
  --text: #132217;
  --muted: #526558;
  --accent: #2d8f57;
  --accent-2: #57b56f;
  --nav-bg: rgba(255, 255, 255, 0.82);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(119, 187, 132, 0.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(157, 221, 187, 0.12), transparent 28%),
    #f7fbf6;
}

.preloader {
  background: radial-gradient(circle at 50% 30%, rgba(118, 184, 131, 0.2), rgba(248, 252, 248, 0.96) 60%);
}

.preloader p {
  color: #214033;
}

.frame-shell {
  background:
    radial-gradient(circle at 20% 10%, rgba(123, 194, 138, 0.16), transparent 38%),
    radial-gradient(circle at 80% 90%, rgba(171, 225, 184, 0.2), transparent 35%),
    linear-gradient(180deg, #f7fbf6, #edf6ef 45%, #f8fbf7);
}

.noise-layer {
  opacity: 0.025;
}

.wildlife-slideback .slide-layer {
  filter: saturate(1.02) contrast(0.9) brightness(0.98);
  opacity: 0.56;
}

.wildlife-slideback .overlay-a {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38));
}

.wildlife-slideback .overlay-b {
  background:
    radial-gradient(circle at 18% 18%, rgba(86, 181, 111, 0.12), transparent 32%),
    radial-gradient(circle at 82% 68%, rgba(69, 153, 108, 0.1), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.26));
}

.site-nav {
  border-bottom: 1px solid rgba(20, 74, 44, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(51, 98, 68, 0.08);
}

.nav-brand,
.nav-links a,
.nav-links .ghost-btn {
  color: #16301f;
}

.nav-brand img {
  border-color: rgba(20, 74, 44, 0.14);
}

.nav-links a,
.quick-links a,
.ghost-btn,
.tab-btn,
button {
  border-color: rgba(20, 74, 44, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: #17311f;
}

.nav-links a.active,
.nav-links a:hover,
.quick-links a:hover,
.ghost-btn:hover,
.tab-btn.active {
  background: rgba(82, 165, 101, 0.12);
  border-color: rgba(45, 143, 87, 0.28);
}

.layout,
.layout.single {
  width: min(1360px, calc(100vw - 1rem));
}

.panel,
.stack,
.profile-box,
.landing-hero,
.about-card,
.premium-block,
.spotlight-strip,
.trust-card,
.feature-tile,
.mission-card,
.stats-strip,
.cinema-stage,
.auth-card,
.settings-card,
.inventory-card,
.gallery-card,
.inventory-modal-info,
.inventory-thumb-card,
.inventory-detail-panel .profile-box {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(20, 74, 44, 0.12);
  box-shadow: 0 14px 34px rgba(69, 119, 86, 0.08);
}

.panel,
.stack,
.profile-box,
.landing-hero,
.about-card,
.premium-block,
.spotlight-strip,
.trust-card,
.feature-tile,
.mission-card,
.stats-strip,
.auth-card,
.settings-card,
.inventory-card,
.gallery-card,
.inventory-modal-info,
.inventory-thumb-card,
.inventory-detail-panel .profile-box {
  color: var(--text);
}

.hero p,
.panel-head p,
.tiny-note,
.feature-tile p,
.trust-card p,
.spotlight-head p,
.stats-strip span,
.premium-block p,
.about-card p,
.landing-hero .brand-row p,
.mission-card .label,
.mission-card strong,
.cinema-meta p,
.inventory-thumb-card figcaption,
.inventory-meta,
.gallery-card p,
.profile-box,
.link-btn,
input,
select,
textarea {
  color: var(--text);
}

.stack,
.profile-box,
.landing-hero .profile-box,
.inventory-modal-info {
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.hero,
.telemetry,
.inventory-shell,
.about-card,
.landing-hero {
  padding-left: 0;
  padding-right: 0;
}

.lookup-row,
.actions {
  padding: 0;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.98);
}

.gallery-card,
.inventory-card,
.inventory-thumb-card,
.mission-card,
.feature-tile,
.trust-card {
  border-radius: 18px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card h4,
.gallery-card p,
.inventory-card,
.inventory-modal-card,
.inventory-modal-head,
.inventory-modal-body,
.inventory-modal-info,
.site-footer,
.site-footer a {
  color: var(--text);
}

.gallery-fallback,
.species-card-image.fallback,
.inventory-thumb.fallback {
  background: linear-gradient(180deg, rgba(221, 239, 225, 0.92), rgba(240, 248, 242, 0.96));
  color: #254232;
}

.site-footer {
  width: min(1360px, calc(100vw - 1rem));
  margin: 1.25rem auto 0;
  padding: 1rem 1rem 1.25rem;
}

.site-footer__inner {
  border-top: 1px solid rgba(20, 74, 44, 0.12);
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__inner strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 1rem;
}

.site-footer__inner p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__links a {
  text-decoration: none;
  border: 1px solid rgba(20, 74, 44, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.88);
}

.site-footer__links a:hover {
  background: rgba(82, 165, 101, 0.12);
}

.detail-view {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 0.95rem;
}

.detail-gallery,
.detail-side {
  border: 1px solid rgba(20, 74, 44, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.85rem;
}

.detail-gallery-main {
  width: 100%;
  min-height: 280px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(20, 74, 44, 0.12);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.detail-thumb {
  border: 1px solid rgba(20, 74, 44, 0.12);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
}

.detail-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.detail-side h3 {
  margin-bottom: 0.25rem;
}

.detail-side p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.detail-side strong {
  color: var(--text);
}

.catalog-shell {
  background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .detail-view {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: flex-start;
  }
}

/* ============ END LIGHT PLATFORM OVERRIDES ============ */

/* ============ GLOBAL MENU + CONTRAST IMPROVEMENTS ============ */
.global-menu-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 120;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(26, 74, 48, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(20, 48, 31, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.global-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1c3c28;
  margin: 2px 0;
  border-radius: 999px;
}

.global-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 84vw);
  z-index: 121;
  background: rgba(250, 254, 251, 0.98);
  border-right: 1px solid rgba(26, 74, 48, 0.15);
  box-shadow: 20px 0 40px rgba(20, 48, 31, 0.18);
  transform: translateX(-102%);
  transition: transform 260ms ease;
  padding: 0.9rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
}

.global-menu-drawer.open {
  transform: translateX(0);
}

.global-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.global-menu-head strong {
  font-family: "Cinzel", serif;
  color: #1c3c28;
}

.global-menu-close {
  border: 1px solid rgba(26, 74, 48, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #1c3c28;
  padding: 0.34rem 0.7rem;
  font-weight: 700;
}

.global-menu-links {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.global-menu-links a {
  text-decoration: none;
  color: #173220;
  border: 1px solid rgba(26, 74, 48, 0.14);
  border-radius: 12px;
  padding: 0.62rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.global-menu-links a:hover {
  background: rgba(70, 151, 101, 0.1);
}

.panel-head p,
.tiny-note,
.profile-box,
.gallery-card p,
.inventory-meta,
.detail-side p,
.hero p {
  color: #1e3425;
}

.panel-head h1,
.panel-head h2,
.panel-head h3,
.hero h1,
.hero h2,
.hero h3,
.detail-side h3,
.gallery-card h4 {
  color: #10271a;
}

@media (max-width: 720px) {
  .global-menu-toggle {
    width: 42px;
    height: 42px;
    top: 10px;
    left: 10px;
  }
}

