.promo-bar[hidden] {
  display: none !important;
}

.promo-bar {
  position: fixed;
  z-index: 180;
  bottom: 18px;
  left: 50%;
  display: flex;
  width: min(780px, calc(100% - 32px));
  min-height: 72px;
  padding: 7px 43px 7px 8px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(93, 157, 255, 0.25);
  border-radius: 21px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(30, 126, 255, 0.34), transparent 33%),
    linear-gradient(120deg, rgba(9, 34, 79, 0.98), rgba(4, 16, 39, 0.98) 62%, rgba(5, 35, 91, 0.98));
  box-shadow:
    0 24px 60px rgba(1, 11, 31, 0.34),
    0 8px 24px rgba(5, 65, 174, 0.16);
  opacity: 0;
  filter: blur(7px);
  pointer-events: none;
  transform: translate(-50%, calc(100% + 42px)) scale(0.97);
  transition:
    opacity 480ms ease,
    filter 560ms ease,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms ease;
  will-change: opacity, filter, transform;
  isolation: isolate;
}

.promo-bar::before,
.promo-bar::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.promo-bar::before {
  z-index: -1;
  top: -90px;
  right: 70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 108, 255, 0.34), transparent 68%);
  animation: promo-orb 5.4s ease-in-out infinite alternate;
}

.promo-bar::after {
  z-index: 2;
  top: 0;
  bottom: 0;
  left: -34%;
  width: 24%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: skewX(-18deg);
  animation: promo-shine 4.8s 1.6s ease-in-out infinite;
}

