/* ─── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0f1a;
  --bg2:       #111827;
  --bg3:       #1a2236;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #64748b;
  --accent:    #38bdf8;
  --accent2:   #0ea5e9;
  --fail:      #f87171;
  --fail-bg:   rgba(248,113,113,0.1);
  --warn:      #fbbf24;
  --warn-bg:   rgba(251,191,36,0.1);
  --pass:      #4ade80;
  --pass-bg:   rgba(74,222,128,0.1);
  --radius:    10px;
  --sidebar-w: 220px;
}

html, body { height: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Login ──────────────────────────────────────────────── */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.login-wrap { width: 100%; max-width: 380px; padding: 1rem; }

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}

.login-card {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: 14px;
  padding: 2rem;
}
.login-card h1 { font-size: 20px; font-weight: 500; margin-bottom: 1.5rem; }

/* ─── Form elements ──────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 6px;
}
input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 9px 13px;
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus,
input[type="password"]:focus { border-color: var(--accent); }
input::placeholder { color: var(--text3); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #0b0f1a;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent2); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text2);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }

.alert { border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-bottom: 1rem; }
.alert-error { background: var(--fail-bg); color: var(--fail); border: 0.5px solid rgba(248,113,113,0.2); }

/* ─── Layout dashboard ──────────────────────────────────── */
body:not(.login-body) {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 1.25rem 1rem;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 0.5px solid var(--border);
}

.sidebar-nav { flex: 1; padding: 0.75rem 0.75rem 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(56,189,248,0.1); color: var(--accent); }

.sidebar-footer { padding: 0.75rem; border-top: 0.5px solid var(--border); }
.nav-item.logout:hover { color: var(--fail); background: var(--fail-bg); }

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 900px;
}

.section { display: block; }
.section-header { margin-bottom: 1.75rem; }
.section-header h1 { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.section-header p  { font-size: 14px; color: var(--text2); }

/* ─── Scan input ─────────────────────────────────────────── */
.scan-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.scan-input {
  flex: 1;
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  padding: 9px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.scan-input:focus { border-color: var(--accent); }
.scan-input::placeholder { color: var(--text3); }

/* ─── Progress ───────────────────────────────────────────── */
.progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  width: 0;
  transition: width 0.4s ease;
}
.progress-label { font-size: 13px; color: var(--text2); }

/* ─── Score cards ────────────────────────────────────────── */
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.75rem;
}
.score-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}
.score-val { font-size: 26px; font-weight: 500; line-height: 1; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'DM Mono', monospace; }
.val-fail    { color: var(--fail); }
.val-warn    { color: var(--warn); }
.val-pass    { color: var(--pass); }
.val-neutral { color: var(--text2); font-size: 13px; padding-top: 6px; }
.score-lbl   { font-size: 12px; color: var(--text3); }

/* ─── Results columns ────────────────────────────────────── */
.results-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  align-items: start;
}
.col-title { font-size: 13px; font-weight: 500; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.checks-list { display: flex; flex-direction: column; gap: 8px; }

/* ─── Check item ─────────────────────────────────────────── */
.check-item {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.check-item.check-fail { border-color: rgba(248,113,113,0.2); }
.check-item.check-warn { border-color: rgba(251,191,36,0.15); }
.check-item.check-pass { border-color: rgba(74,222,128,0.15); }
.check-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.check-icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-fail { stroke: var(--fail); }
.icon-warn { stroke: var(--warn); }
.icon-pass { stroke: var(--pass); }
.check-label { flex: 1; font-size: 14px; font-weight: 500; }
.check-detail { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 5px; }
.check-url { display: block; font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace; word-break: break-all; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.badge-fail { background: var(--fail-bg); color: var(--fail); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-pass { background: var(--pass-bg); color: var(--pass); }

/* ─── Metrics grid ───────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.metric-group {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.metric-strategy { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.metric-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; border-bottom: 0.5px solid var(--border); color: var(--text2); }
.metric-row:last-child { border-bottom: none; }
.metric-score { font-family: 'DM Mono', monospace; font-weight: 500; }

/* ─── Report ─────────────────────────────────────────────── */
.report-section { margin-top: 1.75rem; }
.report-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.report-header h2 { font-size: 16px; font-weight: 500; }
.report-actions { display: flex; gap: 8px; }
.report-textarea {
  width: 100%;
  height: 280px;
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text2);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  padding: 14px 16px;
  resize: vertical;
  outline: none;
}

/* ─── History ────────────────────────────────────────────── */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.history-card-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 8px; }
.history-url { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--accent); }
.history-date { font-size: 12px; color: var(--text3); white-space: nowrap; }
.history-badges { display: flex; gap: 6px; }
.empty-state { font-size: 14px; color: var(--text3); padding: 2rem 0; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .results-wrap { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: 1fr; }
  .main { margin-left: 0; padding: 1.25rem; }
  .sidebar { display: none; }
}

/* ─── Logo AGAPE ─────────────────────────────────────── */
.logo-name { font-size: 15px; font-weight: 500; line-height: 1.1; letter-spacing: 0.04em; }
.logo-sub  { font-size: 11px; color: var(--text3); letter-spacing: 0.03em; }

/* ─── Scansione multipla ─────────────────────────────── */
.multi-input-wrap { margin-bottom: 1.25rem; }
.multi-textarea {
  width: 100%;
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 10px;
}
.multi-textarea:focus { border-color: var(--accent); }
.multi-textarea::placeholder { color: var(--text3); }

.multi-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.multi-actions { display: flex; gap: 8px; align-items: center; }

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
}
.toggle-label input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.toggle-label small { font-size: 12px; color: var(--text3); }

