/* ============================================
   NYROSYNC AI DIRECTORY — DESIGN SYSTEM
   Premium AI Tools Discovery Platform
   ============================================ */

/* ---------- CSS Custom Properties (Dark Theme Default) ---------- */
:root {
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Dark Theme Colors (Default) */
  --bg-primary: #07080d;
  --bg-secondary: #0d0f17;
  --bg-surface: #12141f;
  --bg-card: rgba(18, 20, 35, 0.85);
  --bg-card-hover: rgba(25, 28, 48, 0.95);
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-hero-gradient: linear-gradient(160deg, #07080d 0%, #0f1120 40%, #130e24 70%, #07080d 100%);

  --text-primary: #f0f0f5;
  --text-secondary: #9ca3b4;
  --text-muted: #5c6378;
  --text-inverse: #07080d;

  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-active: rgba(139, 92, 246, 0.4);

  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;

  --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-card-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 64px;
  --max-width: 1280px;
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-input: rgba(0, 0, 0, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-hero-gradient: linear-gradient(160deg, #f0f0ff 0%, #e8e0ff 40%, #f0e8ff 70%, #f8f9fc 100%);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --border-active: rgba(139, 92, 246, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.08);

  --gradient-card-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
  animation: fadeInPage 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: var(--text-primary);
  outline: none;
}

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 8, 13, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 0;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-base);
}

.brand-logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.brand-link:hover .brand-logo-icon {
  transform: scale(1.06) rotate(4deg);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

.brand-link:hover .brand-logo-icon::before {
  transform: translate(50%, 50%) rotate(45deg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-input);
}

.nav-link.active {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  margin-left: auto;
}

.header-search-input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all var(--transition-base);
}

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

.header-search-input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: var(--bg-surface);
}

.header-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.header-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-search-clear:hover {
  background: var(--border-hover);
  color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Navigation Drawer (Hidden by default on Desktop) */
.mobile-nav {
  display: none;
}

/* ---------- Hero Section ---------- */
/* ---------- Hero Slider Section ---------- */
.hero-slider-section {
  padding: 134px 0 24px 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.slider-container {
  position: relative;
  height: 300px;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  box-shadow: var(--shadow-md);
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 64px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background: radial-gradient(circle at 80% 50%, rgba(var(--slide-accent-rgb), 0.1) 0%, transparent 65%), var(--bg-surface);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-content {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.slide-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--slide-accent);
  background: rgba(var(--slide-accent-rgb), 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(var(--slide-accent-rgb), 0.2);
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.slide-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--slide-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(var(--slide-accent-rgb), 0.25);
}

.slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--slide-accent-rgb), 0.35);
}

.slide-visual {
  position: relative;
  width: 35%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--slide-accent) 0%, transparent 70%);
  opacity: 0.3;
}

.slide-icon-large {
  font-size: 4.8rem;
  z-index: 1;
  user-select: none;
}

/* Slider Nav Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 20, 35, 0.6);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  z-index: 5;
  backdrop-filter: blur(4px);
}

.slider-nav:hover {
  color: var(--text-primary);
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.slider-nav svg {
  width: 16px;
  height: 16px;
}

.slider-nav.prev {
  left: 24px;
}
.slider-nav.next {
  right: 24px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot:hover {
  background: var(--text-secondary);
}

.slider-dot.active {
  background: var(--accent-purple);
  width: 22px;
  border-radius: 4px;
}

/* ---------- Category Header Section ---------- */
.category-header-section {
  padding: 134px 24px 24px 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: none;
}

.category-header-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.category-header-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.category-header-inner .hero-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}

.category-header-inner .hero-subtitle {
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slider-container {
    height: 240px;
  }
  .slide {
    padding: 24px;
  }
  .slide-content {
    max-width: 75%;
  }
  .slide-visual {
    width: 25%;
  }
  .slide-icon-large {
    font-size: 3.5rem;
  }
  .slide-glow {
    width: 100px;
    height: 100px;
    filter: blur(40px);
  }
  .slider-nav {
    display: none;
  }
  .category-header-inner {
    padding: 24px 16px;
  }
}

/* ---------- Section Styles ---------- */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

/* ---------- Category Filter Pills ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.filter-pill.active {
  color: white;
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}

.filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-count strong {
  color: var(--text-primary);
}

.sort-select {
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* ---------- Directory Layout ---------- */
.directory-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.directory-sidebar {
  display: none !important;
}

.sidebar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.sidebar-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
  .directory-sidebar {
    display: none;
  }
}

/* ---------- Tools Grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ---------- Tool Card ---------- */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--gradient-brand));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tool-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

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

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.tool-icon svg {
  width: 22px;
  height: 22px;
}

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

.tool-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tool-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-category {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.badge-pricing {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge-pricing.paid {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-pricing.free {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.tool-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-amber);
}

.tool-rating svg {
  width: 13px;
  height: 13px;
  fill: var(--accent-amber);
}

.tool-visit-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  background: var(--accent-purple);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tool-visit-btn:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.tool-visit-btn svg {
  width: 12px;
  height: 12px;
}

/* ---------- Upvote Button ---------- */
.upvote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 16px;
  margin-top: 12px;
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.06);
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upvote-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.upvote-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.35);
}

.upvote-btn.active:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.55);
}

.upvote-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- Tool Detail Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-hover);
  color: var(--text-primary);
}

.modal-tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-tool-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.modal-tool-icon svg {
  width: 26px;
  height: 26px;
}

.modal-tool-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-tool-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-tool-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.modal-meta-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.modal-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-meta-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.modal-visit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  background: var(--gradient-brand);
  transition: all var(--transition-base);
}

