.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 12px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; /* Pill shape for modern look */
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.main-nav a svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.main-nav a:hover svg, .main-nav a.active svg {
  opacity: 1;
}

.main-nav a:hover { 
  color: var(--text); 
  border-color: var(--accent);
  background: var(--surface2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-nav a.active { 
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.main-nav a.active::after {
  display: none;
}


/* Mobile nav is handled by mobile.css */

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Tool Catalog Chips ───────────────────────────────────────────────────── */
.tool-chip {
  padding: 6px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
}

.tool-chip:hover {
  background: rgba(239, 68, 68, 0.08); /* accent tint */
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.clock {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface2);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.logo-text span { color: var(--accent); }

.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  letter-spacing: 1px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s ease forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s ease forwards;
}

/* ── Search ────────────────────────────────────────────────────────────────── */
.search-wrap {
  opacity: 0;
  animation: fadeUp 0.6s 0.65s ease forwards;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 640px;
  margin: 0 auto;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.search-box input::placeholder { color: var(--muted); }

.search-btn {
  margin: 8px;
  padding: 10px 28px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.search-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239,68,68,0.4);
}
.search-btn:active { transform: scale(0.97); }
.search-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Ad Sidebars ──────────────────────────────────────────────────────────── */
.ad-sidebar {
  position: fixed;
  top: 100px;
  width: 160px;
  height: 600px;
  background: rgba(13,21,32,0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
}

.ad-sidebar.left { left: 20px; }
.ad-sidebar.right { right: 20px; }

.ad-label {
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 1400px) {
  .ad-sidebar { display: none; }
}

.ad-placeholder {
  background: rgba(13,21,32,0.4);
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 100px;
}

.ad-placeholder.h-banner { height: 250px; }
.ad-placeholder.in-content { height: 280px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

footer a { color: var(--accent); text-decoration: none; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }

/* ── Modal System ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}
.modal-overlay.active { display: flex; }

.modal-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.modal-close {
  background: var(--surface2);
  border: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--accent); transform: rotate(90deg); }

.modal-body {
  padding: 32px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.modal-body h2 { margin-bottom: 16px; font-size: 18px; color: var(--accent); }
.modal-body h3 { margin: 24px 0 12px; font-size: 16px; }
.modal-body p { margin-bottom: 16px; color: var(--muted); }
.modal-body ul { margin-bottom: 24px; padding-left: 20px; color: var(--muted); }
.modal-body li { margin-bottom: 8px; }

/* ── Responsive overrides ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .verdict-bar { flex-direction: column; text-align: center; }
  .verdict-ip { font-size: 18px; }
}
