/* ==========================================================================
   AI Tools of the Day — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* Color tokens */
  --ink: #14161A;
  --ink-soft: #565C68;
  --ink-faint: #8A8F99;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-card: #FFFFFF;
  --border: #E7E9EE;
  --accent: #4F46E5;
  --accent-dark: #4038C4;
  --accent-soft: #EEEDFD;
  --accent-glow: rgba(79, 70, 229, 0.14);
  --live: #22C55E;
  --live-soft: #E9FAF0;
  --paid: #F59E0B;
  --paid-soft: #FEF6E7;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii / shadow */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(20,22,26,0.04), 0 8px 24px -12px rgba(20,22,26,0.10);
  --shadow-card-hover: 0 4px 10px rgba(20,22,26,0.06), 0 16px 40px -14px rgba(79,70,229,0.22);
}

/* ---------- Night / dark mode ---------- */
html[data-theme="dark"] {
  --ink: #F3F4F6;
  --ink-soft: #B4B8C2;
  --ink-faint: #7C818E;
  --bg: #101114;
  --bg-alt: #17181C;
  --bg-card: #1B1C21;
  --border: #2A2C33;
  --accent: #7C74F5;
  --accent-dark: #6862E8;
  --accent-soft: rgba(124, 116, 245, 0.16);
  --accent-glow: rgba(124, 116, 245, 0.22);
  --live: #34D399;
  --live-soft: rgba(52, 211, 153, 0.14);
  --paid: #FBBF24;
  --paid-soft: rgba(251, 191, 36, 0.14);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
  --shadow-card-hover: 0 4px 10px rgba(0,0,0,0.35), 0 16px 40px -14px rgba(124,116,245,0.28);
  color-scheme: dark;
}
html[data-theme="dark"] img:not([src*=".svg"]) { opacity: 0.92; }
html[data-theme="dark"] .site-navbar { background: rgba(16,17,20,0.88); }
html[data-theme="dark"] .newsletter-section { background: #08090B; }
html[data-theme="dark"] .btn-close { filter: invert(1); }

/* Theme toggle button */
.theme-toggle-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); cursor: pointer; transition: border-color .15s ease, color .15s ease;
  flex-shrink: 0;
}
.theme-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-btn .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle-btn .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle-btn .icon-moon { display: block; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.text-soft { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }
.bg-alt { background: var(--bg-alt); }
.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }

a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px -6px var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px var(--accent-glow);
}
.btn-outline-ink {
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.3rem;
  background: var(--bg-card);
  transition: border-color .15s ease, background .15s ease;
}
.btn-outline-ink:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.btn-sm-pill {
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
}

/* ---------- Navbar ---------- */
.site-navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.brand-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 12px;
  transition: background .15s ease;
}
/* The logo artwork has light/white wordmark text that disappears against a
   white navbar/footer in light mode — give it a dark backing chip so it
   stays legible. Dark mode already has a dark bar behind it, so it's left
   alone there. */
html:not([data-theme="dark"]) .brand-logo {
  background: linear-gradient(135deg, #1c1f2e, #2b2f47);
  padding: 5px 12px;
}
.brand-logo .dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--accent);
  display: inline-block;
  transform: rotate(45deg);
}
.brand-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.site-footer .brand-logo img {
  height: 34px;
}
.site-navbar .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 18% 20%, var(--accent-glow), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(34,197,94,0.10), transparent 40%);
}
.hero-dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 20%, transparent 75%);
  opacity: 0.7;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  max-width: 780px;
}
.hero-sub {
  max-width: 560px;
  font-size: 1.08rem;
}

.hero-search {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  box-shadow: var(--shadow-card);
  max-width: 640px;
}
.hero-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.98rem;
  background: transparent;
}
.hero-search input:focus { outline: none; box-shadow: none; }
.hero-search button {
  border-radius: 100px !important;
}

.hero-stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

/* ---------- Section headers ---------- */
.section-pad { padding: 4.5rem 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  display: block;
}
.section-head h2 { font-size: 1.85rem; margin: 0; }
.see-all-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}
.see-all-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Tool Cards ---------- */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.tool-card-img {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.tool-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.tool-card-img:hover img { transform: scale(1.04); }
.tool-card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.tool-card-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.tool-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent);
  font-family: var(--font-display);
  flex-shrink: 0;
}
.tool-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0; }
.tool-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-free {
  background: var(--live-soft); color: #15803D;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  padding: 0.24rem 0.6rem; border-radius: 100px;
}
.badge-paid {
  background: var(--paid-soft); color: #B45309;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  padding: 0.24rem 0.6rem; border-radius: 100px;
}
.badge-freemium {
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  padding: 0.24rem 0.6rem; border-radius: 100px;
}
.tool-caption {
  color: var(--ink-soft);
  font-size: 0.89rem;
  margin: 0.55rem 0 1rem;
  flex: 1;
}
.tool-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; border-top: 1px solid var(--border);
}
/* Tool cards (renderToolCard) opt into a stacked layout — metrics row on
   top, the highlighted Details CTA below — via this modifier, so the
   simpler row layout above is left untouched for prompt/blog card footers
   that share the base .tool-card-footer class. */