.modal-visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.modal-visit-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Prompt AI Generator ---------- */
.prompt-generator-section {
  background: var(--gradient-card-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.prompt-generator-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.prompt-gen-header {
  text-align: center;
  margin-bottom: 20px;
}

.prompt-gen-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.prompt-gen-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.prompt-gen-input-wrap {
  display: flex;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
}

.prompt-gen-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-fast);
}

.prompt-gen-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.prompt-gen-input::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.prompt-gen-btn {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

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

.prompt-gen-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.prompt-gen-btn svg {
  width: 16px;
  height: 16px;
}

.prompt-gen-results {
  margin-top: 24px;
  animation: cardFadeIn 0.4s ease forwards;
}

.prompt-gen-output {
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
  position: relative;
  max-height: 180px;
  overflow: hidden;
}

.prompt-gen-output pre {
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 144px;
  overflow-y: auto;
  padding-right: 60px;
}

.prompt-gen-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.prompt-gen-copy-btn:hover {
  background: rgba(16, 185, 129, 0.2);
}

.prompt-gen-copy-btn.copied {
  color: #fff;
  background: var(--accent-emerald);
}

.prompt-gen-ai-recs {
  margin-top: 24px;
}

.prompt-gen-ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.prompt-gen-ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.prompt-gen-ai-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.prompt-gen-ai-card .ai-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.prompt-gen-ai-card .ai-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.prompt-gen-ai-card .ai-use-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all var(--transition-fast);
}

.prompt-gen-ai-card:hover .ai-use-btn {
  background: var(--accent-primary);
  color: #fff;
}

.prompt-gen-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.prompt-gen-loading .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

@media (max-width: 768px) {
  .prompt-gen-input-wrap {
    flex-direction: column;
  }

  .prompt-gen-ai-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .prompt-gen-ai-card {
    padding: 8px 4px;
  }

  .prompt-gen-ai-card .ai-name {
    font-size: 0.75rem;
  }

  .prompt-gen-ai-card .ai-tag {
    display: none;
  }

  .prompt-gen-ai-card .ai-use-btn {
    font-size: 0.62rem;
    padding: 4px 6px;
  }

  .prompt-generator-section {
    padding: 20px;
  }
}

/* ---------- Prompts Section ---------- */
.prompts-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(15px);
  animation: cardFadeIn 0.4s ease forwards;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prompt-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

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

.prompt-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.prompt-category-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 92, 246, 0.15);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prompt-card-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.prompt-tab-btn {
  background: none;
  border: none;
  padding: 8px 4px 10px 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.prompt-tab-btn:hover {
  color: var(--text-primary);
}

.prompt-tab-btn.active {
  color: var(--accent-primary);
}

.prompt-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 4px;
}

.prompt-tab-content {
  display: none;
  flex: 1;
  min-height: 220px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.prompt-tab-content.active {
  display: block;
}

/* Custom Scrollbars for code blocks & tabs */
.prompt-tab-content::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.prompt-tab-content::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-tab-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.prompt-tab-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.prompt-code-wrapper {
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-code-wrapper code {
  font-family: inherit;
}

.prompt-result-preview {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.prompt-result-preview .chat-header {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-result-preview .chat-header::before {
  content: '✦';
  color: var(--accent-primary);
}

.prompt-result-preview .chat-bubble {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 6px;
}

.prompt-result-preview h3,
.prompt-result-preview h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 10px;
  margin-bottom: 6px;
}

.prompt-result-preview blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 6px 12px;
  margin: 10px 0;
  color: var(--text-muted);
  font-style: italic;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prompt-result-preview ul,
.prompt-result-preview ol {
  padding-left: 18px;
  margin: 8px 0;
}

.prompt-result-preview li {
  margin-bottom: 5px;
}

.prompt-result-preview code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

.prompt-result-preview pre {
  background: #080c14;
  padding: 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.prompt-result-preview pre code {
  background: none;
  padding: 0;
  color: #38bdf8;
  font-size: 0.72rem;
}

.prompt-result-preview .preview-window {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #090d16;
}

.prompt-result-preview .window-bar {
  background: #101524;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
}

.prompt-result-preview .window-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.prompt-result-preview .window-bar .dot.red {
  background: #ef4444;
}

.prompt-result-preview .window-bar .dot.yellow {
  background: #f59e0b;
}

.prompt-result-preview .window-bar .dot.green {
  background: #10b981;
}

.prompt-result-preview .window-bar .title {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 6px;
  font-family: monospace;
}

.prompt-result-preview .preview-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  margin-bottom: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.prompt-result-preview .preview-badge.creative-badge {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.prompt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  gap: 10px;
}

.prompt-more-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prompt-more-btn:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: var(--accent-primary);
}

.prompt-more-btn .more-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.prompt-card-collapsed-preview .prompt-code-wrapper {
  max-height: 140px;
  overflow: hidden;
  position: relative;
}

.prompt-card-collapsed-preview .prompt-code-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(10, 15, 30, 0.95));
  pointer-events: none;
}

.prompt-card.expanded .prompt-tab-content {
  min-height: auto;
  max-height: 400px;
}

.prompt-copy-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.prompt-copy-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
}

.prompt-copy-btn svg {
  width: 14px;
  height: 14px;
}

.prompt-copy-btn.copied {
  color: white;
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}


/* ---------- Submit Section ---------- */
.submit-section {
  background: var(--gradient-card-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 680px;
  margin: 0 auto;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: var(--bg-surface);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.submit-btn {
  padding: 14px 32px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-secondary);
  transition: background var(--transition-slow);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 20px;
}

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

.footer-link {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-purple);
}

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

