@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #6C3CE1;
  --primary-dark: #5228B8;
  --primary-light: #8B5CF6;
  --secondary: #0EA5E9;
  --secondary-dark: #0284C7;
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --dark: #0F172A;
  --dark-800: #1E293B;
  --dark-700: #334155;
  --dark-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --gradient-primary: linear-gradient(135deg, #6C3CE1 0%, #0EA5E9 100%);
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #6C3CE1 100%);
  --gradient-card: linear-gradient(135deg, rgba(108, 60, 225, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1280px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.938rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(108, 60, 225, 0.1);
  color: var(--primary);
}

.badge-secondary {
  background: rgba(14, 165, 233, 0.1);
  color: var(--secondary);
}

.badge-accent {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

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

.section-header .badge {
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
}

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

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

.main-nav a {
  padding: 8px 16px;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--dark-600);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(108, 60, 225, 0.06);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--dark-600);
  border-radius: var(--radius-sm);
}

.nav-dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

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

.header-search {
  position: relative;
}

.header-search input {
  width: 200px;
  padding: 8px 16px 8px 36px;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  transition: var(--transition);
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
  width: 260px;
  background: var(--white);
}

.header-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-400);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--gradient-hero);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 60, 225, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}

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

.hero p {
  font-size: 1.25rem;
  color: var(--gray-300);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.hero-stat .label {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ===== FEATURED TOOLS ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

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

.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.tool-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: var(--radius-lg);
}

.tool-card .read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.tool-card:hover .read-more {
  color: var(--primary-dark);
}

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

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-icon-purple { background: rgba(108, 60, 225, 0.1); color: var(--primary); }
.tool-icon-blue { background: rgba(14, 165, 233, 0.1); color: var(--secondary); }
.tool-icon-green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.tool-icon-orange { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.tool-icon-red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

.tool-card-header-text h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.tool-card-header-text h3 a {
  color: var(--dark);
}

.tool-card-header-text h3 a:hover {
  color: var(--primary);
}

.tool-card-header-text .tool-category {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.tool-card p {
  color: var(--gray-500);
  font-size: 0.938rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tool-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.tool-pricing {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--success);
}

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

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

.category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.category-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--gradient-card);
}

.category-info h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.category-info span {
  font-size: 0.813rem;
  color: var(--gray-500);
}

/* ===== NEWS SECTION ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.news-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-image {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 24px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-card-meta time {
  font-size: 0.813rem;
  color: var(--gray-500);
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-card h3 a {
  color: var(--dark);
}

.news-card h3 a:hover {
  color: var(--primary);
}

.news-card p {
  color: var(--gray-500);
  font-size: 0.938rem;
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
}

.read-more:hover {
  gap: 10px;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: var(--gradient-hero);
  padding: 80px 0;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.newsletter-content p {
  color: var(--gray-300);
  margin-bottom: 32px;
  font-size: 1.063rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.938rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: var(--gray-400);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.938rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  padding: 64px 0 32px;
  color: var(--gray-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.938rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--dark-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.813rem;
}

.footer-bottom a {
  color: var(--gray-400);
  margin-left: 24px;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ===== PAGE HEADER (for sub pages) ===== */
.page-header {
  background: var(--gradient-hero);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--gray-300);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--gray-400);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: var(--gray-500);
}

.breadcrumb .current {
  color: var(--gray-300);
}

/* ===== FILTERS & SEARCH ===== */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.filter-search {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.filter-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.938rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.filter-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
}

.filter-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

.filter-select {
  padding: 12px 36px 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.results-count {
  font-size: 0.875rem;
  color: var(--gray-500);
  white-space: nowrap;
}

/* ===== TOOL LIST (Beste AI Tools pages) ===== */
.tool-list-item {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  transition: var(--transition);
}

.tool-list-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.tool-list-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  width: 48px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 4px;
}

.tool-list-content {
  flex: 1;
}

