#bkl-audit-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── Form ───────────────────────────────────────────── */
.bkl-audit-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.bkl-audit-sub {
  color: #555;
  margin-bottom: 18px;
}
.bkl-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  flex-wrap: wrap;
}
#bkl-audit-url,
#bkl-audit-email {
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
#bkl-audit-url:focus,
#bkl-audit-email:focus { border-color: #2563eb; }

#bkl-audit-btn {
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
#bkl-audit-btn:hover { background: #1d4ed8; }

#bkl-audit-error {
  display: none;
  color: #dc2626;
  margin-top: 10px;
  font-size: .9rem;
}

/* ── Loading ────────────────────────────────────────── */
#bkl-audit-loading {
  text-align: center;
  padding: 48px 0;
  color: #555;
}
.bkl-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: bkl-spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes bkl-spin { to { transform: rotate(360deg); } }

/* ── Results ────────────────────────────────────────── */
.bkl-results-inner {
  animation: bkl-fadein .3s ease;
}
@keyframes bkl-fadein { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.bkl-score-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bkl-score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 6px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bkl-score-num  { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.bkl-score-denom { font-size: .85rem; color: #888; }

.bkl-grade-label {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.bkl-score-url {
  font-size: .85rem;
  color: #888;
  margin: 0 0 8px;
  word-break: break-all;
}
.bkl-summary {
  margin: 0;
  color: #444;
  line-height: 1.5;
}

/* ── Tally bar ──────────────────────────────────────── */
.bkl-check-tally {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: .9rem;
  font-weight: 600;
}
.bkl-tally-pass { color: #16a34a; }
.bkl-tally-fail { color: #dc2626; }

/* ── Individual checks ──────────────────────────────── */
.bkl-checks-list { margin-bottom: 32px; }

.bkl-check-row {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fafafa;
}
.bkl-check-pass { border-left: 4px solid #22c55e; }
.bkl-check-warn { border-left: 4px solid #f59e0b; }
.bkl-check-fail { border-left: 4px solid #ef4444; }

.bkl-check-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.bkl-check-icon {
  font-size: 1rem;
  font-weight: 700;
  width: 20px;
  text-align: center;
}
.bkl-check-pass .bkl-check-icon { color: #16a34a; }
.bkl-check-warn .bkl-check-icon { color: #d97706; }
.bkl-check-fail .bkl-check-icon { color: #dc2626; }

.bkl-check-name { font-weight: 600; flex: 1; }
.bkl-check-pts  { font-size: .85rem; color: #888; white-space: nowrap; }

.bkl-check-bar-bg {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-bottom: 8px;
}
.bkl-check-bar {
  height: 4px;
  border-radius: 2px;
  transition: width .6s ease;
}
.bkl-check-detail {
  margin: 0;
  font-size: .875rem;
  color: #555;
  line-height: 1.5;
}

/* ── CTA box ────────────────────────────────────────── */
.bkl-cta-box {
  background: #1e3a5f;
  color: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  text-align: center;
}
.bkl-cta-price {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.bkl-cta-price strong { font-size: 1.3rem; }
.bkl-cta-blurb {
  font-size: .9rem;
  color: #cbd5e1;
  margin: 0 0 20px;
}
.bkl-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #f59e0b;
  color: #1e3a5f !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background .2s;
}
.bkl-cta-btn:hover { background: #d97706; }
.bkl-cta-reset {
  margin: 14px 0 0;
  font-size: .85rem;
}
.bkl-cta-reset a { color: #94a3b8; }
.bkl-cta-reset a:hover { color: #e2e8f0; }

.bkl-email-sent {
  display: inline-block;
  margin: 8px 0 0;
  font-size: .85rem;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 4px 10px;
}

@media (max-width: 640px) {
  .bkl-input-row { grid-template-columns: 1fr; }
  #bkl-audit-btn { width: 100%; }
  .bkl-score-header { flex-direction: column; text-align: center; }
  .bkl-cta-box { padding: 20px 16px; }
}