/* Progress multipla */
.multi-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--text2); }
.progress-count { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text3); }

/* Queue list */
.queue-list { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.queue-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 0.5px solid var(--border); }
.queue-item:last-child { border-bottom: none; }
.qi-url   { flex: 1; color: var(--text2); font-family: 'DM Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qi-status { font-size: 12px; color: var(--text3); white-space: nowrap; }

.qi-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  transition: background 0.2s;
}
.qi-pending { background: var(--text3); }
.qi-running { background: var(--accent); animation: pulse 0.8s infinite; }
.qi-pass    { background: var(--pass); }
.qi-warn    { background: var(--warn); }
.qi-fail    { background: var(--fail); }
.qi-error   { background: var(--fail); }

/* Risultati multipla */
.multi-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.multi-results-header h2 { font-size: 16px; font-weight: 500; }

.multi-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; border-radius: var(--radius); border: 0.5px solid var(--border); }
.multi-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.multi-table th {
  background: var(--bg3);
  color: var(--text3);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 0.5px solid var(--border2);
  white-space: nowrap;
}
.multi-table th.tc { text-align: center; }
.multi-table td { padding: 10px 14px; border-bottom: 0.5px solid var(--border); vertical-align: middle; }
.multi-table tbody tr:last-child td { border-bottom: none; }
.multi-table tr.tr-clickable { cursor: pointer; transition: background 0.12s; }
.multi-table tr.tr-clickable:hover { background: var(--bg3); }
.td-url { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc { text-align: center; }
.text-muted { color: var(--text3); font-size: 13px; }
.text-mono { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text2); }
.score-pill { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 99px; display: inline-block; }
.score-pill.val-pass { background: var(--pass-bg); color: var(--pass); }
.score-pill.val-warn { background: var(--warn-bg); color: var(--warn); }
.score-pill.val-fail { background: var(--fail-bg); color: var(--fail); }
.score-pill.val-neutral { background: var(--bg3); color: var(--text3); }
.expand-btn { font-size: 12px; color: var(--accent); white-space: nowrap; }

/* Pannello dettaglio riga */
.multi-detail-list { display: flex; flex-direction: column; gap: 1rem; }
.multi-detail-panel {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.dp-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 1rem; flex-wrap: wrap; }
.dp-url  { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--accent); flex: 1; }
.dp-date { font-size: 12px; color: var(--text3); }
.btn-sm  { padding: 5px 10px; font-size: 12px; }

.btn-ghost.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ─── Layout 4 sezioni risultati ─────────────────────────── */
.four-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.fsec { display: flex; flex-direction: column; gap: 8px; }
.fsec-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.fsec-title svg { flex-shrink: 0; stroke: var(--text3); }

@media (max-width: 768px) {
  .four-sections { grid-template-columns: 1fr; }
  .results-wrap   { grid-template-columns: 1fr; }
  .score-grid     { grid-template-columns: repeat(2,1fr); }
  .metrics-grid   { grid-template-columns: 1fr; }
  .main           { margin-left:0; padding:1.25rem; }
  .sidebar        { display:none; }
}

/* ─── Tab bar ────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 2px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  white-space: nowrap;
}
.tab-btn svg { stroke: currentColor; }
.tab-btn:hover { background: var(--bg3); color: var(--text); }
.tab-btn.active { background: var(--bg3); color: var(--accent); }

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

/* ─── Check row (rettangolare esteso) ───────────────────── */
.checks-col { display: flex; flex-direction: column; gap: 10px; }

.check-row {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color 0.15s;
}
.check-row:hover { border-color: var(--border2); }
.check-row.check-fail { border-left: 3px solid var(--fail); }
.check-row.check-warn { border-left: 3px solid var(--warn); }
.check-row.check-pass { border-left: 3px solid var(--pass); }

.check-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.check-row-left { display: flex; align-items: center; gap: 10px; }
.check-icon { width: 18px; height: 18px; flex-shrink: 0; }
.check-label { font-size: 14px; font-weight: 500; }
.check-detail { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 5px; }
.check-url { display: block; font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace; word-break: break-all; margin-top: 4px; }

