  .popup-overlay {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(2, 6, 23, 0.78);

    backdrop-filter: blur(6px);

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

    z-index: 9999;

    padding: 20px;
  }

  .popup-container {
    position: relative;

    width: 90%;
    max-width: 430px;

    overflow: hidden;

    text-align: center;

    border-radius: 28px;

    background: linear-gradient(
      145deg,
      rgba(31, 25, 5, 0.98),
      rgba(146, 132, 6, 0.94),
      rgba(177, 165, 2, 0.9)
    );

    border: 1px solid rgba(122,162,255,.25);

    box-shadow:
      0 24px 70px rgba(0,0,0,.78),
      0 0 30px rgba(197, 211, 4, 0.32),
      0 0 65px rgba(207, 204, 1, 0.12);

    animation:
      popupScaleIn .8s cubic-bezier(.175,.885,.32,1.275),
      popupPulse 3.5s infinite ease-in-out;
  }

  @keyframes popupScaleIn {
    0% {
      opacity: 0;
      transform: scale(.35) rotate(-8deg);
    }

    50% {
      transform: scale(1.04) rotate(2deg);
    }

    100% {
      opacity: 1;
      transform: scale(1) rotate(0);
    }
  }

  @keyframes popupPulse {
    0%,100% {
      box-shadow:
        0 24px 70px rgba(0,0,0,.75),
        0 0 24px rgba(204, 191, 4, 0.28);
    }

    50% {
      box-shadow:
        0 24px 70px rgba(0,0,0,.75),
        0 0 38px rgba(209, 196, 6, 0.45),
        0 0 22px rgba(204, 191, 15, 0.18);
    }
  }

  .popup-container::before {
    content: "";

    position: absolute;

    top: -110%;
    left: -110%;

    width: 220%;
    height: 220%;

    background: linear-gradient(
      135deg,
      transparent 44%,
      rgba(122,162,255,.16) 49%,
      rgba(255,255,255,.10) 51%,
      transparent 56%
    );

    animation: popupShine 5s linear infinite;

    z-index: 2;

    pointer-events: none;
  }

  @keyframes popupShine {
    0% {
      transform: translate(-100%, -100%) rotate(30deg);
    }

    100% {
      transform: translate(100%, 100%) rotate(30deg);
    }
  }

  .popup-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    display: block;

    border-bottom: 1px solid rgba(122,162,255,.16);

    position: relative;

    z-index: 3;
  }

  .popup-buttons {
    padding: 24px 20px 12px;

    position: relative;

    z-index: 3;
  }

  .popup-buttons a {
    display: block;

    width: 100%;

    padding: 17px 0;

    border-radius: 999px;

    color: #ffffff;

    text-decoration: none;

    text-align: center;

    background: linear-gradient(to bottom, #ff0f0f 0%, #ff0f0f 50%, #8b0000 100%);

    font-weight: 900;

    letter-spacing: 1.8px;

    border: 1px solid rgba(122,162,255,.35);

    box-shadow:
      0 12px 26px rgba(202, 166, 3, 0.28),
      0 0 18px rgba(122,162,255,.18);

    text-shadow:
      0 0 8px rgba(218, 203, 7, 0.45);

    transition: .35s ease;
  }

  .popup-buttons a:hover {
    transform: translateY(-4px) scale(1.02);

    background: linear-gradient(
      135deg,
      #ff4d4d,
      #ff1e1e,
      #ff0f0f
    );

    box-shadow:
      0 16px 30px rgba(255, 15, 15, 0.38),
      0 0 26px rgba(122,162,255,.28);
  }

  .popup-footer {
    padding: 10px 20px 24px;

    color: #dbe7ff;

    font-size: 13px;

    line-height: 1.6;

    position: relative;

    z-index: 3;
  }

  .popup-footer span {
    color: #d8cb15;

    font-weight: 800;

    text-shadow:
      0 0 10px rgba(255, 15, 15, 0.45);
  }

  .popup-particle {
    position: absolute;

    border-radius: 999px;

    background: radial-gradient(
      circle,
      rgba(255, 122, 122, 0.95),
      rgba(255, 15, 15, 0.35)
    );

    box-shadow:
      0 0 12px rgba(255, 15, 15, 0.65);

    animation: popupParticleFloat 10s infinite ease-in-out;

    z-index: 1;
  }

  @keyframes popupParticleFloat {
    0%,100% {
      transform: translateY(0) translateX(0);
      opacity: 0;
    }

    10%,90% {
      opacity: .85;
    }

    100% {
      transform: translateY(-120px) translateX(40px);
      opacity: 0;
    }
  }

  .close-btn {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 34px;
    height: 34px;

    background: rgba(5,11,31,.82);

    border: 1px solid rgba(255, 122, 122, 0.75);

    border-radius: 50%;

    cursor: pointer;

    z-index: 10;

    transition: .3s ease;
  }

  .close-btn:hover {
    background: rgba(255, 15, 15, 0.92);

    transform: rotate(90deg);

    box-shadow:
      0 0 16px rgba(255, 15, 15, 0.45);
  }

  .close-btn::before,
  .close-btn::after {
    content: '';

    position: absolute;

    top: 50%;
    left: 50%;

    width: 16px;
    height: 2px;

    background: #fff;
  }

  .close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }