.nma {
  --nma-ink: var(--nas-ink, #183d36);
  --nma-line: var(--nas-line, #dcded7);
  --nma-accent: #b32359;
  --nma-line-green: #06c755;
  --nma-fb-blue: #1877f2;
  margin: 28px auto;
  max-width: 980px;
  color: var(--nma-ink);
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
.nma *, .nma *::before, .nma *::after {
  box-sizing: border-box;
}
.nma-auth-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--nma-line);
  border-radius: 4px;
}
.nma-tabs {
  display: flex;
  border-bottom: 1px solid var(--nma-line);
  margin-bottom: 22px;
  gap: 8px;
}
.nma-tab {
  flex: 1;
  background: transparent;
  color: #555;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}
.nma-tab[aria-selected="true"] {
  color: var(--nma-ink);
  border-bottom-color: var(--nma-ink);
  font-weight: 600;
}
.nma label {
  display: block;
  margin: 14px 0;
  font-size: 15px;
}
.nma input:not([type="checkbox"]),
.nma select,
.nma textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 16px;
  border: 1px solid var(--nma-line);
  border-radius: 3px;
  background: #fff;
  color: #222;
}
.nma input[type="checkbox"] {
  min-height: 0;
  margin-right: 8px;
}
.nma button,
.nma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 3px;
  border: 1px solid var(--nma-ink);
  background: var(--nma-ink);
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
}
.nma button.nma-secondary,
.nma-btn.nma-secondary {
  background: #fff;
  color: var(--nma-ink) !important;
}
.nma button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.nma-submit-full {
  width: 100%;
  margin-top: 16px;
}
.nma-social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}
.nma-btn-line {
  width: 100%;
  background: var(--nma-line-green);
  border-color: var(--nma-line-green);
  color: #fff !important;
  font-weight: 600;
}
.nma-btn-fb {
  width: 100%;
  background: var(--nma-fb-blue);
  border-color: var(--nma-fb-blue);
  color: #fff !important;
  font-weight: 600;
}
.nma-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #666;
  font-size: 13px;
}
.nma-divider::before,
.nma-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--nma-line);
}
.nma-notice {
  padding: 12px 16px;
  margin: 0 0 18px;
  border-radius: 3px;
  background: #f5f7f6;
  border-left: 4px solid var(--nma-ink);
  font-size: 14px;
  line-height: 1.6;
}
.nma-error {
  background: #fdf2f4;
  border-left-color: var(--nma-accent);
  color: #8a1c43;
}
.nma-status {
  margin: 12px 0;
  font-size: 14px;
  min-height: 22px;
}
.nma-links {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.nma-link-btn {
  background: none !important;
  border: 0 !important;
  color: var(--nma-ink) !important;
  padding: 4px 0 !important;
  min-height: 0 !important;
  font-size: 14px !important;
  text-decoration: underline !important;
}
.nma-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
}
.nma-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.nma-panel {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--nma-line);
  border-radius: 4px;
}
.nma-panel-full {
  grid-column: 1 / -1;
}
.nma-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--nma-line);
}
.nma-account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nma-line);
}
.nma-account-header h2 {
  margin: 0;
  font-size: 22px;
}
.nma-bind-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nma-line);
}
.nma-bind-row:last-child {
  border-bottom: 0;
}
.nma-order-card {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--nma-line);
  border-radius: 3px;
}
.nma-order-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nma-line);
}
.nma-order-items {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .nma-auth-card {
    padding: 20px 16px;
  }
  .nma-account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nma-panel {
    padding: 16px;
  }
}
