/* ============================================================
   Quickly.fit v4 — Complete CSS Rewrite
   Design: Dark navy premium, lime accent, Inter font
   Target: 9.5/10 visual quality — Linear/Vercel aesthetic
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  --bg:    #080C18;
  --bg2:   #0C1120;
  --bg3:   #101828;
  --bg4:   #162033;
  --bg5:   #1a2640;
  --lime:  #C8FF00;
  --lime2: #aee000;
  --lime3: rgba(200,255,0,0.10);
  --lime4: rgba(200,255,0,0.05);
  --lime5: rgba(200,255,0,0.03);
  --white: #ffffff;
  --gray1: #e2e8f0;
  --gray2: #94a3b8;
  --gray3: #64748b;
  --gray4: #334155;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.11);
  --border-lime: rgba(200,255,0,0.22);
  --glass:  rgba(255,255,255,0.025);
  --glass2: rgba(255,255,255,0.05);
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-lime: 0 0 40px rgba(200,255,0,0.08);
  --font: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  background: var(--bg);
  color: var(--gray1);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea { font-family: var(--font); }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: rgba(8,12,24,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links li a {
  display: block;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray2);
  border-radius: 8px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}

.nav-links li a:hover { color: var(--white); background: var(--glass2); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--lime3);
  border: 1px solid var(--border-lime);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime) !important;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(200,255,0,0.15) !important;
  box-shadow: 0 0 16px rgba(200,255,0,0.12);
}

.nav-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--gray2);
  font-size: 18px;
  border: 1px solid var(--border);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  flex-shrink: 0;
}

.nav-menu-btn:hover { color: var(--white); background: var(--glass2); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 16px;
  gap: 2px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray2);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.mobile-nav a:hover { color: var(--white); background: var(--glass2); }

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg3);
  border-top: 1px solid var(--border2);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--gray2);
}

#cookie-banner a { color: var(--lime); }

.cookie-btn {
  padding: 7px 20px;
  background: var(--lime);
  color: #000;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s var(--ease);
  flex-shrink: 0;
}

.cookie-btn:hover { background: var(--lime2); }

/* ── Ad Zones — invisible when empty ── */
.ad-zone {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.ad-zone:empty,
.ad-zone ins:not([data-ad-status]),
.ad-zone-leaderboard:empty { display: none; }

/* ── Hero (Homepage) ── */
.hero {
  text-align: center;
  padding: 20px 24px 28px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--lime4);
  border: 1px solid var(--border-lime);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
}

.hero h1 span { color: var(--lime); }

.hero-sub {
  font-size: 15px;
  color: var(--gray2);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-sub strong { color: var(--gray1); }

/* ── Search Bar ── */
.search-wrap { margin-bottom: 16px; }

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  max-width: 520px;
  margin: 0 auto;
}

.search-bar:focus-within {
  border-color: var(--border-lime);
  box-shadow: 0 0 0 3px rgba(200,255,0,0.07);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--white);
}

.search-bar input::placeholder { color: var(--gray3); }

.search-bar button {
  padding: 10px 20px;
  margin: 4px;
  background: var(--lime);
  color: #000;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s var(--ease), transform 0.1s;
}

.search-bar button:hover { background: var(--lime2); }
.search-bar button:active { transform: scale(0.97); }

/* ── Hero Chips ── */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.chip:hover {
  color: var(--white);
  background: var(--glass2);
  border-color: var(--border2);
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px;
  border-right: 1px solid var(--border);
  gap: 2px;
  flex: 1;
  min-width: 120px;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}

.stat-label {
  font-size: 11.5px;
  color: var(--gray3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Section ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

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

.section-header h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header h2 span { color: var(--lime); }

.section-header p {
  font-size: 14px;
  color: var(--gray3);
}

/* ── Category Tabs ── */
.cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}

.cat-tab {
  padding: 7px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray3);
  transition: all 0.18s var(--ease);
}

.cat-tab:hover { color: var(--white); border-color: var(--border2); background: var(--glass2); }

.cat-tab.active {
  background: var(--lime3);
  border-color: var(--border-lime);
  color: var(--lime);
  font-weight: 600;
}

/* ── Tool Grid ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

/* ── Tool Card ── */
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray1);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-lime);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--border-lime), var(--shadow-lime);
  background: var(--bg3);
}

.tool-popular {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 7px;
  background: var(--lime);
  color: #000;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tool-card h3 {
  font-size: 14px;
  font-weight: 650;
  color: var(--white);
  line-height: 1.3;
}

.tool-card p {
  font-size: 12.5px;
  color: var(--gray3);
  line-height: 1.4;
  flex: 1;
}

.tool-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray3);
  letter-spacing: 0.04em;
  margin-top: 4px;
  align-self: flex-start;
}

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime3);
  border: 1px solid var(--border-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-card p { font-size: 13.5px; color: var(--gray3); line-height: 1.5; }

/* ── Trust Grid ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}

.trust-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.trust-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.trust-card p { font-size: 12.5px; color: var(--gray3); line-height: 1.5; }

/* ── Search Results ── */
#search-results { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
#search-results.show { display: block; }
.no-results { text-align: center; padding: 48px; color: var(--gray3); }
.no-results p { margin-bottom: 8px; }

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 32px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray3);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--gray3);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--lime); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--gray3);
  flex-wrap: wrap;
}

.footer-bottom a { color: var(--gray3); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--lime); }

