/* allonlinetools.org style - Clean, modern, fast */
:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --primary: #0f172a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: #e2e8f0;
  --hero-start: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-hover: 0 10px 40px -10px rgba(0,0,0,.15);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-card: #111a2b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #0b1220;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --border: #1f2a44;
  --hero-start: #111a2b;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 10px 40px -10px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-top-strip {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #4a3728 0%, #5c4033 50%, #4a3728 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  flex-wrap: nowrap;
  position: relative;
}

/* Hamburger + search + theme grouped on the right */
.header-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
}

.header-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.header-toggle:hover {
  background: var(--border);
  color: var(--accent);
}

.header-toggle .bi-list { display: block; }
.header-toggle .bi-x { display: none; }
.header-toggle[aria-expanded="true"] .bi-list { display: none; }
.header-toggle[aria-expanded="true"] .bi-x { display: block; }

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.9;
}

.logo:active {
  transform: scale(0.98);
}

.logo-icon {
  color: var(--accent);
  font-size: 1.35rem;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-dot {
  font-weight: 500;
  color: var(--text-muted);
}

/* Sidebar navigation (hamburger menu) */
.header-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.sidebar-open .header-sidebar-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  z-index: 1100;
  width: min(320px, 92vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

body.sidebar-open .header-sidebar {
  transform: translateX(0);
}

.header-sidebar__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.header-sidebar__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Mobile-only: search lives at top of sidebar (hidden on desktop via media query below) */
.header-sidebar__search {
  display: none;
  flex-shrink: 0;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  z-index: 2;
}

.header-sidebar__search .header-search-wrap {
  width: 100%;
  max-width: none;
  flex: none;
}

.header-sidebar__search .header-search-wrap input {
  width: 100%;
}

.header-sidebar__search .header-search-results {
  z-index: 20;
}

.header-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.header-sidebar__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.header-sidebar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.header-sidebar__close:hover {
  background: var(--border);
  color: var(--accent);
}

.nav--sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px 8px;
}

.nav--sidebar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav--sidebar a:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.header-sidebar__legal {
  margin-top: auto;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.header-sidebar__legal a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.header-sidebar__legal a:hover {
  color: var(--accent);
}

.header-search-wrap,
.header-search {
  flex: 1 1 160px;
  width: min(380px, 46vw);
  max-width: min(380px, 46vw);
  min-width: 120px;
  flex-shrink: 1;
  position: relative;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.header-search-wrap input,
.header-search input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  width: 180px;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search-wrap input::placeholder,
.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search-wrap input:hover,
.header-search input:hover {
  border-color: #cbd5e1;
}

.header-search-wrap input:focus,
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: var(--bg-card);
}

.header-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.header-search-results.is-open {
  display: block;
}

.header-search-results:empty {
  display: none !important;
}

.header-search-results a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.header-search-results a:last-child {
  border-bottom: none;
}

.header-search-results a:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
}

.header-search-results .search-result-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--hero-start) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto 48px;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-search input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.hero-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
}

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

.btn:active {
  transform: scale(0.98);
}

.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

