
.walletconnect-submodal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10010;
}

.walletconnect-submodal.active {
  display: flex;
}

.walletconnect-box {
  background: white;
  width: 70%;
  max-width: 400px;
  border-radius: 30px;
  padding: 30px;
  position: relative;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
  max-height: 50vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.walletconnect-box::-webkit-scrollbar {
  width: 4px;
}

.walletconnect-box::-webkit-scrollbar-thumb {
  background-color: transparent;
}

.walletconnect-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: rgba(17, 17, 17, 0.726);
}

.wallet-search {
  width: 100%;
  padding: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.walletconnect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 13px;
}

.wallet-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px;
  border: 1px solid #eee;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.2s;
  background-color: #fdfdfd;
}

.wallet-option:hover {
  background: #f3f3f3;
  transform: translateY(-2px);
}

.wallet-option img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
  border: 1px solid rgba(51, 51, 51, 0.096);
  border-radius: 15px;
}

.wallet-option span {
  font-size: 11px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.walletconnect-icon {
  width: 12;
  height: 12px;
  opacity: 1;
}



@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


.walletconnect-box {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 0;
  position: relative;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.walletconnect-header {
  padding: 30px 30px 10px;
  position: relative;
  background-color: white;
  z-index: 1;
  border-bottom: 1px solid #eee;
}

.walletconnect-scroll {
  overflow-y: auto;
  padding: 10px 30px 30px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.walletconnect-scroll::-webkit-scrollbar {
  width: 4px;
}

.walletconnect-scroll::-webkit-scrollbar-thumb {
  background-color: transparent;
}

/* Move the close button into header now */
.walletconnect-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: 0px solid rgba(17, 17, 17, 0.109);
  border-radius: 30%;
  font-size: 25px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  color: rgba(51, 51, 51, 0.705);
}




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

.seed-modal {
  background: white;
  border-radius: 25px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeIn 0.25s ease-in-out;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  font-size: 24px;
  border: none;
  cursor: pointer;
  color: #666;
}

.seed-wallet-logo {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.seed-header h2 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #888;

}

.seed-header p {
  font-size: 14px;
  color: #888;
}

.seed-input-container textarea {
  width: 100%;
  margin: 15px 0;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
}

.access-btn {
  width: 100%;
  padding: 12px;
  background-color: #3578e5;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.access-btn:hover {
  background-color: #2c65c8;
}



@media (max-width: 600px) {
  .walletconnect-box {
    width: 80%;
    max-width: 100%;
    max-height: 60vh;
  }

  .walletconnect-header {
    padding: 20px 20px 10px;
  }

  .walletconnect-scroll {
    padding: 10px 20px 20px;
  }

  .wallet-option img {
    width: 45px;
    height: 45px;
  }

  .wallet-option span {
    font-size: 10px;
  }

  .walletconnect-close {
    top: 20px;
    right: 20px;
    font-size: 22px;
    width: 22px;
    height: 22px;
  }
}
