/* ============================================================
   ASM SCANNER — STYLESHEET
   ============================================================ */

:root {
  --navy:        #090E27;
  --navy-mid:    #111830;
  --navy-card:   #161E3A;
  --navy-light:  #1E2A50;
  --gold:        #B8952A;
  --gold-light:  #D4AF50;
  --gold-pale:   #E8D08A;
  --white:       #FFFFFF;
  --off-white:   #E6ECF8;
  --muted:       #7A90C0;
  --border:      rgba(184,149,42,0.25);
  --border-dim:  rgba(184,149,42,0.12);

  --font-serif: Georgia, serif;
  --font-sans:  'Inter', sans-serif;

  --radius: 3px;
  --radius-md: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy) url('images/background.png') center center / cover no-repeat fixed;
  color: var(--off-white);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.hero-mark {
  position: fixed;
  top: -55px;
  right: -105px;
  width: 560px;
  height: auto;
  opacity: 0.2;
  pointer-events: none;
}

/* ── UTILITIES ──────────────────────────────────────────── */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-link {
  text-decoration: none;
}

.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 14px 0 20px;
  opacity: 0.7;
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV ────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(22, 30, 58, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
  /* logo is white on transparent - visible on dark nav */
}

.nav-icon {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

.nav-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--off-white);
}

.nav-title-accent {
  color: var(--gold-light);
}

/* ── HERO ───────────────────────────────────────────────── */

.hero {
  padding: 130px 0 80px;
  background: transparent;
  position: relative;
  overflow: hidden;
}


.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: transparent;
  pointer-events: none;
}

.hero-inner {
  max-width: 740px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 18px;
}

.hero-heading em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}

/* ── SCAN CARD ──────────────────────────────────────────── */

.scan-card {
  background: rgba(22, 30, 58, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
  max-width: 680px;
}

.scan-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.input-wrap {
  flex: 1;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.9rem;
  pointer-events: none;
}

.domain-input {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 14px 12px 38px;
  outline: none;
  transition: border-color 0.2s;
}

.domain-input::placeholder { color: var(--muted); opacity: 0.6; }
.domain-input:focus { border-color: var(--gold); }

.btn-scan {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-scan:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-scan:active { transform: translateY(0); }
.btn-scan:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-arrow { font-size: 1rem; transition: transform 0.2s; }
.btn-scan:hover .btn-arrow { transform: translateX(3px); }

.scan-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.opt-check {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
  user-select: none;
}

.opt-check:hover { color: var(--off-white); }

.opt-check input[type="checkbox"] {
  appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--navy-light);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.opt-check input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.opt-check input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 9px;
  color: var(--navy);
  font-weight: 700;
}

/* ── STATUS BAR ─────────────────────────────────────────── */

.results-section {
  background: transparent;
  min-height: 60vh;
  padding: 48px 0 80px;
}

.status-bar {
  background: rgba(22, 30, 58, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px 16px;
  margin-bottom: 28px;
}

.status-domain {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 10px;
}

.status-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mod-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  border: 1px solid var(--border-dim);
  background: var(--navy-light);
  color: var(--muted);
  transition: all 0.3s;
}

.mod-badge.running {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(184,149,42,0.08);
}

.mod-badge.done {
  border-color: rgba(100,200,100,0.3);
  color: #6EC080;
  background: rgba(100,200,100,0.06);
}

.mod-badge.error {
  border-color: rgba(220,80,80,0.3);
  color: #E07070;
  background: rgba(220,80,80,0.06);
}

.progress-track {
  height: 2px;
  background: var(--navy-light);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}

/* ── SUMMARY STRIP ──────────────────────────────────────── */

.summary-strip {
  display: flex;
  align-items: center;
  background: rgba(22, 30, 58, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 32px;
  gap: 0;
}

.sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.sum-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.sum-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.sum-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── RESULTS GRID ───────────────────────────────────────── */

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}

.result-card {
  background: rgba(22, 30, 58, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.result-card:hover { border-color: rgba(184,149,42,0.5); }

.result-card.full-width {
  grid-column: 1 / -1;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(30,42,80,0.25);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  color: var(--gold);
  font-size: 1rem;
}

.card-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--off-white);
}

.card-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 2px 10px;
}

