:root {
  --red: #a62626;
  --red-bright: #dc2626;
  --red-dark: #7a1515;
  --red-deep: #991b1b;
  --red-soft: #fef2f2;
  --red-glow: rgba(166, 38, 38, 0.25);
  --gold: #fbbf24;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(166, 38, 38, 0.12);
  --shadow: 0 10px 40px rgba(166, 38, 38, 0.12);
  --shadow-lg: 0 20px 60px rgba(122, 21, 21, 0.18);
  --radius: 18px;
  --header-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tools-body {
  margin: 0;
  font-family: Tahoma, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(166, 38, 38, 0.08), transparent),
    linear-gradient(180deg, #fff5f5 0%, #ffffff 35%, #fafafa 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

/* ── Header ── */
.tools-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(166, 38, 38, 0.06);
}

.tools-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tools-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--red-dark);
  font-weight: 800;
  font-size: 1.05rem;
}

.tools-brand img {
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px var(--red-glow);
}

.tools-header-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tools-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.25s ease;
}

.tools-nav-link:hover {
  color: var(--red);
  background: var(--red-soft);
}

.tools-nav-highlight {
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff !important;
  box-shadow: 0 4px 16px var(--red-glow);
}

.tools-nav-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--red-glow);
  color: #fff !important;
}

.tools-nav-home { border: 1px solid var(--border); }

.tools-breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tools-breadcrumb a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ── Layout ── */
.tools-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px calc(56px + var(--safe-bottom));
}

.tools-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }

@media (min-width: 992px) {
  .tools-layout.has-sidebar {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

/* ── Hero ── */
.tools-hero { text-align: center; padding: 40px 16px 32px; }

.tools-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--red-soft), #fff);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
}

.tools-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 900;
  color: var(--red-dark);
  line-height: 1.35;
}

.tools-hero p {
  margin: 0 auto;
  max-width: 600px;
  color: var(--muted);
  font-size: 1.02rem;
}

.tools-page-head {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 900;
  color: var(--red-dark);
  line-height: 1.35;
}

.tools-page-tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 8px 24px var(--red-glow);
}

.tools-intro {
  background: linear-gradient(135deg, #fff, var(--red-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--muted);
  border-right: 4px solid var(--red);
}

/* ── Cards ── */
.tools-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.tools-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-bright), var(--gold));
}

.tools-card-title {
  margin: 0 0 18px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--red-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tools-card-title i { color: var(--red); }

/* ── Grid hub ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.tools-grid-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.tools-grid-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(166, 38, 38, 0.04));
  pointer-events: none;
}

.tools-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(166, 38, 38, 0.25);
}

.tools-grid-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 6px 16px var(--red-glow);
}

.tools-grid-card h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--red-dark);
}

.tools-grid-card p { margin: 0; font-size: 0.86rem; color: var(--muted); flex: 1; line-height: 1.65; }

.tools-grid-link {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Forms ── */
.tools-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tools-form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.tools-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text);
}

.tools-field input,
.tools-field select,
.tools-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fafafa;
  transition: all 0.2s;
}

.tools-field input:focus,
.tools-field select:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(166, 38, 38, 0.1);
}

.tools-check { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; cursor: pointer; }
.tools-check input { width: auto; accent-color: var(--red); }

.tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tools-btn-primary {
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-dark) 100%);
  color: #fff;
  width: 100%;
  box-shadow: 0 6px 20px var(--red-glow);
}

.tools-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--red-glow);
}

.tools-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.tools-btn-secondary {
  background: #fff;
  color: var(--red-dark);
  border: 1.5px solid var(--border);
}

.tools-btn-secondary:hover { background: var(--red-soft); }

/* ── Results ── */
.tools-result {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--red-soft));
  border: 1px solid rgba(166, 38, 38, 0.15);
  display: none;
  animation: toolsFadeIn 0.4s ease;
}

.tools-result.visible { display: block; }

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

