:root {
  --primary: #4a6fa5;
  --primary-light: #7b9fd4;
  --accent: #7c5cbf;
  --accent-soft: #b8a9e8;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1e2a3a;
  --text-secondary: #5c6b7a;
  --text-muted: #8a97a8;
  --border: #e2e8f0;
  --success: #4caf8a;
  --danger: #c45c6e;
  --radius: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(124, 92, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 40% at 90% 0%, rgba(74, 111, 165, 0.1), transparent 50%),
    var(--bg);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  box-shadow: 0 8px 20px rgba(124, 92, 191, 0.25);
}

.brand-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 12px 40px rgba(30, 42, 58, 0.06);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.35;
}

.step-num {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(124, 92, 191, 0.14);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  margin-bottom: 14px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(74, 111, 165, 0.35);
  border-color: var(--primary-light);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.check input {
  margin-top: 3px;
}

.actions {
  display: grid;
  gap: 10px;
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent-soft);
}

.btn-danger {
  background: rgba(196, 92, 110, 0.1);
  color: var(--danger);
  border: 1px solid rgba(196, 92, 110, 0.25);
}

.error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(196, 92, 110, 0.1);
  color: var(--danger);
  font-size: 0.88rem;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(76, 175, 138, 0.15);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 18px;
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.manage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  background: rgba(255, 255, 255, 0.55);
}

.manage-row .btn-danger {
  flex-shrink: 0;
}
