/* SEO-GEO Toolkit — Numiko brand styling */

@font-face {
  font-family: 'ModernEra';
  src: url('../fonts/ModernEra-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ModernEra';
  src: url('../fonts/ModernEra-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ModernEra';
  src: url('../fonts/ModernEra-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Numiko design tokens */
  --color-ink:        #0F172A;   /* near-black navy */
  --color-orange:     #F46A1B;   /* Numiko orange */
  --color-orange-dk:  #BE3B10;   /* orange hover */
  --color-muted:      #64748B;   /* slate-500 */
  --color-bg:         #FCF8F3;   /* warm off-white */
  --color-surface:    #FFFFFF;
  --color-border:     #FEEBD6;   /* light orange tint */
  --color-border-mid: #E2D5C8;   /* slightly stronger border */

  /* Semantic colours */
  --color-text:       var(--color-ink);
  --color-primary:    var(--color-orange);
  --color-primary-hover: var(--color-orange-dk);
  --color-danger:     #B42828;
  --color-ok:         #167832;
  --color-warn:       #B47A00;
  --color-fail:       #B42828;
  --color-green-bg:   #EBFAF0;
  --color-amber-bg:   #FFF8E6;
  --color-red-bg:     #FFF0F0;
  --color-subtle:     var(--color-muted);

  --radius: 6px;
  --shadow: 0 1px 4px rgba(15,23,42,0.10);
}

body {
  font-family: 'ModernEra', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
}

a { color: var(--color-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
.nav {
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 56px;
  gap: 24px;
}
.nav-brand a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.nav-logo {
  height: 32px;
  width: auto;
  display: block;
  /* Numiko logo is dark — invert to white on dark nav */
  filter: brightness(0) invert(1);
}
.nav-links { list-style: none; display: flex; gap: 4px; margin-left: auto; margin-right: 0; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(244,106,27,0.25);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--color-orange);
}

/* ── Layout ── */
.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 36px 28px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { color: var(--color-muted); font-size: 14px; margin-top: 4px; }

/* ── Cards (dashboard) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.tool-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s, border-color 0.15s;
  color: var(--color-text);
}
.tool-card:hover {
  border-color: var(--color-orange);
  box-shadow: 0 2px 12px rgba(244,106,27,0.12);
  text-decoration: none;
}
.tool-icon { font-size: 28px; margin-bottom: 10px; }
.tool-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tool-card p { font-size: 13px; color: var(--color-muted); line-height: 1.5; }
.card-cta { display: block; margin-top: 14px; font-size: 13px; color: var(--color-orange); font-weight: 500; }

/* ── Forms ── */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  max-width: 660px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--color-text); }
.form-group input[type=text],
.form-group input[type=url],
.form-group input[type=file],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--color-border-mid);
  border-radius: 5px;
  font-size: 14px;
  font-family: 'ModernEra', Arial, sans-serif;
  background: #fff;
  color: var(--color-text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(244,106,27,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.form-divider { border: none; border-top: 1px solid var(--color-border); margin: 16px 0; }
.required { color: var(--color-danger); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'ModernEra', Arial, sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--color-orange); color: #fff; border-color: var(--color-orange); }
.btn-primary:hover { background: var(--color-orange-dk); border-color: var(--color-orange-dk); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--color-ink); border-color: var(--color-border-mid); }
.btn-secondary:hover { background: var(--color-bg); text-decoration: none; }
.btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-large { padding: 12px 24px; font-size: 15px; }
.btn-loading { display: none; }
.loading .btn-text { display: none; }
.loading .btn-loading { display: inline; }

/* ── Alerts / Flash ── */
.flash, .alert {
  padding: 10px 16px;
  border-radius: 5px;
  margin-bottom: 16px;
  font-size: 14px;
}
.flash, .flash-message { background: #FFF7ED; border: 1px solid #FEEBD6; color: var(--color-ink); }
.flash-error, .alert-error { background: var(--color-red-bg); border: 1px solid #e8aaaa; color: var(--color-danger); }
.alert-warn { background: #FFFBEB; border: 1px solid #F5D76E; color: #856404; border-radius: 6px; padding: 12px 16px; font-size: 13px; }
.partial-results-banner { margin-bottom: 16px; }
.row-blocked td { opacity: 0.5; }
.status-blocked { color: var(--color-muted) !important; }

/* ── Results ── */
.results-section { margin-top: 8px; }
.results-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.results-header h2 { font-size: 18px; font-weight: 700; flex: 1; }
.results-count { color: var(--color-muted); font-size: 13px; }

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border-mid);
  font-size: 14px;
}
.results-table th {
  background: var(--color-ink);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.results-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:nth-child(even) td { background: #FEFBF8; }
.results-table .actions { display: flex; gap: 6px; }
.inline-form { display: inline; }

/* Status indicators */
.status-ok   { color: var(--color-ok);   font-weight: 600; white-space: nowrap; }
.status-warn { color: var(--color-warn);  font-weight: 600; white-space: nowrap; }
.status-fail { color: var(--color-fail);  font-weight: 600; white-space: nowrap; }

/* Score badge */
.score-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.score-green { background: var(--color-green-bg); color: var(--color-ok); }
.score-amber { background: var(--color-amber-bg); color: var(--color-warn); }
.score-red   { background: var(--color-red-bg);   color: var(--color-fail); }

.score-legend {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  flex-wrap: wrap;
}
.legend-item {
  padding: 3px 10px;
  border-radius: 12px;
}

/* Report download section */
.report-download-section {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
}
.report-download-section h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
.report-download-section p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-muted);
}
.report-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.report-form-row .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}
.optional { font-weight: 400; color: var(--color-muted); font-size: 11px; }

/* Sortable table */
.sortable { cursor: pointer; user-select: none; }
.sortable::after { content: ' ⇅'; opacity: 0.5; font-size: 11px; }
.sortable.asc::after { content: ' ↑'; opacity: 1; }
.sortable.desc::after { content: ' ↓'; opacity: 1; }

/* Client chips */
.client-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}

/* Info box */
.info-box {
  background: #FFF7ED;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
  max-width: 660px;
}
.info-box h3 { font-size: 15px; margin-bottom: 10px; font-weight: 700; }
.info-box ol { padding-left: 18px; }
.info-box li { font-size: 13px; margin-bottom: 5px; line-height: 1.5; }

/* Section */
.section { margin-top: 32px; }
.section h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

/* Clients table */
.clients-table-wrap { overflow-x: auto; }

/* Empty state */
.empty-state { color: var(--color-muted); font-size: 14px; padding: 24px 0; }

/* ── Intent chips ── */
.intent-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.intent-informational  { background: #EFF6FF; color: #1D4ED8; }
.intent-navigational   { background: #F3E8FF; color: #7C3AED; }
.intent-commercial     { background: #FFF8E6; color: #B47A00; }
.intent-transactional  { background: #EBFAF0; color: #167832; }
.intent-positive       { background: #EBFAF0; color: #167832; }
.intent-neutral        { background: #F1F5F9; color: #475569; }
.intent-negative       { background: #FFF0F0; color: #B42828; }

/* ── Metric cards ── */
.metric-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 120px;
  text-align: center;
  flex: 1;
}
.metric-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
}
.metric-label {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.metric-sub {
  margin-top: 6px;
}
.metric-cards-section {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
}
.metric-cards-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

/* ── Tabs (multi-LLM) ── */
.tab-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--color-border-mid);
  margin-bottom: 16px;
}
.tab-btn {
  padding: 7px 16px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: 'ModernEra', Arial, sans-serif;
  cursor: pointer;
  color: var(--color-muted);
  transition: background 0.12s, color 0.12s;
  position: relative;
  bottom: -2px;
}
.tab-btn:hover { background: var(--color-bg); color: var(--color-ink); }
.tab-btn.active {
  background: var(--color-surface);
  color: var(--color-orange);
  border-color: var(--color-border-mid);
  border-bottom-color: var(--color-surface);
}
.tab-badge {
  display: inline-block;
  margin-left: 5px;
  font-size: 10px;
  vertical-align: middle;
}
.tab-badge-ok { color: var(--color-ok); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── LLM answer box ── */
.llm-answer-box {
  background: #FAFAFA;
  border: 1px solid var(--color-border-mid);
  border-left: 3px solid var(--color-orange);
  border-radius: 5px;
  padding: 16px 18px;
  margin-top: 10px;
}
.llm-answer-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.llm-answer-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Source list ── */
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.source-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.source-list li:last-child { border-bottom: none; }

/* ── Utility text colours ── */
.text-ok   { color: var(--color-ok);   }
.text-warn { color: var(--color-warn); }
.text-muted { color: var(--color-muted); }

/* ── How-To Guide (collapsible <details>/<summary>) ─────────────────────── */
.how-to {
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
  margin-bottom: 20px;
  max-width: 660px;
}
.how-to-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  list-style: none;
  user-select: none;
}
.how-to-summary::-webkit-details-marker { display: none; }
.how-to-summary:hover {
  color: var(--color-ink);
  background: var(--color-bg);
  border-radius: var(--radius);
}
.how-to-chevron {
  font-size: 10px;
  color: var(--color-muted);
  transition: transform 0.2s;
}
details[open] .how-to-chevron {
  transform: rotate(180deg);
}
.how-to-body {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.how-to-section { }
.how-to-full {
  grid-column: 1 / -1;
}
.how-to-section h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-orange);
  margin: 14px 0 6px;
}
.how-to-section p,
.how-to-section li,
.how-to-section dd {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.55;
  margin-bottom: 4px;
}
.how-to-section code {
  font-family: monospace;
  font-size: 12px;
  background: var(--color-border);
  padding: 1px 4px;
  border-radius: 3px;
}
.how-to-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}
.how-to-tips li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 5px;
}
.how-to-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: 600;
}
.how-to-section dl { margin: 0; }
.how-to-section dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  margin-top: 8px;
}
.how-to-section dd {
  margin-left: 0;
  color: var(--color-muted);
  margin-bottom: 4px;
}

