/* ══════════════════════════════════════════════════════════════
   Anchor Text Extractor — SEOWebChecker.com
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --accent:        #06b6d4;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;

  --bg:            #f8fafc;
  --surface:       #ffffff;
  --surface2:      #f1f5f9;
  --border:        #e2e8f0;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-inv:      #ffffff;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
  --nav-h:      64px;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-disp:  'Outfit', 'Inter', system-ui, sans-serif;
  --transition: .2s ease;
}

[data-theme="dark"] {
  --bg:         #0f172a;
  --surface:    #1e293b;
  --surface2:   #0f172a;
  --border:     #334155;
  --text:       #f1f5f9;
  --text-muted: #94a3b8;
  --primary-light: #1e1b4b;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow:     0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.6);
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Cookie Banner ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  transition: transform .35s ease;
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-banner p { flex: 1; font-size: 14px; min-width: 220px; }
.cookie-btns { display: flex; gap: 10px; }
.btn-cookie-accept, .btn-cookie-dismiss {
  padding: 8px 18px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; font-size: 14px; font-weight: 600; transition: opacity var(--transition);
}
.btn-cookie-accept  { background: var(--primary); color: #fff; }
.btn-cookie-dismiss { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-cookie-accept:hover, .btn-cookie-dismiss:hover { opacity: .85; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-disp); font-size: 20px;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.logo-text strong { color: var(--primary); }
.logo-icon { font-size: 22px; }

.nav-menu { flex: 1; }
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-dropdown-btn {
  display: block; padding: 8px 14px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition);
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-links > li > a:hover,
.nav-dropdown-btn:hover { color: var(--primary); background: var(--primary-light); }
.caret { font-size: 11px; }

/* Mega dropdown */
.mega-dropdown {
  display: none; position: absolute; top: 100% ; left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px; gap: 32px;
  min-width: 480px; flex-wrap: wrap; z-index: 500;
  animation: fadeDown .2s ease;
}
.has-dropdown:hover .mega-dropdown,
.has-dropdown:focus-within .mega-dropdown { display: flex; }
.mega-col { min-width: 180px; }
.mega-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.mega-col a {
  display: block; padding: 5px 0; font-size: 13.5px; color: var(--text);
  transition: color var(--transition);
}
.mega-col a:hover { color: var(--primary); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 10px;
  cursor: pointer; font-size: 16px; line-height: 1;
  transition: background var(--transition);
}
.theme-toggle:hover { background: var(--primary-light); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

@media (max-width: 768px) {
  .nav-menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px 20px; flex-direction: column; gap: 0;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-links > li > a,
  .nav-dropdown-btn { width: 100%; }
  .mega-dropdown {
    position: static; box-shadow: none; border: none; border-radius: 0;
    min-width: unset; padding: 8px 0 8px 16px; gap: 16px;
    background: var(--surface2);
  }
  .has-dropdown .mega-dropdown { display: none; }
  .has-dropdown.open .mega-dropdown { display: flex; flex-direction: column; }
  .hamburger { display: flex; }
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb-nav { background: var(--surface2); border-bottom: 1px solid var(--border); }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; padding: 10px 0; font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--primary); font-weight: 600; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 70px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #818cf8 50%, var(--accent) 100%);
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.18); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-disp); font-size: clamp(36px, 6vw, 62px);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(90deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.88);
  max-width: 660px; margin: 0 auto 40px;
}

/* Tool Card */
.tool-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 32px;
  max-width: 720px; margin: 0 auto;
}
.input-group { margin-bottom: 16px; }
.input-wrap {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.input-icon { padding: 0 12px 0 16px; font-size: 18px; flex-shrink: 0; }
.input-wrap input {
  flex: 1; border: none; background: transparent; color: var(--text);
  font-size: 15px; padding: 14px 0; outline: none; font-family: var(--font-sans);
  min-width: 0;
}
.input-wrap input::placeholder { color: var(--text-muted); }
.btn-clear {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 0 16px; font-size: 16px; flex-shrink: 0; display: none;
  transition: color var(--transition);
}
.btn-clear:hover { color: var(--danger); }
.btn-clear.visible { display: block; }
.field-error { font-size: 13px; color: var(--danger); margin-top: 6px; min-height: 18px; }

.options-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 20px;
}
.opt-check { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.opt-check input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); padding: 14px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-sans);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.35); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); border-radius: var(--radius); padding: 12px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-extract { width: 100%; font-size: 16px; padding: 16px; position: relative; }
.btn-spinner {
  display: none; width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-extract.loading .btn-text { opacity: 0; }
.btn-extract.loading .btn-spinner { display: block; position: absolute; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Results Section ──────────────────────────────────────── */
.results-section { padding: 60px 0; animation: fadeIn .4s ease; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-2px); }
.stat-num { font-family: var(--font-disp); font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Toolbar */
.results-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 16px;
}
.results-toolbar input,
.results-toolbar select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 14px;
  color: var(--text); font-size: 14px; font-family: var(--font-sans);
  outline: none; transition: border-color var(--transition);
}
.results-toolbar input:focus,
.results-toolbar select:focus { border-color: var(--primary); }
.results-toolbar input { flex: 1; min-width: 200px; }

