:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --card: #171a22;
  --border: #2a2f3a;
  --text: #e8eaed;
  --muted: #9aa1ac;
  --accent: #6c5ce7;
  --accent-hover: #7d6ff0;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

h1 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

h2 {
  margin: 0 0 8px;
}

p { color: var(--muted); line-height: 1.5; }

label {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d0f14;
  color: var(--text);
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

#code {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-align: center;
  font-size: 1.4rem;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

form button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: var(--accent);
  color: white;
  font-weight: 600;
}

form button[type="submit"]:hover { background: var(--accent-hover); }
form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
}

.tab.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(108, 92, 231, 0.15);
}

.plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.plan {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #0d0f14;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
}

.plan:hover { border-color: var(--accent); }

.plan-name { font-weight: 600; }
.plan-price { font-size: 1.1rem; font-weight: 700; }
.plan-price small { font-weight: 400; color: var(--muted); font-size: 0.75rem; }

.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.error {
  margin-top: 16px;
  color: var(--danger);
  font-size: 0.875rem;
}

.loading {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}
