/* ═══════════════════════════════════════════════════════════
   TOOLHAUS v2 — Gen Z/Alpha Design System
   Vibe: Dark glass · Neon accents · Rounded everything
   Fonts: Clash Display + DM Sans (Google Fonts CDN)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg:          #0a0a0f;
  --bg2:         #0f0f1a;
  --bg3:         #141425;
  --surface:     rgba(255,255,255,0.04);
  --surface-2:   rgba(255,255,255,0.08);
  --surface-3:   rgba(255,255,255,0.12);
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.15);

  --ink:         #ffffff;
  --ink-2:       rgba(255,255,255,0.7);
  --ink-3:       rgba(255,255,255,0.4);
  --ink-4:       rgba(255,255,255,0.2);

  /* Neon accent trio */
  --cyan:        #00d4ff;
  --purple:      #a855f7;
  --green:       #22d3a3;
  --pink:        #f472b6;
  --orange:      #fb923c;

  --accent:      var(--cyan);
  --accent-rgb:  0, 212, 255;

  --grad-1:      linear-gradient(135deg, #00d4ff, #a855f7);
  --grad-2:      linear-gradient(135deg, #22d3a3, #00d4ff);
  --grad-3:      linear-gradient(135deg, #f472b6, #a855f7);
  --grad-4:      linear-gradient(135deg, #fb923c, #f472b6);

  --font-display: 'DM Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;

  --glow:    0 0 20px rgba(0,212,255,0.25);
  --glow-lg: 0 0 40px rgba(0,212,255,0.2), 0 0 80px rgba(168,85,247,0.1);
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);

  --trans: 0.2s cubic-bezier(0.4,0,0.2,1);
  --trans-spring: 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

/* Light mode override */
[data-theme="light"] {
  --bg:        #f0f2ff;
  --bg2:       #e8ebff;
  --bg3:       #dde2ff;
  --surface:   rgba(255,255,255,0.6);
  --surface-2: rgba(255,255,255,0.8);
  --surface-3: rgba(255,255,255,0.95);
  --border:    rgba(100,80,200,0.12);
  --border-2:  rgba(100,80,200,0.25);
  --ink:       #0d0d1f;
  --ink-2:     rgba(13,13,31,0.7);
  --ink-3:     rgba(13,13,31,0.45);
  --ink-4:     rgba(13,13,31,0.2);
  --shadow:    0 4px 24px rgba(100,80,200,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--trans), color var(--trans);
  -webkit-font-smoothing: antialiased;
}

/* Ambient mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(0,212,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 90%, rgba(168,85,247,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 60% 40%, rgba(34,211,163,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 60px;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .site-header {
  background: rgba(240,242,255,0.75);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--grad-1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.logo span { color: var(--cyan); }

.search-wrapper {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-wrapper input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  outline: none;
  transition: border-color var(--trans), background var(--trans), box-shadow var(--trans);
}

.search-wrapper input::placeholder { color: var(--ink-4); }

.search-wrapper input:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 0.9rem;
  pointer-events: none;
}

.header-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }

.theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  transition: all var(--trans);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.theme-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--ink);
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.5s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.5s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--ink-3);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
  animation: fadeUp 0.5s ease 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  animation: fadeUp 0.5s ease 0.3s both;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--ink-4);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ── TOOLS GRID ── */
.tools-section {
  padding: 0 1.5rem 5rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-count-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ── TOOL CARD ── */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-spring), border-color var(--trans), box-shadow var(--trans), background var(--trans);
  cursor: pointer;
  animation: fadeUp 0.4s ease both;
  backdrop-filter: blur(10px);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% -20%, var(--card-glow, rgba(0,212,255,0.08)), transparent 70%);
  opacity: 0;
  transition: opacity var(--trans);
  border-radius: inherit;
}

.tool-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg), 0 0 30px var(--card-glow, rgba(0,212,255,0.12));
  background: var(--surface-2);
  text-decoration: none;
  color: var(--ink);
}

