.bm-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.bm-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.bm-modal {
  width: 100%;
  max-width: 390px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(27, 29, 29, 0.98),
    rgba(18, 20, 20, 0.99)
  );
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bm-overlay.active .bm-modal {
  transform: translateY(0) scale(1);
}
.bm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.bm-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f6f6f6;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.bm-logo svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.bm-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b8f8e;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.bm-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.bm-close:active {
  transform: scale(0.9);
}
.bm-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.bm-wallets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bm-wallet {
  position: relative;
  width: 100%;
  min-height: 68px;
  padding: 10px 16px 10px 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.bm-wallet:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.bm-wallet:active {
  transform: scale(0.985);
}
.bm-wallet-name {
  flex: 1;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #e5e7e7;
}
.bm-wallet-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
}
.bm-wallet-icon img {
  width: 90%;
  border-radius: 13px;
  object-fit: contain;
}
.walletconnect {
  background: linear-gradient(145deg, #58b4ff, #2586ef);
}
.metamask {
  background: linear-gradient(145deg, #1e1e1e, #252525);
}
.trustwallet {
  background: linear-gradient(145deg, #fff, #e9ecf4);
}
.ledger {
  background: #070707;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.safe {
  background: linear-gradient(145deg, #4a8dff, #2952cc);
}
.coinbase {
  background: linear-gradient(145deg, #317aff, #1554d1);
}
.all-wallets {
  background: linear-gradient(145deg, #17354b, #101d2b);
}
.all-wallets svg {
  width: 25px;
  height: 25px;
  fill: #78bfff;
}
.bm-qr {
  padding: 6px 8px;
  border-radius: 7px;
  color: #5397ff;
  background: rgba(58, 131, 255, 0.1);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
}
.bm-wallet-count {
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #929696;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
}
@media (max-width: 500px) {
  .bm-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .bm-modal {
    max-width: 100%;
    padding: 18px;
    border-radius: 26px;
  }
  .bm-wallet {
    min-height: 65px;
  }
}
.bm-modal {
  position: relative;
  overflow: hidden;
}
.bm-screen {
  width: 100%;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.8, 0.25, 1),
    opacity 0.25s ease;
}
.bm-main-screen {
  position: relative;
  transform: translateX(0);
  opacity: 1;
}
.bm-all-screen {
  position: absolute;
  top: 22px;
  left: 22px;
  width: calc(100% - 44px);
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
}
.bm-modal.show-all-wallets .bm-main-screen {
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
}
.bm-modal.show-all-wallets .bm-all-screen {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.bm-all-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f5f5f5;
}
.bm-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #a3a6a5;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.bm-back:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.bm-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bm-arrow {
  width: 17px;
  height: 17px;
  margin-left: 2px;
  fill: none;
  stroke: #777;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bm-search {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}
.bm-search:focus-within {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.bm-search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: #737776;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.bm-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.bm-search input::placeholder {
  color: #737776;
}
.bm-full-wallet-list {
  max-height: 470px;
  overflow-y: auto;
  padding-right: 3px;
}
.bm-full-wallet-list::-webkit-scrollbar {
  width: 4px;
}
.bm-full-wallet-list::-webkit-scrollbar-track {
  background: transparent;
}
.bm-full-wallet-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
}
.exodus {
  background: linear-gradient(145deg, #8d72ff, #5140d5);
}
.rabby {
  background: linear-gradient(145deg, #9ac7ff, #5d8eff);
}
.binance {
  background: #000000;
}
.okx {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.safepal {
  background: linear-gradient(145deg, #4a8dff, #2952cc);
}
.wallet-letter {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.okx .wallet-letter {
  font-size: 10px;
}
.bm-wallet.wallet-hidden {
  display: none;
}
