/* ToolShoppy — Global Design System */
:root {
  --primary: #E11D48;
  --primary-dark: #BE123C;
  --primary-darker: #9F1239;
  --primary-tint: #FFF1F2;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --bg: #FAF9FA;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-premium: 0 12px 30px -10px rgba(225,29,72,0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --container: 1140px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --primary: #FB7185;
  --primary-dark: #F43F5E;
  --primary-darker: #FDA4AF;
  --primary-tint: rgba(225,29,72,0.12);
  --bg: #0B0607;
  --card: #170F11;
  --text: #F1F5F9;
  --text-muted: #A1A1AA;
  --border: rgba(225,29,72,0.16);
  --shadow: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-premium: 0 12px 30px -10px rgba(225,29,72,0.35);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(225,29,72,0.06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245,158,11,0.05), transparent);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(225,29,72,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(159,18,57,0.08), transparent);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}
:root[data-theme="dark"] .site-header {
  background: rgba(11,6,7,0.75);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.logo span { -webkit-text-fill-color: var(--text); color: var(--text); }
.logo .icon-svg {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  max-width: 1.35rem;
  max-height: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
}
.logo .logo-mark {
  width: 1.6rem;
  height: 1.6rem;
  min-width: 1.6rem;
  min-height: 1.6rem;
  max-width: 1.6rem;
  max-height: 1.6rem;
  flex-shrink: 0;
  object-fit: contain;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: inline-block; }

/* Tabler SVG icons (sprite) — pin size hard: bare <svg> defaults to 300×150 and blows up flex layouts */
.icon-svg {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  max-width: 2rem;
  max-height: 2rem;
  overflow: hidden;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
  flex-shrink: 0;
  box-sizing: content-box;
}
.icon-svg use { pointer-events: none; }

.site-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.site-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  outline: none;
  background: var(--card);
  color: var(--text);
}
.site-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.site-search input::placeholder { color: var(--text-muted); }

/* Header nav (desktop only — search + theme toggle already crowd the mobile header) */
.site-nav { display: none; align-items: center; gap: 2px; flex-shrink: 0; }
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-tint); }
@media (min-width: 900px) {
  .site-nav { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-premium); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(0.95); }
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 36px 20px 22px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(225,29,72,0.15);
}
:root[data-theme="dark"] .hero-badge { color: var(--primary); }
.hero-badge .icon-svg { width: 0.95rem; height: 0.95rem; min-width: 0.95rem; min-height: 0.95rem; }
.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero h1 .hero-accent {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Sticky category filter bar */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  padding: 12px 0 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.filter-bar .filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 2px 0 2px;
}
.filter-bar .filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.2;
  max-height: 2.5rem;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.filter-chip:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(225,29,72,0.12); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-premium); }