/* Table */
.table-wrap {
  width: 100%; overflow-x: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.results-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.results-table th {
  background: var(--surface2); color: var(--text-muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.results-table th.sortable { cursor: pointer; user-select: none; }
.results-table th.sortable:hover { color: var(--primary); }
.results-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: middle; max-width: 320px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.results-table tbody tr:last-child td { border-bottom: none; }
.results-table tbody tr:hover { background: var(--primary-light); }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 50px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-internal { background: #dcfce7; color: #166534; }
.badge-external { background: #fef9c3; color: #854d0e; }
.badge-text  { background: var(--primary-light); color: var(--primary); }
.badge-image { background: #e0f2fe; color: #0369a1; }
.badge-empty { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .badge-internal { background: #14532d; color: #86efac; }
[data-theme="dark"] .badge-external { background: #422006; color: #fde68a; }
[data-theme="dark"] .badge-text     { background: #1e1b4b; color: #a5b4fc; }
[data-theme="dark"] .badge-image    { background: #0c4a6e; color: #7dd3fc; }
[data-theme="dark"] .badge-empty    { background: #450a0a; color: #fca5a5; }

.url-cell a { color: var(--primary); font-size: 12.5px; }
.url-cell a:hover { text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin: 20px 0;
}
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 14px; transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Action bar */
.action-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}
.btn-action {
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all var(--transition); font-family: var(--font-sans);
}
.btn-action:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.btn-csv { border-color: var(--success); color: var(--success); }
.btn-csv:hover { background: #d1fae5; }
.btn-reset { border-color: var(--danger); color: var(--danger); }
.btn-reset:hover { background: #fee2e2; }

/* Share & Feedback */
.share-feedback {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.share-label { font-weight: 600; font-size: 14px; margin-right: 4px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: opacity var(--transition); display: inline-block;
}
.share-btn:hover { opacity: .8; text-decoration: none; }
.share-btn.twitter  { background: #000; color: #fff; }
.share-btn.linkedin { background: #0077b5; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.copy-link { background: var(--surface2); color: var(--text); border-color: var(--border); }
.btn-feedback {
  margin-left: auto; padding: 9px 18px;
  background: var(--primary); color: #fff; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background var(--transition);
}
.btn-feedback:hover { background: var(--primary-hover); text-decoration: none; }

/* ── Features ──────────────────────────────────────────────── */
.features-section { padding: 80px 0; background: var(--surface2); }
.section-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-disp); font-size: clamp(24px, 4vw, 38px);
  font-weight: 800; color: var(--text); margin-bottom: 48px;
  max-width: 600px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── How It Works ─────────────────────────────────────────── */
.how-section { padding: 80px 0; }
.steps-row {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 20px; margin-top: 8px;
}
.step {
  flex: 1; min-width: 200px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-disp); font-size: 20px; font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow {
  font-size: 28px; color: var(--primary); align-self: center;
  flex-shrink: 0;
}
@media (max-width: 600px) { .step-arrow { display: none; } }

/* ── Article ──────────────────────────────────────────────── */
.article-section { padding: 70px 0; background: var(--surface2); }
.article-inner { max-width: 820px; }
.article-inner h2 {
  font-family: var(--font-disp); font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; margin-bottom: 24px;
}
.article-body p { margin-bottom: 18px; font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); }
.article-body code {
  background: var(--primary-light); color: var(--primary);
  padding: 1px 6px; border-radius: 4px; font-size: 13px;
}

/* ── Related Tools ────────────────────────────────────────── */
.related-section { padding: 70px 0; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px; margin-top: 8px;
}
.related-card {
  display: block; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 14px; color: var(--text); font-weight: 500;
  transition: all var(--transition); text-decoration: none;
}
.related-card:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section { padding: 80px 0; background: var(--surface2); }
.faq-list { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px;
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-sans);
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--primary); flex-shrink: 0; }
.faq-q[aria-expanded="true"]::after { content: '−'; }
.faq-a { display: none; padding: 0 22px 18px; }
.faq-a.open { display: block; }
.faq-a p { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-family: var(--font-disp); font-size: clamp(26px, 4vw, 42px);
  font-weight: 800; color: #fff; margin-bottom: 12px;
}
.cta-inner p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-section .btn-primary { background: #fff; color: var(--primary); }
.cta-section .btn-primary:hover { background: rgba(255,255,255,.9); }
.cta-section .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,.15); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 0; }
[data-theme="dark"] .site-footer { background: #020617; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #1e293b;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo {
  display: inline-block; font-family: var(--font-disp);
  font-size: 20px; font-weight: 800; color: #fff;
  margin-bottom: 12px; text-decoration: none;
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 340px; }
.trademark { font-size: 12px; color: #64748b; margin-top: 12px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: #94a3b8; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13.5px; color: #94a3b8;
  padding: 3px 0; transition: color var(--transition); text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center; padding: 20px; font-size: 13px; color: #475569;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55); display: flex;
  align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.modal-box {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 36px; max-width: 440px; width: 90%; position: relative;
  box-shadow: var(--shadow-lg); text-align: center;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 18px;
  color: var(--text-muted); cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--danger); }
.modal-box h3 { font-family: var(--font-disp); font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.modal-box p { color: var(--text-muted); margin-bottom: 20px; }

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
  .tool-card { padding: 22px 16px; }
  .action-bar { flex-direction: column; }
  .btn-action { width: 100%; justify-content: center; }
  .share-feedback { flex-direction: column; align-items: flex-start; }
  .btn-feedback { margin-left: 0; }
  .results-toolbar { flex-direction: column; }
  .results-toolbar input,
  .results-toolbar select { width: 100%; }
  .steps-row { flex-direction: column; }
  .mega-dropdown { min-width: unset; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .navbar, .cookie-banner, .hero, .cta-section, .site-footer,
  .action-bar, .share-feedback, .results-toolbar, .pagination { display: none !important; }
  .results-section { padding: 0; }
  .table-wrap { box-shadow: none; border: 1px solid #ccc; }
}
