.amlbot-address-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.amlbot-address-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.amlbot-address-modal {
  position: relative;
  width: 100%;
  max-width: 44rem;
  margin: 2rem;
  padding: 4rem;
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 2.4rem 6.4rem rgba(0, 0, 0, 0.2);
}

.amlbot-address-modal__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.amlbot-address-modal__close:hover {
  opacity: 1;
}

.amlbot-address-modal__close::before,
.amlbot-address-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.8rem;
  height: 0.2rem;
  background: #000;
  transform: translate(-50%, -50%) rotate(45deg);
}

.amlbot-address-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.amlbot-address-modal__title {
  margin: 0 0 0.8rem;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: #000;
}

.amlbot-address-modal__subtitle {
  margin: 0 0 2.4rem;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #666;
}

.amlbot-address-modal__label {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
}

.amlbot-address-modal__network-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.amlbot-address-modal__network-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 1.4rem 1.6rem;
  border: 0.15rem solid #e8eaed;
  border-radius: 1.2rem;
  background: #f8f9fb;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 500;
  color: #000;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.amlbot-address-modal__network-card:hover {
  border-color: #c5d4ff;
  background: #fff;
}

.amlbot-address-modal__network-card.is-active {
  border-color: #0052ff;
  background: rgba(0, 82, 255, 0.06);
  box-shadow: 0 0 0 0.1rem rgba(0, 82, 255, 0.15);
}

.amlbot-address-modal__network-card img {
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
}

.amlbot-address-modal__network-card span {
  flex: 1;
}

.amlbot-address-modal__network-check {
  flex-shrink: 0;
  color: #0052ff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}

.amlbot-address-modal__network-card.is-active .amlbot-address-modal__network-check {
  opacity: 1;
  transform: scale(1);
}

.amlbot-address-modal__connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.6rem 2.4rem;
  border: none;
  border-radius: 1.2rem;
  background: #0052ff;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.amlbot-address-modal__connect:hover:not(:disabled) {
  background: #0043d4;
}

.amlbot-address-modal__connect:disabled {
  opacity: 0.7;
  cursor: wait;
}

.amlbot-address-modal__connect .spinner {
  width: 1.8rem;
  height: 1.8rem;
  border: 0.2rem solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: amlbot-spin 0.7s linear infinite;
  display: none;
}

.amlbot-address-modal__connect.is-loading .spinner {
  display: block;
}

.amlbot-address-modal__connect.is-loading .btn-text {
  display: none;
}

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

@media (max-width: 767px) {
  .amlbot-address-modal {
    padding: 3rem 2rem;
    border-radius: 1.6rem;
  }

  .amlbot-address-modal__title {
    font-size: 2rem;
  }
}
