/* ==========================================================================
   TRACEJAR — High-Precision Minecraft Mod & RAT Scanner
   Design System & Architecture (Inspired by itaprac.xyz aesthetic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..900;1,9..40,300..900&family=DM+Serif+Display:ital@0;1&family=Geist+Mono:wght@300..800&family=Syne:wght@500;700;800&display=swap');

:root {
  /* Color Palette — Deep Space & Ethereal Lavender */
  --bg: #08080a;
  --bg-raised: #0d0d11;
  --bg-card: #101016;
  --bg-card-hover: #14141d;
  --bg-input: #0b0b0f;
  
  /* Borders & Hairlines */
  --line: rgba(200, 165, 240, 0.12);
  --line-strong: rgba(200, 165, 240, 0.28);
  --line-neutral: rgba(255, 255, 255, 0.08);
  --line-glass: rgba(255, 255, 255, 0.05);

  /* Accents & Glows */
  --accent: #c8a5f0;
  --accent-deep: #9f7ac9;
  --accent-dim: rgba(200, 165, 240, 0.1);
  --accent-glow: rgba(200, 165, 240, 0.22);
  --accent-glow-strong: rgba(200, 165, 240, 0.45);
  --on-accent: #0a0a0c;

  /* Telemetry Status Colors */
  --live: #7ee0a8;
  --live-dim: rgba(126, 224, 168, 0.12);
  --live-glow: rgba(126, 224, 168, 0.4);
  
  --warn: #ffcf8b;
  --warn-dim: rgba(255, 207, 139, 0.12);
  --star: #f5c518;
  
  --down: #ff8f8f;
  --down-dim: rgba(255, 143, 143, 0.12);
  --down-glow: rgba(255, 143, 143, 0.4);

  /* Typography */
  --text: #f6f2f6;
  --text-muted: #a89ea9;
  --text-faint: #8b8290;

  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --font-emphasis: "DM Serif Display", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  /* Sizing & Radius */
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  --shadow-menu: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  --shadow-accent: 0 10px 34px -12px rgba(200, 165, 240, 0.35);
  --shadow-glow: 0 0 60px rgba(200, 165, 240, 0.18);

  /* Transitions & Shell */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1240px;
  --nav-h: 60px;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(120% 75% at 50% 6%, var(--accent-glow), transparent 62%),
    radial-gradient(80% 50% at 85% 95%, rgba(126, 224, 168, 0.05), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #20202a;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #323242;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
  user-select: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 8vw, 110px);
  position: relative;
}

/* ==========================================================================
   Preloader (Style as seen in itaprac.xyz)
   ========================================================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background-color: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(48px) saturate(1.2);
  -webkit-backdrop-filter: blur(48px) saturate(1.2);
  transition:
    background-color 0.55s var(--ease),
    backdrop-filter 0.8s var(--ease),
    -webkit-backdrop-filter 0.8s var(--ease),
    opacity 0.6s var(--ease),
    visibility 0s linear 0.65s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  display: grid;
  justify-items: center;
  gap: 16px;
  transition: transform 0.6s var(--ease), filter 0.5s ease-out, opacity 0.5s ease-out;
}

.loader.is-done .loader-mark {
  transform: scale(1.12);
  filter: blur(16px);
  opacity: 0;
}

.loader-word {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.loader-word em {
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--accent);
}

.loader-sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.loader-sub .spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent-dim);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line-neutral);
  transition: border-color 0.25s var(--ease);
}

.nav-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.brand em {
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

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

/* Language Switcher with small globe button & multi-country dropdown */
.lang-picker-wrapper {
  position: relative;
}

.lang-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-neutral);
  border-radius: var(--radius-sm);
  background: rgba(16, 16, 22, 0.7);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease);
  user-select: none;
}

.lang-picker-btn:hover,
.lang-picker-btn[aria-expanded="true"] {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--bg-card);
}

.lang-picker-btn .globe-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.lang-picker-btn .lang-current-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-picker-btn .chevron-icon {
  color: var(--text-faint);
  transition: transform 0.2s ease;
}