.tool-card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--card-icon-bg, var(--surface-2));
  border: 1px solid var(--border);
}

.card-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-3);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--ink-3);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.card-arrow {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--trans);
  color: var(--ink-3);
}

.tool-card:hover .card-arrow {
  background: var(--grad-1);
  border-color: transparent;
  color: white;
  transform: rotate(45deg);
}

/* ── TOOL PAGE ── */
.tool-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  flex: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-4);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--trans);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb-sep { color: var(--ink-4); }

.tool-page-header { margin-bottom: 2rem; animation: fadeUp 0.4s ease both; }

.tool-page-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.9rem;
}

.tool-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.tool-page h1 .g { background: var(--grad-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.tool-intro {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.75;
}

/* ── GLASS CARD ── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  animation: fadeUp 0.4s ease 0.1s both;
}

.glass-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.glass-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glass-card-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.glass-card-body { padding: 1.5rem; }

/* ── INPUTS ── */
label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

label:first-child { margin-top: 0; }

textarea,
input[type="text"],
input[type="url"],
input[type="search"],
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--trans), background var(--trans), box-shadow var(--trans);
  line-height: 1.5;
}

textarea { min-height: 130px; }

textarea:focus,
input[type="text"]:focus,
input[type="url"]:focus,
select:focus {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

textarea::placeholder,
input::placeholder { color: var(--ink-4); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: all var(--trans-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0);
  transition: background var(--trans);
}

.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-1);
  color: white;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5), 0 4px 15px rgba(0,0,0,0.3);
  transform: translateY(-1px) scale(1.02);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--ink);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ── PILL TOGGLES ── */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  transition: all var(--trans);
}

.pill:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--ink);
}

.pill.active {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--cyan);
  font-weight: 600;
}

/* ── OUTPUT ── */
.output-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: none;
}

.output-section.visible { display: block; }

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.output-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.output-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.125rem;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 80px;
  max-height: 320px;
  overflow-y: auto;
}

[data-theme="light"] .output-box {
  background: rgba(0,0,50,0.04);
}

/* ── STATS ── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.stat-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.6rem 0.9rem;
  min-width: 80px;
  flex: 1;
}

.stat-chip strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-chip span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ── TOAST ── */
.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface-3);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.65rem 1.1rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.copy-toast::before { content: '✓'; color: var(--green); }
.copy-toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* ── CHECKBOX ── */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0.2rem 0;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── RANGE ── */
input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
  height: 4px;
}

/* ── TABS ── */
.tab-group {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.2rem;
  margin-bottom: 1.5rem;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 0.1rem;
}

.tab {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  cursor: pointer;
  border-radius: var(--r-full);
  color: var(--ink-3);
  transition: all var(--trans);
  white-space: nowrap;
}

.tab.active {
  background: var(--surface-3);
  color: var(--ink);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FAQ ── */
.faq-section {
  margin-top: 3rem;
  animation: fadeUp 0.4s ease 0.2s both;
}

.faq-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--trans);
}

.faq-item:hover { border-color: var(--border-2); }

.faq-q {
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.faq-q .faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all var(--trans);
  color: var(--cyan);
}

.faq-item.open .faq-icon {
  background: rgba(var(--accent-rgb),0.15);
  border-color: rgba(var(--accent-rgb),0.4);
  transform: rotate(45deg);
}

.faq-a {
  font-size: 0.83rem;
  color: var(--ink-3);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
  padding: 0 1.25rem;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 1.25rem 1rem;
}

/* ── RELATED TOOLS ── */
.related-tools {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  animation: fadeUp 0.4s ease 0.25s both;
}

.related-tools h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.75rem;
}

.related-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.related-link {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  transition: all var(--trans);
}

.related-link:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--cyan);
}

/* ── PRIVACY BADGE ── */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green);
}

.privacy-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}

