/* PickConverter — Main Stylesheet */
@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 {
  --color-brand: #6366f1;
  --color-brand-dark: #4f46e5;
  --color-accent: #06b6d4;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  transition: all 0.3s ease;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-logo span { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand-acc { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-nav-cta {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-menu a:hover { color: #fff; background: rgba(99, 102, 241, 0.15); }
.mobile-menu.open { display: flex; }

/* ===== MAIN CONTENT WRAPPER ===== */
.page-wrapper { padding-top: 68px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: #fff;
}

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

.hero p.lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ===== SEARCH BAR ===== */
.search-wrap {
  max-width: 580px;
  margin: 0 auto 0.75rem;
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(30, 41, 59, 0.8);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  padding: 1rem 3.5rem 1rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  color: #e2e8f0;
  outline: none;
  transition: all 0.3s ease;
}

.search-input::placeholder { color: #475569; }

.search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(30, 41, 59, 1);
}

.search-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-brand);
  border: none;
  border-radius: 10px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-btn:hover { opacity: 0.9; transform: translateY(-50%) scale(1.05); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  overflow: hidden;
  z-index: 999;
  display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.search-results.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: #e2e8f0;
}

.search-result-item:hover { background: rgba(99, 102, 241, 0.1); }

.search-result-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.stat-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.83rem; color: #64748b; }
.stat-item strong { color: #c7d2fe; font-weight: 700; }

/* ===== CARDS & GRID ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.section-header p { color: #64748b; margin: 0; }

/* Category pills */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  background: transparent;
  color: #64748b;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cat-tab:hover, .cat-tab.active {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

/* Tool cards grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.tool-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

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

.tool-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tool-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.tool-card-desc {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.tool-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #6366f1;
  font-weight: 600;
  margin-top: 0.25rem;
  transition: gap 0.2s ease;
}

.tool-card:hover .tool-card-arrow { gap: 0.5rem; }

.tool-card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-new { background: rgba(16, 185, 129, 0.12); color: #34d399; border-color: rgba(16, 185, 129, 0.2); }
.badge-popular { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }
.badge-ai { background: rgba(168, 85, 247, 0.12); color: #c084fc; border-color: rgba(168, 85, 247, 0.2); }

/* Category cards (homepage) */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cat-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.8);
}

