/* =============================================
   PLIX.TOOLS — Main Stylesheet
   ============================================= */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  --bg: #f8fafc;
  --bg-dark: #f1f5f9;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-primary: 0 8px 24px rgba(99,102,241,0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
  --nav-height: 64px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  white-space: nowrap;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-primary);
  transition: var(--transition) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(99,102,241,0.35) !important;
  background: var(--primary-dark) !important;
  color: white !important;
}
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--text);
  font-size: 1.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--gradient-hero);
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 span {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto 40px;
  background: white;
  border-radius: var(--radius-full);
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.hero-search button:hover { opacity: 0.9; transform: scale(0.98); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-stat strong {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================
   AD BANNER PLACEHOLDER
   ============================================ */
.ad-banner {
  background: var(--bg-dark);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ad-banner-top {
  height: 90px;
  max-width: 728px;
  margin: 24px auto;
}
.ad-banner-side {
  height: 250px;
  width: 300px;
}
.ad-banner-inline {
  height: 100px;
  margin: 24px 0;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SECTION
   ============================================ */
.section {
  padding: 64px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; margin: 0 auto; font-size: 1.05rem; }
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.category-btn:hover, .category-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.category-btn span { font-size: 1.1rem; }

/* ============================================
   TOOLS GRID
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.tool-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-hot { background: #fef3c7; color: #d97706; }
.badge-new { background: #d1fae5; color: #059669; }
.badge-popular { background: var(--primary-light); color: var(--primary); }
.tool-card h3 { font-size: 1rem; color: var(--text); margin: 0; }
.tool-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; flex: 1; }
.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  margin-top: auto;
}
.tool-card:hover .tool-card-link { gap: 10px; }

/* Category colors */
.icon-blue { background: #dbeafe; }
.icon-purple { background: #ede9fe; }
.icon-green { background: #d1fae5; }
.icon-orange { background: #ffedd5; }
.icon-pink { background: #fce7f3; }
.icon-cyan { background: #cffafe; }
.icon-yellow { background: #fef9c3; }
.icon-red { background: #fee2e2; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  background: var(--gradient);
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: white; }

/* ============================================
   TOOL PAGE LAYOUT
   ============================================ */
.tool-page {
  min-height: calc(100vh - var(--nav-height));
}
.tool-page-header {
  background: var(--gradient-hero);
  padding: 48px 24px;
  text-align: center;
  color: white;
}
.tool-page-header h1 { color: white; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.tool-page-header p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { font-size: 0.7rem; }

.tool-page-body {
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.tool-main { display: flex; flex-direction: column; gap: 24px; }
.tool-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* Tool Box */
.tool-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.tool-box h2 { font-size: 1.1rem; margin-bottom: 24px; color: var(--text); }

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.drop-zone-icon { font-size: 3rem; margin-bottom: 12px; }
.drop-zone h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.drop-zone p { font-size: 0.875rem; margin-bottom: 16px; }
.drop-zone input[type="file"] { display: none; }
.drop-zone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.drop-zone-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Result Box */
.result-box {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.result-box.show { display: block; }
.result-preview img {
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.result-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.result-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.result-stat .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.result-stat .value { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.result-stat .value.success { color: var(--success); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99,102,241,0.35); }
.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); }
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.btn-success:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.range-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  margin: 8px 0;
}

/* Progress Bar */
.progress {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0;
}
.progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Info Cards in Sidebar */
.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.info-card h3 { font-size: 0.95rem; margin-bottom: 12px; }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.info-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.info-card li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* Related Tools */
.related-tools { display: flex; flex-direction: column; gap: 8px; }
.related-tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.related-tool-item:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.related-tool-item span:first-child { font-size: 1.1rem; }

/* How To Steps */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-content h4 { font-size: 0.95rem; margin-bottom: 4px; }
.step-content p { font-size: 0.85rem; }

/* Calculator specific */
.calc-result {
  background: linear-gradient(135deg, var(--primary-light), #f0fdf4);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: none;
}
.calc-result.show { display: block; }
.calc-result .result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.calc-result .result-label { font-size: 0.9rem; color: var(--text-muted); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Color Picker specific */
.color-swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.color-swatch {
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.color-swatch:hover { transform: scale(1.1); border-color: white; box-shadow: var(--shadow); }
.color-display {
  height: 120px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: background-color 0.2s;
  border: 1px solid var(--border);
}
.color-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-value {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.color-value label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.color-value input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* No results */
.no-results {
  text-align: center;
  padding: 60px 24px;
  display: none;
}
.no-results.show { display: block; }
.no-results .icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { color: var(--text); margin-bottom: 8px; }

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open a { padding: 12px 16px; }
  .nav-menu-btn { display: block; }
  .hero { padding: 48px 16px 64px; }
  .hero-stats { gap: 16px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .tool-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .ad-banner-top { height: 60px; }
  .section { padding: 40px 0; }
  .tool-box { padding: 20px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .color-swatches { grid-template-columns: repeat(6, 1fr); }
}