.tool-card-footer.has-metrics { flex-direction: column; align-items: stretch; gap: 0.75rem; }
.tool-rating { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.3rem; }
.tool-rating svg { fill: #F59E0B; width: 14px; height: 14px; }

.tool-card-metrics { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.tool-card-metrics .metric-item {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; color: var(--ink-soft);
}
.tool-card-metrics .metric-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.tool-card-metrics .metric-rating svg { fill: #F59E0B; }
.tool-card-metrics .metric-views svg { color: #4F46E5; }
.tool-card-metrics .metric-impressions svg { color: #15803D; }
.tool-card-metrics .metric-clicks svg { color: #B45309; }
.tool-card-metrics-mini { gap: 0.55rem; margin-top: 0.15rem; }
.tool-card-metrics-mini .metric-item { font-size: 0.72rem; gap: 0.2rem; }
.tool-card-metrics-mini .metric-item svg { width: 11px; height: 11px; }

.btn-detail {
  font-size: 0.87rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.btn-detail:hover { color: #fff; background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 10px var(--accent-glow, rgba(79,70,229,0.25)); }
.btn-detail svg { stroke: #fff; }
.bookmark-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  transition: all .15s ease;
  flex-shrink: 0;
}
.bookmark-btn:hover, .bookmark-btn.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}

/* Featured variant — slightly bigger */
.tool-card.featured .tool-card-img { aspect-ratio: 16/9; }
.featured-ribbon {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  display: flex; align-items: center; gap: 0.3rem;
}
.featured-ribbon svg { width: 11px; height: 11px; fill: #FACC15; }

/* ---------- Category overview ---------- */
.category-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  height: 100%;
  transition: background .15s ease, border-color .15s ease;
}
.category-card:hover { background: var(--bg-card); border-color: var(--accent); }
.category-card h4 {
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.category-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
}
.subcat-list { list-style: none; padding: 0; margin: 0; }
.subcat-list li {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
}
.subcat-list li:last-child { border-bottom: none; }
.subcat-list li span:last-child { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- Blog cards ---------- */
.blog-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.blog-card-img { aspect-ratio: 16/10; background: var(--bg-alt); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); text-transform: uppercase; }
.blog-card-body h5 { font-family: var(--font-display); font-size: 1.08rem; margin: 0.5rem 0; }
.blog-meta { font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--ink);
  border-radius: 24px;
  padding: 3.2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(79,70,229,0.35), transparent 55%);
}
.newsletter-section h2 { color: #fff; }
.newsletter-section .form-control {
  border-radius: 100px; border: none; padding: 0.75rem 1.3rem;
}
.newsletter-section .btn-accent { border-radius: 100px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
footer.site-footer h6 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
footer.site-footer a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.6rem;
}
footer.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.social-icon-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  background: var(--bg-card);
}
.social-icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Auth Modal ---------- */
/* Bootstrap's .modal-content defaults to a hardcoded white background; left
   alone, it stays white even in dark mode while our text colors (--ink etc.)
   flip to light-for-dark, making labels/headings unreadable. Force it to
   follow the theme instead. Same issue applies to any other modal. */
.modal-content { background: var(--bg-card); color: var(--ink); }
#authModal .modal-content { border-radius: 18px; border: none; overflow: hidden; }
#authModal .modal-header { border-bottom: none; padding-bottom: 0; }
#authModal .modal-body { padding: 0.5rem 2.2rem 2.2rem; }
/* Bootstrap's form controls are hardcoded white/dark-text regardless of
   theme; that's fine in light mode but needs an explicit dark variant. */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--border);
}
html[data-theme="dark"] .form-control::placeholder { color: var(--ink-faint); }
html[data-theme="dark"] .form-select option { background: var(--bg-card); color: var(--ink); }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus { background: var(--bg-card); color: var(--ink); }
.auth-tabs { display: flex; gap: 0.4rem; background: var(--bg-alt); border-radius: 100px; padding: 4px; margin-bottom: 1.6rem; }
.auth-tabs button {
  flex: 1; border: none; background: transparent; padding: 0.5rem 0.8rem;
  border-radius: 100px; font-weight: 600; font-size: 0.88rem; color: var(--ink-faint);
  transition: all .15s ease;
}
.auth-tabs button.active { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow-card); }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1.5px solid var(--border); padding: 0.65rem 0.9rem; font-size: 0.94rem;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.auth-divider { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-faint); font-size: 0.82rem; margin: 1.2rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.otp-inputs { display: flex; gap: 0.6rem; }
.otp-inputs input {
  width: 48px; height: 52px; text-align: center; font-size: 1.2rem; font-weight: 600;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--ink);
}
.otp-inputs input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.link-accent { color: var(--accent); font-weight: 600; font-size: 0.88rem; }

/* ---------- Tool detail page ---------- */
.tool-hero { padding: 2.6rem 0 2rem; border-bottom: 1px solid var(--border); }
.tool-hero-icon { width: 76px; height: 76px; border-radius: 18px; }
.tool-detail-nav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 68px; z-index: 900;
}
[data-section] { scroll-margin-top: 140px; }
.tool-detail-nav .nav-link {
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  padding: 0.9rem 1.1rem !important; border-bottom: 2px solid transparent;
}
.tool-detail-nav .nav-link.active { color: var(--accent); border-color: var(--accent); }

