/* ================================================================
   PolyTools — stylesheet
   ============================================================== */

:root {
  --bg:          #fafbfc;
  --surface:     #ffffff;
  --surface-2:   #f5f7fa;
  --surface-3:   #eef1f5;
  --border:      #e5e7eb;
  --border-2:    #d1d5db;
  --text-1:      #0b0d12;
  --text-2:      #384150;
  --text-3:      #5c6773;
  --text-4:      #94a0af;
  --accent:      #1652f0;
  --accent-600:  #1246d1;
  --accent-50:   #eef3ff;
  --accent-100:  #dce6ff;
  --green:       #0f9d58;
  --green-50:    #effaf3;
  --red:         #d33838;
  --red-50:      #fdeeee;
  --amber:       #c07400;
  --amber-50:    #fff8eb;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-pill: 999px;
  --shadow-sm:   0 1px 2px rgba(11,13,18,.04), 0 1px 1px rgba(11,13,18,.03);
  --shadow-md:   0 4px 14px rgba(11,13,18,.06), 0 1px 3px rgba(11,13,18,.04);
  --shadow-lg:   0 20px 40px -12px rgba(11,13,18,.15), 0 4px 8px rgba(11,13,18,.04);
  --ring:        0 0 0 3px rgba(22,82,240,.18);
  --container:   1200px;
  --t-fast:      .12s cubic-bezier(.4,0,.2,1);
  --t-base:      .18s cubic-bezier(.4,0,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss03';
  overflow-x: hidden;
  min-width: 0;
}
html { overflow-x: hidden; width: 100%; }
html, body { max-width: 100vw; }
img, svg, video, iframe, picture, canvas { max-width: 100%; }
img { height: auto; display: block; }
svg { display: block; }
input, select, textarea, button { min-width: 0; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: var(--text-1); }
ul, ol { list-style: none; }

/* ---------- utility ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 8px; background: var(--text-1);
  color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 13px;
  font-weight: 600; z-index: 200;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--text-1);
  letter-spacing: -.3px;
}
.site-logo:hover { color: var(--text-1); }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.primary-nav {
  display: flex; align-items: center; gap: 6px; justify-self: start;
}
.primary-nav a {
  color: var(--text-3); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.primary-nav a:hover { color: var(--text-1); background: var(--surface-2); }

/* Hamburger toggle — shown only on mobile */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-1);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover { background: var(--surface-2); border-color: var(--border-2); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-search {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px 0 34px;
  width: 280px; height: 38px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.header-search:focus-within {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.header-search .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-4);
}
.header-search input {
  width: 100%; height: 100%;
  background: transparent; border: 0; outline: none;
  font-size: 13.5px; color: var(--text-1);
}
.header-search input::placeholder { color: var(--text-4); }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  font-weight: 600; font-size: 14px;
  border-radius: 8px;
  transition: all var(--t-base);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(22,82,240,.25);
}
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(22,82,240,.28); }
.btn-primary:active { transform: none; }
.btn-primary svg { width: 14px; height: 14px; }
.btn-large { padding: 12px 22px; font-size: 15px; }
.btn-secondary {
  background: var(--surface); color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-2); background: var(--surface-2); color: var(--text-1); }

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 56px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
  color: var(--text-1);
  max-width: 820px;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-3);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 7px 7px 7px 48px;
  max-width: 620px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.hero-search .search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-3);
}
.hero-search input {
  flex: 1;
  background: transparent; border: 0; outline: none;
  padding: 10px 4px;
  font-size: 15.5px; color: var(--text-1);
}
.hero-search input::placeholder { color: var(--text-4); }
.hero-search .btn-primary { padding: 10px 20px; }
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }

/* ---------- section ---------- */
.section { padding: 72px 0; }
.section-muted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 32px; }
.section-title {
  font-size: 26px; font-weight: 700; color: var(--text-1);
  letter-spacing: -.5px; line-height: 1.2;
  margin-bottom: 6px;
}
.section-sub { color: var(--text-3); font-size: 15px; }

