@use '../../../style/variables.scss';

.modalWrapper {
  position: relative;

  .wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 18px;
    width: 650px;

    .header {
      position: absolute;
      top: 16px;
      left: 32px;
      display: flex;
      align-items: center;
      column-gap: 8px;

      .badge {
        background-color: #774dee;
        padding: 6px 12px;
        border-radius: 8px;
      }

      & > img {
        width: 32px;
        height: 32px;
      }
    }

    .betaPill {
      background: conic-gradient(
        from 0deg,
        #ff00cc,
        #ff00cc,
        #ff9900,
        #ff9900,
        #9900ff,
        #ff00cc
      );
      color: white;
      font-weight: bold;
      font-size: 12px;
      padding: 4px 10px;
      border-radius: 12px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
      white-space: nowrap;
      margin-left: 8px;
    }

    .sceneGeo {
      display: flex;
      flex-direction: column;
      row-gap: 16px;

      .iconGeo {
        font-size: 8px !important;
        color: #b6b6b6;
      }

      .copyIcon {
        width: 20px !important;
        height: 20px !important;
        * {
          fill: #fff !important;
        }
      }

      & > div {
        display: flex;
        align-items: center;

        & > p {
          width: 250px;
        }
      }
    }

    .qrCodeContainer {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .controlButtons {
      display: flex;
      justify-content: space-between;

      .locked {
        font-size: 28px;
      }
    }
  }
}

.successOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10002;
  pointer-events: all;
  animation: fadeIn 0.3s ease-out;

  .successContent {
    background: variables.$darkgray-600;
    border: 1px solid variables.$darkgray-400;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.4s ease-out;

    .successHeader {
      display: flex;
      align-items: center;
      column-gap: 12px;
      margin-bottom: 24px;

      .successIcon {
        font-size: 32px;
      }

      h3 {
        color: variables.$lightgray-100;
        font-size: 24px;
        margin: 0;
      }
    }

    .valueDemo {
      display: flex;
      flex-direction: column;
      row-gap: 16px;
      margin-bottom: 24px;

      .dataItem {
        display: flex;
        align-items: flex-start;
        column-gap: 12px;
        padding: 16px;
        background: variables.$darkgray-500;
        border-radius: 8px;

        .icon {
          font-size: 20px;
          line-height: 1;
          flex-shrink: 0;
        }

        .dataContent {
          display: flex;
          flex-direction: column;
          row-gap: 4px;
          flex: 1;

          .label {
            font-size: 14px;
            color: variables.$lightgray-300;
            font-weight: 500;
          }

          .value {
            font-size: 16px;
            color: variables.$lightgray-100;
            line-height: 1.4;
          }
        }
      }
    }

    .tokenStatus {
      display: flex;
      align-items: center;
      column-gap: 8px;
      padding: 16px;
      background: variables.$darkgray-500;
      border-radius: 8px;

      .tokenIcon {
        font-size: 18px;
      }

      .tokenText {
        color: variables.$lightgray-200;
        font-size: 14px;
        font-weight: 500;
      }

      .upgradeHint {
        color: variables.$purple-300;
        font-size: 14px;
        margin-left: 4px;
      }
    }
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
