/* ═══════════════════════════════════════════════════════════════
   ANS Tools – Premium Design System
   Fonts: Inter (body) · Coolvetica (logo) · JetBrains Mono (code)
═══════════════════════════════════════════════════════════════ */

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

:root {
  --blue:       #2563EB;
  --blue-dark:  #1D4ED8;
  --blue-light: #EFF6FF;
  --purple:     #7C3AED;
  --dark:       #0F172A;
  --dark2:      #1E293B;
  --text:       #1E293B;
  --text2:      #475569;
  --text3:      #94A3B8;
  --border:     #E2E8F0;
  --bg:         #FFFFFF;
  --bg2:        #F8FAFC;
  --bg3:        #F1F5F9;
  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

/* ── Typography ───────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.section-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}
.section-title { margin-bottom: .75rem; }
.section-desc { color: var(--text2); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }

/* ── Layout ───────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }
.section-dark { background: var(--dark); color: #fff; }
.text-center { text-align: center; }

/* ── Navigation ───────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
}
.logo {
  font-family: 'Coolvetica', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { color: var(--blue-dark); }
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text2);
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a.active { background: var(--blue-light); color: var(--blue); }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 12px 16px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition);
}
.mobile-nav a:hover { background: var(--bg3); color: var(--blue); }

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
  padding: 96px 0 80px;
  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.03'%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") repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge span { width: 6px; height: 6px; background: #34D399; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

.hero h1 {
  font-family: 'Coolvetica','Inter',sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero h1 span { color: #60A5FA; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search */
.hero-search {
  position: relative;
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-search input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  outline: none;
  background: #fff;
  color: var(--text);
  transition: box-shadow var(--transition);
}
.hero-search input:focus { box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 3px rgba(96,165,250,.4); }
.hero-search .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}
.hero-search input::placeholder { color: #94A3B8; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk','Inter',sans-serif;
}
.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  letter-spacing: .04em;
}
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* ── Tool Cards ───────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #BFDBFE;
  text-decoration: none;
  color: inherit;
}
.tool-card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.tool-card-icon svg { width: 22px; height: 22px; }
.tool-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.tool-card-desc {
  font-size: .85rem;
  color: var(--text2);
  line-height: 1.5;
  flex: 1;
}
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.tool-card-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tool-card-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.tool-card:hover .tool-card-link svg { transform: translateX(3px); }
.badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
}
.badge-popular { background: #FEF3C7; color: #92400E; }
.badge-new { background: #D1FAE5; color: #065F46; }

/* ── Category Filter ──────────────────────────────────────────── */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text2);
  font-size: .875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.filter-btn svg { width: 15px; height: 15px; }

/* ── Section Headers ──────────────────────────────────────────── */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 12px auto 0; }