.lang-picker-btn[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  list-style: none;
  background: #111118;
  border: 1px solid var(--line-neutral);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  z-index: 100;
  backdrop-filter: blur(16px);
}

.lang-dropdown[hidden] {
  display: none !important;
}

.lang-dropdown li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-dropdown .lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 550;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.lang-dropdown .lang-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.lang-dropdown .lang-opt.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.lang-dropdown .lang-opt-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-dropdown .lang-check {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 var(--live-glow);
  animation: beacon 2.4s ease-out infinite;
}

@keyframes beacon {
  70% { box-shadow: 0 0 0 8px rgba(126, 224, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 224, 168, 0); }
}

/* ==========================================================================
   Typography & Emphasis Titles
   ========================================================================== */

h1, h2, h3, h4 {
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.04em;
}

h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
}

h2 em, h1 em {
  font-family: var(--font-emphasis);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.72;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 48px;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(60px, 10vw, 100px);
  overflow: clip;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 960px;
}

.hero-title {
  margin-top: 18px;
  margin-bottom: 22px;
}

.hero-lead {
  margin-bottom: 34px;
}

/* Rotating Word Banner */
.rotate {
  display: inline-grid;
  vertical-align: bottom;
  text-align: start;
}

.word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.55em);
  transition: transform 0.62s var(--ease), opacity 0.42s ease;
  white-space: nowrap;
}

.word:not(.is-base) {
  width: 0;
}

.word.is-active {
  opacity: 1;
  transform: none;
}

.word.is-leaving {
  opacity: 0;
  transform: translateY(-0.55em);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

/* Social Proof */
.social-proof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px auto;
  padding: 7px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.social-proof:hover {
  border-color: var(--line);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.proof-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live-glow);
  display: inline-block;
  flex-shrink: 0;
  animation: liveDotPulse 2.4s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px var(--live-glow); }
  50% { opacity: 0.5; transform: scale(0.85); box-shadow: 0 0 2px var(--live-glow); }
}

.proof-line {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.proof-line strong {
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-display);
}

.proof-line .proof-dot {
  color: var(--text-faint);
  margin: 0 2px;
}

@keyframes valBump {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.18); filter: brightness(1.5); color: var(--accent); }
  100% { transform: scale(1); filter: brightness(1); }
}

.val-bump {
  display: inline-block;
  animation: valBump 0.8s ease-out;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.24s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: #dcc2fb;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-ghost {
  background: rgba(16, 16, 22, 0.6);
  border-color: var(--line-neutral);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--bg-card);
}

/* Disc Button (Signature itaprac.xyz element) */
.btn-disc {
  position: relative;
  overflow: hidden;
  height: 50px;
  padding: 4px 60px 4px 26px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: padding 0.5s var(--ease), background-color 0.3s ease;
}

.btn-disc:hover {
  padding-inline: 60px 26px;
  background: #dbbffb;
  box-shadow: var(--shadow-accent);
}

.btn-disc .disc-label {
  position: relative;
  z-index: 1;
}

.btn-disc .disc {
  position: absolute;
  inset-inline-end: 5px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  transition: inset-inline-end 0.5s var(--ease), transform 0.5s var(--ease);
}

.btn-disc:hover .disc {
  inset-inline-end: calc(100% - 45px);
  transform: rotate(45deg);
}

/* Metrics Bar */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.metric-card {
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-neutral);
  background: rgba(16, 16, 22, 0.45);
  backdrop-filter: blur(12px);
  text-align: start;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.metric-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.metric-val {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ==========================================================================
   Scanner Hub & Interactive Dropzone
   ========================================================================== */

.scanner-box {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 90% at 0% 0%, rgba(200, 165, 240, 0.12), transparent 60%),
              radial-gradient(60% 80% at 100% 100%, rgba(126, 224, 168, 0.05), transparent 60%),
              rgba(13, 13, 17, 0.88);
  border: 1px solid var(--line-neutral);
  box-shadow: 0 30px 80px -40px rgba(200, 165, 240, 0.35), var(--shadow-card);
  backdrop-filter: blur(16px);
  padding: clamp(24px, 3.5vw, 44px);
  overflow: hidden;
}

