/* WEA Pay 首页 — 参考 weajapan.co.jp 企业 Web3 气质，简洁未登录态 */

.home-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 16px;
}

.home-hero {
  position: relative;
  text-align: center;
  padding: 40px 8px 20px;
  overflow: hidden;
}

.home-hero__arc {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.35) 0%, rgba(6, 182, 212, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.home-hero__title {
  position: relative;
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero__desc {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 流程与支付方式 */
.home-flow {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.06) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.home-flow__step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.home-flow__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
  color: #bae6fd;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-flow__body {
  min-width: 0;
}

.home-flow__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.3;
}

.home-flow__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.home-pay-modes__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.home-pay-modes {
  display: grid;
  gap: 10px;
}

.home-pay-mode {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-pay-mode__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-pay-mode__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.3;
}

.home-pay-mode__desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.home-cta {
  margin: 0 0 20px;
}

.home-cta__btn {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.28);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.home-cta__btn .wallet-trigger__icon {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.home-cta__btn:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.home-footer {
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
}

.home-footer__brand {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.home-footer__link {
  font-size: 12px;
  color: #67e8f9;
  text-decoration: none;
}

.home-footer__link:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* 四个弹层统一按钮 */
.sheet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.sheet-btn:active {
  transform: scale(0.98);
}

.sheet-btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.sheet-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.sheet-btn--compact {
  flex-shrink: 0;
  min-width: 80px;
  padding: 0 18px;
}

.sheet-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  margin-top: 8px;
}

.sheet-footer .sheet-btn,
.wallet-sheet__info-actions .sheet-btn {
  width: 100%;
}

/* 底部钱包选择弹层（仅限 mm-content 正文区域） */
.wallet-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.wallet-sheet-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.wallet-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #16181c;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}

.wallet-sheet.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.wallet-sheet__panel {
  max-height: min(85%, 520px);
  padding: 0 20px 24px;
  background: #16181c;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wallet-sheet__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 16px 0 12px;
  background: #16181c;
}

.wallet-sheet__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}

.wallet-sheet__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#wallet-sheet-back {
  left: 0;
}

#wallet-sheet-close {
  right: 0;
}

.wallet-sheet__nav-btn.hidden {
  display: none;
}

.wallet-sheet__wallets {
  display: flex;
  gap: 16px;
  padding: 8px 0 20px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.wallet-sheet__wallets::-webkit-scrollbar {
  display: none;
}

.wallet-sheet__wallet {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.wallet-sheet__wallet-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wallet-sheet__wallet-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.wallet-sheet__wallet-name {
  font-size: 12px;
  color: #e5e7eb;
  text-align: center;
  line-height: 1.3;
}

.wallet-sheet__wallet-badge {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 500;
}

.wallet-sheet__info {
  padding: 20px 0 8px;
}

.wallet-sheet__info-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.wallet-sheet__info-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #9ca3af;
}

.wallet-sheet__info-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 第二步：选择链（深色主题） */
.wallet-sheet__panel.is-chain-step .wallet-sheet__title {
  visibility: hidden;
}

.wallet-sheet__panel.is-chain-step {
  display: flex;
  flex-direction: column;
}

.wallet-sheet__panel.is-chain-step .wallet-sheet__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chain-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(62vh, 440px);
  padding-bottom: 0;
}

.chain-step__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 16px;
}

.chain-step__brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.chain-step__brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.chain-step__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.chain-step__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #9ca3af;
}

.chain-step__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chain-step__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.chain-step__item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chain-step__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.chain-step__icon--bnb {
  padding: 2px;
  background: #000;
}

.chain-step__name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.chain-step__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
  user-select: none;
  cursor: not-allowed;
  pointer-events: none;
}

.chain-step__warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 16px 0 0;
}

.chain-step__warn i {
  flex-shrink: 0;
  margin-top: 2px;
  color: #fbbf24;
  font-size: 14px;
}

.chain-step__warn p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #fcd34d;
}

/* 连接账户 / 签名弹层（与选钱包弹层同区域） */
.wallet-sheet__panel--flow {
  display: flex;
  flex-direction: column;
  max-height: min(85%, 560px);
  padding: 8px 20px 20px;
}

.flow-sheet__topbar {
  display: flex;
  justify-content: flex-end;
  min-height: 36px;
  margin-bottom: 4px;
}

.flow-sheet__topbar .wallet-sheet__nav-btn {
  position: static;
  transform: none;
}

.flow-sheet__body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mm-connect-site {
  text-align: center;
  padding: 0 0 16px;
}

.mm-connect-site__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.mm-connect-site__url {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

.mm-connect-site__hint {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

.mm-connect-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.mm-connect-tabs__btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 12px 8px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
}

.mm-connect-tabs__btn.is-active {
  color: #fff;
}

.mm-connect-tabs__btn.is-active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 3px;
  background: #fff;
  border-radius: 999px 999px 0 0;
}

.mm-connect-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  cursor: pointer;
}

.mm-connect-account__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.mm-connect-account__info {
  flex: 1;
  min-width: 0;
}

.mm-connect-account__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.mm-connect-account__balance {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
  text-align: right;
}

.mm-connect-account__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.mm-connect-account__more {
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 4px;
  font-size: 16px;
  cursor: pointer;
}

.mm-connect-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  border: none;
  background: transparent;
  color: #818cf8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.mm-connect-permissions__item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.5;
  color: #9ca3af;
}

.mm-connect-permissions__item strong {
  color: #fff;
}

.mm-connect-permissions__item:last-child {
  border-bottom: none;
}

.mm-connect-permissions__item i {
  color: #818cf8;
  margin-top: 2px;
}

.sign-hero {
  margin-bottom: 8px;
  padding: 20px 16px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.sign-hero__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.sign-hero__site {
  margin: 0 0 8px;
  font-size: 13px;
  color: #9ca3af;
}

.sign-hero__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.sign-hero__message {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.sign-hero__message-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.sign-hero__message-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #9ca3af;
}

.mm-sign-details {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.mm-sign-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mm-sign-detail-row:last-child {
  border-bottom: none;
}

.mm-sign-detail-row__label {
  font-size: 14px;
  color: #9ca3af;
  flex-shrink: 0;
}

.mm-sign-detail-row__value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-align: right;
}

.mm-sign-detail-row__value--host {
  font-size: 13px;
  word-break: break-all;
}

.mm-sign-account-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  flex-shrink: 0;
}

.mm-sign-network-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
}