.cat-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.cat-card-title { font-weight: 700; font-size: 0.95rem; color: #e2e8f0; font-family: 'Space Grotesk', sans-serif; }
.cat-card-count { font-size: 0.78rem; color: #64748b; }

/* ===== TOOL PAGE LAYOUT ===== */
.tool-page { padding: 2.5rem 0 4rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: #6366f1; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #334155; }

.tool-header { margin-bottom: 2rem; }

.tool-header-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.tool-icon-lg {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.tool-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.tool-header p { color: #64748b; font-size: 1rem; margin: 0; max-width: 700px; }

/* Tool widget (main interactive area) */
.tool-widget {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.tool-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.tool-widget-title {
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
  font-family: 'Space Grotesk', sans-serif;
}

/* Form elements */
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

textarea, input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="date"], select {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(71, 85, 105, 0.5);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

textarea { resize: vertical; min-height: 120px; }

textarea:focus, input:focus, select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

select option { background: #1e293b; }

.form-group { margin-bottom: 1.25rem; }

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) { .input-row { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4); }

.btn-secondary {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.btn-secondary:hover { background: rgba(99, 102, 241, 0.2); }

.btn-ghost {
  background: transparent;
  color: #64748b;
  border: 1px solid rgba(71, 85, 105, 0.4);
}
.btn-ghost:hover { color: #e2e8f0; border-color: rgba(99, 102, 241, 0.3); }

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}
.btn-success:hover { opacity: 0.9; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; border-radius: 8px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 8px; }

.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Result/output area */
.result-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  color: #a5b4fc;
  word-break: break-all;
  min-height: 80px;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
  position: relative;
}

.result-box.big { min-height: 160px; }
.result-box.xl { min-height: 240px; }

.output-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #e2e8f0;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(16, 185, 129, 0.3); }
.toast.success .toast-icon { color: #34d399; }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }
.toast.error .toast-icon { color: #fca5a5; }

/* Tabs inside tool */
.tool-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.tool-tab {
  padding: 0.45rem 1rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tool-tab.active {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  border: none;
  padding: 0;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Checkbox & Toggle */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.toggle {
  width: 40px;
  height: 22px;
  background: rgba(71, 85, 105, 0.5);
  border-radius: 100px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.toggle.on { background: var(--gradient-brand); }
.toggle.on::after { transform: translateX(18px); }

.toggle-label { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }

/* Color swatch */
.color-swatch {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  cursor: pointer;
  flex-shrink: 0;
}

/* Progress bar */
.progress-bar-wrap {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.progress-bar {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* Info sections below tool */
.info-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.info-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 1rem;
}

.info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
  margin: 1rem 0 0.4rem;
}

.info-card p, .info-card li {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 0.5rem;
}

.info-card ul, .info-card ol {
  padding-left: 1.2rem;
  margin: 0;
}

/* Related tools */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.related-tool-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.related-tool-card:hover {
  color: #e2e8f0;
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(30, 41, 59, 0.8);
}

.related-tool-icon { font-size: 1.1rem; }

/* ===== FOOTER ===== */
footer {
  background: rgba(7, 11, 24, 0.95);
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0.75rem 0 1.25rem;
  max-width: 300px;
}

.footer-col h4 {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col a {
  color: #475569;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: #a5b4fc; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p { color: #334155; font-size: 0.82rem; margin: 0; }
.footer-bottom a { color: #475569; text-decoration: none; }
.footer-bottom a:hover { color: #a5b4fc; }

/* Gradient icon backgrounds */
.bg-indigo { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.05)); }
.bg-cyan { background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(6,182,212,0.05)); }
.bg-emerald { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05)); }
.bg-amber { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05)); }
.bg-rose { background: linear-gradient(135deg, rgba(244,63,94,0.15), rgba(244,63,94,0.05)); }
.bg-violet { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05)); }
.bg-sky { background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(14,165,233,0.05)); }
.bg-lime { background: linear-gradient(135deg, rgba(132,204,22,0.15), rgba(132,204,22,0.05)); }
.bg-orange { background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(249,115,22,0.05)); }
.bg-pink { background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(236,72,153,0.05)); }

.text-indigo { color: #818cf8; }
.text-cyan { color: #22d3ee; }
.text-emerald { color: #34d399; }
.text-amber { color: #fbbf24; }
.text-rose { color: #fb7185; }
.text-violet { color: #a78bfa; }
.text-sky { color: #38bdf8; }
.text-lime { color: #a3e635; }
.text-orange { color: #fb923c; }
.text-pink { color: #f472b6; }

/* ===== UTILITY ===== */
.divider { height: 1px; background: rgba(99, 102, 241, 0.08); margin: 1.5rem 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Highlight code */
.code-preview {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #a5b4fc;
  overflow-x: auto;
  line-height: 1.6;
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(99, 102, 241, 0.03);
}

.dropzone:hover, .dropzone.dragover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

.dropzone-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.dropzone-text { color: #64748b; font-size: 0.9rem; }
.dropzone-text strong { color: #a5b4fc; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th {
  background: rgba(99, 102, 241, 0.08);
  color: #94a3b8;
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
td { padding: 0.65rem 1rem; color: #64748b; border-top: 1px solid rgba(99, 102, 241, 0.06); }
tr:hover td { background: rgba(99, 102, 241, 0.03); color: #94a3b8; }

/* FAQ Accordion */
.faq-item {
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.faq-question {
  width: 100%;
  background: rgba(30, 41, 59, 0.5);
  border: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s;
  gap: 1rem;
}

.faq-question:hover { background: rgba(30, 41, 59, 0.8); }
.faq-icon { transition: transform 0.3s ease; flex-shrink: 0; color: #6366f1; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  background: rgba(15, 23, 42, 0.4);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer-inner {
  padding: 1rem 1.25rem;
  color: #64748b;
  font-size: 0.87rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 500px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .cat-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== MOBILE PADDING FIX ===== */
/* Prevents content from touching screen edges on narrow viewports */
@media (max-width: 640px) {
  .container,
  .tool-page,
  [class*="section"] > .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .tool-widget {
    padding: 1.25rem 1rem;
  }
  .info-card {
    padding: 1.25rem 1rem;
  }
  .tool-header-top {
    flex-direction: column;
    gap: .75rem;
  }
  .input-row {
    flex-direction: column;
    gap: .75rem;
  }
  .related-tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 5.5rem 1rem 3rem;
  }
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cat-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 3.5rem 1rem 3rem; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.4); }
}

.animate-in { animation: fadeInUp 0.5s ease both; }
.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); }
