:root {
  --blue: #1868db;
  --blue-dark: #0f52ba;
  --ink: #16181d;
  --muted: #6b7280;
  --muted-2: #9aa1ac;
  --border: #e6e8ec;
  --card-bg: #ffffff;
  --page-bg: #f4f6fb;
  --radius-lg: 18px;
  --radius-md: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle, #dfe4ee 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 20px;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.06);
  padding: 36px 36px 32px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(24, 104, 219, 0.28);
}

.brand-text {
  line-height: 1.15;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.85;
}

.parent-line {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.body-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 14px;
}

.body-text:last-of-type {
  margin-bottom: 0;
}

.body-text.muted {
  color: var(--muted);
  font-size: 13.5px;
}

.body-text a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(24, 104, 219, 0.35);
}

.body-text a:hover {
  text-decoration-color: var(--blue);
}

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

.redirect-path {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.redirect-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
}

.redirect-status.is-active {
  color: var(--blue);
}

.progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #eef1f6;
  margin: 4px 0 26px;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.progress-fill.is-pausing {
  transition: transform 0.35s ease-out;
}

.progress-node {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.progress-node.start {
  left: 0;
  background: var(--ink);
}

.progress-node.end {
  left: 100%;
  background: transparent;
  border: 2px solid var(--blue);
}

.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(107, 114, 128, 0.35);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.btn-link:hover {
  color: var(--ink);
}

.footer {
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

@media (max-width: 400px) {
  .card {
    padding: 28px 22px 26px;
  }
  .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
