:root {
  --bg: #07111f;
  --panel: rgba(15, 23, 42, .78);
  --panel-strong: rgba(15, 23, 42, .92);
  --border: rgba(148, 163, 184, .18);
  --text: #f8fafc;
  --soft: #cbd5e1;
  --muted: #94a3b8;
  --blue: #2563eb;
  --cyan: #38bdf8;
  --green: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, .18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, .2), transparent 28%),
    linear-gradient(180deg, #050816 0%, var(--bg) 48%, #060b16 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 22, .82);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  color: var(--text);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.display-title {
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 850;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(56, 189, 248, .09);
  font-weight: 800;
}

.text-soft {
  color: var(--soft);
}

.head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel,
.metric-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), rgba(15, 23, 42, .58));
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.panel {
  padding: 20px;
}

.progress {
  height: 14px;
  background: rgba(148, 163, 184, .18);
}

.progress-bar {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-size: 11px;
  line-height: 14px;
}

.status-text,
.metric-card small,
.metric-card span {
  color: var(--muted);
}

.score-box {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  min-width: 190px;
}

.score-box span {
  font-size: 46px;
  line-height: 1;
  font-weight: 850;
  color: #93c5fd;
}

.score-box strong {
  font-size: 18px;
}

.metric-card {
  min-height: 148px;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.metric-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hint-box {
  height: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(2, 6, 23, .38);
  color: var(--soft);
}

.btn {
  border-radius: 7px;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  border-color: #3b82f6;
}

.btn-outline-light {
  border-color: rgba(203, 213, 225, .38);
  color: var(--soft);
}

.btn-outline-light:hover {
  color: #020617;
}

@media (max-width: 767.98px) {
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .head-actions {
    justify-content: flex-start;
  }

  .score-box {
    width: 100%;
    justify-content: flex-start;
  }

  .metric-card strong {
    font-size: 21px;
  }
}
