/* SEO Checker — results dashboard (mobile + desktop) */

#seo-results-container {
  --seo-pass: #10b981;
  --seo-warn: #f59e0b;
  --seo-fail: #ef4444;
  --seo-meta: #059669;
  --seo-content: #2563eb;
  --seo-tech: #7c3aed;
  --seo-struct: #db2777;
  --seo-index: #ea580c;
  --seo-surface: #ffffff;
  --seo-muted: #64748b;
  --seo-border: #e2e8f0;
  --seo-bg: #f8fafc;
  font-family: inherit;
  color: #0f172a;
  padding-bottom: 2rem;
}

/* Results page — Seobility-style centered report (see seobility.net SEO checker) */
.seo-results-wrap {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  background: #eef1f6;
  padding: 1.5rem 0 2rem;
}

.seo-results-wrap .container.seo-results-page {
  max-width: 920px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

#seo-results-container {
  max-width: 100%;
}

.seo-report-shell {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

/* Purple results header (readable white text) */
.seo-report-hero {
  background: linear-gradient(135deg, #1a0b3d 0%, #2d1b69 48%, #3b2290 100%);
  padding: 1.35rem 1.5rem 1.25rem;
  text-align: center;
  color: #fff;
}

.seo-report-hero-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.seo-report-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background: none;
  line-height: 1.25;
}

.seo-report-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.seo-report-hero-url {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9 !important;
  word-break: break-all;
  line-height: 1.4;
}

.seo-report-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Score row — gauge left, label right (Seobility layout) */
.seo-report-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--seo-border);
}