/* ── AD SLOT ── */
.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: 1rem;
  text-align: center;
  font-size: 0.68rem;
  color: var(--ink-4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 1.5rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PASSWORD SPECIFIC ── */
.password-display {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1.25rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--cyan);
  word-break: break-all;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 20px rgba(var(--accent-rgb),0.4);
}

.strength-bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: var(--r-full);
  margin-top: 0.75rem;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 0.4s ease, background 0.4s ease;
}

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th {
  background: var(--surface-2);
  color: var(--ink-3);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
th:first-child { border-radius: var(--r-sm) 0 0 0; }
th:last-child { border-radius: 0 var(--r-sm) 0 0; }
td { padding: 0.5rem 0.9rem; border-bottom: 1px solid var(--border); color: var(--ink-2); }
tr:hover td { background: var(--surface); }
tr:last-child td { border-bottom: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--ink-4);
  margin-top: 0.5rem;
  max-width: 220px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: flex-start;
}

.footer-links a {
  color: var(--ink-3);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--trans);
}

.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--ink-4);
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* ── NO RESULTS ── */
.no-results {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-4);
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.no-results a { color: var(--cyan); text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50%       { opacity: 0.6; box-shadow: 0 0 12px var(--green); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.tool-card:nth-child(1)  { animation-delay: 0.05s; }
.tool-card:nth-child(2)  { animation-delay: 0.1s; }
.tool-card:nth-child(3)  { animation-delay: 0.15s; }
.tool-card:nth-child(4)  { animation-delay: 0.2s; }
.tool-card:nth-child(5)  { animation-delay: 0.25s; }
.tool-card:nth-child(6)  { animation-delay: 0.3s; }
.tool-card:nth-child(7)  { animation-delay: 0.35s; }
.tool-card:nth-child(8)  { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .site-header { gap: 0.5rem; }
  .search-wrapper { max-width: 150px; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 1.25rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .controls-row { flex-direction: column; }
  .controls-row .btn { width: 100%; }
  .tab-group { border-radius: var(--r); }
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--r-full);
  margin-top: 0.75rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--grad-1);
  border-radius: var(--r-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

/* ═══════════════════════════════════════════
   TOOLZOID ADDITIONS
   ═══════════════════════════════════════════ */

/* Logo Z icon - bolder */
.logo-icon {
  background: var(--grad-1);
  color: white !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  font-family: var(--font-display);
  letter-spacing: -1px;
}

/* card-meta shorthand */
.card-meta {
  font-size: 0.72rem;
  color: var(--ink-4);
  font-weight: 500;
}

/* ── AD BANNERS ── */
.ad-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: var(--r);
  color: var(--ink-4);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background var(--trans);
}

.ad-banner span {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

/* Top leaderboard */
.ad-top {
  min-height: 90px;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

/* In-content rectangle */
.ad-infeed {
  min-height: 280px;
  margin: 2rem 0 0;
  border-radius: var(--r-lg);
}

/* Tool page ads - above/below tool */
.ad-tool-top {
  min-height: 90px;
  margin-bottom: 1.5rem;
  border-radius: var(--r);
}

.ad-tool-bottom {
  min-height: 250px;
  margin: 1.5rem 0;
  border-radius: var(--r);
}

/* Sidebar ad (desktop only) */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1080px) {
  .tool-layout {
    grid-template-columns: 1fr 300px;
  }
  .ad-sidebar {
    position: sticky;
    top: 80px;
    min-height: 600px;
    border-radius: var(--r-lg);
    display: flex !important;
  }
}

.ad-sidebar {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px dashed rgba(255,255,255,0.07);
  color: var(--ink-4);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--r-lg);
  min-height: 600px;
}

/* ── FOOTER COLUMNS ── */
.footer-cols {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--ink-3);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--trans);
  line-height: 1.5;
}

.footer-links a:hover { color: var(--cyan); }

/* override old horizontal footer-links */
.footer-inner .footer-cols .footer-links {
  flex-direction: column;
}

/* ── PRIVACY / ABOUT / CONTACT PAGES ── */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  flex: 1;
}

.static-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

.static-page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  color: var(--ink-2);
}

