* {
  box-sizing: border-box;
}
:root {
  font-family: Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: #14254b;
  background: #eef4ff;
  font-synthesis: none;
  letter-spacing: 0;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e5efff 0%, #f6f9ff 48%, #e6efff 100%);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #94b4ff;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.exchange {
  width: 100%;
  max-width: 886px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 65px #6087ce26;
}
.hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: linear-gradient(112deg, #f3f7ff 20%, #e3edff 62%, #bdd4ff 100%);
  padding: 38px 56px;
}
.metrics {
  position: relative;
  display: flex;
  gap: 28px;
  z-index: 1;
  width: max-content;
  max-width: 100%;
}
.metric {
  display: flex;
  align-items: center;
  gap: 15px;
}
.metric + .metric {
  border-left: 1px solid #d3dff6;
  padding-left: 28px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e6eeff;
  color: #3469ff;
  font-size: 26px;
}
.metric-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.metric strong {
  display: block;
  font-size: 25px;
  font-weight: 700;
}
.metric .service-value {
  font-size: 21px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  max-width: 70%;
}
h1 {
  font-size: 54px;
  line-height: 1.18;
  margin: 0 0 12px;
  font-weight: 750;
}
.hero-copy p {
  font-size: 21px;
  color: #7181a5;
  margin: 0;
}
.hero-actions { position: absolute; right: 36px; top: 132px; z-index: 2; }
.buff-button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; border: 1px solid #b8caff; border-radius: 999px; padding: 4px 7px 4px 12px; color: #294274; background: rgba(255,255,255,.9); box-shadow: 0 7px 20px #6087ce24; font-size: 13px; font-weight: 650; transition: transform .2s ease, box-shadow .2s ease; }
.buff-button:hover { transform: translateY(-1px); box-shadow: 0 9px 24px #6087ce36; }
.buff-button:active { transform: scale(.98); }
.buff-spark { font-size: 16px; line-height: 1; }
.buff-button > strong { min-width: 34px; border-radius: 999px; padding: 5px 8px; color: #3267ff; background: #eef3ff; font: 700 11px ui-monospace, monospace; text-align: center; }
.buff-burst { position: absolute; right: 8px; top: 2px; pointer-events: none; color: #3267ff; font-size: 12px; font-weight: 800; opacity: 0; white-space: nowrap; }
.buff-burst.is-visible { animation: buff-rise 1.1s ease-out forwards; }
@keyframes buff-rise { 0% { opacity: 0; transform: translateY(0) scale(.9); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scale(1.05); } }
.buff-flower { position: fixed; z-index: 60; pointer-events: none; color: #e84d69; font-size: 17px; line-height: 1; opacity: 0; animation: flower-float 1.25s cubic-bezier(.16,.78,.28,1) forwards; }
@keyframes flower-float { 0% { opacity: 0; transform: translate(-50%, 8px) rotate(0) scale(.65); } 14% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--flower-drift)), -72px) rotate(var(--flower-tilt)) scale(1.05); } }
.online-presence { position: fixed; z-index: 30; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid #d9e2f4; border-radius: 999px; padding: 7px 12px; color: #667086; background: rgba(255,255,255,.94); box-shadow: 0 11px 30px #32466b1f; backdrop-filter: blur(12px); font-size: 12px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #36b37e; box-shadow: 0 0 0 4px #36b37e20; }
.online-presence strong { min-width: 18px; color: #3267ff; font: 700 13px ui-monospace, monospace; text-align: right; }
.hero-art {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 355px;
  height: 280px;
  object-fit: contain;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 90%, transparent),
    linear-gradient(to bottom, transparent, #000 16%, #000 88%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.content {
  padding: 40px 44px 24px;
}
.steps {
  display: flex;
  list-style: none;
  margin: 0 0 42px;
  padding: 0;
  justify-content: space-between;
}
.steps li {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: #7b88a6;
}
.steps li:not(:last-child):after {
  content: '';
  position: absolute;
  height: 3px;
  background: #dce4f3;
  left: calc(50% + 44px);
  right: calc(-50% + 44px);
  top: 21px;
}
.step-number {
  width: 44px;
  height: 44px;
  border: 2px solid #d0daee;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f9fbff;
  color: #405479;
  font-size: 21px;
}
.steps li.active {
  color: #2e64ff;
}
.active .step-number {
  background: #2e64ff;
  color: white;
  border-color: #2e64ff;
  box-shadow: 0 4px 12px #2e64ff25;
}
.steps li.complete {
  color: #36745e;
}
.complete .step-number {
  border-color: #b8dfd0;
  color: #238259;
  background: #effaf4;
}
.steps li.complete:after {
  background: #adc8ff;
}
.stage {
  background: linear-gradient(120deg, #f2f6ff, #f6f9ff);
  border-radius: 18px;
  padding: 30px;
  min-height: 290px;
}
h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
h2 i {
  color: #3267ff;
  font-size: 28px;
}
.description {
  font-size: 17px;
  line-height: 1.65;
  color: #7383a4;
  margin: 10px 0 25px;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  border: 2px solid #d5e1fc;
  border-radius: 12px;
  background: #ffffffdb;
  height: 68px;
  transition: border-color 0.2s;
}
.input-wrap:focus-within {
  border-color: #5380ff;
  box-shadow: 0 0 0 3px #3267ff12;
}
.input-wrap i {
  color: #b1bed8;
  font-size: 24px;
}
input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #203253;
  font-size: 20px;
}
input::placeholder {
  color: #a4b2cd;
}
.primary {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 36px;
  background: #2f63ff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  font-size: 20px;
  margin-top: 24px;
  padding: 16px 24px;
  transition: background 0.2s, box-shadow 0.2s;
}
.primary:hover:not(:disabled) {
  background: #2455ed;
  box-shadow: 0 7px 20px #3267ff25;
}
.primary i {
  font-size: 19px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}
.footer > span {
  height: 12px;
  width: 1px;
  background: #dce4f1;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: none;
  color: #8190ad;
  font-size: 13px;
  padding: 5px;
}
.text-button:hover {
  color: #2e64ff;
}
.buy-cdk-button {
  color: #3267ff;
  text-decoration: none;
}
.buy-cdk-button:hover {
  color: #1749d1;
}
.account-copy {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  text-align: left;
  border: 1px solid #cbdafb;
  border-radius: 12px;
  background: white;
  padding: 22px;
  color: #2457cc;
}
.account-copy span {
  font-size: 19px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.account-copy i {
  font-size: 21px;
  flex-shrink: 0;
}
.subtle {
  font-size: 13px;
  color: #8190ad;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.callback {
  margin-top: 22px;
  color: #7d8cab;
  font-size: 13px;
}
.callback summary {
  cursor: pointer;
  width: fit-content;
}
.callback label {
  display: block;
  margin: 16px 0 6px;
}
.callback input {
  background: white;
  border: 1px solid #d5e1fc;
  border-radius: 8px;
  padding: 13px;
  font-size: 14px;
}
.secondary {
  border: 1px solid #ccdafa;
  border-radius: 8px;
  background: white;
  color: #3164e0;
  padding: 10px 18px;
  margin-top: 14px;
  font-size: 14px;
}
.result-stage {
  text-align: center;
}
.result-stage h2 {
  justify-content: center;
}
.result-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3ecff;
  color: #3267ff;
  font-size: 38px;
}
.result-icon.running i {
  animation: spin 1.2s linear infinite;
}
.result-icon.success {
  color: #23a071;
  background: #e5f6ee;
}
.result-icon.failed {
  color: #dc5968;
  background: #ffebee;
}
.result-icon.waiting {
  color: #c68c23;
  background: #fff3da;
}
.result-stage .description {
  overflow-wrap: anywhere;
}
.working-bar {
  height: 5px;
  overflow: hidden;
  background: #dee8ff;
  border-radius: 5px;
  margin: 22px 0;
}
.working-bar span {
  display: block;
  width: 32%;
  height: 100%;
  background: #4676ff;
  border-radius: 5px;
  animation: loading 1.6s ease-in-out infinite;
}
.task-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #8a98af;
  font-size: 12px;
}
.history-panel {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid #e8edf5;
}
.history-panel h2 {
  font-size: 19px;
}
.table-wrap {
  width: 100%;
}
table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  color: #7f8da7;
  font-weight: 500;
  background: #f6f8fc;
}
th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid #ecf0f7;
  overflow-wrap: anywhere;
}
th:first-child {
  width: 22%;
}
th:nth-child(2) {
  width: 45%;
}
.status {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.success {
  color: #239969;
}
.failed {
  color: #d95566;
}
.waiting {
  color: #c48a1d;
}
.running {
  color: #3267ff;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  font-size: 12px;
  margin-top: 12px;
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 40px);
  background: white;
  padding: 16px 22px;
  border-radius: 12px;
  border: 1px solid #e2eafa;
  box-shadow: 0 12px 45px #34578e26;
  color: #455370;
  font-size: 14px;
}
.toast i {
  color: #d08a2b;
}
.toast.ok i {
  color: #24a573;
}
dialog {
  padding: 0;
  border: 0;
  border-radius: 16px;
  max-width: min(760px, 92vw);
  max-height: 90vh;
  box-shadow: 0 30px 80px #1a335a40;
}
dialog::backdrop {
  background: #152c5266;
}
dialog {
  width: min(520px, calc(100vw - 32px));
  overflow: visible;
  background: #fff;
}
.guide-content { padding: 34px 34px 30px; }
.guide-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.guide-heading h2 { font-size: 24px; margin: 0; }
.guide-heading p { margin: 4px 0 0; color: #8190ad; font-size: 13px; }
.guide-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #3267ff; background: #e8efff; font-size: 24px; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 19px; }
.guide-list li { display: flex; gap: 14px; align-items: flex-start; }
.guide-list li > span { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #3267ff; font-weight: 700; font-size: 14px; }
.guide-list strong { display: block; color: #24375c; font-size: 16px; margin: 3px 0 4px; }
.guide-list p { margin: 0; color: #7888a7; font-size: 13px; line-height: 1.65; }
.guide-note { display: flex; gap: 9px; margin-top: 25px; padding: 12px 14px; border: 1px solid #dce7ff; border-radius: 10px; color: #6d7fa2; background: #f5f8ff; font-size: 12px; line-height: 1.6; }
.guide-note i { color: #4b76e8; margin-top: 3px; }
.guide-note p { margin: 0; }
.guide-note mark {
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 750;
}
.guide-eligibility {
  border-color: #b9e6cf;
  color: #27764e;
  background: linear-gradient(135deg, #effcf4, #e4f8ec);
}
.guide-eligibility i { color: #1eaa66; }
.eligibility-highlight {
  color: #16834b;
  background: #c9f2d9;
}
.guide-rewards {
  border-color: #f1d18f;
  color: #8a641c;
  background: linear-gradient(135deg, #fffaf0, #fff3d6);
}
.guide-rewards i { color: #d89516; }
.reward-highlight {
  color: #9b5f00;
  background: #ffe2a3;
  font-size: 1.05em;
}
.dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px -48px 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e4eaf5;
  background: white;
  color: #63718d;
  z-index: 1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loading {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(420%);
  }
}
@media (min-width: 701px) and (max-height: 930px) {
  body {
    padding: 16px 24px;
  }
  .hero {
    min-height: 220px;
    padding: 24px 50px;
  }
  .metric-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .metric strong {
    font-size: 22px;
  }
  .metric .service-value {
    font-size: 18px;
  }
  .hero-copy {
    margin-top: 25px;
  }
  h1 {
    font-size: 45px;
    margin-bottom: 7px;
  }
  .hero-copy p {
    font-size: 18px;
  }
  .hero-art {
    width: 300px;
    height: 230px;
    bottom: 0;
  }
  .content {
    padding: 22px 44px 14px;
  }
  .steps {
    margin-bottom: 20px;
  }
  .step-number {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .steps li {
    gap: 6px;
    font-size: 14px;
  }
  .steps li:not(:last-child):after {
    top: 18px;
  }
  .stage {
    min-height: 225px;
    padding: 22px 30px;
  }
  h2 {
    font-size: 22px;
  }
  h2 i {
    font-size: 24px;
  }
  .description {
    margin: 6px 0 16px;
    font-size: 15px;
  }
  .input-wrap {
    height: 56px;
  }
  .primary {
    min-height: 54px;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 17px;
  }
  .footer {
    margin-top: 12px;
  }
}
@media (max-width: 700px) {
  .hero-actions { position: relative; right: auto; top: auto; margin-top: 18px; }
  .online-presence { right: 10px; bottom: 10px; }
  body {
    padding: 28px 16px;
  }
  .exchange {
    border-radius: 20px;
  }
  .hero {
    padding: 28px;
    min-height: 260px;
  }
  .hero-art {
    width: 250px;
    height: 205px;
    right: -25px;
    bottom: 10px;
    opacity: 0.72;
  }
  .metrics {
    gap: 16px;
  }
  .metric {
    gap: 8px;
  }
  .metric + .metric {
    padding-left: 16px;
  }
  .metric-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric strong {
    font-size: 21px;
  }
  .metric .service-value {
    font-size: 17px;
  }
  .hero-copy {
    margin-top: 40px;
    max-width: 80%;
  }
  h1 {
    font-size: 40px;
  }
  .hero-copy p {
    font-size: 15px;
    max-width: 210px;
  }
  .content {
    padding: 28px 24px 20px;
  }
  .steps {
    margin-bottom: 28px;
  }
  .steps li {
    font-size: 14px;
  }
  .step-number {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .steps li:not(:last-child):after {
    top: 18px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
  }
  .stage {
    padding: 24px 20px;
    min-height: 270px;
    border-radius: 14px;
  }
  h2 {
    font-size: 22px;
    gap: 12px;
  }
  h2 i {
    font-size: 24px;
  }
  .description {
    font-size: 14px;
    margin-bottom: 22px;
  }
  .input-wrap {
    height: 58px;
    padding: 0 16px;
    gap: 12px;
  }
  input {
    font-size: 17px;
  }
  .primary {
    min-height: 58px;
    font-size: 17px;
    margin-top: 20px;
  }
  .account-copy {
    padding: 18px 14px;
  }
  .account-copy span {
    font-size: 16px;
  }
}
@media (max-width: 390px) {
  .hero {
    padding: 24px 20px;
  }
  .content {
    padding: 24px 16px 18px;
  }
  .hero-art {
    right: -55px;
    opacity: 0.45;
  }
  .metric-icon {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
  .metrics {
    gap: 12px;
  }
  .metric + .metric {
    padding-left: 12px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .footer {
    gap: 12px;
  }
  .guide-content {
    padding: 28px 22px 24px;
  }
  .guide-heading h2 {
    font-size: 21px;
  }
}
@media (max-width: 700px) and (max-height: 760px) {
  body {
    padding: 12px 16px;
  }
  .hero {
    min-height: 210px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .hero-art {
    height: 175px;
  }
  .hero-copy {
    margin-top: 25px;
  }
  .content {
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .steps {
    margin-bottom: 20px;
  }
  .steps li {
    gap: 5px;
  }
  .stage {
    min-height: 240px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .footer {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
