:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #15233a;
  background: #f3f6fb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(51, 111, 238, 0.12), transparent 28rem),
    radial-gradient(circle at 95% 15%, rgba(38, 190, 157, 0.11), transparent 24rem),
    #f3f6fb;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) 16px;
}

.payment-card {
  overflow: hidden;
  border: 1px solid rgba(42, 64, 98, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(25, 50, 88, 0.13);
}

.summary,
.methods,
.selection-panel,
footer {
  padding-inline: clamp(20px, 5vw, 40px);
}

.eyebrow,
.step,
.section-heading p,
.selection-panel p,
footer {
  margin: 0;
}

.summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 30px;
}

.eyebrow,
.step {
  color: #75849a;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #13223a;
  letter-spacing: -0.035em;
}

h1 {
  margin-top: 6px;
  font-size: clamp(38px, 9vw, 58px);
  line-height: 1;
}

h1 small {
  color: #6d7c91;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0;
}

.payment-description {
  max-width: 390px;
  margin: 10px 0 0;
  color: #6d7c91;
  font-size: 13px;
  line-height: 1.45;
}

h2 {
  margin-top: 4px;
  font-size: clamp(20px, 4vw, 26px);
}

.timer {
  min-width: 172px;
  padding: 14px 16px;
  border: 1px solid #e5ebf4;
  border-radius: 16px;
  background: #f8fafe;
  text-align: right;
}

.timer-label {
  display: block;
  color: #78869a;
  font-size: 12px;
}

.timer strong {
  display: block;
  margin-top: 3px;
  color: #285fce;
  font-size: 16px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 clamp(20px, 5vw, 40px);
  padding: 13px 15px;
  border: 1px solid #ffe4a4;
  border-radius: 14px;
  color: #74520d;
  background: #fff9e9;
  font-size: 13px;
  line-height: 1.45;
}

.notice-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #e6a51b;
  box-shadow: 0 0 0 4px rgba(230, 165, 27, 0.15);
}

.methods {
  padding-top: 34px;
  padding-bottom: 30px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading > p {
  max-width: 190px;
  color: #8995a7;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.method-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 70px;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid #e2e8f1;
  border-radius: 17px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.method-button:hover {
  border-color: #b8c9ea;
  box-shadow: 0 7px 18px rgba(33, 72, 133, 0.08);
  transform: translateY(-1px);
}

.method-button:focus-visible {
  outline: 3px solid rgba(49, 111, 240, 0.25);
  outline-offset: 2px;
}

.method-button.is-selected {
  border-color: #316ff0;
  box-shadow: 0 0 0 3px rgba(49, 111, 240, 0.1);
}

.method-button.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.coin {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.coin img,
.selection-icon img {
  display: block;
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.coin-usdt { background: #25a788; }
.coin-btc { background: #f3941b; }
.coin-ltc { background: #596b86; }
.coin-eth { background: #627eea; }
.coin-bnb { background: #f3ba2f; }
.coin-trx { background: #e64242; }
.coin-ton { background: #2899e8; }

.coin-bnb img,
.network-bnb img,
.selection-icon.coin-bnb img {
  filter: none;
}

.network-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.network-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
}

.network-icon img {
  display: block;
  width: 11px;
  height: 11px;
  filter: brightness(0) invert(1);
}

.network-tron { background: #e64242; }
.network-eth { background: #627eea; }
.network-bnb { background: #f3ba2f; }
.network-ton { background: #2899e8; }

.method-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.method-copy strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-copy small {
  color: #7e8b9e;
  font-size: 12px;
}

.method-status {
  padding: 5px 7px;
  border-radius: 999px;
  color: #8793a5;
  background: #f1f4f8;
  font-size: 10px;
  font-weight: 750;
}

.method-status.available {
  color: #2362d4;
  background: #eaf1ff;
}

.selection-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 clamp(20px, 5vw, 40px) 32px;
  padding-block: 20px;
  border: 1px solid #dce6f7;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7faff, #eef5ff);
}

.selection-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #316ff0;
  font-size: 24px;
  font-weight: 800;
}

.selection-panel h2 {
  font-size: 20px;
}

.selection-panel p:last-child {
  margin-top: 6px;
  color: #67768b;
  font-size: 13px;
  line-height: 1.45;
}

footer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid #edf1f7;
  color: #7d899b;
  font-size: 12px;
  line-height: 1.5;
}

.lock {
  color: #29a486;
  font-size: 9px;
  line-height: 18px;
}

@media (max-width: 620px) {
  .page-shell {
    padding: 0;
  }

  .payment-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .summary,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary {
    gap: 18px;
  }

  .timer {
    width: 100%;
    text-align: left;
  }

  .section-heading > p {
    display: none;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