.footer-copy a {
  color: var(--accent-purple);
  font-weight: 600;
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transition: transform var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  font-size: 1.1rem;
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--border-color) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ---------- No Results State ---------- */
.no-results {
  text-align: center;
  padding: 60px 24px;
  grid-column: 1 / -1;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-results-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.no-results-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-search {
    display: none;
  }

  /* Mobile Nav Drawer */
  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
  }

  .mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
  }

  .mobile-search {
    padding: 12px 16px;
  }

  .mobile-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 24px;
  }

  .hero-stat-value {
    font-size: 1.4rem;
  }

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

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

  .modal-meta-grid {
    grid-template-columns: 1fr;
  }

  .submit-section {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 16px;
  }

  .hero-section {
    padding: calc(var(--header-height) + 40px) 16px 60px;
  }

  .launch-row {
    display: grid !important;
    grid-template-areas: 
      "left upvote"
      "discuss upvote" !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    padding: 10px 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    gap: 2px 10px !important;
  }

  .launch-row-left {
    grid-area: left !important;
    display: grid !important;
    grid-template-areas: 
      "logo rank title"
      "logo tagline tagline"
      "logo tags tags" !important;
    grid-template-columns: auto auto 1fr !important;
    grid-template-rows: auto auto auto !important;
    align-items: center !important;
    gap: 2px 8px !important;
    min-width: 0 !important;
  }

  .launch-rank-text {
    grid-area: rank !important;
    display: inline-block !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    color: var(--text-primary) !important;
    width: auto !important;
    opacity: 1 !important;
    text-align: left !important;
  }

  .launch-logo-box {
    grid-area: logo !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    border-radius: 6px !important;
  }

  .launch-details {
    display: contents !important;
  }

  .launch-title-container {
    grid-area: title !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  .launch-title-link {
    font-size: 0.88rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
  }

  .launch-link-icon {
    display: none !important;
  }

  .launch-tagline-text {
    grid-area: tagline !important;
    margin: 0 !important;
    font-size: 0.72rem !important;
    color: var(--text-secondary) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
    max-width: none !important;
    margin-bottom: 1px !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
  }

  .launch-tags-container {
    grid-area: tags !important;
    margin: 0 !important;
    font-size: 0.65rem !important;
    gap: 2px !important;
  }

  .launch-row-right {
    display: contents !important;
  }

  .launch-discuss-btn {
    grid-area: discuss !important;
    justify-self: start !important;
    margin-left: 60px !important; /* aligns with content (16px padding + 36px logo + 8px gap) */
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-size: 0.68rem !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  .launch-upvote-btn {
    grid-area: upvote !important;
    align-self: center !important;
    justify-self: end !important;
    width: 36px !important;
    height: 42px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 5px !important;
    color: var(--text-primary) !important;
    padding: 0 !important;
    cursor: pointer !important;
    margin-left: 8px !important;
  }

  .launch-upvote-btn svg {
    width: 11px !important;
    height: 11px !important;
  }

  .launch-upvote-btn .count {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
  }

  .launch-upvote-btn.upvoted {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: var(--accent-purple) !important;
    color: var(--accent-purple) !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .launch-tag-minimal {
    display: none !important;
  }
  .launch-tags-container span {
    display: none !important;
  }
  .launch-row {
    padding: 10px 16px !important;
  }
  .launch-discuss-btn {
    margin-left: 60px !important;
  }
}

/* ============================================
   TIER 1 — HIGH IMPACT FEATURES
   ============================================ */

/* ---------- Bookmark/Favorite Button ---------- */
.bookmark-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  z-index: 5;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.bookmark-btn:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
}

.bookmark-btn.active {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
}

.bookmark-btn.active svg {
  fill: var(--accent-rose);
}

.bookmark-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

[data-theme="light"] .bookmark-btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

/* ---------- Compare Tools ---------- */
.compare-checkbox {
  position: absolute;
  top: 12px;
  right: 52px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  z-index: 5;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 0.65rem;
  opacity: 0;
}

.tool-card:hover .compare-checkbox {
  opacity: 1;
}

.compare-checkbox.active {
  opacity: 1;
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.compare-checkbox svg {
  width: 14px;
  height: 14px;
}

[data-theme="light"] .compare-checkbox {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

.compare-bar {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1500;
  transition: transform var(--transition-base);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.compare-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.compare-bar-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}

.compare-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.compare-bar-item .remove-compare {
  cursor: pointer;
  color: var(--text-muted);
  margin-left: 4px;
  font-size: 0.9rem;
}

.compare-bar-item .remove-compare:hover {
  color: var(--accent-rose);
}

.compare-bar-actions {
  display: flex;
  gap: 8px;
}

.compare-now-btn {
  padding: 10px 24px;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.compare-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.compare-clear-btn {
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
}

/* Compare Modal */
.compare-modal {
  max-width: 900px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.compare-table th {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  background: var(--bg-input);
}

.compare-table td {
  color: var(--text-secondary);
}

.compare-tool-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-tool-header .tool-icon {
  width: 36px;
  height: 36px;
}

/* ---------- Tags System ---------- */
.tool-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  max-height: 28px;
  overflow: hidden;
}

.tool-tag {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 500;
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.12);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tool-tag:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.25);
}

.modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.modal-tags .tool-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
}

/* ---------- New This Week Badge ---------- */
.badge-new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 700;
  animation: newPulse 2s ease-in-out infinite;
}

@keyframes newPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }

  50% {
    box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.15);
  }
}

.new-section {
  margin-bottom: 60px;
}

.new-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.new-carousel::-webkit-scrollbar {
  height: 4px;
}

.new-carousel::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 2px;
}

.new-carousel .tool-card {
  min-width: 320px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---------- User Reviews ---------- */
.reviews-section {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

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

.reviews-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

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

.review-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.star-rating-input {
  display: flex;
  gap: 4px;
}

.star-rating-input button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: transform var(--transition-fast);
}

.star-rating-input button:hover {
  transform: scale(1.2);
}

.star-rating-input button svg {
  width: 22px;
  height: 22px;
  fill: var(--border-color);
  stroke: none;
  transition: fill var(--transition-fast);
}

.star-rating-input button.active svg,
.star-rating-input button:hover svg {
  fill: var(--accent-amber);
}

.review-text-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  resize: none;
  min-height: 60px;
}

