/* ═══════════════════════════════════════════════════════════
   SMTP Email Validator — MaitTech Premium Theme
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts & Tokens ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep:       #0f172a; /* slate-900 */
  --bg-main:       #0f172a;
  --bg-card:       #0f172a; /* cards share the deep background but with glowing borders */
  --bg-card2:      #1e293b; /* slate-800 */
  --bg-input:      rgba(255,255,255,0.05);
  --bg-hover:      rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.1);
  --border-light:  rgba(255,255,255,0.15);

  /* MaitTech specific colors */
  --accent-cyan:   #22d3ee; /* cyan-400 */
  --accent-cyan-rgb: 34, 211, 238;
  --accent-purple: #a855f7; /* purple-500 */
  --accent-purple-rgb: 168, 85, 247;
  
  --accent:        #22d3ee;
  --accent-dim:    rgba(34, 211, 238, 0.10);
  --accent-glow:   rgba(34, 211, 238, 0.35);

  --text-primary:  #f1f5f9; /* slate-100 */
  --text-secondary:#94a3b8; /* slate-400 */
  --text-muted:    #64748b; /* slate-500 */
  --text-label:    #cbd5e1; /* slate-300 */

  --green:  #4ade80; /* green-400 */
  --red:    #f87171; /* red-400 */
  --orange: #fbbf24; /* amber-400 */
  --yellow: #facc15; /* yellow-400 */
  --blue:   #38bdf8; /* sky-400 */
  --gray:   #94a3b8; /* slate-400 */

  --green-bg:   rgba(74, 222, 128, 0.10);
  --red-bg:     rgba(248, 113, 113, 0.10);
  --orange-bg:  rgba(251, 191, 36, 0.10);
  --yellow-bg:  rgba(250, 204, 21, 0.10);
  --gray-bg:    rgba(148, 163, 184, 0.10);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;

  --shadow-card: 0 8px 40px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 18px rgba(34, 211, 238, 0.18);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition: 0.35s ease;
}

/* ── MaitTech Animations ── */
@keyframes mait-card-breathe {
  0%, 100% {
    outline: 1.5px solid rgba(6,182,212,0.18);
    box-shadow: inset 0 0 16px rgba(139,92,246,0.08),
                inset 0 0  8px rgba(6,182,212,0.06);
  }
  50% {
    outline: 1.5px solid rgba(6,182,212,0.80);
    box-shadow: inset 0 0 32px rgba(6,182,212,0.32),
                inset 0 0 18px rgba(139,92,246,0.22);
  }
}

@keyframes maitFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════
   HEADER
   ═══════════════════════════════════ */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.header-left { flex: 1; min-width: 0; }

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
}
.logo-icon svg { width: 18px; height: 18px; }

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
}

.header-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.5;
}

/* ── Nav ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-btn.active {
  background: var(--accent-dim);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

/* ═══════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════ */
.main { padding: 32px; max-width: 1440px; margin: 0 auto; }

.tab-panel { display: none; animation: maitFadeIn 0.3s ease; }
.tab-panel.active { display: block; }

.two-col {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .header { flex-direction: column; }
  .header-nav { width: 100%; overflow-x: auto; }
  .main { padding: 20px 16px; }
}

/* ═══════════════════════════════════
   CARD & MAITTECH ANIMATIONS
   ═══════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  animation: mait-card-breathe 2.6s ease-in-out infinite;
  transition: outline 0.4s ease, box-shadow 0.4s ease, transform 0.35s ease;
  outline-offset: -1px;
}

.card:hover {
  animation: none;
  outline: 2px solid rgba(6,182,212,0.95);
  outline-offset: -1px;
  box-shadow: inset 0 0 40px rgba(6,182,212,0.38),
              inset 0 0 20px rgba(139,92,246,0.28);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-purple);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.15);
}
.card-icon svg { width: 18px; height: 18px; }

.terminal-icon {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ═══════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-label);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-hint {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  font-weight: 400;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
  appearance: none;
}
.form-input.mono { font-family: var(--font-mono); font-size: 13px; }
.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.05);
}
.form-input::placeholder { color: var(--text-muted); }

.form-textarea {
  width: 100%;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}
.form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.05);
}
.form-textarea::placeholder { color: var(--text-muted); }

.clear-btn {
  position: absolute;
  right: 10px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}
.clear-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); background: rgba(255,255,255,0.1); }

.clear-btn-sm {
  padding: 5px 12px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}
.clear-btn-sm:hover { border-color: var(--red); background: rgba(248, 113, 113, 0.2); }

/* ── Presets ── */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); background: rgba(255,255,255,0.08); }
.preset-btn.active {
  background: var(--accent-dim);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ── Validate Button (MaitTech Glow Style) ── */
.validate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: rgba(34, 211, 238, 0.08);
  border: 1.5px solid #22d3ee;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
  color: #22d3ee;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
  margin-top: 8px;
}