.scanner-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-neutral);
  padding-bottom: 12px;
  overflow-x: auto;
}

.scan-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.scan-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.scan-tab.active {
  background: var(--accent-dim);
  border-color: var(--line);
  color: var(--accent);
}

/* Dropzone */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 36px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(11, 11, 15, 0.6);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: center;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(200, 165, 240, 0.06);
  transform: scale(1.006);
  box-shadow: 0 0 40px rgba(200, 165, 240, 0.15);
}

.drop-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
}

.dropzone:hover .drop-icon {
  transform: translateY(-4px) scale(1.06);
}

.drop-title {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 6px;
}

.drop-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 44ch;
}

.drop-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.drop-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Scanning Pipeline State Animation */
.scan-progress {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line-neutral);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.progress-title {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar-container {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 14px var(--accent);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.p-step {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-glass);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-step.active {
  border-color: var(--line);
  color: var(--accent);
  background: var(--accent-dim);
}

.p-step.done {
  border-color: rgba(126, 224, 168, 0.3);
  color: var(--live);
  background: var(--live-dim);
}

/* ==========================================================================
   Scan Results Terminal / Dashboard
   ========================================================================== */

.results-panel {
  display: none;
  margin-top: 32px;
  border-top: 1px solid var(--line-neutral);
  padding-top: 32px;
  animation: fadeIn 0.4s var(--ease);
}

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

.verdict-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: rgba(16, 16, 22, 0.9);
  border: 1px solid var(--line-neutral);
  margin-bottom: 24px;
}

.verdict-banner.clean {
  border-color: rgba(126, 224, 168, 0.35);
  background: radial-gradient(circle at 100% 50%, rgba(126, 224, 168, 0.1), transparent 60%), #0d1210;
}

.verdict-banner.danger {
  border-color: rgba(255, 143, 143, 0.4);
  background: radial-gradient(circle at 100% 50%, rgba(255, 143, 143, 0.14), transparent 60%), #140d0f;
}

.verdict-banner.warn {
  border-color: rgba(255, 207, 139, 0.35);
  background: radial-gradient(circle at 100% 50%, rgba(255, 207, 139, 0.1), transparent 60%), #14120d;
}

.verdict-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.verdict-badge {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.verdict-banner.clean .verdict-badge {
  background: var(--live-dim);
  color: var(--live);
  border: 1px solid rgba(126, 224, 168, 0.3);
}

.verdict-banner.danger .verdict-badge {
  background: var(--down-dim);
  color: var(--down);
  border: 1px solid rgba(255, 143, 143, 0.3);
}

.verdict-banner.warn .verdict-badge {
  background: var(--warn-dim);
  color: var(--warn);
  border: 1px solid rgba(255, 207, 139, 0.3);
}

.verdict-details h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.verdict-details p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Gauge Meter */
.risk-meter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.risk-num {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Unified Scan Findings View (No Subtabs) */
.unified-findings-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.findings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.findings-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-neutral);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.findings-section-head svg {
  color: var(--accent);
}

/* Findings List & Chips */
.findings-grid {
  display: grid;
  gap: 12px;
}

.signal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(16, 16, 22, 0.5);
  border: 1px solid var(--line-neutral);
}

.signal-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signal-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.signal-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.signal-tag {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.signal-tag.high {
  background: var(--down-dim);
  color: var(--down);
}
.signal-tag.med {
  background: var(--warn-dim);
  color: var(--warn);
}
.signal-tag.low {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* ==========================================================================
   Self-Destruct & Cheat Capabilities Banners
   ========================================================================== */

.self-destruct-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 75, 75, 0.08);
  border: 1px solid rgba(255, 75, 75, 0.4);
  box-shadow: 0 0 24px rgba(255, 75, 75, 0.12);
  margin-bottom: 20px;
  animation: pulseDanger 2.5s infinite alternate ease-in-out;
}

@keyframes pulseDanger {
  from { border-color: rgba(255, 75, 75, 0.3); }
  to { border-color: rgba(255, 75, 75, 0.7); box-shadow: 0 0 32px rgba(255, 75, 75, 0.25); }
}

.self-destruct-banner .sd-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.self-destruct-banner h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--down);
  margin-bottom: 4px;
}

