/* Prevent layout shift from scrollbar appearing/disappearing between pages */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* ===== LAYOUT ===== */
.seo-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.seo-sidebar {
  width: var(--prodeco-sidebar-width);
  background: var(--prodeco-dark);
  height: 100vh;
  height: 100dvh;
  position: fixed;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.seo-sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.seo-sidebar-logo img { height: 32px; }

.seo-nav { flex: 1; min-height: 0; padding: 8px 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }

.seo-nav-section {
  padding: 12px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-display);
}

.seo-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.seo-nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}

.seo-nav-item.active {
  background: rgba(0,116,205,0.25);
  color: #fff;
  border-left: 3px solid var(--prodeco-primary);
}

.seo-nav-item .nav-icon {
  width: 18px; height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.seo-nav-item.active .nav-icon { opacity: 1; }

/* Main content */
.seo-main {
  margin-left: var(--prodeco-sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.seo-header {
  height: var(--prodeco-header-height);
  background: var(--prodeco-bg-card);
  border-bottom: 1px solid var(--prodeco-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.seo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--prodeco-gray);
}

.seo-breadcrumb strong {
  color: var(--prodeco-dark);
  font-family: var(--font-display);
  font-size: 15px;
}

.seo-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seo-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--prodeco-gray);
}

.seo-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--prodeco-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Page content */
.seo-content {
  padding: 28px 32px;
  flex: 1;
}

.seo-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--prodeco-dark);
  margin: 0 0 24px;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== STAT CARDS ===== */
.stat-cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) { .stat-cards-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .stat-cards-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--prodeco-bg-card);
  border: 1px solid var(--prodeco-border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--prodeco-primary));
  border-radius: 14px 14px 0 0;
}

.stat-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--prodeco-gray-light);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--prodeco-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-delta {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.delta-up { color: var(--prodeco-green); }
.delta-down { color: var(--prodeco-red); }
.delta-neutral { color: var(--prodeco-gray-light); }

/* ===== WIDGET CARDS ===== */
.widget-card {
  background: var(--prodeco-bg-card);
  border: 1px solid var(--prodeco-border);
  border-radius: 14px;
  overflow: hidden;
}

.widget-card-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--prodeco-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--prodeco-dark);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-card-body { padding: 16px 20px; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ===== SERVER METRICS ===== */
.server-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.server-metric-label {
  font-size: 12px;
  color: var(--prodeco-gray);
  width: 48px;
  flex-shrink: 0;
  font-weight: 500;
}

.server-metric-bar {
  flex: 1;
  height: 6px;
  background: var(--prodeco-border);
  border-radius: 3px;
  overflow: hidden;
}

.server-metric-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.fill-green { background: var(--prodeco-green); }
.fill-orange { background: var(--prodeco-orange); }
.fill-red { background: var(--prodeco-red); }

.server-metric-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--prodeco-dark);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

.server-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  border-bottom: 1px solid var(--prodeco-border);
}
.server-info-row:last-child { border-bottom: none; }
.server-info-label { color: var(--prodeco-gray); }
.server-info-value { font-weight: 600; color: var(--prodeco-dark); font-family: monospace; }

/* ===== SEO GAUGE ===== */
.seo-gauge-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.seo-gauge {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.seo-gauge svg { transform: rotate(-90deg); }

.seo-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.seo-gauge-score {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--prodeco-dark);
  line-height: 1;
}

.seo-gauge-grade {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
}

.grade-A { color: var(--grade-a); }
.grade-B { color: var(--grade-b); }
.grade-C { color: var(--grade-c); }
.grade-D { color: var(--grade-d); }
.grade-F { color: var(--grade-f); }

.seo-gauge-categories {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seo-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 8px;
}

.seo-cat-name { color: var(--prodeco-gray); width: 100px; flex-shrink: 0; }
.seo-cat-score { font-weight: 700; color: var(--prodeco-dark); }

/* ===== INCIDENTS ===== */
.incident-list { display: flex; flex-direction: column; gap: 8px; }

.incident-item {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

[data-theme="dark"] .incident-item { background: #2d1515; border-color: #5c2020; }

.incident-severity {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.sev-critical { color: var(--prodeco-red); }
.sev-warning { color: var(--prodeco-orange); }

.no-incidents {
  text-align: center;
  padding: 24px;
  color: var(--prodeco-green);
  font-weight: 600;
}

/* ===== PULSE BADGE ===== */
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--prodeco-red);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== REGRU WIDGET ===== */
.regru-widget { }

.regru-balance {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--prodeco-dark);
  margin-bottom: 12px;
}

.regru-balance.alert-critical { color: var(--prodeco-red); }

.regru-services-list { display: flex; flex-direction: column; gap: 6px; }

.regru-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--prodeco-border);
}

.regru-service-item:last-child { border-bottom: none; }
.regru-service-name { color: var(--prodeco-dark); font-weight: 500; }

