.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.modal-content {
  background: rgba(238, 238, 238, 0);
  /* -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px); */
  -webkit-backdrop-filter: blur(1.5px) url(#distortion);
  backdrop-filter: blur(1.5px) url(#distortion);
  margin: 15% auto;
  padding: 0;
  width: 80%;
  max-width: 260px;
  border-radius: 6px;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  user-select: none;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.modal-content:hover {
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.20);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  position: relative;
  background-color: rgba(255, 255, 255, 0.45);
  color: rgba(0, 0, 0, 0.85);
  letter-spacing: -0.3px;

  top: 0px;
  left: 50%;
  transform: translate(-50%, 0%);
  padding: 0.3rem 0rem;
}

.modal-body {
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(0, 0, 0, 0.85);
  background: rgba(246, 246, 246, 1);
}

.modal-body img {
  filter: invert(100%);
  width: 70px;
  height: auto;
  position: relative;
  margin-bottom: 0.25rem;
}

.modal-body h2 {
  margin-top: 0px;
  letter-spacing: -0.4px;
  font-weight: 600;
}

.modal-body p {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.modal-body p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
}

.close-button {
  color: rgb(0, 0, 0);
  position: absolute;
  right: 10px;
  top: 45%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 2;
  cursor: pointer;
  border: none;
  padding: 0;
  line-height: 1;
}

.close-button:hover,
.close-button:focus {
  color: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
  text-decoration: none;
}

.close-button:active {
  transform: translateY(-50%) scale(0.95);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .modal {
    background-color: rgba(0, 0, 0, 0);
  }

  .modal-content {
    background: rgba(50, 50, 50, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.030);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.6),
      0 1px 8px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .modal-header {
    background: rgb(26, 26, 26);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
  }

  .modal-body {
    color: rgba(255, 255, 255, 0.85);
    background: rgb(22, 22, 22);
  }

  .modal-body p:last-child {
    color: rgba(255, 255, 255, 0.6);
  }

  .close-button {
    color: rgba(255, 255, 255, 0.800);
  }


  .close-button:hover,
  .close-button:focus {
    color: rgba(255, 255, 255, 0.650);
  }

  .modal-body img {
    filter: invert(0%) !important;
  }
}