.tool-list-content h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.tool-list-content h3 a {
  color: var(--dark);
}

.tool-list-content h3 a:hover {
  color: var(--primary);
}

.tool-list-content > p {
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.7;
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tool-features .feature-tag {
  padding: 4px 12px;
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 50px;
  font-size: 0.813rem;
  font-weight: 500;
}

.tool-list-footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tool-list-footer .price {
  font-weight: 700;
  color: var(--dark);
}

.tool-list-footer .rating {
  color: var(--accent);
  font-weight: 600;
}

/* ===== TOOL DETAIL PAGE ===== */
.tool-detail {
  padding: 48px 0;
}

.tool-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.tool-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.tool-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.tool-detail-info .tool-tagline {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.tool-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.tool-detail-main h2 {
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.tool-detail-main p {
  color: var(--dark-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tool-detail-main ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.tool-detail-main li {
  color: var(--dark-600);
  margin-bottom: 8px;
  line-height: 1.6;
}

.tool-detail-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-card .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
}

.sidebar-card .info-row .label {
  color: var(--gray-500);
}

.sidebar-card .info-row .value {
  font-weight: 600;
  color: var(--dark);
}

/* ===== NEWS ARTICLE PAGE ===== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.article-meta time,
.article-meta span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.article-body h2 {
  font-size: 1.75rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 1.375rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  color: var(--dark-600);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.063rem;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  color: var(--dark-600);
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  background: var(--gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.063rem;
  color: var(--dark-600);
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .tool-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
}

.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 48px;
}

.toc h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.toc ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toc ul li a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.toc ul li a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table thead {
  background: var(--dark);
  color: var(--white);
}

.comparison-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.comparison-table tbody tr:hover {
  background: rgba(108, 60, 225, 0.04);
}

.comparison-table .tool-name-cell {
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-table .tool-name-cell img.table-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar-top3-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}

.selector-result-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}

.selector-result-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.comparison-table .best-for-cell {
  color: var(--dark-600);
}

.comparison-table .price-cell {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.comparison-table .trial-cell {
  color: var(--success);
  font-size: 0.813rem;
}

.tool-review {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 36px;
  transition: var(--transition);
}

.tool-review:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.tool-review-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.tool-review-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  min-width: 48px;
}

.tool-review-title h3 {
  font-size: 1.375rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.tool-review-title h3 a {
  color: inherit;
  text-decoration: none;
}

.tool-review-title h3 a:hover {
  color: var(--primary);
}

.tool-review-subtitle {
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
}

.tool-review-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tool-review-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--dark-600);
}

.tool-review-meta-item strong {
  color: var(--dark);
}

.tool-review-body p {
  color: var(--dark-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tool-review-body h4 {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 24px 0 12px;
}

.tool-review-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 24px;
}

.tool-review-features li {
  list-style: none;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--dark-600);
  line-height: 1.6;
}

.tool-review-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.pros-list, .cons-list {
  padding: 20px 24px;
  border-radius: var(--radius-md);
}

.pros-list {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cons-list {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pros-list h5, .cons-list h5 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pros-list h5 {
  color: var(--success);
}

.cons-list h5 {
  color: var(--danger);
}

.pros-list ul, .cons-list ul {
  list-style: none;
}

.pros-list ul li, .cons-list ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.875rem;
  color: var(--dark-600);
  line-height: 1.6;
}

.pros-list ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--success);
}

.cons-list ul li::before {
  content: "−";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--danger);
}

.pricing-overview {
  margin: 48px 0;
}

.pricing-overview h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--dark);
}

.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pricing-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.pricing-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.pricing-table tbody tr:hover {
  background: rgba(108, 60, 225, 0.04);
}

.pricing-table .highlight-row {
  background: rgba(108, 60, 225, 0.06) !important;
  font-weight: 600;
}

.selection-criteria {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 48px 0;
}

.selection-criteria h2 {
  font-size: 1.375rem;
  margin-bottom: 20px;
}

.selection-criteria h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 20px 0 8px;
}

.selection-criteria p {
  color: var(--dark-600);
  line-height: 1.7;
  margin-bottom: 12px;
}

.faq-section {
  margin: 48px 0;
}

.faq-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  font-family: inherit;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--dark-600);
  line-height: 1.7;
  font-size: 0.9rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.content-block {
  margin: 48px 0;
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.content-block h3 {
  font-size: 1.125rem;
  margin: 24px 0 10px;
  color: var(--dark);
}

.content-block p {
  color: var(--dark-600);
  line-height: 1.8;
  margin-bottom: 14px;
}

.content-block ul {
  list-style: none;
  margin: 12px 0 16px;
}

.content-block ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--dark-600);
  line-height: 1.7;
  font-size: 0.9rem;
}

.content-block ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.screenshot-placeholder {
  background: var(--gradient-card);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin: 16px 0 24px;
}

.tool-review-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tool-review-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.intro-text {
  font-size: 1.05rem;
  color: var(--dark-600);
  line-height: 1.9;
  margin-bottom: 32px;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 60, 225, 0.08);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .header-search {
    display: none;
  }
  
  .hero {
    padding: 64px 0 48px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.063rem;
  }
  
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .hero-stat .number {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .tool-list-item {
    flex-direction: column;
    padding: 20px;
  }
  
  .tool-list-rank {
    width: auto;
  }
  
  .tool-detail-header {
    flex-direction: column;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .tool-review-features {
    grid-template-columns: 1fr;
  }

  .tool-review {
    padding: 24px;
  }

  .tool-review-header {
    flex-direction: column;
    gap: 12px;
  }

  .tool-review-cta {
    flex-direction: column;
  }

  .tool-review-cta .btn {
    text-align: center;
    justify-content: center;
  }

  .tool-review-meta {
    flex-direction: column;
    gap: 8px;
  }

  .selection-criteria {
    padding: 24px;
  }
}

/* ===== TOOL LOGO ICONS ===== */
div.tool-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  letter-spacing: -0.5px;
}

img.tool-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.tool-review-header .tool-logo {
  margin-right: 4px;
}

.tool-detail-header div.tool-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
}

.tool-detail-header img.tool-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: var(--radius-md);
}

/* ===== SVG ICON SIZING ===== */
.tool-icon svg, .category-icon svg, .tool-detail-icon svg {
  width: 100%;
  height: 100%;
}

.news-card-image svg {
  width: 48px;
  height: 48px;
  color: white;
}

h2 svg {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  margin-right: 8px;
}

/* ===== AUTHOR / REVIEWER CARDS ===== */
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.author-card-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.author-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.author-card-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.author-card-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.author-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

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

.article-author-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.article-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.article-author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.article-author-role {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

.news-card-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .author-card-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  .author-card-info {
    align-items: center;
  }
}

.beste-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

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

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

.sidebar-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-block h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--dark-700);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-links li a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.sidebar-links li a.active {
  background: linear-gradient(135deg, rgba(108,60,225,0.08), rgba(14,165,233,0.08));
  color: var(--primary);
  font-weight: 600;
}