.self-destruct-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cheat-caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.cheat-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-neutral);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  transition: all 0.2s var(--ease);
}

.cheat-cap .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.cheat-cap.on {
  background: var(--down-dim);
  border-color: rgba(255, 143, 143, 0.45);
  color: var(--down);
  font-weight: 700;
}

.cheat-cap.on .dot {
  background: var(--down);
  box-shadow: 0 0 8px var(--down);
}

/* ==========================================================================
   Modpack & Batch Scanner Results Panel
   ========================================================================== */

.pack-results-panel {
  display: none;
  margin-top: 32px;
  border-top: 1px solid var(--line-neutral);
  padding-top: 32px;
  animation: fadeIn 0.4s var(--ease);
}

.pack-verdict-card {
  padding: 24px 28px;
  border-radius: var(--radius);
  background: rgba(16, 16, 22, 0.9);
  border: 1px solid var(--line-neutral);
  margin-bottom: 24px;
}

.pack-verdict-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.pack-verdict-header h3 {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pack-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.pack-summary-card {
  padding: 18px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-neutral);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}

.pack-summary-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.pack-summary-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.25), inset 0 0 0 1px var(--accent);
  background: rgba(124, 92, 255, 0.08);
}
.pack-summary-card.danger.active {
  border-color: var(--down);
  box-shadow: 0 0 16px rgba(255, 75, 75, 0.25), inset 0 0 0 1px var(--down);
  background: rgba(255, 75, 75, 0.08);
}
.pack-summary-card.sus.active {
  border-color: var(--warn);
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.25), inset 0 0 0 1px var(--warn);
  background: rgba(255, 179, 71, 0.08);
}
.pack-summary-card.clean.active {
  border-color: var(--live);
  box-shadow: 0 0 16px rgba(46, 213, 115, 0.25), inset 0 0 0 1px var(--live);
  background: rgba(46, 213, 115, 0.08);
}

.pack-summary-card .pack-stat-num {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.pack-summary-card .pack-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pack-summary-card.clean .pack-stat-num { color: var(--live); }
.pack-summary-card.sus .pack-stat-num { color: var(--warn); }
.pack-summary-card.danger .pack-stat-num { color: var(--down); }
.pack-summary-card.total .pack-stat-num { color: var(--accent); }

/* Modpack Controls Toolbar */
.pack-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 16px;
  padding: 14px 18px;
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.pack-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 220px;
}

.pack-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 15px;
  height: 15px;
  z-index: 2;
}

.pack-search-input {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 38px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.pack-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.25);
  background: rgba(0, 0, 0, 0.65);
}

.pack-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.pack-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.15s;
}

.pack-search-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pack-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pack-filter-pill {
  height: 34px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pack-filter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.pack-filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.35);
}

.pack-filter-pill.filter-danger.active {
  background: var(--down);
  border-color: var(--down);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 75, 75, 0.35);
}

.pack-filter-pill.filter-sus.active {
  background: var(--warn);
  border-color: var(--warn);
  color: #111;
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.35);
}

.pack-filter-pill.filter-clean.active {
  background: var(--live);
  border-color: var(--live);
  color: #111;
  box-shadow: 0 0 14px rgba(46, 213, 115, 0.35);
}

.pack-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pack-sort-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pack-sort-select {
  height: 34px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pack-sort-select:focus {
  border-color: var(--accent);
}

.pack-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .pack-content-layout {
    grid-template-columns: 1fr;
  }
}

.pack-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.pack-showing-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mod Items List with Clear Dividers & Elevated Cards */
.pack-mods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 8px;
}

.pack-mod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(18, 18, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--line-neutral);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pack-mod-row.border-danger {
  border-left-color: var(--down);
}

.pack-mod-row.border-warn {
  border-left-color: var(--warn);
}

.pack-mod-row.border-clean {
  border-left-color: var(--live);
}

