/* Base */
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: #0c0c15;
  color: #fff;
}
a {
  color: #f5a623;
}

/* Header */
.hdr {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0c0c15;
  position: relative;
  z-index: 10;
}
.hdr__logo {
  width: 56px;
  height: 22px;
  cursor: pointer;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.btn--primary {
  display: block;
  width: 90%;
  padding: 14px 44px;
  font-size: 16px;
  background: #f5a623;
  color: #000;
  margin: 20px auto;
}
.btn--primary:hover {
  background: #d88f1e;
}
.btn--secondary {
  padding: 8px 14px;
  font-size: 12px;
  background-color: #f5a623;
  color: #000;
}
.btn--secondary:hover {
  background-color: #d88f1e;
}

/* Contact */
.contact {
  width: 90%;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.contact__text {
  font-size: 12px;
  color: #fff;
}

/* Audit Banner */
.banner--audit {
  position: relative;
  padding: 56px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(0deg, #161923, #161923), #020226;
  min-height: 90vh;
  overflow: hidden;
}
.banner--audit::before,
.banner--audit::after {
  content: "";
  position: absolute;
  width: 256px;
  height: 212px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/img/dot.png");
  z-index: 0;
}
.banner--audit::before {
  top: 0;
  left: 0;
}
.banner--audit::after {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}
.banner--audit * {
  position: relative;
  z-index: 1;
}
.banner__illustration {
  margin-bottom: 24px;
}
.banner__title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}
.banner__desc {
  font-size: 16px;
  color: #adb1b8;
  text-align: center;
  max-width: 360px;
  line-height: 1.5;
  margin-bottom: 42px;
}
.features {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 32px;
  font-size: 12px;
  text-align: center;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100px;
}
.feature__icon {
  height: 30px;
  margin-bottom: 8px;
}

/* Result & Loader */
.result,
.loader__overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #161824;
  min-height: 80vh;
  padding: 20px;
  text-align: center;
}
.result img {
  height: 50px;
  margin-top: 30px;
}
.loader__overlay {
  /* use inline style display:none to hide */
}
.loader {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #f5a623;
  animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
}

/* New Result Section CSS */
.main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #100f14;
  min-height: 80vh;
  overflow: hidden;
}
.result img {
  height: 70px;
  margin-top: 70px;
}
.first,
.second {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
}
.item p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #76757b;
}
.item span {
  font-size: 13px;
  font-weight: 400;
  max-width: 60%;
  display: inline-block;
  word-wrap: break-word;
  white-space: normal;
  text-align: right;
}
.item {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin: 25px 0 0 0;
}
.status {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.first p {
  color: #76757b;
  margin: 10px 0 0 0;
}
.first h1 {
  margin: 10px 0 20px 0;
}

/* Wallet Popup Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background-color: #1a1a2e;
  margin: 15% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
  animation: slideIn 0.3s ease;
}
.modal-header {
  text-align: center;
  margin-bottom: 30px;
}
.modal-header h2 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 24px;
}
.modal-header p {
  margin: 0;
  color: #adb1b8;
  font-size: 14px;
}
.wallet-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.wallet-btn {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #242438;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.wallet-btn:hover {
  border-color: #f5a623;
  background: #2a2a3e;
  transform: translateY(-2px);
}
.wallet-btn img {
  width: 32px;
  height: 32px;
  margin-right: 15px;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #adb1b8;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.close-modal:hover {
  color: #f5a623;
}

/* Loading text */
.loading-text {
  margin-top: 20px;
  font-size: 16px;
  color: #f5a623;
}

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

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

@keyframes l20-1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
  }
  12.5% {
    clip-path: polygon(
      50% 50%,
      0 0,
      50% 0%,
      100% 0%,
      100% 0%,
      100% 0%,
      100% 0%
    );
  }
  25% {
    clip-path: polygon(
      50% 50%,
      0 0,
      50% 0%,
      100% 0%,
      100% 100%,
      100% 100%,
      100% 100%
    );
  }
  50% {
    clip-path: polygon(
      50% 50%,
      0 0,
      50% 0%,
      100% 0%,
      100% 100%,
      50% 100%,
      0% 100%
    );
  }
  62.5% {
    clip-path: polygon(
      50% 50%,
      100% 0,
      100% 0%,
      100% 0%,
      100% 100%,
      50% 100%,
      0% 100%
    );
  }
  75% {
    clip-path: polygon(
      50% 50%,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%,
      50% 100%,
      0% 100%
    );
  }
  100% {
    clip-path: polygon(
      50% 50%,
      50% 100%,
      50% 100%,
      50% 100%,
      50% 100%,
      50% 100%,
      0% 100%
    );
  }
}
@keyframes l20-2 {
  0% {
    transform: scaleY(1) rotate(0deg);
  }
  49.99% {
    transform: scaleY(1) rotate(135deg);
  }
  50% {
    transform: scaleY(-1) rotate(0deg);
  }
  100% {
    transform: scaleY(-1) rotate(-135deg);
  }
}