.promo-bar.is-visible {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.promo-bar.is-visible:hover {
  box-shadow:
    0 29px 70px rgba(1, 11, 31, 0.4),
    0 11px 30px rgba(5, 78, 206, 0.22);
}

.promo-bar.is-dismissed,
.is-project-modal-open .promo-bar {
  opacity: 0;
  filter: blur(5px);
  pointer-events: none;
  transform: translate(-50%, calc(100% + 42px)) scale(0.97);
}

.promo-bar__beam {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 12%;
  width: 44%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #33a6ff, #8fe5ff, transparent);
  box-shadow: 0 0 14px rgba(55, 172, 255, 0.72);
  animation: promo-beam 3.6s ease-in-out infinite alternate;
}

.promo-bar__action {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0;
  align-items: center;
  gap: 14px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.promo-bar__action:focus-visible,
.promo-bar__close:focus-visible {
  outline: 3px solid rgba(93, 177, 255, 0.54);
  outline-offset: 2px;
}

.promo-bar__icon {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(130, 194, 255, 0.35);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #1681ff, #0752e7);
  box-shadow:
    0 12px 24px rgba(2, 64, 179, 0.3),
    0 0 20px rgba(28, 130, 255, 0.18);
  transform-origin: 50% 100%;
  animation: promo-gift 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.promo-bar__icon::before,
.promo-bar__icon::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.promo-bar__icon::before {
  inset: -6px;
  border: 1px solid rgba(86, 185, 255, 0.64);
  border-radius: 20px;
  opacity: 0;
  animation: promo-gift-wave 3.2s ease-out infinite;
}

.promo-bar__icon::after {
  top: 2px;
  right: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #dff7ff;
  box-shadow:
    -43px 7px 0 -0.5px #74c8ff,
    -37px 37px 0 -1px #fff,
    0 36px 0 -1px #48e3b0;
  opacity: 0;
  animation: promo-gift-sparks 3.2s ease-out infinite;
}

.promo-bar__icon svg {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.promo-bar__gift-lid,
.promo-bar__gift-bow {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: promo-gift-lid 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.promo-bar__gift-bow {
  animation-name: promo-gift-bow;
}

.promo-bar__icon i {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid #0a234d;
  border-radius: 50%;
  background: #48e3b0;
  box-shadow: 0 0 13px rgba(72, 227, 176, 0.8);
  animation: promo-gift-dot 2.1s ease-in-out infinite;
}

.promo-bar__copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.promo-bar__copy small {
  color: #88b7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.promo-bar__copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-bar__cta {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #1680ff, #0751e6);
  box-shadow: 0 10px 22px rgba(7, 83, 230, 0.28);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.promo-bar__action:hover .promo-bar__cta {
  box-shadow: 0 14px 28px rgba(7, 91, 245, 0.36);
  transform: translateX(2px);
}

.promo-bar__cta svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.promo-bar__close {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #8096bb;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.promo-bar__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-50%) rotate(7deg);
}

.promo-bar__close svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

@keyframes promo-shine {
  0%,
  58% {
    left: -34%;
    opacity: 0;
  }

  66% {
    opacity: 1;
  }

  86%,
  100% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes promo-gift {
  0%,
  58%,
  100% {
    box-shadow:
      0 12px 24px rgba(2, 64, 179, 0.3),
      0 0 20px rgba(28, 130, 255, 0.18);
    transform: translateY(0) rotate(0) scale(1);
  }

  10% {
    transform: translateY(-6px) rotate(-5deg) scale(1.05);
  }

  22% {
    box-shadow:
      0 17px 30px rgba(2, 64, 179, 0.36),
      0 0 30px rgba(66, 170, 255, 0.48);
    transform: translateY(-1px) rotate(4deg) scale(1.07);
  }

  35% {
    transform: translateY(-4px) rotate(-2deg) scale(1.03);
  }

  48% {
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes promo-gift-lid {
  0%,
  5%,
  52%,
  100% {
    transform: translateY(0) rotate(0);
  }

  20% {
    transform: translateY(-3.2px) rotate(-9deg);
  }

  34% {
    transform: translateY(-1px) rotate(4deg);
  }
}

@keyframes promo-gift-bow {
  0%,
  5%,
  52%,
  100% {
    transform: scale(1) rotate(0);
  }

  20% {
    transform: scale(1.2) rotate(7deg);
  }

  34% {
    transform: scale(0.95) rotate(-3deg);
  }
}

@keyframes promo-gift-wave {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.78);
  }

  21% {
    opacity: 0.86;
  }

  52%,
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes promo-gift-sparks {
  0%,
  10% {
    opacity: 0;
    transform: scale(0.45) rotate(-10deg);
  }

  23% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
    transform: scale(1.45) rotate(12deg);
  }
}

@keyframes promo-gift-dot {
  0%,
  100% {
    box-shadow: 0 0 9px rgba(72, 227, 176, 0.62);
    transform: scale(0.9);
  }

  50% {
    box-shadow: 0 0 16px rgba(72, 227, 176, 0.94);
    transform: scale(1.08);
  }
}

@keyframes promo-orb {
  from {
    transform: translate3d(-8px, 4px, 0) scale(0.94);
  }

  to {
    transform: translate3d(14px, -7px, 0) scale(1.08);
  }
}

@keyframes promo-beam {
  from {
    opacity: 0.55;
    transform: translateX(-16%);
  }

  to {
    opacity: 1;
    transform: translateX(70%);
  }
}

@media (max-width: 680px) {
  .promo-bar {
    bottom: 10px;
    width: calc(100% - 20px);
    min-height: 66px;
    padding: 6px 39px 6px 6px;
    border-radius: 18px;
  }

  .promo-bar,
  .promo-bar.is-visible:hover {
    box-shadow: none;
  }

  .promo-bar__action {
    min-height: 52px;
    gap: 10px;
  }

  .promo-bar__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .promo-bar__icon svg {
    width: 23px;
    height: 23px;
  }

  .promo-bar__copy small {
    display: none;
  }

  .promo-bar__copy strong {
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  .promo-bar__cta {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 10px;
  }

  .promo-bar__cta svg {
    display: none;
  }

  .promo-bar__close {
    right: 7px;
    width: 26px;
    height: 26px;
  }

  .promo-bar.is-visible ~ .scroll-top {
    bottom: 88px;
  }

  .is-project-modal-open .promo-bar.is-visible ~ .scroll-top {
    bottom: 22px;
  }

}

@media (max-width: 430px) {
  .promo-bar__cta {
    max-width: 79px;
    padding: 0 10px;
    text-align: center;
    white-space: normal;
  }
}