/* Sections common */
section {
  padding: 56px 0;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Categories */
.categories {
  background: var(--bg-card);
}

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

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .1s;
  display: block;
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.cat-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* How it works */
.how-it-works {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.step-num {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Tool sections */
.tools-section {
  background: var(--bg-card);
}

.tools-section:nth-child(even) {
  background: var(--bg);
}

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

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .1s;
  display: block;
}

.tools-section:nth-child(even) .tool-card {
  background: var(--bg-card);
}

.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
}

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials {
  background: var(--bg-card);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-style: normal;
}

.testimonial p {
  margin-bottom: 12px;
  color: var(--text);
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta p {
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
}

.cta .btn {
  background: var(--accent);
  color: #fff;
}

.cta .btn:hover {
  background: #60a5fa;
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  padding: 48px 0 24px;
}

.footer-top {
  margin-bottom: 32px;
}

.footer-top .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-top .logo-icon {
  color: var(--accent);
}

.footer-top p {
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 400px;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-links h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: #fff;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

/* Tool page layout (shared) */
/* Tool pages: directory-style footer (brand + columns + internal links) */
footer.tool-site-footer,
footer.tool-site-footer * {
  -webkit-tap-highlight-color: transparent;
}

footer.tool-site-footer a,
footer.tool-site-footer a:hover,
footer.tool-site-footer a:focus,
footer.tool-site-footer a:focus-visible {
  text-decoration: none !important;
  text-underline-offset: unset;
}

footer.tool-site-footer ul,
footer.tool-site-footer ol {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  margin-left: 0 !important;
}

footer.tool-site-footer li {
  list-style: none !important;
  list-style-type: none !important;
  display: block !important;
}

/* Do not use ::marker { content: none } — unreliable; list-style + block li instead */

footer.tool-site-footer.tool-site-footer--fullbleed {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 56px;
  margin-bottom: 0;
  padding: 0 0 28px;
  box-sizing: border-box;
  font-size: 0.8125rem;
  line-height: 1.5;
  background-color: #0f172a !important;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 48%, #020617 100%);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.35);
}

.tool-site-footer {
  margin-top: 56px;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.88);
  padding: 0 0 32px;
}

.tool-site-footer__accent-bar {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb, var(--accent), #38bdf8, var(--accent), #2563eb);
  opacity: 1;
}

.tool-page .tool-site-footer .container {
  max-width: 1200px;
}

.tool-site-footer__brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 28px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.tool-site-footer__logo:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.tool-site-footer__logo i {
  color: var(--accent);
  font-size: 1.1rem;
}

.tool-site-footer__mission {
  flex: 1;
  min-width: 200px;
  max-width: 480px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.tool-site-footer__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-site-footer__quick-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.tool-site-footer__link--pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none !important;
}

.tool-site-footer__link--pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

.tool-site-footer__all-tools {
  display: block !important;
  width: 100%;
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-site-footer__heading--block {
  margin-bottom: 12px;
}

/* Four real columns: flexbox (column-count often fails / gets overridden) */
footer.tool-site-footer .tool-site-footer__tools-multicol {
  display: flex !important;
  flex-flow: row nowrap !important;
  gap: 1.25rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  align-items: flex-start !important;
}

footer.tool-site-footer .tool-site-footer__tools-multicol .tool-site-footer__tools-col {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

footer.tool-site-footer .tool-site-footer__tools-multicol .tool-site-footer__tools-col .tool-site-footer__links {
  display: block !important;
}

@media (max-width: 1100px) {
  footer.tool-site-footer .tool-site-footer__tools-multicol {
    flex-flow: row wrap !important;
  }

  footer.tool-site-footer .tool-site-footer__tools-multicol .tool-site-footer__tools-col {
    flex: 1 1 calc(50% - 0.75rem) !important;
    max-width: calc(50% - 0.625rem);
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  footer.tool-site-footer .tool-site-footer__tools-multicol .tool-site-footer__tools-col {
    flex: 1 1 100% !important;
    max-width: 100%;
  }
}

.tool-site-footer__about-block {
  padding: 16px 0 6px;
}

.tool-site-footer__lead {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.tool-site-footer__keyword-band--last {
  margin-top: 10px;
  padding: 16px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.tool-site-footer__bottom--final {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tool-site-footer__keywords--dense {
  margin-top: 8px !important;
  font-size: 0.62rem !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  letter-spacing: 0.01em;
}

.tool-site-footer__heading {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.52);
  margin: 0 0 10px;
}

.tool-site-footer__links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tool-site-footer__links li {
  margin-bottom: 5px;
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
}


.tool-site-footer__links a,
.tool-site-footer a.tool-site-footer__link {
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  font-size: 0.74rem;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.tool-site-footer__links a:hover,
.tool-site-footer a.tool-site-footer__link:hover {
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0.95;
}


.tool-site-footer__keywords {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

.tool-site-footer__bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.tool-site-footer__about-block + .tool-site-footer__keyword-band--last {
  margin-top: 20px;
}

.tool-site-footer__bottom strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.tool-site-footer__copy {
  margin-top: 8px;
  font-size: 0.68rem;
  opacity: 0.88;
}

.tool-site-footer__copy a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none !important;
}

.tool-site-footer__copy a:hover {
  text-decoration: none !important;
  color: #fff;
}

.tool-page {
  min-height: 100vh;
  padding-bottom: 48px;
}

.tool-page .container {
  max-width: 900px;
}

/* Header always same width on all pages (ignore tool-page narrow container) */
.tool-page .header .header-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tool-page h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.tool-page .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
}

.tool-page .back:hover {
  text-decoration: underline;
}

.tool-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
}

.tool-box label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.tool-box textarea,
.tool-box input[type="text"],
.tool-box input[type="number"],
.tool-box input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.tool-box textarea {
  min-height: 120px;
  resize: vertical;
}

.tool-box input:focus,
.tool-box textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.tool-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Tool pages: brief action progress on primary / tool action buttons (header.js) */
@keyframes aot-action-progress-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes aot-action-spin {
  to { transform: rotate(360deg); }
}

.tool-page main .btn.btn-action-progress,
.tool-page main .compress-action-btn.btn-action-progress {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.tool-page main .compress-action-btn.btn-action-progress {
  padding-right: 2.75rem;
}

/* Primary blue buttons: light shimmer + spinner */
.tool-page main .btn.btn-primary.btn-action-progress::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  background-size: 200% 100%;
  animation: aot-action-progress-shimmer 0.85s ease-in-out infinite;
}

.tool-page main .btn.btn-secondary.btn-action-progress::before,
.tool-page main .compress-action-btn.btn-action-progress::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  background-size: 200% 100%;
  opacity: 0.9;
  animation: aot-action-progress-shimmer 0.85s ease-in-out infinite;
}

.tool-page main .btn.btn-primary.btn-action-progress::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  animation: aot-action-spin 0.65s linear infinite;
}

.tool-page main .btn.btn-secondary.btn-action-progress::after,
.tool-page main .compress-action-btn.btn-action-progress::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: aot-action-spin 0.65s linear infinite;
}

:root[data-theme="dark"] .tool-page main .btn.btn-secondary.btn-action-progress::after,
:root[data-theme="dark"] .tool-page main .compress-action-btn.btn-action-progress::after {
  border-color: rgba(96, 165, 250, 0.25);
  border-top-color: var(--accent);
}

.tool-page main .btn.btn-action-progress {
  padding-right: 2.5rem;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.output-box {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  word-break: break-all;
}

.output-box pre {
  white-space: pre-wrap;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hide header search; show search at top of sidebar menu instead */
  .header-toolbar .header-nav-wrap > .header-search-wrap {
    display: none !important;
  }

  .header-sidebar__search {
    display: block;
  }

  .header-inner {
    padding: 10px 12px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .header-search-wrap input,
  .header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .logo-text {
    font-size: 1rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat strong {
    font-size: 1.25rem;
  }

  section {
    padding: 40px 0;
  }

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

/* Search highlight */
.tool-card.hidden,
.category-card.hidden {
  display: none !important;
}

/* Print: hide header, nav, buttons on tool pages */
@media print {
  .header,
  .header-sidebar,
  .header-sidebar-backdrop,
  .back,
  .tool-actions,
  .btn,
  .tool-box input[type="file"],
  .tool-box select {
    display: none !important;
  }
  .tool-page .container {
    max-width: 100%;
  }
}

/*
 * Tool page footer: high-specificity link/list reset so vendor CSS + UA :any-link
 * cannot restore bullets or underlines (keep this block last in this file).
 */
html body footer.tool-site-footer a:any-link,
html body footer.tool-site-footer a:-webkit-any-link {
  text-decoration: none !important;
  text-decoration-line: none !important;
  -webkit-text-decoration: none !important;
}

html body footer.tool-site-footer .tool-site-footer__links,
html body footer.tool-site-footer ul,
html body footer.tool-site-footer ol {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  margin-left: 0 !important;
}

html body footer.tool-site-footer .tool-site-footer__links li,
html body footer.tool-site-footer ul > li {
  list-style: none !important;
  list-style-type: none !important;
  display: block !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
