/* TrueTools.org — Shared Stylesheet
   Google Fonts: Sora (headings), Inter (body) — Glassmorphism design
   ------------------------------------------------------------------ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────────────── */
:root {
  /* Core palette — glass surfaces */
  --bg:       rgba(255,255,255,.28);
  --surface:  rgba(255,255,255,.55);
  --ink:      #12122a;
  --ink-2:    #4a4a6a;
  --border:   rgba(255,255,255,.50);

  /* Accent colours — rgba tints for glass compatibility */
  --teal:     #0d9488;
  --teal-dk:  #0f766e;
  --teal-lt:  rgba(13,148,136,.12);
  --rose:     #e11d48;
  --rose-lt:  rgba(225,29,72,.12);
  --amber:    #d97706;
  --amber-lt: rgba(217,119,6,.12);
  --violet:   #7c3aed;
  --violet-lt:rgba(124,58,237,.12);
  --sky:      #0369a1;
  --sky-lt:   rgba(3,105,161,.12);
  --lime:     #4d7c0f;
  --lime-lt:  rgba(77,124,15,.12);
  --pink:     #be185d;
  --pink-lt:  rgba(190,24,93,.12);
  --orange:   #c2410c;
  --orange-lt:rgba(194,65,12,.12);
  --indigo:   #4f46e5;
  --indigo-lt:rgba(79,70,229,.12);
  --cyan:     #0891b2;
  --cyan-lt:  rgba(8,145,178,.12);
  --emerald:  #059669;
  --emerald-lt:rgba(5,150,105,.12);
  --slate:    #475569;
  --slate-lt: rgba(71,85,105,.12);

  /* Glass effects */
  --glass-blur:      blur(20px) saturate(180%);
  --glass-shadow:    0 4px 24px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.03),
                     inset 0 1px 0 rgba(255,255,255,.9);
  --glass-shadow-lg: 0 8px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05),
                     inset 0 1px 0 rgba(255,255,255,.85);

  /* Spacing & geometry — softer for glass */
  --radius:   14px;
  --radius-lg:20px;
  --shadow:   0 1px 3px rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 12px 40px rgba(0,0,0,.10);

  /* Typography — modern geometric sans-serif for glass aesthetic */
  --font-head: 'Sora', 'Sora Fallback', system-ui, sans-serif;
  --font-body: 'Inter', 'Inter Fallback', system-ui, sans-serif;

  /* Layout */
  --max-w:    1200px;
  --sidebar-w:300px;
  --gap:      1.75rem;
}

/* ── 1b. FONT FALLBACKS — reduce CLS from FOUT ─────────────────── */
/* size-adjust values tuned to match Sora/Inter metrics with system-ui */
@font-face {
  font-family: 'Sora Fallback';
  src: local('Arial');
  size-adjust: 97.5%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 100.5%;
  ascent-override: 90%;
  descent-override: 23%;
  line-gap-override: 0%;
}

/* ── 2. RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(140deg,
    #dff6f5 0%, #eff3ff 28%, #f8f0ff 55%, #fff8ee 80%, #e5fdf7 100%);
  background-attachment: fixed;
}
[data-theme="dark"] body {
  background: linear-gradient(140deg,
    #090b1a 0%, #0e0c24 28%, #14082e 55%, #0b1420 80%, #071410 100%);
  background-attachment: fixed;
}

/* Colour orbs — depth layer behind all content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 600px at  8% 15%, rgba(13,148,136,.22)  0%, transparent 65%),
    radial-gradient(ellipse 600px 500px at 90%  8%, rgba(124,58,237,.16)  0%, transparent 60%),
    radial-gradient(ellipse 500px 420px at 60% 88%, rgba(217,119,6,.13)   0%, transparent 60%),
    radial-gradient(ellipse 400px 360px at  2% 85%, rgba(225,29,72,.10)   0%, transparent 60%),
    radial-gradient(ellipse 350px 300px at 75% 48%, rgba(3,105,161,.09)   0%, transparent 55%);
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 700px 600px at  8% 15%, rgba(20,184,166,.32)  0%, transparent 65%),
    radial-gradient(ellipse 650px 550px at 90%  8%, rgba(139,92,246,.28)  0%, transparent 60%),
    radial-gradient(ellipse 500px 420px at 60% 88%, rgba(251,146,60,.18)  0%, transparent 60%),
    radial-gradient(ellipse 420px 360px at  2% 85%, rgba(251,113,133,.16) 0%, transparent 60%),
    radial-gradient(ellipse 380px 320px at 75% 48%, rgba(56,189,248,.16)  0%, transparent 55%);
}

/* ── GLOBAL GLASS TREATMENT ──────────────────────────────────────── */
/* All surface components get frosted blur */
.tool-card, .card, .cat-card, .tool-link-card,
.sidebar-widget, .hsw,
.htc, .why-card,
.result-box, .result-item,
.faq-item,
.reaction-btn,
.cat-pill, .feat-chip,
.pop-item,
.callout,
.about-cat-card, .promise-item, .about-cta,
#search-results, #hero-search-results,
.nav-search,
.mobile-menu,
.badge {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
/* Glass shadow for major card surfaces */
.tool-card, .card, .cat-card,
.sidebar-widget, .hsw,
.htc, .why-card,
.about-cat-card, .about-cta {
  box-shadow: var(--glass-shadow);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: none; }

/* ── SKIP LINK (accessibility — keyboard users) ───────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .875rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: .35em; }

/* ── 3. LAYOUT ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
  padding-block: 2rem;
}

.layout > main { min-width: 0; }

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

/* ── 4. HEADER & NAV ──────────────────────────────────────────────── */
/* Reserve header space before JS injects content — prevents CLS */
#site-header { min-height: 66px; }

.site-header {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,.04);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(13,148,136,.4) 30%, rgba(124,58,237,.25) 50%, rgba(13,148,136,.4) 70%, transparent);
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 66px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(13,148,136,.3);
  flex-shrink: 0;
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 4px 14px rgba(13,148,136,.4);
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -.3px;
}
.logo-text em { color: var(--teal); font-style: normal; }

/* Desktop nav */
.desktop-nav {
  display: flex;
  gap: .2rem;
  align-items: center;
  margin-left: auto;
}
.desktop-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transition: width .25s ease, left .25s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 60%;
  left: 20%;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--teal); background: var(--teal-lt); }
.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: .45rem 1rem !important;
  box-shadow: 0 2px 8px rgba(13,148,136,.25) !important;
}
.nav-cta:hover { background: var(--teal-dk) !important; color: #fff !important; }

/* Mobile nav links (drawer) */
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.nav-links a {
  display: block;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--teal-lt);
  color: var(--teal-dk);
  text-decoration: none;
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .35rem .75rem;
  gap: .5rem;
  flex: 1;
  max-width: 280px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav-search:focus-within {
  border-color: rgba(13,148,136,.45);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
  background: rgba(255,255,255,.5);
}
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: .875rem;
  width: 100%;
  color: var(--ink);
}
.nav-search svg {
  flex-shrink: 0;
  color: var(--ink-2);
  transition: color .2s;
}
.nav-search:focus-within svg { color: var(--teal); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--ink);
  margin-left: auto;
}

.mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-links {
  flex-direction: column;
  margin: 0;
  gap: .15rem;
}
.mobile-menu .nav-links a {
  font-size: 1rem;
  padding: .6rem .75rem;
}

/* Search results dropdown */
#search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
#search-results.open { display: block; }
.search-result-item {
  display: block;
  padding: .65rem 1rem;
  font-size: .875rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); text-decoration: none; }
.search-result-item strong { color: var(--teal); }
.search-result-cat {
  font-size: .75rem;
  color: var(--ink-2);
}
.search-wrap { position: relative; flex: 1; max-width: 400px; }

/* ── 5. FOOTER ────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #141628 0%, #0c0e1a 100%);
  color: #cbd5e1;
  padding: 0 0 1.25rem;
  margin-top: 4rem;
  position: relative;
}
.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, transparent, #0d9488 20%, #7c3aed 50%, #0d9488 80%, transparent);
  margin-bottom: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -.02em;
}
.footer-logo span { color: #5eead4; }
.footer-logo small { color: #64748b; font-weight: 400; font-size: .75em; }
.footer-brand p {
  font-size: .875rem;
  margin-top: .75rem;
  color: #7e8ba4;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  transition: all .25s ease;
}
.footer-social a:hover {
  background: rgba(13,148,136,.15);
  border-color: rgba(13,148,136,.4);
  color: #5eead4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,.2);
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #5eead4;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(94,234,212,.15);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .375rem; }
.site-footer a:hover { text-decoration: none; }
.footer-col a {
  color: #8892aa;
  font-size: .8125rem;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
}
.footer-col a:hover {
  color: #e2e8f0;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8125rem;
  color: #475569;
}
.footer-tagline {
  color: #3f4a63;
  font-style: italic;
  font-size: .75rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #64748b;
  transition: all .25s ease;
}

/* Floating back-to-top button — always visible while scrolling */
.floating-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
  z-index: 999;
  touch-action: manipulation;
}
.floating-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-top:hover {
  background: var(--teal-dk);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .floating-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
}
.footer-top:hover {
  background: rgba(13,148,136,.12);
  border-color: rgba(13,148,136,.3);
  color: #5eead4;
  transform: translateY(-2px);
}