.pack-mod-row:hover {
  background: rgba(28, 28, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.pack-mod-row.active {
  background: rgba(124, 92, 255, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.25), inset 4px 0 0 var(--accent);
  transform: translateX(4px);
}

.pack-mod-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  flex: 1;
}

.pack-mod-top {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.pack-mod-name {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-mod-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pack-mod-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--line-glass);
  white-space: nowrap;
}

.pack-mod-tag.flag {
  background: rgba(255, 179, 71, 0.12);
  color: var(--warn);
  border-color: rgba(255, 179, 71, 0.3);
}

.pack-mod-tag.danger {
  background: rgba(255, 75, 75, 0.12);
  color: var(--down);
  border-color: rgba(255, 75, 75, 0.3);
}

.pack-mod-tag.clean {
  background: rgba(46, 213, 115, 0.08);
  color: var(--live);
  border-color: rgba(46, 213, 115, 0.2);
}

.pack-mod-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pack-risk-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.pack-risk-pill.danger { background: rgba(255, 75, 75, 0.15); color: var(--down); }
.pack-risk-pill.warn { background: rgba(255, 179, 71, 0.15); color: var(--warn); }
.pack-risk-pill.clean { background: rgba(46, 213, 115, 0.1); color: var(--live); }

/* Mod Detail View Card (Screen 1 Redesign) */
.pack-detail-card {
  padding: 22px;
  border-radius: 12px;
  background: rgba(18, 18, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.pack-detail-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pack-detail-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-all;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pack-detail-meta-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pack-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.pack-detail-meta-item strong {
  color: var(--text-faint);
  min-width: 90px;
}

.pack-detail-sec-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pack-finding-item {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pack-finding-item.danger {
  border-left: 4px solid var(--down);
  background: rgba(255, 75, 75, 0.06);
  border-color: rgba(255, 75, 75, 0.2);
}

.pack-finding-item.warn {
  border-left: 4px solid var(--warn);
  background: rgba(255, 179, 71, 0.06);
  border-color: rgba(255, 179, 71, 0.2);
}

.pack-finding-item.clean {
  border-left: 4px solid var(--live);
  background: rgba(46, 213, 115, 0.05);
  border-color: rgba(46, 213, 115, 0.2);
}

.pack-finding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pack-finding-rule {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pack-finding-desc {
  font-size: 0.82rem;
  color: #d1d5db;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.pack-finding-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.pack-meta-label {
  color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.pack-meta-code {
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  word-break: break-all;
}

.pack-evidence-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
  display: inline-block;
}

/* Feature detection flags pill list */
.cheat-flags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.cheat-flag-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-neutral);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cheat-flag-pill.crit {
  background: var(--down-dim);
  border-color: rgba(255, 143, 143, 0.3);
  color: var(--down);
}

.cheat-flag-pill.high {
  background: var(--warn-dim);
  border-color: rgba(255, 207, 139, 0.3);
  color: var(--warn);
}

/* ==========================================================================
   Interactive 3D WebGL Globe Section (ORBIT GEOLOCATION)
   ========================================================================== */

.orbit {
  position: relative;
  overflow: clip;
}

.orbit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  position: relative;
  z-index: 1;
}

.orbit-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
  position: relative;
  z-index: 2;
}

.orbit-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.orbit-lead {
  max-width: 52ch;
}

/* Telemetry Active Card */
.telemetry-card {
  width: 100%;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line-neutral);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s var(--ease);
}

.telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-country {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-flag {
  font-size: 1.6rem;
  line-height: 1;
}

.telemetry-country-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.telemetry-country-text p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.telemetry-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-neutral);
}

.t-stat {
  display: flex;
  flex-direction: column;
}

.t-stat-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.t-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* Quick Select Country Grid */
.country-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-neutral);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.country-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--line-strong);
}

.country-pill.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.country-pill .country-flag {
  font-size: 1.08rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.country-pill .country-name {
  font-weight: 600;
}

.country-pill .pct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* 3D Globe Container (Contained, borderless, seamless) */
.globe-stage {
  position: relative;
  aspect-ratio: 1;
  width: min(680px, 100%);
  max-width: 680px;
  justify-self: center;
  margin: 0 auto;
  cursor: grab;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  overflow: visible;
}

.globe-stage:active {
  cursor: grabbing;
}

.globe-stage.is-ready {
  opacity: 1;
  transform: none;
}

.globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  outline: none;
  border: none;
}

