/* ============================================================
   makeBIMI.com — /check Audit & Preview Engine Styles
   ============================================================ */

/* ── HERO INPUT ── */
.check-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.check-input-row {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}
.check-input-wrap {
  flex: 1;
  position: relative;
}
.check-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.check-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px 13px 42px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.check-input::placeholder { color: var(--text-muted); }
.check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.check-hint {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── SCORECARD ── */
.scorecard {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.scorecard-domain {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.scorecard-favicon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.scorecard-favicon img { width: 100%; height: 100%; object-fit: contain; }
.scorecard-grade {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.grade-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.grade-value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.grade-value.grade-a { color: var(--green); }
.grade-value.grade-b { color: #84cc16; }
.grade-value.grade-c { color: var(--yellow); }
.grade-value.grade-f { color: var(--red); }

.scorecard-checks {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.check-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.check-row-icon.pass { background: var(--green-dim); color: var(--green); }
.check-row-icon.fail { background: rgba(239,68,68,0.12); color: var(--red); }
.check-row-icon.warn { background: rgba(234,179,8,0.12); color: var(--yellow); }
.check-row-body { flex: 1; }
.check-row-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.check-row-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.check-row-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}
.badge-pass { background: var(--green-dim); color: var(--green); }
.badge-fail { background: rgba(239,68,68,0.12); color: var(--red); }
.badge-warn { background: rgba(234,179,8,0.12); color: var(--yellow); }
.badge-na   { background: var(--bg-elevated); color: var(--text-muted); }

/* ── SPLIT PREVIEW ── */
.split-preview {
  margin-bottom: 32px;
}
.split-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.split-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.split-label.bad  { color: var(--red); }
.split-label.good { color: var(--green); }

.split-screens {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.split-vs {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 60px;
}

/* ── INBOX MOCKUP ── */
.inbox-mock {
  flex: 1;
  background: #0f0f11;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
}
.inbox-mock-good {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 24px rgba(99,102,241,0.08);
}
.inbox-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: #1a1a1d;
  border-bottom: 1px solid var(--border);
}
.inbox-toolbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
}
.inbox-header {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.inbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}
.inbox-row-unread { background: rgba(255,255,255,0.02); }
.inbox-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 2px;
}
.inbox-avatar-gray {
  background: #2a2a2e;
  border: 1px solid var(--border);
}
.inbox-avatar-logo {
  background: var(--bg-card);
  border: 1px solid rgba(99,102,241,0.3);
}
.inbox-avatar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.inbox-avatar-logo .avatar-initial {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}
.inbox-content { flex: 1; min-width: 0; }
.inbox-sender {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-subject {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-meta {
  flex-shrink: 0;
  text-align: right;
}
.inbox-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.blue-checkmark {
  display: inline-flex;
  align-items: center;
}
.inbox-no-logo-badge, .inbox-bimi-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 500;
}
.inbox-no-logo-badge { color: var(--red); background: rgba(239,68,68,0.06); }
.inbox-bimi-badge    { color: #1a73e8;   background: rgba(26,115,232,0.08); }

/* ── CTA ── */
.check-cta {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}
.check-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.check-cta-inner { position: relative; }
.check-cta h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 12px; }
.check-cta p  { max-width: 520px; margin: 0 auto 28px; font-size: 0.95rem; }
.cta-sub { margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); }

/* ── COMPLIANT STATE ── */
.check-compliant {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 48px;
}
.compliant-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--green);
  margin: 0 auto 20px;
}

/* ── LOADING STATE ── */
.check-loading {
  text-align: center;
  padding: 60px 24px;
}
.check-loading-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}
.check-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.check-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.check-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .check-input-row { flex-direction: column; }
  .split-screens { flex-direction: column; }
  .split-vs { display: none; }
  .split-label-row { flex-direction: column; gap: 4px; }
}