/* ─── Info cards grid ────────────────────────────────────── */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 1.25rem;
}
.icard {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.icard-icon { color: var(--text3); flex-shrink: 0; margin-top: 2px; }
.icard-icon svg { stroke: currentColor; }
.icard-label { font-size: 11px; color: var(--text3); margin-bottom: 3px; }
.icard-val { font-size: 13px; font-weight: 500; color: var(--text); word-break: break-word; }
.icard-val a { color: var(--accent); text-decoration: none; }
.icard-val a:hover { text-decoration: underline; }

/* ─── Soluzioni ──────────────────────────────────────────── */
.solutions-intro { font-size: 13px; color: var(--text2); margin-bottom: 1.25rem; }
.solution-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.solution-card.solution-fail { border-left: 3px solid var(--fail); }
.solution-card.solution-warn { border-left: 3px solid var(--warn); }
.solution-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.solution-badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.solution-title { font-size: 15px; font-weight: 500; }
.solution-why { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.solution-fixes { display: flex; flex-direction: column; gap: 10px; }

.fix-block { background: var(--bg3); border-radius: 8px; overflow: hidden; }
.fix-label { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--text); border-bottom: 0.5px solid var(--border); }
.fix-type { font-size: 10px; padding: 2px 7px; border-radius: 4px; font-family: 'DM Mono', monospace; font-weight: 400; }
.fix-type-php     { background: rgba(147,112,219,0.2); color: #b39ddb; }
.fix-type-htaccess{ background: rgba(255,140,0,0.2);   color: #ffb347; }
.fix-type-info    { background: rgba(56,189,248,0.15); color: var(--accent); }

.fix-code-wrap { position: relative; }
.fix-code {
  margin: 0;
  padding: 12px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text2);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
}
.fix-copy-btn {
  position: absolute;
  top: 8px; right: 10px;
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: 6px;
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.13s, color 0.13s;
}
.fix-copy-btn:hover { background: var(--bg3); color: var(--text); }

/* ─── PDF config card ────────────────────────────────────── */
.pdf-config-card {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.pdf-config-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 1rem; }
.pdf-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}
input[type="file"] {
  width: 100%;
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 7px 12px;
}
.pdf-actions { display: flex; gap: 10px; }

@media (max-width: 768px) {
  .pdf-config-grid { grid-template-columns: 1fr; }
  .tab-bar { gap: 2px; }
  .tab-btn { font-size: 12px; padding: 6px 9px; }
  .info-cards-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Plugin table ────────────────────────────────────────── */
.plugin-table-wrap {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.plugin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 0.5px solid var(--border);
  color: var(--text2);
}
.plugin-count {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--accent);
  background: rgba(56,189,248,0.1);
  padding: 2px 8px;
  border-radius: 99px;
}
.plugin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.plugin-table th {
  background: var(--bg3);
  color: var(--text3);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  text-align: left;
  border-bottom: 0.5px solid var(--border);
}
.plugin-table td {
  padding: 7px 14px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle;
  color: var(--text2);
}
.plugin-table tbody tr:last-child td { border-bottom: none; }
.plugin-table tbody tr:hover { background: var(--bg3); }
.pl-slug { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text3); }
.pl-name { font-weight: 500; color: var(--text); }
.pl-ver  { white-space: nowrap; }
.badge-ver {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  background: rgba(56,189,248,0.1);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ─── Credits ─────────────────────────────────────────────── */
.credits-texts {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.credit-text-row {
  font-size: 13px;
  color: var(--text2);
  padding: 4px 0;
  border-bottom: 0.5px solid var(--border);
}
.credit-text-row:last-child { border-bottom: none; }
.credits-links-wrap {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

/* ─── Vulnerability cards ─────────────────────────────────── */
.vuln-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.vuln-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.vuln-component { font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace; }
.vuln-score     { font-size: 12px; font-weight: 500; font-family: 'DM Mono', monospace; }
.vuln-title     { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.vuln-meta      { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vuln-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg3);
  color: var(--text3);
  font-family: 'DM Mono', monospace;
}
.vuln-cve { background: rgba(248,113,113,0.1); color: var(--fail); }
.vuln-fix { background: rgba(74,222,128,0.1);  color: var(--pass); }
.vuln-link { font-size: 12px; color: var(--accent); text-decoration: none; margin-left: auto; }
.vuln-link:hover { text-decoration: underline; }

/* ─── Progress bar avanzata ──────────────────────────────── */
.progress-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.progress-pct {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.progress-modules {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 110px;
  overflow: hidden;
}
.progress-mod-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
  animation: fadeInRow .2s ease;
}
.progress-mod-row:last-child { color: var(--text2); }
.progress-mod-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  opacity: 0.5;
}
.progress-mod-row:last-child .progress-mod-dot {
  opacity: 1;
  animation: pulse 0.8s infinite;
}
@keyframes fadeInRow { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
