@use "../../../../../styles/abstracts/variables" as *;

.modalOverlay {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 1rem;

  background: rgba(4, 4, 6, 0.82);

  backdrop-filter: blur(14px);

  overflow-y: auto;
}

.modalContent {
  position: relative;

  width: 100%;
  max-width: 500px;

  padding: 2rem;

  border-radius: 20px;

   background: linear-gradient(
      180deg,
      rgba(22, 22, 24, 0.98) 0%,
      rgba(15, 15, 18, 1) 100%
    );

    border: 1px solid rgba(255, 255, 255, 0.05);

    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.45);

  color: #fff;

  animation: slideUp 0.3s ease;

  h2 {
    font-size: 1rem;
    font-weight: 500;

    margin-bottom: 0.6rem;

    padding-bottom: 0.8rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  p {
    font-size: 0.8rem !important;
    line-height: 1.8;
    color: #FFF;
    margin-bottom: 1.8rem;
    font-weight: 400;
  }

  small {
    display: block;

    margin-top: 1rem;
    margin-bottom: 1.2rem;

    font-size: 0.75rem;
    line-height: 1.7;

    color: #8f8f8f;
  }
}

.closeBtn {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 36px;
  height: 36px;

  border: none;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.04);

  color: #999;

  cursor: pointer;

  transition: all 0.2s ease;

  &:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
}

.inputGroup {
  display: flex;
  flex-direction: column;

  label {
    font-size: 0.82rem;
    font-weight: 500;

    color: #d4d4d4;

    margin-bottom: 0.55rem;
  }
}

.selectWrapper {
  position: relative;

  margin-bottom: 1.4rem;

  background: #1b1b1b;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 14px;

  transition: all 0.2s ease;

  &:hover {
    border-color: rgba(255, 255, 255, 0.12);
  }
}

.selectDisplay {
  display: flex;
  align-items: center;

  gap: 0.8rem;

  padding: 0.7rem 1rem;

  cursor: pointer;

  img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  span {
    flex: 1;

    font-size: 0.92rem;
    color: #f2f2f2;
  }

  svg {
    font-size: 0.8rem;
    color: #888;
  }
}

.dropdown {
  position: absolute;

  top: calc(100% + 8px);
  left: 0;

  width: 100%;

  background: #1b1b1b;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35);

  overflow: hidden;

  max-height: 240px;

  overflow-y: auto;

  z-index: 100;

  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.dropdownItem {
  display: flex;
  align-items: center;

  gap: 0.8rem;

  padding: 0.85rem 1rem;

  transition: background 0.2s ease;

  img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  span {
    color: #eee;
    font-size: 0.9rem;
  }

  &:hover {
    background: rgba(255, 255, 255, 0.04);
  }
}

.amountInput {
  width: 100%;

  padding: 0.7rem 1rem;

  background: #1b1b1b;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 14px;

  font-size: 0.95rem;

  color: #fff;

  transition: all 0.2s ease;

  &:focus {
    outline: none;

    border-color: #f7931a;

    box-shadow:
      0 0 0 3px rgba(247, 147, 26, 0.15);
  }

  &::placeholder {
    color: #777;
  }
}

.walletGroup {
  margin-top: 1rem;
  margin-bottom: 1.5rem;

  label {
    display: block;

    margin-bottom: 0.6rem;

    font-size: 0.82rem;
    font-weight: 500;

    color: #d4d4d4;
  }
}

.walletRow {
  display: flex;
  align-items: center;

  gap: 0.75rem;

  padding: 0.9rem 1rem;

  background: #1b1b1b;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.walletText {
  flex: 1;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #ddd;

  font-size: 0.85rem;
}

.copyBtn {
  border: none;

  background: transparent;

  color: #f7931a;

  font-weight: 600;
  font-size: 0.8rem;

  cursor: pointer;

  transition: opacity 0.2s ease;

  &:hover {
    opacity: 0.8;
  }
}

.proceedBtn {
  width: 100%;

  height: 50px;

  border: none;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    #f7931a,
    #ffb347
  );

  color: #111;

  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow:
    0 10px 25px rgba(247, 147, 26, 0.25);

  &:hover {
    transform: translateY(-2px);

    box-shadow:
      0 16px 35px rgba(247, 147, 26, 0.35);
  }

  &:active {
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .modalContent {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .proceedBtn {
    height: 48px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}