:root {
  --wallet-blue: #0057ff;
  --wallet-blue-dark: #003fc2;
  --wallet-text: #131313;
  --wallet-muted: #637381;
  --wallet-line: #e7ecf2;
  --wallet-surface: #f4f8fb;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body.wallet-page {
  min-width: 320px;
  margin: 0;
  color: var(--wallet-text);
  background: #fff;
  font-family: __Inter_441a4b, Inter, Arial, sans-serif;
  font-size: 1.6rem;
}

.wallet-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wallet-header {
  height: 8.2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(19, 19, 19, .08);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
}

.wallet-container {
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto;
}

.wallet-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--wallet-text);
  font-size: 2.1rem;
  font-weight: 700;
  text-decoration: none;
}

.wallet-brand img {
  width: 2.4rem;
  height: 3.3rem;
}

.wallet-back {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1.5rem .7rem .7rem;
  color: var(--wallet-text);
  border: 1px solid var(--wallet-line);
  border-radius: 10rem;
  background: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 .6rem 2rem rgba(20, 42, 78, .06);
  transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wallet-back:hover {
  color: var(--wallet-blue);
  border-color: rgba(0, 87, 255, .35);
  box-shadow: 0 .8rem 2.4rem rgba(0, 87, 255, .1);
  transform: translateY(-1px);
}

.wallet-back__icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wallet-blue);
  color: #fff;
}

.wallet-back__icon svg {
  width: 1.8rem;
  height: 1.8rem;
}

.wallet-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 7rem 0;
}

.wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48rem;
  gap: 9rem;
  align-items: center;
}

.wallet-copy h1 {
  max-width: 64rem;
  margin: 0;
  font-size: clamp(4rem, 5.6vw, 7.2rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .98;
}

.wallet-copy h1 span {
  color: var(--wallet-blue);
}

.wallet-copy__lead {
  max-width: 58rem;
  margin: 2.8rem 0 3.4rem;
  color: var(--wallet-muted);
  font-size: 1.9rem;
  line-height: 1.55;
}

.wallet-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wallet-features li {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.3rem;
  border-radius: 1.2rem;
  background: var(--wallet-surface);
  font-size: 1.4rem;
  font-weight: 500;
}

.wallet-features svg {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--wallet-blue);
}

.wallet-panel {
  position: relative;
  padding: 3.2rem;
  overflow: hidden;
  border: 1px solid rgba(19, 19, 19, .08);
  border-radius: 3.2rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3rem 8rem rgba(20, 42, 78, .14);
}

.wallet-panel__step {
  position: relative;
  color: var(--wallet-blue);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wallet-panel h2 {
  position: relative;
  margin: 1rem 0 .8rem;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -.035em;
}

.wallet-panel__intro {
  position: relative;
  margin: 0 0 2.4rem;
  color: var(--wallet-muted);
  font-size: 1.5rem;
  line-height: 1.5;
}

.network-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin: 0 0 1.4rem;
}

.network-tab {
  padding: 1rem .6rem;
  border: 1px solid var(--wallet-line);
  border-radius: 1.2rem;
  background: #fff;
  color: var(--wallet-muted);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.network-tab:hover {
  border-color: #c9d4e3;
  color: var(--wallet-text);
}

.network-tab.is-active {
  border-color: var(--wallet-blue);
  background: rgba(0, 87, 255, .06);
  color: var(--wallet-blue);
}

.wallet-list {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 2rem;
  padding: .6rem 1.2rem;
  color: #ff4d4f;
  border: 1px solid rgba(255, 77, 79, .28);
  border-radius: 10rem;
  background: rgba(255, 77, 79, .08);
  font-size: 1.2rem;
  font-weight: 600;
}

.wallet-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem;
  color: var(--wallet-text);
  border: 1px solid var(--wallet-line);
  border-radius: 1.8rem;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wallet-option:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.wallet-option:disabled:hover,
.wallet-option.is-unavailable:hover {
  border-color: var(--wallet-line);
  box-shadow: none;
  transform: none;
}

.wallet-option.is-unavailable .wallet-option__description {
  color: #b42318;
}

.wallet-option:hover {
  border-color: rgba(0, 87, 255, .35);
  box-shadow: 0 1.2rem 3rem rgba(0, 87, 255, .09);
  transform: translateY(-2px);
}

.wallet-option img {
  width: 5.6rem;
  height: 5.6rem;
  flex: 0 0 auto;
}

.wallet-option__content {
  min-width: 0;
  flex: 1;
}

.wallet-option__name {
  display: block;
  margin-bottom: .4rem;
  font-size: 1.7rem;
  font-weight: 650;
}

.wallet-option__description {
  display: block;
  color: var(--wallet-muted);
  font-size: 1.3rem;
}

.wallet-option__arrow {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wallet-surface);
  color: var(--wallet-blue);
}