/* ── Nav user info ── */
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
  white-space: nowrap;
}
.nav-user-name {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
}
.nav-user-logout {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-user-logout:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  text-decoration: none;
}

/* ── Auth pages ── */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
}
.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-card .subtitle {
  margin-bottom: 24px;
}
.auth-card .form-group input[type=email],
.auth-card .form-group input[type=password],
.auth-card .form-group input[type=text] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--color-border-mid);
  border-radius: 5px;
  font-size: 14px;
  font-family: 'ModernEra', Arial, sans-serif;
  background: #fff;
  color: var(--color-text);
}
.auth-card .form-group input:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(244,106,27,0.15);
}
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 20px;
}
.form-group--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: normal;
  cursor: pointer;
  color: var(--color-text);
}
.checkbox-label input[type=checkbox] {
  width: auto;
  margin: 0;
  cursor: pointer;
}
.form-link-right {
  font-size: 13px;
  color: var(--color-orange);
  text-decoration: none;
}
.form-link-right:hover { text-decoration: underline; }

/* ── Client select row (select + "New" button side-by-side) ── */
.client-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-select-row select {
  flex: 1;
  min-width: 0;
}
.btn-small {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Quick-create client modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay[hidden] { display: none; }
.modal-dialog {
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px;
  margin: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.20);
  animation: modal-in 0.15s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--color-border-mid);
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}
.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-close:hover { color: var(--color-text); background: var(--color-border); }
.modal-body {
  padding: 20px 20px 0;
}
.modal-footer {
  display: flex;
  gap: 8px;
  padding: 16px 20px 20px;
  margin-top: 4px;
}
.modal-error {
  color: #dc2626;
  font-size: 13px;
  min-height: 16px;
  margin-bottom: 2px;
}