/* ── Popular Tools Section ────────────────────────────────────── */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.popular-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.popular-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #BFDBFE;
  text-decoration: none;
  color: inherit;
}
.popular-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.popular-card-icon.cat-images { background: #EFF6FF; color: #2563EB; }
.popular-card-icon.cat-pdf    { background: #FFF1F2; color: #E11D48; }
.popular-card-icon.cat-text   { background: #F0FDF4; color: #16A34A; }
.popular-card-icon.cat-calculators { background: #FFF7ED; color: #EA580C; }
.popular-card-icon.cat-converters  { background: #F5F3FF; color: #7C3AED; }
.popular-card-icon.cat-downloaders { background: #ECFDF5; color: #059669; }
.popular-card-icon svg { width: 24px; height: 24px; }
.popular-card-info { flex: 1; min-width: 0; }
.popular-card-name { font-weight: 600; font-size: .95rem; color: var(--dark); }
.popular-card-desc { font-size: .82rem; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popular-card-arrow { color: var(--text3); flex-shrink: 0; }
.popular-card-arrow svg { width: 18px; height: 18px; }

/* ── Features Section ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.feature-desc { font-size: .9rem; color: var(--text2); line-height: 1.6; }

/* ── How It Works ─────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  position: relative;
}
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.step-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.step-desc { font-size: .9rem; color: var(--text2); line-height: 1.6; }

/* ── Categories Showcase ──────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); text-decoration: none; color: inherit; }
.cat-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card-icon svg { width: 24px; height: 24px; }
.cat-card-name { font-size: .9rem; font-weight: 600; color: var(--dark); }
.cat-card-count { font-size: .78rem; color: var(--text3); }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .975rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  gap: 12px;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg2); }
.faq-question svg {
  width: 20px; height: 20px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question.open svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.7;
}
.faq-answer.open { max-height: 400px; padding: 4px 22px 20px; }

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1e3a8a, #312e81);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: 1.05rem; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-family: inherit; font-size: .9rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.35); }
.btn-secondary { background: var(--bg); color: var(--blue); border: 1.5px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #EFF6FF; color: var(--blue-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: .8rem; border-radius: 8px; }
.btn-full { width: 100%; }
.btn-copy, .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-copy { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-copy:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.btn-download { background: var(--success); color: #fff; }
.btn-download:hover { background: #059669; }

/* ── Tool Page ────────────────────────────────────────────────── */
.tool-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text3);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb svg { width: 14px; height: 14px; }

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
}
.tool-header-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.tool-header-icon svg { width: 32px; height: 32px; }
.tool-header-info h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 6px;
}
.tool-header-info p { color: var(--text2); font-size: .95rem; }

.tool-card-main {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-hint { font-size: .78rem; color: var(--text3); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; }
input[type="range"] { width: 100%; accent-color: var(--blue); margin: 6px 0; }
input[type="color"] { width: 80px; height: 42px; padding: 4px; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; }

/* Radio / Checkbox */
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  cursor: pointer;
}
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.checkbox-card:has(input:checked) { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }

/* ── Result Box ───────────────────────────────────────────────── */
.result-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.result-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.result-box-title { font-size: .875rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 6px; }
.result-box-title svg { width: 16px; height: 16px; color: var(--success); }
.result-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  word-break: break-all;
  white-space: pre-wrap;
  color: var(--dark);
  min-height: 80px;
}
.result-image {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.stat-chip-num {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}
.stat-chip-label { font-size: .72rem; color: var(--text3); margin-top: 2px; font-weight: 500; }

/* ── Alerts ───────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: .9rem;
  margin-bottom: 20px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }

/* ── SEO Sections (Tool Pages) ────────────────────────────────── */
.seo-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
.seo-section h2 { font-size: 1.4rem; margin-bottom: 16px; }
.seo-section h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--dark); }
.seo-section p { color: var(--text2); line-height: 1.8; margin-bottom: 16px; font-size: .95rem; }

.how-to-steps { list-style: none; counter-reset: steps; }
.how-to-steps li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.how-to-steps li::before {
  content: counter(steps);
  min-width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tool-faq-list { margin-top: 12px; }
.tool-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.tool-faq-item:first-child { border-top: 1px solid var(--border); }
.tool-faq-q { font-weight: 600; color: var(--dark); margin-bottom: 8px; font-size: .95rem; }
.tool-faq-a { font-size: .9rem; color: var(--text2); line-height: 1.7; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.related-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}
.related-card:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); text-decoration: none; }
.related-card svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

/* ── Suggestions Widget ───────────────────────────────────────── */
.suggestion-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 40px;
}
.suggestion-widget h3 { margin-bottom: 6px; font-size: 1.05rem; }
.suggestion-widget p { font-size: .875rem; color: var(--text2); margin-bottom: 18px; }
.suggestion-form { display: flex; flex-direction: column; gap: 12px; }
.suggestion-form-row { display: flex; gap: 10px; }
.suggestion-form-row .form-control { flex: 1; }
.suggestion-success { display: none; color: var(--success); font-weight: 600; font-size: .9rem; align-items: center; gap: 6px; }
.suggestion-success.visible { display: flex; }

