.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  width: 680px;
  max-width: 90vw;
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    90deg,
    rgba(97, 44, 198, 0.15) 0%,
    rgba(23, 130, 255, 0.15) 100%
  );
}

.modal-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(90deg, #612cc6 0%, #1782ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(97, 44, 198, 0.15);
  color: #ffffff;
}

.modal-body {
  padding: 36px;
}

.wallet-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 24px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallet-button:last-child {
  margin-bottom: 0;
}

.wallet-button:hover {
  background: rgba(97, 44, 198, 0.15);
  border-color: #612cc6;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(97, 44, 198, 0.2);
}

.wallet-button img {
  width: 56px;
  height: 56px;
  margin-right: 24px;
}

.wallet-button span {
  font-size: 22px;
  font-weight: 500;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.wallet-modal-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.wallet-modal-container {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
