.amx-exchange {
  --amx-primary: #ff156f;
  --amx-primary-hover: #ec0f63;
  --amx-text: #1a2c37;
  --amx-heading: #172331;
  --amx-muted: #60717d;
  --amx-border: #d8dde1;
  --amx-background: #ffffff;
  --amx-soft: #f6f8fa;
  --amx-error: #b4190f;
  --amx-radius: 10px;
  --amx-font: var(--am-font-family, "Nunito Sans", "Helvetica Neue", Arial, sans-serif);
  max-width: 920px;
  margin: 0 auto;
  color: var(--amx-text);
  font-family: var(--amx-font);
}

.amx-exchange * {
  box-sizing: border-box;
}

.amx-panel {
  width: 100%;
  margin: 0 auto;
  padding: 30px 28px;
  border: 1px solid rgba(26, 44, 55, 0.06);
  border-radius: var(--amx-radius);
  background: var(--amx-background);
  box-shadow: 0 18px 45px rgba(23, 35, 49, 0.12);
}

.amx-access-panel {
  max-width: 362px;
  text-align: center;
}

.amx-dashboard-panel {
  max-width: 880px;
}

.amx-heading {
  margin-bottom: 22px;
}

.amx-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 21, 111, 0.09);
  color: var(--amx-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.amx-panel-title {
  margin: 0 0 8px;
  color: var(--amx-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.amx-access-panel .amx-panel-title {
  font-size: 20px;
}

.amx-panel-text,
.amx-helper,
.amx-targets-note {
  margin: 0;
  color: var(--amx-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.amx-helper {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--amx-soft);
}

.amx-form {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  text-align: left;
}

.amx-form label {
  color: var(--amx-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.amx-required {
  color: var(--amx-error);
}

.amx-form input,
.amx-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--amx-border);
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  color: var(--amx-text);
  font-family: var(--amx-font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.amx-form select {
  min-height: 44px;
}

.amx-form input:focus,
.amx-form select:focus {
  border-color: var(--amx-primary);
  box-shadow: 0 0 0 3px rgba(255, 21, 111, 0.12);
}

.amx-form button,
.amx-target-card button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 9px 16px;
  background: var(--amx-primary);
  color: #fff;
  font-family: var(--amx-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.amx-form button {
  width: 100%;
  min-height: 36px;
  margin-top: 14px;
}

.amx-form button:hover,
.amx-target-card button:hover {
  background: var(--amx-primary-hover);
  box-shadow: 0 8px 18px rgba(255, 21, 111, 0.22);
}

.amx-form button:active,
.amx-target-card button:active {
  transform: translateY(1px);
}

.amx-notice {
  max-width: 880px;
  margin: 0 auto 16px;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 21, 111, 0.08);
  color: var(--amx-text);
  font-size: 14px;
  line-height: 1.45;
}

.amx-notice-error {
  background: #fee2e2;
  color: #991b1b;
}

.amx-targets {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.amx-targets h3 {
  margin: 0;
  color: var(--amx-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.amx-targets-note {
  margin-bottom: 4px;
}

.amx-target-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: 1px solid var(--amx-border);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 35, 49, 0.04);
}

.amx-target-copy {
  min-width: 0;
}

.amx-target-label,
.amx-target-card strong,
.amx-target-card span {
  display: block;
}

.amx-target-label {
  margin-bottom: 4px;
  color: var(--amx-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.amx-target-card strong {
  color: var(--amx-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.amx-target-card span:not(.amx-target-label) {
  margin-top: 2px;
  color: var(--amx-muted);
  font-size: 13px;
  line-height: 1.45;
}

.amx-target-card button {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .amx-panel {
    padding: 24px 20px;
  }

  .amx-access-panel {
    max-width: 100%;
  }

  .amx-target-card {
    align-items: stretch;
    flex-direction: column;
  }

  .amx-target-card button {
    width: 100%;
  }
}
