/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #181818;
  --surface-3: #202020;
  --border: #222222;
  --border-light: #2a2a2a;
  --text: #f0f0f0;
  --text-2: #999999;
  --text-3: #555555;
  --accent: #8b5cf6;
  --accent-2: #7c3aed;
  --green: #10b981;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select { font-family: inherit; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.logo-mark {
  width: 42px;
  height: 38px;
  background: linear-gradient(135deg, #5b21b6, #a855f7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(139,92,246,0.45);
}

.logo-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

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

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--text); background: var(--surface-2); }

.watchlist-count {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  display: none;
}

.watchlist-count.visible { display: inline-block; }

.nav-right { margin-left: auto; }

.search-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.2s;
  background: var(--surface-2);
}

.search-btn:hover { color: var(--text); background: var(--surface-3); }

.search-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 14px;
  display: none;
  align-items: center;
  gap: 12px;
}

.search-bar.open { display: flex; }

.search-bar input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input::placeholder { color: var(--text-3); }
.search-bar input:focus { border-color: var(--accent); }

.search-bar button {
  color: var(--text-2);
  font-size: 16px;
  padding: 8px;
}

.search-results {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 700px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface-2); }

.search-result-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-weight: 600; font-size: 14px; }
.search-result-cat { font-size: 12px; color: var(--text-2); }

/* ===== SECTIONS ===== */
.section { display: none; padding-top: 60px; }
.section.active { display: block; }

/* ===== HERO ===== */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 32px;
  letter-spacing: 0.2px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

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

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text), var(--text-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,92,246,0.35); }
.btn-primary:active { transform: translateY(0); }

.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.btn-ghost:hover { color: var(--text); border-color: var(--text-3); background: var(--surface-2); }

/* ===== SECTION CONTAINERS ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

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

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
}

.section-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s;
}

.section-link:hover { opacity: 0.7; }

/* ===== FEATURED CARD ===== */
.featured-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.04), rgba(236,72,153,0.04));
  opacity: 0;
  transition: opacity 0.3s;
}

.featured-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.featured-card:hover::before { opacity: 1; }

