/* Delete-account form — extends policy theme */

.delete-panel section:last-of-type {
  border-bottom: 0;
}

.steps {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: var(--body);
  font-size: 0.98rem;
}

.steps li {
  margin-bottom: 0.35rem;
}

.delete-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.field.grow {
  flex: 1;
  min-width: 0;
}

.field input {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: rgba(8, 14, 20, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input::placeholder {
  color: rgba(143, 166, 188, 0.55);
  font-weight: 500;
}

.field input:focus {
  border-color: rgba(100, 153, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 114, 243, 0.18);
}

.code-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

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

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.btn.ghost {
  background: rgba(20, 30, 42, 0.9);
  color: var(--ink);
  border: 1px solid var(--outline);
  white-space: nowrap;
}

.btn.ghost:not(:disabled):hover {
  border-color: rgba(100, 153, 255, 0.55);
  color: var(--brand-lift);
}

.btn.danger {
  background: #c43c3c;
  color: #fff7f7;
  min-width: 10.5rem;
}

.btn.danger:not(:disabled):hover {
  background: #d54a4a;
}

.form-status {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-status.is-ok {
  background: rgba(36, 120, 72, 0.18);
  border: 1px solid rgba(72, 180, 110, 0.35);
  color: #9be2b4;
}

.form-status.is-error {
  background: rgba(160, 48, 48, 0.16);
  border: 1px solid rgba(220, 90, 90, 0.35);
  color: #f0a0a0;
}

.form-status.is-info {
  background: rgba(45, 114, 243, 0.12);
  border: 1px solid rgba(100, 153, 255, 0.3);
  color: var(--brand-lift);
}

@media (max-width: 520px) {
  .code-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn.ghost {
    width: 100%;
  }
}
