:root {
  --bg: #0a0c10;
  --surface: #111318;
  --surface2: #181c24;
  --border: #1e2530;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --text: #e8eaf0;
  --muted: #6b7280;
  --paper: #9ca3af;
  --bronze: #b87333;
  --silver: #94a3b8;
  --gold: #f59e0b;
  --platinum: #e2e8f0;
  --cyber: #00ffcc;
  --common: #7dd3fc;
  --uncommon: #4ade80;
  --scarce: #fde047;
  --rare: #fb923c;
  --ultra: #f87171;
  --nav-h: 2.5rem;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem 1rem;
  height: var(--nav-h);
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 200;
}
.site-nav-tab {
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s;
}
.site-nav-tab:hover {
  color: var(--text);
  background: var(--surface2);
}
.site-nav-tab.active {
  color: var(--text);
  background: var(--surface2);
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
}
.nav-hamburger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
}
.nav-hamburger:hover {
  background: var(--surface2);
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Dropdown — hidden by default, shown when checkbox checked */
.nav-dropdown {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 201;
}
.site-nav:has(#nav-toggle:checked) ~ .nav-dropdown {
  display: flex;
}
.nav-dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-dropdown-item:hover {
  color: var(--text);
  background: var(--surface2);
}
.nav-dropdown-item.active {
  color: var(--text);
}

@media (max-width: 600px) {
  .site-nav-tab {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  #donate-banner > div {
    justify-content: center;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 40% at 20% 10%,
      rgba(0, 212, 255, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 30% at 80% 90%,
      rgba(255, 107, 53, 0.04) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

/* ── LANDING ── */
#landing-screen {
  position: fixed;
  inset: 0;
  top: var(--nav-h, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  z-index: 100;
  background: transparent;
  gap: 2rem;
  padding: 2rem 1rem 6rem;
  overflow-y: auto;
}
@media (max-width: 600px) {
  #landing-screen {
    padding: 2rem 1rem 8rem;
  }
}

.site-logo {
  max-width: 220px;
  height: auto;
  display: block;
}
.site-logo--sm {
  max-width: 110px;
}
.logo-area {
  text-align: center;
}
.logo-area .site-logo {
  margin: 0 auto;
}
.logo-area p {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.landing-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 900px;
}

.landing-card {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.landing-card h2:first-of-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -2rem -2rem 1.5rem -2rem;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 14px 14px 0 0;
  text-align: center;
}
.landing-card h2:not(:first-of-type) {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.landing-card .divider + h2 {
  border-top: none;
  padding-top: 0;
}
.landing-card p code {
  font-family: inherit;
  font-size: inherit;
}
.landing-card p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.03);
}
.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.drop-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.drop-zone h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.drop-zone small {
  font-size: 0.75rem;
  color: var(--muted);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-group {
  margin-bottom: 0.75rem;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.form-group input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus {
  border-color: var(--accent);
}
.form-group input::placeholder {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  width: 100%;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.lb-tab.active {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-success {
  background: #22c55e;
  color: #fff;
}
.btn-success:hover {
  opacity: 0.9;
}

.error-msg {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.5rem;
  display: none;
}
.form-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}
.progress-step {
  text-align: left;
}
.progress-step-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.pstep-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}
.progress-bar-track {
  background: var(--bg-2);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.progress-bar-fill.complete {
  background: #34d399;
}

#login-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#login-confirm-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 360px;
  width: 100%;
}
#login-confirm-dialog p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.confirm-actions {
  display: flex;
  gap: 0.75rem;
}
.confirm-actions .btn {
  flex: 1;
}

.leaderboard-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}
.leaderboard-link:hover {
  color: var(--accent);
}

/* ── APP VIEWER ── */
#app {
  display: none;
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}

.header {
  padding: 1.5rem 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}

.header-info h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.stat-strip {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 2rem;
  flex-wrap: wrap;
}

.stat-strip-group {
  margin: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}
.stat-strip-group .stat-strip {
  margin: 0;
  border: none;
  border-radius: 0;
}

.glow-count-val {
  color: #ffe066;
  text-shadow:
    0 0 8px #ffe066,
    0 0 20px #ffaa00,
    0 0 40px #ff8800;
  animation: glow-pulse 2.5s ease-in-out infinite;
}
.glow-count-lbl {
  color: #ffcc44;
  text-shadow: 0 0 6px #ffaa0088;
}
@keyframes glow-pulse {
  0%,
  100% {
    text-shadow:
      0 0 8px #ffe066,
      0 0 20px #ffaa00,
      0 0 40px #ff8800;
  }
  50% {
    text-shadow:
      0 0 12px #ffe066,
      0 0 30px #ffaa00,
      0 0 60px #ff6600;
  }
}
.stat-item {
  flex: 1;
  background: var(--surface);
  padding: 0.9rem 1.2rem;
  text-align: center;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stat-item .val {
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-item .lbl {
  margin-top: auto;
  padding-top: 0.3rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aircraft-name-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.aircraft-name-link::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.5;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z' clip-rule='evenodd'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z' clip-rule='evenodd'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.aircraft-name-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.aircraft-name-link:hover::before {
  opacity: 1;
}

/* ── AIRCRAFT DETAIL ── */
.aircraft-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.aircraft-detail-section h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.aircraft-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.aircraft-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.aircraft-stat-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.aircraft-stat-lbl {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent2);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.75rem;
}
.sample-chart-wrap {
  opacity: 0.55;
  filter: saturate(0.6);
  pointer-events: none;
  user-select: none;
}
.sample-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.35;
  pointer-events: none;
  white-space: nowrap;
}
.unlock-wall {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.unlock-wall h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.unlock-wall p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.unlock-wall ol {
  list-style: none;
  counter-reset: unlock-step;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  margin: 0 auto 1.25rem;
  max-width: 420px;
}
.unlock-wall ol li {
  counter-increment: unlock-step;
  font-size: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.unlock-wall ol li::before {
  content: counter(unlock-step);
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.unlock-wall ol a,
.unlock-wall ol a:visited {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.unlock-wall ol a:hover {
  color: var(--text);
}
.unlock-wall code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8em;
  color: var(--accent);
}

.analytics-results {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.analytics-result {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.analytics-result:last-child {
  border-bottom: none;
}
.analytics-result:hover {
  background: var(--surface2);
}
.analytics-result img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}
.analytics-result-empty {
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.analytics-info {
  max-width: 720px;
  margin: 2.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
}
.analytics-info h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.analytics-info > p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.analytics-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.analytics-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.analytics-info-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.analytics-info-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.analytics-info-desc {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.4;
}
.analytics-info-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.analytics-info-note strong {
  color: var(--text);
}
.analytics-info-note + .analytics-info-note {
  padding-top: 0.6rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6rem;
  color: var(--muted);
  padding: 0.25rem 1.5rem 0.6rem;
  border-top: 2px solid #2a3240;
  margin-top: 2rem;
}
.site-footer > span {
  text-align: center;
  flex: 1;
}
.bmc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #ffdd00;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.bmc-badge:hover {
  opacity: 0.85;
}
.bmc-badge svg {
  overflow: visible;
  flex-shrink: 0;
}
.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: #5865f2;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.discord-badge:hover {
  opacity: 0.85;
}
@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-bottom: 1rem;
  }
  .site-footer > span {
    flex: none;
    min-width: 50vw;
    text-align: center;
  }
  .site-footer > div {
    width: 100%;
    justify-content: flex-start;
    flex-shrink: 1;
  }
  .bmc-badge,
  .discord-badge {
    flex: 1;
    justify-content: center;
  }
}

/* On the homepage the landing screen is fixed/full-viewport, so pin the footer above it */
#landing-screen ~ .site-footer,
body:has(#landing-screen) .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  background: var(--bg);
  z-index: 101;
}

/* ── TABS ── */
.tabs {
  display: flex;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.panel {
  display: none;
  padding: 1.5rem 2rem;
}
.panel.active {
  display: block;
}
.panel-disclaimer {
  width: 100%;
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.25rem 0 0.5rem;
}

.export-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0 0;
}
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.export-btn::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z'/%3E%3C/svg%3E")
    no-repeat center / contain;
}
.export-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── CONTROLS ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
  text-decoration: underline;
}
.sort-btns {
  display: flex;
  gap: 0.25rem;
}
.sort-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s;
}
.sort-btn:hover {
  color: var(--text);
  border-color: var(--text);
}
.sort-btn.active {
  background: var(--surface2);
  color: var(--accent);
  border-color: var(--accent);
}
.sort-btn-split {
  display: flex;
  align-items: stretch;
  padding: 0;
  cursor: default;
  overflow: hidden;
}
.sort-split-label {
  padding: 0.2rem 0.5rem;
  display: flex;
  align-items: center;
}
.sort-split-arrows {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--border);
  transition: border-color 0.12s;
}
.sort-btn-split.active {
  color: var(--muted);
}
.sort-btn-split.active .sort-split-arrows {
  border-left-color: var(--accent);
}
.sort-split-arrow {
  padding: 0.2rem 0.35rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.12s;
}
.sort-split-arrow:hover {
  color: var(--text);
  background: var(--surface2);
}
.sort-split-arrow.active {
  color: var(--accent);
  background: var(--surface2);
}
.controls-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
}
.search-wrap input {
  width: 200px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem 0.5rem 2.2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.search-wrap input:focus {
  border-color: var(--accent);
}
.search-wrap input::placeholder {
  color: var(--muted);
}
.search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  pointer-events: none;
}
.result-count {
  font-size: 0.75rem;
  color: var(--muted);
}
.rh-hide-check {
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.rh-hide-check input {
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}
.per-page-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.per-page-wrap label {
  font-size: 0.75rem;
  color: var(--muted);
}
.per-page-wrap select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  outline: none;
  cursor: pointer;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.aircraft-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.15s,
    transform 0.12s;
}
.aircraft-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}
.aircraft-card.card-glowing {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, #4ade80, #a855f7) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 0 12px rgba(78, 222, 128, 0.4),
    0 0 24px rgba(168, 85, 247, 0.2);
}
.aircraft-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.aircraft-card.cat-common::before {
  background: var(--common);
}
.aircraft-card.cat-uncommon::before {
  background: var(--uncommon);
}
.aircraft-card.cat-scarce::before {
  background: var(--scarce);
}
.aircraft-card.cat-rare::before {
  background: var(--rare);
}
.aircraft-card.cat-ultra::before {
  background: var(--ultra);
}
.aircraft-card.cat-fantasy::before {
  background: #f472b6;
}
.aircraft-card.cat-historical::before {
  background: var(--silver);
}
.aircraft-card.cat-paper::before {
  background: var(--paper);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}
