/* ================================================================
   E-E-A-T Checker — Component Styles
   Uses CSS variables from the main qwerty.am stylesheet
   ================================================================ */

/* ── Extra variables for EEAT only ───────────────────────────── */
:root {
  --eeat-accent2:   #00b8d4;
  --eeat-warn:      #f59e0b;
  --eeat-warn-dim:  rgba(245, 158, 11, 0.12);
  --eeat-danger:    #ef4444;
  --eeat-danger-dim: rgba(239, 68, 68, 0.12);
  --eeat-success:   #10b981;
}

/* ── Global overflow fix (mobile horizontal scroll) ──────────── */
#pageWrap {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#pageWrap > .footer { margin-top: auto; }
.eeat-hero,
.eeat-results,
.eeat-full-report,
.eeat-priority-section,
.eeat-accordion-body,
.eeat-overall-wrap,
.eeat-detail-section,
.eeat-backlink-row,
.eeat-domain-security,
.eeat-domain-obs,
.eeat-cta-box,
.eeat-pages-analyzed,
.eeat-entities,
.eeat-metrics-grid {
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── EEAT Hero ─────────────────────────────────────────────────── */
.eeat-hero {
  padding: 80px 0 64px;
  text-align: center;
}

.eeat-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid rgba(0, 229, 160, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}

.eeat-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.eeat-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}
.eeat-hero-sub strong { color: var(--text); }

