:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blueHover: #0077ed;
  --good: #168a3f;
  --bad: #d60017;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --radius2: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(900px 520px at 20% 0%, rgba(0, 113, 227, 0.08), transparent 55%),
    radial-gradient(800px 460px at 80% 0%, rgba(29, 29, 31, 0.06), transparent 55%),
    var(--bg);
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.045) 1px, transparent 0);
  background-size: 30px 30px;
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.25), transparent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.95), rgba(0, 113, 227, 0.72));
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.18);
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.brandTitle {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brandSub {
  font-size: 12px;
  color: var(--muted);
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.tab {
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.tab:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.tab.active {
  background: rgba(0, 113, 227, 0.12);
  color: var(--text);
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.3px;
}

.muted {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
  color: rgba(29, 29, 31, 0.86);
}

.form {
  margin-top: 10px;
}

.label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.input {
  width: 100%;
  border-radius: var(--radius2);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 14px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.14);
}

.btn {
  border: 1px solid rgba(0, 113, 227, 0.25);
  background: var(--blue);
  color: #ffffff;
  border-radius: var(--radius2);
  padding: 0 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.18);
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--blueHover);
}

.btn:active {
  transform: translateY(0px);
}

.btnGhost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  min-width: 92px;
}

.btnGhost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn:disabled,
.btnGhost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.result {
  margin-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
}

.resultHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rightBadges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resultTitle {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
}

.status.good {
  border-color: rgba(22, 138, 63, 0.25);
  color: var(--good);
}

.status.bad {
  border-color: rgba(214, 0, 23, 0.22);
  color: var(--bad);
}

.message {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 247, 0.7);
  min-height: 86px;
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.86);
  white-space: pre-wrap;
}

.message.good {
  border-color: rgba(22, 138, 63, 0.18);
  background: rgba(22, 138, 63, 0.06);
}

.message.bad {
  border-color: rgba(214, 0, 23, 0.18);
  background: rgba(214, 0, 23, 0.06);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 1);
  animation: spin 0.9s linear infinite;
}

.hidden {
  display: none;
}

/* Progress */
.progressWrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0 12px;
}

.progressBar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.progressFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.55), rgba(0, 113, 227, 1));
  transition: width 0.35s ease;
}

.progressText {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 46px;
  text-align: right;
}

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

.foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.seo {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.seo h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.seo h3 {
  margin: 18px 0 10px;
  font-size: 16px;
  letter-spacing: -0.1px;
}

.seo p {
  margin: 10px 0;
  color: rgba(29, 29, 31, 0.86);
  line-height: 1.7;
}

.seo a {
  color: var(--blue);
  text-decoration: none;
}

.seo a:hover {
  text-decoration: underline;
}

.faq {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius2);
  background: rgba(245, 245, 247, 0.7);
  padding: 12px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: rgba(29, 29, 31, 0.92);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] {
  background: rgba(245, 245, 247, 0.9);
}

.faq .answer {
  margin-top: 8px;
  color: rgba(29, 29, 31, 0.86);
  line-height: 1.7;
}

.mutedSmall {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  h1 {
    font-size: 24px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .btn,
  .btnGhost {
    width: 100%;
  }
}
