/* ── DMARC Analyzer ─────────────────────────────────────────────────────────── */

.da-hero {
  background: var(--surface1);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
}
.da-hero h1 { font-size: clamp(24px,4vw,36px); font-weight: 800; margin: 0 0 8px; }
.da-hero p  { color: var(--text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; }

.da-wrap { max-width: 840px; margin: 0 auto; padding: 32px 16px 64px; }

/* ── Upload card ─────────────────────────────────────────────────────────────── */
.da-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.da-card-title {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted); margin-bottom: 16px;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.drop-zone i { font-size: 36px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.drop-zone p { margin: 0; color: var(--text-muted); font-size: 14px; }
.drop-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.drop-zone .file-name {
  margin-top: 10px; font-size: 13px; color: var(--accent); font-weight: 600;
}

.da-form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.da-form-row .field { flex: 1; min-width: 200px; }
.da-form-row label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.da-form-row input[type=email] {
  width: 100%; padding: 9px 12px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 14px;
}

/* ── Stats row ───────────────────────────────────────────────────────────────── */
.da-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.da-stat {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.da-stat-val { font-size: 28px; font-weight: 800; line-height: 1; }
.da-stat-val.pass  { color: var(--pass); }
.da-stat-val.warn  { color: var(--warn); }
.da-stat-val.fail  { color: var(--fail); }
.da-stat-val.neutral { color: var(--text); }
.da-stat-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: 4px; }

/* ── Recommendations ─────────────────────────────────────────────────────────── */
.da-rec {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.da-rec:last-child { border-bottom: none; }
.da-rec-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.da-rec-icon.fail    { color: var(--fail); }
.da-rec-icon.warning { color: var(--warn); }
.da-rec-icon.info    { color: var(--accent); }
.da-rec-icon.ok      { color: var(--pass); }
.da-rec-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.da-rec-body  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Sources table ───────────────────────────────────────────────────────────── */
.da-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.da-table th {
  text-align: left; padding: 8px 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); border-bottom: 2px solid var(--border);
}
.da-table td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.da-table tr:last-child td { border-bottom: none; }
.da-ptr  { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.da-prov { color: var(--accent); font-weight: 600; font-size: 12px; }
.da-bar-wrap { width: 80px; background: var(--surface2); border-radius: 4px; height: 6px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.da-bar      { height: 100%; border-radius: 4px; }
.da-bar.pass { background: var(--pass); }
.da-bar.warn { background: var(--warn); }
.da-bar.fail { background: var(--fail); }

/* ── DNS cards ───────────────────────────────────────────────────────────────── */
.da-dns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.da-dns-record {
  background: var(--surface2); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--mono, monospace);
  font-size: 12px; word-break: break-all; color: var(--text-muted);
}
.da-dns-label { font-family: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; }

/* ── Loading ─────────────────────────────────────────────────────────────────── */
.da-loading {
  text-align: center; padding: 48px 0; display: none;
  color: var(--text-muted);
}
.da-loading i { font-size: 32px; display: block; margin-bottom: 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .da-dns-grid { grid-template-columns: 1fr; }
  .da-form-row { flex-direction: column; }
}