.filter-chip--favorites { color: #B45309; background: rgba(217,119,6,0.08); }
.filter-chip--favorites .icon-svg { fill: currentColor; }
.filter-chip--image { color: #0D9488; background: rgba(13,148,136,0.08); }
.filter-chip--pdf { color: #DC2626; background: rgba(220,38,38,0.08); }
.filter-chip--finance { color: #D97706; background: rgba(217,119,6,0.08); }
.filter-chip--video { color: #7C3AED; background: rgba(124,58,237,0.08); }
.filter-chip--misc { color: #2563EB; background: rgba(37,99,235,0.08); }
.filter-chip.active.filter-chip--favorites,
.filter-chip.active.filter-chip--image,
.filter-chip.active.filter-chip--pdf,
.filter-chip.active.filter-chip--finance,
.filter-chip.active.filter-chip--video,
.filter-chip.active.filter-chip--misc { color: #fff; }
.filter-chip.active.filter-chip--favorites .icon-svg { fill: #fff; }
.filter-chip .icon-svg {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  margin: 0;
  vertical-align: middle;
}

/* Anchor targets scrolled to from .site-nav — offset for the sticky header + filter bar */
#available-section, #coming-section, #about-section, #faq-section, #trending-section {
  scroll-margin-top: 120px;
}

/* Featured (live) tools strip */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  max-width: 1.15rem;
  max-height: 1.15rem;
  margin: 0;
  color: #16A34A;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.featured-grid .tool-card {
  border-color: rgba(225,29,72,0.25);
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--card) 55%);
}
:root[data-theme="dark"] .featured-grid .tool-card {
  background: linear-gradient(180deg, rgba(225,29,72,0.10) 0%, var(--card) 55%);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Trending searches strip (Google Trends) */
.trending-section { margin-bottom: 8px; }
.trending-section-sub { font-size: 0.85rem; color: var(--text-muted); margin: -4px 0 12px; }
.trending-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.trend-pill {
  display: inline-flex; align-items: center; padding: 7px 14px; font-size: 0.78rem; font-weight: 600;
  color: var(--primary-dark); background: var(--primary-tint); border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 999px; text-decoration: none; transition: background .2s ease, border-color .2s ease;
}
.trend-pill:hover { background: var(--card); border-color: var(--primary); color: var(--primary); }
:root[data-theme="dark"] .trend-pill { color: var(--primary); background: rgba(225, 29, 72, 0.1); }
.filter-chip--trending.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding-bottom: 20px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.tool-card:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .tool-card:hover {
  background: rgba(225, 29, 72, 0.08);
}
.tool-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  height: auto;
  color: inherit;
}
.tool-card .icon .icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  max-width: 1.5rem;
  max-height: 1.5rem;
}
.tool-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.25;
}
.tool-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.tool-card .soon {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.6rem;
  background: var(--border);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Trust badge */
.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 20px 0;
}
:root[data-theme="dark"] .trust-badge {
  background: rgba(16,185,129,0.12);
  color: #34D399;
  border-color: rgba(52,211,153,0.3);
}

/* Homepage feature grid (Privacy Shield section) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 8px;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-card .icon-tile { margin-bottom: 14px; }
.feature-card h3 { font-size: 0.98rem; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* Tool page layout */
.tool-page {
  padding: 24px 0 60px;
}
.tool-header { text-align: center; margin-bottom: 20px; }
.tool-header h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; }
.tool-header p { color: var(--text-muted); margin-top: 6px; }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 960px) {
  .tool-layout.with-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.tool-card-main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}

/* Drop zone — iLovePDF-style big CTA */
.drop-zone {
  border: 2px dashed rgba(225,29,72,0.35);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  background: linear-gradient(180deg, var(--card) 0%, var(--primary-tint) 100%);
}
:root[data-theme="dark"] .drop-zone {
  background: linear-gradient(180deg, var(--card) 0%, rgba(225,29,72,0.08) 100%);
}
.drop-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: 0 0 0 4px rgba(225,29,72,0.15);
}
.drop-zone .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--primary);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.drop-zone .icon .icon-svg {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  color: var(--primary);
}
.drop-zone .dz-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-premium);
  pointer-events: none;
}
.drop-zone p { color: var(--text-muted); font-size: 0.9rem; }
.drop-zone strong { color: var(--primary-dark); }
.drop-zone input[type=file] { display: none; }
.drop-zone-hint { font-size: 0.8rem !important; margin-top: 4px; }

/* Upload file preview (shared across tools) */
.file-upload-preview {
  margin-top: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.file-preview-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 12px;
}
.file-preview-status .icon-svg { flex-shrink: 0; color: var(--success); }
.file-upload-preview-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.file-upload-preview-inner.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.file-preview-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.file-preview-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  max-height: 220px;
  overflow: hidden;
  background: var(--primary-tint);
}
:root[data-theme="dark"] .file-preview-media { background: rgba(225, 29, 72, 0.08); }
.file-preview-media img,
.file-preview-media video {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.file-preview-media audio {
  width: 100%;
  padding: 12px;
}
.file-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: linear-gradient(145deg, var(--primary-tint), var(--card));
}
.file-preview-icon.is-pdf { color: var(--primary-dark); }
.file-preview-icon.is-doc { color: #2563EB; }
.file-preview-loading {
  padding: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.file-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}
.file-preview-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-preview-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.file-preview-more {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Progress */
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0;
  display: none;
}
.progress-bar.active { display: block; }
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width .2s ease;
}