/* Tool hero image slider (replaces the old pricing-tier form-range widget) */
.tool-hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  aspect-ratio: 16/10.3;
}
.tool-hero-slider-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
}
.tool-hero-slider-slide {
  flex: 0 0 100%;
  height: 100%;
}
.tool-hero-slider-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tool-hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer; transition: background .15s ease;
}
.tool-hero-slider-arrow:hover { background: #fff; color: var(--accent); }
.tool-hero-slider-arrow.prev { left: 12px; }
.tool-hero-slider-arrow.next { right: 12px; }
.tool-hero-slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem;
}
.tool-hero-slider-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.6); padding: 0; cursor: pointer;
  transition: background .15s ease, width .15s ease;
}
.tool-hero-slider-dots button.active { background: #fff; width: 20px; border-radius: 4px; }

.floating-visit-bar {
  position: fixed; bottom: -100px; left: 0; right: 0;
  background: var(--bg-card); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -8px rgba(20,22,26,0.12);
  padding: 0.9rem 0; z-index: 1000;
  transition: bottom .3s ease;
}
.floating-visit-bar.show { bottom: 0; }
.stars { color: #F59E0B; font-size: 0.95rem; }
.share-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); background: var(--bg-card);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Share modal (renderShareButton() in template-helpers.php) */
.share-modal-content { background: var(--bg-card); color: var(--ink); border-radius: var(--radius); border: none; }
.share-modal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 0.6rem;
  margin-bottom: 1.4rem; text-align: center;
}
.share-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--ink-soft); font-size: 0.78rem; font-weight: 600;
  background: none; border: none; cursor: pointer; padding: 0;
}
.share-icon-btn .icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.share-icon-btn:hover .icon-circle { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.share-icon-btn:hover { color: var(--ink); }
.share-whatsapp .icon-circle { background: #25D366; }
.share-facebook .icon-circle { background: #1877F2; }
.share-telegram .icon-circle { background: #229ED9; }
.share-twitter .icon-circle { background: #111827; }
.share-linkedin .icon-circle { background: #0A66C2; }
.share-copy .icon-circle { background: var(--accent); }
.share-link-row { display: flex; gap: 0.5rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.share-link-row input {
  flex: 1; min-width: 0; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; font-size: 0.83rem; color: var(--ink-soft);
}
.share-link-row button {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap;
  transition: background .15s ease;
}
.share-link-row button:hover { background: var(--accent-dark); }

/* ---------- Misc pages ---------- */
.page-header { padding: 3.5rem 0 2.5rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.pricing-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 2rem; height: 100%; background: var(--bg-card); }
.pricing-card.popular { border-color: var(--accent); box-shadow: var(--shadow-card-hover); position: relative; }
.pricing-card .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.contact-info-card { background: var(--bg-alt); border-radius: var(--radius); padding: 1.6rem; }

@media (max-width: 767px) {
  .hero { padding: 3.5rem 0 3rem; }
  .newsletter-section { padding: 2.2rem 1.6rem; }
  .tool-detail-nav { top: 60px; overflow-x: auto; white-space: nowrap; }
}
