:root {
  color-scheme: dark;
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4f;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --brand: #e8ecf4;
  --brand-glow: #cbd5e1;
  --accent: #e8ecf4;
  --accent-hover: #f8fafc;
  --success: #86b89a;
  --warn: #d4a84a;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, #1a2030 0%, transparent 58%),
    var(--bg);
  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;
  flex-shrink: 0;
  display: block;
  border-radius: 6px;
}

.brand-mark:not(img) {
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(148, 163, 184, 0.12);
  color: var(--brand-glow);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-mark.ok {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(203, 213, 225, 0.28);
  color: var(--brand-glow);
}

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: #0f1419;
}

.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;
}