/* ── 6. CARDS ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card:active { transform: translateY(0); }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dk));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* Accent gradient overrides for tool-card */
.tool-card.tc-rose::before   { background: linear-gradient(90deg, var(--rose), #be123c); }
.tool-card.tc-amber::before  { background: linear-gradient(90deg, var(--amber), #b45309); }
.tool-card.tc-violet::before { background: linear-gradient(90deg, var(--violet), #6d28d9); }
.tool-card.tc-sky::before    { background: linear-gradient(90deg, var(--sky), #075985); }
.tool-card.tc-lime::before   { background: linear-gradient(90deg, var(--lime), #3f6212); }
.tool-card.tc-pink::before   { background: linear-gradient(90deg, var(--pink), #9d174d); }
.tool-card.tc-orange::before { background: linear-gradient(90deg, var(--orange), #9a3412); }
.tool-card.tc-teal::before   { background: linear-gradient(90deg, var(--teal), var(--teal-dk)); }
.tool-card.tc-indigo::before { background: linear-gradient(90deg, var(--indigo), #4338ca); }
.tool-card.tc-cyan::before   { background: linear-gradient(90deg, var(--cyan), #0e7490); }
.tool-card.tc-emerald::before{ background: linear-gradient(90deg, var(--emerald), #047857); }
.tool-card.tc-slate::before  { background: linear-gradient(90deg, var(--slate), #334155); }

/* Category cards */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  cursor: pointer;
  touch-action: manipulation;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13,148,136,.3);
  text-decoration: none;
}
.cat-card:active { transform: translateY(-1px); }
.cat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; /* fallback for any remaining emoji */
  flex-shrink: 0;
}
.cat-icon svg { width: 24px; height: 24px; display: block; }
.cat-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.cat-card p { font-size: .8125rem; color: var(--ink-2); margin: 0; }
.cat-count { font-size: .75rem; font-weight: 700; color: var(--teal); }

/* Tool link cards (small) */
.tool-link-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, border-color .15s, transform .15s;
  cursor: pointer;
  touch-action: manipulation;
}
.tool-link-card:hover {
  background: var(--teal-lt);
  border-color: var(--teal);
  text-decoration: none;
  transform: translateX(3px);
}
.tool-link-card .tl-icon { font-size: 1.25rem; flex-shrink: 0; }

/* ── 7. BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, transform .15s, box-shadow .2s, opacity .2s, border-color .2s;
  white-space: nowrap;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .01em;
}
.btn:active  { transform: scale(0.97); }
.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(13,148,136,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--teal-dk) 0%, #0a6b60 100%);
  box-shadow: 0 4px 16px rgba(13,148,136,.4);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal-lt); text-decoration: none; }

/* Accent button variants */
.btn-rose   { background: linear-gradient(135deg, var(--rose), #be123c);   color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(225,29,72,.25); }
.btn-rose:hover   { box-shadow: 0 4px 16px rgba(225,29,72,.35); transform: translateY(-1px); text-decoration: none; }
.btn-amber  { background: linear-gradient(135deg, var(--amber), #b45309);  color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(217,119,6,.25); }
.btn-amber:hover  { box-shadow: 0 4px 16px rgba(217,119,6,.35); transform: translateY(-1px); text-decoration: none; }
.btn-violet { background: linear-gradient(135deg, var(--violet), #6d28d9); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(124,58,237,.25); }
.btn-violet:hover { box-shadow: 0 4px 16px rgba(124,58,237,.35); transform: translateY(-1px); text-decoration: none; }
.btn-sky    { background: linear-gradient(135deg, var(--sky), #075985);    color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(3,105,161,.25); }
.btn-sky:hover    { box-shadow: 0 4px 16px rgba(3,105,161,.35); transform: translateY(-1px); text-decoration: none; }
.btn-lime   { background: linear-gradient(135deg, var(--lime), #3f6212);   color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(77,124,15,.25); }
.btn-lime:hover   { box-shadow: 0 4px 16px rgba(77,124,15,.35); transform: translateY(-1px); text-decoration: none; }
.btn-pink   { background: linear-gradient(135deg, var(--pink), #9d174d);   color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(190,24,93,.25); }
.btn-pink:hover   { box-shadow: 0 4px 16px rgba(190,24,93,.35); transform: translateY(-1px); text-decoration: none; }
.btn-orange { background: linear-gradient(135deg, var(--orange), #9a3412); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(194,65,12,.25); }
.btn-orange:hover { box-shadow: 0 4px 16px rgba(194,65,12,.35); transform: translateY(-1px); text-decoration: none; }

.btn-sm {
  padding: .4rem .875rem;
  font-size: .8125rem;
  min-height: 36px;
}

.btn-full { width: 100%; justify-content: center; }

/* ── 8. FORM ELEMENTS ─────────────────────────────────────────────── */
.input, .select, .textarea {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.72);
  border: 1.5px solid rgba(255,255,255,.80);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem; /* prevents iOS zoom */
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.input:hover, .select:hover  { border-color: var(--teal); background: rgba(255,255,255,.88); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,.14), 0 2px 12px rgba(13,148,136,.08);
  background: rgba(255,255,255,.96);
}
.input::placeholder { color: #b0b8c1; }
.input[type="number"] { font-variant-numeric: tabular-nums; }

.textarea { min-height: 160px; resize: vertical; }

.form-group, .input-group { margin-bottom: 1.25rem; }
.form-group label,
.input-group label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

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

/* Destination / dynamic row — label + select + icon button on one line */
.dest-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.dest-row label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  min-width: 5.5rem;
}
.dest-row .input,
.dest-row .select { flex: 1; margin-bottom: 0; }

/* Icon button — compact circular action (remove, delete, swap) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.55);
  color: var(--ink-2);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-icon:hover {
  background: rgba(225,29,72,.10);
  border-color: var(--rose);
  color: var(--rose);
  transform: scale(1.08);
}
[data-theme="dark"] .btn-icon {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: var(--ink-2);
}
[data-theme="dark"] .btn-icon:hover {
  background: rgba(251,113,133,.16);
  border-color: #fda4af;
  color: #fda4af;
}

/* Dark mode: native <select> <option> dropdown fix */
[data-theme="dark"] select.input option,
[data-theme="dark"] .select option {
  background: #1a1a2e;
  color: #e8ecf4;
}
[data-theme="dark"] .input::placeholder { color: #5a6478; }

/* ── 8b. SEARCHABLE SELECT ───────────────────────────────────────── */
.ss-wrap {
  position: relative;
  width: 100%;
}
.ss-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.72);
  border: 1.5px solid rgba(255,255,255,.80);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  min-height: 48px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
}
.ss-trigger:hover { border-color: var(--teal); background: rgba(255,255,255,.88); }
.ss-trigger:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.18);
  background: rgba(255,255,255,.95);
}
.ss-trigger-label { flex: 1; display: flex; align-items: center; gap: .5rem; overflow: hidden; }
.ss-trigger-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-trigger-arrow {
  width: 20px; height: 20px; flex-shrink: 0; margin-left: .5rem;
  transition: transform .2s;
}
.ss-wrap.open .ss-trigger-arrow { transform: rotate(180deg); }
.ss-wrap.open .ss-trigger {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.18);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.ss-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border: 1.5px solid var(--teal);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-lg);
  animation: fadeIn .15s ease;
}
.ss-wrap.open .ss-dropdown { display: block; }
.ss-search-wrap {
  padding: .5rem;
  border-bottom: 1px solid var(--border);
}
.ss-search {
  display: block;
  width: 100%;
  padding: .5rem .75rem .5rem 2rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234a4a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: .5rem center;
}
.ss-search:focus { border-color: var(--teal); }
.ss-list {
  max-height: 280px;
  overflow-y: auto;
  padding: .25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ss-list::-webkit-scrollbar { width: 6px; }
.ss-list::-webkit-scrollbar-track { background: transparent; }
.ss-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.ss-separator {
  height: 1px;
  background: var(--border);
  margin: .25rem .5rem;
}
.ss-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
  min-height: 44px;
}
.ss-option:hover, .ss-option.ss-focused {
  background: rgba(13,148,136,.08);
}
.ss-option.ss-selected {
  background: rgba(13,148,136,.14);
  font-weight: 600;
}
.ss-option-icon { font-size: 1.1rem; flex-shrink: 0; }
.ss-option-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-option-code { font-size: .75rem; color: var(--ink-2); font-weight: 600; flex-shrink: 0; }
.ss-empty {
  padding: .75rem;
  text-align: center;
  color: var(--ink-2);
  font-size: .875rem;
}

/* Dark mode overrides */
[data-theme="dark"] .ss-trigger {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
[data-theme="dark"] .ss-trigger:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--teal);
}
[data-theme="dark"] .ss-trigger:focus,
[data-theme="dark"] .ss-wrap.open .ss-trigger {
  background: rgba(255,255,255,.10);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,.18);
}
[data-theme="dark"] .ss-dropdown {
  background: rgba(26,26,46,.92);
  border-color: var(--teal);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
[data-theme="dark"] .ss-search {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238892aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: .5rem center;
}
[data-theme="dark"] .ss-option:hover,
[data-theme="dark"] .ss-option.ss-focused {
  background: rgba(20,184,166,.12);
}
[data-theme="dark"] .ss-option.ss-selected {
  background: rgba(20,184,166,.2);
}

@media (prefers-reduced-motion: reduce) {
  .ss-dropdown { animation: none; }
  .ss-trigger-arrow { transition: none; }
}

/* ── 9. RESULT BOX ────────────────────────────────────────────────── */
.result-box {
  background: var(--teal-lt);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.75rem;
  display: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.result-box.show {
  display: block;
  animation: fadeIn .35s ease;
}
.result-box h3 { font-size: 1rem; color: var(--teal-dk); margin-bottom: .75rem; }
.result-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-body);
  color: var(--teal-dk);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.result-label { font-size: .8125rem; color: var(--ink-2); margin-top: .35rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 500; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.result-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.result-item .val {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--teal-dk);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.result-item .lbl { font-size: .75rem; color: var(--ink-2); margin-top: .35rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Accent variants */
.result-box.rose   { background: var(--rose-lt);   border-color: var(--rose);   }
.result-box.rose   .result-value,
.result-box.rose   .val,
.result-box.rose   h3 { color: var(--rose); }

.result-box.amber  { background: var(--amber-lt);  border-color: var(--amber);  }
.result-box.amber  .result-value,
.result-box.amber  .val,
.result-box.amber  h3 { color: var(--amber); }

.result-box.violet { background: var(--violet-lt); border-color: var(--violet); }
.result-box.violet .result-value,
.result-box.violet .val,
.result-box.violet h3 { color: var(--violet); }

.result-box.sky    { background: var(--sky-lt);    border-color: var(--sky); }
.result-box.sky    .result-value,
.result-box.sky    .val,
.result-box.sky    h3 { color: var(--sky); }

.result-box.lime   { background: var(--lime-lt);   border-color: var(--lime); }
.result-box.lime   .result-value,
.result-box.lime   .val,
.result-box.lime   h3 { color: var(--lime); }

.result-box.pink   { background: var(--pink-lt);   border-color: var(--pink); }
.result-box.pink   .result-value,
.result-box.pink   .val,
.result-box.pink   h3 { color: var(--pink); }

.result-box.orange { background: var(--orange-lt); border-color: var(--orange); }
.result-box.orange .result-value,
.result-box.orange .val,
.result-box.orange h3 { color: var(--orange); }

.result-box.teal   { background: var(--teal-lt);   border-color: var(--teal); }
.result-box.teal   .result-value,
.result-box.teal   .val,
.result-box.teal   h3 { color: var(--teal); }
.result-box.indigo { background: var(--indigo-lt); border-color: var(--indigo); }
.result-box.indigo .result-value,
.result-box.indigo .val,
.result-box.indigo h3 { color: var(--indigo); }
.result-box.cyan   { background: var(--cyan-lt);   border-color: var(--cyan); }
.result-box.cyan   .result-value,
.result-box.cyan   .val,
.result-box.cyan   h3 { color: var(--cyan); }

/* ── 10. BADGE ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-teal   { background: var(--teal-lt);   color: var(--teal-dk); }
.badge-rose   { background: var(--rose-lt);   color: var(--rose); }
.badge-amber  { background: var(--amber-lt);  color: var(--amber); }
.badge-violet { background: var(--violet-lt); color: var(--violet); }
.badge-sky    { background: var(--sky-lt);    color: var(--sky); }
.badge-lime   { background: var(--lime-lt);   color: var(--lime); }
.badge-pink   { background: var(--pink-lt);   color: var(--pink); }
.badge-orange { background: var(--orange-lt); color: var(--orange); }
.badge-indigo { background: var(--indigo-lt); color: var(--indigo); }
.badge-cyan   { background: var(--cyan-lt);   color: var(--cyan); }
.badge-emerald{ background: var(--emerald-lt); color: var(--emerald); }
.badge-slate  { background: var(--slate-lt);  color: var(--slate); }

/* ── 11. AD SLOTS ─────────────────────────────────────────────────── */
.ad-banner {
  text-align: center;
  padding: .5rem 0;
  margin-block: 1.5rem;
  min-height: 112px; /* 90px ad + label — reserve space to prevent CLS */
  display: none; /* Hidden until AdSense loads — no empty placeholders */
}
.ad-banner.ads-active {
  display: block;
}
.sidebar-widget:has(> .ad-slot) {
  display: none; /* Hide sidebar ad widgets until AdSense loads */
}
.sidebar-widget.ads-active:has(> .ad-slot) {
  display: block;
}
.ad-label {
  font-size: .6875rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}
.ad-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.35);
  border: 1px dashed rgba(0,0,0,.12);
  border-radius: var(--radius);
  color: #94a3b8;
  font-size: .8125rem;
  font-family: monospace;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ad-h   { width: 728px; height: 90px; max-width: 100%; }
.ad-rect { width: 300px; height: 250px; max-width: 100%; }

/* ── 12. BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  font-size: .8125rem;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  padding: .5rem 0;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: none; }
.breadcrumb-sep { color: #9ca3af; }

/* ── 13. REACTIONS ────────────────────────────────────────────────── */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-block: 1.5rem;
}
.reactions-label { font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-right: .375rem; }

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .875rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
  min-height: 36px;
}
.reaction-btn:hover { border-color: var(--teal); background: var(--teal-lt); }
.reaction-btn.active { border-color: var(--teal); background: var(--teal-lt); font-weight: 600; }
.reaction-count { font-weight: 600; }

/* ── 14. FAQ ──────────────────────────────────────────────────────── */
.faq, .faq-section { margin-block: 2rem; }
.faq h2, .faq-section h2 { margin-bottom: 1.25rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
/* .faq-question is an alias for .faq-q used in older tool pages */
.faq-q, .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.125rem;
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  gap: .5rem;
  list-style: none;
  user-select: none;
  width: 100%;
  text-align: left;
  border: none;
  font-family: var(--font-body);
  color: var(--ink);
}
.faq-q:hover, .faq-question:hover { background: var(--bg); }
.faq-q::after, .faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q::after,
.faq-item.open .faq-question::after { transform: rotate(45deg); }
/* .faq-answer is an alias for .faq-a used in older tool pages */
.faq-a, .faq-answer {
  padding: 0 1.125rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .9375rem;
  color: var(--ink-2);
}
.faq-item.open .faq-a,
.faq-item.open .faq-answer { max-height: 600px; padding: .875rem 1.125rem 1.125rem; }

/* ── 15. SIDEBAR ──────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-widget h3 {
  font-size: .875rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .875rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--teal);
  color: var(--ink);
}

ul.related-tools { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: .375rem; }
.related-tools a {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  padding: .625rem .75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s, color .15s, transform .12s;
  line-height: 1.3;
}
.related-tools a::before {
  content: '→';
  font-size: .75rem;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform .15s;
}
.related-tools a:hover {
  background: var(--teal-lt);
  border-color: rgba(13,148,136,.25);
  color: var(--teal-dk);
  transform: translateX(2px);
}
.related-tools a:hover::before { transform: translateX(3px); }
[data-theme="dark"] .related-tools a {
  background: rgba(255,255,255,.05);
  color: var(--ink);
}
[data-theme="dark"] .related-tools a:hover {
  background: rgba(20,184,166,.12);
  border-color: rgba(20,184,166,.30);
  color: #5eead4;
}
[data-theme="dark"] .related-tools a::before { color: #5eead4; }

/* Newsletter widget */
.newsletter-form { display: flex; flex-direction: column; gap: .625rem; margin-top: .75rem; }
.newsletter-form input {
  padding: .6rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9rem;
  min-height: 44px;
}
.newsletter-form input:focus { outline: none; border-color: var(--teal); }

/* ── 16. TOOL HEADER ──────────────────────────────────────────────── */
.tool-header { margin-bottom: 2rem; }
.tool-header .badge { margin-bottom: .75rem; display: inline-flex; }
.tool-header h1 { margin-bottom: .625rem; letter-spacing: -.02em; }
.tool-header p { font-size: 1.0625rem; color: var(--ink-2); max-width: 68ch; line-height: 1.7; }

/* ── 17. CONTENT SECTION ──────────────────────────────────────────── */
.content-section { margin-block: 2.5rem; }
.content-section h2 { margin-bottom: 1rem; }
.content-section h3 { margin-top: 1.5rem; margin-bottom: .5rem; color: var(--ink); }
.content-section p  { color: var(--ink-2); max-width: 72ch; } /* line-length control */
.content-section ul,
.content-section ol { color: var(--ink-2); }
.content-section li { line-height: 1.7; }

/* ── 18. COMMENTS SECTION ─────────────────────────────────────────── */
.comments-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.comments-section h2 { margin-bottom: 1.25rem; }

/* Comment list & items */
.comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.comment-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.comment-item.comment-new {
  animation: commentSlideIn .3s ease;
}
@keyframes commentSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.comment-name { color: var(--ink); font-size: .9375rem; }
.comment-time { color: var(--ink-2); font-size: .8125rem; }
.comment-body { color: var(--ink); font-size: .9375rem; line-height: 1.6; margin: 0; }
.comments-empty { color: var(--ink-2); font-size: .9375rem; text-align: center; padding: 1.5rem 0; }

/* Admin reply threads */
.comment-reply {
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--teal);
  background: rgba(13,148,136,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
[data-theme="dark"] .comment-reply {
  background: rgba(20,184,166,.08);
}
.admin-badge {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: var(--teal);
  padding: .125rem .4rem;
  border-radius: 4px;
  margin-left: .4rem;
  vertical-align: middle;
}

/* Comment CTA strip */
.comment-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  margin-top: 1.25rem;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  min-height: 44px;
}
.comment-cta:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--glass-shadow-lg), 0 0 0 2px rgba(13,148,136,.15);
}
.comment-cta:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.comment-cta-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.comment-cta-text { flex: 1; font-size: .9375rem; color: var(--ink-2); }
.comment-cta-text strong { color: var(--teal); font-weight: 600; }
.comment-cta-arrow { font-size: 1.125rem; color: var(--teal); flex-shrink: 0; transition: transform .2s; }
.comment-cta:hover .comment-cta-arrow { transform: translateY(3px); }

/* Comment form */
.comment-form { display: flex; flex-direction: column; gap: .75rem; }
.comment-form .textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  min-height: 80px;
  transition: border-color .2s;
}
.comment-form .textarea:focus { outline: none; border-color: var(--teal); }
.comment-error {
  color: #e11d48;
  font-size: .875rem;
  margin: 0;
  padding: .5rem .75rem;
  background: rgba(225, 29, 72, .08);
  border-radius: var(--radius);
}

/* Subscribe button success state */
.btn-subscribed {
  background: var(--teal) !important;
  opacity: .7;
  cursor: default;
}

/* ── SUGGEST A TOOL MODAL ──────────────────────────────────────────── */
.suggest-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.suggest-modal.open { opacity: 1; visibility: visible; }
.suggest-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
}
.suggest-modal-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  width: 90%; max-width: 440px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-lg);
  transform: translateY(12px); transition: transform .25s ease;
}
.suggest-modal.open .suggest-modal-card { transform: translateY(0); }
.suggest-modal-card h2 { font-size: 1.35rem; margin: 0 0 .375rem; }
.suggest-modal-card p { color: var(--ink-2); font-size: .9375rem; margin: 0 0 1.25rem; }
.suggest-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  color: var(--ink-2); cursor: pointer; padding: .25rem .5rem;
  border-radius: var(--radius); transition: color .15s, background .15s;
}
.suggest-modal-close:hover { color: var(--ink); background: var(--border); }
.suggest-modal-form { display: flex; flex-direction: column; gap: .75rem; }
.suggest-modal-done { color: var(--teal); font-weight: 600; text-align: center; padding: .75rem 0; margin: 0; }

/* ── 19. HERO ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 60%, #134e4a 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
  text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.85); max-width: 56ch; margin: .75rem auto 2rem; }

/* Hero search bar — lives outside .hero to avoid overflow:hidden clipping */
.hero-search-wrap {
  margin-top: -1.75rem;      /* pulls it up, visually bridging from hero */
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 10;
  text-align: center;        /* ensures search bar is centered on all screens */
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 999px;
  overflow: visible;
  box-shadow: var(--glass-shadow-lg);
  position: relative;
}
.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .875rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  border-radius: 999px 0 0 999px;
}
.hero-search button {
  background: var(--teal-dk);
  color: #fff;
  border: none;
  padding: .875rem 1.5rem;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  transition: background .2s;
}
.hero-search button:hover { background: #134e4a; }
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(255,255,255,.18), var(--shadow-lg); transition: box-shadow .25s; }

#hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  text-align: left;
}
#hero-search-results.open { display: block; }

/* ── 20. SECTION HEADINGS ─────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.375rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: .875rem; color: var(--teal); }

/* ── 21. FEATURE LIST ─────────────────────────────────────────────── */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .625rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }

/* ── 22. HOME SECTIONS ────────────────────────────────────────────── */
.section-pad { padding-block: 3rem; }
.section-pad:nth-child(odd) { background: var(--bg); }
.section-pad:nth-child(even) { background: var(--surface); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-item { text-align: center; padding: 1.5rem; }
.why-icon { font-size: 2.5rem; margin-bottom: .875rem; }
.why-item h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.why-item p { font-size: .875rem; color: var(--ink-2); }

/* ── 23. TABLE STYLES ─────────────────────────────────────────────── */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 1.25rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-block: 0;
}
@media (max-width: 480px) {
  .data-table { font-size: .82rem; }
  .data-table th, .data-table td { padding: .45rem .5rem; }
}
.data-table th {
  background: var(--bg);
  padding: .65rem .875rem;
  text-align: left;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-2);
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: .65rem .875rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }

/* ── 24. CALLOUT ──────────────────────────────────────────────────── */
.callout {
  display: flex;
  gap: .875rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  background: var(--teal-lt);
  margin-block: 1.25rem;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; }
.callout p { margin: 0; font-size: .9375rem; }
.callout.warning { border-color: var(--amber); background: var(--amber-lt); }
.callout.info    { border-color: var(--sky);   background: var(--sky-lt); }

/* ── 25. PROGRESS / RANGE ─────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* ── 26. COPY BUTTON ──────────────────────────────────────────────── */
.copy-wrap { position: relative; }
.copy-btn {
  position: absolute;
  top: .5rem; right: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .3rem .6rem;
  font-size: .75rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s;
}
.copy-btn:hover { background: var(--teal-lt); }
.copy-btn.copied { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── 26b. TOOL ACTIONS (Reset + Copy Results) ────────────────────── */
.tool-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .75rem;
}
.tool-actions .btn svg {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: .25rem;
  pointer-events: none;
}
.tool-actions .tool-copy-btn.copied {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
@media (max-width: 768px) {
  .tool-actions .btn {
    min-height: 44px;
    padding: .5rem 1rem;
  }
}

/* Code output blocks (JSON formatter, etc.) */
.code-output {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink);
  font-family: 'Courier New', Courier, monospace;
  backdrop-filter: var(--glass-blur);
}
.code-output-sm { max-height: 200px; }

/* Password generator output + strength bar */
.pw-output {
  font-family: monospace;
  font-size: 1.125rem;
  word-break: break-all;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 3rem;
  display: flex;
  align-items: center;
  line-height: 1.5;
  backdrop-filter: var(--glass-blur);
}
.pw-strength-wrap { margin-top: 1rem; }
.pw-strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .35rem;
}
.pw-strength-header span {
  font-size: .8125rem;
  color: var(--ink-2);
}
.pw-strength-header .pw-label { font-weight: 600; }
.pw-bar-track {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.pw-bar-fill {
  width: 0;
  height: 100%;
  border-radius: 4px;
  transition: width .3s, background-color .3s;
}

/* ── 27. STAT ROW ─────────────────────────────────────────────────── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-block: 1rem;
}
.stat-item { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: .75rem; color: var(--ink-2); text-align: center; margin-top: .1rem; }

/* ── 28. MOBILE BREAKPOINTS ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1 1 280px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .desktop-nav { display: none; }
  .nav-search { display: none; }
  .hamburger { display: flex; align-items: center; }
  .dest-row { flex-wrap: wrap; }
  .dest-row label { min-width: 100%; }
  .hero { padding: 2.5rem 0 4rem; }
  .form-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ad-h { width: 100%; height: auto; min-height: 60px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; gap: .5rem; }
  .result-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: .6rem .75rem;
    border-radius: var(--radius);
    text-align: left;
  }
  .result-item .val { font-size: 1.15rem; margin: 0; text-align: right; white-space: nowrap; flex-shrink: 0; }
  .result-item .lbl { margin: 0; font-size: .7rem; flex: 1; min-width: 0; }
  .result-item:hover { transform: none; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-search { border-radius: var(--radius); }
  .hero-search input { border-radius: var(--radius) 0 0 var(--radius); }
  .hero-search button { border-radius: 0 var(--radius) var(--radius) 0; }
  .reactions { gap: .4rem; }
  .reaction-btn { padding: .35rem .6rem; font-size: .8125rem; }
  .tool-card { padding: 1.25rem 1rem; }
}

@media (min-width: 481px) and (max-width: 600px) {
  .result-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
}

/* ── 29. FORM ALIASES ─────────────────────────────────────────────── */
/* .input-group is an alias for .form-group used in some tool pages */
.input-group {
  margin-bottom: 1.25rem;
}
.input-group label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Required field indicator — add data-required to label */
.form-group label[data-required]::after,
.input-group label[data-required]::after {
  content: ' *';
  color: var(--rose);
  font-weight: 700;
}

/* .tool-inputs — form section inside .tool-card */
.tool-inputs {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1rem;
}

/* ── 30. RESULT ALIASES ───────────────────────────────────────────── */
/* .result-title — heading inside result-box (alias for .result-box h3 styling) */
.result-title {
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--teal-dk);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.result-box.rose   .result-title { color: var(--rose); }
.result-box.amber  .result-title { color: var(--amber); }
.result-box.violet .result-title { color: var(--violet); }
.result-box.sky    .result-title { color: var(--sky); }
.result-box.lime   .result-title { color: var(--lime); }
.result-box.pink   .result-title { color: var(--pink); }
.result-box.orange .result-title { color: var(--orange); }
.result-box.teal   .result-title { color: var(--teal); }
.result-box.indigo .result-title { color: var(--indigo); }
.result-box.cyan   .result-title { color: var(--cyan); }

/* ── 30b. TOOL RESULT CARDS (timezone cards, conversion cards) ───── */
.tz-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .15s, box-shadow .15s;
}
.tz-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.7);
}
.tz-card-label { font-weight: 700; font-size: .9375rem; }
.tz-card-time  { font-size: 1.25rem; font-weight: 800; margin-top: .15rem; color: var(--ink); }
.tz-card-sub   { font-size: .8125rem; color: var(--ink-2); margin-top: .1rem; }
.tz-card-meta  { text-align: right; font-size: .8125rem; font-weight: 500; color: var(--ink-2); }

/* Accent color on card label — set by parent result-box */
.result-box.violet .tz-card-label { color: var(--violet); }
.result-box.rose   .tz-card-label { color: var(--rose); }
.result-box.amber  .tz-card-label { color: var(--amber); }
.result-box.sky    .tz-card-label { color: var(--sky); }
.result-box.lime   .tz-card-label { color: var(--lime); }
.result-box.pink   .tz-card-label { color: var(--pink); }
.result-box.orange .tz-card-label { color: var(--orange); }
.result-box.teal   .tz-card-label { color: var(--teal); }

/* DST / status pill */
.badge-sm {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-sm.dst-active { background: rgba(77,124,15,.12); color: #4d7c0f; }
.badge-sm.dst-off    { background: rgba(0,0,0,.05); color: var(--ink-2); }

/* Dark mode — tz-card */
[data-theme="dark"] .tz-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 2px 8px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
[data-theme="dark"] .tz-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
[data-theme="dark"] .tz-card-time { color: var(--ink); }
[data-theme="dark"] .result-box.violet .tz-card-label { color: #c4b5fd; }
[data-theme="dark"] .result-box.rose   .tz-card-label { color: #fda4af; }
[data-theme="dark"] .result-box.amber  .tz-card-label { color: #fcd34d; }
[data-theme="dark"] .result-box.sky    .tz-card-label { color: #7dd3fc; }
[data-theme="dark"] .result-box.lime   .tz-card-label { color: #86efac; }
[data-theme="dark"] .result-box.pink   .tz-card-label { color: #f9a8d4; }
[data-theme="dark"] .result-box.orange .tz-card-label { color: #fdba74; }
[data-theme="dark"] .result-box.teal   .tz-card-label { color: #5eead4; }
[data-theme="dark"] .badge-sm.dst-active { background: rgba(163,230,53,.14); color: #bef264; }
[data-theme="dark"] .badge-sm.dst-off    { background: rgba(255,255,255,.06); color: var(--ink-2); }

/* ── 31. HOMEPAGE LAYOUT HELPERS ──────────────────────────────────── */
/* Why-section 2-col layout (main content + ads aside) */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1080px) {
  .why-layout { grid-template-columns: 1fr; }
  .why-layout > aside { display: none; }
}

/* Why section heading */
.why-heading { margin-bottom: 1.5rem; }

/* Tool link card subtitle line */
.tl-sub {
  font-size: .8rem;
  color: var(--ink-2);
  margin-top: .1rem;
}

/* ── 32. FOCUS STYLES ─────────────────────────────────────────────── */
/* Remove default outline for mouse/pointer users */
:focus:not(:focus-visible) { outline: none; }
/* Restore clear outline for keyboard users */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Buttons and inputs get a ring instead of outline */
.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.reaction-btn:focus-visible,
.faq-q:focus-visible,
.faq-question:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13,148,136,.35);
}

/* ── SOCIAL SHARE ─────────────────────────────────────────────────────── */
#share {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.share-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-right: .25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  line-height: 1;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-x       { background: #000; color: #fff; }
.share-fb      { background: #1877f2; color: #fff; }
.share-li      { background: #0a66c2; color: #fff; }
.share-wa      { background: #25d366; color: #fff; }
.share-copy    { background: var(--surface); color: var(--ink); border: 1px solid var(--border); font-size: 1rem; }
.share-native  { background: var(--teal); color: #fff; width: auto; padding: 0 .75rem; border-radius: 999px; font-size: .8125rem; }

/* ── 33. REDUCED MOTION (accessibility) ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .result-box.show { animation: none; }
}

/* ── 34. HERO POLISH ──────────────────────────────────────────────── */
/* Subtle grain texture on hero for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -150px;
  top: -200px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.hero { position: relative; overflow: hidden; }

/* ── 35. NAV ACTIVE INDICATOR ─────────────────────────────────────── */
.nav-links a.active {
  background: var(--teal-lt);
  color: var(--teal-dk);
  position: relative;
}

/* ── 36. TOOL HEADER DIVIDER ──────────────────────────────────────── */
.tool-header {
  padding-bottom: 1.75rem;
  border-bottom: none;
  margin-bottom: 2rem;
}

/* ── 37. SIDEBAR WIDGET HOVER (related tools) ─────────────────────── */
.sidebar-widget { transition: box-shadow .2s; }

/* ── 38. NEWSLETTER FORM POLISH ───────────────────────────────────── */
.newsletter-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.newsletter-form input { background: var(--bg); }

/* ── 39. REACTION BUTTON ACTIVE SCALE ────────────────────────────── */
.reaction-btn { touch-action: manipulation; }
.reaction-btn:active { transform: scale(0.95); }

/* ── 40. SEARCH RESULT ACTIVE STATE ──────────────────────────────── */
.search-result-item:focus {
  background: var(--teal-lt);
  outline: none;
  color: var(--teal-dk);
}

/* ══════════════════════════════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════════════════════════════ */

/* ── Dark token overrides ─────────────────────────────────────────── */
:root[data-theme="dark"] {
  /* Core palette — glass on rich dark gradient */
  --bg:       rgba(255,255,255,.04);
  --surface:  rgba(255,255,255,.07);
  --ink:      #e8ecf4;
  --ink-2:    #8892aa;
  --border:   rgba(255,255,255,.14);
  --shadow:   0 1px 3px rgba(0,0,0,.20), 0 4px 16px rgba(0,0,0,.30);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.25), 0 16px 48px rgba(0,0,0,.45);

  /* Brighter accent bases for text/link contrast (WCAG AA on dark bg) */
  --teal:     #14b8a6;
  --teal-dk:  #0d9488;
  --rose:     #fb7185;
  --amber:    #fbbf24;
  --violet:   #a78bfa;
  --sky:      #38bdf8;
  --lime:     #86efac;
  --pink:     #f472b6;
  --orange:   #fb923c;
  --indigo:   #818cf8;
  --cyan:     #22d3ee;
  --emerald:  #34d399;
  --slate:    #94a3b8;

  /* Stronger accent-lt variants — more visible on dark surfaces */
  --teal-lt:   rgba(20,184,166,.18);
  --rose-lt:   rgba(251,113,133,.16);
  --amber-lt:  rgba(251,191,36,.15);
  --violet-lt: rgba(167,139,250,.16);
  --sky-lt:    rgba(56,189,248,.15);
  --lime-lt:   rgba(163,230,53,.14);
  --pink-lt:   rgba(244,114,182,.15);
  --orange-lt: rgba(251,146,60,.14);
  --indigo-lt: rgba(129,140,248,.14);
  --cyan-lt:   rgba(34,211,238,.14);
  --emerald-lt:rgba(52,211,153,.14);
  --slate-lt:  rgba(148,163,184,.12);

  /* Glass effects — dark mode */
  --glass-shadow:    0 4px 32px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.20),
                     inset 0 1px 0 rgba(255,255,255,.12);
  --glass-shadow-lg: 0 8px 48px rgba(0,0,0,.45), 0 2px 12px rgba(0,0,0,.25),
                     inset 0 1px 0 rgba(255,255,255,.10);
}

/* ── Dark component overrides ─────────────────────────────────────── */
[data-theme="dark"] .site-header            { background: rgba(10,12,26,.78); box-shadow: 0 1px 16px rgba(0,0,0,.3); }
[data-theme="dark"] .site-header::after     { background: linear-gradient(90deg, transparent, rgba(20,184,166,.3) 30%, rgba(167,139,250,.2) 50%, rgba(20,184,166,.3) 70%, transparent); }
[data-theme="dark"] .nav-search:focus-within { border-color: rgba(20,184,166,.4); box-shadow: 0 0 0 3px rgba(20,184,166,.08); background: rgba(255,255,255,.06); }
[data-theme="dark"] .site-footer            { background: linear-gradient(180deg, #08091a 0%, #030410 100%); }
[data-theme="dark"] .footer-accent          { background: linear-gradient(90deg, transparent, #14b8a6 20%, #a78bfa 50%, #14b8a6 80%, transparent); }
[data-theme="dark"] .footer-brand p         { color: #4a5568; }
[data-theme="dark"] .footer-col h4          { color: #14b8a6; border-color: rgba(20,184,166,.12); }
[data-theme="dark"] .footer-col a           { color: #5a6478; }
[data-theme="dark"] .footer-col a:hover     { color: #cbd5e1; }
[data-theme="dark"] .footer-bottom          { color: #334155; border-color: rgba(255,255,255,.04); }
[data-theme="dark"] .footer-tagline         { color: #2d3748; }
[data-theme="dark"] .footer-social a        { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); color: #4a5568; }
[data-theme="dark"] .footer-social a:hover  { background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.3); color: #14b8a6; }
[data-theme="dark"] .footer-top             { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.05); color: #4a5568; }
[data-theme="dark"] .footer-top:hover       { background: rgba(20,184,166,.08); color: #14b8a6; }
[data-theme="dark"] .hero                   { background: linear-gradient(135deg, rgba(15,118,110,.6) 0%, rgba(12,92,84,.5) 60%, rgba(9,70,64,.4) 100%); }
[data-theme="dark"] .nav-search             { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .nav-search input       { color: var(--ink); }
[data-theme="dark"] .mobile-menu            { border-color: var(--border); background: rgba(10,12,26,.88); }
[data-theme="dark"] .search-result-item     { color: var(--ink); background: transparent; border-color: var(--border); }
[data-theme="dark"] .search-result-item:hover { background: rgba(20,184,166,.12); }
[data-theme="dark"] mark                    { background: rgba(20,184,166,.22) !important; color: #5eead4 !important; }
[data-theme="dark"] .ad-slot                { background: rgba(255,255,255,.04); color: #4a5568; border-color: rgba(255,255,255,.10); }
[data-theme="dark"] .result-item            { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); box-shadow: 0 2px 10px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10); }
[data-theme="dark"] .result-item:hover      { box-shadow: 0 4px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.10); }
[data-theme="dark"] .input, [data-theme="dark"] .select, [data-theme="dark"] .textarea { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .input:hover, [data-theme="dark"] .select:hover { background: rgba(255,255,255,.11); border-color: var(--teal); }
[data-theme="dark"] .input:focus, [data-theme="dark"] .select:focus { background: rgba(255,255,255,.13); box-shadow: 0 0 0 4px rgba(20,184,166,.20); }
[data-theme="dark"] .callout                { filter: brightness(.92); }
[data-theme="dark"] .hero-search            { box-shadow: 0 8px 32px rgba(0,0,0,.5); background: rgba(10,12,26,.75); }
[data-theme="dark"] .hero-search input      { background: transparent; color: var(--ink); }
[data-theme="dark"] .section-pad:nth-child(odd)  { background: rgba(255,255,255,.02); }
[data-theme="dark"] .section-pad:nth-child(even) { background: rgba(255,255,255,.05); }
[data-theme="dark"] input[type="range"]     { background: rgba(255,255,255,.14); }
[data-theme="dark"] .faq-q,
[data-theme="dark"] .faq-question           { color: var(--ink); }
[data-theme="dark"] .faq-q:hover,
[data-theme="dark"] .faq-question:hover     { background: rgba(255,255,255,.06); }
[data-theme="dark"] .reaction-btn           { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: var(--ink); }
[data-theme="dark"] .reaction-btn:hover     { border-color: var(--teal); background: rgba(20,184,166,.18); }
[data-theme="dark"] .reaction-btn.active    { border-color: var(--teal); background: rgba(20,184,166,.22); }

/* Dark result values & titles — brighter accents for contrast on dark glass */
[data-theme="dark"] .result-value,
[data-theme="dark"] .result-item .val,
[data-theme="dark"] .result-box h3,
[data-theme="dark"] .result-title           { color: #5eead4; }
[data-theme="dark"] .result-box.rose   .result-value,
[data-theme="dark"] .result-box.rose   .val,
[data-theme="dark"] .result-box.rose   h3,
[data-theme="dark"] .result-box.rose   .result-title   { color: #fda4af; }
[data-theme="dark"] .result-box.amber  .result-value,
[data-theme="dark"] .result-box.amber  .val,
[data-theme="dark"] .result-box.amber  h3,
[data-theme="dark"] .result-box.amber  .result-title   { color: #fcd34d; }
[data-theme="dark"] .result-box.violet .result-value,
[data-theme="dark"] .result-box.violet .val,
[data-theme="dark"] .result-box.violet h3,
[data-theme="dark"] .result-box.violet .result-title   { color: #c4b5fd; }
[data-theme="dark"] .result-box.sky    .result-value,
[data-theme="dark"] .result-box.sky    .val,
[data-theme="dark"] .result-box.sky    h3,
[data-theme="dark"] .result-box.sky    .result-title   { color: #7dd3fc; }
[data-theme="dark"] .result-box.lime   .result-value,
[data-theme="dark"] .result-box.lime   .val,
[data-theme="dark"] .result-box.lime   h3,
[data-theme="dark"] .result-box.lime   .result-title   { color: #86efac; }
[data-theme="dark"] .result-box.pink   .result-value,
[data-theme="dark"] .result-box.pink   .val,
[data-theme="dark"] .result-box.pink   h3,
[data-theme="dark"] .result-box.pink   .result-title   { color: #f9a8d4; }
[data-theme="dark"] .result-box.orange .result-value,
[data-theme="dark"] .result-box.orange .val,
[data-theme="dark"] .result-box.orange h3,
[data-theme="dark"] .result-box.orange .result-title   { color: #fdba74; }
[data-theme="dark"] .result-box.teal   .result-value,
[data-theme="dark"] .result-box.teal   .val,
[data-theme="dark"] .result-box.teal   h3,
[data-theme="dark"] .result-box.teal   .result-title   { color: #5eead4; }
[data-theme="dark"] .result-box.indigo .result-value,
[data-theme="dark"] .result-box.indigo .val,
[data-theme="dark"] .result-box.indigo h3,
[data-theme="dark"] .result-box.indigo .result-title   { color: #a5b4fc; }
[data-theme="dark"] .result-box.cyan   .result-value,
[data-theme="dark"] .result-box.cyan   .val,
[data-theme="dark"] .result-box.cyan   h3,
[data-theme="dark"] .result-box.cyan   .result-title   { color: #67e8f9; }

/* Dark result box — tinted accent glass */
[data-theme="dark"] .result-box             { background: rgba(20,184,166,.12); border-color: rgba(20,184,166,.32); }
[data-theme="dark"] .result-box.rose        { background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.35); }
[data-theme="dark"] .result-box.amber       { background: rgba(251,191,36,.12);  border-color: rgba(251,191,36,.32); }
[data-theme="dark"] .result-box.violet      { background: rgba(167,139,250,.14); border-color: rgba(167,139,250,.35); }
[data-theme="dark"] .result-box.sky         { background: rgba(56,189,248,.12);  border-color: rgba(56,189,248,.32); }
[data-theme="dark"] .result-box.lime        { background: rgba(163,230,53,.10);  border-color: rgba(163,230,53,.28); }
[data-theme="dark"] .result-box.pink        { background: rgba(244,114,182,.12); border-color: rgba(244,114,182,.32); }
[data-theme="dark"] .result-box.orange      { background: rgba(251,146,60,.12);  border-color: rgba(251,146,60,.32); }
[data-theme="dark"] .result-box.teal        { background: rgba(20,184,166,.12);  border-color: rgba(20,184,166,.32); }
[data-theme="dark"] .result-box.indigo      { background: rgba(129,140,248,.12); border-color: rgba(129,140,248,.32); }
[data-theme="dark"] .result-box.cyan        { background: rgba(34,211,238,.12);  border-color: rgba(34,211,238,.32); }

/* Dark result-item cards — more visible glass + brighter labels */
[data-theme="dark"] .result-item            { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .result-item .lbl       { color: #b0bbd0; }
[data-theme="dark"] .result-label           { color: #b0bbd0; }
[data-theme="dark"] .result-box .result-grid .result-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.3); }

/* Dark search dropdowns */
[data-theme="dark"] #search-results,
[data-theme="dark"] #hero-search-results    { background: rgba(10,12,26,.90); border-color: rgba(255,255,255,.14); }

/* ── Theme toggle button ──────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .3s;
  flex-shrink: 0;
  padding: 0;
  touch-action: manipulation;
}
.theme-toggle:hover {
  background: var(--teal-lt);
  color: var(--teal);
  border-color: var(--teal);
  transform: rotate(20deg);
}
.theme-toggle:active { transform: scale(.9) rotate(20deg); }
.theme-toggle svg { pointer-events: none; display: block; transition: opacity .2s; }
/* Show moon in light mode, sun in dark mode */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE DRAWER (replaces dropdown)
   ══════════════════════════════════════════════════════════════════════ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* Override old dropdown mobile-menu to be a side drawer */
.mobile-menu {
  position: fixed !important;
  top: 0; right: 0;
  height: 100%;
  width: min(300px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0,0,0,.2);
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 600;
  overflow-y: auto;
  padding: 0;
  display: block !important; /* always in DOM, controlled by transform */
}
.mobile-menu.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1;
}
.drawer-header .logo { font-size: 1.125rem; }
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  transition: background .2s, color .2s, transform .2s;
  touch-action: manipulation;
}
.drawer-close:hover { background: rgba(225,29,72,.08); color: #e11d48; transform: rotate(90deg); }
.drawer-body { padding: 1.25rem; }
.drawer-body .nav-links-label {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-2);
  margin-bottom: .5rem;
  padding-left: .75rem;
}
.mobile-menu .nav-links {
  display: flex !important;
  flex-direction: column;
  margin: 0 0 1.5rem;
  gap: .2rem;
}
.mobile-menu .nav-links a {
  font-size: .9375rem;
  padding: .7rem .75rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-weight: 500;
  transition: background .2s, color .2s, padding-left .2s;
}
.mobile-menu .nav-links a:hover {
  background: var(--teal-lt);
  color: var(--teal-dk);
  text-decoration: none;
  padding-left: 1rem;
}
.mobile-menu .nav-links .nav-icon {
  font-size: 1rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.drawer-search {
  margin-top: .5rem;
}
.drawer-search-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .75rem;
}
.drawer-search-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  width: 100%;
}
#drawer-search-results { margin-top: .5rem; }
#drawer-search-results .search-result-item { border-radius: var(--radius); border: none; margin-bottom: .25rem; }

/* ══════════════════════════════════════════════════════════════════════
   SKELETON LOADERS (font loading state)
   ══════════════════════════════════════════════════════════════════════ */

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html.fonts-loading .tool-header h1,
html.fonts-loading .tool-header p,
html.fonts-loading .hero h1,
html.fonts-loading .hero p {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
  color: transparent !important;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════════════
   RESULT BOX ANIMATIONS
   ══════════════════════════════════════════════════════════════════════ */

@keyframes valuePop {
  0%   { opacity: .4; transform: scale(0.94) translateY(4px); }
  65%  { transform: scale(1.03) translateY(0); }
  100% { opacity: 1;  transform: scale(1) translateY(0); }
}

.result-value.animating,
.result-item .val.animating,
.result-item .result-value.animating {
  animation: valuePop .35s cubic-bezier(.34,1.56,.64,1);
}

/* ══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY SCALE IMPROVEMENTS
   ══════════════════════════════════════════════════════════════════════ */

h1 { letter-spacing: -0.02em; line-height: 1.18; }
h2 { letter-spacing: -0.015em; }
h3 { letter-spacing: -0.01em; }
.hero h1 { letter-spacing: -0.03em; line-height: 1.1; }

/* Improved body line-height for readability */
.content-section p,
.faq-a p,
.faq-answer p { line-height: 1.75; }

/* Tool header description */
.tool-header p { line-height: 1.6; }

/* Better badge label spacing */
.badge { letter-spacing: .05em; }

/* ══════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════════════ */

.about-page { max-width: 860px; }

.about-header { margin-bottom: 2rem; }
.about-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

/* Tool grid on about page */
.about-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.about-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.about-cat-title {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--ink);
  margin-bottom: .625rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--teal-lt);
}

.about-cat-count {
  font-weight: 500;
  font-size: .75rem;
  color: var(--ink-2);
  margin-left: .25rem;
}

.about-tool-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.about-tool-list a {
  font-size: .875rem;
  color: var(--teal);
  text-decoration: none;
}
.about-tool-list a:hover { text-decoration: none; }

/* Promise section */
.promise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .75rem;
}

.promise-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

.promise-title {
  font-weight: 700;
  color: var(--ink);
}

.promise-body {
  font-size: .9375rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* CTA box */
.about-cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}
.about-cta h2 { margin-bottom: .75rem; }
.about-cta p { color: var(--ink-2); margin-bottom: 1.25rem; }

/* ══════════════════════════════════════════════════════════════════════
   CONTACT / STATIC PAGES
   ══════════════════════════════════════════════════════════════════════ */

.static-page { max-width: 720px; }

/* ══════════════════════════════════════════════════════════════════════
   HOMEPAGE v2 — tag-filtered tool grid
   ══════════════════════════════════════════════════════════════════════ */

/* Hero pill badge */
@keyframes hero-shimmer {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(90deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.12) 100%);
  background-size: 200% 100%;
  animation: hero-shimmer 4s ease-in-out infinite;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Hero stats strip */
.hero-stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: 1.75rem auto 0;
  overflow: hidden;
}
.hero-stat-box {
  flex: 1;
  min-width: 110px;
  padding: .9rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,.15);
  text-align: center;
}
.hero-stat-box:last-child { border-right: none; }
.hero-stat-n { font-family: 'Sora', sans-serif; font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-l { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: .25rem; font-weight: 500; }

/* Features bar (contains feat-items + latest strip) */
.feat-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feat-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem .9rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all .22s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.feat-item:hover {
  border-color: var(--teal);
  background: var(--teal-lt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,.12);
}
.feat-ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-lt), rgba(13,148,136,.15));
  border: 1px solid rgba(13,148,136,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.feat-ttl { font-size: .85rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.feat-dsc { font-size: .72rem; color: var(--ink-2); margin-top: .15rem; line-height: 1.4; }

.feat-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .65rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: .775rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: all .18s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  white-space: nowrap;
}
.feat-chip:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-lt); text-decoration: none; }

/* Variant navigation (auto-rendered by _initVariantNav) */
.variant-nav { margin: 1.5rem 0; }
.variant-nav-title { font-size: 1.1rem; font-weight: 700; font-family: var(--font-head); margin-bottom: .75rem; color: var(--ink); }
.variant-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.variant-current { background: var(--teal) !important; border-color: var(--teal) !important; color: #fff !important; cursor: default; box-shadow: 0 2px 10px rgba(13,148,136,.25); }

/* Home page layout */
.home-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 2.5rem;
  align-items: start;
}

/* Browse section heading */
.browse-head { margin-bottom: 1.5rem; }
.browse-title { font-size: 1.5rem; margin-bottom: .3rem; }
.browse-sub   { font-size: .875rem; color: var(--ink-2); margin: 0; }

/* Category filter pills */
.cat-pills { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  box-shadow: var(--shadow);
  font-family: inherit;
}
.cat-pill:hover  { border-color: var(--teal); color: var(--teal); background: var(--teal-lt); }
.cat-pill.active { background: var(--teal-dk); border-color: var(--teal-dk); color: #fff; box-shadow: 0 2px 10px rgba(13,148,136,.25); }

/* Tool sections */
.tool-section { margin-bottom: 2.5rem; }
.tool-section.hidden { display: none !important; }
.tool-sec-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--border);
}
.tool-sec-ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.tool-sec-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.tool-sec-count {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .15rem .55rem;
  border-radius: 999px;
}

/* Tool grid */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }

/* Homepage tool card */
.htc {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
  box-shadow: var(--shadow);
}
.htc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--htc-accent, var(--teal));
  opacity: 0;
  transition: opacity .2s;
}
.htc:hover { border-color: var(--htc-accent, var(--teal)); box-shadow: var(--shadow-lg), 0 0 0 1px var(--htc-accent, var(--teal)); transform: translateY(-3px); }
.htc:hover::before { opacity: 1; }
.htc.hidden { display: none !important; }
.htc-ico  { font-size: 1.45rem; margin-bottom: .55rem; display: block; }
.htc-name { font-size: .875rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: .3rem; }
.htc-desc { font-size: .75rem; color: var(--ink-2); line-height: 1.45; }
.htc-badge {
  position: absolute;
  top: .55rem; right: .55rem;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .45rem;
  border-radius: 999px;
}
.htc-badge.b-hot  { background: #fef2f2; color: var(--rose);  border: 1px solid #fecdd3; }
.htc-badge.b-new  { background: var(--teal-lt); color: var(--teal); border: 1px solid var(--teal); }
.htc-badge.b-uk   { background: var(--sky-lt);  color: var(--sky);  border: 1px solid #bfdbfe; }
.htc-badge.b-usa  { background: var(--amber-lt); color: var(--amber); border: 1px solid #fde68a; }
.htc-badge.b-soon { background: var(--bg); color: var(--ink-2); border: 1px solid var(--border); }

/* Coming soon stub cards */
.htc-coming { opacity: .55; filter: grayscale(.3); cursor: default; }
.htc-coming:hover { transform: none !important; box-shadow: var(--shadow) !important; border-color: var(--border) !important; }
.htc-coming:hover::before { opacity: 0 !important; }

/* Section accent (top border colour per category) */
.sec-business .htc { --htc-accent: var(--rose); }
.sec-text      .htc { --htc-accent: var(--amber); }
.sec-lifestyle .htc { --htc-accent: var(--violet); }
.sec-finance   .htc { --htc-accent: var(--sky); }
.sec-health    .htc { --htc-accent: var(--lime); }
.sec-math      .htc { --htc-accent: var(--orange); }
.sec-web       .htc { --htc-accent: var(--pink); }
.sec-date      .htc { --htc-accent: var(--teal); }
.sec-developer .htc { --htc-accent: var(--indigo); }
.sec-home      .htc { --htc-accent: var(--cyan); }
.sec-image     .htc { --htc-accent: var(--emerald); }
.sec-engineering .htc { --htc-accent: var(--slate); }

/* Section icon backgrounds */
.sec-ico-business  { background: var(--rose-lt); }
.sec-ico-text      { background: var(--amber-lt); }
.sec-ico-lifestyle { background: var(--violet-lt); }
.sec-ico-finance   { background: var(--sky-lt); }
.sec-ico-health    { background: var(--lime-lt); }
.sec-ico-math      { background: var(--orange-lt); }
.sec-ico-web       { background: var(--pink-lt); }
.sec-ico-date      { background: var(--teal-lt); }

/* Home sidebar widgets */
.home-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.hsw { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hsw-head {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg);
}
.hsw-body { padding: 1rem; }

/* Popular tools list */
.pop-list { display: flex; flex-direction: column; gap: .45rem; }
.pop-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: all .18s;
  font-size: .8rem;
  font-weight: 500;
}
.pop-item:hover { background: var(--teal-lt); border-color: var(--teal); color: var(--teal); }
.pop-rank { font-weight: 700; color: var(--ink-2); font-size: .7rem; width: 16px; flex-shrink: 0; }
.pop-ico  { font-size: 1rem; }
.pop-name { flex: 1; }

/* Suggest / newsletter inputs inside home sidebar */
.suggest-form  { display: flex; flex-direction: column; gap: .55rem; }
.suggest-note  { font-size: .75rem; color: var(--ink-2); line-height: 1.6; margin-bottom: .25rem; }
.suggest-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .85rem;
  font-family: inherit;
  font-size: .83rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.suggest-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.suggest-input::placeholder { color: var(--ink-2); }

/* Why TrueTools section */
.why-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  text-align: center;
}
.why-section h2 { margin-bottom: .5rem; }
.why-sub { color: var(--ink-2); font-size: 1rem; max-width: 52ch; margin: 0 auto 0; }
.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}
.why-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card:nth-child(1) { border-top-color: var(--teal); }
.why-card:nth-child(2) { border-top-color: var(--rose); }
.why-card:nth-child(3) { border-top-color: var(--sky); }
.why-card:nth-child(4) { border-top-color: var(--amber); }
.why-card:nth-child(5) { border-top-color: var(--violet); }
.why-card:nth-child(6) { border-top-color: var(--lime); }
.why-card-ico { font-size: 1.75rem; margin-bottom: .7rem; }
.why-card h3  { font-size: 1rem; margin-bottom: .35rem; }
.why-card p   { font-size: .84rem; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Dark mode — homepage additions */
[data-theme="dark"] .feat-bar         { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }
[data-theme="dark"] .feat-item        { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); }
[data-theme="dark"] .feat-item:hover  { background: rgba(20,184,166,.12); border-color: rgba(20,184,166,.3); }
[data-theme="dark"] .feat-ico         { background: rgba(20,184,166,.15); border-color: rgba(20,184,166,.25); }
[data-theme="dark"] .hsw-head         { background: rgba(255,255,255,.04); border-bottom-color: rgba(255,255,255,.08); }
[data-theme="dark"] .pop-item         { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .pop-item:hover   { background: rgba(20,184,166,.14); }
[data-theme="dark"] .suggest-input    { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .tool-sec-count   { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .htc-badge.b-hot  { background: rgba(251,113,133,.14);  border-color: rgba(251,113,133,.28); }
[data-theme="dark"] .htc-badge.b-uk   { background: rgba(56,189,248,.14);   border-color: rgba(56,189,248,.28); }
[data-theme="dark"] .htc-badge.b-usa  { background: rgba(251,191,36,.13);   border-color: rgba(251,191,36,.26); }
[data-theme="dark"] .why-section      { background: rgba(255,255,255,.04); }
[data-theme="dark"] .why-card         { background: rgba(255,255,255,.06); }
[data-theme="dark"] .feat-chip        { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

/* Responsive — homepage */
@media (max-width: 1080px) {
  .home-wrap { grid-template-columns: 1fr; }
  .home-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .feat-bar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .home-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-bar-inner { grid-template-columns: 1fr 1fr; }
  .cat-pills { gap: .3rem; }
  .cat-pill  { font-size: .75rem; padding: .35rem .7rem; }
}

/* ── UI/UX PRO MAX — Validated improvements ────────────────────────── */

/* 1. Inline input validation states (UX: validate on blur, show state near field) */
.input.is-invalid, .select.is-invalid {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(225,29,72,.1);
  background: rgba(225,29,72,.02);
}
.input.is-valid, .select.is-valid {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(77,124,15,.1);
}
.field-error {
  display: none;
  font-size: .8rem;
  color: var(--rose);
  margin-top: .35rem;
  font-weight: 500;
}
.input.is-invalid ~ .field-error,
.select.is-invalid ~ .field-error { display: block; }

/* 2. Number inputs — right-align values for readability (tabular figures) */
.input[type="number"] { text-align: right; }

/* 3. Neumorphism-lite result items — soft inset highlight on result cards
      (Calculator & Converter product type recommendation: Neumorphism + Minimalism) */
.result-item {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 3px rgba(0,0,0,.06);
}
/* 4. Result label — tighter letter-spacing on .result-label alias */
.result-label {
  font-size: .7rem;
  color: var(--ink-2);
  margin-top: .4rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

/* 5. cursor:pointer on all interactive non-button elements */
.htc, .cat-pill, .pop-item, .feat-chip,
.faq-q, .faq-question, .reaction-btn,
.copy-btn, .related-tools a { cursor: pointer; }

/* 6. Button active-press scale (tactile feedback within 100ms) */
.btn:active { transform: scale(0.97); box-shadow: none !important; }

/* 7. Input helper text — visible below complex inputs */
.field-hint {
  font-size: .78rem;
  color: var(--ink-2);
  margin-top: .35rem;
  line-height: 1.4;
}

/* 8. Disabled button state — clear non-interactive visual */
.btn:disabled, .btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* 9. Success toast / inline confirmation — used by submitIdea() etc. */
.toast-success {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--lime-lt);
  border: 1.5px solid var(--lime);
  color: var(--lime);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  animation: fadeIn .3s ease;
}

/* ── TOOL-SPECIFIC COMPONENTS (moved from inline <style> blocks) ── */

/* Tip button group — tip-calculator-usa */
.tip-btn-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.tip-btn {
  padding: .5rem 1.1rem;
  border: 2px solid var(--violet);
  background: transparent;
  color: var(--violet);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  min-height: 40px;
}
.tip-btn.active, .tip-btn:hover { background: var(--violet); color: #fff; }
[data-theme="dark"] .tip-btn { border-color: #c4b5fd; color: #c4b5fd; }
[data-theme="dark"] .tip-btn.active,
[data-theme="dark"] .tip-btn:hover  { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* Tip guide table */
.tip-guide-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .875rem; }
.tip-guide-table th { background: var(--violet); color: #fff; padding: .5rem .75rem; text-align: left; }
.tip-guide-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--border); }
.tip-guide-table tr:last-child td { border-bottom: none; }
.tip-guide-table tr:nth-child(even) td { background: var(--violet-lt); }

/* Swap button — currency converter */
.swap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--violet);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: .1rem;
  transition: background .15s, transform .15s;
}
.swap-btn:hover { background: #5b21b6; transform: rotate(180deg); }
[data-theme="dark"] .swap-btn { background: #7c3aed; }
[data-theme="dark"] .swap-btn:hover { background: #6d28d9; }

/* Currency row — flex layout for converter inputs */
.currency-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.currency-row .form-group,
.currency-row .input-group { flex: 1; min-width: 140px; }

/* Milestone grid — age-calculator */
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.milestone-card {
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.milestone-card .m-label { font-size: .78rem; color: var(--ink-2); }
.milestone-card .m-value { font-size: .95rem; font-weight: 600; margin-top: .1rem; color: var(--violet); }
.milestone-card .m-date  { font-size: .8rem; color: var(--ink); margin-top: .1rem; }
[data-theme="dark"] .milestone-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .milestone-card .m-value { color: #c4b5fd; }

/* Converted display — currency converter large result */
.converted-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--violet);
  margin: .5rem 0 .25rem;
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: anywhere;
}
[data-theme="dark"] .converted-display { color: #c4b5fd; }

.rate-line { font-size: .875rem; color: var(--ink-2); margin-bottom: .5rem; }

/* Disclaimer box — YMYL warning variant */
.disclaimer-box {
  background: rgba(254,243,199,.50);
  border: 1px solid rgba(253,230,138,.80);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #78350f;
  margin-top: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-theme="dark"] .disclaimer-box {
  background: rgba(251,191,36,.10);
  border-color: rgba(251,191,36,.25);
  color: #fcd34d;
}

/* Quick table — reusable accent table for conversion/reference data */
.quick-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .875rem; }
.quick-table th { background: var(--violet); color: #fff; padding: .45rem .75rem; text-align: left; }
.quick-table td { padding: .4rem .75rem; border-bottom: 1px solid var(--border); }
.quick-table tr:last-child td { border-bottom: none; }
.quick-table tr:nth-child(even) td { background: var(--violet-lt); }
[data-theme="dark"] .quick-table th { background: #7c3aed; }

/* Name grid — business-name-generator */
.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.name-card {
  background: rgba(255,255,255,.45);
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .625rem;
  transition: border-color .2s, box-shadow .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.name-card:hover { border-color: var(--rose); box-shadow: var(--shadow); }
.name-card .name-text {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.name-card .name-style-tag {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rose);
}
.name-card button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .3rem .75rem;
  font-family: var(--font-body);
  font-size: .8125rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  color: var(--ink-2);
}
.name-card button:hover { background: var(--rose-lt); border-color: var(--rose); color: var(--rose); }
.name-card button.copied { background: var(--rose); border-color: var(--rose); color: #fff; }
#generate-btn { min-width: 180px; }
[data-theme="dark"] .name-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .name-card:hover { border-color: #fda4af; }
[data-theme="dark"] .name-card .name-style-tag { color: #fda4af; }

/* 10. Dark mode: glass inner shadow for dark surfaces */
[data-theme="dark"] .result-item {
  box-shadow: 0 2px 10px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10);
}

/* PRINT STYLES ─────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .ad-banner, .ad-slot, .sidebar,
  .reactions, #share, .comments-section, .newsletter-form,
  .hamburger, .faq, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .container { max-width: 100%; padding: 0; }
  .layout { display: block; }
  .tool-card { box-shadow: none; border: 1px solid #ccc; }
  .result-box { border: 1px solid #ccc; background: #f9f9f9 !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
  a[href^="/"]:after, a[href^="#"]:after { content: ""; }
}

/* ══════════════════════════════════════════════════════════════════════
   GLASS COMPONENT EFFECTS
   Component-specific glass overrides — tinted result boxes, glass
   pop-items, suggest-inputs, and print fallbacks.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Result box — tinted accent glass (light mode) ────────────────── */
.result-box        { background: rgba(204,251,241,.50); border: 1.5px solid rgba(13,148,136,.30); }
.result-box.rose   { background: rgba(255,228,230,.50); border-color: rgba(225,29,72,.30); }
.result-box.amber  { background: rgba(254,243,199,.50); border-color: rgba(217,119,6,.30); }
.result-box.violet { background: rgba(237,233,254,.50); border-color: rgba(124,58,237,.30); }
.result-box.sky    { background: rgba(224,242,254,.50); border-color: rgba(3,105,161,.30); }
.result-box.lime   { background: rgba(236,252,203,.50); border-color: rgba(77,124,15,.30); }
.result-box.pink   { background: rgba(252,231,243,.50); border-color: rgba(190,24,93,.30); }
.result-box.orange { background: rgba(255,237,213,.50); border-color: rgba(194,65,12,.30); }
.result-box.teal   { background: rgba(204,251,241,.50); border-color: rgba(13,148,136,.30); }
.result-box.indigo { background: rgba(224,231,255,.50); border-color: rgba(79,70,229,.30); }
.result-box.cyan   { background: rgba(207,250,254,.50); border-color: rgba(8,145,178,.30); }

/* ── Result items — inner frosted glass ───────────────────────────── */
.result-item {
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 2px 8px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.9);
}

/* ── Suggest / newsletter inputs inside home sidebar ─────────────── */
.suggest-input {
  background: rgba(255,255,255,.65);
  border-color: rgba(255,255,255,.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.suggest-input:focus { background: rgba(255,255,255,.92); }
[data-theme="dark"] .suggest-input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }

/* ── Homepage sidebar inner glass ─────────────────────────────────── */
.hsw-head { background: rgba(255,255,255,.28); border-bottom-color: rgba(255,255,255,.40); }

/* ── FAQ question row — transparent on glass panel ───────────────── */
.faq-q, .faq-question             { background: transparent; }
.faq-q:hover, .faq-question:hover { background: rgba(255,255,255,.32); }

/* ── Pop items — glass ────────────────────────────────────────────── */
.pop-item {
  background: rgba(255,255,255,.42);
  border-color: rgba(255,255,255,.58);
}
.pop-item:hover { background: rgba(13,148,136,.14); border-color: var(--teal); }

/* ── Why section — glass surface ──────────────────────────────────── */
.why-section {
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Features bar — glass surface ─────────────────────────────────── */
.feat-bar {
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,.5);
}
.feat-item {
  background: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 1px 4px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ── Search dropdowns — heavy glass for legibility ───────────────── */
#search-results,
#hero-search-results {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,.80);
}
.search-result-item:hover { background: rgba(13,148,136,.10); }

/* ── Nav search — glass ───────────────────────────────────────────── */
.nav-search {
  background: rgba(255,255,255,.58);
  border-color: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Featured chips — light glass ────────────────────────────────── */
.feat-chip {
  background: rgba(255,255,255,.50);
  border-color: rgba(255,255,255,.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Scientific Calculator Keypad ─────────────────────────────────── */
.calc-keypad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  margin-top: 1rem;
}
.calc-btn {
  min-height: 48px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  border-radius: var(--radius);
  transition: transform .1s, box-shadow .1s;
}
.calc-btn:active { transform: scale(.95); }
.calc-btn-empty { visibility: hidden; pointer-events: none; }
.calc-btn-zero { grid-column: span 2; }
.calc-btn-equals { grid-row: span 2; font-size: 1.5rem; }
#calc-display-wrap { text-align: right; padding: .5rem 0; }
#calc-expression { font-size: .875rem; min-height: 1.25rem; word-break: break-all; }
#calc-result { font-size: 2rem; font-weight: 800; word-break: break-all; }
#calc-memory-indicator { text-align: right; min-height: 1.25rem; color: var(--orange); font-weight: 600; }

@media (max-width: 480px) {
  .calc-keypad { gap: .35rem; }
  .calc-btn { min-height: 42px; font-size: .85rem; }
  #calc-result { font-size: 1.5rem; }
}

/* ── Print: strip glass (backdrop-filter doesn't print) ──────────── */
@media print {
  body::before { display: none; }
  .tool-card, .sidebar-widget, .result-box, .result-item,
  .htc, .hsw, .why-card, .faq-item, .badge, .cat-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fff !important;
    border-color: #ccc !important;
  }
}

/* ── INVOICE GENERATOR ── */

@media print {
  body > *:not(#invoice-preview) { display: none !important; }
  #invoice-preview { display: block !important; }
  .ad-banner, #site-header, #site-footer, .sidebar, .reactions, .faq, .comments-section { display: none !important; }
}

/* Invoice preview styles */
#invoice-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  font-size: .9375rem;
}
.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.inv-from { max-width: 50%; }
.inv-from .inv-business-name {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .25rem;
}
.inv-from address {
  font-style: normal;
  font-size: .875rem;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.inv-meta { text-align: right; }
.inv-meta .inv-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: .5rem;
}
.inv-meta table { margin-left: auto; font-size: .875rem; }
.inv-meta td { padding: .2rem .5rem; }
.inv-meta td:first-child { font-weight: 600; color: var(--ink-2); text-align: right; }
.inv-meta td:last-child { color: var(--ink); }
.inv-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.inv-party-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  margin-bottom: .35rem;
}
.inv-party-name { font-weight: 700; font-size: 1rem; }
.inv-party-addr {
  font-size: .875rem;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.inv-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.inv-items-table th {
  background: var(--ink);
  color: #fff;
  padding: .65rem .875rem;
  text-align: left;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.inv-items-table th:last-child { text-align: right; }
.inv-items-table td {
  padding: .65rem .875rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.inv-items-table td:nth-child(2),
.inv-items-table td:nth-child(3),
.inv-items-table td:nth-child(4) { text-align: right; }
.inv-items-table tr:last-child td { border-bottom: none; }
.inv-totals {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.inv-totals table { min-width: 260px; font-size: .9rem; }
.inv-totals td { padding: .4rem .875rem; }
.inv-totals td:first-child { color: var(--ink-2); font-weight: 600; }
.inv-totals td:last-child { text-align: right; font-weight: 600; }
.inv-total-row td {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--rose);
  border-top: 2px solid var(--rose);
  padding-top: .65rem;
}
.inv-notes {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: .875rem;
  color: var(--ink-2);
}
.inv-notes-label { font-weight: 700; color: var(--ink); margin-bottom: .35rem; }

/* Form line items table */
#items-table-wrapper { overflow-x: auto; margin-bottom: .875rem; }
.items-form-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.items-form-table th {
  background: var(--bg);
  padding: .5rem .75rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 2px solid var(--border);
}
.items-form-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
.items-form-table input { min-height: 38px; font-size: .875rem; }
.line-total { font-weight: 600; color: var(--teal-dk); text-align: right; padding: .4rem .75rem; vertical-align: middle; }

/* ── Cookie Consent Banner ─────────────────────────────────────────── */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.consent-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.consent-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-lg);
}
[data-theme="dark"] .consent-inner {
  background: rgba(30,30,46,.92);
}
.consent-inner p {
  margin: 0;
  font-size: .875rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.consent-inner a {
  color: var(--teal);
  text-decoration: underline;
}
.consent-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .consent-inner {
    flex-direction: column;
    text-align: center;
  }
  .consent-actions { width: 100%; justify-content: center; }
}

/* ── HOW IT WORKS — GEO summary box ─────────────────────────────── */
.hiw-box {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.hiw-snippet {
  font-size: .925rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 .75rem;
  font-weight: 500;
}
.hiw-box h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  color: var(--ink);
}
.hiw-box ol {
  margin: 0;
  padding-left: 1.25rem;
  counter-reset: hiw;
  list-style: none;
}
.hiw-box ol li {
  position: relative;
  padding-left: .25rem;
  margin-bottom: .4rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-2);
  counter-increment: hiw;
}
.hiw-box ol li::before {
  content: counter(hiw) ".";
  position: absolute;
  left: -1.25rem;
  font-weight: 600;
  color: var(--teal);
}
.hiw-box ol li:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  .hiw-box { padding: 1rem 1.15rem; }
  .hiw-box ol li { font-size: .85rem; }
}