.review-submit-btn {
  align-self: flex-end;
  padding: 8px 20px;
  background: var(--accent-purple);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
  border-bottom: none;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-author {
  font-size: 0.82rem;
  font-weight: 600;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars svg {
  width: 12px;
  height: 12px;
  fill: var(--accent-amber);
}

.review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}

.review-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.user-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ============================================
   TIER 2 — MONETIZATION FEATURES
   ============================================ */

/* ---------- Featured/Sponsored ---------- */
.tool-card.featured {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), var(--bg-card));
}

.tool-card.featured::before {
  opacity: 1;
  background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
  background-size: 200% 100%;
  animation: featuredShine 3s linear infinite;
}

@keyframes featuredShine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.badge-featured {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 700;
}

.badge-sponsored {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.15);
  font-size: 0.62rem;
}

.featured-section {
  margin-bottom: 48px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ---------- Verified Badge ---------- */
.verified-badge {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.verified-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-blue);
}

.verified-tooltip {
  position: relative;
}

.verified-tooltip::after {
  content: 'Verified by Nyrosync';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 10;
}

.verified-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--gradient-card-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.newsletter-input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.newsletter-btn {
  padding: 12px 28px;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.newsletter-social {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---------- Ad Banner ---------- */
.ad-banner {
  background: var(--gradient-card-glow);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  text-align: center;
  margin: 32px 0;
  transition: all var(--transition-base);
}

.ad-banner:hover {
  border-color: var(--border-hover);
}

.ad-banner-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ad-banner-cta {
  color: var(--accent-purple);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ============================================
   TIER 3 — SMART FEATURES
   ============================================ */

/* ---------- Find My AI Tool Quiz ---------- */
.quiz-trigger {
  padding: 12px 28px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  cursor: pointer;
}

.quiz-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}

.quiz-modal {
  max-width: 560px;
}

.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.quiz-progress-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  transition: background var(--transition-base);
}

.quiz-progress-dot.active {
  background: var(--accent-purple);
}

.quiz-progress-dot.done {
  background: var(--accent-emerald);
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.quiz-option {
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-option:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
}

.quiz-option.selected {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  font-weight: 600;
}

.quiz-option-icon {
  font-size: 1.2rem;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quiz-nav-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.quiz-back-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.quiz-next-btn {
  background: var(--gradient-brand);
  color: white;
}

.quiz-results {
  text-align: center;
}

.quiz-result-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-result-card:hover {
  border-color: var(--accent-purple);
  transform: translateX(4px);
}

.quiz-match-score {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ---------- Trending ---------- */
.trending-section {
  margin-bottom: 48px;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.badge-trending {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
  animation: trendPulse 2s ease infinite;
}

@keyframes trendPulse {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.2);
  }
}

.trend-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-rose);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* ---------- Alternative Finder ---------- */
.alternatives-section {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.alternatives-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alt-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.alt-item:hover {
  border-color: var(--accent-purple);
  transform: translateX(4px);
}

.alt-item .tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.alt-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.alt-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.alt-rating {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--accent-amber);
  font-weight: 600;
}

/* ---------- News Ticker ---------- */
.news-ticker-wrapper {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 8px 0;
  position: relative;
}

.news-ticker {
  display: flex;
  gap: 60px;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.news-ticker:hover {
  animation-play-state: paused;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}

.news-item:hover {
  color: var(--text-primary);
}

.news-date {
  color: var(--accent-purple);
  font-weight: 600;
}

.news-category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  flex-shrink: 0;
}

.news-section-full {
  padding: 60px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.news-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.news-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  min-width: 70px;
}

.news-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  flex: 1;
}

.news-card-category {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.15);
  white-space: nowrap;
}

/* ---------- Advanced Search ---------- */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-md);
  display: none;
}

.search-suggestions.visible {
  display: block;
}

.search-suggestion-item {
  padding: 10px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition-fast);
}

.search-suggestion-item:hover {
  background: var(--bg-input);
}

.search-suggestion-item .tool-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.search-history {
  padding: 8px 16px;
}

.search-history-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
}