/* ═══════════════════════════════════════════════════
   TOOL PAGE STYLES
   ═══════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb-wrap {
  padding: 10px 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray3);
  width: fit-content;
  flex-wrap: nowrap;
}

.breadcrumb a {
  color: var(--gray3);
  transition: color 0.15s;
  white-space: nowrap;
}

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

.breadcrumb span.sep { color: var(--gray4); }

.breadcrumb span.current {
  color: var(--gray2);
  white-space: nowrap;
}

/* ── Tool Page Layout ── */
.tool-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 24px 80px;
}

/* ── Tool Header ── */
.tool-header {
  margin-bottom: 20px;
}

.tool-header h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.tool-header > p {
  font-size: 15px;
  color: var(--gray2);
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 600px;
}

/* ── Tool Meta Checkmarks ── */
.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 2px;
}

.tool-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--gray3);
  font-weight: 500;
}

.tool-meta-item span {
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
}

/* ── Tool Box / Upload Area ── */
.tool-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  border: 2px dashed var(--border2);
  border-radius: var(--radius-xl);
  margin: 8px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-height: 240px;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--border-lime);
  background: var(--lime5);
}

.upload-icon { font-size: 44px; margin-bottom: 4px; }

.upload-area h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.upload-area > p {
  font-size: 13px;
  color: var(--gray3);
}

.security-note {
  font-size: 12px;
  color: var(--gray3);
}

.upload-area input[type="file"] { display: none; }

.upload-note {
  font-size: 12px;
  color: var(--gray4);
  margin-top: 4px;
}

.upload-note b { color: var(--gray3); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font);
}

.btn-lime {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
}

.btn-lime:hover { background: var(--lime2); border-color: var(--lime2); }
.btn-lime:active { transform: scale(0.97); }

.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--radius); }

.btn-ghost {
  background: transparent;
  border-color: var(--border2);
  color: var(--gray2);
}

.btn-ghost:hover { background: var(--glass2); color: var(--white); }

/* ── Progress Section ── */
.progress-section {
  display: none;
  padding: 32px;
}

.progress-section.show { display: block; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray2);
  margin-bottom: 10px;
  font-weight: 500;
}

.progress-bar {
  height: 6px;
  background: var(--bg4);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 100px;
  width: 0%;
  transition: width 0.4s var(--ease);
}

.processing-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray3);
  text-align: center;
}

/* ── Result Section ── */
.result-section {
  display: none;
  padding: 32px;
}

.result-section.show { display: block; }

.result-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-align: center;
}

.result-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
}

.result-stat {
  text-align: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 100px;
}

.result-stat .val {
  font-size: 20px;
  font-weight: 700;
  color: var(--lime);
}

.result-stat .lbl {
  font-size: 11px;
  color: var(--gray3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Privacy Notice ── */
.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(22,32,51,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.privacy-notice .icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.privacy-notice h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.privacy-notice p { font-size: 12.5px; color: var(--gray3); }

/* ── Affiliate Card ── */
/* Uncomment display:flex below once you have real affiliate links */
.affiliate-card {
  display: none !important; /* Remove this line when affiliate links are ready */
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.aff-icon { font-size: 28px; flex-shrink: 0; }

.aff-body { flex: 1; }

.aff-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.aff-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.aff-body p { font-size: 12.5px; color: var(--gray3); }

.btn-aff {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 18px;
  background: var(--lime);
  color: #000;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s var(--ease);
}

.btn-aff:hover { background: var(--lime2); }

/* ── FAQ ── */
.faq-section {
  margin-bottom: 32px;
}

.faq-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg2);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray1);
  text-align: left;
  transition: color 0.15s, background 0.15s;
}

.faq-q:hover { color: var(--white); background: var(--glass); }
.faq-q.open { color: var(--lime); }

.faq-q .icon {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray3);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.faq-q.open .icon { transform: rotate(45deg); color: var(--lime); }

.faq-a {
  display: none;
  padding: 0 18px 14px;
  font-size: 13.5px;
  color: var(--gray2);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

.faq-a.open { display: block; }

/* ── Related Tools ── */
.related-section {
  margin-bottom: 32px;
}

.related-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

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

.related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray2);
  transition: all 0.18s var(--ease);
}

.related-card:hover {
  color: var(--white);
  border-color: var(--border-lime);
  background: var(--bg3);
}

.related-card .icon { font-size: 17px; flex-shrink: 0; }

/* ── Tool Footer (compact) ── */
.tool-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--gray3);
}

.tool-footer a { color: var(--gray3); transition: color 0.15s; }
.tool-footer a:hover { color: var(--lime); }

/* ── Static Pages (About, Contact, Privacy, etc.) ── */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.static-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}

.static-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 12px;
}

.static-page p, .static-page li {
  font-size: 14px;
  color: var(--gray2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.static-page ul { padding-left: 18px; list-style: disc; }
.static-page a { color: var(--lime); }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-lime { color: var(--lime); }
.text-white { color: var(--white); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  nav { padding: 0 16px; }
  .nav-logo img { height: 42px; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 16px 16px 24px; }
  .hero h1 { font-size: 26px; }

  .stats-bar { gap: 0; }
  .stat-item { padding: 12px 16px; min-width: 80px; }

  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tool-card { padding: 14px; }

  .section { padding: 32px 16px; }

  .tool-page { padding: 12px 16px 60px; }
  .breadcrumb-wrap { padding: 8px 16px 0; }

  .upload-area { padding: 28px 20px; min-height: 200px; }

  .result-stats { flex-direction: column; align-items: center; }

  .affiliate-card { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .steps-grid { grid-template-columns: 1fr; }

  .related-grid { grid-template-columns: 1fr 1fr; }

  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
}

@media (max-width: 420px) {
  .tool-grid { grid-template-columns: 1fr; }
  .hero-chips { gap: 6px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