/* ── Form Card ─────────────────────────────────────────────────── */
.eeat-form-card {
  max-width: 580px;
  margin: 0 auto 20px;
  background: var(--card-bg, #111118);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* URL row: input + button inline */
.eeat-url-row {
  display: flex;
  gap: 10px;
}

.eeat-url-input { flex: 1; }

.eeat-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.eeat-input::placeholder { color: var(--muted, #5a5e72); }
.eeat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.12);
}

/* Email toggle */
.eeat-email-toggle { display: flex; align-items: center; }

.eeat-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.eeat-toggle-checkbox { display: none; }

.eeat-toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.1);
  border-radius: 11px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.eeat-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.eeat-toggle-checkbox:checked + .eeat-toggle-switch {
  background: var(--accent, #00e5a0);
}
.eeat-toggle-checkbox:checked + .eeat-toggle-switch::after {
  transform: translateX(18px);
}

.eeat-toggle-text {
  font-size: 0.85rem;
  color: var(--muted, #8b8fa3);
}

/* Email field (hidden by default) */
.eeat-email-field {
  animation: eeatSlideDown 0.2s ease;
}
@keyframes eeatSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eeat-btn-analyze {
  flex-shrink: 0;
  padding: 14px 28px;
  background: var(--accent);
  color: #06060a;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.eeat-btn-analyze:hover {
  background: #00ffb3;
  box-shadow: 0 0 20px rgba(0, 229, 160, 0.25);
}
.eeat-btn-analyze:active { transform: scale(0.98); }
.eeat-btn-analyze:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Spinner */
.eeat-btn-loader { display: flex; align-items: center; gap: 8px; }
.eeat-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #06060a;
  border-radius: 50%;
  animation: eeatSpin 0.7s linear infinite;
}
@keyframes eeatSpin { to { transform: rotate(360deg); } }

/* Form error */
.eeat-form-error {
  color: var(--eeat-danger);
  font-size: 0.875rem;
  margin-top: 8px;
  text-align: center;
}

/* Feature list */
.eeat-feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0;
}
.eeat-feat-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Results Section ────────────────────────────────────────── */
.eeat-results {
  padding: 0 0 80px;
  position: relative;
  box-sizing: border-box;
}

.eeat-analyzed-url {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card-bg, #111118);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 10px;
  margin-bottom: 48px;
  font-size: 0.875rem;
  overflow: hidden;
}
.eeat-analyzed-label { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.eeat-analyzed-url a {
  color: var(--eeat-accent2);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}
.eeat-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.eeat-share-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}
.eeat-share-btn svg { flex-shrink: 0; }

/* ── Cached Badge ──────────────────────────────────────────── */
.eeat-cached-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  margin-top: 8px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 8px;
}
.eeat-cached-text {
  font-size: 13px;
  color: #4ade80;
}
.eeat-reanalyze-btn {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.eeat-reanalyze-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Health Report Summary ──────────────────────────────────── */
.eeat-health-report {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.eeat-health-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.eeat-health-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.eeat-health-score {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}
.eeat-health-type {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.eeat-health-icon { font-size: 22px; }
.eeat-health-title {
  font-size: 16px;
  font-weight: 700;
  color: #e0e0e0;
}
.eeat-health-diagnosis {
  font-size: 12px;
  color: #999;
  margin-left: auto;
  font-style: italic;
}
.eeat-health-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.eeat-health-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.eeat-health-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.eeat-health-card-icon { font-size: 24px; }
.eeat-health-card-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.eeat-health-card-value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.eeat-health-card-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.eeat-health-status--healthy { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.eeat-health-status--stable { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.eeat-health-status--symptoms { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.eeat-health-status--treatment { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.eeat-health-status--serious { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.eeat-health-status--emergency { background: rgba(220, 38, 38, 0.15); color: #dc2626; }

@media (max-width: 600px) {
  .eeat-health-cards { grid-template-columns: repeat(2, 1fr); }
  .eeat-health-diagnosis { margin-left: 0; width: 100%; }
}

/* ── Backlink Analytics ─────────────────────────────────────── */
.eeat-backlink-row {
  display: flex;
  gap: 16px;
}
.eeat-backlink-left {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eeat-backlink-right {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
}
.eeat-authority-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
}
.eeat-authority-num {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.eeat-authority-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.eeat-authority-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.eeat-network-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.eeat-network-title {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.eeat-network-canvas {
  display: block;
  width: 100%;
  height: 240px;
  border-radius: 8px;
  margin: 0 auto;
}
.eeat-network-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 8px 0 0;
  padding: 0 4px;
}
.eeat-semrush-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.eeat-semrush-badge--good { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.eeat-semrush-badge--excellent { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.eeat-semrush-badge--high { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.eeat-semrush-badge--moderate { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.eeat-semrush-badge--low { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.eeat-semrush-badge--poor { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.eeat-semrush-badge--reputable { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.eeat-semrush-badge--suspicious { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.eeat-semrush-badge--toxic { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.eeat-semrush-badge--neutral { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.eeat-semrush-badge--lowrisk { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

.eeat-semrush-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.eeat-semrush-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.eeat-semrush-metric:last-child { border-bottom: none; }
.eeat-semrush-metric-val {
  font-size: 16px;
  font-weight: 700;
  color: #4ade80;
}
.eeat-semrush-metric-label {
  display: block;
  font-size: 11px;
  color: #777;
  letter-spacing: 0.2px;
}

@media (max-width: 600px) {
  .eeat-backlink-row { flex-direction: column; }
  .eeat-backlink-left { flex: none; }
  .eeat-semrush-score { font-size: 32px; }
}

/* ── Domain Security ───────────────────────────────────────── */
.eeat-domain-grade-inline {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 8px;
  font-size: 32px;
  font-weight: 800;
  margin-left: 10px;
  vertical-align: middle;
}
.eeat-domain-verdict {
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid;
}
.eeat-ai-highlight {
  font-weight: 600;
}
.eeat-domain-verdict--aplus .eeat-ai-highlight { color: #4ade80; }
.eeat-domain-verdict--a .eeat-ai-highlight { color: #4ade80; }
.eeat-domain-verdict--b .eeat-ai-highlight { color: #eab308; }
.eeat-domain-verdict--c .eeat-ai-highlight { color: #f97316; }
.eeat-domain-verdict--d .eeat-ai-highlight { color: #ef4444; }
.eeat-domain-verdict--f .eeat-ai-highlight { color: #dc2626; }
.eeat-domain-verdict--aplus { background: rgba(34, 197, 94, 0.08); border-color: #22c55e; color: var(--text, #e4e4e7); }
.eeat-domain-verdict--a { background: rgba(74, 222, 128, 0.08); border-color: #4ade80; color: var(--text, #e4e4e7); }
.eeat-domain-verdict--b { background: rgba(234, 179, 8, 0.08); border-color: #eab308; color: var(--text, #e4e4e7); }
.eeat-domain-verdict--c { background: rgba(249, 115, 22, 0.08); border-color: #f97316; color: var(--text, #e4e4e7); }
.eeat-domain-verdict--d { background: rgba(239, 68, 68, 0.08); border-color: #ef4444; color: var(--text, #e4e4e7); }
.eeat-domain-verdict--f { background: rgba(220, 38, 38, 0.08); border-color: #dc2626; color: var(--text, #e4e4e7); }

#eeatDomainSecSection {
  overflow: hidden;
  max-width: 100%;
}

.eeat-domain-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
}
.eeat-domain-check {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
}
.eeat-domain-check--risk {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
}
.eeat-domain-check-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.eeat-domain-check-icon { font-size: 16px; }
.eeat-domain-check-label {
  font-weight: 700;
  font-size: 14px;
  color: #e0e0e0;
}
.eeat-domain-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.eeat-domain-status--pass { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.eeat-domain-status--fail { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.eeat-domain-status--warn { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.eeat-domain-status--info { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.eeat-domain-check-detail {
  font-size: 12px;
  color: #999;
  margin: 0 0 6px;
  line-height: 1.4;
}
.eeat-domain-record {
  display: block;
  font-size: 10px;
  color: #666;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 8px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: 'JetBrains Mono', monospace;
}
.eeat-domain-check {
  overflow: hidden;
  min-width: 0;
}

.eeat-domain-obs {
  grid-column: 1 / -1;
  margin-top: 10px;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.eeat-domain-obs-title {
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 8px;
}
.eeat-domain-obs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  table-layout: fixed;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.eeat-domain-obs-table th:nth-child(1),
.eeat-domain-obs-table td:nth-child(1) { width: 22%; }
.eeat-domain-obs-table th:nth-child(2),
.eeat-domain-obs-table td:nth-child(2) { width: 10%; }
.eeat-domain-obs-table th:nth-child(3),
.eeat-domain-obs-table td:nth-child(3) { width: 38%; }
.eeat-domain-obs-table th:nth-child(4),
.eeat-domain-obs-table td:nth-child(4) { width: 30%; }
.eeat-domain-obs-table thead { background: rgba(239, 68, 68, 0.08); }
.eeat-domain-obs-table th {
  padding: 8px 12px;
  text-align: left;
  color: #ef4444;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}
.eeat-domain-obs-table td {
  padding: 8px 12px;
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.4;
}
.eeat-obs-risk { font-weight: 600; color: #e0e0e0; }
.eeat-obs-sev { font-weight: 700; font-size: 11px; }

@media (max-width: 768px) {
  .eeat-domain-checks { grid-template-columns: 1fr; }
  .eeat-domain-grade-inline { font-size: 24px; padding: 3px 12px; }
  .eeat-domain-obs-table { font-size: 11px; }
  .eeat-domain-obs-table th, .eeat-domain-obs-table td { padding: 6px 8px; }
  /* Obs table: single column cards on mobile */
  .eeat-domain-obs-table { table-layout: auto; }
  .eeat-domain-obs-table thead { display: none; }
  .eeat-domain-obs-table,
  .eeat-domain-obs-table tbody { display: block; width: 100%; }
  .eeat-domain-obs-table tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .eeat-domain-obs-table td,
  .eeat-domain-obs-table td:nth-child(1),
  .eeat-domain-obs-table td:nth-child(2),
  .eeat-domain-obs-table td:nth-child(3),
  .eeat-domain-obs-table td:nth-child(4) {
    display: block;
    width: 100% !important;
    border: none;
    padding: 0;
    font-size: 13px;
    word-wrap: normal;
    overflow-wrap: normal;
  }
  .eeat-domain-obs-table td:nth-child(1) { font-size: 14px; font-weight: 700; color: var(--text, #e4e4e7); }
  .eeat-domain-obs-table td::before {
    content: attr(data-label) ": ";
    font-size: 10px;
    color: #ef4444;
    text-transform: uppercase;
    font-weight: 700;
  }
  .eeat-domain-obs-table td:nth-child(1)::before { display: none; }
}
@media (max-width: 480px) {
  .eeat-domain-grade-inline { font-size: 20px; margin-left: 6px; }
  .eeat-domain-check { padding: 10px 12px; }
  .eeat-domain-check-label { font-size: 13px; }
  .eeat-domain-check-detail { font-size: 11px; }
  .eeat-domain-record { font-size: 9px; padding: 4px 6px; }
  .eeat-domain-verdict { font-size: 12px; }
}

/* ── Pages Analyzed ─────────────────────────────────────────── */
.eeat-pages-analyzed {
  background: var(--card-bg, #111118);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.eeat-pages-badge {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent, #00e5a0);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.eeat-pages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eeat-page-group {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 14px;
}
.eeat-page-group-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.eeat-page-group-count {
  color: var(--muted, #8b8fa3);
  font-weight: 400;
  font-size: 0.8rem;
}
.eeat-page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.eeat-page-badge-item {
  font-size: 11px;
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}
.eeat-page-group-urls {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.eeat-page-link {
  font-size: 0.78rem;
  color: var(--accent, #00e5a0);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.eeat-page-link:hover { opacity: 1; text-decoration: underline; }

/* ── Overall Score ──────────────────────────────────────────── */
.eeat-overall-wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--card-bg, #111118);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 24px;
  margin-bottom: 32px;
}

.eeat-overall-ring-wrap { position: relative; flex-shrink: 0; width: 140px; height: 140px; }
.eeat-overall-ring { width: 140px; height: 140px; }

.eeat-overall-score-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--accent);
}
.eeat-score-unit { font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

.eeat-overall-label { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.eeat-summary-text { color: var(--muted); line-height: 1.7; font-size: 0.95rem; }

/* Score rings */
.eeat-score-ring { transform: rotate(-90deg); }
.eeat-ring-bg { fill: none; stroke: rgba(255,255,255,0.04); stroke-width: 8; }
.eeat-ring-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── 4 Metric Cards ─────────────────────────────────────────── */
.eeat-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.eeat-metric-card {
  background: var(--card-bg, #111118);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 28px 20px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center;
  min-height: 200px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.eeat-metric-card:hover {
  border-color: rgba(0, 229, 160, 0.25);
  box-shadow: 0 8px 32px rgba(0, 229, 160, 0.06);
}

.eeat-metric-grade {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.eeat-metric-num {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 12px;
}
.eeat-metric-label { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.eeat-metric-desc { font-size: 0.875rem; color: var(--text, #e4e4e7); line-height: 1.5; }

/* Score color grades (overall ring) */
.eeat-score-high .eeat-ring-fill { stroke: var(--eeat-success); }
.eeat-score-high .eeat-overall-score-num { color: var(--eeat-success); }
.eeat-score-mid  .eeat-ring-fill { stroke: var(--eeat-warn); }
.eeat-score-mid  .eeat-overall-score-num { color: var(--eeat-warn); }
.eeat-score-low  .eeat-ring-fill { stroke: var(--eeat-danger); }
.eeat-score-low  .eeat-overall-score-num { color: var(--eeat-danger); }

/* ── Priority Actions ───────────────────────────────────────── */
.eeat-priority-section {
  background: var(--card-bg, #111118);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.eeat-section-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.eeat-section-num { color: var(--accent); font-size: 0.85rem; }

.eeat-priority-list {
  list-style: none; counter-reset: priority;
  display: flex; flex-direction: column; gap: 12px; padding: 0;
}
.eeat-priority-list li {
  counter-increment: priority;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  font-size: 0.875rem; color: var(--text, #e4e4e7); line-height: 1.6;
}
.eeat-priority-list li::before {
  content: counter(priority);
  flex-shrink: 0; width: 26px; height: 26px;
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid rgba(0, 229, 160, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.eeat-priority-text {
  flex: 1;
  text-align: justify;
  min-width: 0;
}
.eeat-priority-tag {
  flex-shrink: 0;
  width: 110px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 0;
  border-radius: 4px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .eeat-priority-list li,
  .eeat-dash-actions-list li {
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    font-size: 0.85rem;
    overflow: hidden;
  }
  .eeat-priority-list li::before { display: none; }
  .eeat-priority-tag,
  .eeat-dash-actions-list .eeat-priority-tag {
    width: 100% !important;
    border-radius: 0;
    padding: 8px 14px;
    text-align: left;
    font-size: 11px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .eeat-priority-text,
  .eeat-dash-actions-list .eeat-priority-text {
    padding: 12px 14px;
    text-align: justify;
  }
}

/* ── Tooltips ──────────────────────────────────────────────── */
.eeat-tip {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  cursor: help;
}

/* ── Dashboard Actions (top 3) ─────────────────────────────── */
.eeat-dashboard-actions {
  margin: 20px 0;
}
.eeat-dash-actions-title {
  font-size: 14px;
  font-weight: 700;
  color: #e0e0e0;
  margin: 0 0 10px;
}
.eeat-dash-actions-list {
  list-style: none;
  counter-reset: dash-priority;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eeat-dash-actions-list li {
  counter-increment: dash-priority;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text, #e4e4e7);
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.eeat-dash-actions-list li::before {
  display: none;
}
.eeat-dash-actions-list .eeat-priority-tag {
  flex-shrink: 0;
  width: 110px;
}
.eeat-dash-actions-list .eeat-priority-text {
  flex: 1;
  text-align: justify;
  min-width: 0;
}

/* ── Toggle Full Report ────────────────────────────────────── */
.eeat-toggle-wrap {
  text-align: center;
  margin: 24px 0;
}
.eeat-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.eeat-toggle-btn:hover {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
  transform: translateY(-1px);
}

/* ── Full Report (hidden by default) ──────────────────────── */
.eeat-full-report {
  display: none;
  animation: eeatSlideDown 0.4s ease;
  overflow-x: hidden;
  max-width: 100%;
}
.eeat-full-report.open {
  display: block;
}
@keyframes eeatSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section dividers ──────────────────────────────────────── */
.eeat-detail-section,
.eeat-priority-section {
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Accordion ──────────────────────────────────────────────── */
.eeat-accordion { display: flex; flex-direction: column; gap: 8px; }

.eeat-accordion-item {
  background: var(--card-bg, #111118);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  overflow: hidden;
}
.eeat-accordion-item[open] { border-color: rgba(0, 229, 160, 0.2); }

.eeat-accordion-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px; cursor: pointer; user-select: none; list-style: none;
}
.eeat-accordion-header::-webkit-details-marker { display: none; }
.eeat-accordion-header:hover { background: rgba(255,255,255,0.02); }

.eeat-acc-label { flex: 1; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.eeat-acc-score { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; color: var(--accent); font-weight: 700; min-width: 60px; text-align: right; }
.eeat-acc-arrow { color: var(--muted); font-size: 1.2rem; transition: transform 0.25s; }
.eeat-accordion-item[open] .eeat-acc-arrow { transform: rotate(180deg); }

.eeat-accordion-body { padding: 0 24px 24px; border-top: 1px solid rgba(255,255,255,0.04); }

/* Signal lists */
.eeat-signal-group { margin-top: 20px; }
.eeat-signal-group-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.eeat-signal-list { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; }
.eeat-signal-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.eeat-signal-icon { flex-shrink: 0; font-size: 0.9rem; margin-top: 1px; }
.eeat-signal-found   .eeat-signal-icon { color: var(--eeat-success); }
.eeat-signal-missing .eeat-signal-icon { color: var(--eeat-warn); }
.eeat-signal-rec     .eeat-signal-icon { color: var(--eeat-accent2); }

/* inline recommendation under missing signal */
.eeat-signal-inline-rec {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 6px; padding: 8px 12px;
  background: rgba(255,255,255,0.03); border-left: 2px solid var(--eeat-accent2);
  border-radius: 4px; font-size: 0.82rem; color: var(--muted); line-height: 1.5;
}
.eeat-signal-inline-rec .eeat-signal-icon { color: var(--eeat-accent2); flex-shrink: 0; margin-top: 1px; }
.eeat-signal-missing { flex-direction: column; gap: 0; }
.eeat-signal-header { display: flex; align-items: flex-start; gap: 10px; }

/* ── Essential tag ──────────────────────────────────────────── */
.eeat-essential-tag {
  display: inline-block; margin-left: 8px; padding: 1px 6px;
  background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.3);
  border-radius: 4px; font-size: 0.65rem; font-weight: 600;
  color: #f97316; text-transform: uppercase; letter-spacing: 0.05em;
  vertical-align: middle;
}
.eeat-essential .eeat-signal-header > span:first-of-type { color: #f97316; }

/* ── Extracted Entities ────────────────────────────────────── */
.eeat-entity-group { margin-bottom: 16px; }
.eeat-entity-group-title {
  font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 8px;
}
.eeat-entity-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 8px;
}
.eeat-entity-field {
  display: flex; gap: 8px; padding: 3px 0;
  font-size: 0.8rem; line-height: 1.4;
}
.eeat-entity-key {
  color: var(--accent, #00e5a0); font-weight: 600; min-width: 100px;
  text-transform: capitalize; flex-shrink: 0;
}
.eeat-entity-val { color: var(--muted, #8b8fa3); word-break: break-all; }
.eeat-no-entities { color: var(--muted); font-size: 0.85rem; font-style: italic; }

/* ── CTA Box ────────────────────────────────────────────────── */
.eeat-cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 40px;
  background: var(--card-bg, #111118);
  border: 1px solid rgba(0, 229, 160, 0.3);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(0, 229, 160, 0.05);
  margin-bottom: 32px;
}
.eeat-cta-content h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.eeat-cta-content p { color: var(--muted); font-size: 0.9rem; max-width: 520px; line-height: 1.6; }

.eeat-btn-cta {
  flex-shrink: 0; padding: 14px 28px;
  background: var(--accent); color: #06060a; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.eeat-btn-cta:hover { background: #00ffb3; box-shadow: 0 0 20px rgba(0, 229, 160, 0.25); text-decoration: none; }

/* Analyze another */
.eeat-another-wrap { text-align: center; }
.eeat-btn-another {
  background: none; border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--muted); padding: 10px 20px; border-radius: 10px;
  cursor: pointer; font-size: 0.875rem; font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.eeat-btn-another:hover { border-color: var(--accent); color: var(--accent); }

/* ── Email Toast ───────────────────────────────────────────── */
.eeat-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: #06060a;
  padding: 12px 24px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  z-index: 9999; pointer-events: none;
}
.eeat-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Progress Bar ───────────────────────────────────────────── */
.eeat-progress-panel {
  padding: 32px 0;
  text-align: center;
}
.eeat-progress-track {
  width: 100%;
  max-width: 500px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.eeat-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #00b8d4);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.eeat-progress-text {
  color: var(--muted, #8b8fa3);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Utility ────────────────────────────────────────────────── */
.eeat-hidden { display: none !important; }
[hidden] { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .eeat-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .eeat-overall-wrap { flex-direction: column; text-align: center; }
  .eeat-cta-box { flex-direction: column; text-align: center; }
  .eeat-cta-content p { max-width: none; }
}

@media (max-width: 600px) {
  .eeat-hero { padding: 48px 0 40px; }
  .eeat-hero h1 { letter-spacing: -1px; }
  .eeat-url-row { flex-direction: column; }
  .eeat-btn-analyze { width: 100%; justify-content: center; }
  .eeat-metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .eeat-priority-section, .eeat-cta-box { padding: 24px; gap: 16px; }
  .eeat-accordion-header { padding: 16px; }
  .eeat-accordion-body { padding: 0 16px 20px; }
  .eeat-overall-ring-wrap { width: 120px; height: 120px; }
  .eeat-overall-ring { width: 120px; height: 120px; }
  .eeat-overall-score-num { font-size: 1.8rem; }
  .eeat-overall-wrap { padding: 24px; }
  .eeat-form-card { padding: 20px; }
}

@media (max-width: 400px) {
  .eeat-metrics-grid { grid-template-columns: 1fr; }
  .eeat-feature-list { flex-direction: column; align-items: center; }
}