.wallet-option__arrow svg {
  width: 1.8rem;
  height: 1.8rem;
}

.wallet-notice {
  display: flex;
  gap: 1.1rem;
  margin-top: 2.2rem;
  padding: 1.4rem;
  color: #4e5c69;
  border-radius: 1.4rem;
  background: #f6f8fa;
  font-size: 1.25rem;
  line-height: 1.5;
}

.wallet-notice svg {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  color: var(--wallet-blue);
}

.wc-qr-slot {
  margin-top: 1.6rem;
}

.wc-qr-image {
  display: block;
  margin: 0 auto;
  border-radius: 1.2rem;
  background: #fff;
  padding: .8rem;
  box-shadow: 0 1rem 2.8rem rgba(20, 42, 78, .08);
}

.wc-qr-hint {
  margin-top: 1.2rem !important;
}

.wc-qr-timer {
  margin: 1rem 0 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--wallet-blue);
  letter-spacing: .02em;
}

.wc-qr-timer.is-warn {
  color: #d97706;
}

.wc-qr-timer.is-expired {
  color: var(--wallet-muted);
}

.wc-qr-verify {
  margin: .8rem 0 0;
  font-size: 1.2rem;
  color: var(--wallet-muted);
  font-weight: 600;
}

.wc-qr-verify.is-verified {
  color: #059669;
}

.wc-qr-verify.is-verified::before {
  content: '✓ ';
}

.wallet-cancel-btn {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  padding: 1.2rem 1.6rem;
  color: var(--wallet-muted);
  border: 1px solid var(--wallet-line);
  border-radius: 1.4rem;
  background: #fff;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.wallet-cancel-btn:hover {
  border-color: #c9d4e3;
  color: var(--wallet-text);
}

.wallet-loader {
  width: 4.5rem;
  height: 4.5rem;
  margin: 2rem auto 0;
  border: 3px solid rgba(0, 87, 255, .12);
  border-top-color: var(--wallet-blue);
  border-radius: 50%;
  animation: wallet-spin 1s linear infinite;
}

@keyframes wallet-spin {
  to { transform: rotate(360deg); }
}

.wallet-result__title {
  color: #10b981;
}

.wallet-result__title.is-fail {
  color: #ef4444;
}

.wallet-result__note {
  margin: -1.2rem 0 2rem;
  color: #b45309;
  font-size: 1.35rem;
  line-height: 1.5;
}

.wallet-inline-error {
  margin: 1.6rem 0 0;
  padding: 1.2rem 1.4rem;
  color: #b91c1c;
  border-radius: 1rem;
  background: #fef2f2;
  font-size: 1.35rem;
  line-height: 1.45;
}

.wallet-result__addr {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  color: var(--wallet-text);
  border-radius: 1rem;
  background: var(--wallet-surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.4rem;
  word-break: break-all;
}

.wallet-progress + .wallet-progress {
  margin-top: 1.6rem;
}

.wallet-progress__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: .8rem;
  font-size: 1.3rem;
}

.wallet-progress__bg {
  height: .8rem;
  overflow: hidden;
  border-radius: 10rem;
  background: #e8edf3;
}