.tools-result-price {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  color: var(--red-dark);
  margin: 0 0 8px;
}

.tools-result-meta { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

.tools-progress-row { margin: 14px 0; }
.tools-progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.tools-progress-bar { height: 12px; background: #fee2e2; border-radius: 999px; overflow: hidden; }
.tools-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-bright));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tools-table th, .tools-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); }
.tools-table th { background: var(--red-soft); color: var(--red-dark); font-weight: 700; }
.tools-table tr:hover td { background: rgba(254, 242, 242, 0.5); }

/* ── Map ── */
.tools-map-wrap {
  height: min(440px, 58vh);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.tools-map-wrap.full { height: min(580px, 72vh); }

.val-location-block { grid-column: 1 / -1; }

.val-location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .val-location-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.val-location-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.val-location-map label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.val-map-wrap {
  height: min(280px, 42vh);
  margin-bottom: 8px;
}

.val-map-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.val-map-hint.resolved {
  color: var(--red-dark);
  font-weight: 600;
}

.tools-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tools-legend-item { display: flex; align-items: center; gap: 8px; }
.tools-legend-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* ── Price map detail ── */
.price-map-card .tools-card-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -4px 0 16px;
  line-height: 1.7;
}

.price-map-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.price-map-stat {
  flex: 1;
  min-width: 120px;
  background: linear-gradient(135deg, #fff 0%, var(--red-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-map-stat span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.price-map-stat strong {
  font-size: 1rem;
  color: var(--red-dark);
  font-weight: 800;
}

.price-map-zoom-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 14px;
  padding: 8px 12px;
  background: rgba(254, 242, 242, 0.6);
  border-radius: 10px;
  border-right: 3px solid var(--red);
}

.price-map-info {
  margin-top: 4px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.price-map-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.price-map-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.price-map-detail-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.price-map-detail-type {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.price-map-detail-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--red-dark);
  margin-top: 2px;
}

.price-map-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}

.price-map-detail-row span { color: var(--muted); }

.price-map-detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.price-map-metric {
  background: var(--red-soft);
  border-radius: 12px;
  padding: 12px 14px;
}

.price-map-metric span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.price-map-metric strong {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 800;
}

.price-map-detail-vs {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--red-dark);
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price-map-hint-default,
.price-map-loading {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.price-map-cache-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-dark);
  font-weight: 600;
}

/* ── FAQ ── */
.tools-faq { margin-top: 36px; }

.tools-faq-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--red-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tools-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 0 18px;
  transition: border-color 0.2s;
}

.tools-faq-item[open] { border-color: rgba(166, 38, 38, 0.3); box-shadow: var(--shadow); }

.tools-faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

.tools-faq-item summary::-webkit-details-marker { display: none; }

.tools-faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }

/* ── Wizard ── */
.tools-wizard-steps { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }

.tools-wizard-step {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--muted);
  transition: all 0.25s;
}

.tools-wizard-step.active {
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 4px 14px var(--red-glow);
}

.tools-wizard-step.done { background: #fee2e2; color: var(--red-dark); }

.tools-chart-wrap { position: relative; height: 300px; margin: 18px 0; }

.tools-horizon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.tools-horizon-card {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, var(--red-soft));
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s;
}

.tools-horizon-card:hover { transform: translateY(-3px); }
.tools-horizon-card .label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.tools-horizon-card .value { font-size: 1.15rem; font-weight: 900; color: var(--red-dark); margin: 6px 0; }
.tools-horizon-card .growth { font-size: 0.85rem; color: var(--red-bright); font-weight: 700; }

.tools-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 14px 16px;
  background: #fffbeb;
  border-radius: 12px;
  border: 1px solid #fde68a;
  margin-top: 18px;
}

.tools-loading { text-align: center; padding: 36px; color: var(--muted); }
.tools-loading i { animation: toolsSpin 0.9s linear infinite; color: var(--red); }
@keyframes toolsSpin { to { transform: rotate(360deg); } }

