/* ==========================================================================
   CreatorAIRadar.com — Modern Dark Obsidian Design System
   ========================================================================== */

:root {
  --bg-base: #06080f;
  --bg-elevated: #0d121f;
  --bg-card: rgba(16, 22, 37, 0.78);
  --bg-card-hover: rgba(22, 31, 52, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(99, 102, 241, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 36px -8px rgba(99, 102, 241, 0.45);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-base);
  overflow-x: hidden;
  line-height: 1.6;
}

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

button,
input,
select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.bg-orb-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6), transparent 70%);
}

.bg-orb-2 {
  width: 520px;
  height: 520px;
  top: 80px;
  right: -160px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.14));
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 24px;
  flex-wrap: wrap;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-bar-text {
  margin: 0;
  color: var(--text-secondary);
}

.top-bar-link {
  background: none;
  border: none;
  color: #a5b4fc;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.top-bar-link:hover {
  color: #ffffff;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 8, 15, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  color: #ffffff;
  box-shadow: 0 6px 20px -4px rgba(99, 102, 241, 0.6);
}

.brand-accent {
  background: linear-gradient(90deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7477ff, #5b52f0);
  box-shadow: 0 10px 28px -4px rgba(99, 102, 241, 0.72);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.hero-inner {
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.text-gradient {
  background: linear-gradient(95deg, #818cf8 0%, #22d3ee 52%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0 auto 34px;
  max-width: 650px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Hero Search */
.hero-search-wrap {
  max-width: 680px;
  margin: 0 auto 42px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 22, 38, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 18px 46px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent-indigo);
  box-shadow: 0 18px 46px -14px rgba(0, 0, 0, 0.75), 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  min-width: 0;
}

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

.quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-tags-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-right: 2px;
}

.quick-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}

.quick-tag:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* Metrics Strip */
.metrics-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  background: rgba(13, 18, 31, 0.7);
  border: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-compact {
  padding: 24px 0 64px;
}

.section-tinted {
  background: linear-gradient(180deg, rgba(13, 18, 31, 0.5), rgba(6, 8, 15, 0.2));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #818cf8;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  max-width: 420px;
  font-size: 0.94rem;
}

/* Featured Top 3 Cards */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(22, 30, 52, 0.92), rgba(11, 16, 29, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tool-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.pill-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.pill-badge-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.featured-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.tool-tagline {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  flex: 1;
}

.tool-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  padding: 12px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fbbf24;
  font-weight: 700;
}

.price-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}

/* Directory Filter Bar */
.results-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

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

.cat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.cat-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.cat-pill.active {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(99, 102, 241, 0.7);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-input {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.select-input:focus {
  border-color: var(--accent-indigo);
}

/* Directory Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.tool-card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 12px;
}

.tool-card-head h3 {
  margin: 0 0 3px;
  font-size: 1.08rem;
  font-weight: 700;
}

.tool-cat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tool-best-for {
  font-size: 0.8rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

/* Comparisons Section */
.comparison-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.comp-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s;
}

.comp-tab.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-indigo);
  color: #ffffff;
}

.comparison-stage {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.comp-head {
  margin-bottom: 22px;
}

.comp-head h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.comp-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.comp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.comp-col {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(9, 13, 24, 0.72);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-col.winner {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07), rgba(9, 13, 24, 0.82));
}

.comp-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comp-col-header h4 {
  margin: 0;
  font-size: 1.18rem;
}

.comp-row {
  font-size: 0.88rem;
}

.comp-row strong {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.comp-verdict {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--accent-indigo);
  font-size: 0.92rem;
  color: #e2e8f0;
}

/* Daily AI News Section */
.radar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  color: #6ee7b7;
  font-weight: 600;
}

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

.news-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, transform 0.18s;
}

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

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.38;
}

.news-summary {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.news-bullets {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.news-source {
  color: var(--text-muted);
}

.news-link {
  color: #818cf8;
  font-weight: 600;
}

.news-link:hover {
  color: #ffffff;
}

/* Newsletter Card */
.newsletter-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 19, 34, 0.95) 55%, rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-card);
}

.newsletter-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.2;
}

.newsletter-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.newsletter-input-group {
  display: flex;
  gap: 10px;
}

.newsletter-input-group input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(6, 8, 15, 0.85);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input-group input:focus {
  border-color: var(--accent-indigo);
}

.newsletter-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.newsletter-note.success {
  color: #34d399;
  font-weight: 600;
}

/* Sponsor Banner */
.sponsor-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 38, 0.72);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.sponsor-banner h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.sponsor-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 42px 0 32px;
  background: rgba(4, 6, 12, 0.8);
}

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

.footer-tagline {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 340px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

.disclosure {
  max-width: 620px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #0e1424;
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 80px -12px rgba(0, 0, 0, 0.85);
}

.modal-card-sm {
  max-width: 480px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.modal-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.modal-sub {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.modal-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 22px;
}

.modal-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.modal-box h4 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-box.pros h4 { color: #34d399; }
.modal-box.cons h4 { color: #fbbf24; }

.modal-box ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Sponsor Form */
.sponsor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-field input,
.form-field select {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #070b14;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent-indigo);
}

.form-feedback {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: #34d399;
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .featured-grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .featured-grid,
  .tools-grid,
  .news-grid,
  .comp-columns,
  .modal-pros-cons {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 46px 0 32px;
  }
  .metric-divider {
    display: none;
  }
  .newsletter-input-group {
    flex-direction: column;
  }
  .search-box {
    flex-wrap: wrap;
    padding: 10px;
  }
  .search-box .btn {
    width: 100%;
  }
}
