:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1a1f2e;
  --muted: #5b6475;
  --line: #e3e7ec;
  --brand: #0b66c3;
  --brand-dark: #084e96;
  --success: #1f8a4c;
  --error: #c23a2b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.06), 0 8px 24px rgba(20, 30, 50, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.brand .mark {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.brand .mark .bar {
  color: var(--brand);
  font-weight: 400;
  margin: 0 1px;
}
.brand .tag {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.state { display: block; }
.state.hidden { display: none; }

h1 {
  font-size: 22px;
  line-height: 1.25;
  margin: 16px 0 8px;
  font-weight: 700;
}
.muted {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 4px;
}
.muted.small {
  font-size: 13px;
  margin-top: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 8px auto 4px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-success, .icon-error {
  width: 64px; height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.icon-success { background: rgba(31, 138, 76, 0.12); color: var(--success); }
.icon-error { background: rgba(194, 58, 43, 0.12); color: var(--error); }

.meta {
  margin-top: 18px;
  padding: 14px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
}
.meta .row { display: flex; justify-content: space-between; padding: 2px 0; }
.meta .label { color: var(--muted); }
.meta .value { font-weight: 500; }

.foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.foot a {
  color: var(--brand);
  text-decoration: none;
}
.foot a:hover { color: var(--brand-dark); text-decoration: underline; }
.foot .dot { margin: 0 8px; color: var(--line); }

@media (max-width: 500px) {
  .card { padding: 28px 22px 16px; border-radius: 12px; }
  h1 { font-size: 20px; }
  .brand .mark { font-size: 20px; }
}