.static-page p {
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.static-page ul {
  padding-left: 1.25rem;
  color: var(--ink-3);
  font-size: 0.88rem;
  line-height: 2;
}


/* ── SEO CONTENT BLOCK ── */
.seo-block {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.seo-block-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.seo-block h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media(min-width: 768px) {
  .seo-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.seo-block p {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

.seo-block p strong { color: var(--ink-2); }

.seo-block a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
  transition: border-color var(--trans), color var(--trans);
}

.seo-block a:hover {
  border-bottom-color: var(--cyan);
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.seo-tags a {
  background: var(--surface-2);
  border: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: var(--r-full);
  color: var(--ink-3) !important;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  transition: all var(--trans);
}

.seo-tags a:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  color: var(--cyan) !important;
}

/* ══════════════════════════════════════════════
   HOMEPAGE v4 ADDITIONS
   ══════════════════════════════════════════════ */

/* Category filter pills */
.cat-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  transition: all var(--trans);
}
.cat-filter:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--ink);
}
.cat-filter.active {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--cyan);
  font-weight: 600;
}

/* SEO block upgrades */
.seo-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-2);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: -0.2px;
}
.seo-block h3:first-child { margin-top: 0; }

/* Why Toolzoid grid */
.seo-why {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.seo-why h3 {
  font-size: 1rem !important;
  font-weight: 700;
  color: var(--ink) !important;
  margin-bottom: 1.25rem !important;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media(max-width: 600px){ .why-grid { grid-template-columns: 1fr; } }

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.why-icon { font-size: 1.25rem; line-height: 1; margin-bottom: 0.15rem; }
.why-item strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.why-item p {
  font-size: 0.78rem !important;
  color: var(--ink-4) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Footer columns expanded */
@media(min-width: 768px){
  .footer-cols { grid-template-columns: repeat(4, 1fr); display: grid; }
}

/* ── INTERNAL LINKS SIDEBAR on tool pages ── */
.tool-layout-with-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media(min-width: 1000px){
  .tool-layout-with-links { grid-template-columns: 1fr 240px; }
}

.internal-links-sidebar {
  display: none;
}
@media(min-width: 1000px){
  .internal-links-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 80px;
  }
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sidebar-card-header {
  padding: 0.65rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.sidebar-links {
  display: flex;
  flex-direction: column;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--trans);
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover {
  background: var(--surface-2);
  color: var(--cyan);
}
.sidebar-link-icon { font-size: 0.85rem; flex-shrink: 0; }

/* Programmatic page: also-see links */
.also-see-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.85rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.also-see-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}
.also-see-bar a {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  text-decoration: none;
  transition: all var(--trans);
}
.also-see-bar a:hover {
  background: rgba(var(--accent-rgb),0.12);
  border-color: rgba(var(--accent-rgb),0.3);
  color: var(--cyan);
}

/* ══════════════════════════════════════════════
   SEO CONTENT BLOCKS (programmatic pages)
   ══════════════════════════════════════════════ */
.seo-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  margin: 1.5rem 0;
}

.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.seo-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-2);
  margin: 1.4rem 0 0.5rem;
}

.seo-content p {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.seo-content p:last-child { margin-bottom: 0; }

.seo-content ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.seo-content ul li {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
}

.seo-content ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.seo-content a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
  transition: border-color var(--trans);
}
.seo-content a:hover { border-bottom-color: var(--cyan); }

.seo-content code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Fira Code','Consolas',monospace;
  font-size: 0.8em;
  padding: 0.1em 0.4em;
  color: var(--cyan);
}

.seo-content strong { color: var(--ink-2); font-weight: 600; }

/* ── HOMEPAGE SEO SECTION ── */
.homepage-seo {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.homepage-seo-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.homepage-seo h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.homepage-seo p {
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.8;
  max-width: 900px;
}

.homepage-seo a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  transition: border-color var(--trans);
}
.homepage-seo a:hover { border-bottom-color: var(--cyan); }


