/* ── SMTP Open Relay Test ─────────────────────────────────────────────── */
.tool-icon--smtp { background: linear-gradient(135deg, var(--red), #f97316); }

.st-form .form-row { display: flex; gap: 10px; }
.st-form .input {
  width: 100%; height: 44px; padding: 12px 16px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-md); color: var(--text); font-size: var(--fs-base);
  transition: border-color .2s, box-shadow .2s;
}
.st-form .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow-25); }

.st-error { color: var(--red); font-size: var(--fs-14); margin-top: 12px; }

/* Verdict banner */
.st-verdict {
  padding: 24px; margin-bottom: 16px; text-align: center;
  animation: fadeInUp .35s var(--ease-out);
}
.st-verdict--safe { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25); }
.st-verdict--relay { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.25); }
.st-verdict--warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.25); }
.st-verdict-icon { font-size: 36px; margin-bottom: 10px; line-height: 1; }
.st-verdict-title {
  font-size: 20px; font-weight: 700; margin-bottom: 6px;
}
.st-verdict--safe  .st-verdict-title { color: var(--green); }
.st-verdict--relay .st-verdict-title { color: var(--red); }
.st-verdict--warn  .st-verdict-title { color: var(--yellow); }
.st-verdict-desc { font-size: var(--fs-sm); color: var(--muted2); max-width: 520px; margin: 0 auto; }

/* Connection info card */
.st-info-card { padding: 20px 24px; margin-bottom: 16px; animation: fadeInUp .35s var(--ease-out); }
.st-card-title { font-size: var(--fs-sm); font-weight: 600; color: var(--muted2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.st-info-grid { display: flex; flex-direction: column; gap: 8px; }
.st-info-row { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-sm); }
.st-info-label { color: var(--muted); min-width: 80px; flex-shrink: 0; }
.st-info-value { color: var(--text); font-family: var(--mono); word-break: break-all; }
.st-info-banner {
  margin-top: 12px; padding: 10px 14px;
  background: var(--surface2); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted2);
  word-break: break-all; line-height: 1.5;
}

/* EHLO capabilities */
.st-caps-card { padding: 20px 24px; margin-bottom: 16px; animation: fadeInUp .35s var(--ease-out); }
.st-caps { display: flex; flex-wrap: wrap; gap: 8px; }
.st-cap {
  padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--surface2); font-family: var(--mono);
  font-size: var(--fs-2xs); color: var(--muted2);
}
.st-cap--starttls { background: rgba(52,211,153,.12); color: var(--green); }
.st-cap--auth     { background: rgba(91,138,248,.12); color: var(--accent); }

/* Relay test checks (reuse .ec-check base from email-check, define locally) */
.st-tests { display: flex; flex-direction: column; gap: 10px; }
.st-check {
  padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp .35s var(--ease-out);
}
.st-check--ok   { border-left: 3px solid var(--success); }
.st-check--fail { border-left: 3px solid var(--danger); }
.st-check-header { display: flex; align-items: center; gap: 10px; }
.st-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.st-icon--ok   { color: var(--success); }
.st-icon--fail { color: var(--danger); }
.st-check-name   { font-weight: 600; font-size: var(--fs-14); flex: 1; }
.st-check-badge  {
  font-size: var(--fs-2xs); padding: var(--badge-padding-sm);
  border-radius: var(--radius-lg); font-weight: 500;
}
.st-check--ok   .st-check-badge { background: var(--status-pass-bg); color: var(--success); }
.st-check--fail .st-check-badge { background: var(--status-fail-bg); color: var(--danger); }
.st-check-code {
  font-size: var(--fs-xs); color: var(--muted2); font-family: var(--mono);
  background: var(--surface2); padding: var(--badge-padding-sm); border-radius: var(--radius-sm);
}
.st-check-detail {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--muted);
}
.st-detail-line { padding: 3px 0; word-break: break-all; line-height: 1.5; font-family: var(--mono); }
.st-relay-warn  { color: var(--red); font-weight: 600; }

@media (max-width: 600px) {
  .st-form .form-row { flex-direction: column; }
  .st-form .btn-primary { width: 100%; justify-content: center; }
  .st-info-label { min-width: 64px; }
}