@media (min-width: 576px) {
  .seo-report-score-block {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.seo-score-meta {
  text-align: center;
  flex: 1;
  min-width: 0;
}

@media (min-width: 576px) {
  .seo-score-meta {
    text-align: left;
  }
}

.seo-score-ring {
  --seo-score-pct: 50;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    var(--seo-ring-color, #10b981) calc(var(--seo-score-pct) * 1%),
    #e2e8f0 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.seo-score-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

.seo-score-ring-inner {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.seo-score-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.seo-score-sublabel {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin-top: 0.25rem;
}

/* Summary stats — four compact tiles */
.seo-report-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  padding: 0 1.25rem 1.25rem;
}

@media (min-width: 576px) {
  .seo-report-stats {
    grid-template-columns: repeat(4, 1fr);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.seo-stat-item {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 10px;
}

.seo-stat-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.seo-stat-lbl {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--seo-muted);
}

.seo-stat-item.pass .seo-stat-num { color: var(--seo-pass); }
.seo-stat-item.warn .seo-stat-num { color: var(--seo-warn); }
.seo-stat-item.fail .seo-stat-num { color: var(--seo-fail); }
.seo-stat-item.total .seo-stat-num { color: #2d1b69; }

/* Category scores — single bar, not full viewport width */
.seo-report-categories {
  display: flex;
  flex-wrap: wrap;
  margin: 0 1.25rem 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 576px) {
  .seo-report-categories {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

.seo-report-cat-item {
  flex: 1 1 0;
  min-width: 88px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--seo-border);
}

.seo-report-cat-item:last-child {
  border-right: none;
}

.seo-report-cat-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--seo-muted);
  margin-bottom: 0.2rem;
}

.seo-report-cat-score {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.seo-cat-bar {
  height: 4px;
  margin: 0.35rem auto 0.25rem;
  max-width: 72px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.seo-cat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #10b981);
  border-radius: 2px;
}

/* URL toolbar (re-check / share) */
.seo-report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 1.25rem 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 10px;
}

@media (min-width: 576px) {
  .seo-report-toolbar {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

.seo-report-toolbar-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  word-break: break-all;
  flex: 1 1 200px;
  min-width: 0;
}

.seo-report-toolbar-url i {
  color: #7c3aed;
  flex-shrink: 0;
}

.seo-report-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seo-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #2d1b69;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.seo-toolbar-btn:hover {
  opacity: 0.9;
}

.seo-toolbar-btn-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #334155;
}

/* All-checks list (Seobility-style) */
.seo-checklist-intro {
  font-size: 0.85rem;
  color: var(--seo-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.seo-checklist {
  border: 1px solid var(--seo-border);
  border-radius: 10px;
  overflow: hidden;
}

.seo-checklist-group-title {
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  background: #f1f5f9;
  border-bottom: 1px solid var(--seo-border);
}

.seo-checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--seo-border);
  background: #fff;
}

.seo-checklist-row:last-child {
  border-bottom: none;
}

.seo-checklist-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.seo-checklist-row.status-pass .seo-checklist-icon { color: var(--seo-pass); }
.seo-checklist-row.status-warn .seo-checklist-icon { color: var(--seo-warn); }
.seo-checklist-row.status-fail .seo-checklist-icon { color: var(--seo-fail); }

.seo-checklist-body {
  flex: 1;
  min-width: 0;
}

.seo-checklist-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.seo-checklist-issues {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: #475569;
}

.seo-checklist-preview {
  font-size: 0.8rem;
  color: var(--seo-muted);
  word-break: break-word;
}

.seo-checklist-preview.seo-checklist-ok {
  color: var(--seo-pass);
}

.seo-checklist-score {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
}

.seo-report-body {
  padding: 0 1.25rem 1.5rem;
}

@media (min-width: 576px) {
  .seo-report-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.seo-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--seo-border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.seo-tab-btn {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--seo-muted);
  padding: 0.65rem 1rem;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.seo-tab-btn:hover {
  color: #2d1b69;
}

.seo-tab-btn.active {
  color: #2d1b69;
  border-bottom-color: #7c3aed;
  background: transparent;
}

.seo-tab-panel {
  display: none;
}

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

.seo-check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 768px) {
  .seo-score-ring {
    width: 140px;
    height: 140px;
  }
}

@media (min-width: 1200px) {
  .seo-check-grid.cols-1 {
    grid-template-columns: 1fr;
  }
}

.seo-check-card {
  background: var(--seo-surface);
  border: 1px solid var(--seo-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.seo-check-card-header {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.seo-check-card-header.meta { background: var(--seo-meta); }
.seo-check-card-header.content { background: var(--seo-content); }
.seo-check-card-header.technical { background: var(--seo-tech); }
.seo-check-card-header.structured { background: var(--seo-struct); }
.seo-check-card-header.indexability { background: var(--seo-index); }

.seo-check-card-body {
  padding: 1rem;
}

.seo-metric {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--seo-border);
}

.seo-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.seo-metric:first-child {
  padding-top: 0;
}

.seo-metric-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.seo-badge-score {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.seo-badge-score.s10, .seo-badge-score.s9, .seo-badge-score.s8 { background: var(--seo-pass); }
.seo-badge-score.s7, .seo-badge-score.s6, .seo-badge-score.s5 { background: var(--seo-warn); }
.seo-badge-score.s4, .seo-badge-score.s3, .seo-badge-score.s2, .seo-badge-score.s1, .seo-badge-score.s0 { background: var(--seo-fail); }

.seo-metric-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}

.seo-metric-value {
  font-size: 0.82rem;
  color: var(--seo-muted);
  word-break: break-word;
  margin-left: calc(36px + 0.65rem);
}

.seo-metric-issues {
  margin: 0.5rem 0 0 calc(36px + 0.65rem);
  padding-left: 1rem;
  font-size: 0.8rem;
  color: var(--seo-fail);
}

.seo-metric-issues li {
  margin-bottom: 0.25rem;
}

.seo-rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-rec-item {
  background: var(--seo-bg);
  border-radius: 10px;
  padding: 1rem;
  border-left: 4px solid var(--seo-border);
}

.seo-rec-item.priority-high { border-left-color: var(--seo-fail); }
.seo-rec-item.priority-medium { border-left-color: var(--seo-warn); }
.seo-rec-item.priority-low { border-left-color: var(--seo-pass); }

.seo-rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.seo-rec-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #fff;
}

.seo-rec-tag.cat { background: #475569; }
.seo-rec-tag.priority-high { background: var(--seo-fail); }
.seo-rec-tag.priority-medium { background: var(--seo-warn); color: #1e293b; }
.seo-rec-tag.priority-low { background: var(--seo-pass); }

.seo-rec-issue {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.seo-rec-fix {
  font-size: 0.82rem;
  color: var(--seo-muted);
  line-height: 1.5;
}

.seo-share-bar {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: 12px;
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
}

.seo-share-bar p {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.seo-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.seo-share-actions .btn {
  font-size: 0.85rem;
}

.seo-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.seo-action-bar a {
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.seo-btn-primary {
  background: #059669;
  color: #fff !important;
}

.seo-btn-secondary {
  background: #2563eb;
  color: #fff !important;
}

.seo-btn-outline {
  background: transparent;
  border: 2px solid #2d1b69;
  color: #2d1b69 !important;
}

#copy-message {
  font-size: 0.8rem;
  color: var(--seo-pass);
  margin-top: 0.5rem;
}

/* ============================================================
   Enhanced report: letter grades, keyword tables, CWV, tech
   ============================================================ */

.seo-score-ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.seo-score-grade {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.seo-score-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--seo-muted);
}

.grade-a { color: #10b981; }
.grade-b { color: #84cc16; }
.grade-c { color: #f59e0b; }
.grade-d { color: #f97316; }
.grade-f { color: #ef4444; }

/* Category grade cards */
.seo-grade-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0 1.25rem 1.25rem;
}

@media (min-width: 576px) {
  .seo-grade-cards {
    grid-template-columns: repeat(4, 1fr);
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

@media (min-width: 992px) {
  .seo-grade-cards { grid-template-columns: repeat(8, 1fr); }
}

.seo-grade-card {
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 10px;
  padding: 0.7rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.seo-grade-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  border: 2px solid currentColor;
}

.seo-grade-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--seo-muted);
  line-height: 1.2;
}

/* Top recommendations block */
.seo-top-recs {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(180deg, #fdf4ff 0%, #f8fafc 100%);
  border: 1px solid #e9d5ff;
  border-radius: 12px;
}

.seo-section-heading {
  margin-bottom: 0.85rem;
}

.seo-section-heading h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.seo-section-heading span {
  font-size: 0.8rem;
  color: var(--seo-muted);
}

/* SERP preview */
.seo-serp {
  border: 1px solid var(--seo-border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #fff;
}

.seo-serp-url { font-size: 0.78rem; color: #202124; }
.seo-serp-title { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; margin: 2px 0; }
.seo-serp-desc { font-size: 0.85rem; color: #4d5156; line-height: 1.45; }

/* Mini + keyword tables */
.seo-mini-table, .seo-kw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.seo-mini-table th, .seo-mini-table td,
.seo-kw-table th, .seo-kw-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--seo-border);
  text-align: left;
}

.seo-kw-table th:not(:first-child),
.seo-kw-table td:not(:first-child) { text-align: center; }

.seo-mini-table th, .seo-kw-table th {
  font-weight: 700;
  color: var(--seo-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
}

.seo-yes { color: var(--seo-pass); }
.seo-no { color: #cbd5e1; }

/* Chips */
.seo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.seo-chip {
  background: #f1f5f9;
  border: 1px solid var(--seo-border);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
}

.seo-chip b { color: #2563eb; }

/* Core Web Vitals */
.seo-cwv-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.seo-cwv-item {
  border: 1px solid var(--seo-border);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seo-cwv-label { font-size: 0.72rem; font-weight: 700; color: var(--seo-muted); }
.seo-cwv-value { font-size: 1.25rem; font-weight: 800; }
.seo-cwv-tag { font-size: 0.66rem; text-transform: capitalize; }
.seo-cwv-item.cat-fast { border-color: #10b981; }
.seo-cwv-item.cat-fast .seo-cwv-value { color: #10b981; }
.seo-cwv-item.cat-average { border-color: #f59e0b; }
.seo-cwv-item.cat-average .seo-cwv-value { color: #f59e0b; }
.seo-cwv-item.cat-slow { border-color: #ef4444; }
.seo-cwv-item.cat-slow .seo-cwv-value { color: #ef4444; }

.seo-ps-score {
  float: right;
  font-weight: 800;
}

/* Social rows */
.seo-social-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--seo-border);
  font-size: 0.85rem;
}

.seo-social-row:last-child { border-bottom: none; }
.seo-social-name { font-weight: 600; }
.seo-social-row a { text-decoration: none; font-weight: 600; }

.seo-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 1rem;
}

.seo-note code {
  background: #fef3c7;
  padding: 1px 5px;
  border-radius: 4px;
}

.seo-check-card-header.index { background: var(--seo-index); color: #fff; }

.seo-ps-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #075985;
  margin-bottom: 1rem;
}

/* ============================================================
   SEOptimer-style single-scroll report
   ============================================================ */
.seo-report-shell.seo-optimer { border-radius: 12px; }

.seo-results-wrap .container.seo-results-page { max-width: 1000px !important; }

/* Hero */
.seo-o-hero {
  background: linear-gradient(135deg, #12103a 0%, #241a5e 55%, #2f2183 100%);
  color: #fff;
  padding: 1.6rem 1.6rem 1.3rem;
}

.seo-o-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.seo-o-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  opacity: 0.7;
  margin: 0 0 0.3rem;
}

.seo-o-hero, .seo-o-hero * { color: #fff; }
.seo-o-hero h2.seo-o-status { color: #fff !important; font-size: 1.5rem; font-weight: 800; margin: 0 0 0.4rem; }
.seo-o-kicker { color: rgba(255,255,255,0.7) !important; }
.seo-o-url { font-size: 0.85rem; opacity: 0.85; word-break: break-all; }
.seo-o-url i { margin-right: 0.35rem; }

.seo-o-overall { text-align: center; flex-shrink: 0; }
.seo-o-overall-badge {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 900; line-height: 1;
  margin: 0 auto 0.35rem;
}
.seo-o-overall span { font-size: 0.8rem; font-weight: 700; opacity: 0.9; }

/* Gauge row */
.seo-o-gauges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.4rem;
}
@media (min-width: 576px) { .seo-o-gauges { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .seo-o-gauges { grid-template-columns: repeat(8, 1fr); } }

.seo-gauge {
  background: #2a1d5e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.85rem 0.35rem 0.7rem;
  text-align: center;
}
.seo-gauge-ring {
  width: 62px; height: 62px; border-radius: 50%;
  margin: 0 auto 0.5rem;
  background: conic-gradient(var(--g-color) calc(var(--g-pct) * 1%), rgba(255,255,255,0.18) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.seo-gauge-ring::before { content: ''; position: absolute; inset: 5px; background: #2a1d5e; border-radius: 50%; }
.seo-gauge-ring span { position: relative; z-index: 1; font-size: 1.15rem; font-weight: 900; line-height: 1; }
.seo-gauge-label { display: block; font-size: 0.7rem; font-weight: 600; opacity: 0.92; color: #fff; }

.seo-o-meta-line {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.1rem; padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.76rem; opacity: 0.9;
}
.seo-o-pills b { font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 20px; margin-left: 0.35rem; }
.seo-o-pills .pass { background: rgba(16,185,129,0.25); color: #6ee7b7; }
.seo-o-pills .warn { background: rgba(245,158,11,0.25); color: #fcd34d; }
.seo-o-pills .fail { background: rgba(239,68,68,0.25); color: #fca5a5; }

/* Toolbar */
.seo-o-toolbar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--seo-border);
}

/* Content — gray page so white section cards pop (SEOptimer style) */
.seo-o-content { padding: 1.25rem; background: #eef1f6; }
@media (max-width: 575px) { .seo-o-content { padding: 0.85rem; } .seo-o-hero { padding-left: 1rem; padding-right: 1rem; } }

.seo-o-tabbar {
  background: #fff;
  border: 1px solid var(--seo-border);
  border-radius: 12px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.seo-o-tabbar .seo-tabs { margin-bottom: 0; border-bottom: none; }
.seo-o-tabbar .seo-tab-btn { padding: 0.7rem 0.95rem; margin-bottom: 0; border-bottom: 2px solid transparent; }

.seo-o-section {
  background: #fff;
  border: 1px solid var(--seo-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
@media (max-width: 575px) { .seo-o-section { padding: 1.1rem 1rem; } }

.seo-o-sec-head h3 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.seo-o-sec-head span { font-size: 0.8rem; color: var(--seo-muted); }
.seo-o-sec-head { margin-bottom: 0.9rem; }

.seo-o-sec-title { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.seo-o-sec-title h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.seo-o-sec-grade {
  width: 38px; height: 38px; border-radius: 50%;
  color: #fff; font-weight: 900; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.seo-o-sec-sum { font-size: 0.86rem; color: var(--seo-muted); margin: 0 0 1rem; line-height: 1.5; }

/* Recommendations */
.seo-o-recs { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
@media (min-width: 768px) { .seo-o-recs { grid-template-columns: 1fr 1fr; } }
.seo-o-rec {
  border: 1px solid var(--seo-border); border-radius: 10px;
  padding: 0.8rem 0.9rem; background: #fff;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.seo-o-rec-text { font-weight: 600; font-size: 0.88rem; line-height: 1.4; }
.seo-o-rec-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.seo-o-rec-cat { font-size: 0.68rem; font-weight: 700; background: #eef2ff; color: #4338ca; padding: 0.18rem 0.55rem; border-radius: 5px; }
.seo-o-rec-pri { font-size: 0.68rem; font-weight: 700; padding: 0.18rem 0.55rem; border-radius: 5px; }
.seo-o-rec-pri.pri-high { background: #fee2e2; color: #b91c1c; }
.seo-o-rec-pri.pri-medium { background: #fef3c7; color: #b45309; }
.seo-o-rec-pri.pri-low { background: #dcfce7; color: #15803d; }

/* Check rows */
.seo-o-check {
  display: flex; gap: 0.8rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #eef1f5;
}
.seo-o-check:last-child { border-bottom: none; }
.seo-o-ic { flex-shrink: 0; font-size: 1.2rem; line-height: 1.4; }
.seo-o-check.status-pass .seo-o-ic { color: var(--seo-pass); }
.seo-o-check.status-warn .seo-o-ic { color: var(--seo-warn); }
.seo-o-check.status-fail .seo-o-ic { color: var(--seo-fail); }
.seo-o-body { flex: 1; min-width: 0; }
.seo-o-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.seo-o-desc { font-size: 0.82rem; color: var(--seo-muted); line-height: 1.5; }
.seo-o-detail { margin-top: 0.6rem; }

.seo-o-box {
  background: #f8fafc; border: 1px solid var(--seo-border);
  border-radius: 8px; padding: 0.65rem 0.8rem;
  font-size: 0.82rem; line-height: 1.5; word-break: break-word;
}
.seo-o-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem; color: #0f172a; word-break: break-all;
}
.seo-o-len { font-size: 0.75rem; color: var(--seo-muted); margin-top: 0.35rem; }
.seo-o-subhead { font-size: 0.78rem; font-weight: 700; color: var(--seo-muted); margin: 0.7rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Tables */
.seo-o-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; background: #fff; border: 1px solid var(--seo-border); border-radius: 8px; overflow: hidden; }
.seo-o-table th, .seo-o-table td { padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--seo-border); text-align: left; }
.seo-o-table thead th { background: #f1f5f9; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; color: var(--seo-muted); }
.seo-o-table tr:last-child td { border-bottom: none; }
.seo-kw-table th:not(:first-child), .seo-kw-table td:not(:first-child) { text-align: center; }

/* 4-stat blocks */
.seo-o-stats4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (min-width: 576px) { .seo-o-stats4 { grid-template-columns: repeat(4, 1fr); } }
.seo-o-stats4 > div {
  background: #f8fafc; border: 1px solid var(--seo-border); border-radius: 8px;
  padding: 0.7rem 0.4rem; text-align: center;
  font-size: 0.72rem; color: var(--seo-muted); display: flex; flex-direction: column; gap: 0.2rem;
}
.seo-o-stats4 span { font-size: 1.25rem; font-weight: 800; color: #0f172a; }

/* PageSpeed dials */
.seo-ps-dials { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1rem 0; }
@media (min-width: 768px) { .seo-ps-dials { grid-template-columns: 1fr 1fr; } }
.seo-ps-dial-card { border: 1px solid var(--seo-border); border-radius: 12px; padding: 1.1rem; text-align: center; }
.seo-ps-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 0.6rem;
  background: conic-gradient(var(--ps-color) calc(var(--ps-pct) * 1%), #e5e7eb 0);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.seo-ps-ring::before { content: ''; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.seo-ps-ring span { position: relative; z-index: 1; font-size: 1.7rem; font-weight: 900; }
.seo-ps-dial-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.7rem; }
.seo-ps-lab { margin-top: 0.4rem; }
.seo-ps-opps { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.seo-ps-opps li { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; padding: 0.3rem 0; border-bottom: 1px solid var(--seo-border); text-align: left; }
.seo-ps-opps li:last-child { border-bottom: none; }
.seo-ps-opps b { color: var(--seo-warn); white-space: nowrap; }

/* SERP + chips reuse; adjust inside detail */
.seo-o-detail .seo-serp { border: 1px solid var(--seo-border); border-radius: 8px; padding: 0.8rem 1rem; background: #fff; }

/* --- Graphs --- */

/* Segmented horizontal bar (e.g. link structure) */
.seo-bar-seg { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: #eef1f6; margin: 0.2rem 0 0.7rem; }
.seo-bar-seg > span { display: block; height: 100%; }
.seo-bar-seg .s-internal { background: #2563eb; }
.seo-bar-seg .s-external { background: #10b981; }
.seo-bar-seg .s-nofollow { background: #f59e0b; }
.seo-bar-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.76rem; color: var(--seo-muted); }
.seo-bar-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 0.35rem; vertical-align: middle; }
.seo-bar-legend .k-internal { background: #2563eb; }
.seo-bar-legend .k-external { background: #10b981; }
.seo-bar-legend .k-nofollow { background: #f59e0b; }
.seo-bar-legend b { color: #0f172a; }

/* Simple progress bar (e.g. compression, rendering %) */
.seo-progress { background: #eef1f6; border-radius: 6px; height: 12px; overflow: hidden; margin-top: 0.35rem; }
.seo-progress > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #10b981, #34d399); }
.seo-progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--seo-muted); }
.seo-progress-label b { color: #0f172a; }

/* Frequency bars inside keyword table */
.seo-freq { display: flex; align-items: center; gap: 0.5rem; min-width: 90px; }
.seo-freq-track { flex: 1; height: 8px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.seo-freq-fill { display: block; height: 100%; background: #6366f1; border-radius: 5px; }
.seo-freq b { font-size: 0.78rem; min-width: 22px; text-align: right; }

/* Resource breakdown mini bars */
.seo-resbars { display: flex; flex-direction: column; gap: 0.5rem; }
.seo-resbar { display: grid; grid-template-columns: 66px 1fr 34px; align-items: center; gap: 0.6rem; font-size: 0.78rem; }
.seo-resbar-track { height: 10px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.seo-resbar-fill { display: block; height: 100%; border-radius: 5px; }
.seo-resbar b { text-align: right; font-weight: 700; }

/* Info section badge */
.seo-o-sec-grade.info { background: #64748b; font-size: 0.9rem; }

/* ============================================================
   Audit progress loader
   ============================================================ */
#loading-indicator { margin: 1.5rem auto; max-width: 640px; }

.seo-loader-card {
  background: #fff;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  padding: 1.3rem 1.4rem;
}

.seo-loader-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }

.seo-loader-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #6d28d9, #4f46e5);
  color: #fff; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  animation: seoPulse 1.4s ease-in-out infinite;
}
@keyframes seoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.35); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(109, 40, 217, 0); }
}

.seo-loader-text { flex: 1; min-width: 0; }
.seo-loader-title { font-weight: 800; font-size: 1.02rem; color: #0f172a; }
.seo-loader-step { font-size: 0.83rem; color: var(--seo-muted); margin-top: 2px; }
.seo-loader-pct { font-weight: 800; font-size: 1.25rem; color: #4f46e5; flex-shrink: 0; }

.seo-loader-track {
  height: 12px; border-radius: 8px; overflow: hidden;
  background: #eef1f6;
}
.seo-loader-fill {
  height: 100%; width: 0; border-radius: 8px;
  background: linear-gradient(90deg, #6d28d9, #4f46e5, #06b6d4);
  background-size: 200% 100%;
  transition: width 0.35s ease;
  animation: seoShift 1.6s linear infinite;
}
@keyframes seoShift { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.seo-loader-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem;
}
.seo-loader-chips span {
  font-size: 0.72rem; font-weight: 600; color: var(--seo-muted);
  background: #f1f5f9; border: 1px solid var(--seo-border);
  border-radius: 20px; padding: 0.28rem 0.65rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: all 0.25s ease;
}
.seo-loader-chips span i { font-size: 0.65rem; }
.seo-loader-chips span.active {
  color: #4f46e5; background: #eef2ff; border-color: #c7d2fe;
}
.seo-loader-chips span.active i { animation: seoSpin 0.9s linear infinite; }
@keyframes seoSpin { to { transform: rotate(360deg); } }
.seo-loader-chips span.done { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.seo-loader-chips span.done i::before { content: "\f00c"; } /* fa-check */

@media (max-width: 480px) {
  .seo-loader-pct { font-size: 1.05rem; }
  .seo-loader-title { font-size: 0.95rem; }
}

/* ============================================================
   COMPETITOR ANALYSIS
   ============================================================ */
.seo-tab-cmp { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff !important; }
.seo-tab-cmp.active { background: linear-gradient(135deg, #4f46e5, #4338ca); color: #fff !important; }
.seo-tab-cmp i { margin-right: 0.35rem; }

.seo-cmp-form { margin: 1rem 0 0.5rem; }
.seo-cmp-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.seo-cmp-field { display: flex; flex-direction: column; gap: 0.35rem; }
.seo-cmp-field label { font-size: 0.82rem; font-weight: 700; color: #0f172a; }
.seo-cmp-field label span { color: var(--seo-muted); font-weight: 500; }
.seo-cmp-field input {
  padding: 0.65rem 0.8rem; border: 1px solid var(--seo-border); border-radius: 8px;
  font-size: 0.88rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.seo-cmp-field input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.seo-cmp-submit { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.seo-cmp-submit i { margin: 0; }

.seo-cmp-slot { margin-top: 1rem; }
.seo-cmp-loading {
  display: flex; align-items: center; gap: 0.6rem; justify-content: center;
  padding: 1.6rem; background: #f8fafc; border: 1px dashed var(--seo-border);
  border-radius: 10px; color: var(--seo-muted); font-size: 0.9rem;
}

/* Overall score cards */
.seo-cmp-scores { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.seo-cmp-score-card {
  flex: 1; min-width: 150px; text-align: center; padding: 1.1rem 0.8rem;
  background: #fff; border: 1px solid var(--seo-border); border-radius: 12px;
}
.seo-cmp-score-card.seo-cmp-you { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }
.seo-cmp-ring {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 0.6rem;
  background: conic-gradient(var(--ps-color) calc(var(--ps-pct) * 1%), #e5e7eb 0);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.seo-cmp-ring::before { content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.seo-cmp-ring span { position: relative; z-index: 1; font-size: 1.5rem; font-weight: 900; }
.seo-cmp-host { font-weight: 700; font-size: 0.88rem; color: #0f172a; word-break: break-word; }
.seo-cmp-host i { color: #f59e0b; margin-right: 0.25rem; }
.seo-cmp-tag { font-size: 0.72rem; color: var(--seo-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }

/* Gap cards */
.seo-cmp-gaps { display: flex; flex-direction: column; gap: 0.7rem; }
.seo-cmp-gap {
  border: 1px solid var(--seo-border); border-left: 4px solid #94a3b8;
  border-radius: 10px; padding: 0.9rem 1rem; background: #fff;
}
.seo-cmp-gap.pri-high { border-left-color: #dc2626; }
.seo-cmp-gap.pri-medium { border-left-color: #f59e0b; }
.seo-cmp-gap.pri-low { border-left-color: #22c55e; }
.seo-cmp-gap-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.seo-cmp-gap-area { font-weight: 800; color: #0f172a; }
.seo-cmp-gap-nums { display: flex; align-items: center; gap: 0.7rem; font-size: 0.82rem; margin: 0.5rem 0; flex-wrap: wrap; }
.seo-cmp-gap-nums i { color: var(--seo-muted); }
.seo-cmp-mine { color: #dc2626; }
.seo-cmp-theirs { color: #16a34a; }
.seo-cmp-gap-advice { font-size: 0.86rem; color: #334155; line-height: 1.5; }

/* Wins */
.seo-cmp-wins { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; }
.seo-cmp-wins li { font-size: 0.88rem; color: #0f172a; display: flex; align-items: flex-start; gap: 0.5rem; }
.seo-cmp-wins i { color: #16a34a; margin-top: 0.15rem; }

/* Comparison tables */
.seo-cmp-table-wrap { overflow-x: auto; }
.seo-cmp-table { width: 100%; min-width: 480px; }
.seo-cmp-table th, .seo-cmp-table td { text-align: left; vertical-align: middle; }
.seo-cmp-table th { font-size: 0.78rem; color: var(--seo-muted); word-break: break-word; }
.seo-cmp-col-you { background: rgba(99, 102, 241, 0.06); }
.seo-cmp-table td.is-lead { color: #16a34a; font-weight: 700; }
.seo-cmp-table td.is-behind { color: #dc2626; }
.seo-cmp-tick { margin-left: 0.35rem; }
.seo-cmp-bar { display: inline-block; width: 60px; height: 8px; background: #eef1f6; border-radius: 5px; overflow: hidden; vertical-align: middle; margin-right: 0.5rem; }
.seo-cmp-bar > span { display: block; height: 100%; border-radius: 5px; }
.seo-cmp-disclaimer { margin-top: 1rem; font-size: 0.78rem; color: var(--seo-muted); font-style: italic; }

@media (max-width: 640px) {
  .seo-cmp-inputs { grid-template-columns: 1fr; }
}

/* --- Actions row --- */
.seo-cmp-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }
.seo-cmp-actions .seo-cmp-submit { margin-top: 0; }
.seo-cmp-reset { display: inline-flex; align-items: center; gap: 0.45rem; }
.seo-cmp-cachenote { font-size: 0.78rem; color: var(--seo-muted); display: inline-flex; align-items: center; gap: 0.35rem; }
.seo-cmp-cachenote i { color: #f59e0b; }

.seo-cmp-results { margin-top: 1.2rem; }

/* --- Your baseline card --- */
.seo-cmp-you-slot { margin-bottom: 1.1rem; }
.seo-cmp-youcard {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #c7d2fe; border-radius: 14px;
}
.seo-cmp-youcard .seo-cmp-ring { margin: 0; flex: 0 0 auto; }
.seo-cmp-youcard-body { flex: 1; min-width: 0; }
.seo-cmp-youchips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.seo-cmp-youchip {
  font-size: 0.76rem; background: #fff; border: 1px solid var(--seo-border);
  border-radius: 20px; padding: 0.22rem 0.6rem; color: #475569;
}
.seo-cmp-youchip b { color: #0f172a; font-weight: 700; }
.seo-cmp-youchip em { font-style: normal; font-weight: 800; margin-left: 0.2rem; }

/* --- Competitor cards grid --- */
.seo-cmp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; align-items: start; }

.seo-cmp-card { border: 1px solid var(--seo-border); border-radius: 14px; background: #fff; overflow: hidden; }
.seo-cmp-card-head {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem;
  background: #f8fafc; border-bottom: 1px solid var(--seo-border);
}
.seo-cmp-card-head .seo-cmp-ring { margin: 0; width: 68px; height: 68px; }
.seo-cmp-card-head .seo-cmp-ring span { font-size: 1.25rem; }
.seo-cmp-card-head-info { min-width: 0; }
.seo-cmp-delta { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 700; margin-top: 0.3rem; }
.seo-cmp-delta.lead { color: #16a34a; }
.seo-cmp-delta.behind { color: #dc2626; }
.seo-cmp-delta.tie { color: #64748b; }

.seo-cmp-card-block { padding: 1rem 1.1rem; border-top: 1px solid var(--seo-border); }
.seo-cmp-card-block:first-of-type { border-top: none; }
.seo-cmp-block-title { font-size: 0.82rem; font-weight: 800; color: #0f172a; margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; }
.seo-cmp-block-title i { color: #6366f1; margin-right: 0.4rem; }
.seo-cmp-allgood { display: flex; align-items: center; gap: 0.5rem; color: #16a34a; font-size: 0.88rem; margin: 0; }

/* Category bars inside card */
.seo-cmp-cats { display: flex; flex-direction: column; gap: 0.7rem; }
.seo-cmp-cat-label { font-size: 0.8rem; font-weight: 700; color: #334155; margin-bottom: 0.3rem; }
.seo-cmp-cat-bars { display: flex; flex-direction: column; gap: 0.25rem; }
.seo-cmp-cat-bar { display: flex; align-items: center; gap: 0.5rem; }
.seo-cmp-cat-track { flex: 1; height: 8px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.seo-cmp-cat-track > span { display: block; height: 100%; border-radius: 5px; }
.seo-cmp-cat-bar em { font-style: normal; font-size: 0.72rem; color: #64748b; min-width: 62px; }

/* --- Per-competitor loading card (progress bar) --- */
.seo-cmp-loadcard { border: 1px solid var(--seo-border); border-radius: 14px; background: #fff; padding: 1.1rem 1.2rem; }
.seo-cmp-load-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.seo-cmp-load-host { font-weight: 700; font-size: 0.9rem; color: #0f172a; }
.seo-cmp-load-host i { color: #6366f1; margin-right: 0.4rem; }
.seo-cmp-load-pct { font-weight: 800; color: #6366f1; font-size: 0.95rem; }
.seo-cmp-load-track { height: 10px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.seo-cmp-load-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #6366f1, #8b5cf6); transition: width 0.35s ease; }
.seo-cmp-load-step { font-size: 0.78rem; color: var(--seo-muted); margin-top: 0.55rem; }
.seo-cmp-carderr { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; border-radius: 14px; padding: 1rem 1.1rem; font-size: 0.86rem; }
.seo-cmp-carderr i { margin-right: 0.4rem; }

/* --- Single-table progressive comparison --- */
.seo-cmp-status { margin-bottom: 1rem; }
.seo-cmp-statusbar {
  border: 1px solid var(--seo-border); border-radius: 12px; background: #fff; padding: 0.9rem 1.1rem;
}
.seo-cmp-statustext { font-size: 0.88rem; font-weight: 700; color: #0f172a; margin-bottom: 0.55rem; display: flex; align-items: center; gap: 0.5rem; }
.seo-cmp-statustext i { color: #6366f1; }
.seo-cmp-statustext .fa-circle-check { color: #16a34a; }
.seo-cmp-statusbar .seo-cmp-load-track { height: 10px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.seo-cmp-statusbar .seo-cmp-load-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #6366f1, #8b5cf6); transition: width 0.4s ease; }

.seo-cmp-cellspin { color: #94a3b8; }
.seo-cmp-cellerr { color: #dc2626; font-size: 0.8rem; }
.seo-cmp-table th.seo-cmp-th-err { color: #dc2626; text-decoration: line-through; }

/* ============================================================
   ABOUT / CONTENT SECTION (SEO + GEO copy)
   ============================================================ */
.seo-about { background: #fff; }
.seo-about-lead {
  display: flex; gap: 1rem; align-items: flex-start;
  max-width: 940px; margin: 0 auto 2.6rem; text-align: left;
  background: linear-gradient(135deg, #eef2ff, #faf5ff);
  border: 1px solid #dcd7fb; border-left: 4px solid #4f46e5;
  border-radius: 14px; padding: 1.4rem 1.6rem;
}
.seo-about-lead-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #4f46e5; color: #fff; font-size: 1.1rem;
}
.seo-about-lead-body { flex: 1; }
.seo-about-lead p { margin: 0; font-size: 1.03rem; line-height: 1.7; color: #475569; }
.seo-about-lead strong { color: #0f172a; }

@media (max-width: 576px) {
  .seo-about-lead { flex-direction: column; padding: 1.1rem 1.2rem; }
}

.seo-about-block { margin-bottom: 2.4rem; }
.seo-about-block > h3 {
  font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 0.8rem;
}
.seo-about-block > p { color: #475569; line-height: 1.75; font-size: 1rem; }

.seo-about-badges { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; margin-top: 1rem; }
.seo-about-badges span { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: #0f172a; font-size: 0.95rem; }
.seo-about-badges i { color: #16a34a; }

.seo-about-grid { margin-top: 1.4rem; }
.seo-about-card {
  height: 100%; background: #f8fafc; border: 1px solid #e6eaf0; border-radius: 14px;
  padding: 1.3rem 1.3rem 1.1rem; margin-bottom: 1.5rem; transition: transform 0.15s, box-shadow 0.15s;
}
.seo-about-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08); }
.seo-about-ic {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; font-size: 1.15rem; margin-bottom: 0.9rem;
}
.seo-about-card h4 { font-size: 1.12rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.seo-about-card p { color: #64748b; font-size: 0.92rem; line-height: 1.6; margin: 0; }
.seo-about-card code { background: #eef2ff; color: #4338ca; padding: 0.05rem 0.35rem; border-radius: 5px; font-size: 0.85em; }

.seo-about-highlight {
  background: linear-gradient(135deg, #eef2ff, #faf5ff); border: 1px solid #dcd7fb;
  border-radius: 18px; padding: 1.8rem 2rem;
}
.seo-about-highlight h3 { margin-top: 0; }
.seo-about-highlight p { margin-bottom: 0; }
.seo-about-highlight .site-btn { margin-top: 0.5rem; }

.seo-about-table-wrap { overflow-x: auto; margin-top: 1.2rem; }
.seo-about-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.seo-about-table th, .seo-about-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid #e6eaf0; font-size: 0.95rem; }
.seo-about-table thead th { background: #0f172a; color: #fff; font-weight: 700; }
.seo-about-table thead th.seo-about-us { background: #4f46e5; }
.seo-about-table td.seo-about-us { color: #16a34a; font-weight: 700; background: rgba(79, 70, 229, 0.05); }
.seo-about-table tbody tr:hover { background: #f8fafc; }

.seo-about-steps { margin-top: 1rem; padding-left: 1.2rem; }
.seo-about-steps li { color: #475569; line-height: 1.7; margin-bottom: 0.6rem; font-size: 1rem; }
.seo-about-steps li strong { color: #0f172a; }

@media (max-width: 576px) {
  .seo-about-lead p { font-size: 0.98rem; }
  .seo-about-block > h3 { font-size: 1.3rem; }
  .seo-about-highlight { padding: 1.3rem; }
}