/* Floating Globe Tooltip */
.globe-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  display: grid;
  gap: 3px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(16, 16, 22, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-menu);
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.globe-tooltip.visible {
  opacity: 1;
}

.globe-tooltip strong {
  color: var(--text);
  font-size: 0.92rem;
}

/* ==========================================================================
   Architecture & Capabilities (4-Card Grid)
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-neutral);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease), background-color 0.25s var(--ease);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow-strong), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Database & Live Telemetry Feed
   ========================================================================== */

.table-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-neutral);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-neutral);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.scans-table th {
  padding: 12px 24px;
  text-align: start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(13, 13, 17, 0.4);
  border-bottom: 1px solid var(--line-neutral);
}

.scans-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-glass);
  color: var(--text-muted);
}

.scans-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.pill-clean {
  background: var(--live-dim);
  color: var(--live);
  border: 1px solid rgba(126, 224, 168, 0.25);
}

.pill-danger {
  background: var(--down-dim);
  color: var(--down);
  border: 1px solid rgba(255, 143, 143, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding-block: 54px 32px;
  border-top: 1px solid var(--line-neutral);
  background: radial-gradient(80% 120% at 50% 100%, rgba(200, 165, 240, 0.05), transparent 65%), var(--bg);
  margin-top: clamp(60px, 8vw, 100px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }
  .orbit-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .globe-stage {
    width: min(500px, 100%);
    max-width: 500px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .telemetry-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   Modrinth Platform Verification Styles
   ========================================================================== */

.badge-modrinth-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 175, 92, 0.15);
  border: 1px solid rgba(0, 175, 92, 0.4);
  color: #00e676;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.badge-modrinth-pill svg {
  fill: currentColor;
}

.pack-mod-tag.modrinth {
  background: rgba(0, 175, 92, 0.12);
  border: 1px solid rgba(0, 175, 92, 0.35);
  color: #00e676;
}

.modrinth-verified-card {
  background: linear-gradient(135deg, rgba(0, 175, 92, 0.12) 0%, rgba(18, 30, 24, 0.85) 100%);
  border: 1px solid rgba(0, 175, 92, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.modrinth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.modrinth-badge-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00e676;
  font-size: 0.88rem;
  font-weight: 700;
}

.modrinth-badge-logo svg {
  fill: #00e676;
  flex-shrink: 0;
}

.modrinth-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modrinth-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.modrinth-meta-grid strong {
  color: var(--text-faint);
  margin-right: 4px;
}

.modrinth-meta-grid code {
  color: #00e676;
}

.modrinth-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.verdict-modrinth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 175, 92, 0.12);
  border: 1px solid rgba(0, 175, 92, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  color: #00e676;
  font-size: 0.82rem;
}

/* Modrinth .mrpack Cryptographic Index Styles */
.mrpack-banner {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.mrpack-banner.verified {
  background: rgba(0, 175, 92, 0.1);
  border: 1px solid rgba(0, 175, 92, 0.35);
  color: #00e676;
}

.mrpack-banner.overrides {
  background: rgba(175, 100, 255, 0.1);
  border: 1px solid rgba(175, 100, 255, 0.35);
  color: #d1a8ff;
}

.mrpack-banner.compromised {
  background: rgba(255, 75, 75, 0.15);
  border: 1px solid rgba(255, 75, 75, 0.45);
  color: var(--down);
  animation: pulseCompromised 3s infinite ease-in-out;
}

@keyframes pulseCompromised {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 75, 75, 0.2); }
  50% { box-shadow: 0 0 26px rgba(255, 75, 75, 0.4); }
}