/* ── Ad Container ─────────────────────────────────────────────── */
.ad-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  text-align: center;
  min-height: 0;
  overflow: hidden;
}
.ad-container ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; }
.footer-logo { font-family: 'Coolvetica','Inter',sans-serif; font-size: 1.6rem; font-weight: 400; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-social a svg { width: 16px; height: 16px; }

.footer-col-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col a {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ── Cookie Banner ────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  background: var(--dark2);
  color: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 18px 24px;
  display: none;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 9000;
  font-size: .875rem;
}
.cookie-banner.visible { display: flex; }
.cookie-banner a { color: #93C5FD; }
.cookie-banner button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Back to Top ──────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 80px;
  right: 24px;
  background: var(--dark2);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(100%);
  transition: all 300ms ease;
  z-index: 9999;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateX(0); }

/* ── Tool-specific ────────────────────────────────────────────── */
.diff-wrapper { overflow-x: auto; }
.diff-wrapper table { width: 100%; font-size: .8rem; font-family: 'JetBrains Mono',monospace; border-collapse: collapse; }
.diff-wrapper .diff_header { background: #F1F5F9; }
.diff-wrapper td { padding: 2px 8px; vertical-align: top; }
.diff-wrapper .diff_add { background: #DCFCE7; }
.diff-wrapper .diff_chg { background: #FEF9C3; }
.diff-wrapper .diff_sub { background: #FEE2E2; }
.json-output { background: #0F172A; color: #E2E8F0; border-radius: 10px; padding: 20px; font-family: 'JetBrains Mono',monospace; font-size: .82rem; line-height: 1.7; white-space: pre-wrap; overflow-x: auto; }
.thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.thumbnail-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg2); }
.thumbnail-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.thumbnail-item-footer { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; }
.thumbnail-label { font-size: .75rem; font-weight: 600; color: var(--text2); }
.bmi-bar { background: var(--bg3); border-radius: 100px; height: 12px; overflow: hidden; margin: 12px 0; }
.bmi-fill { height: 100%; border-radius: 100px; transition: width 600ms ease; }
.password-display {
  background: var(--dark);
  color: #E2E8F0;
  border-radius: 10px;
  padding: 18px 20px;
  font-family: 'JetBrains Mono',monospace;
  font-size: 1.1rem;
  letter-spacing: .08em;
  word-break: break-all;
  margin-bottom: 14px;
}
.strength-bar { background: var(--bg3); border-radius: 100px; height: 8px; overflow: hidden; margin-bottom: 6px; }
.strength-fill { height: 100%; border-radius: 100px; transition: width 400ms ease; }

/* ── About / Contact pages ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg,#0f172a,#1e3a8a);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.page-hero h1 { color: #fff; font-family: 'Coolvetica','Inter',sans-serif; font-weight: 400; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon { width: 40px; height: 40px; background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.contact-info-icon svg { width: 18px; height: 18px; }
.contact-info-label { font-size: .78rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.contact-info-value { font-size: .9rem; font-weight: 500; color: var(--dark); margin-top: 2px; }

/* ── Admin Panel ──────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--dark);
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.admin-sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Coolvetica','Inter',sans-serif;
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar-logo span { font-size: .65rem; background: var(--blue); color: #fff; padding: 2px 8px; border-radius: 100px; font-family: 'Inter',sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav-section { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); padding: 16px 12px 8px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all var(--transition);
}
.admin-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-nav a.active { background: var(--blue); color: #fff; }
.admin-nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: .65rem; font-weight: 700; padding: 1px 7px; border-radius: 100px; }

.admin-main { flex: 1; background: var(--bg2); display: flex; flex-direction: column; overflow: auto; }
.admin-topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.admin-topbar-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.admin-content { padding: 32px; flex: 1; }
.admin-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; color: var(--dark); }
.admin-card-title svg { width: 18px; height: 18px; color: var(--blue); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.admin-stat-label { font-size: .78rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.admin-stat-num { font-size: 2rem; font-weight: 700; color: var(--dark); font-family: 'Space Grotesk','Inter',sans-serif; }
.admin-stat-sub { font-size: .8rem; color: var(--text3); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--bg3); color: var(--text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg2); }
.admin-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-badge-pending { background: #FEF3C7; color: #92400E; }
.admin-badge-approved { background: #D1FAE5; color: #065F46; }
.admin-badge-rejected { background: #FEE2E2; color: #991B1B; }
.admin-badge-unread { background: #EFF6FF; color: #1E40AF; }
.admin-badge-read { background: var(--bg3); color: var(--text3); }
.admin-section-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.admin-section-desc { color: var(--text2); font-size: .9rem; margin-bottom: 24px; }
.settings-group { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.settings-group-header { background: var(--bg3); padding: 16px 20px; font-size: .875rem; font-weight: 700; color: var(--dark); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.settings-group-header svg { width: 16px; height: 16px; color: var(--blue); }
.settings-group-body { padding: 20px; background: var(--bg); }
.settings-hint { font-size: .8rem; color: var(--text3); margin-top: 6px; }
.admin-login-page { min-height: 100vh; background: var(--bg2); display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.admin-login-logo { font-family: 'Coolvetica','Inter',sans-serif; font-size: 1.8rem; color: var(--blue); text-align: center; margin-bottom: 8px; }
.admin-login-subtitle { text-align: center; color: var(--text2); font-size: .875rem; margin-bottom: 32px; }
.seo-guide-section { border-left: 3px solid var(--blue); padding-left: 16px; margin-bottom: 24px; }
.seo-guide-section h3 { color: var(--dark); margin-bottom: 8px; }
.seo-guide-section p, .seo-guide-section ul { color: var(--text2); font-size: .9rem; line-height: 1.7; }
.seo-guide-section ul { padding-left: 20px; }
.seo-guide-section li { margin-bottom: 6px; }

/* ── Share Buttons ────────────────────────────────────────────── */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
}
.share-btn svg { width: 14px; height: 14px; }
.share-twitter { background: #000; color: #fff; }
.share-twitter:hover { background: #333; color: #fff; }
.share-facebook { background: #1877F2; color: #fff; }
.share-facebook:hover { background: #1565c0; color: #fff; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-whatsapp:hover { background: #1da851; color: #fff; }
.share-copy { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.share-copy:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .admin-stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 16px; }
  .hero-stat-divider { display: none; }
  .section { padding: 56px 0; }
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .tools-grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .tool-header { flex-direction: column; }
  .tool-card-main { padding: 20px; }
  .hero-search input { padding: 14px 20px 14px 48px; font-size: 16px; }
  .hero-stats { gap: 12px; }
  .popular-grid { grid-template-columns: 1fr; min-width: 0; }
}

/* ── Overflow Fix ─────────────────────────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.hero, .hero-inner, .hero-search {
  max-width: 100%;
  overflow: hidden;
}
.popular-card {
  min-width: 0;
  max-width: 100%;
}
.popular-card-desc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.footer-inner {
  overflow: hidden;
}
@media (max-width: 360px) {
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: 1.8rem; }
  .hero-badge { font-size: .7rem; padding: 4px 10px; }
  .container { padding: 0 12px; }
}

/* ── Static Pages ────────────────────────────────────────────── */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.static-page h1 {
  font-family: 'Coolvetica','Inter',sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--dark);
}
.static-page .lead {
  font-size: 1.05rem;
  color: var(--text2);
  margin-bottom: 32px;
}
.static-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--dark);
}
.static-page h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--dark);
}
.static-page p, .static-page li {
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 12px;
}
.static-page ul, .static-page ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.static-page .card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.static-page .card input,
.static-page .card textarea,
.static-page .card select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
  margin-top: 6px;
}
.static-page .card input:focus,
.static-page .card textarea:focus { border-color: var(--blue); }
.static-page .form-group { margin-bottom: 16px; }
.static-page .form-group label { font-size: .85rem; font-weight: 600; color: var(--text2); }