.wallet-progress__fill {
  width: 0;
  height: 100%;
  border-radius: 10rem;
  background: var(--wallet-blue);
  transition: width 1.5s ease;
}

.wallet-progress__fill.is-risk {
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.wallet-result__actions {
  display: grid;
  gap: 1rem;
  margin-top: 2.4rem;
}

.wallet-report-btn {
  width: 100%;
  padding: 1.6rem;
  color: var(--wallet-blue);
  border: 1.5px solid rgba(37, 99, 235, .35);
  border-radius: 1.6rem;
  background: #eff6ff;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.wallet-report-btn:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, .55);
}

.wallet-done-btn {
  width: 100%;
  margin-top: 0;
  padding: 1.6rem;
  color: #fff;
  border: none;
  border-radius: 1.6rem;
  background: var(--wallet-blue);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

.wallet-done-btn:hover {
  background: var(--wallet-blue-dark);
}

.wallet-retry-btn {
  width: 100%;
  padding: 1.6rem;
  color: #0f172a;
  border: 1.5px solid rgba(15, 23, 42, .18);
  border-radius: 1.6rem;
  background: #fff;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.wallet-retry-btn:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .32);
}

.wallet-footer {
  padding: 2.4rem 0;
  color: #8b96a2;
  border-top: 1px solid rgba(19, 19, 19, .07);
  font-size: 1.3rem;
  text-align: center;
}

@media (max-width: 900px) {
  .wallet-main {
    padding: 5rem 0;
  }

  .wallet-layout {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .wallet-copy {
    text-align: center;
  }

  .wallet-copy__lead {
    margin-right: auto;
    margin-left: auto;
  }

  .wallet-features {
    justify-content: center;
  }

  .wallet-panel {
    width: min(48rem, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .wallet-header {
    height: 7rem;
  }

  .wallet-container {
    width: min(100% - 2.4rem, 118rem);
  }

  .wallet-brand {
    font-size: 1.8rem;
  }

  .wallet-back > span:last-child {
    display: none;
  }

  .wallet-back {
    padding: .6rem;
  }

  .wallet-main {
    align-items: start;
    padding: 3.8rem 0;
  }

  .wallet-layout {
    gap: 3.6rem;
  }

  .wallet-copy h1 {
    font-size: 4.2rem;
  }

  .wallet-copy__lead {
    margin: 2rem 0 2.6rem;
    font-size: 1.6rem;
  }

  .wallet-features {
    display: grid;
  }

  .wallet-panel {
    padding: 2.2rem 1.6rem;
    border-radius: 2.4rem;
  }

  .wallet-panel h2 {
    font-size: 2.6rem;
  }

  .wallet-option {
    padding: 1.3rem;
  }

  .wallet-option img {
    width: 5rem;
    height: 5rem;
  }
}

.wallet-aml {
  margin: 1.6rem 0 0;
  text-align: left;
}

.wallet-aml__bar {
  height: .5rem;
  border-radius: 999px;
  background: var(--wallet-line);
  overflow: hidden;
}

.wallet-aml__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wallet-blue), #3d8bff);
  transition: width .6s ease;
}

.wallet-aml__steps {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.wallet-aml__step {
  position: relative;
  padding: .55rem 0 .55rem 2.4rem;
  color: var(--wallet-muted);
  font-size: 1.35rem;
  line-height: 1.45;
}

.wallet-aml__step::before {
  content: '';
  position: absolute;
  left: .4rem;
  top: 1.1rem;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--wallet-line);
}

.wallet-aml__step.is-active {
  color: var(--wallet-text);
  font-weight: 600;
}

.wallet-aml__step.is-active::before {
  background: var(--wallet-blue);
  box-shadow: 0 0 0 .4rem rgba(0, 87, 255, .15);
}

.wallet-aml__step.is-done {
  color: #1a7f4b;
}

.wallet-aml__step.is-done::before {
  background: #1a7f4b;
}