/* Preset chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Result panel */
.result-panel {
  margin-top: 20px;
  display: none;
}
.result-panel.active { display: block; }
.compare-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.compare-box {
  flex: 1;
  min-width: 140px;
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
}
.compare-box .label { font-size: 0.75rem; color: var(--text-muted); }
.compare-box .value { font-size: 1.2rem; font-weight: 800; margin-top: 4px; }
.compare-box.saved .value { color: var(--success); }

/* File list */
.file-list { margin-top: 14px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.file-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .remove { color: var(--danger); font-weight: 700; }

/* Short-link history rows (URL shortener) */
.short-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 10px;
}
.short-history-header h3 { font-size: 1rem; margin: 0; }
.short-history-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
}
.short-history-header button:hover { color: var(--primary-dark); }
.short-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.short-history-item .sh-info { flex: 1; min-width: 0; }
.short-history-item .sh-short {
  display: block;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.9rem;
  word-break: break-all;
}
.short-history-item .sh-original {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.short-history-item .sh-actions { display: flex; gap: 4px; flex-shrink: 0; }
.short-history-item .sh-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
}
.short-history-item .sh-actions button:hover { color: var(--primary); border-color: var(--primary); }
.short-history-item .sh-actions button.remove:hover { color: var(--danger); border-color: var(--danger); }
.short-history-empty {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 18px 0;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.info-box h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 8px; }
.info-box ul { padding-left: 18px; margin-top: 6px; }

/* Ads — reserved heights for CLS; real units injected by ads.js when slot IDs exist */
.ad-slot {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  overflow: hidden;
  min-height: 90px;
  width: 100%;
}
.ad-slot[data-ad-ready="1"] {
  background: transparent;
  border-style: solid;
  border-color: transparent;
}
.ad-slot .ad-label { opacity: 0.55; letter-spacing: 0.04em; text-transform: uppercase; }
.ad-top { margin: 16px 0; min-height: 90px; }
.ad-sidebar { min-height: 250px; }
.ad-incontent { margin: 24px 0; min-height: 90px; }
.ad-sticky-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  min-height: 60px;
  border-radius: 0;
  border-left: none; border-right: none; border-bottom: none;
  display: none;
}
@media (max-width: 640px) {
  .ad-sticky-footer { display: flex; }
  body { padding-bottom: 70px; }
}

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid h4 { font-size: 0.85rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { font-size: 0.85rem; color: var(--text-muted); }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-badges {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-badges a {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.footer-badges a:hover {
  transform: translateY(-2px);
}

.footer-badges img {
  display: block;
}

/* Breadcrumb — styled as visible pill buttons, not plain text */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.breadcrumb a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-tint);
  transform: translateY(-1px);
}
.breadcrumb a:first-child {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--primary-tint);
}
.breadcrumb .crumb-sep {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.breadcrumb .crumb-current {
  padding: 7px 4px;
  color: var(--text-muted);
}

/* Mobile tweaks (home + general) */
@media (max-width: 640px) {
  .site-header .container { height: 56px; gap: 10px; }
  .logo { font-size: 1.05rem; }
  .site-search input { padding: 8px 12px; font-size: 0.88rem; }
  .filter-bar { top: 56px; }
  .hero { padding: 18px 16px 14px; }
  .tool-grid, .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tool-card { padding: 12px 8px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .tool-grid, .featured-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 901px) {
  .tool-grid, .featured-grid { grid-template-columns: repeat(6, 1fr); }
}

.tool-header h1 .icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  max-width: 1.15rem;
  max-height: 1.15rem;
  color: var(--primary);
  vertical-align: -0.2em;
  margin-right: 4px;
}
.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.related-tools a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
  text-align: left;
  min-height: 110px;
}
.related-tools a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary-dark);
}
.related-tools .related-desc {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}
.related-tools .icon-svg {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  max-width: 1.35rem;
  max-height: 1.35rem;
  color: inherit;
}

.trust-badge .icon-svg {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  max-width: 1.1rem;
  max-height: 1.1rem;
  color: inherit;
}