.search-history-item {
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-history-item:hover {
  color: var(--text-primary);
}

.search-history-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* ============================================
   TIER 4 — COMMUNITY & GROWTH
   ============================================ */

/* ---------- User Profile ---------- */
.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-btn:hover {
  border-color: var(--border-hover);
}

.profile-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.profile-modal {
  max-width: 500px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stat {
  text-align: center;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.profile-setup {
  text-align: center;
  padding: 24px;
}

.profile-emoji-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.profile-emoji-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-emoji-btn:hover,
.profile-emoji-btn.selected {
  border-color: var(--accent-purple);
  transform: scale(1.1);
  background: rgba(139, 92, 246, 0.1);
}

.profile-name-input {
  width: 100%;
  max-width: 250px;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  text-align: center;
  margin: 12px auto;
  display: block;
}

.profile-save-btn {
  padding: 10px 32px;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-top: 12px;
}

/* ---------- Share Buttons ---------- */
.share-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.share-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
}

.share-btn:hover {
  transform: translateY(-1px);
}

.share-btn.twitter {
  border-color: rgba(29, 161, 242, 0.3);
  color: #1da1f2;
}

.share-btn.twitter:hover {
  background: rgba(29, 161, 242, 0.1);
}

.share-btn.linkedin {
  border-color: rgba(0, 119, 181, 0.3);
  color: #0077b5;
}

.share-btn.linkedin:hover {
  background: rgba(0, 119, 181, 0.1);
}

.share-btn.whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.share-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
}

.share-btn.copy-link {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
}

.share-btn.copy-link:hover {
  background: rgba(139, 92, 246, 0.1);
}

.share-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- Comments ---------- */
.comments-section {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.comments-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.comment-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.comment-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.comment-submit {
  padding: 10px 20px;
  background: var(--accent-purple);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.comment-author {
  font-size: 0.8rem;
  font-weight: 600;
}

.comment-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

.comment-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.comment-actions {
  display: flex;
  gap: 12px;
}

.comment-action-btn {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.comment-action-btn:hover {
  color: var(--text-primary);
}

.comment-action-btn.liked {
  color: var(--accent-rose);
}

.comment-replies {
  margin-left: 32px;
  margin-top: 8px;
}

/* ---------- Leaderboard ---------- */
.leaderboard-section {
  max-width: 700px;
  margin: 0 auto;
}

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

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.leaderboard-item:hover {
  border-color: var(--border-hover);
}

.leaderboard-item.top-3 {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), var(--bg-card));
}

.leaderboard-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--bg-input);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.leaderboard-item.top-3 .leaderboard-rank {
  background: var(--accent-amber);
  color: white;
}

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.leaderboard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.leaderboard-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.leaderboard-badges {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.achievement-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
}

.leaderboard-points {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboard-points-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ---------- Points Toast ---------- */
.points-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald);
  box-shadow: var(--shadow-md);
  z-index: 3000;
  transform: translateX(120%);
  transition: transform var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-toast.show {
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-name {
    display: none;
  }

  .profile-name {
    display: none;
  }

  .profile-btn {
    padding: 4px !important;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 12px 0 8px;
  }

  .hero-newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 12px;
  }

  .hero-newsletter-icon {
    display: none;
  }

  .hero-newsletter-input {
    width: 100%;
    text-align: center;
    padding: 4px;
  }

  .hero-newsletter-btn {
    width: 100%;
    text-align: center;
  }

  .compare-bar {
    bottom: 96px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(150%) !important;
    width: 90% !important;
    max-width: 440px !important;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-lg) !important;
  }

  .compare-bar.visible {
    transform: translateX(-50%) translateY(0) !important;
  }

  .compare-bar-tools {
    flex-wrap: wrap;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
    text-align: center;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .quiz-option {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .news-ticker-wrapper {
    display: none;
  }

  .new-carousel .tool-card {
    min-width: 280px;
  }

  .leaderboard-item {
    padding: 12px 14px;
  }

  .ad-banner {
    padding: 14px 20px;
  }
}

@media (max-width: 576px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .compare-bar-item {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .modal-content {
    padding: 20px;
  }

  .share-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ---------- Premium Image Logos Support ---------- */
.tool-icon.has-image,
.modal-tool-icon.has-image {
  background: #ffffff !important;
  padding: 8px !important;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.compare-tool-header .tool-icon.has-image {
  padding: 5px !important;
}

.alt-item .tool-icon.has-image {
  padding: 5px !important;
}

.quiz-result-icon.has-image {
  padding: 5px !important;
}

.tool-icon.has-image img,
.modal-tool-icon.has-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: inherit !important;
  display: block !important;
}

/* ---------- Bottom Navigation Bar (Dock) ---------- */
body {
  padding-bottom: 100px !important;
}

.bottom-nav-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 440px;
  height: 64px;
  background: rgba(18, 20, 35, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02);
  z-index: 1000;
  transition: all var(--transition-base);
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.bottom-nav-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.bottom-nav-link:hover {
  color: var(--text-primary);
}

.bottom-nav-link:hover .bottom-nav-icon {
  transform: translateY(-2px);
}

.bottom-nav-link.active {
  color: white;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.1);
}

.bottom-nav-link.active .bottom-nav-icon {
  transform: scale(1.1);
}

/* Light Mode Overrides */
[data-theme="light"] .bottom-nav-bar {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bottom-nav-link.active {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
}

/* Navigation SVG Icons */
.nav-icon-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: middle;
  transition: transform var(--transition-fast);
}

.bottom-nav-link .nav-icon-svg {
  margin-bottom: 2px;
}

.mobile-nav .nav-link .nav-icon-svg {
  margin-right: 8px;
}

.bottom-nav-link:hover .nav-icon-svg {
  transform: translateY(-2px);
}

.bottom-nav-link.active .nav-icon-svg {
  transform: scale(1.15);
}

/* ---------- PWA Install Button ---------- */
.install-app-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-brand);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  margin-right: 12px;
}

.install-app-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .install-app-btn span {
    display: none;
  }

  .install-app-btn {
    padding: 8px;
    margin-right: 8px;
  }
}

/* ---------- Premium Hero Newsletter ---------- */
.hero-newsletter {
  max-width: 500px;
  margin: 32px auto 0 auto;
  position: relative;
  z-index: 2;
}

.hero-newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  transition: all var(--transition-base);
}

.hero-newsletter-form:focus-within {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.hero-newsletter-icon {
  width: 20px;
  height: 20px;
  margin-left: 16px;
  margin-right: 8px;
  align-self: center;
  color: var(--text-secondary);
}

.hero-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 8px 12px;
}

.hero-newsletter-btn {
  background: var(--gradient-brand);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.hero-newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
  filter: brightness(1.1);
}

