.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--xp-ink);
  border-radius: 999px;
  background: var(--xp-lime);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

button,
.button-secondary,
.mini-button,
.payment-continue {
  border-radius: 999px;
  transition:
    transform .24s var(--xp-ease),
    box-shadow .24s ease,
    background .24s ease,
    color .24s ease,
    border-color .24s ease;
}

button:not(.nav-item):not(.text-button):not(.project-card):not(.order-card):not(.material-card):not(.expert-card):not(.compact-project):not(.dashboard-feed-item) {
  color: var(--xp-ink);
  border: 1px solid var(--xp-lime);
  background: var(--xp-lime);
  box-shadow: 0 12px 30px rgba(200, 255, 82, .16);
}

button:not(:disabled):hover { transform: translateY(-2px); }

.button-secondary,
button.button-secondary,
.mini-button.secondary {
  color: var(--xp-ink) !important;
  border-color: var(--xp-line) !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: none !important;
}

.button-secondary:hover,
button.button-secondary:hover,
.mini-button.secondary:hover {
  border-color: var(--xp-line-strong) !important;
  background: #fff !important;
}

.text-button {
  color: #4d5fcf;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

input,
select,
textarea {
  color: var(--xp-text);
  border-color: var(--xp-line);
  border-radius: var(--xp-radius-sm);
  background: rgba(255, 255, 255, .94);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #6d7eea;
  box-shadow: 0 0 0 4px rgba(135, 160, 255, .18);
}

.badge,
.role-badge {
  border: 1px solid transparent;
  border-radius: 999px;
}

.badge.good {
  color: #225d2a;
  border-color: rgba(96, 160, 55, .12);
  background: #e6f7cc;
}

.badge.pending {
  color: #655000;
  border-color: rgba(182, 143, 0, .15);
  background: #fff1bd;
}

.badge.bad {
  color: #8e2a3c;
  border-color: rgba(169, 44, 67, .12);
  background: #ffe7ec;
}

.badge.neutral,
.role-badge {
  color: #464a47;
  border-color: rgba(16, 17, 22, .08);
  background: #e9eae3;
}

.ui-state {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--xp-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

.ui-state > div { min-width: 0; flex: 1; }
.ui-state strong { display: block; }
.ui-state p { margin: 4px 0 0; color: var(--xp-muted); font-size: 13px; line-height: 1.45; }
.ui-state-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--xp-ink);
  background: var(--xp-paper-2);
  font-weight: 900;
}
.ui-state-error { margin-top: 18px; border-color: rgba(169, 44, 67, .18); background: #fff4f5; }
.ui-state-error .ui-state-icon { color: #8e2a3c; background: #ffe0e6; }
.ui-state-empty { align-items: flex-start; border-style: dashed; background: rgba(255, 255, 255, .42); }
.ui-state-loading { overflow: hidden; }
.ui-state-loading::after {
  content: "";
  align-self: stretch;
  width: 42%;
  border-radius: 12px;
  background: linear-gradient(90deg, #eceee8 25%, #f9faf6 50%, #eceee8 75%);
  background-size: 200% 100%;
  animation: xp-skeleton 1.4s linear infinite;
}

.form-message { border: 1px solid transparent; border-radius: var(--xp-radius-sm); }
.form-message.error { border-color: rgba(169, 44, 67, .14); background: #fff0f3; }
.form-message.success { border-color: rgba(22, 118, 87, .12); background: #eef9e2; }

.empty-card,
.empty-state {
  border-color: var(--xp-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .54);
}

@keyframes xp-skeleton {
  to { background-position: -200% 0; }
}

@media (max-width: 620px) {
  .ui-state { align-items: flex-start; flex-wrap: wrap; }
  .ui-state button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
.mfa-card {
  margin: 0 0 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-lg, 18px);
  background: rgba(255, 255, 255, 0.035);
}

.mfa-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.mfa-card-heading h3 {
  margin: 0.2rem 0 0.35rem;
}

.mfa-setup-panel,
.mfa-recovery-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12));
}

.mfa-confirm-form {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mfa-confirm-form label {
  flex: 1;
}

.mfa-uri {
  display: block;
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.mfa-recovery-panel pre {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  line-height: 1.65;
  user-select: all;
}

@media (max-width: 680px) {
  .mfa-card-heading,
  .mfa-confirm-form {
    align-items: stretch;
    flex-direction: column;
  }
}
