:root {
  --bg0: #0b0f1a;
  --bg1: #111b2d;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --shadow: rgba(0, 0, 0, 0.35);
  --accent0: #22c55e;
  --accent1: #2dd4bf;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
}

body {
  background:
    radial-gradient(900px 500px at 20% 15%, rgba(34, 197, 94, 0.14), transparent 60%),
    radial-gradient(900px 520px at 80% 20%, rgba(45, 212, 191, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 28px 16px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.header {
  padding-top: 8px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.85), rgba(45, 212, 191, 0.85));
  box-shadow: 0 18px 40px var(--shadow);
}

.brand-title {
  font-size: 18px;
  font-weight: 750;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.card {
  align-self: center;
  padding: 22px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 60px var(--shadow);
}

.btn {
  width: 100%;
  border: 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #07110c;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent0), var(--accent1));
  transition: transform 140ms ease, filter 140ms ease;
}

.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(30%) brightness(0.95);
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.status {
  margin: 14px 0 0;
  min-height: 72px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow-x: auto;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.86);
}

.footer {
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
}

.link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}

.link:hover {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 520px) {
  .card { padding: 18px; }
  .brand-subtitle { display: none; }
}