.card-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}
.card-mfr {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}
.badge-paper {
  background: rgba(156, 163, 175, 0.12);
  color: var(--paper);
}
.badge-bronze {
  background: rgba(184, 115, 51, 0.15);
  color: var(--bronze);
}
.badge-silver {
  background: rgba(148, 163, 184, 0.12);
  color: var(--silver);
}
.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}
.badge-platinum {
  background: rgba(226, 232, 240, 0.1);
  color: var(--platinum);
}
.badge-cyber {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, #a855f7, #00ffcc, #a855f7) border-box;
  border: 1px solid transparent;
  color: var(--cyber);
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}
.badge-common {
  background: rgba(125, 211, 252, 0.12);
  color: var(--common);
}
.badge-uncommon {
  background: rgba(74, 222, 128, 0.12);
  color: var(--uncommon);
}
.badge-scarce {
  background: rgba(250, 204, 21, 0.12);
  color: var(--scarce);
}
.badge-rare {
  background: rgba(251, 146, 60, 0.15);
  color: var(--rare);
}
.badge-ultra {
  background: rgba(248, 113, 113, 0.15);
  color: var(--ultra);
}
.badge-fantasy {
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
}
.badge-historical {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}
.card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.card-stat .s-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.card-stat .s-lbl {
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-scroll-hint {
  display: none;
}

/* ── TABLES ── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.table-scroll {
  overflow-x: auto;
  max-height: 65vh;
  overflow-y: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.data-table th {
  text-align: left;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.data-table th > a {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: inherit;
}
.data-table th:not(:has(a)) {
  padding: 0.7rem 1rem;
}
.data-table th:hover {
  color: var(--accent);
}
.data-table th.sort-asc .sort-arrow::after {
  content: " ↑";
}
.data-table th.sort-desc .sort-arrow::after {
  content: " ↓";
}
.data-table th .sort-arrow::after {
  content: " ↕";
  opacity: 0.3;
}
.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: rgba(0, 212, 255, 0.025);
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}
.muted {
  color: var(--muted);
}

.reg-tag {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.25rem 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.aircraft-cell {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}
.aircraft-mfr {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.aircraft-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.aircraft-link::before {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-right: 0.3em;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.aircraft-link:hover::before {
  opacity: 1;
}
.aircraft-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.rarity-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.rarity-common {
  color: var(--common);
  background: rgba(125, 211, 252, 0.08);
}
.rarity-uncommon {
  color: var(--uncommon);
  background: rgba(74, 222, 128, 0.08);
}
.rarity-scarce {
  color: var(--scarce);
  background: rgba(250, 204, 21, 0.08);
}
.rarity-rare {
  color: var(--rare);
  background: rgba(251, 146, 60, 0.08);
}
.rarity-ultra {
  color: var(--ultra);
  background: rgba(248, 113, 113, 0.08);
}
.airport-iata {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 5px;
  padding: 0.22rem 0.55rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.airport-icao {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.page-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.12s;
  min-width: 36px;
  text-align: center;
  text-decoration: none;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 700;
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.page-ellipsis {
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0 0.1rem;
}
.page-info {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0.4rem;
}

/* ── LEADERBOARD PAGE ── */
.lb-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.lb-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.lb-page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lb-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2rem;
}
.lb-rank.gold {
  color: #fbbf24;
}
.lb-rank.silver {
  color: #94a3b8;
}
.lb-rank.bronze {
  color: #b45309;
}
.lb-name {
  font-weight: 600;
}
.lb-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--muted);
}
.verified-badge {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
}

