/* ═══════════════════════════════════════════════════
   ToolsHub — Ultra Premium Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --white: #FFFFFF;
  --bg: #FAFBFC;
  --surface: #F1F5F9;
  --surface-2: #E8ECF1;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  --pdf: #4F46E5;
  --pdf-light: #EEF2FF;
  --pdf-mid: #C7D2FE;
  --image: #7C3AED;
  --image-light: #F5F3FF;
  --image-mid: #DDD6FE;
  --converter: #0891B2;
  --converter-light: #ECFEFF;
  --converter-mid: #A5F3FC;
  --compressor: #059669;
  --compressor-light: #ECFDF5;
  --compressor-mid: #A7F3D0;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);

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

  --nav-height: 64px;
  --max-width: 1280px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--pdf), var(--image));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { background: var(--surface); color: var(--text-primary); }
.nav-link.active { background: var(--text-primary); color: var(--text-inverse); }
.nav-link svg { width: 16px; height: 16px; }

.nav-search {
  position: relative;
  flex-shrink: 0;
}
.nav-search input {
  width: 220px;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--surface);
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}
.nav-search input:focus {
  border-color: var(--pdf);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  width: 280px;
}
.nav-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.nav-mobile-btn {
  display: none;
  padding: 8px;
  color: var(--text-primary);
}
.nav-mobile-btn svg { width: 24px; height: 24px; }

/* ═══════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   HOMEPAGE — TOOL GRID
   ═══════════════════════════════════════════ */
.home-header {
  text-align: center;
  padding: 40px 0 10px;
}
.home-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.home-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.category-section {
  margin-bottom: 40px;
}
.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
}
.category-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-icon svg { width: 22px; height: 22px; }
.category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.category-count {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  color: var(--text-inverse);
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-accent);
}
.tool-card:hover::before { opacity: 1; }

.tool-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform 0.25s;
}
.tool-card:hover .tool-card-icon { transform: scale(1.08); }
.tool-card-icon svg { width: 28px; height: 28px; }

.tool-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.tool-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   TOOL PAGE — EDITING PANEL
   ═══════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--pdf); }
.breadcrumb svg { width: 14px; height: 14px; }

.tool-header {
  text-align: center;
  padding: 20px 0 30px;
}
.tool-header-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.tool-header-icon svg { width: 36px; height: 36px; }
.tool-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tool-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--white);
  position: relative;
}
.upload-zone.dragover {
  border-color: var(--pdf);
  background: var(--pdf-light);
  transform: scale(1.01);
}
.upload-zone:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}
.upload-zone-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
}
.upload-zone:hover .upload-zone-icon { background: var(--border); }
.upload-zone-icon svg { width: 30px; height: 30px; color: var(--text-muted); }
.upload-zone h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.upload-zone p { color: var(--text-secondary); font-size: 14px; }
.upload-zone .size-limit {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* File List */
.file-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.file-item:hover { border-color: var(--text-muted); }
.file-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-item-icon svg { width: 20px; height: 20px; }
.file-item-info { flex: 1; min-width: 0; }
.file-item-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-item-size { font-size: 12px; color: var(--text-muted); }
.file-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.file-item-remove:hover { background: #FEE2E2; color: var(--danger); }
.file-item-remove svg { width: 16px; height: 16px; }

/* Settings Panel */
.settings-panel {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.settings-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-title svg { width: 18px; height: 18px; color: var(--text-muted); }
.setting-group {
  margin-bottom: 20px;
}
.setting-group:last-child { margin-bottom: 0; }
.setting-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.setting-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}
.setting-input:focus {
  border-color: var(--pdf);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  background: var(--white);
}
.setting-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Slider */
.setting-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  outline: none;
}
.setting-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pdf);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79,70,229,0.3);
}
.slider-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--pdf);
  text-align: right;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.slider-row .setting-slider { flex: 1; }

/* Radio / Toggle buttons */
.setting-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.setting-option {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.setting-option:hover { border-color: var(--text-muted); }
.setting-option.active {
  background: var(--pdf);
  border-color: var(--pdf);
  color: white;
}

/* Row inputs */
.input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.input-row .setting-input { flex: 1; }
.lock-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface);
  transition: var(--transition);
}
.lock-btn.active { background: var(--pdf); color: white; border-color: var(--pdf); }
.lock-btn svg { width: 16px; height: 16px; }

/* Action Button */
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-top: 24px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.action-btn:active { transform: translateY(0); }
.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.action-btn svg { width: 20px; height: 20px; }

/* Progress */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
  display: none;
}
.progress-bar.active { display: block; }
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
  background: linear-gradient(90deg, var(--pdf), var(--image));
}

/* Result Panel */
.result-panel {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--compressor-mid);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: none;
}
.result-panel.show { display: block; animation: slideUp 0.3s ease; }
.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--compressor-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--compressor);
}
.result-icon svg { width: 24px; height: 24px; }
.result-title { font-size: 18px; font-weight: 600; }
.result-subtitle { font-size: 14px; color: var(--text-secondary); }

.result-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.result-stat {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  text-align: center;
}
.result-stat-value { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.result-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--compressor);
  color: white;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.download-btn:hover { background: #047857; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.download-btn svg { width: 18px; height: 18px; }

.reset-btn {
  display: block;
  margin: 12px auto 0;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.reset-btn:hover { background: var(--surface); }

/* ═══════════════════════════════════════════
   TOOL PAGE LAYOUT (TWO-COL)
   ═══════════════════════════════════════════ */
.tool-workspace {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 50px;
}
.tool-main { min-width: 0; }
.tool-sidebar {}

/* ═══════════════════════════════════════════
   RELATED TOOLS
   ═══════════════════════════════════════════ */
.related-section {
  margin: 50px 0;
}
.related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ═══════════════════════════════════════════
   ADS (non-intrusive)
   ═══════════════════════════════════════════ */
.ad-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-sidebar {
  margin-bottom: 20px;
}
.ad-between {
  margin: 30px 0;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--pdf); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   STATIC PAGES
   ═══════════════════════════════════════════ */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.page-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.page-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════ */
.error-page {
  text-align: center;
  padding: 100px 20px;
}
.error-code {
  font-size: 100px;
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
}
.error-page h2 {
  font-size: 24px;
  margin: 12px 0 8px;
}
.error-page p { color: var(--text-secondary); }
.error-page a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--pdf);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in { animation: fadeIn 0.3s ease; }

/* Loader spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tool-workspace { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-search input { width: 160px; }
  .nav-search input:focus { width: 200px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .tool-card { padding: 18px 14px; }
  .tool-card-icon { width: 48px; height: 48px; }
  .tool-card-icon svg { width: 22px; height: 22px; }
  .home-header h1 { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .upload-zone { padding: 36px 20px; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tool-card-desc { display: none; }
  .result-stats { flex-direction: column; }
  .nav-search { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.2s;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  justify-content: flex-start;
}
.mobile-nav .nav-search {
  margin-top: 8px;
}
.mobile-nav .nav-search input { width: 100%; }
