

button:disabled {
  cursor: progress;
  opacity: 0.58;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

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

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent),
    var(--shadow-soft);
}

.btn.wide,
.wide {
  width: 100%;
}

.btn-primary {
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 76%, white));
  color: var(--accent-contrast);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--panel-3);
  color: var(--text);
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.btn-telegram {
  border-color: color-mix(in srgb, #229ed9 78%, white);
  background: #229ed9;
  color: #fff;
}

.btn-icon,
.btn-square {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 18px;
  font-size: 16px;
}

.progress {
  position: relative;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 72%, white));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 40%, transparent);
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent);
}

.input::placeholder {
  color: var(--dim);
}

.input:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.input.input-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 70%, transparent);
}

.preview-phone .btn {
  min-height: 38px;
  font-size: 12px;
  padding: 8px 10px;
}

.preview-phone .btn-square {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}