.validate-btn:hover {
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.65), 0 0 80px rgba(34, 211, 238, 0.30);
  transform: translateY(-3px) scale(1.02);
  background: rgba(34, 211, 238, 0.15);
}

.validate-btn:active { transform: translateY(0) scale(1); }
.validate-btn:disabled {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.validate-btn-icon { display: flex; align-items: center; }
.validate-btn-icon svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════
   IDLE STATE
   ═══════════════════════════════════ */
.idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  gap: 16px;
}

.idle-icon {
  width: 72px; height: 72px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}
.idle-icon svg { width: 36px; height: 36px; }

.idle-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.idle-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.6;
}

/* ═══════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════ */
.loading-state { padding: 32px 0; }

.loading-steps { display: flex; flex-direction: column; gap: 16px; }

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  animation: maitFadeIn 0.3s ease;
}
.loading-step.done { border-color: rgba(74, 222, 128, 0.35); background: var(--green-bg); box-shadow: 0 0 16px rgba(74, 222, 128, 0.1); }
.loading-step.error { border-color: rgba(248, 113, 113, 0.35); background: var(--red-bg); box-shadow: 0 0 16px rgba(248, 113, 113, 0.1); }

.ls-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.loading-step.done .ls-spinner {
  animation: none;
  border: none;
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.loading-step.done .ls-spinner::after { content: '✓'; font-size: 16px; font-weight: bold; }
.loading-step.error .ls-spinner {
  animation: none;
  border: none;
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.loading-step.error .ls-spinner::after { content: '✗'; font-size: 16px; font-weight: bold; }

.ls-label { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.loading-step.done .ls-label { color: var(--green); }

/* ═══════════════════════════════════
   RESULT STATE
   ═══════════════════════════════════ */
.verdict-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid;
  animation: maitFadeIn 0.4s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.verdict-banner.green  { background: var(--green-bg);  border-color: rgba(74, 222, 128, 0.4); box-shadow: inset 0 0 20px rgba(74, 222, 128, 0.1); }
.verdict-banner.red    { background: var(--red-bg);    border-color: rgba(248, 113, 113, 0.4); box-shadow: inset 0 0 20px rgba(248, 113, 113, 0.1); }
.verdict-banner.orange { background: var(--orange-bg); border-color: rgba(251, 191, 36, 0.4); box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.1); }
.verdict-banner.yellow { background: var(--yellow-bg); border-color: rgba(250, 204, 21, 0.4); box-shadow: inset 0 0 20px rgba(250, 204, 21, 0.1); }
.verdict-banner.gray   { background: var(--gray-bg);   border-color: rgba(148, 163, 184, 0.4); box-shadow: inset 0 0 20px rgba(148, 163, 184, 0.1); }

.verdict-left { display: flex; align-items: center; gap: 16px; }

.verdict-icon {
  font-size: 26px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.verdict-label {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.verdict-banner.green  .verdict-label { color: var(--green); }
.verdict-banner.red    .verdict-label { color: var(--red); }
.verdict-banner.orange .verdict-label { color: var(--orange); }
.verdict-banner.yellow .verdict-label { color: var(--yellow); }
.verdict-banner.gray   .verdict-label { color: var(--gray); }

.verdict-email { font-family: var(--font-mono); font-size: 14px; color: var(--text-secondary); }

.verdict-duration {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.verdict-meta { text-align: right; }

/* ── Check rows ── */
.check-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  animation: maitFadeIn 0.3s ease;
}
.check-row:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }

.cr-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cr-icon.pass   { background: var(--green-bg);  color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.cr-icon.fail   { background: var(--red-bg);    color: var(--red);   border: 1px solid rgba(248,113,113,0.2); }
.cr-icon.warn   { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(250,204,21,0.2); }
.cr-icon.info   { background: var(--gray-bg);   color: var(--gray);   border: 1px solid rgba(148,163,184,0.2); }

.cr-body { flex: 1; min-width: 0; }
.cr-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cr-detail { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.cr-code { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ── MX Table ── */
.section-block { margin-top: 20px; }
.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-label);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mx-table { display: flex; flex-direction: column; gap: 8px; }

.mx-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  animation: maitFadeIn 0.3s ease;
}
.mx-priority {
  color: var(--accent-cyan);
  font-weight: 700;
  min-width: 32px;
}
.mx-host { color: var(--text-primary); flex: 1; }
.mx-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.mx-badge.primary { background: var(--accent-dim); color: var(--accent-cyan); border: 1px solid rgba(34,211,238,0.25); }

/* ── SMTP Log ── */
.toggle-log-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}
.toggle-log-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); }

.smtp-log {
  background: #020617; /* slate-950 */
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.log-line.send { color: #38bdf8; } /* sky-400 */
.log-line.recv { color: #4ade80; } /* green-400 */
.log-line.err  { color: #f87171; } /* red-400 */

/* ═══════════════════════════════════
   BULK VALIDATION
   ═══════════════════════════════════ */
.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -8px;
  margin-bottom: 16px;
}
.bulk-count { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }

/* Progress */
.bulk-progress { margin-bottom: 24px; animation: maitFadeIn 0.3s ease; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Summary grid */
.bulk-summary { animation: maitFadeIn 0.4s ease; margin-bottom: 24px; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.summary-card {
  padding: 16px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  text-align: center;
  transition: all 0.3s ease;
}
.summary-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.summary-card.valid    { border-color: rgba(74,222,128,0.3); background: var(--green-bg); }
.summary-card.invalid  { border-color: rgba(248,113,113,0.3); background: var(--red-bg); }
.summary-card.risky    { border-color: rgba(251,191,36,0.3); background: var(--orange-bg); }
.summary-card.unknown  { border-color: rgba(148,163,184,0.3); background: var(--gray-bg); }
.summary-card.disposable { border-color: rgba(250,204,21,0.3); background: var(--yellow-bg); }
.summary-card.role     { border-color: rgba(56,189,248,0.3); background: rgba(56,189,248,0.1); }

.sc-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.summary-card.valid    .sc-num { color: var(--green); }
.summary-card.invalid  .sc-num { color: var(--red); }
.summary-card.risky    .sc-num { color: var(--orange); }
.summary-card.unknown  .sc-num { color: var(--gray); }
.summary-card.disposable .sc-num { color: var(--yellow); }
.summary-card.role     .sc-num { color: var(--blue); }

.sc-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}

.bulk-export-row { display: flex; gap: 12px; }

.export-btn {
  flex: 1;
  padding: 12px 18px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  color: var(--accent-purple);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.export-btn:hover { background: rgba(168, 85, 247, 0.2); box-shadow: 0 0 16px rgba(168, 85, 247, 0.25); transform: translateY(-1px); }
.export-btn.secondary {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}
.export-btn.secondary:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); box-shadow: 0 0 16px rgba(248, 113, 113, 0.2); }

/* Results filter row */
.results-filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); background: rgba(255,255,255,0.08); }
.filter-btn.active {
  background: var(--accent-dim);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}

/* Results list */
.results-list { display: flex; flex-direction: column; gap: 8px; max-height: 450px; overflow-y: auto; padding-right: 4px; }

.result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  animation: maitFadeIn 0.2s ease;
}
.result-row:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.result-row[data-status="valid"]   { border-left: 4px solid var(--green); }
.result-row[data-status="invalid"] { border-left: 4px solid var(--red); }
.result-row[data-status="risky"]   { border-left: 4px solid var(--orange); }
.result-row[data-status="unknown"] { border-left: 4px solid var(--gray); }

.rr-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.result-row[data-status="valid"] .rr-dot   { background: var(--green); box-shadow: 0 0 8px var(--green); }
.result-row[data-status="invalid"] .rr-dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.result-row[data-status="risky"] .rr-dot   { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.result-row[data-status="unknown"] .rr-dot { background: var(--gray); box-shadow: 0 0 8px var(--gray); }

.rr-email { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-primary); }
.rr-reason { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }

.empty-results {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
  background: rgba(255,255,255,0.01);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════
   SMTP CONFIG & INFO CARDS
   ═══════════════════════════════════ */
.config-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .config-wrap { grid-template-columns: 1fr; }
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .config-grid { grid-template-columns: 1fr; }
}

.port-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.port-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.port-option:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}
.port-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent-cyan);
}
.port-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.port-desc {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-secondary);
}

.config-info-box {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-md);
  margin-top: 24px;
  align-items: center;
}
.config-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 10px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.config-info-icon svg { width: 20px; height: 20px; }
.config-info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.config-info-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.config-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.config-actions .validate-btn { margin-top: 0; }

.config-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  animation: maitFadeIn 0.3s ease;
}
.config-saved svg { width: 18px; height: 18px; }

/* Info Cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}
.info-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.ic-icon {
  font-size: 20px;
  margin-bottom: 10px;
}
.ic-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.ic-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Utilities */
.hidden { display: none !important; }
