.exchange-confirm-screen {
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 14px calc(150px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #eef6ff 0, #f6f9fd 42%, #f4f7fb 100%);
  color: #0c213d;
}

.exchange-confirm-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 14px;
}

.exchange-confirm-topbar h1 {
  margin: 0;
  max-width: calc(100% - 84px);
  overflow: hidden;
  color: #071c38;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-confirm-back {
  position: absolute;
  left: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #17324f;
  text-decoration: none;
}

.exchange-confirm-platform,
.exchange-confirm-summary,
.exchange-confirm-details,
.exchange-confirm-notice,
.exchange-confirm-empty {
  border: 1px solid #e3ebf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(47, 90, 140, .07);
}

.exchange-confirm-platform {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 15px;
}

.exchange-confirm-logo {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.exchange-confirm-logo.violet,
.exchange-confirm-logo.purple { background: linear-gradient(135deg, #7e57ff, #aa4ff3); }
.exchange-confirm-logo.green { background: linear-gradient(135deg, #10b98c, #18a775); }
.exchange-confirm-logo.blue { background: linear-gradient(135deg, #229cf2, #2476ea); }
.exchange-confirm-logo.orange { background: linear-gradient(135deg, #ff9c32, #f26b2a); }
.exchange-confirm-logo.cyan { background: linear-gradient(135deg, #11b9c8, #0b8fe5); }
.exchange-confirm-logo.navy { background: linear-gradient(135deg, #204f93, #152e63); }
.exchange-confirm-logo.rose { background: linear-gradient(135deg, #f14f86, #b949d4); }

.exchange-confirm-platform > div:nth-child(2) {
  min-width: 0;
}

.exchange-confirm-platform strong,
.exchange-confirm-platform span {
  display: block;
}

.exchange-confirm-platform strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-confirm-platform span {
  margin-top: 4px;
  color: #7890aa;
  font-size: 12px;
}

.exchange-confirm-platform em {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eaf8f3;
  color: #00a772;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.exchange-confirm-summary {
  margin-top: 12px;
  padding: 17px 15px 14px;
}

.exchange-confirm-summary h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

.exchange-confirm-flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: end;
}

.exchange-confirm-flow > i {
  align-self: center;
  color: #9ab0c8;
  font-size: 22px;
  font-style: normal;
  text-align: center;
}

.exchange-confirm-flow .right {
  text-align: right;
}

.exchange-confirm-flow span,
.exchange-confirm-flow strong {
  display: block;
}

.exchange-confirm-flow span {
  color: #748ba4;
  font-size: 12px;
}

.exchange-confirm-flow strong {
  margin-top: 6px;
  color: #071b35;
  font-size: 25px;
  line-height: 1;
}

.exchange-confirm-flow strong small {
  color: #345b89;
  font-size: 10px;
  font-weight: 600;
}

.exchange-confirm-gain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 11px;
  background: #eaf9f3;
  color: #00a76f;
  font-size: 13px;
}

.exchange-confirm-gain b,
.exchange-confirm-gain strong {
  font-weight: 800;
}

.exchange-confirm-details {
  margin-top: 12px;
  padding: 5px 15px;
}

.exchange-confirm-details dl {
  margin: 0;
}

.exchange-confirm-details dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #edf2f7;
}

.exchange-confirm-details dl > div:last-child {
  border-bottom: 0;
}

.exchange-confirm-details dt {
  flex: 0 0 auto;
  color: #758ba3;
  font-size: 13px;
}

.exchange-confirm-details dd {
  margin: 0;
  color: #17314f;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.exchange-confirm-details dd.positive {
  color: #00a870;
}

.exchange-confirm-details .address {
  align-items: flex-start;
  padding: 13px 0;
}

.exchange-confirm-details .address dd {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.exchange-confirm-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 13px 14px;
  color: #5d7898;
}

.exchange-confirm-notice svg {
  flex: 0 0 auto;
  color: #187df2;
}

.exchange-confirm-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.exchange-confirm-footer {
  position: fixed;
  z-index: 15;
  right: max(0px, calc((100vw - 430px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 430px) / 2));
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #e1e9f3;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -8px 25px rgba(28, 72, 125, .08);
  backdrop-filter: blur(12px);
}

.exchange-confirm-footer button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #168cff, #096fe8);
  box-shadow: 0 9px 20px rgba(21, 125, 244, .25);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.exchange-confirm-footer button:disabled {
  opacity: .65;
}

.exchange-confirm-footer small {
  display: block;
  margin-top: 8px;
  color: #8a9aae;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.exchange-confirm-error {
  margin: 0 0 8px;
  color: #e74b55;
  font-size: 12px;
  text-align: center;
}

.exchange-confirm-empty {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 30px;
  padding: 40px 20px;
  color: #667e99;
  text-align: center;
}

.exchange-confirm-empty a {
  padding: 11px 18px;
  border-radius: 12px;
  background: #137ff3;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 370px) {
  .exchange-confirm-screen { padding-right: 11px; padding-left: 11px; }
  .exchange-confirm-platform { grid-template-columns: 44px minmax(0, 1fr); }
  .exchange-confirm-platform em { grid-column: 2; justify-self: start; }
  .exchange-confirm-flow strong { font-size: 22px; }
}