/* ── MISC ── */
.status-bar {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dot-spin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty {
  text-align: center;
  padding: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.flash-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.flash-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

@media (max-width: 600px) {
  .header {
    padding: 1.25rem 1rem 0;
  }
  .stat-strip {
    margin: 1rem;
  }
  .stat-item {
    min-width: 130px;
    padding: 0.65rem 0.5rem;
  }
  .tabs,
  .panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .search-wrap input {
    width: 180px;
  }
  .lb-page {
    padding: 1rem;
  }
  .lb-back-btn {
    order: -1;
    width: 100%;
    text-align: center;
  }
  .table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3.5rem;
    background: linear-gradient(to right, transparent, var(--surface));
    pointer-events: none;
    border-radius: 0 12px 12px 0;
  }
  .table-scroll-hint {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--muted);
    padding: 0.4rem 0;
  }
}

.coverage-bar-wrap {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
  margin-bottom: 0.25rem;
}
.coverage-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.coverage-pct {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── REG HUNTER ─────────────────────────────────────────────────────────────── */
.rh-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.15s;
}

.rh-row:hover {
  border-color: var(--accent);
}

.rh-row-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
}

.rh-row-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  width: 100px;
  height: 50px;
  overflow: hidden;
}

.rh-row-logo img {
  height: 42px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  mix-blend-mode: multiply;
  color: #333;
  font-size: 0.6rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  text-align: center;
  line-height: 1.3;
}