[data-theme="light"] .hero-newsletter-form {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-newsletter-input {
  color: var(--text-primary);
}

/* ---------- Share Button on Card ---------- */
.share-card-btn {
  position: absolute;
  top: 12px;
  right: 88px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  z-index: 5;
  transition: all var(--transition-fast);
  cursor: pointer;
  opacity: 0;
}

.tool-card:hover .share-card-btn {
  opacity: 1;
}

.share-card-btn:hover {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.share-card-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

[data-theme="light"] .share-card-btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

.calculator-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

/* Upvote Button styles */
.upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.upvote-btn:hover {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.upvote-btn.active {
  color: white !important;
  background: var(--accent-purple) !important;
  border-color: var(--accent-purple) !important;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3) !important;
}

/* Range Sliders */
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  transition: transform 0.1s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ---------- Visual Category Cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
  width: 100%;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent-color, var(--accent-purple)) 0%, transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.category-card-icon {
  font-size: 1.35rem;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.category-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.category-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.category-card:hover,
.category-card.active {
  background: var(--bg-card-hover);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(139, 92, 246, 0.04);
}

.category-card:hover::before,
.category-card.active::before {
  opacity: 1;
}

.category-card:hover .category-card-icon {
  transform: scale(1.15) rotate(-5deg);
}

.category-card.active {
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.12), 0 0 15px rgba(139, 92, 246, 0.05);
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

  .category-card {
    padding: 10px;
    gap: 8px;
  }

  .category-card-icon {
    font-size: 1.15rem;
  }

  .category-card-name {
    font-size: 0.76rem;
  }

  .category-card-count {
    font-size: 0.62rem;
  }
}

/* ---------- Command Palette (Ctrl + K) ---------- */
.command-modal-content {
  max-width: 540px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: var(--radius-lg) !important;
  background: rgba(18, 20, 35, 0.96) !important;
  backdrop-filter: blur(25px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
}

[data-theme="light"] .command-modal-content {
  background: rgba(255, 255, 255, 0.96) !important;
}

.command-input-wrapper {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  gap: 10px;
}

.command-search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  width: 100%;
}

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

.command-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.command-item-icon {
  font-size: 1.15rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border-radius: 6px;
  flex-shrink: 0;
}

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

.command-item-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.command-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-item-shortcut {
  font-size: 0.65rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  display: none;
  font-weight: 600;
}

.command-item.selected {
  background: rgba(139, 92, 246, 0.12);
}

.command-item.selected .command-item-icon {
  background: var(--accent-purple);
  color: white;
}

.command-item.selected .command-item-shortcut {
  display: block;
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.25);
}

.command-no-results {
  padding: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Adjust overlay blur for commands */
#command-modal.active {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* ---------- Upvote Click Particles ---------- */
.upvote-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

/* ---------- New Launches Page Layout (2 Columns like Product Hunt) ---------- */
.launches-page-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.launches-main {
  min-width: 0;
}

.launches-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.sidebar-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.sidebar-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Daily Stats Card */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-row:first-of-type {
  padding-top: 4px;
}

.stat-row strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Launch Rules Card */
.rules-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.rules-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rule-svg-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.rule-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.rule-text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 992px) {
  .launches-page-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .launches-sidebar {
    position: static;
  }
}

.launch-link-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.launch-title-link:hover+.launch-link-icon,
.launch-row:hover .launch-link-icon {
  color: var(--launch-accent, var(--accent-purple));
  transform: translate(2px, -2px);
}


.launches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.launches-header .section-title {
  font-size: 1.8rem;
  margin-top: 4px;
}

.launch-trigger-btn {
  margin-top: 0 !important;
  background: var(--gradient-brand);
  border: none;
  box-shadow: var(--shadow-glow);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.launch-trigger-btn svg {
  width: 16px;
  height: 16px;
}

.launch-trigger-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Minimalist Launches List Feed */
.launches-list-minimal {
  display: flex;
  flex-direction: column;
}

/* Minimal Launch Row (No heavy cards) */
.launch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
  border-radius: var(--radius-md);
}

.launch-row:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.launch-row-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.launch-rank-text {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.75;
}

.launch-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.launch-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.launch-logo-box-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.launch-row:hover .launch-logo-box-fallback {
  border-color: var(--launch-accent, var(--accent-purple));
  color: var(--launch-accent, var(--accent-purple));
  background: rgba(255, 255, 255, 0.04);
}

.launch-details {
  flex: 1;
  min-width: 0;
}

.launch-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.launch-title-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.launch-title-link:hover {
  color: var(--launch-accent, var(--accent-purple));
}

.launch-tagline-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launch-tags-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.launch-tag-minimal {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.launch-tag-minimal:hover {
  color: var(--launch-accent, var(--accent-purple));
}

/* Minimal Right Metrics */
.launch-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Sleek Capsule Button for Upvoting */
.launch-upvote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  width: 52px;
  height: 52px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.launch-upvote-btn:hover {
  border-color: var(--launch-accent, var(--accent-purple));
  color: var(--launch-accent, var(--accent-purple));
  background: rgba(139, 92, 246, 0.06);
}

.launch-upvote-btn.upvoted {
  background: var(--launch-accent, var(--accent-purple));
  border-color: var(--launch-accent, var(--accent-purple));
  color: white !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.launch-upvote-btn .upvote-arrow-svg {
  transition: transform var(--transition-fast);
}

.launch-upvote-btn:hover .upvote-arrow-svg {
  transform: translateY(-2px);
}

.launch-upvote-btn .count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
}

.launch-comment-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  width: 52px;
  height: 52px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.launch-comment-count:hover {
  color: var(--text-secondary);
}

.comment-icon-svg {
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.launch-comment-count:hover .comment-icon-svg {
  color: var(--text-secondary);
  transform: scale(1.05);
}

/* Modal specific styles */
.launch-modal-content {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
}

/* ---------- Collab Profile Circle Overlay Styles for Sidebar ---------- */
.collab-avatars {
  display: flex;
  align-items: center;
  position: relative;
  width: 70px;
  height: 44px;
  flex-shrink: 0;
}

.collab-avatar-maker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.2rem;
  z-index: 2;
  position: absolute;
  left: 0;
  top: 3px;
  box-shadow: var(--shadow-sm);
}

.collab-avatar-maker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collab-avatar-product {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 2px solid var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  position: absolute;
  left: 24px;
  top: 11px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.collab-avatar-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collab-avatar-product-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--collab-accent, var(--accent-purple)) 0%, #111122 100%);
}