/* Colorful icon tiles */
.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-tile .icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  max-width: 1.5rem;
  max-height: 1.5rem;
  color: inherit;
}
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile--sm .icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
}
.icon-tile--lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-tile--indigo { background: #EEF2FF; color: #4F46E5; }
.icon-tile--violet { background: #F3E8FF; color: #7C3AED; }
.icon-tile--blue { background: #DBEAFE; color: #2563EB; }
.icon-tile--sky { background: #E0F2FE; color: #0284C7; }
.icon-tile--cyan { background: #CFFAFE; color: #0891B2; }
.icon-tile--teal { background: #CCFBF1; color: #0D9488; }
.icon-tile--green { background: #DCFCE7; color: #16A34A; }
.icon-tile--emerald { background: #D1FAE5; color: #059669; }
.icon-tile--amber { background: #FEF3C7; color: #D97706; }
.icon-tile--orange { background: #FFEDD5; color: #EA580C; }
.icon-tile--rose { background: #FFE4E6; color: #E11D48; }
.icon-tile--red { background: #FEE2E2; color: #DC2626; }
.icon-tile--slate { background: #F1F5F9; color: #475569; }
.icon-tile--pink { background: #FCE7F3; color: #DB2777; }

:root[data-theme="dark"] .icon-tile--indigo { background: rgba(79,70,229,0.2); color: #A5B4FC; }
:root[data-theme="dark"] .icon-tile--violet { background: rgba(124,58,237,0.2); color: #C4B5FD; }
:root[data-theme="dark"] .icon-tile--blue { background: rgba(37,99,235,0.2); color: #93C5FD; }
:root[data-theme="dark"] .icon-tile--sky { background: rgba(2,132,199,0.2); color: #7DD3FC; }
:root[data-theme="dark"] .icon-tile--cyan { background: rgba(8,145,178,0.2); color: #67E8F9; }
:root[data-theme="dark"] .icon-tile--teal { background: rgba(13,148,136,0.2); color: #5EEAD4; }
:root[data-theme="dark"] .icon-tile--green { background: rgba(22,163,74,0.2); color: #86EFAC; }
:root[data-theme="dark"] .icon-tile--emerald { background: rgba(5,150,105,0.2); color: #6EE7B7; }
:root[data-theme="dark"] .icon-tile--amber { background: rgba(217,119,6,0.2); color: #FCD34D; }
:root[data-theme="dark"] .icon-tile--orange { background: rgba(234,88,12,0.2); color: #FDBA74; }
:root[data-theme="dark"] .icon-tile--rose { background: rgba(225,29,72,0.2); color: #FDA4AF; }
:root[data-theme="dark"] .icon-tile--red { background: rgba(220,38,38,0.2); color: #FCA5A5; }
:root[data-theme="dark"] .icon-tile--slate { background: rgba(71,85,105,0.3); color: #CBD5E1; }
:root[data-theme="dark"] .icon-tile--pink { background: rgba(219,39,119,0.2); color: #F9A8D4; }

/* PDF preview tiles — iLovePDF-style import UX */
.pdf-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.pdf-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s, border-color .15s;
  display: flex;
  flex-direction: column;
}
.pdf-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.pdf-tile-thumb {
  position: relative;
  background: var(--bg);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdf-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.pdf-tile-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #EF4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
}
.pdf-tile-body { padding: 10px; }
.pdf-tile-name {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-tile-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.pdf-tile-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.pdf-tile-actions button {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  min-height: 32px;
}
.pdf-tile-actions button:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-tint);
}
.pdf-tile-actions button.is-danger { color: var(--danger); }
.pdf-tile-actions button.is-danger:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.35);
}

.pdf-preview-single {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pdf-preview-single .pdf-tile {
  width: 140px;
  flex-shrink: 0;
}
.pdf-preview-single .pdf-preview-info {
  flex: 1;
  min-width: 180px;
}
.pdf-preview-single .pdf-preview-info h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  word-break: break-word;
}
.pdf-preview-single .pdf-preview-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.action-bar .btn { flex: 1; min-width: 160px; }

/* PDF page picker (split / extract) */
.pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin: 14px 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
}
.pdf-page-tile {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.pdf-page-tile.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-tint);
}
.pdf-page-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  display: block;
}
.pdf-page-tile .page-num {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 4px;
  color: var(--text-muted);
  background: var(--bg);
}
.pdf-page-tile.is-selected .page-num {
  color: var(--primary-dark);
  background: var(--primary-tint);
}
.pdf-page-tile input[type="checkbox"] {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Rates & finance tools */
.rate-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 8px 0 16px;
}
.rate-updated strong { color: var(--text); }
.rate-hero {
  background: linear-gradient(135deg, var(--primary-tint) 0%, var(--card) 100%);
  border: 1px solid rgba(225,29,72,0.15);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}
.rate-hero .rate-hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rate-hero .rate-hero-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 6px 0 2px;
  line-height: 1.2;
}
.rate-hero .rate-hero-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.rate-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.rate-card .rate-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rate-card .rate-card-value {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 6px;
  color: var(--text);
}
.rate-card .rate-card-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.rate-trend-wrap {
  margin: 20px 0;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rate-trend-wrap h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.rate-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.rate-trend-bar {
  flex: 1;
  min-width: 0;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transition: opacity .15s;
}
.rate-trend-bar:hover { opacity: 1; }
.rate-trend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.rate-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}
.affiliate-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  margin-top: 12px;
}

/* Calculator forms */
.calc-form { margin: 16px 0; }
.calc-field {
  margin-bottom: 14px;
}
.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .calc-row { grid-template-columns: 1fr; }
}
.calc-result-hero {
  background: var(--primary-tint);
  border: 1px solid rgba(225,29,72,0.2);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin: 16px 0;
}
.calc-result-hero .calc-result-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.calc-result-hero .calc-result-value {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 4px;
}
.currency-swap-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.currency-swap-row .calc-field { flex: 1; min-width: 120px; }
.currency-swap-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
}
.currency-swap-btn:hover {
  background: var(--primary-tint);
  border-color: var(--primary);
}

/* Text tools */
.text-tool-area {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}
.text-tool-area:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.stat-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.stat-pill strong { color: var(--primary-dark); margin-left: 4px; }
.fancy-output {
  min-height: 80px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  line-height: 1.7;
  word-break: break-word;
}

/* Image to ASCII */
.ascii-stage {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  transition: background .15s, border-color .15s;
}
.ascii-stage--light { background: #FFFFFF; color-scheme: light; }
.ascii-stage--dark { background: #0B0F19; border-color: #1E293B; color-scheme: dark; }
.ascii-stage pre {
  margin: 0;
  white-space: pre;
  letter-spacing: 0;
  font-family: "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;
  width: max-content;
}
.ascii-stage--light pre { color: #111827; }
.ascii-stage--dark pre { color: #F8FAFC; }
.fit-badge { font-weight: 700; }
.fit-badge--ok { border-color: var(--success); color: var(--success); }
.fit-badge--warn { border-color: var(--accent); color: var(--accent); }
.fit-badge--over { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.08); }
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.state-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.state-card:hover, .state-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-tint);
}
.state-card h4 { font-size: 0.85rem; margin-bottom: 8px; }
.state-card .fuel-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.state-card .fuel-line span:last-child { font-weight: 700; color: var(--text); }


.tool-header .icon-tile { margin: 0 auto 12px; }

/* Tool page SEO content: How it works + FAQ */
.content-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.content-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.content-section ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.content-section ol li { margin-bottom: 4px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.faq-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Homepage premium redesign (index.html only)
   ============================================================ */

/* Header: privacy pill + mobile menu */
.header-status-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border: 1px solid rgba(225,29,72,0.2);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
:root[data-theme="dark"] .header-status-pill { color: var(--primary); }
.header-status-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: livePulse 1.6s ease-in-out infinite;
}
@media (min-width: 900px) {
  .header-status-pill { display: inline-flex; }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  flex-shrink: 0;
}
.mobile-menu-btn:hover { color: var(--primary); border-color: var(--primary); }
@media (min-width: 900px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.mobile-nav-panel a:hover { background: var(--primary-tint); color: var(--primary-dark); }
@media (min-width: 900px) {
  .mobile-nav-panel { display: none !important; }
}

/* Hero: floating premium blur decorations */
.hero { overflow: hidden; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 {
  top: -60px;
  left: 12%;
  width: 260px;
  height: 260px;
  background: rgba(225,29,72,0.12);
  animation: heroBlobPulse 6s ease-in-out infinite;
}
.hero-blob--2 {
  top: 40%;
  right: 8%;
  width: 300px;
  height: 300px;
  background: rgba(245,158,11,0.10);
}
:root[data-theme="dark"] .hero-blob--1 { background: rgba(225,29,72,0.16); }
:root[data-theme="dark"] .hero-blob--2 { background: rgba(245,158,11,0.08); }
@keyframes heroBlobPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.12); }
}
.hero > *:not(.hero-blob) { position: relative; z-index: 1; }

/* Hero: elegant premium search box */
.hero-search {
  max-width: 560px;
  margin: 26px auto 0;
  position: relative;
}
.hero-search .icon-svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  pointer-events: none;
}
.hero-search input {
  width: 100%;
  padding: 16px 48px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.98rem;
  box-shadow: var(--shadow-premium);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-search input:focus { border-color: var(--primary); }
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search .hero-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 999px;
}
.hero-search .hero-search-clear:hover { color: var(--text); background: var(--border); }
.hero-search.has-value .hero-search-clear { display: inline-flex; }
.hero-search .icon-svg.hero-search-clear-icon { position: static; transform: none; width: 1rem; height: 1rem; min-width: 1rem; min-height: 1rem; }

/* Favorites star button on live tool cards */
.featured-grid .tool-card { position: relative; }
.tool-card-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.star-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--border);
}
.star-btn:hover { background: var(--primary-tint); color: var(--accent); }
.star-btn .icon-svg {
  width: 0.95rem;
  height: 0.95rem;
  min-width: 0.95rem;
  min-height: 0.95rem;
}
.star-btn.is-fav { color: var(--accent); }
.star-btn.is-fav .icon-svg { fill: var(--accent); }

.featured-grid .tool-card:hover {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--card) 55%);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .featured-grid .tool-card:hover {
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.14) 0%, var(--card) 55%);
}

/* Coming Soon cards: calmer, clearly non-interactive */
.tool-grid .tool-card { cursor: default; }
.tool-grid .tool-card:hover {
  border-color: var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* FAQ accordion (homepage #faq-section only — tool pages keep static .faq-item) */
#faq-section .faq-item { padding: 0; }
#faq-section .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 2px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
#faq-section .faq-q:hover { color: var(--primary-dark); }
:root[data-theme="dark"] #faq-section .faq-q:hover { color: var(--primary); }
#faq-section .faq-toggle-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s ease, color .2s ease;
}
#faq-section .faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--primary);
}
#faq-section .faq-a {
  display: none;
  padding: 0 2px 16px;
}
#faq-section .faq-item.open .faq-a { display: block; }
#faq-section .faq-a p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(0.16,1,0.3,1), opacity .25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .icon-svg { width: 1rem; height: 1rem; min-width: 1rem; min-height: 1rem; color: var(--success); }
@media (max-width: 480px) {
  .toast { left: 16px; right: 16px; bottom: 76px; }
}

/* Blog & SEO landing pages */
.article-page { max-width: 720px; padding: 32px 20px 48px; }
.article-page h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; margin-bottom: 10px; }
.article-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.article-body { color: var(--text); font-size: 0.95rem; line-height: 1.75; }
.article-body h2 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.article-body p { margin-bottom: 14px; color: var(--text-muted); }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; color: var(--text-muted); line-height: 1.7; }
.article-body li { margin-bottom: 6px; }
.article-cta { margin: 28px 0; padding: 20px; border-radius: var(--radius); background: var(--primary-tint); border: 1px solid rgba(225,29,72,0.12); text-align: center; }
.article-cta p { margin-bottom: 12px; font-weight: 600; color: var(--text); }
.blog-index-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-index-grid { grid-template-columns: repeat(2, 1fr); } }
.blog-card { display: block; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.blog-card:hover { border-color: var(--primary); box-shadow: var(--shadow-premium); }
.blog-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.blog-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.blog-card .blog-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); margin-bottom: 8px; display: block; }
.seo-landing-cta { margin: 20px 0; }