.rh-row-main:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.rh-row-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.rh-row-name {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.rh-row-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rh-row-bar {
  min-width: 120px;
  text-align: right;
}

.rh-row-chevron {
  font-size: 0.65rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  line-height: 1;
}

.rh-detail {
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

.rh-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
}

.rh-dtab {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.rh-copy-btn {
  margin-right: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.rh-copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.rh-dtab:hover {
  color: var(--text);
}

.rh-dtab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.rh-dpanel {
  display: none;
  padding: 0.85rem 1rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rh-dpanel.active {
  display: flex;
}

.al-aircraft-groups {
  padding: 0.5rem 0;
}
.al-aircraft-group {
  border-top: 1px solid var(--border);
}
.al-aircraft-group:first-child {
  border-top: none;
}
.al-aircraft-group-header {
  padding: 0.6rem 1rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.reg-tag.rh-caught-tag {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
  color: var(--uncommon);
}

.reg-tag.rh-uncaught-tag {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--ultra);
}

.rh-unknown-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "Inter", monospace;
  border-radius: 5px;
  border: 1px dashed var(--muted);
  color: var(--muted);
  background: transparent;
  letter-spacing: 0.02em;
}

/* ── AIRPORT MAP ─────────────────────────────────────────────────────────── */
#airport-map-wrap {
  position: relative;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

#airport-map {
  height: 420px;
  width: 100%;
  background: #0a0c10;
}

#airport-map-legend {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  z-index: 1000;
  pointer-events: none;
}

.map-legend-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.map-legend-bar {
  width: 90px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #b91c1c,
    #dcaa00,
    #fae132,
    #16a34a,
    #00bedc
  );
}