.card-body {
  padding: 16px 20px;
  max-height: 340px;
  overflow-y: auto;
}

.card-body::-webkit-scrollbar { width: 4px; }
.card-body::-webkit-scrollbar-track { background: transparent; }
.card-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── DATA ITEMS ─────────────────────────────────────────── */

.data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.82rem;
}

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

.data-key {
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 120px;
}

.data-val {
  color: var(--off-white);
  text-align: right;
  word-break: break-all;
  font-weight: 400;
}

.data-val.highlight { color: var(--gold-pale); font-weight: 500; }
.data-val.good { color: #6EC080; }
.data-val.warn { color: #E0B070; }
.data-val.bad  { color: #E07070; }

.data-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.82rem;
  color: var(--off-white);
}

.data-list-item:last-child { border-bottom: none; }

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
}

.dot.open  { background: #6EC080; }
.dot.warn  { background: #E0B070; }
.dot.bad   { background: #E07070; }

.subdomain-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  padding: 1px 7px;
  margin-left: auto;
}

/* ── LOADING / SPINNER ──────────────────────────────────── */

.card-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── ERROR STATE ────────────────────────────────────────── */

.error-msg {
  font-size: 0.8rem;
  color: #E07070;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── EMPTY STATE ────────────────────────────────────────── */

.empty-msg {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
}

/* ── FOOTER ─────────────────────────────────────────────── */

.footer {
  background: transparent;
  border-top: 1px solid var(--border-dim);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 600px) {
  .scan-input-row { flex-direction: column; }
  .btn-scan { width: 100%; justify-content: center; }
  .hero { padding: 100px 0 60px; }
  .summary-strip { padding: 16px; gap: 0; }
  .sum-val { font-size: 1.5rem; }
}

/* ── CVE RISK PANEL ─────────────────────────────────────── */

:root {
  --cve-critical: #FF4D4D;
  --cve-high:     #E07070;
  --cve-medium:   #E0B070;
  --cve-low:      #D4AF50;
}

.cve-card { grid-column: 1 / -1; }

.cve-card .card-head {
  background: rgba(255,77,77,0.06);
  border-bottom-color: rgba(255,77,77,0.2);
}

.cve-card .card-icon { color: #FF6B6B; }

.cve-card .card-body {
  max-height: none;
  overflow: visible;
}

/* Score summary row */
/* Severity bars */
.cve-severity-bars { display: flex; flex-direction: column; gap: 7px; padding-bottom: 16px; border-bottom: 1px solid var(--border-dim); margin-bottom: 4px; }

.sev-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.sev-bar-label {
  width: 56px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.sev-bar-track {
  flex: 1;
  height: 4px;
  background: var(--navy-light);
  border-radius: 2px;
  overflow: hidden;
}

.sev-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
  min-width: 0;
}

.sev-bar-count {
  width: 20px;
  text-align: right;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Individual finding cards */
.cve-finding {
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.cve-finding:hover { border-color: rgba(184,149,42,0.4); }

.cve-finding-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.cve-id {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-pale);
  background: rgba(184,149,42,0.1);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  padding: 1px 7px;
}

.cve-sev {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}

.cve-sev-critical { background: rgba(255,77,77,0.15); color: #FF4D4D; border: 1px solid rgba(255,77,77,0.3); }
.cve-sev-high     { background: rgba(224,112,112,0.15); color: #E07070; border: 1px solid rgba(224,112,112,0.3); }
.cve-sev-medium   { background: rgba(224,176,112,0.15); color: #E0B070; border: 1px solid rgba(224,176,112,0.3); }
.cve-sev-low      { background: rgba(212,175,80,0.12); color: #D4AF50; border: 1px solid rgba(212,175,80,0.2); }

.cve-cvss {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.cve-finding-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 4px;
}

.cve-finding-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.cve-remediation {
  font-size: 0.76rem;
  color: var(--gold-pale);
  font-style: italic;
  border-top: 1px solid var(--border-dim);
  padding-top: 6px;
  margin-top: 2px;
}



/* ── EMAIL INPUT ────────────────────────────────────────── */
.email-input {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 14px 12px 38px;
  outline: none;
  transition: border-color 0.2s;
}

.email-input::placeholder { color: var(--muted); opacity: 0.6; }
.email-input:focus { border-color: var(--gold); }

.scan-disclaimer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-dim);
}

.disclaimer-text {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── CONSENT CHECKBOX ───────────────────────────────────── */
.scan-consent {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.consent-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: var(--navy-card);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.15s, border-color 0.15s;
}

.consent-checkbox:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.consent-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: var(--navy);
  font-weight: 700;
}

.consent-checkbox:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.consent-text {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.consent-link {
  color: var(--gold-light);
  text-decoration: underline;
  transition: color 0.15s;
}

.consent-link:hover {
  color: var(--gold-pale);
}

/* ── EMAIL DNS CARDS ────────────────────────────────────── */
.email-dns-card .card-icon { color: var(--gold); }
.email-dns-card .card-head {
  background: rgba(184,149,42,0.05);
  border-bottom-color: rgba(184,149,42,0.2);
}

.spf-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
}

.spf-check.pass {
  border-color: rgba(100,200,100,0.3);
}

.spf-check.fail {
  border-color: rgba(220,80,80,0.3);
}

.spf-check.warn {
  border-color: rgba(224,176,112,0.35);
}

.check-icon {
  font-size: 1.1rem;
  font-weight: bold;
}

.check-content {
  flex: 1;
}

.check-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 2px;
}

.check-result {
  font-size: 0.75rem;
}

.check-result.good { color: #6EC080; }
.check-result.warn { color: #E0B070; }
.check-result.bad { color: #E07070; }

/* ── SSL/NETWORK CARDS ──────────────────────────────────── */
.ssl-network-card .card-icon { color: #6EC080; }
.ssl-network-card .card-head {
  background: rgba(110,192,128,0.05);
  border-bottom-color: rgba(110,192,128,0.2);
}

/* ── RESULTS GRID LAYOUT ────────────────────────────────── */
/* 2x2 grid: Email Security / Certificates, DNS Records / Open Ports,
   with a single full-width card underneath for Identified Risks. */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.results-grid .result-card.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* ── EMAIL SECURITY SUBSECTIONS ─────────────────────────── */
.email-subsection {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-dim);
}

.email-subsection:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.subsection-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SCAN CARD ──────────────────────────────────────────── */
.scan-card {
  background: rgba(22, 30, 58, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
  max-width: 680px;
}

.scan-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.input-wrap {
  flex: 1;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.9rem;
  pointer-events: none;
}

.domain-input {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 14px 12px 38px;
  outline: none;
  transition: border-color 0.2s;
}

.domain-input::placeholder { color: var(--muted); opacity: 0.6; }
.domain-input:focus { border-color: var(--gold); }

/* ── SCAN OPTIONS (removed) ─────────────────────────────── */
.scan-options {
  display: none;
}

/* ── BADGES ─────────────────────────────────────────────── */
.mod-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  border: 1px solid var(--border-dim);
  background: var(--navy-light);
  color: var(--muted);
  transition: all 0.3s;
}

.mod-badge.running {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(184,149,42,0.08);
}

.mod-badge.done {
  border-color: rgba(100,200,100,0.3);
  color: #6EC080;
  background: rgba(100,200,100,0.06);
}

.mod-badge.error {
  border-color: rgba(220,80,80,0.3);
  color: #E07070;
  background: rgba(220,80,80,0.06);
}

/* ── SUMMARY STRIP ──────────────────────────────────────── */
.summary-strip {
  display: flex;
  align-items: center;
  background: rgba(22, 30, 58, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 32px;
  gap: 0;
}

.sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.sum-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.sum-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.sum-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── RESULTS GRID ───────────────────────────────────────── */
.result-card {
  background: rgba(22, 30, 58, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.result-card:hover { border-color: rgba(184,149,42,0.5); }

.result-card.full-width {
  grid-column: 1 / -1;
}

.result-card.email-dns-card {
  border-left-color: var(--gold);
}

.result-card.ssl-network-card {
  border-left-color: #6EC080;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(30,42,80,0.25);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  color: var(--gold);
  font-size: 1rem;
}

.card-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--off-white);
}

.card-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 2px 10px;
}

.card-body {
  padding: 16px 20px;
  max-height: 340px;
  overflow-y: auto;
}

.card-body::-webkit-scrollbar { width: 4px; }
.card-body::-webkit-scrollbar-track { background: transparent; }
.card-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── DATA ITEMS ─────────────────────────────────────────── */
.data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.82rem;
}

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

.data-key {
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 120px;
}

.data-val {
  color: var(--off-white);
  text-align: right;
  word-break: break-all;
  font-weight: 400;
}

.data-val.highlight { color: var(--gold-pale); font-weight: 500; }
.data-val.good { color: #6EC080; }
.data-val.warn { color: #E0B070; }
.data-val.bad  { color: #E07070; }

.data-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.82rem;
  color: var(--off-white);
}

.data-list-item:last-child { border-bottom: none; }

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
}

.dot.open  { background: #6EC080; }
.dot.warn  { background: #E0B070; }
.dot.bad   { background: #E07070; }

.subdomain-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  padding: 1px 7px;
  margin-left: auto;
}

/* ── LOADING / SPINNER ──────────────────────────────────── */
.card-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── ERROR STATE ────────────────────────────────────────── */
.error-msg {
  font-size: 0.8rem;
  color: #E07070;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-msg {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
}

/* ── CVE RISK PANEL ─────────────────────────────────────── */
.cve-card { grid-column: 1 / -1; }

.cve-card .card-head {
  background: rgba(255,77,77,0.06);
  border-bottom-color: rgba(255,77,77,0.2);
}

.cve-card .card-icon { color: #FF6B6B; }

.cve-card .card-body {
  max-height: none;
  overflow: visible;
}

/* Score summary row */
/* Severity bars */
.cve-severity-bars { display: flex; flex-direction: column; gap: 7px; padding-bottom: 16px; border-bottom: 1px solid var(--border-dim); margin-bottom: 4px; }

.sev-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.sev-bar-label {
  width: 56px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.sev-bar-track {
  flex: 1;
  height: 4px;
  background: var(--navy-light);
  border-radius: 2px;
  overflow: hidden;
}

.sev-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
  min-width: 0;
}

.sev-bar-count {
  width: 20px;
  text-align: right;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Individual finding cards */
.cve-finding {
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.cve-finding:hover { border-color: rgba(184,149,42,0.4); }

.cve-finding-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.cve-id {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-pale);
  background: rgba(184,149,42,0.1);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  padding: 1px 7px;
}

.cve-sev {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}

.cve-sev-critical { background: rgba(255,77,77,0.15); color: #FF4D4D; border: 1px solid rgba(255,77,77,0.3); }
.cve-sev-high     { background: rgba(224,112,112,0.15); color: #E07070; border: 1px solid rgba(224,112,112,0.3); }
.cve-sev-medium   { background: rgba(224,176,112,0.15); color: #E0B070; border: 1px solid rgba(224,176,112,0.3); }
.cve-sev-low      { background: rgba(212,175,80,0.12); color: #D4AF50; border: 1px solid rgba(212,175,80,0.2); }

.cve-cvss {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.cve-finding-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 4px;
}

.cve-finding-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.cve-remediation {
  font-size: 0.76rem;
  color: var(--gold-pale);
  font-style: italic;
  border-top: 1px solid var(--border-dim);
  padding-top: 6px;
  margin-top: 2px;
}


/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .scan-input-row { flex-direction: column; }
  .btn-scan { width: 100%; justify-content: center; }
  .hero { padding: 100px 0 60px; }
  .summary-strip { padding: 16px; gap: 0; }
  .sum-val { font-size: 1.5rem; }
  .results-grid { display: flex; flex-direction: column; }
}