.featured-card-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.featured-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.gemini-logo { background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335); color: white; }
.openai-logo { background: #1a1a1a; color: white; border: 1px solid #333; }
.claude-logo { background: linear-gradient(135deg, #cc785c, #d4956a); color: white; }
.perplexity-logo { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #00d4ff; border: 1px solid #1e3a5f; }
.copilot-logo { background: linear-gradient(135deg, #0078d4, #50e6ff); color: white; }
.cursor-logo { background: #0f0f0f; color: white; border: 1px solid #333; }
.midjourney-logo { background: #000; color: white; border: 1px solid #333; }
.runway-logo { background: linear-gradient(135deg, #1a0a2e, #4a1a6e); color: #c084fc; border: 1px solid #3d1a5a; }
.elevenlabs-logo { background: #000; color: #f0f0f0; border: 1px solid #333; }
.notion-logo { background: white; color: #000; }
.mistral-logo { background: linear-gradient(135deg, #ff7000, #ffa500); color: white; }
.llama-logo { background: linear-gradient(135deg, #0467df, #0ea5e9); color: white; }
.cohere-logo { background: linear-gradient(135deg, #39c5cf, #09b8e0); color: white; }
.huggingface-logo { background: #ffcc33; color: #1f1f1f; }
.stability-logo { background: linear-gradient(135deg, #6600ff, #8833ff); color: white; }
.otter-logo { background: linear-gradient(135deg, #1a73e8, #4285f4); color: white; }
.grammarly-logo { background: linear-gradient(135deg, #15c39a, #00b288); color: white; }
.writesonic-logo { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: white; }
.jasper-logo { background: linear-gradient(135deg, #f97316, #fb923c); color: white; }
.grok-logo { background: #000; color: white; border: 1px solid #333; font-weight: 800; }
.mscopilot-logo { background: linear-gradient(135deg, #0078d4, #50e6ff); color: white; }
.meta-logo { background: linear-gradient(135deg, #0467df, #1877f2); color: white; }
.windsurf-logo { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }
.codeium-logo { background: linear-gradient(135deg, #09b6a2, #0d9488); color: white; }
.tabnine-logo { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.replit-logo { background: linear-gradient(135deg, #f26207, #fc7c33); color: white; }
.amazonq-logo { background: linear-gradient(135deg, #ff9900, #e88c00); color: white; }
.devin-logo { background: linear-gradient(135deg, #1e1e2e, #2d2d44); color: #a78bfa; border: 1px solid #4c3d8f; }
.firefly-logo { background: linear-gradient(135deg, #e94d6c, #f97316); color: white; }
.ideogram-logo { background: linear-gradient(135deg, #111, #2a2a2a); color: #e2e8f0; border: 1px solid #333; }
.leonardo-logo { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; }
.flux-logo { background: linear-gradient(135deg, #0f172a, #1e293b); color: #f59e0b; border: 1px solid #334155; }
.canva-logo { background: linear-gradient(135deg, #00c4cc, #7d2ae8); color: white; }
.copyai-logo { background: linear-gradient(135deg, #6c5ce7, #9b59b6); color: white; }
.rytr-logo { background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: white; }
.hemingway-logo { background: linear-gradient(135deg, #dc2626, #ef4444); color: white; }
.quillbot-logo { background: linear-gradient(135deg, #16a34a, #22c55e); color: white; }
.suno-logo { background: linear-gradient(135deg, #0f0f0f, #1a0a0a); color: #f87171; border: 1px solid #3f0000; }
.udio-logo { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #818cf8; border: 1px solid #3730a3; }
.kling-logo { background: linear-gradient(135deg, #0d0d0d, #1a1a1a); color: #60a5fa; border: 1px solid #1e3a5f; }
.pika-logo { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white; }
.luma-logo { background: linear-gradient(135deg, #0f0f23, #1a1a3e); color: #c084fc; border: 1px solid #4c1d95; }
.descript-logo { background: linear-gradient(135deg, #16213e, #0f3460); color: #60a5fa; border: 1px solid #1e3a5f; }
.youcom-logo { background: linear-gradient(135deg, #ef4444, #f97316); color: white; }
.kagi-logo { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); color: #fbbf24; border: 1px solid #374151; }
.phind-logo { background: linear-gradient(135deg, #0c4a6e, #0284c7); color: white; }
.exa-logo { background: linear-gradient(135deg, #111827, #1f2937); color: #34d399; border: 1px solid #065f46; }
.tavily-logo { background: linear-gradient(135deg, #1e3a5f, #2563eb); color: white; }

.featured-info { flex: 1; min-width: 0; }

.featured-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.featured-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.featured-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.featured-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
}

.featured-verdict {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.featured-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.featured-price {
  text-align: right;
}

.price-free {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}

.price-then {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ===== FEED GRID ===== */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* ===== TOOL CARD ===== */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tool-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  background: var(--surface-2);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.card-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.card-name-group {}
.card-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card-company {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.watchlist-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-3);
  transition: all 0.2s;
  background: var(--surface-3);
}

.watchlist-btn:hover { color: var(--yellow); background: rgba(245,158,11,0.1); }
.watchlist-btn.active { color: var(--yellow); background: rgba(245,158,11,0.15); }

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-price {
  display: flex;
  flex-direction: column;
}

.price-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.price-main.free { color: var(--green); }

.price-sub {
  font-size: 11px;
  color: var(--text-3);
}

.card-cat {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-3);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 500;
  text-transform: capitalize;
}

/* ===== DEAL CARD ===== */
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.deal-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(245,158,11,0.12), transparent 70%);
  border-radius: 0 12px 0 0;
}

.deal-card:hover {
  border-color: rgba(245,158,11,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.deal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.deal-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.deal-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.deal-subtitle { font-size: 12px; color: var(--text-2); }

.deal-highlight {
  background: var(--surface-3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-saving {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}

.deal-detail {
  font-size: 12px;
  color: var(--text-2);
}

.deal-expires {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}

.badge-free { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
.badge-deal { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.badge-student { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.badge-startup { background: rgba(139,92,246,0.15); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.2); }
.badge-bestvalue { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.2)); color: #c084fc; border: 1px solid rgba(139,92,246,0.3); }
.badge-new { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.2); }
.badge-limited { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.badge-annual { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.15); }
.badge-credits { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.15); }

/* ===== PAGE HERO ===== */
.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 48px;
}

.page-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.page-sub {
  font-size: 15px;
  color: var(--text-2);
}

/* ===== DEALS FILTERS ===== */
.deals-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all 0.2s;
  background: var(--surface);
}

.filter-pill:hover { color: var(--text); border-color: var(--border-light); }
.filter-pill.active { color: var(--text); border-color: var(--accent); background: rgba(139,92,246,0.1); }

/* ===== CATEGORY LAYOUT ===== */
.cat-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.cat-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-group { display: flex; flex-direction: column; gap: 2px; }

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 10px;
  margin-bottom: 6px;
}

.filter-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-align: left;
  transition: all 0.15s;
}

.filter-item:hover { color: var(--text); background: var(--surface-2); }
.filter-item.active { color: var(--text); background: var(--surface-2); }

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

.result-count {
  font-size: 13px;
  color: var(--text-3);
}

.sort-select-wrap { position: relative; }

.sort-select {
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 32px 7px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.sort-select-wrap::after {
  content: '↓';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-3);
  pointer-events: none;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover { color: var(--text); background: var(--surface-3); }

.modal-content { padding: 28px; clear: both; }

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.modal-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.modal-company { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.modal-section { margin-bottom: 24px; }
.modal-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.modal-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.plan-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  transition: border-color 0.2s;
}

.plan-card.highlight { border-color: var(--accent); background: rgba(139,92,246,0.07); }

.plan-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.plan-price .free-label { color: var(--green); }

.plan-period { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }

.plan-feature {
  font-size: 11px;
  color: var(--text-2);
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.plan-feature::before { content: '✓'; color: var(--green); flex-shrink: 0; margin-top: 1px; }

.perks-list { display: flex; flex-direction: column; gap: 8px; }

.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
}

.perk-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.perk-title { font-size: 13px; font-weight: 600; }
.perk-desc { font-size: 12px; color: var(--text-2); }

.modal-verdict {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.08));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  font-style: italic;
}

.modal-verdict strong { color: var(--text); font-style: normal; }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ===== WATCHLIST ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-sub { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-3);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links .nav-link:not([data-section="home"]):not([data-section="watchlist"]) {
    display: none;
  }

  .hero { padding: 70px 20px 60px; }
  .hero-title { font-size: 34px; }

  .hero-stats {
    gap: 0;
    padding: 16px;
  }

  .stat { padding: 0 16px; }
  .stat-num { font-size: 20px; }

  .featured-card {
    flex-direction: column;
    gap: 16px;
  }

  .featured-card-right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .cat-layout {
    grid-template-columns: 1fr;
  }

  .cat-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-group { flex-direction: row; flex-wrap: wrap; }
  .filter-label { width: 100%; }

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

  .modal { max-height: 90vh; border-radius: 16px; }

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

  .page-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
}

/* ===== PAGE HERO BADGE ===== */
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
}

.hiw-header {
  text-align: center;
  margin-bottom: 40px;
}

.hiw-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 8px;
}

.hiw-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.hiw-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.hiw-icon {
  width: 52px;
  height: 52px;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}

.hiw-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.hiw-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.hiw-arrow {
  font-size: 20px;
  color: var(--text-3);
  margin-top: 24px;
  flex-shrink: 0;
}

/* ===== FOOTER MOTTO ===== */
.footer-motto {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .how-it-works { padding: 32px 24px; }
  .hiw-steps { flex-direction: column; align-items: center; gap: 8px; }
  .hiw-arrow { transform: rotate(90deg); margin: 0; }
  .hiw-step { padding: 16px 0; }
}
