:root {
  --navy-950: #08151a;
  --navy-900: #0d2129;
  --navy-800: #123039;
  --navy-700: #184450;
  --accent: #22c1a3;
  --accent-soft: #22c1a322;
  --text: #eefaf7;
  --text-dim: #a6c2be;
  --danger: #ff6b6b;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top, var(--navy-800), var(--navy-950));
  color: var(--text);
}

.wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.card {
  width: 100%;
  max-width: 640px;
  background: var(--navy-900);
  border: 1px solid #ffffff14;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px #00000055;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

h1 {
  font-size: 21px;
  margin: 0 0 4px;
  line-height: 1.35;
}

.subtitle {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 20px;
}

.role-hint {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 0 20px;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: #ffffff14;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7deed6);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.step-count {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.field-block {
  margin-bottom: 22px;
}

.field-block:last-child {
  margin-bottom: 0;
}

.question {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.4;
}

.optional-tag {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 13px;
}

.hint {
  font-size: 13px;
  color: var(--text-dim);
  margin: -6px 0 10px;
}

input[type="text"], input[type="number"], textarea, select {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { min-height: 76px; }

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ffffff1f;
  background: var(--navy-800);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.15s ease;
}

.option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option .box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #ffffff3a;
  margin-right: 10px;
  vertical-align: -3px;
}

.option.radio-style .box { border-radius: 999px; }

.option.active .box {
  background: var(--accent);
  border-color: var(--accent);
}

.scale-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scale-btn {
  flex: 1 0 auto;
  min-width: 40px;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid #ffffff1f;
  background: var(--navy-800);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.scale-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #06231d;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  padding: 13px 22px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

button:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #06231d;
  flex: 1;
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid #ffffff1f;
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}

.center-state {
  text-align: center;
  padding: 60px 12px;
}

.center-state .big-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.center-state h2 {
  margin: 0 0 8px;
}

.center-state p {
  color: var(--text-dim);
}

/* --- admin --- */
.wrap.admin { align-items: flex-start; }
.card.admin-card { max-width: 720px; }
.stat-row { display: flex; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.stat-box { flex: 1 1 160px; background: var(--navy-800); border: 1px solid #ffffff1f; border-radius: 12px; padding: 16px; }
.stat-box .num { font-size: 28px; font-weight: 700; }
.stat-box .label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.link-cell { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.link-cell input { flex: 1; background: var(--navy-800); border: 1px solid #ffffff1f; border-radius: 8px; padding: 10px; color: var(--text-dim); font-size: 13px; }
.copy-btn { padding: 10px 14px; font-size: 13px; background: var(--navy-700); color: var(--text); }

@media (max-width: 480px) {
  .card { padding: 22px 18px 18px; }
  h1 { font-size: 18px; }
  .question { font-size: 15px; }
}
