.cw-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.cw-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 28px;
  border-radius: 16px;
  background: #111;
  border: 1px solid #2a2a2a;
}

.cw-modal_close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  color: #9aa1b1;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.cw-modal_close:hover {
  color: #fff;
}

.cw-modal_title {
  color: #fff;
  font-family: "Onest", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cw-modal_subtitle {
  color: #9aa1b1;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
}

.cw-modal_access {
  color: #e8ff00;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.cw-modal_tron-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Onest", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.cw-modal_tron-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cw-modal_wallet_fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(232, 255, 0, 0.12);
  color: #e8ff00;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.cw-modal_networks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cw-modal_network {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cw-modal_network img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cw-modal_network:hover {
  border-color: #566570;
  box-shadow: inset 0 0 0 2px rgba(86, 101, 112, 0.35);
}

.cw-modal_network_active {
  border-color: #e8ff00;
  background: rgba(232, 255, 0, 0.08);
  box-shadow: inset 0 0 0 2px rgba(232, 255, 0, 0.25);
}

.cw-modal_tokens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.cw-modal_token {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Onest", sans-serif;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cw-modal_token_name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.cw-modal_token:hover {
  border-color: #7c5cff;
  box-shadow: inset 0 0 0 2px rgba(124, 92, 255, 0.45);
}

.cw-modal_token_active {
  border-color: #7c5cff;
  background: rgba(124, 92, 255, 0.1);
  box-shadow: inset 0 0 0 2px rgba(124, 92, 255, 0.55);
}

.cw-modal_connect {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: #e8ff00;
  color: #19191c;
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cw-modal_connect:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cw-modal_connect:not(:disabled):hover {
  opacity: 0.85;
}

.cw-modal_hint {
  margin-top: 16px;
  color: #566570;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