.sidebar-links li a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

.sidebar-top3 {
  counter-reset: top3;
}

.sidebar-top3-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-top3-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-top3-item:first-child {
  padding-top: 0;
}

.sidebar-top3-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-top3-rank.rank-1 {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #fff;
}

.sidebar-top3-rank.rank-2 {
  background: linear-gradient(135deg, #94A3B8, #CBD5E1);
  color: #fff;
}

.sidebar-top3-rank.rank-3 {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #fff;
}

.sidebar-top3-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-top3-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark);
}

.sidebar-top3-score {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.sidebar-cta {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
}

.sidebar-cta h3 {
  color: #fff;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
  line-height: 1.5;
}

.sidebar-cta-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-cta-form input[type="email"] {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.sidebar-cta-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.6);
}

.sidebar-cta-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}

.sidebar-cta-form button {
  padding: 10px 16px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.sidebar-cta-form button:hover {
  background: var(--gray-100);
}

@media (max-width: 1024px) {
  .beste-layout {
    grid-template-columns: 1fr;
  }
  .beste-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .beste-sidebar .sidebar-block {
    flex: 1 1 280px;
  }
}

@media (max-width: 640px) {
  .beste-sidebar {
    flex-direction: column;
  }
  .beste-sidebar .sidebar-block {
    flex: 1 1 100%;
  }
}

.selector-tool {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0 40px;
  position: relative;
  overflow: hidden;
}

.selector-tool::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.selector-tool-header {
  text-align: center;
  margin-bottom: 28px;
}

.selector-tool-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.selector-tool-header p {
  color: var(--gray-500);
  font-size: 0.92rem;
}

.selector-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.selector-progress-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.selector-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.selector-progress-dot.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(108, 60, 225, 0.2);
}

