/* Swap USDT → AMT — conversion console */

.swap-page {
  max-width: none;
  width: 100%;
}

.swap-intro {
  margin-bottom: 1.1rem;
}

.swap-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.swap-crumb a:hover { color: var(--brand); }

.swap-crumb i,
.swap-crumb svg {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.5;
}

.swap-crumb strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.swap-intro__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.swap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, #fff);
}

.swap-kicker i,
.swap-kicker svg {
  width: 13px !important;
  height: 13px !important;
}

.swap-intro .page-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.swap-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.swap-rate-pill {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
  min-width: 220px;
}

.swap-rate-pill small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.swap-rate-pill strong {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.swap-layout {
  display: grid;
  gap: 1rem;
}

.swap-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.swap-info__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.swap-info__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.swap-info__ico i,
.swap-info__ico svg {
  width: 18px !important;
  height: 18px !important;
}

.swap-info__card small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.swap-info__card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-all;
}

.swap-info__action {
  margin-left: auto;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.swap-info__action:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

/* Console */
.swap-console {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
  padding: 1.25rem 1.25rem 1.35rem;
}

.swap-pair {
  position: relative;
  display: grid;
  gap: 0.65rem;
}

.swap-leg {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f9fafb;
  padding: 0.95rem 1rem 1.05rem;
}

.swap-leg--to {
  background: linear-gradient(180deg, #e8f8f2, #f9fafb);
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
}

.swap-leg__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.swap-leg__top span {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.swap-leg__top em {
  font-style: normal;
  font-size: 0.78rem;
}

.swap-leg__top b {
  color: var(--brand-deep);
  font-weight: 600;
}

.swap-leg__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.swap-token {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.swap-token__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.swap-token__mark--usdt {
  background: linear-gradient(145deg, #26a17b, #1a7a5c);
}

.swap-token__mark--amt {
  background: linear-gradient(145deg, var(--brand-mid), var(--brand-deep));
}

.swap-token__mark--amt i,
.swap-token__mark--amt svg {
  width: 20px !important;
  height: 20px !important;
}

.swap-token strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.swap-token small {
  font-size: 0.74rem;
  color: var(--muted);
}

.swap-amount {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.swap-amount input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: right;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-family: "Poppins", sans-serif !important;
  padding: 0;
}

.swap-amount input::placeholder {
  color: #9ca3af;
  font-weight: 600;
  font-size: 1.15rem;
}

.swap-amount output {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
  line-height: 1.2;
}

.swap-switch {
  display: flex;
  justify-content: center;
  margin: -0.15rem 0;
  position: relative;
  z-index: 1;
}

.swap-switch span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.swap-switch i,
.swap-switch svg {
  width: 18px !important;
  height: 18px !important;
}

.swap-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.05rem 0 1.15rem;
}

.swap-summary > div {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.swap-summary span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.swap-summary strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.swap-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep));
  box-shadow: 0 12px 26px rgba(0, 166, 126, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swap-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 166, 126, 0.34);
}

.swap-submit i,
.swap-submit svg {
  width: 17px !important;
  height: 17px !important;
}

@media (max-width: 991.98px) {
  .swap-info {
    grid-template-columns: 1fr;
  }

  .swap-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .swap-leg__box {
    flex-direction: column;
    align-items: stretch;
  }

  .swap-amount,
  .swap-amount input,
  .swap-amount output {
    text-align: left;
  }

  .swap-info__card {
    flex-wrap: wrap;
  }

  .swap-info__action {
    margin-left: 0;
  }
}