.regru-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-ok { background: #EDFBF2; color: var(--prodeco-green); }
.badge-warning { background: #FFF7ED; color: var(--prodeco-orange); }
.badge-critical { background: #FFF5F5; color: var(--prodeco-red); }

/* ===== CHECKLIST PROGRESS ===== */
.checklist-progress-bar {
  height: 8px;
  background: var(--prodeco-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.checklist-progress-fill {
  height: 100%;
  background: var(--prodeco-primary);
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--prodeco-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary:hover { background: var(--prodeco-primary-dark); }

.btn-secondary {
  background: transparent;
  color: var(--prodeco-primary);
  border: 1.5px solid var(--prodeco-primary);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--prodeco-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--prodeco-gray);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-display);
  font-size: 13px;
}

.btn-ghost:hover { background: var(--prodeco-bg); }

.export-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.export-buttons a, .export-buttons button {
  font-size: 12px; padding: 6px 12px;
}

/* ===== TABLES ===== */
.seo-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.seo-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--prodeco-bg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--prodeco-gray);
  border-bottom: 2px solid var(--prodeco-border);
  font-family: var(--font-display);
}

.seo-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--prodeco-border);
  color: var(--prodeco-dark);
}

.seo-table tr:hover td { background: var(--prodeco-bg); }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-ok { background: #EDFBF2; color: #03A847; }
.status-warn { background: #FFF7ED; color: #f97316; }
.status-fail, .status-error { background: #FFF5F5; color: #e53935; }
.status-unknown { background: #F3F4F6; color: #9ca3af; }
.status-pending { background: #EFF6FF; color: #0074cd; }
.status-in_progress { background: #FFF7ED; color: #f97316; }
.status-done { background: #EDFBF2; color: #03A847; }
.status-skipped { background: #F3F4F6; color: #9ca3af; }
.status-needs_agreement { background: #FDF4FF; color: #7c3aed; }

/* ===== FINDINGS TABLE (SEO Audit) ===== */
.findings-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-display);
}

.filter-btn[data-status="fail"] { background: #FFF5F5; color: var(--prodeco-red); }
.filter-btn[data-status="warn"] { background: #FFF7ED; color: var(--prodeco-orange); }
.filter-btn[data-status="pass"] { background: #EDFBF2; color: var(--prodeco-green); }
.filter-btn[data-status="na"], .filter-btn[data-status="all"] { background: #F3F4F6; color: var(--prodeco-gray); }
.filter-btn.active { box-shadow: inset 0 0 0 2px currentColor; }

/* ===== SEO AUDIT WOW ===== */
.audit-hero {
  background: linear-gradient(135deg, var(--prodeco-dark) 0%, #0D2E4E 100%);
  border-radius: 16px;
  padding: 32px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.audit-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(0,116,205,0.15);
}

.audit-hero-score {
  font-size: 72px;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  animation: countUp 1.2s ease-out;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Priority actions stagger */
.priority-actions { display: flex; flex-direction: column; gap: 10px; }

.priority-action {
  background: var(--prodeco-bg-card);
  border: 1px solid var(--prodeco-border);
  border-left: 4px solid var(--prodeco-orange);
  border-radius: 10px;
  padding: 14px 16px;
  animation: slideInUp 0.4s ease both;
}

.priority-action.level-fail { border-left-color: var(--prodeco-red); }
.priority-action.level-warn { border-left-color: var(--prodeco-orange); }

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SSE STREAMING ===== */
.seo-stream-output {
  background: var(--prodeco-bg-card);
  border: 1px solid var(--prodeco-border);
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  position: relative;
}

.stream-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--prodeco-primary);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
  width: 36px; height: 20px;
  background: var(--prodeco-border);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.theme-toggle.active { background: var(--prodeco-primary); }

.theme-toggle::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  top: 2px; left: 2px;
  transition: transform 0.2s;
}

.theme-toggle.active::after { transform: translateX(16px); }

/* ===== PROGRESS BAR ===== */
.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--prodeco-bg);
  border-radius: 10px;
  margin-bottom: 4px;
  cursor: pointer;
  user-select: none;
}

.phase-title { font-weight: 700; font-family: var(--font-display); font-size: 14px; }
.phase-meta { font-size: 12px; color: var(--prodeco-gray); }

/* ===== TABS ===== */
.seo-tabs {
  display: flex;
  gap: 2px;
  background: var(--prodeco-bg);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.seo-tab {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--prodeco-gray);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-display);
}

.seo-tab.active {
  background: var(--prodeco-bg-card);
  color: var(--prodeco-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ===== HTMX LOADING ===== */
.htmx-request .htmx-indicator { display: inline-block !important; }
.htmx-indicator { display: none; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .seo-sidebar { transform: translateX(-100%); }
  .seo-sidebar.open { transform: translateX(0); }
  .seo-main { margin-left: 0; }
  .seo-content { padding: 16px; }
  .stat-cards-row { grid-template-columns: 1fr 1fr; }
}

/* ===== AUDIT FORM ===== */
.audit-form-card {
  background: var(--prodeco-bg-card);
  border: 1px solid var(--prodeco-border);
  border-top: 3px solid var(--prodeco-primary);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.audit-url-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--prodeco-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--prodeco-bg);
  color: var(--prodeco-dark);
  outline: none;
  transition: border-color 0.2s;
}

.audit-url-input:focus { border-color: var(--prodeco-primary); }

/* ── Enhanced Audit Form Card (afc) ─────────────────────────── */
.afc-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.afc-header-left { display:flex; align-items:center; gap:12px; }
.afc-icon-wrap { width:40px; height:40px; border-radius:11px; background:rgba(0,116,205,.1); display:flex; align-items:center; justify-content:center; color:var(--prodeco-primary); flex-shrink:0; }
.afc-title { font-size:15px; font-weight:800; color:var(--prodeco-dark); font-family:var(--font-display); line-height:1.2; }
.afc-subtitle { font-size:11px; color:var(--prodeco-gray); margin-top:3px; }
.afc-kbd { font-size:10px; font-weight:600; padding:3px 9px; border:1.5px solid var(--prodeco-border); border-bottom-width:3px; border-radius:6px; color:var(--prodeco-gray); background:var(--prodeco-bg); font-family:var(--font-body); letter-spacing:.3px; }
.afc-input-row { display:flex; gap:10px; align-items:stretch; }
.afc-input-wrap { position:relative; flex:1; display:flex; align-items:center; }
.afc-input-icon { position:absolute; left:13px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--prodeco-gray); flex-shrink:0; pointer-events:none; }
.afc-url-inp { padding-left:38px !important; padding-right:38px !important; }
.afc-valid-icon { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-size:15px; line-height:1; transition:opacity .2s; }
.afc-run-btn { background:linear-gradient(135deg,#0074cd,#0099ff); color:#fff; border:none; border-radius:10px; padding:0 22px; font-size:14px; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:8px; white-space:nowrap; transition:all .2s; box-shadow:0 4px 14px rgba(0,116,205,.3); font-family:var(--font-body); height:46px; }
.afc-run-btn:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 6px 22px rgba(0,116,205,.45); background:linear-gradient(135deg,#005faa,#0088ee); }
.afc-run-btn:active:not(:disabled) { transform:translateY(0); }
.afc-run-btn:disabled { opacity:.6; cursor:not-allowed; transform:none !important; }
.afc-chips-wrap { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.afc-chips-label { font-size:10px; font-weight:700; color:var(--prodeco-gray); text-transform:uppercase; letter-spacing:.6px; white-space:nowrap; flex-shrink:0; }
.afc-chips { display:flex; gap:6px; flex-wrap:wrap; }
.afc-chip { display:inline-flex; align-items:center; padding:5px 13px; border-radius:20px; font-size:12px; font-weight:600; background:var(--prodeco-bg); border:1.5px solid var(--prodeco-border); color:var(--prodeco-dark); cursor:pointer; transition:all .18s; white-space:nowrap; opacity:0; transform:translateY(5px); }
.afc-chip.afc-in { opacity:1; transform:translateY(0); }
.afc-chip:hover { background:var(--prodeco-primary); border-color:var(--prodeco-primary); color:#fff; transform:translateY(-1px); box-shadow:0 3px 10px rgba(0,116,205,.25); }
.afc-chip.afc-active { background:var(--prodeco-primary); border-color:var(--prodeco-primary); color:#fff; }
.afc-prog-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.afc-prog-text { font-size:13px; color:var(--prodeco-dark); }
.afc-prog-pct { font-size:11px; font-weight:700; color:var(--prodeco-primary); min-width:32px; text-align:right; }
.afc-prog-bar { height:6px; background:var(--prodeco-border); border-radius:3px; overflow:hidden; }
.afc-prog-fill { height:100%; border-radius:3px; background:linear-gradient(90deg,#0074cd,#00b4ff); transition:width .5s ease; }
.afc-stages { display:flex; margin-top:10px; gap:0; }
.afc-stage { flex:1; text-align:center; font-size:10px; font-weight:600; color:var(--prodeco-gray); padding:5px 4px 4px; border-top:2px solid var(--prodeco-border); transition:all .3s; }
.afc-stage.afc-active { color:var(--prodeco-primary); border-top-color:var(--prodeco-primary); }
.afc-stage.afc-done { color:#22c55e; border-top-color:#22c55e; }

.audit-progress {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--prodeco-bg);
  border-radius: 10px;
  font-size: 13px;
  display: none;
}

/* ===== CHART CONTAINERS ===== */
.chart-container { width: 100%; }
#uptimeChart, #availabilityChart { height: 200px; }
#seoRadarChart, #scoreTimelineChart { height: 280px; }
#trafficChart { height: 220px; }
#sourcesChart { height: 200px; }