.selector-progress-dot.completed {
  background: var(--success);
  color: #fff;
}

.selector-progress-line {
  width: 40px;
  height: 3px;
  background: var(--gray-200);
  transition: var(--transition);
}

.selector-progress-line.completed {
  background: var(--success);
}

.selector-step {
  display: none;
}

.selector-step.active {
  display: block;
  animation: selectorFadeIn 0.3s ease;
}

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

.selector-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 6px;
  text-align: center;
}

.selector-step-subtitle {
  color: var(--gray-500);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 20px;
}

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

.selector-option {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark-700);
  font-family: 'Inter', sans-serif;
}

.selector-option:hover {
  border-color: var(--primary-light);
  background: rgba(108, 60, 225, 0.04);
}

.selector-option.selected {
  border-color: var(--primary);
  background: rgba(108, 60, 225, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.selector-option-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.selector-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

.selector-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Inter', sans-serif;
}

.selector-btn-back {
  background: var(--gray-100);
  color: var(--dark-700);
}

.selector-btn-back:hover {
  background: var(--gray-200);
}

.selector-btn-next {
  background: var(--primary);
  color: #fff;
  margin-left: auto;
}

.selector-btn-next:hover {
  background: var(--primary-dark);
}

.selector-btn-next:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}

.selector-results {
  display: none;
  animation: selectorFadeIn 0.4s ease;
}

.selector-results.active {
  display: block;
}

.selector-results-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 6px;
}

.selector-results-subtitle {
  color: var(--gray-500);
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: 24px;
}

.selector-result-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.selector-result-card:first-child {
  border-color: var(--primary-light);
  background: linear-gradient(135deg, rgba(108,60,225,0.04), rgba(14,165,233,0.04));
}

.selector-result-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.selector-result-rank.rank-1 {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #fff;
}

.selector-result-rank.rank-2 {
  background: linear-gradient(135deg, #94A3B8, #CBD5E1);
  color: #fff;
}

.selector-result-rank.rank-3 {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #fff;
}

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

.selector-result-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.selector-result-match {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 6px;
}

.selector-result-reason {
  font-size: 0.85rem;
  color: var(--dark-600);
  line-height: 1.5;
}

.selector-result-price {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 6px;
  font-weight: 500;
}

.selector-result-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.selector-result-link:hover {
  text-decoration: underline;
}

.selector-restart {
  text-align: center;
  margin-top: 20px;
}

.selector-restart button {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.selector-restart button:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 640px) {
  .selector-tool {
    padding: 20px 16px;
  }
  .selector-options {
    grid-template-columns: 1fr 1fr;
  }
  .selector-progress-line {
    width: 24px;
  }
  .selector-result-card {
    flex-direction: column;
    align-items: stretch;
  }
  .selector-result-rank {
    align-self: flex-start;
  }
}