/* ── Stealth / Cloudflare bypass toggle ─────────────────────────────── */
.stealth-toggle-group {
  margin-top: 4px;
  margin-bottom: 20px;
}
.stealth-label {
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #F8FAFF;
  border: 1px solid #D0DCF5;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.stealth-label:hover {
  background: #EFF4FF;
  border-color: #7AA0E8;
}
.stealth-label input[type=checkbox] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #2563eb;
}
.stealth-label-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stealth-label-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-ink);
}
.stealth-label-desc {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* Results header: score badge + stealth badge side by side */
.results-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stealth-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF4FF;
  border: 1px solid #93B4F0;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Report client summary (replaces manual name/project inputs) ──────── */
.report-client-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-mid);
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 13px;
}
.report-client-label {
  color: var(--color-muted);
  font-size: 12px;
  flex-shrink: 0;
}
.report-client-name {
  font-weight: 700;
  color: var(--color-ink);
}
.report-project-name {
  color: var(--color-muted);
  font-size: 12px;
}
.report-project-name::before {
  content: '·';
  margin-right: 6px;
}

/* ── AI Visibility — mention banners ──────────────────────────────────────── */
.mention-banner {
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 13px;
  margin-bottom: 12px;
}
.mention-banner-ok {
  background: #EBFAF0;
  border: 1px solid #a8dab5;
  color: #167832;
}
.mention-banner-warn {
  background: #FFF8EC;
  border: 1px solid #f5d08a;
  color: #7a4e00;
}

/* ── AI Visibility — aggregated metrics scorecard ─────────────────────────── */
.agg-metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.agg-metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 200px;
  flex: 1;
}
.agg-metric-platform {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-orange);
  margin-bottom: 10px;
}
.agg-metric-row {
  display: flex;
  gap: 20px;
}
.agg-metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.agg-metric-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1;
}
.agg-metric-label {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── AI Visibility — LLM mention cards ───────────────────────────────────── */
.mention-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mention-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.mention-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mention-platform-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-bg);
  border: 1px solid var(--color-border-mid);
  color: var(--color-muted);
}
.mention-platform-badge.mention-platform-google { border-color: #4285F4; color: #4285F4; }
.mention-platform-badge.mention-platform-chatgpt { border-color: #10a37f; color: #10a37f; }
.mention-vol {
  font-size: 11px;
  color: var(--color-muted);
  margin-left: auto;
}
.mention-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 6px;
}
.mention-answer {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 8px;
}
.mention-sources {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0;
}
.mention-source-chip {
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  margin: 0 3px 0 0;
}

/* ── AI Visibility — top domains table ───────────────────────────────────── */
.top-domain-target { background: #FAFFF5; font-weight: 600; }
.target-chip {
  display: inline-block;
  background: #d4f4df;
  color: #0e6b30;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── AI Visibility — shared section meta label ────────────────────────────── */
.section-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
}
.sources-heading {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--color-ink);
}

/* Responsive */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-user { display: none; }
  .auth-card { padding: 24px 20px; }
  .container { padding: 20px 16px; }
  .metric-card { min-width: 90px; }
  .how-to-body { grid-template-columns: 1fr; }
  .how-to-full { grid-column: 1; }
}
