/* ── SCAN HEADER ── */
.scan-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.scan-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scan-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.btn-new-scan {
  font-size: 0.875rem;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-new-scan:hover { color: var(--accent); border-color: var(--accent); }

/* ── SCAN MAIN ── */
.scan-main {
  min-height: calc(100vh - 65px);
  padding: 60px 0 100px;
}

/* ── FORM ── */
.scan-form-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.scan-form-hero {
  text-align: center;
  margin-bottom: 48px;
}

.scan-form-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  margin-top: 24px;
}

.scan-form-lede {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.form-error {
  background: rgba(255, 77, 106, 0.1);
  border: 1px solid rgba(255, 77, 106, 0.3);
  color: var(--red);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.scan-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.label-opt {
  color: var(--fg-dim);
  font-weight: 400;
}

.form-group input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input::placeholder { color: var(--fg-dim); }
.form-group input:focus { border-color: var(--accent); }

.btn-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 4px;
}

.btn-scan:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-scan:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10,10,15,0.3);
  border-top-color: #0a0a0f;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scan-disclaimer {
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 20px;
}

.scan-brokers-preview {
  margin-top: 40px;
  text-align: center;
}

.brokers-label {
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.broker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
}

.chip-more {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-dim);
}

/* ── REPORT ── */
.report-summary {
  max-width: 760px;
  margin: 0 auto 48px;
}

.report-headline {
  text-align: center;
  margin-bottom: 40px;
}

.report-headline h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.report-meta {
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.score-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.score-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--border);
  flex-shrink: 0;
}

.score-ring.risk-critical { border-color: var(--red); box-shadow: 0 0 24px rgba(255,77,106,0.25); }
.score-ring.risk-high     { border-color: var(--yellow); box-shadow: 0 0 24px rgba(255,198,77,0.2); }
.score-ring.risk-medium   { border-color: #ff8c42; box-shadow: 0 0 24px rgba(255,140,66,0.2); }
.score-ring.risk-low      { border-color: var(--accent); box-shadow: 0 0 24px rgba(0,229,160,0.2); }

.score-inner {
  text-align: center;
}

.score-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  font-family: var(--mono);
  line-height: 1;
}

.score-label {
  font-size: 0.7rem;
  color: var(--fg-dim);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.risk-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: fit-content;
}

.risk-badge.risk-critical { background: rgba(255,77,106,0.15); color: var(--red); }
.risk-badge.risk-high     { background: rgba(255,198,77,0.15); color: var(--yellow); }
.risk-badge.risk-medium   { background: rgba(255,140,66,0.15); color: #ff8c42; }
.risk-badge.risk-low      { background: var(--accent-dim); color: var(--accent); }

.score-detail {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 240px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.stat-card.red   .stat-num { color: var(--red); }
.stat-card.green .stat-num { color: var(--accent); }
.stat-card.accent .stat-num { color: var(--fg); }

.stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--mono);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ── REPORT CTA ── */
.report-cta {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,229,160,0.08), rgba(0,229,160,0.03));
  border: 1px solid rgba(0,229,160,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cta-content p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 480px;
}

.btn-cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #0a0a0f;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.btn-cta:hover { opacity: 0.88; }

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.btn-secondary:hover { color: var(--fg); border-color: var(--fg-muted); }

/* ── RESULTS SECTIONS ── */
.results-section {
  max-width: 760px;
  margin: 0 auto 48px;
}

.results-heading {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.results-icon { font-size: 1rem; }
.red-icon   { color: var(--red); }
.green-icon { color: var(--accent); }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-card {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card.found {
  border-color: rgba(255,77,106,0.2);
  background: rgba(255,77,106,0.04);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.result-broker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.broker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.red-dot   { background: var(--red); }
.green-dot { background: var(--accent); }

.result-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}

.found-badge {
  background: rgba(255,77,106,0.15);
  color: var(--red);
}

.result-data-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.data-type-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
}

.result-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}
.result-link:hover { text-decoration: underline; }

/* ── CLEAN LIST ── */
.clean-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clean-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ── BOTTOM CTA ── */
.report-footer-cta {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
}

.report-footer-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.report-footer-cta p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}

.footer-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .results-grid   { grid-template-columns: 1fr; }
  .clean-list     { grid-template-columns: 1fr 1fr; }
  .stat-row       { grid-template-columns: 1fr; }
  .score-ring-wrap { flex-direction: column; }
  .score-detail   { max-width: 100%; }
  .report-cta     { flex-direction: column; }
  .scan-form      { padding: 24px 20px; }
}