/* ---------- tool cards (featured) ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
/* Prevent a single featured card from stretching across the full width */
.tools-grid:has(.tool-card:only-child) .tool-card {
  max-width: 420px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.tool-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-card-cover {
  display: block;
  background: var(--surface-2);
  overflow: hidden;
}
.tool-card-cover img { width: 100%; height: auto; display: block; }
.tool-card-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  flex: 1;
}
.tool-card-top { display: flex; gap: 14px; }
.tool-card-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}
.tool-card-meta { flex: 1; min-width: 0; }
.tool-card-name { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; line-height: 1.3; }
.tool-card-name a { color: inherit; }
.tool-card-name a:hover { color: var(--accent); }
.tool-card-tagline {
  font-size: 13.5px; color: var(--text-3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tool-card-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-card-link { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- cat-badge (pill) ---------- */
.cat-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-pill);
  transition: background var(--t-fast);
}
.cat-badge:hover { background: var(--accent-100); color: var(--accent-600); }

/* ---------- category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.category-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--text-2);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.category-card:hover {
  border-color: var(--accent);
  color: var(--text-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-card-name {
  font-size: 17px; font-weight: 700; color: var(--text-1);
  margin-bottom: 6px; letter-spacing: -.2px;
}
.category-card-desc {
  font-size: 13.5px; color: var(--text-3); line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.category-card-count {
  font-size: 13px; font-weight: 600; color: var(--accent);
}

/* ---------- tools list (PH-style rows) ---------- */
.tools-list { display: flex; flex-direction: column; }
.tool-row {
  display: grid;
  grid-template-columns: 52px 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: -1px; /* collapse borders */
  transition: background var(--t-fast);
}
/* Search page rows don't show votes — fall back to 44px first column. */
.tool-row-compact { grid-template-columns: 44px 1fr auto; }
.tool-row:first-child { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.tool-row:last-child  { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); margin-bottom: 0; }
.tool-row:hover { background: var(--surface-2); }
.tool-row-rank {
  font-size: 13px; font-weight: 700; color: var(--text-4);
  text-align: center;
}
.tool-row-logo {
  display: block;
}
.tool-row-logo img {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  object-fit: cover;
}
.tool-row-body { min-width: 0; }
.tool-row-name { font-size: 15.5px; font-weight: 700; color: var(--text-1); margin-bottom: 2px; letter-spacing: -.1px; }
.tool-row-name a { color: inherit; }
.tool-row-name a:hover { color: var(--accent); }
.tool-row-tagline {
  font-size: 13.5px; color: var(--text-3); line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-row-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-row-cta { flex-shrink: 0; }
.trend-views {
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  white-space: nowrap; align-self: center;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px;
  flex-shrink: 0;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.breadcrumb ol {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 0;
  color: var(--text-4);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: '›'; color: var(--border-2); font-size: 14px;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text-1); font-weight: 500; }

/* ---------- tool page ---------- */
.tool-hero {
  background: var(--surface);
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
}
.tool-hero-inner {
  display: flex; gap: 28px; align-items: flex-start;
}
.tool-hero-media {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.tool-hero-media .vote-btn-compact { width: 72px; min-width: 72px; padding: 8px 0; }
.tool-hero-media .vote-arrow { width: 16px; height: 16px; }
.tool-hero-media .vote-count { font-size: 15px; }
.tool-hero-logo {
  width: 88px; height: 88px; border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0; object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.tool-hero-body { flex: 1; min-width: 0; }
.tool-hero-cats {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.tool-hero-name {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-1);
  line-height: 1.15;
  margin-bottom: 10px;
}
.tool-hero-tagline {
  font-size: 16px; color: var(--text-3); line-height: 1.6;
  max-width: 720px;
  margin-bottom: 12px;
}
.tool-hero-meta {
  font-size: 13px; color: var(--text-4); margin-bottom: 22px;
}
.tool-hero-meta time { color: var(--text-3); font-weight: 500; }
.tool-hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.tool-hero-meta {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-3);
}
.tool-hero-socials {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* Upvote button (Reddit / Product Hunt style) */
.vote-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px;
  font-size: 15px; font-weight: 700;
  background: #fff;
  color: var(--text-1);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.vote-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.vote-btn:active:not(:disabled) { transform: translateY(0); }
.vote-arrow { width: 16px; height: 16px; transition: transform var(--t-fast); }
.vote-btn:hover .vote-arrow { transform: translateY(-1px); }
.vote-btn.is-voted {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: pointer;
}
.vote-btn.is-voted:hover:not(:disabled) {
  background: #0d3fbf;
  border-color: #0d3fbf;
  color: #fff;
  transform: translateY(-1px);
}
.vote-btn.is-voted .vote-arrow { color: #fff; }
/* Compact vote button for listing rows (Reddit / PH style — stacked arrow + count) */
.vote-btn-compact {
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  width: 52px;
  min-width: 52px;
  font-size: 14px;
  border-width: 1px;
  border-radius: 10px;
}
.vote-btn-compact .vote-arrow { width: 14px; height: 14px; }
.vote-btn-compact .vote-count { font-size: 13px; font-weight: 700; }

.vote-btn.is-bumping { animation: vote-pop .36s ease-out; }
@keyframes vote-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
/* Toast — fixed at bottom, never affects button layout */
.vote-toast-wrap {
  position: fixed;
  left: 0; right: 0; bottom: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  z-index: 9999;
}
.vote-toast {
  background: #0b0d12;
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .3);
  opacity: 0; transform: translateY(8px);
  transition: opacity .28s, transform .28s;
  pointer-events: auto;
}
.vote-toast.show { opacity: 1; transform: translateY(0); }

/* CTA note — sits next to the Launch button */
.cta-note {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 13px; font-weight: 600;
  color: #7a4900;
  background: var(--amber-50);
  border: 1px solid #f5d687;
  border-radius: var(--radius-pill);
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cta-note svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--amber); }
.cta-note-solid {
  background: #fff;
  border-color: #f5d687;
  box-shadow: 0 1px 2px rgba(192,116,0,.1);
  align-self: flex-start;
  margin-top: 10px;
}
.social-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.social-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }
.social-chip svg { width: 14px; height: 14px; }

/* ---------- tool page sub-nav ---------- */
.tool-subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 40;
}
.tool-subnav-inner {
  display: flex; gap: 2px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tool-subnav-inner::-webkit-scrollbar { display: none; }
.tool-subnav-link {
  display: inline-block;
  padding: 12px 14px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tool-subnav-link:hover { color: var(--text-1); }
.tool-subnav-link.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- user feedback (tweet cards) ---------- */
.ufb-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }

.ufb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.ufb-card:hover { border-color: var(--border-2); box-shadow: 0 2px 12px rgba(15,23,42,.06); }

.ufb-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.ufb-author { display: flex; align-items: center; gap: 10px; min-width: 0; }

.ufb-avatar {
  width: 42px; height: 42px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.ufb-avatar-placeholder {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ufb-author-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ufb-handle {
  font-size: 14px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ufb-handle:hover { color: var(--accent); }
.ufb-date { font-size: 12.5px; color: var(--text-4); }

.ufb-x-logo { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }

.ufb-text {
  margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-1);
  white-space: pre-wrap; word-break: break-word;
}
.ufb-rating {
  display: flex; gap: 2px; margin: 4px 0 8px;
}
.ufb-star { font-size: 14px; color: var(--border); }
.ufb-star.is-filled { color: #f59e0b; }
.ufb-source {
  font-size: 13px; font-weight: 600; color: var(--accent);
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: 100px;
  transition: all var(--t-fast);
}
.ufb-source:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Review CTA banner */
.review-cta-banner {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--accent-50) 0%, #f0f7ff 100%);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.review-cta-banner:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.review-cta-icon { font-size: 24px; flex-shrink: 0; }
.review-cta-body {
  flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.review-cta-body strong { font-size: 15px; font-weight: 700; color: var(--text-1); }
.review-cta-body span  { font-size: 13.5px; color: var(--text-3); }
.review-cta-action {
  flex-shrink: 0;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .review-cta-action { display: none; }
}

/* ---------- admin feedback form ---------- */
.fb-tweet-list { display: flex; flex-direction: column; gap: 14px; }
.fb-tweet-block {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
}
.fb-tweet-block textarea, .fb-tweet-block input {
  width: 100%; font-size: 13.5px; font-family: inherit;
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 7px; background: #fff; line-height: 1.5;
  transition: border-color var(--t-fast);
}
.fb-tweet-block textarea:focus, .fb-tweet-block input:focus { outline: none; border-color: var(--accent); }
.fb-tweet-block textarea { min-height: 80px; resize: vertical; }

/* ---------- safety panel ---------- */
.panel-safety { background: var(--accent-50); border-color: var(--accent-100); }
.safety-body {
  display: flex; gap: 14px; align-items: flex-start;
}
.safety-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--accent-100);
  border-radius: 50%;
  color: var(--accent);
}
.safety-icon svg { width: 18px; height: 18px; }
.safety-body p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0; }

/* Wallet blacklist check */
.wallet-check-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--accent-100); }
.wallet-check-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--text-2);
  margin-bottom: 12px;
}
.wallet-check-title svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
.wallet-check-date { font-size: 11.5px; font-weight: 400; color: var(--text-4); margin-left: auto; }
.wallet-check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wallet-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px;
}
.wc-clean  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.wc-flagged{ background: #fef2f2; border: 1px solid #fecaca; }
.wc-unknown{ background: var(--surface-2); border: 1px solid var(--border); }
.wc-icon   { font-size: 13px; font-weight: 800; width: 18px; flex-shrink: 0; }
.wc-clean  .wc-icon  { color: #16a34a; }
.wc-flagged .wc-icon { color: #dc2626; }
.wc-unknown .wc-icon { color: var(--text-4); }
.wc-label  { flex: 1; font-weight: 600; color: var(--text-1); }
.wc-status { font-size: 12px; }
.wc-clean  .wc-status  { color: #16a34a; }
.wc-flagged .wc-status { color: #dc2626; font-weight: 700; }
.wc-unknown .wc-status { color: var(--text-4); }
.wallet-check-note { font-size: 12px; color: var(--text-4); margin-top: 10px; }
.wallet-check-note code { font-family: ui-monospace, monospace; font-size: 11.5px; }

/* cover (under hero) */
.tool-cover {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tool-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2-col layout */
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 48px 24px;
  min-width: 0;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.tool-main { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.tool-side { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }

/* panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.panel-title {
  font-size: 18px; font-weight: 700; color: var(--text-1);
  letter-spacing: -.3px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* prose (overview body) */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--text-1); margin: 20px 0 10px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* pros/cons */
.proscons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.proscons-col h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.proscons-pros h3 { color: var(--green); }
.proscons-cons h3 { color: var(--red); }
.proscons-col ul { display: flex; flex-direction: column; gap: 10px; }
.proscons-col li {
  font-size: 14px; color: var(--text-2); line-height: 1.55;
  padding-left: 26px; position: relative;
}
.proscons-pros li::before {
  content: ''; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px var(--green-50);
}
.proscons-cons li::before {
  content: ''; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--red-50);
}

/* what is panel — large quote style */
.panel-whatis {
  border-color: var(--accent);
  border-left-width: 4px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.panel-whatis::before {
  content: '\201C';
  position: absolute;
  top: -24px; right: 20px;
  font-size: 140px;
  line-height: 1;
  color: var(--accent);
  opacity: .08;
  font-family: Georgia, serif;
  pointer-events: none;
}
.panel-whatis .panel-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom-color: var(--border);
}
.whatis-body {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -.2px;
  margin: 0;
}
.whatis-body strong { font-weight: 700; }

/* ── Screenshot gallery ── */
.gallery { display: flex; flex-direction: column; gap: 10px; }

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.gallery-zoom-btn {
  display: block; width: 100%; height: 100%;
  border: none; background: none; padding: 0; cursor: zoom-in;
  position: relative;
}
.gallery-img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transition: opacity .2s;
}
.gallery-zoom-icon {
  position: absolute; bottom: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(0,0,0,.55); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.gallery-zoom-icon svg { width: 15px; height: 15px; color: #fff; }
.gallery-main:hover .gallery-zoom-icon { opacity: 1; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 36px; height: 36px;
  background: rgba(0,0,0,.5); color: #fff; border: none; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .15s;
}
.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: rgba(0,0,0,.75); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Thumbnails */
.gallery-thumbs {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: thin; padding-bottom: 2px;
}
.gallery-thumb {
  flex-shrink: 0; width: 80px; height: 50px;
  border: 2px solid var(--border); border-radius: 6px;
  overflow: hidden; cursor: pointer; background: var(--surface-2);
  padding: 0; transition: border-color .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--text-3); }
.gallery-thumb.is-active { border-color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-frame {
  position: relative; z-index: 1;
  max-width: 92vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  display: block;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none;
  font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: 13px; z-index: 2;
  background: rgba(0,0,0,.4); padding: 4px 12px; border-radius: 100px;
}
/* Gallery dots (mobile indicator) */
.gallery-dots {
  display: none;
  justify-content: center; gap: 7px;
  padding: 4px 0;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.gallery-dot.is-active { background: var(--accent); transform: scale(1.25); }

@media (max-width: 640px) {
  .gallery-arrow { opacity: 1; width: 32px; height: 32px; font-size: 18px; }
  .gallery-zoom-icon { opacity: 1; }
  /* Thumbnail strip — same as desktop, slightly smaller, always scrollable */
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gallery-thumb { width: 64px; height: 40px; flex-shrink: 0; }
  .gallery-dots { display: none; }
  .lightbox-arrow { width: 36px; height: 36px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* video embed */
.videos-stack { display: flex; flex-direction: column; gap: 14px; }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.video-embed iframe,
.video-embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-item {
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-title { font-size: 14.5px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.feature-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.55; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 14.5px; font-weight: 600; color: var(--text-1);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 10px; height: 10px;
  border-right: 1.8px solid var(--text-3);
  border-bottom: 1.8px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px; color: var(--text-2); line-height: 1.65;
}

/* CTA panel */
.panel-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--accent-50) 0%, #f5f0ff 100%);
  border-color: var(--accent-100);
}
.panel-cta-body { display: flex; flex-direction: column; gap: 0; }
.panel-cta-title { font-size: 18px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.panel-cta-desc { font-size: 14px; color: var(--text-3); }

/* sidebar */
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.side-card-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-4);
  margin-bottom: 14px;
}
.side-rows { display: flex; flex-direction: column; gap: 10px; }
.side-row {
  display: grid; grid-template-columns: 100px 1fr; gap: 12px;
  font-size: 13.5px;
}
.side-row dt { color: var(--text-3); }
.side-row dd { color: var(--text-1); font-weight: 500; word-break: break-word; }
.side-row dd a { color: var(--accent); }
/* Rating row in sidebar */
.side-stars {
  display: inline-flex; align-items: center; gap: 2px;
  text-decoration: none;
}
.side-star { font-size: 16px; color: var(--border); line-height: 1; }
.side-star.is-filled { color: #f59e0b; }
.side-star.is-half { color: #f59e0b; opacity: .5; }
.side-stars-empty .side-star { color: var(--border); }
.side-stars-empty:hover .side-star { color: #f59e0b; opacity: .6; }
.side-rating-val { font-size: 13px; font-weight: 600; color: var(--text-1); margin-left: 4px; }
.side-rating-count { font-weight: 400; color: var(--text-3); }
.side-stars-empty .side-rating-val { color: var(--text-4); font-weight: 400; }

/* Badge embed widget */
.badge-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.badge-tab {
  flex: 1; padding: 5px 0; border-radius: 6px; border: 1px solid var(--border);
  background: none; font-size: 12px; font-weight: 500; color: var(--text-3);
  cursor: pointer; transition: all .15s;
}
.badge-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge-preview {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
  display: flex; align-items: center; justify-content: center;
  min-height: 80px; margin-bottom: 10px; overflow: hidden;
}
.badge-preview iframe { display: block; max-width: 100%; }
.badge-code {
  width: 100%; font-size: 11px; font-family: ui-monospace, monospace;
  color: var(--text-3); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 9px; resize: none; margin-bottom: 8px; line-height: 1.5;
}
.badge-code:focus { outline: none; border-color: var(--accent); }
.side-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.related-list { display: flex; flex-direction: column; }
.related-item { border-top: 1px solid var(--border); }
.related-item:first-child { border-top: 0; }
.related-link {
  display: flex; gap: 12px; padding: 12px 0;
  align-items: center;
  color: var(--text-2);
}
.related-link:hover { color: var(--text-2); }
.related-link img {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  flex-shrink: 0; object-fit: cover;
}
.related-link span { display: flex; flex-direction: column; min-width: 0; }
.related-name { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.related-tagline { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* category page hero */
.category-hero, .search-hero, .submit-hero {
  padding: 48px 0 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}
.category-hero-title, .search-hero-title, .submit-hero-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800; letter-spacing: -.8px;
  color: var(--text-1); line-height: 1.15;
  margin-bottom: 10px;
}
.search-hero-q { color: var(--accent); }
.category-hero-desc, .submit-hero-desc {
  font-size: 16px; color: var(--text-3); max-width: 720px;
  margin-bottom: 10px;
}
.category-hero-count, .search-hero-count {
  font-size: 13px; color: var(--text-4);
  margin-top: 14px;
}
.search-hero .hero-search { margin-top: 16px; max-width: 620px; }

/* empty state */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* submit form */
.submit-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 36px;
}
.submit-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.field small { color: var(--text-4); font-size: 12.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-form .btn-primary { align-self: flex-start; }

.submit-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
}
.submit-group legend {
  padding: 0 8px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-4);
}

.submit-form .input-prefix {
  display: flex; align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.submit-form .input-prefix:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.submit-form .input-prefix-tag {
  padding: 10px 12px;
  font-size: 13px; color: var(--text-4);
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.submit-form .input-prefix input {
  flex: 1; border: 0; outline: none;
  padding: 10px 12px; font-size: 14.5px;
  background: transparent;
  min-width: 0;
}

.captcha-box {
  padding: 14px 16px;
  background: var(--amber-50);
  border: 1px solid #f5d687;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.captcha-box label { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-q {
  font-size: 16px; font-weight: 700;
  color: #7a4900;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #f5d687;
  font-variant-numeric: tabular-nums;
}
.captcha-box input {
  max-width: 100px;
  padding: 8px 12px;
  border: 1px solid #f5d687;
  border-radius: 8px;
  font-size: 14.5px; font-weight: 600;
  background: #fff;
  text-align: center;
}
.captcha-box input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(192,116,0,.18); }
.captcha-box small { color: #7a4900; font-size: 12.5px; }
.submit-side { font-size: 14px; color: var(--text-3); line-height: 1.65; }

/* Submission success */
.submit-success {
  display: flex; gap: 14px; align-items: flex-start;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg); padding: 20px 22px;
  margin-bottom: 24px;
}
.submit-success svg:first-child { width: 22px; height: 22px; color: #16a34a; flex-shrink: 0; margin-top: 2px; }
.submit-success strong { display: block; font-size: 15px; color: #15803d; margin-bottom: 6px; }
.submit-success p { font-size: 14px; color: #166534; line-height: 1.55; margin: 0 0 14px; }
.submit-success-links { display: flex; gap: 10px; flex-wrap: wrap; }
.submit-follow-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: opacity .15s;
}
.submit-follow-btn:hover { opacity: .85; }
.submit-follow-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.submit-follow-x  { background: #000; color: #fff; }
.submit-follow-tg { background: #229ed9; color: #fff; }
.submit-side h2 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-4);
  margin-bottom: 10px;
}
.submit-side ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.submit-side li { padding-left: 18px; position: relative; }
.submit-side li::before {
  content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.submit-side-note { font-size: 13px; color: var(--text-4); }

/* flash */
.flash { padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.flash-ok  { background: var(--green-50); color: var(--green); border: 1px solid #c7ecd3; }
.flash-err { background: var(--red-50); color: var(--red); border: 1px solid #f5c4c4; }
.flash ul  { margin-top: 6px; padding-left: 20px; list-style: disc; }

/* ---------- 404 page ---------- */
.err-hero {
  padding: 80px 0 56px;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(22, 82, 240, .09), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.err-hero-inner { max-width: 680px; margin: 0 auto; }
.err-code {
  display: inline-block;
  font-size: clamp(72px, 14vw, 132px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--text-1);
  margin-bottom: 12px;
}
.err-desc {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 520px;
}
.err-search {
  display: flex; gap: 8px; align-items: center;
  max-width: 520px;
  margin: 0 auto 20px;
  padding: 6px 6px 6px 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.err-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-4);
}
.err-search input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 14.5px; min-width: 0;
  padding: 10px 0;
}
.err-search .btn-primary { padding: 10px 18px; font-size: 14px; }
.err-links {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .err-hero { padding: 56px 0 40px; }
  .err-search { padding: 4px 4px 4px 40px; }
  .err-search .btn-primary { padding: 8px 14px; }
  .err-links { gap: 6px; }
}

/* ---------- Comments ---------- */
.comments-count-badge {
  display: inline-block; margin-left: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--text-4);
  vertical-align: baseline;
}
.comments-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.comments-empty { color: var(--text-3); font-size: 14.5px; margin-bottom: 24px; }

.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-reply { padding: 12px 0 12px 20px; border-left: 2px solid var(--border); border-bottom: none; margin-top: 10px; }

.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.comment-avatar-ph {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comment-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.comment-name { font-size: 14px; font-weight: 700; color: var(--text-1); display: inline-flex; align-items: center; gap: 4px; }
a.comment-name:hover { color: var(--accent); }
.comment-x-badge { width: 11px; height: 11px; color: var(--text-4); }
.comment-date { font-size: 12px; color: var(--text-4); }
.comment-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.comment-like-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  background: transparent; border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px; cursor: pointer;
  transition: all var(--t-fast);
}
.comment-like-btn:hover { color: var(--red); border-color: var(--red); }
.comment-like-btn.is-liked { color: var(--red); border-color: var(--red); background: #fff0f0; }
.comment-like-btn svg { width: 13px; height: 13px; }
.comment-reply-toggle {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-50); border: 1px solid var(--accent-100);
  padding: 4px 10px; border-radius: 100px; cursor: pointer;
  transition: all var(--t-fast);
}
.comment-reply-toggle:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.comment-text { font-size: 15px; line-height: 1.65; color: var(--text-1); margin: 0; white-space: pre-wrap; word-break: break-word; }
.comment-replies { margin-top: 4px; }
.comment-reply-form { margin-top: 12px; }

/* Comment form */
.comment-form-wrap { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.comment-form-title { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 14px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.reply-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface-2); border-radius: 10px; }
/* Star rating picker */
.comment-rating-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
}
.comment-rating-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.star-picker { display: flex; gap: 2px; }
.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; padding: 0 2px;
  color: var(--border); transition: color .1s, transform .1s;
}
.star-btn:hover, .star-btn.is-active { color: #f59e0b; }
.star-btn:hover { transform: scale(1.15); }
.star-picker-hint { font-size: 12px; color: var(--text-4); }
/* Stars on published comments */
.comment-stars { display: inline-flex; gap: 1px; margin-right: 4px; vertical-align: middle; }
.comment-star { font-size: 13px; color: var(--border); }
.comment-star.is-filled { color: #f59e0b; }

.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comment-form input, .reply-form input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; transition: border-color var(--t-fast); }
.comment-form input:focus, .reply-form input:focus { outline: none; border-color: var(--accent); }
.comment-form textarea, .reply-form textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 90px; background: #fff; transition: border-color var(--t-fast); }
.comment-form textarea:focus, .reply-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-captcha-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--amber-50); border: 1px solid #f5d687;
  border-radius: 8px;
}
.comment-captcha-row .captcha-q { font-size: 15px; font-weight: 700; color: #7a4900; }
.captcha-answer { width: 80px; padding: 7px 10px; border: 1px solid #f5d687; border-radius: 6px; font-size: 14px; text-align: center; background: #fff; }
.captcha-answer:focus { outline: none; border-color: var(--amber); }
.comment-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.comment-form-msg { font-size: 13px; font-weight: 600; margin: 0; }
.comment-form-msg-ok    { color: var(--green); }
.comment-form-msg-error { color: var(--red); }
@media (max-width: 600px) { .comment-form-row { grid-template-columns: 1fr; } }

/* ---------- Static pages (About / Privacy / Contact / custom) ---------- */
.page-article { background: var(--bg); }

.page-hero {
  background:
    radial-gradient(800px 400px at 12% 0%, rgba(22, 82, 240, .10), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, rgba(124, 58, 237, .08), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
}
.page-hero-inner {
  max-width: 840px;
  margin: 0 auto;
}
.page-hero-crumb { padding: 0 0 20px; border: 0; background: transparent; }
.page-hero-crumb ol { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--text-4); }
.page-hero-crumb li + li::before { content: '›'; margin-right: 8px; color: var(--text-4); }
.page-hero-crumb a { color: var(--text-3); }
.page-hero-crumb a:hover { color: var(--accent); }

.page-hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-50);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.page-hero-title {
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--text-1);
  margin: 0 0 18px;
}
.page-hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 680px;
  margin: 0 0 14px;
}
.page-hero-meta {
  font-size: 13px;
  color: var(--text-4);
  margin: 0;
}

/* Body + side layout */
.page-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding: 56px 24px 24px;
  max-width: 1060px;
  margin: 0 auto;
}
.page-body {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.page-body > h2:first-child,
.page-body > h3:first-child,
.page-body > p:first-child { margin-top: 0; }
.page-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--text-1);
  margin: 36px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.page-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.page-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text-1);
  margin: 24px 0 10px;
}
.page-body p {
  font-size: 16px; line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 18px;
}
.page-body p:last-child { margin-bottom: 0; }
.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(22, 82, 240, .35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color var(--t-fast);
}
.page-body a:hover { text-decoration-color: var(--accent); }
.page-body ul, .page-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.page-body ul li, .page-body ol li {
  font-size: 16px; line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 8px;
}
.page-body ul { list-style: none; padding-left: 0; }
.page-body ul li {
  position: relative; padding-left: 22px;
}
.page-body ul li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.page-body strong { color: var(--text-1); font-weight: 600; }
.page-body code {
  background: var(--surface-2);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: .92em;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.page-body hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.page-body blockquote {
  margin: 0 0 20px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-50);
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
  font-style: italic;
}

/* Aside: links to other pages */
.page-aside { position: sticky; top: 82px; align-self: start; }
.page-aside-title {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .9px;
  color: var(--text-4);
  margin-bottom: 14px;
}
.page-aside-list { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.page-aside-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--t-fast);
}
.page-aside-link:hover {
  border-color: var(--accent);
  background: var(--accent-50);
  transform: translateX(2px);
}
.page-aside-link-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.page-aside-link:hover .page-aside-link-title { color: var(--accent); }
.page-aside-link-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

@media (max-width: 960px) {
  .page-body-wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 20px; }
  .page-aside { position: static; }
}
@media (max-width: 720px) {
  .page-hero { padding: 40px 0 36px; }
  .page-body { padding: 24px 22px; border-radius: var(--radius); }
  .page-body h2 { font-size: 19px; margin-top: 28px; padding-top: 22px; }
  .page-body p, .page-body li { font-size: 15.5px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  margin-top: 64px;
}

/* Pre-footer CTA strip */
.footer-cta {
  background: linear-gradient(135deg, #0b0d12 0%, #1a1f3a 60%, #1652f0 150%);
  color: #fff;
  padding: 44px 0;
}
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer-cta-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800; letter-spacing: -.5px;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}
.footer-cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  line-height: 1.6;
}
.footer-cta-btn {
  background: #fff;
  color: var(--text-1);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.footer-cta-btn:hover { background: #fff; color: var(--accent); transform: translateY(-1px); }

/* Main footer columns */
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 24px 28px;
}
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-desc {
  font-size: 13.5px; color: var(--text-3); line-height: 1.6;
  max-width: 320px; margin-bottom: 12px;
}
.footer-socials {
  display: flex; gap: 8px;
  list-style: none; padding: 0;
  margin: 0 0 16px;
}
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--t-fast);
}
.footer-social:hover { color: var(--accent); background: #fff; border-color: var(--accent); transform: translateY(-1px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-disclaimer {
  font-size: 12px; color: var(--text-4); line-height: 1.5;
  padding-top: 10px; border-top: 1px dashed var(--border);
  max-width: 320px;
}
.footer-col-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-4);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex; flex-direction: column; gap: 10px;
  list-style: none; padding: 0;
}
.footer-col a {
  font-size: 13.5px; color: var(--text-2);
  transition: color var(--t-fast);
  display: inline-flex; align-items: center;
}
.footer-col a:hover { color: var(--accent); }
.footer-rss { display: inline-flex; align-items: center; gap: 6px; }
.footer-rss svg { width: 14px; height: 14px; color: #ea580c; }

/* Category 2-col grid inside footer */
.footer-cats-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px !important;
}

/* Bottom bar */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-4);
}
.footer-bottom-right { color: var(--text-3); }

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding: 48px 24px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-footer { margin-top: 72px; }
  .footer-cta {
    padding: 44px 0 48px;
    margin-bottom: 20px;
  }
  .footer-cta-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    text-align: left;
  }
  .footer-cta-title { font-size: 24px; margin-bottom: 8px; }
  .footer-cta-desc { font-size: 14px; max-width: none; }
  .footer-cta-btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 16px 24px; }
  .footer-cats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: center; padding: 16px; text-align: center; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: 1fr; padding: 36px 24px; gap: 24px; }
  .submit-layout { grid-template-columns: 1fr; }
  .header-search { width: 200px; }
}
@media (max-width: 720px) {
  .site-header { height: auto; padding: 10px 0; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "search search"
      "nav nav";
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 0 16px;
  }
  .site-logo { grid-area: logo; align-self: center; }
  .nav-toggle { grid-area: toggle; display: inline-flex; justify-self: end; }
  .header-search { grid-area: search; width: 100%; height: 40px; }

  .primary-nav {
    grid-area: nav;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 10px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-1);
    border-radius: 8px;
  }
  .primary-nav a:hover { background: var(--surface-2); }

  .hero { padding: 48px 0 32px; }
  .hero-title { font-size: 26px; letter-spacing: -.6px; overflow-wrap: break-word; }
  .hero-subtitle { font-size: 15px; margin-bottom: 22px; }
  .hero-search { padding: 5px 5px 5px 44px; border-radius: 12px; }
  .hero-search input { font-size: 14.5px; padding: 10px 0; min-width: 0; }
  .hero-search .btn-primary { padding: 10px 14px; font-size: 14px; }

  .tool-hero { padding: 28px 0 24px; }
  .tool-hero { padding: 24px 0 20px; }
  /* Keep row layout on mobile — just shrink the media column */
  .tool-hero-inner { flex-direction: row; gap: 14px; align-items: flex-start; }
  .tool-hero-media { gap: 8px; }
  .tool-hero-media .vote-btn-compact { width: 56px; min-width: 56px; font-size: 13px; }
  .tool-hero-logo { width: 56px; height: 56px; border-radius: 14px; }
  .tool-hero-name { font-size: 26px; letter-spacing: -.6px; }
  .tool-hero-tagline { font-size: 15px; margin-bottom: 16px; }
  .tool-hero-actions { gap: 10px; margin-bottom: 14px; }
  .tool-hero-actions .btn-large { width: 100%; justify-content: center; }
  .tool-hero-actions .tool-hero-meta { width: 100%; font-size: 12.5px; }
  .tool-hero-actions .cta-note { width: 100%; justify-content: center; text-align: center; }
  .tool-hero-socials { gap: 6px; }

  .tool-cover img { max-height: 260px; }
  .tool-layout { padding: 24px 16px; gap: 20px; }

  .panel { padding: 20px 18px; }
  .panel-title { font-size: 16.5px; padding-bottom: 14px; margin-bottom: 14px; }
  .panel-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .panel-cta .btn-large { width: 100%; justify-content: center; }

  .proscons { grid-template-columns: 1fr; gap: 20px; }
  .side-card { padding: 18px; }
  .side-row { grid-template-columns: 96px 1fr; gap: 10px; }
  .breadcrumb ol { padding: 12px 0; font-size: 12.5px; }

  .tools-grid { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 44px 44px 1fr; gap: 12px; padding: 14px; }
  .tool-row-cta { display: none; }
  .vote-btn-compact { width: 44px; min-width: 44px; }
  .tool-row-compact { grid-template-columns: 44px 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 28px; }
  .hero-title { font-size: 24px; letter-spacing: -.4px; }
  .hero-subtitle { font-size: 14.5px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; }
  .tool-hero-name { font-size: 22px; }
  .tool-hero-cats { margin-bottom: 8px; }
  .panel { padding: 18px 16px; }
  .hero-search .btn-primary { padding: 9px 12px; font-size: 13.5px; }
}

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Pending comment — same look as approved, amber left border */
.comment-pending-card {
  border-left: 3px solid var(--amber) !important;
  padding-left: 14px !important;
  opacity: .9;
}
.comment-pending-badge-inline {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  color: #92620a;
  background: var(--amber-50);
  border: 1px solid #f5d687;
  padding: 2px 8px; border-radius: 100px;
  white-space: nowrap;
}
