/* ==========================================
   Vidiom AI - Stylesheet (Vanilla CSS)
   ========================================== */

/* Design System & CSS Variables */
:root {
  --bg-primary: #07070a;
  --bg-secondary: #0e0e16;
  --bg-tertiary: #171725;
  --bg-glass: rgba(14, 14, 22, 0.7);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.2);
  --accent-violet: #a855f7;
  --accent-violet-glow: rgba(168, 85, 247, 0.2);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.2);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-green: #34d399;
  --text-red: #f87171;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Glow Effects */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-indigo), transparent 70%);
}

.glow-2 {
  width: 600px;
  height: 600px;
  top: 400px;
  right: -200px;
  background: radial-gradient(circle, var(--accent-violet), transparent 70%);
}

.glow-3 {
  width: 400px;
  height: 400px;
  bottom: 100px;
  left: 20%;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

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

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
.btn-accent:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}
.btn-accent:disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
}
.btn-text:hover {
  color: var(--text-primary);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  background-color: rgba(7, 7, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  padding: 16px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
}

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

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-alt {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-indigo);
  transition: var(--transition-fast);
}

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

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(7,7,10,0.7) 0%, rgba(7,7,10,0.92) 85%, var(--bg-primary) 100%), url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 350px;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, #a855f7 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(15, 15, 22, 0.6);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Directory Section & Control Panel */
.directory-section {
  padding: 40px 0 100px 0;
  position: relative;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box-wrapper input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 50px 16px 52px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.search-box-wrapper input:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

.clear-search-btn {
  position: absolute;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clear-search-btn:hover {
  color: var(--text-primary);
}

.sub-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.license-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-filter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.badge-filter:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.badge-filter.active {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-indigo-glow);
}

/* Categories Navigation */
.categories-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.category-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
  text-align: left;
}

.category-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.category-btn.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(168,85,247,0.08) 100%);
  border-color: var(--accent-indigo);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.cat-icon {
  font-size: 1.25rem;
}

.cat-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.cat-count {
  font-size: 0.75rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.category-btn.active .cat-count {
  background: var(--accent-indigo);
  color: #fff;
}

/* Active Status Bar */
.active-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.active-status-bar button {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  cursor: pointer;
}
.active-status-bar button:hover {
  text-decoration: underline;
}

/* Tools Grid Layout */
.tools-grid-container {
  position: relative;
  min-height: 400px;
}

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

/* Tool Card */
.tool-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-violet));
  opacity: 0;
  transition: var(--transition-fast);
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

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

/* Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  flex-shrink: 0;
}

.card-logo-wrapper svg {
  width: 28px;
  height: 28px;
}

.card-badge-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.tool-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.tool-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.tool-badge.badge-completely-free {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
  color: var(--text-green);
}

.tool-badge.badge-free-credits {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.tool-badge.badge-open-source {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

/* Card Body */
.card-body {
  flex-grow: 1;
}

.tool-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.feature-pill {
  font-size: 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 20px;
  color: var(--text-secondary);
}

/* Card Actions */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.checkbox-compare-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.compare-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color-hover);
  border-radius: 4px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.compare-checkbox:checked {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
}

.compare-checkbox:checked::after {
  content: '✓';
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
}

.btn-card-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-indigo);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-card-action:hover {
  color: var(--accent-violet);
  transform: translateX(3px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 500px;
  margin: 40px auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Modals System (Details & Compare) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 36px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

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

.modal-logo-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color-hover);
  color: var(--text-primary);
  flex-shrink: 0;
}

.modal-logo-wrapper svg {
  width: 38px;
  height: 38px;
}

.modal-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.modal-desc-box {
  margin-bottom: 24px;
}

.modal-desc-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-body);
}

.modal-desc-box p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.modal-col {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.modal-col h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 14px;
}

.modal-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-muted);
}

.text-green li::before {
  color: var(--text-green);
}
.text-red li::before {
  color: var(--text-red);
}

.modal-spec-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 30px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.spec-row:first-child {
  padding-top: 0;
}

.spec-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.modal-footer-section {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* Compare Modal Specifics */
.compare-card {
  max-width: 960px;
}

.compare-subheading {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.compare-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
}

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

.compare-table th, .compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  font-size: 0.92rem;
}

.compare-table th {
  background: var(--bg-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th:first-child, .compare-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 180px;
}

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

.compare-tool-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}
.compare-tool-logo svg {
  width: 20px;
  height: 20px;
}

.compare-bullets {
  list-style: none;
}
.compare-bullets li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.compare-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-indigo);
}

/* Compare Drawer at the Bottom */
.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(14, 14, 22, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--accent-indigo);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  z-index: 150;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  padding: 16px 0;
}

.compare-drawer.active {
  transform: translateY(0);
}

.compare-drawer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.compare-icon-badge {
  font-size: 1.5rem;
}

.compare-info h4 {
  font-size: 1.05rem;
  font-family: var(--font-heading);
}

.compare-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.compare-thumbnails {
  display: flex;
  gap: 12px;
}

.compare-thumb-pill {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.remove-thumb-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}
.remove-thumb-btn:hover {
  color: var(--text-red);
}

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

/* Submit Section & Form */
.submit-section {
  padding: 80px 0 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  position: relative;
}

.submit-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.submit-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.submit-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.submit-header p {
  color: var(--text-secondary);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

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

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

.form-group select {
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-submit {
  padding: 14px 40px;
  font-size: 1rem;
}

/* Success Toast */
.success-toast {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
  animation: fadeIn var(--transition-normal) forwards;
}

.toast-check {
  width: 64px;
  height: 64px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--text-green);
  border: 1.5px solid var(--text-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.success-toast h4 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.success-toast p {
  color: var(--text-secondary);
}

/* Footer Section */
.app-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-brand {
  max-width: 500px;
}

.footer-brand .logo-area {
  margin-bottom: 16px;
}

.footer-desc {
  line-height: 1.6;
}

.footer-rights {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .control-panel {
    padding: 16px;
  }
  
  .categories-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-columns {
    grid-template-columns: 1fr;
  }
  
  .modal-card {
    padding: 24px;
    max-height: 95vh;
  }
  
  .compare-drawer-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .compare-info {
    justify-content: center;
  }
  
  .compare-thumbnails {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .compare-actions {
    justify-content: center;
  }
  
  .submit-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .categories-nav {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .stat-card {
    width: 100%;
  }
}