.mrpack-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mrpack-banner-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mrpack-banner-packname {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mrpack-version-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.mrpack-banner-statustitle {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 3px;
}

.mrpack-status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mrpack-status-badge.verified {
  background: rgba(0, 175, 92, 0.2);
  color: #00e676;
  border: 1px solid rgba(0, 175, 92, 0.4);
}

.mrpack-status-badge.overrides {
  background: rgba(175, 100, 255, 0.2);
  color: #d1a8ff;
  border: 1px solid rgba(175, 100, 255, 0.4);
}

.mrpack-status-badge.compromised {
  background: rgba(255, 75, 75, 0.25);
  color: var(--down);
  border: 1px solid rgba(255, 75, 75, 0.5);
}

.mrpack-banner-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.mrpack-banner-desc code {
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 5px;
  border-radius: 4px;
}

.mrpack-banner-deps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.mrpack-dep-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* Row Pills */
.badge-mrpack-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-mrpack-pill.danger {
  background: rgba(255, 75, 75, 0.2);
  color: var(--down);
  border: 1px solid rgba(255, 75, 75, 0.4);
}

.badge-mrpack-pill.override {
  background: rgba(175, 100, 255, 0.18);
  color: #d1a8ff;
  border: 1px solid rgba(175, 100, 255, 0.35);
}

.badge-mrpack-pill.match {
  background: rgba(0, 175, 92, 0.18);
  color: #00e676;
  border: 1px solid rgba(0, 175, 92, 0.35);
}

.pack-mod-tag.override {
  background: rgba(175, 100, 255, 0.12);
  color: #d1a8ff;
  border-color: rgba(175, 100, 255, 0.3);
}

/* Detail Cards */
.mrpack-detail-card {
  padding: 14px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.mrpack-detail-card.danger {
  background: rgba(255, 75, 75, 0.12);
  border: 1px solid rgba(255, 75, 75, 0.35);
  color: var(--down);
}

.mrpack-detail-card.override {
  background: rgba(175, 100, 255, 0.1);
  border: 1px solid rgba(175, 100, 255, 0.3);
  color: #d1a8ff;
}

.mrpack-detail-card.verified {
  background: rgba(0, 175, 92, 0.1);
  border: 1px solid rgba(0, 175, 92, 0.3);
  color: #00e676;
}

.mrpack-detail-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
}

.mrpack-detail-card-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.mrpack-detail-card-body code {
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 5px;
  border-radius: 3px;
}

.mrpack-hashes-table {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mrpack-hashes-table code {
  color: #fff;
}

/* CurseForge Modpack Styles */
.curseforge-banner {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 94, 54, 0.1);
  border: 1px solid rgba(255, 94, 54, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.curseforge-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.curseforge-banner-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.curseforge-banner-packname {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.curseforge-version-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 94, 54, 0.2);
  color: #ff8a65;
}

.curseforge-banner-statustitle {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 3px;
  color: #ff8a65;
}

.curseforge-status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 94, 54, 0.2);
  color: #ff8a65;
  border: 1px solid rgba(255, 94, 54, 0.4);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.curseforge-banner-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.curseforge-manifest-alert {
  background: rgba(255, 94, 54, 0.12);
  border-left: 3px solid #ff5e36;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  line-height: 1.5;
}

.curseforge-banner-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.curseforge-meta-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.badge-curseforge-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 94, 54, 0.18);
  color: #ff8a65;
  border: 1px solid rgba(255, 94, 54, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.curseforge-instruction-card {
  padding: 22px;
  border-radius: 10px;
  background: rgba(255, 94, 54, 0.08);
  border: 1px solid rgba(255, 94, 54, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curseforge-steps-list {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reputation & Revocation Alerts */
.badge-reputation-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-reputation-pill.danger {
  background: rgba(255, 75, 75, 0.25);
  color: var(--down);
  border: 1px solid rgba(255, 75, 75, 0.45);
}

.badge-reputation-pill.warn {
  background: rgba(255, 179, 71, 0.2);
  color: var(--warn);
  border: 1px solid rgba(255, 179, 71, 0.4);
}

.reputation-alert-card {
  padding: 14px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.reputation-alert-card.danger {
  background: rgba(255, 75, 75, 0.16);
  border: 1px solid rgba(255, 75, 75, 0.45);
  color: var(--down);
  animation: pulseCompromised 3s infinite ease-in-out;
}

.reputation-alert-card.warn {
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.35);
  color: var(--warn);
}

.reputation-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
}

.reputation-card-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