/* ── JSON output ──────────────────────────────────────────────── */
.json-output {
  background: #0F172A;
  color: #E2E8F0;
  padding: 20px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.6;
}

/* ── Diff wrapper ─────────────────────────────────────────────── */
.diff-wrapper {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  line-height: 1.6;
}
.diff-wrapper table { border-collapse: collapse; width: 100%; }
.diff-wrapper td { padding: 2px 8px; white-space: pre-wrap; word-break: break-word; }
.diff-wrapper .diff_header { background: #F1F5F9; color: var(--text3); font-style: italic; }
.diff-wrapper .diff_add { background: #DCFCE7; }
.diff-wrapper .diff_sub { background: #FEE2E2; }
.diff-wrapper .diff_chg { background: #FEF9C3; }

/* ── Thumbnail grid ───────────────────────────────────────────── */
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.thumbnail-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
}
.thumbnail-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg3);
}
.thumbnail-item-footer {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.thumbnail-label { font-size: .78rem; font-weight: 600; color: var(--text); }

/* ── Stats row ────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  gap: 12px;
}
.stat-chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.stat-chip-num { font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.stat-chip-label { font-size: .72rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* ── BMI bar (reused for readability) ───────────────────────── */
.bmi-bar { height: 6px; background: var(--bg3); border-radius: 999px; margin: 8px 0; overflow: hidden; }
.bmi-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }

/* ── Tool FAQ ─────────────────────────────────────────────────── */
.tool-faq-list { margin-top: 16px; }
.tool-faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.tool-faq-q { padding: 14px 16px; font-weight: 600; font-size: .9rem; color: var(--dark); background: var(--bg2); }
.tool-faq-a { padding: 12px 16px; font-size: .875rem; color: var(--text2); line-height: 1.7; border-top: 1px solid var(--border); }
