.wallet-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;

  opacity: 0;
  transition: opacity 0.25s ease;
}

.wallet-modal-overlay.active {
  opacity: 1;
}

.wallet-modal {
  background: #ffffff;
  color: #0d0d0d;
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  padding: 20px 20px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;

  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.wallet-modal-overlay.active .wallet-modal {
  transform: translateY(0);
  opacity: 1;
}

.wallet-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.wallet-modal-header h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.wallet-modal-close {
  position: absolute;
  right: 0;
  top: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f1f3;
  border: none;
  color: #444;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-modal-close:hover {
  background: #e4e4e7;
}

.wallet-modal-section-label {
  font-size: 13px;
  color: #9a9aa0;
  font-weight: 500;
  margin-bottom: 10px;
  padding: 0 4px;
}

.wallet-modal-body {
  display: flex;
  flex-direction: column;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.wallet-option:hover {
  background: #f5f5f7;
}

.wallet-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.wallet-name {
  font-size: 15px;
  font-weight: 600;
  color: #0d0d0d;
}

.wallet-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ececef;
  margin-top: 8px;
  padding-top: 14px;
  font-size: 13px;
  color: #8a8a90;
}

.wallet-modal-learnmore {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.wallet-modal-learnmore:hover {
  text-decoration: underline;
}

.connect-wallet-btn {
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.connect-wallet-btn:hover {
  background: #262626;
}

#loading-overlayer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-texts {
  margin-top: 16px;
  color: white;
  font-size: 16px;
  font-family: sans-serif;
}

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


.wallet-modal-mobile-message {
  display: none;
  text-align: center;
  font-size: 14px;
  color: #6b6b70;
  padding: 24px 8px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .wallet-modal-body {
    display: none;
  }
  .wallet-modal-section-label {
    display: none;
  }
  .wallet-modal-mobile-message {
    display: block;
  }
}