.tools-error {
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: var(--red-deep);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 14px;
  display: none;
}

.tools-error.visible { display: block; }

/* ── Premium CTA Ad ── */
.tools-cta-premium {
  position: relative;
  margin-top: 36px;
  border-radius: 22px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tools-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.7);
  transform: scale(1.05);
}

.tools-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122, 21, 21, 0.94) 0%, rgba(166, 38, 38, 0.82) 40%, rgba(0, 0, 0, 0.6) 100%);
}

.tools-cta-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.tools-cta-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 28px;
  color: #fff;
  max-width: 540px;
}

.tools-cta-logo-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
}

.tools-cta-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #fff;
  padding: 8px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tools-cta-logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: toolsPulse 2.5s ease infinite;
}

@keyframes toolsPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.6; }
}

.tools-cta-body h3 {
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.tools-cta-body p {
  font-size: 0.92rem;
  line-height: 1.8;
  opacity: 0.92;
  margin: 0 0 24px;
}

.tools-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.tools-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tools-cta-btn.primary {
  background: #fff;
  color: var(--red-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tools-cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.tools-cta-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.tools-cta-btn.secondary:hover { background: rgba(255, 255, 255, 0.22); }

/* ── Sidebar promo ── */
.tools-sidebar-ad { position: sticky; top: calc(var(--header-h) + 16px); }

.tools-side-promo {
  display: block;
  position: relative;
  padding: 24px 20px;
  background: linear-gradient(160deg, #fff 0%, var(--red-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.tools-side-promo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(166, 38, 38, 0.3);
}

.tools-side-promo-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  pointer-events: none;
}

.tools-side-promo-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 6px 20px var(--red-glow);
  position: relative;
  z-index: 1;
}

.tools-side-promo strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--red-dark);
  margin-bottom: 8px;
}

.tools-side-promo p {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

.tools-side-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
  padding: 10px 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px var(--red-glow);
}

/* ── Footer ── */
.tools-footer {
  margin-top: 56px;
  padding: 32px 18px calc(28px + var(--safe-bottom));
  background: linear-gradient(135deg, var(--red-dark), #450a0a);
  color: #fff;
  text-align: center;
}

.tools-footer-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: var(--red-dark);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 16px;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tools-footer-home-btn:hover { transform: scale(1.04); }

.tools-footer-copy { margin: 0; font-size: 0.82rem; opacity: 0.8; }

@media (max-width: 640px) {
  .tools-header-nav { width: 100%; justify-content: center; }
  .tools-nav-link { font-size: 0.78rem; padding: 7px 12px; }
  .tools-card { padding: 18px; }
  .tools-cta-premium { min-height: 260px; }
  .tools-cta-body { padding: 28px 18px; }
  .tools-sidebar-ad { position: static; }
}

.tools-seo-index {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tools-seo-index-title {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--text);
}

.tools-seo-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tools-seo-index li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.tools-seo-index li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tools-seo-index a {
  color: var(--red-dark);
  font-weight: 700;
  text-decoration: none;
}

.tools-seo-index p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Tools login gate ── */
body.tools-auth-locked { overflow: hidden; }

.tools-auth-wall {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tools-auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(122, 21, 21, 0.2);
  border: 1px solid var(--border);
}

.tools-auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.tools-auth-card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.tools-auth-card p {
  margin: 0 0 22px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.tools-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tools-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  font-family: inherit;
}

.tools-auth-btn.primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 20px var(--red-glow);
}

.tools-related {
  margin: 28px 0 8px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border, #e5e7eb);
}

.tools-related-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tools-related-title i { color: var(--red, #a62626); }

.tools-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.tools-related-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #334155;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color .2s, box-shadow .2s;
}

.tools-related-list a:hover {
  border-color: #d49090;
  box-shadow: 0 4px 12px rgba(166, 38, 38, .08);
}

.tools-auth-btn.secondary {
  background: #f3f4f6;
  color: var(--text);
}
