* {
  box-sizing: border-box;
}

:root {
  --bg: #020a1d;
  --card: rgba(4, 22, 54, 0.82);
  --blue: #168cff;
  --blue-bright: #27a8ff;
  --blue-dark: #0757c9;
  --text: #f5f8ff;
  --muted: #aab9d5;
  --border: rgba(22, 140, 255, 0.8);
  --yellow: #ffdd00;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 108, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 10% 70%, rgba(0, 92, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 90% 70%, rgba(0, 153, 255, 0.10), transparent 28rem),
    var(--bg);
  overflow-x: hidden;
}

button {
  font: inherit;
}

.page {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 38px 22px 28px;
}

.background-glow {
  position: fixed;
  z-index: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: .16;
}

.glow-one {
  top: -260px;
  left: -180px;
  background: #008cff;
}

.glow-two {
  right: -230px;
  bottom: -180px;
  background: #004eff;
}

.network {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(37, 158, 255, .7) 1px, transparent 1px),
    linear-gradient(120deg, transparent 49.7%, rgba(22, 140, 255, .08) 50%, transparent 50.3%),
    linear-gradient(60deg, transparent 49.7%, rgba(22, 140, 255, .06) 50%, transparent 50.3%);
  background-size: 105px 105px, 260px 260px, 310px 310px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero {
  text-align: center;
  padding: 0 0 28px;
}

.wallet-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  border: 3px solid var(--blue-bright);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(22, 140, 255, .32), rgba(2, 15, 42, .85));
  box-shadow:
    0 0 18px rgba(22, 140, 255, .65),
    inset 0 0 20px rgba(22, 140, 255, .18);
}

.wallet-logo span {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -3px;
  color: #0f8dff;
  text-shadow: 0 0 14px rgba(39, 168, 255, .8);
  transform: translateX(-1px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.7rem);
  line-height: 1;
  letter-spacing: -2.8px;
  font-weight: 800;
  white-space: nowrap;
}

.hero h1 span {
  color: var(--blue);
  text-shadow: 0 0 20px rgba(22, 140, 255, .35);
}

.hero-line {
  width: 70px;
  height: 2px;
  margin: 24px auto 22px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  box-shadow: 0 0 12px var(--blue);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.crypto-heading {
  margin: -8px 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.wallet-card {
  padding: 36px clamp(18px, 5vw, 40px) 30px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(5, 29, 67, .94), rgba(3, 16, 42, .86)),
    var(--card);
  box-shadow:
    0 0 40px rgba(0, 102, 255, .16),
    inset 0 0 30px rgba(0, 100, 255, .04);
  backdrop-filter: blur(14px);
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 19px;
}

.qr-code {
  width: min(285px, 72vw);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
  display: grid;
  place-items: center;
}

.qr-code img,
.qr-code canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.label {
  margin: 0 0 9px;
  text-align: center;
  color: #53b8ff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.wallet-display {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(22, 140, 255, .7);
  border-radius: 14px;
  background: rgba(2, 14, 37, .5);
  color: #f7faff;
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  font-weight: 600;
  overflow: hidden;
}

#walletText {
  overflow-wrap: anywhere;
}

.icon-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue-bright);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(22, 140, 255, .12);
}

svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  width: 100%;
  min-height: 64px;
  margin-top: 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--blue);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-outline {
  color: #27a8ff;
  background: rgba(3, 21, 51, .35);
}

.button-outline:hover {
  background: rgba(22, 140, 255, .12);
  box-shadow: 0 7px 24px rgba(0, 113, 255, .16);
}

.button-primary {
  color: white;
  border-color: #168cff;
  background: linear-gradient(135deg, #168cff, #0754c8);
  box-shadow: 0 8px 24px rgba(0, 102, 255, .25);
}

.button-primary:hover {
  box-shadow: 0 10px 30px rgba(0, 129, 255, .38);
}

.coins {
  display: flex;
  justify-content: center;
  gap: 19px;
  padding: 28px 0 22px;
}

.coin {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.btc { background: #f7931a; }
.eth { background: #5269a8; font-size: 20px; }
.usdt { background: #26a17b; }
.ltc { background: #8c8c8c; }
.bnb { background: #f3ba2f; font-size: 19px; }

.warning {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
  line-height: 1.45;
}

.warning svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--blue-bright);
}

.support {
  padding: 0 0 30px;
  text-align: center;
}

.support-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: .95rem;
}

.support-heading span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(55, 142, 255, .55));
}

.support-heading span:last-child {
  background: linear-gradient(90deg, rgba(55, 142, 255, .55), transparent);
}

.support .bmc-button-wrap {
  padding: 10px 0 4px;
}

.support-heading p {
  margin: 0;
  white-space: nowrap;
}

.bmc-button-wrap {
  min-height: 72px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  margin-top: 34px;
  text-align: center;
  color: #9aabc8;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 143, 255, .4), transparent);
}

.heart {
  margin-top: -1px;
  font-size: 34px;
  line-height: 1;
  color: var(--blue-bright);
  background: var(--bg);
  width: 50px;
  margin-left: auto;
  margin-right: auto;
}

footer p {
  margin: 14px 0 0;
  font-size: .9rem;
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border: 1px solid rgba(65, 169, 255, .65);
  border-radius: 999px;
  color: white;
  background: rgba(3, 21, 52, .94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35), 0 0 20px rgba(0, 122, 255, .2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 520px) {
  .page {
    padding: 28px 14px 22px;
  }

  .wallet-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
  }

  .hero h1 {
    letter-spacing: -1.8px;
  }

  .wallet-card {
    border-radius: 20px;
    padding-top: 26px;
  }

  .coin {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .coins {
    gap: 12px;
  }

  .warning {
    font-size: .82rem;
  }
}

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