:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --surface: #151922;
  --border: #2a3142;
  --text: #eef1f7;
  --muted: #8b95a8;
  --accent: #5b8def;
  --success: #4caf82;
  --warn: #e6b84a;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1a2030 0%, var(--bg) 55%);
  color: var(--text);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page.narrow { max-width: 560px; }

.hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-mark.ok {
  background: linear-gradient(135deg, var(--success), #2d8a5e);
}

h1 { margin: 0 0 0.25rem; font-size: 1.75rem; }

.muted { color: var(--muted); }

.hidden { display: none !important; }

.error { color: #ffb4b4; }
.warn { color: var(--warn); }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
}

.plan-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.key-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.key-box code {
  flex: 1;
  word-break: break-all;
  font-size: 1.05rem;
}

.footer {
  margin-top: 2rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

code {
  background: #1f2430;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