.collab-info {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
}

.collab-product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collab-maker-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collab-maker-name span {
  color: var(--text-secondary);
  font-weight: 500;
}

.collab-votes-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ==========================================================================
   DESKTOP HORIZONTAL CARD VIEW (Discovery & Featured)
   ========================================================================== */
.compare-checkbox {
  display: none !important;
}

/* Comment button and Profile button styles on mobile/tablet */
.card-actions-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.card-actions-wrapper .upvote-btn {
  flex: 1.2;
  margin-top: 0;
}

.card-actions-wrapper .comment-btn,
.card-actions-wrapper .profile-btn-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
}

.card-actions-wrapper .comment-btn:hover,
.card-actions-wrapper .profile-btn-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.card-actions-wrapper .comment-btn svg,
.card-actions-wrapper .profile-btn-card svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

@media (min-width: 1025px) {

  /* Set grids to single column */
  .tools-grid,
  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Clean Tool Card Vertical Layout Fix */
  .tools-grid .tool-card,
  .featured-grid .tool-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    padding: 20px !important;
    min-height: auto !important;
    position: relative !important;
    gap: 12px !important;
    height: auto !important;
  }

  .tools-grid .tool-card-header,
  .featured-grid .tool-card-header {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .tools-grid .tool-description,
  .featured-grid .tool-description {
    order: 2 !important;
    max-width: 100% !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    margin: 8px 0 !important;
  }

  .tools-grid .tool-tags,
  .featured-grid .tool-tags {
    order: 3 !important;
    max-width: 100% !important;
    margin-bottom: 8px !important;
  }

  .tools-grid .tool-card-footer,
  .featured-grid .tool-card-footer {
    order: 4 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 4px !important;
  }

  /* Actions wrapper: normal flow at bottom of card */
  .tools-grid .card-actions-wrapper,
  .featured-grid .card-actions-wrapper {
    order: 5 !important;
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--border-color) !important;
    width: 100% !important;
    z-index: 1 !important;
  }

  .tools-grid .card-actions-wrapper .upvote-btn,
  .featured-grid .card-actions-wrapper .upvote-btn,
  .tools-grid .card-actions-wrapper .comment-btn,
  .featured-grid .card-actions-wrapper .comment-btn,
  .tools-grid .card-actions-wrapper .profile-btn-card,
  .featured-grid .card-actions-wrapper .profile-btn-card {
    flex: 1 !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    height: 34px !important;
    font-size: 0.78rem !important;
  }

  .tools-grid .card-actions-wrapper .comment-btn:hover,
  .featured-grid .card-actions-wrapper .comment-btn:hover,
  .tools-grid .card-actions-wrapper .profile-btn-card:hover,
  .featured-grid .card-actions-wrapper .profile-btn-card:hover {
    border-color: var(--accent-purple) !important;
    color: var(--accent-purple) !important;
    background: rgba(139, 92, 246, 0.1) !important;
  }

  .tools-grid .card-actions-wrapper .comment-btn svg,
  .featured-grid .card-actions-wrapper .comment-btn svg,
  .tools-grid .card-actions-wrapper .profile-btn-card svg,
  .featured-grid .card-actions-wrapper .profile-btn-card svg {
    width: 13px !important;
    height: 13px !important;
    stroke: currentColor !important;
    fill: none !important;
  }
}

/* ---------- Notification Bell & Dropdown ---------- */
.notification-container {
  display: inline-block;
}

.notification-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

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

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  border: 2px solid var(--bg-primary);
  line-height: 1;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast) ease-out;
  text-align: left;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-header h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-primary);
}

.notification-clear-btn {
  font-size: 0.72rem;
  color: var(--accent-purple);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.notification-clear-btn:hover {
  text-decoration: underline;
}

.notification-list {
  max-height: 280px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: rgba(139, 92, 246, 0.04);
}

.notification-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notification-text strong {
  color: var(--text-primary);
}

.notification-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ---------- Discussion Popup (NEW) ---------- */
.discuss-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.discuss-overlay.open {
  opacity: 1;
  visibility: visible;
}

.discuss-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 95%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.discuss-overlay.open .discuss-panel {
  transform: translateY(0) scale(1);
}

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

.dp-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dp-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-logo-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 12px;
}

.dp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.dp-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.dp-close:hover {
  background: var(--border-hover);
  color: var(--text-primary);
}

.dp-stats {
  display: flex;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
}

.dp-stat {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.dp-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 120px;
  max-height: 52vh;
}

.dp-msg {
  display: flex;
  gap: 10px;
}

.dp-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dp-msg-body {
  flex: 1;
  min-width: 0;
}

.dp-msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.dp-msg-user {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dp-msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.dp-msg-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.dp-heart-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  transition: all 0.2s;
}

.dp-heart-btn:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

.dp-heart-btn.hearted {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
  background: rgba(236, 72, 153, 0.08);
}

.dp-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 30px 0;
}

.dp-compose {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.dp-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.dp-input:focus {
  border-color: var(--accent-purple);
}

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

.dp-send {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-rose));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.dp-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.launch-discuss-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.launch-discuss-btn:hover {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.15);
}

.launch-discuss-btn svg {
  stroke: currentColor;
}

/* ---------- Sub-header Product Filter Bar ---------- */
.subheader-filter-bar {
  position: relative;
  height: 38px;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  z-index: 999;
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

[data-theme="light"] .subheader-filter-bar {
  background: rgba(255, 255, 255, 0.9);
}

.subheader-filter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.subheader-filter-inner::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.sub-filter-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.sub-filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

.sub-filter-btn.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
  font-weight: 600;
}