#airport-map-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#airport-map-hint.visible {
  opacity: 1;
}

.map-tooltip {
  background: rgba(10, 12, 16, 0.92) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--text) !important;
  font-size: 0.8rem !important;
  padding: 5px 8px !important;
  box-shadow: none !important;
}

.map-tooltip::before {
  display: none !important;
}

/* ── AIRPORT HUNTER ───────────────────────────────────────────────────────── */
.ah-filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.ah-select {
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  min-width: 200px;
  color-scheme: dark;
}

.ah-select option,
.ah-select optgroup {
  background: #1e1e1e;
  color: #e8e8e8;
}

.ah-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.ah-progress-bar {
  flex: 1;
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.ah-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.ah-progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ── MODEL HUNTER ─────────────────────────────────────────────────────────── */
.mh-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.mh-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mh-group-label {
  font-weight: 600;
  font-size: 0.88rem;
}

.mh-group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mh-continent-section {
  margin-bottom: 1.5rem;
}

.mh-continent-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

/* ── GUIDES ───────────────────────────────────────────────────────────────── */
.guides-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.guides-header {
  margin-bottom: 2rem;
}

.guides-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.guides-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.guide-card-body {
  flex: 1;
}

.guide-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.guide-card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.guide-card-footer {
  margin-top: 1.25rem;
}

.guide-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.guides-contribute {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.guides-contribute a {
  color: var(--accent);
  text-decoration: none;
}

.guides-contribute a:hover {
  text-decoration: underline;
}

/* ── DISCORD COMMUNITY LANDING PAGE ── */
.discord-marketing-page {
  --discord-bg: #080a12;
  --discord-panel: #101422;
  --discord-panel-light: #151b2c;
  --discord-line: rgba(151, 163, 203, 0.17);
  --discord-copy: #f1f3ff;
  --discord-muted: #949bb7;
  --discord-blue: #7f8cff;
  --discord-cyan: #5de7ff;
  background: var(--discord-bg);
  color: var(--discord-copy);
  font-family: "Inter", sans-serif;
}
.discord-marketing-page::before { display: none; }
.discord-landing { overflow: hidden; }
.discord-nav, .discord-hero, .discord-proof-strip, .discord-features, .discord-faq, .discord-how-it-works, .discord-cta, .discord-footer { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.discord-nav { height: 88px; display: flex; align-items: center; gap: 2rem; border-bottom: 1px solid var(--discord-line); }
.discord-brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--discord-copy); text-decoration: none; margin-right: auto; }
.discord-brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(127,140,255,.7); border-radius: 9px; color: var(--discord-cyan); background: linear-gradient(145deg, rgba(127,140,255,.25), rgba(93,231,255,.05)); box-shadow: 0 0 22px rgba(93,231,255,.16); }
.discord-brand strong, .discord-brand small { display: block; line-height: 1.05; }
.discord-brand strong { font-size: 0.92rem; letter-spacing: -.02em; }
.discord-brand small { color: var(--discord-muted); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; margin-top: .28rem; }
.discord-nav-link, .discord-footer > a { color: var(--discord-muted); font-size: .78rem; text-decoration: none; transition: color .2s; }
.discord-nav-link:hover, .discord-footer > a:hover { color: var(--discord-cyan); }
.discord-join { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 50px; padding: .8rem 1.2rem; color: #fff; background: linear-gradient(135deg, #6976f5, #5865f2); border: 1px solid rgba(174,181,255,.55); border-radius: 9px; box-shadow: 0 10px 30px rgba(88,101,242,.23), inset 0 1px rgba(255,255,255,.22); font-size: .84rem; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.discord-join:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(88,101,242,.4), inset 0 1px rgba(255,255,255,.25); }
.discord-join--small { min-height: 37px; padding: .55rem .9rem; font-size: .75rem; }
.discord-join span { font-size: 1rem; }
.discord-join .discord-arrow { margin-left: .3rem; font-size: 1.15rem; }
.discord-hero { min-height: 650px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding: 4.7rem 0 5.2rem; }
.discord-hero-copy { position: relative; z-index: 2; }
.discord-eyebrow { color: var(--discord-cyan); font-family: "JetBrains Mono", monospace; font-size: .67rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.discord-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .55rem; background: var(--discord-cyan); box-shadow: 0 0 10px var(--discord-cyan); }
.discord-hero h1 { max-width: 660px; margin: 1.35rem 0 1.5rem; color: var(--discord-copy); font-size: clamp(3.2rem, 6.3vw, 5.9rem); font-weight: 700; letter-spacing: -.075em; line-height: .94; }
.discord-hero h1 em, .discord-section-heading h2 em, .discord-cta h2 em { color: var(--discord-cyan); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
.discord-hero-lede { max-width: 500px; color: var(--discord-muted); font-size: 1.02rem; line-height: 1.75; }
.discord-hero-actions { display: flex; align-items: center; gap: 1.35rem; margin-top: 2rem; }
.discord-text-link { color: var(--discord-copy); font-size: .78rem; text-decoration: none; }
.discord-text-link span { color: var(--discord-cyan); margin-left: .35rem; }
.discord-note { color: #666e8a; font-size: .68rem; margin-top: 1.2rem; }
.discord-hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.discord-radar { position: relative; width: min(390px, 75vw); aspect-ratio: 1; border: 1px solid rgba(93,231,255,.32); border-radius: 50%; background: radial-gradient(circle, rgba(87,111,255,.19), rgba(12,18,39,.25) 48%, rgba(8,10,18,.05) 69%); box-shadow: 0 0 80px rgba(73,105,255,.13), inset 0 0 60px rgba(93,231,255,.06); overflow: hidden; }
.discord-radar::before { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(93,231,255,.18); border-radius: 50%; }
.discord-radar-ring { position: absolute; border: 1px solid rgba(93,231,255,.16); border-radius: 50%; }
.discord-radar-ring--one { inset: 26%; }.discord-radar-ring--two { inset: 39%; }
.discord-radar-cross { position: absolute; background: rgba(93,231,255,.12); }.discord-radar-cross--v { width: 1px; height: 100%; left: 50%; }.discord-radar-cross--h { height: 1px; width: 100%; top: 50%; }
.discord-radar-sweep { position: absolute; width: 50%; height: 50%; left: 50%; top: 50%; transform-origin: 0 0; background: linear-gradient(45deg, rgba(93,231,255,.27), transparent 64%); clip-path: polygon(0 0, 100% 0, 0 100%); animation: discord-sweep 5s linear infinite; }
@keyframes discord-sweep { to { transform: rotate(360deg); } }
.discord-radar-plane { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2.4rem; filter: drop-shadow(0 0 12px var(--discord-cyan)); }
.discord-blip { position: absolute; color: var(--discord-cyan); font-size: 1rem; text-shadow: 0 0 12px var(--discord-cyan); animation: discord-pulse 2.2s ease-in-out infinite; }.discord-blip--one { left: 22%; top: 29%; }.discord-blip--two { right: 22%; top: 36%; animation-delay: .7s; }.discord-blip--three { left: 31%; bottom: 21%; animation-delay: 1.3s; }
@keyframes discord-pulse { 50% { opacity: .2; transform: scale(.65); } }
.discord-orbit { position: absolute; border: 1px dashed rgba(127,140,255,.28); border-radius: 50%; transform: rotate(-25deg); }.discord-orbit--one { width: 455px; height: 185px; }.discord-orbit--two { width: 500px; height: 230px; transform: rotate(42deg); }
.discord-alert-card { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; min-width: 235px; border: 1px solid rgba(127,140,255,.35); border-radius: 10px; background: rgba(17,22,42,.88); box-shadow: 0 14px 35px rgba(0,0,0,.3); backdrop-filter: blur(12px); }.discord-alert-card > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: var(--discord-cyan); background: rgba(93,231,255,.1); }.discord-alert-card div { flex: 1; }.discord-alert-card b, .discord-alert-card small { display: block; }.discord-alert-card b { color: #fff; font-size: .65rem; letter-spacing: .08em; }.discord-alert-card small { color: var(--discord-muted); font-size: .66rem; margin-top: .22rem; }.discord-alert-card strong { align-self: flex-start; color: #65708d; font-size: .59rem; font-weight: 500; }.discord-alert-card--top { top: 7%; right: 0; }.discord-alert-card--bottom { bottom: 8%; left: 0; }.discord-alert-card--bottom > span { color: #ffad6b; background: rgba(255,153,78,.1); }
.discord-proof-strip { display: flex; align-items: center; justify-content: space-around; gap: 2rem; padding: 1.8rem 2rem; border-top: 1px solid var(--discord-line); border-bottom: 1px solid var(--discord-line); }.discord-proof-strip div { text-align: center; }.discord-proof-strip strong, .discord-proof-strip span { display: block; }.discord-proof-strip strong { color: var(--discord-copy); font-size: .8rem; }.discord-proof-strip span { color: var(--discord-muted); font-size: .68rem; margin-top: .35rem; }.discord-proof-strip i { width: 1px; height: 28px; background: var(--discord-line); }
.discord-features { padding: 8rem 0; }.discord-section-heading { max-width: 650px; }.discord-section-heading h2 { margin: 1rem 0 1.15rem; font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -.065em; line-height: .98; }.discord-section-heading > p { max-width: 470px; color: var(--discord-muted); font-size: .92rem; line-height: 1.7; }.discord-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; }.discord-feature { position: relative; min-height: 235px; padding: 1.7rem; overflow: hidden; border: 1px solid var(--discord-line); border-radius: 13px; background: linear-gradient(145deg, rgba(21,27,44,.95), rgba(12,16,29,.8)); transition: transform .2s, border-color .2s; }.discord-feature:hover { transform: translateY(-4px); border-color: rgba(127,140,255,.55); }.discord-feature::after { content: ""; position: absolute; width: 120px; height: 120px; right: -45px; bottom: -55px; border-radius: 50%; background: var(--feature-color); opacity: .13; filter: blur(15px); }.discord-feature-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 1.5rem; border: 1px solid color-mix(in srgb, var(--feature-color), transparent 50%); border-radius: 9px; color: var(--feature-color); background: color-mix(in srgb, var(--feature-color), transparent 88%); font-size: 1.2rem; }.discord-feature h3 { margin-bottom: .65rem; font-size: 1rem; }.discord-feature p { max-width: 245px; color: var(--discord-muted); font-size: .77rem; line-height: 1.65; }.discord-feature-number { position: absolute; right: 1.3rem; top: 1.2rem; color: #555d78; font-family: "JetBrains Mono", monospace; font-size: .65rem; }.discord-feature--cyan { --feature-color: #5de7ff; }.discord-feature--orange { --feature-color: #ffad6b; }.discord-feature--violet { --feature-color: #ae9cff; }.discord-feature--pink { --feature-color: #ff8fb4; }.discord-feature--gold { --feature-color: #f5d36b; }.discord-feature--green { --feature-color: #73e6a1; }
.discord-faq { padding: 1rem 0 7rem; }.discord-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem; margin-top: 3rem; }.discord-faq details { align-self: start; padding: 1.2rem 1.35rem; border: 1px solid var(--discord-line); border-radius: 10px; background: rgba(16,20,34,.7); }.discord-faq summary { cursor: pointer; color: var(--discord-copy); font-size: .82rem; font-weight: 600; list-style: none; }.discord-faq summary::-webkit-details-marker { display: none; }.discord-faq summary::after { content: "+"; float: right; color: var(--discord-cyan); font-size: 1rem; font-weight: 400; }.discord-faq details[open] summary::after { content: "−"; }.discord-faq details p { max-width: 470px; padding-top: .9rem; color: var(--discord-muted); font-size: .76rem; line-height: 1.65; }.discord-faq code { color: var(--discord-cyan); font-family: "JetBrains Mono", monospace; font-size: .7rem; }
.discord-faq { padding: 1rem 0 7rem; }.discord-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem; margin-top: 3rem; }.discord-faq details { align-self: start; padding: 1.2rem 1.35rem; border: 1px solid var(--discord-line); border-radius: 10px; background: rgba(16,20,34,.7); }.discord-faq summary { cursor: pointer; color: var(--discord-copy); font-size: .82rem; font-weight: 600; list-style: none; }.discord-faq summary::-webkit-details-marker { display: none; }.discord-faq summary::after { content: "+"; float: right; color: var(--discord-cyan); font-size: 1rem; font-weight: 400; }.discord-faq details[open] summary::after { content: "−"; }.discord-faq details p { max-width: 470px; padding-top: .9rem; color: var(--discord-muted); font-size: .76rem; line-height: 1.65; }.discord-faq code { color: var(--discord-cyan); font-family: "JetBrains Mono", monospace; font-size: .7rem; }
.discord-how-it-works { padding: 1rem 0 8rem; }.discord-section-heading--center { max-width: none; text-align: center; }.discord-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; }.discord-step { display: flex; gap: 1.15rem; padding: 1.4rem; border-top: 1px solid var(--discord-line); }.discord-step > span { color: var(--discord-cyan); font-family: "JetBrains Mono", monospace; font-size: .7rem; }.discord-step h3 { font-size: .92rem; margin-bottom: .55rem; }.discord-step p { color: var(--discord-muted); font-size: .77rem; line-height: 1.6; }.discord-step code { color: var(--discord-cyan); font-family: "JetBrains Mono", monospace; font-size: .7rem; }
.discord-cta { position: relative; padding: 6rem 1.5rem 6.5rem; text-align: center; border: 1px solid var(--discord-line); border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 100%, rgba(88,101,242,.24), transparent 55%), linear-gradient(145deg, rgba(20,27,52,.9), rgba(12,16,30,.9)); }.discord-cta-glow { position: absolute; width: 300px; height: 300px; left: calc(50% - 150px); top: -220px; border-radius: 50%; background: rgba(93,231,255,.18); filter: blur(70px); }.discord-cta h2 { position: relative; margin: 1rem 0 1.2rem; font-size: clamp(2.8rem, 5vw, 4.9rem); letter-spacing: -.07em; line-height: .95; }.discord-cta p { position: relative; color: var(--discord-muted); font-size: .9rem; margin-bottom: 1.8rem; }.discord-cta .discord-join { position: relative; }
.discord-footer { display: flex; align-items: center; gap: 2rem; padding: 3.2rem 0; }.discord-footer .discord-brand { margin-right: 0; }.discord-footer p { flex: 1; color: #6e7691; font-size: .65rem; line-height: 1.55; text-align: center; }
@media (max-width: 800px) { .discord-hero { grid-template-columns: 1fr; padding-top: 4rem; }.discord-hero-visual { min-height: 390px; margin-top: -1rem; }.discord-feature-grid, .discord-faq-grid { grid-template-columns: repeat(2, 1fr); }.discord-steps { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }.discord-footer { flex-wrap: wrap; }.discord-footer p { order: 3; flex-basis: 100%; text-align: left; } }
@media (max-width: 560px) { .discord-nav, .discord-hero, .discord-proof-strip, .discord-features, .discord-faq, .discord-how-it-works, .discord-cta, .discord-footer { width: min(100% - 2rem, 1180px); }.discord-nav { height: 72px; gap: .75rem; }.discord-nav-link { display: none; }.discord-join--small { padding-inline: .7rem; font-size: .68rem; }.discord-hero { min-height: 0; padding: 4.5rem 0 3rem; }.discord-hero h1 { font-size: clamp(3.1rem, 15vw, 5rem); }.discord-hero-lede { font-size: .91rem; }.discord-hero-actions { align-items: flex-start; flex-direction: column; gap: 1.1rem; }.discord-hero-visual { min-height: 330px; }.discord-radar { width: min(310px, 82vw); }.discord-orbit--one { width: 350px; height: 150px; }.discord-orbit--two { width: 380px; height: 180px; }.discord-alert-card { min-width: 190px; transform: scale(.84); }.discord-alert-card--top { right: -22px; }.discord-alert-card--bottom { left: -22px; }.discord-proof-strip { align-items: stretch; flex-direction: column; gap: 1.2rem; padding: 1.5rem; }.discord-proof-strip i { width: 100%; height: 1px; }.discord-features { padding: 5.5rem 0; }.discord-feature-grid, .discord-faq-grid { grid-template-columns: 1fr; margin-top: 2.5rem; }.discord-feature { min-height: 200px; }.discord-how-it-works { padding-bottom: 5.5rem; }.discord-cta { padding: 4.5rem 1rem; }.discord-footer { align-items: flex-start; flex-direction: column; gap: 1.5rem; }.discord-footer p { text-align: left; } }
