@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #203449;
  background: #f8fbfd;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #176ba3; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.top {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #e5edf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
}
.brand { font-family: Manrope, sans-serif; font-size: 24px; font-weight: 800; color: #154f81; }
.brand:first-letter { color: #54b6c5; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top form { display: inline; }
.link { border: 0; background: none; color: #176ba3; font: inherit; cursor: pointer; }

/* ── Buttons ── */
.button {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  background: #176ca4;
  color: #fff;
  font: 600 15px 'DM Sans', sans-serif;
  padding: 15px 23px;
  cursor: pointer;
}
.button:hover { background: #0c5486; text-decoration: none; }
.small { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-secondary {
  display: inline-block;
  border: 1px solid #c5d9e8;
  border-radius: 8px;
  background: #fff;
  color: #176ba3;
  font: 600 13px 'DM Sans', sans-serif;
  padding: 7px 13px;
  cursor: pointer;
}
.btn-secondary:hover { background: #eaf4fb; }
.btn-danger {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: #fff0ef;
  color: #a23d37;
  font: 600 13px 'DM Sans', sans-serif;
  padding: 7px 13px;
  cursor: pointer;
}
.btn-danger:hover { background: #fde8e8; }
.full { width: 100%; margin-top: 20px; }

/* ── Home ── */
.hero { text-align: center; max-width: 850px; margin: 100px auto 80px; padding: 0 24px; }
.eyebrow { color: #308aa8; font-weight: 700; font-size: 12px; letter-spacing: 2px; }
.hero h1, h1 { font: 800 clamp(35px, 5vw, 61px)/1.13 Manrope, sans-serif; letter-spacing: -2px; }
.hero h1 em { font-style: normal; color: #2a92b1; }
.hero p { font-size: 19px; line-height: 1.7; color: #627589; }
.muted { color: #718195 !important; font-size: 14px !important; }
.hint { font-weight: 400; color: #718195; font-size: 12px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto 90px;
  padding: 0 24px;
}
.cards article, .card {
  background: #fff;
  border: 1px solid #e4edf2;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 35px #154d7710;
}
.cards article p, .card p { line-height: 1.6; color: #718195; }
.icon { font-size: 28px; color: #329db3; }
.banner { background: #eaf6fa; padding: 55px 24px; text-align: center; }
.banner h2 { font: 800 28px Manrope; }

/* ── Auth ── */
.auth { max-width: 440px; margin: 75px auto; }
.auth h1 { font-size: 34px; letter-spacing: -1px; }
.auth label { display: block; font-weight: 600; margin: 20px 0 6px; }
.auth input, .domainform input {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid #ccdce5;
  border-radius: 10px;
  font: inherit;
  margin-top: 8px;
}
.error {
  padding: 12px;
  border-radius: 10px;
  background: #fff0ef;
  color: #a23d37 !important;
  font-size: 14px !important;
}
.info-box {
  padding: 12px;
  border-radius: 10px;
  background: #f0faf4;
  color: #1a7a45 !important;
  font-size: 14px !important;
}

/* ── Dashboard ── */
.dashboard { max-width: 1160px; margin: 55px auto; padding: 0 24px; }
.dashboard h1 { font-size: 38px; letter-spacing: -1px; margin-bottom: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 35px 0; }
.stats span, .stats small { display: block; color: #718195; }
.stats strong { display: block; font: 800 34px Manrope; margin: 12px 0; color: #267ca9; }
.stats strong.orange { color: #bb7628; font-size: 26px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card h2 { font: 800 21px Manrope; margin-top: 0; }

/* ── Score colors ── */
.score-good { color: #15803d !important; }
.score-medium { color: #b45309 !important; }
.score-bad { color: #dc2626 !important; }

.score-badge {
  display: inline-block;
  border-radius: 100px;
  padding: 3px 10px;
  font: 700 12px Manrope;
  margin-left: 8px;
}
.score-badge-good { background: #dcfce7; color: #15803d; }
.score-badge-medium { background: #fef3c7; color: #b45309; }
.score-badge-bad { background: #fee2e2; color: #dc2626; }

/* ── Domain list ── */
.domainform { display: flex; gap: 8px; align-items: end; margin-bottom: 16px; }
.domainform input { margin: 0; min-width: 0; }
.items { list-style: none; padding: 0; margin: 0; }
.items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf2f5;
  padding: 14px 0;
  gap: 10px;
  flex-wrap: wrap;
}
.domain-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.domain-name { font-weight: 600; }
.domain-meta { font-size: 12px; color: #718195; }
.domain-actions { display: flex; gap: 6px; align-items: center; }
.badge {
  background: #fff3df;
  color: #a56c20;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.badge-blue { background: #e0f2fe; color: #0369a1; }

/* ── Alerts ── */
.notice { display: flex; gap: 12px; margin: 20px 0; }
.notice p { margin: 5px 0 0; color: #627589; font-size: 14px; }
.notice-date { font-size: 11px; color: #9ca3af; display: block; margin-top: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.dot-critical, .dot-high { background: #ef4444; }
.dot-medium { background: #f59e0b; }
.dot-low { background: #10b981; }
.dot-info { background: #3b82f6; }
.empty { padding: 15px; background: #f7fafc; border-radius: 12px; color: #9ca3af; font-size: 14px; }

/* ── Upgrade banner ── */
.upgrade-banner {
  margin-top: 32px;
  background: linear-gradient(135deg, #eaf6fa, #d1f0f7);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.upgrade-banner h2 { font: 800 24px Manrope; margin: 8px 0 6px; }
.upgrade-banner p { color: #4a6274; margin: 0; }

/* ── Domain verify page ── */
.verify-steps { max-width: 720px; }
.steps { color: #374151; line-height: 2; padding-left: 20px; }
.dns-record {
  background: #f1f8ff;
  border: 1px solid #c5dff0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0 20px;
}
.dns-row { display: flex; gap: 16px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #dbeaf5; }
.dns-row:last-child { border-bottom: none; }
.dns-label { font-weight: 600; font-size: 13px; color: #718195; min-width: 110px; }
.dns-value { font-family: monospace; font-size: 14px; color: #154f81; word-break: break-all; }

/* ── Footer ── */
footer { text-align: center; padding: 40px 20px; color: #8797a5; font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Responsive ── */
@media (max-width: 760px) {
  .cards, .stats, .columns { grid-template-columns: 1fr; }
  .hero { margin: 60px auto; }
  .top { height: 70px; }
  .top nav { gap: 12px; }
  .brand { font-size: 19px; }
  .cards { margin-bottom: 45px; }
  .auth { margin: 35px 18px; }
  .domainform { flex-wrap: wrap; }
  .domainform button { width: 100%; }
  .upgrade-banner { flex-direction: column; }
  .dns-row { flex-direction: column; gap: 4px; }
}