/* Adjust header height if subheader is present */
html.has-subheader-filter {
  --header-height: 102px;
}
html.has-subheader-filter .site-header {
  height: 102px;
}

/* ============================================
   MOST HIGHLIGHTED CAROUSEL & MOBILE RESPONSIVENESS FIXES
   ============================================ */
.new-carousel, #new-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .section {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  .new-carousel, #new-carousel, .tools-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tool-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow: hidden !important;
  }

  .tool-card-header {
    gap: 10px !important;
  }

  .tool-name {
    font-size: 1rem !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .tool-tagline {
    font-size: 0.8rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .tool-description {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }

  .card-actions-wrapper {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .upvote-btn, .comment-btn, .profile-btn-card {
    flex: 1 !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    padding: 6px 8px !important;
  }
}

/* ============================================
   PROFILE MODAL & SETUP STYLING
   ============================================ */
.profile-modal {
  position: relative;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-xl) !important;
  padding: 32px !important;
  max-width: 480px !important;
  width: 90% !important;
  margin: auto !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
  z-index: 2010 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-setup {
  text-align: center;
}

.profile-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.profile-emoji-btn {
  font-size: 1.5rem;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.profile-emoji-btn:hover, .profile-emoji-btn.selected {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.15);
  transform: scale(1.1);
}

.profile-name-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.profile-name-input:focus {
  border-color: var(--accent-purple);
}

.profile-save-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
}

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

.profile-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.profile-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ============================================
   MOST HIGHLIGHTED (COMPACT CARDS) & EXPLORE SECTION (LAMBA CARDS FEED)
   ============================================ */

/* 1. Container padding */
.section, #new-section, #directory {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

/* 2. Top Highlight Carousel (Compact Grid Cards) */
.new-carousel, #new-carousel {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  margin-top: 16px !important;
  margin-bottom: 28px !important;
}

.new-carousel .tool-card, #new-carousel .tool-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 18px !important;
  height: auto !important;
  min-height: 240px !important;
  box-sizing: border-box !important;
}

/* 3. Main Explore Directory (Lamba Horizontal List Cards for Scrolling) */
@media (min-width: 1025px) {
  .hero-slider-section {
    padding-left: 48px !important;
    padding-right: 48px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .new-carousel, #new-carousel {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }

  .tools-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }
}

/* 4. Mobile View Responsiveness */
@media (max-width: 768px) {
  .section, #new-section, #directory {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .new-carousel, #new-carousel, .tools-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tools-grid .tool-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
  }
}

/* ============================================
   EDGE-TO-EDGE FULL WIDTH HEADER LAYOUT
   ============================================ */
.site-header {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

.header-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 32px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.brand-link {
  margin-left: 0 !important;
  flex-shrink: 0 !important;
}

.nav-links {
  margin-left: 16px !important;
  flex-shrink: 0 !important;
}

.header-search {
  margin-left: auto !important;
  max-width: 400px !important;
  flex: 1 !important;
}

/* ============================================
   ZERO BLUE RIGHT-EDGE LINE & SCROLLBAR FIX
   ============================================ */
::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

html, body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  border-right: none !important;
  border-left: none !important;
  outline: none !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*, *::before, *::after {
  outline: none !important;
}

/* ============================================
   LIGHT THEME COMPLETE PURE LIGHT MODE OVERRIDES
   ============================================ */
[data-theme="light"] {
  --bg-primary: #f8f9fc !important;
  --bg-secondary: #ffffff !important;
  --bg-surface: #ffffff !important;
  --bg-card: #ffffff !important;
  --bg-card-hover: #f1f5f9 !important;
  --bg-input: #f1f5f9 !important;
  --bg-glass: rgba(255, 255, 255, 0.9) !important;
  --text-primary: #0f172a !important;
  --text-secondary: #334155 !important;
  --text-muted: #64748b !important;
  --border-color: #e2e8f0 !important;
  --border-hover: #cbd5e1 !important;
}

[data-theme="light"] body,
[data-theme="light"] main,
[data-theme="light"] .section,
[data-theme="light"] #new-section,
[data-theme="light"] #directory,
[data-theme="light"] .site-header,
[data-theme="light"] .subheader-filter-bar,
[data-theme="light"] #discovery-view,
[data-theme="light"] #home-view {
  background-color: #f8f9fc !important;
  color: #0f172a !important;
}

[data-theme="light"] .tool-card,
[data-theme="light"] #new-carousel .tool-card,
[data-theme="light"] .tools-grid .tool-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .tool-name,
[data-theme="light"] .section-title,
[data-theme="light"] .slide-title,
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] h4 {
  color: #0f172a !important;
}

[data-theme="light"] .tool-tagline,
[data-theme="light"] .tool-description,
[data-theme="light"] .section-desc,
[data-theme="light"] .slide-desc,
[data-theme="light"] p {
  color: #334155 !important;
}

[data-theme="light"] .card-actions-wrapper .comment-btn,
[data-theme="light"] .card-actions-wrapper .profile-btn-card {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="dark"] body {
  background-color: #07080d !important;
  color: #f0f0f5 !important;
}

/* ===== FEED POST SYSTEM (ENLARGED ELEMENTS) ===== */
.feed-post {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
  width: 100% !important;
}

.feed-post h4 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

.feed-post p {
  font-size: 1.02rem !important;
  line-height: 1.6 !important;
}

.feed-post button {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
}

/* Mobile Responsive Polish */
@media (max-width: 900px) {
  .feed-layout {
    grid-template-columns: 1fr !important;
  }
  .feed-main {
    width: 100% !important;
  }
  .feed-post img {
    height: 300px !important;
  }
  .subheader-filter-inner {
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 6px !important;
    justify-content: flex-start !important;
  }
}