/* ══════════════════════════════════════════════════════
   7 SEO FIXES — NEW COMPONENT STYLES
   ══════════════════════════════════════════════════════ */

/* ── USE CASES ── */
.use-cases-section {
  margin: 1.5rem 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.use-cases-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 1.1rem;
  color: var(--ink);
}
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media(min-width:640px){ .use-cases-grid { grid-template-columns: 1fr 1fr; } }

.use-case-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.use-case-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.use-case-item strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.2rem;
}
.use-case-item p {
  font-size: 0.78rem;
  color: var(--ink-4);
  line-height: 1.6;
  margin: 0;
}

/* ── COMPARISON ── */
.comparison-section {
  margin: 1.5rem 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.comparison-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 1rem;
  color: var(--ink);
}
.comp-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.comp-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background var(--trans);
}
.comp-row:last-child { border-bottom: none; }
.comp-row:hover { background: var(--surface-2); }
.comp-feature {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
}
.comp-desc {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.6;
}
@media(max-width:560px){
  .comp-row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ── FEATURED SNIPPETS ── */
.snippets-section {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.snippet-block {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r);
}
.snippet-block h2 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.1px;
}
.snippet-block p {
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 0;
}

/* ── RELATED TOOLS GRID ── */
.related-tools-grid {
  padding: 0 1.5rem;
  max-width: 840px;
  margin: 2rem auto 1rem;
}
.rtg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.rtg-header h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.rtg-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: opacity var(--trans);
}
.rtg-category:hover { opacity: 0.75; }

.rtg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media(max-width:640px){ .rtg-grid { grid-template-columns: repeat(2, 1fr); } }

.rtg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--trans-spring);
}
.rtg-item:hover {
  background: var(--surface-2);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--cyan);
  transform: translateY(-2px);
}
.rtg-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.rtg-label {
  font-size: 0.7rem;
  line-height: 1.3;
}

/* ── CATEGORY BREADCRUMB ── */
.breadcrumb-cat-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity var(--trans);
}
.breadcrumb-cat-link:hover { opacity: 0.75; }


/* ══════════════════════════════════════════════════════
   MASTER TEMPLATE — NEW COMPONENTS
   ══════════════════════════════════════════════════════ */

/* ── MID-CONTENT SEO BLOCK (Fix 1) ── */
.mid-seo-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}
.mid-seo-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media(min-width:720px){
  .mid-seo-inner { grid-template-columns: 1fr 1fr; }
}
.mid-seo-left {
  padding: 1.5rem;
  border-right: 0;
  border-bottom: 1px solid var(--border);
}
@media(min-width:720px){
  .mid-seo-left { border-right: 1px solid var(--border); border-bottom: 0; }
}
.mid-seo-right {
  padding: 1.5rem;
  background: var(--surface-2);
}
.mid-seo-block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}
.mid-seo-block h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
}
.mid-seo-block p {
  font-size: 0.83rem;
  color: var(--ink-3);
  line-height: 1.75;
  margin: 0;
}
.mid-seo-block ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}
.mid-seo-block ul li {
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.mid-seo-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.7rem;
}
.mid-seo-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.msf-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.msf-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── BOTTOM SEO BLOCK (Fix 7) ── */
.seo-bottom {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--cyan);
}
.seo-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.seo-bottom h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.2px;
}
.seo-bottom p {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.75;
  margin: 0;
}
.seo-bottom a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb),0.2);
  transition: border-color var(--trans);
}
.seo-bottom a:hover { border-bottom-color: var(--cyan); }
.seo-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.sbl-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}
.seo-bottom-links a {
  background: var(--surface-2);
  border: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: var(--r-full);
  color: var(--ink-2) !important;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  text-decoration: none;
  transition: all var(--trans);
}
.seo-bottom-links a:hover {
  background: rgba(var(--accent-rgb),0.1);
  border-color: rgba(var(--accent-rgb),0.35) !important;
  color: var(--cyan) !important;
}

