:root {
  --wb-bg: linear-gradient(135deg, rgba(8, 18, 35, 0.96) 0%, rgba(11, 26, 48, 0.98) 52%, rgba(6, 15, 28, 0.98) 100%);
  --wb-border: rgba(103, 214, 255, 0.24);
  --wb-border-strong: rgba(95, 241, 194, 0.36);
  --wb-accent: #67d6ff;
  --wb-accent-strong: #5ff1c2;
  --wb-label-color: #8ff6de;
  --wb-title-color: #f7fbff;
  --wb-subtitle-color: #b4cae7;
  --wb-cta-bg: linear-gradient(135deg, #86ffd7 0%, #49dcb0 52%, #17b889 100%);
  --wb-cta-bg-hover: linear-gradient(135deg, #9dffe0 0%, #61e7bf 52%, #20c795 100%);
  --wb-cta-color: #04111c;
  --wb-close-color: rgba(247, 251, 255, 0.88);
  --wb-close-hover: #ffffff;
  --wb-shadow: 0 -18px 48px rgba(2, 8, 18, 0.44);
  --wb-anim-speed: 0.5s;
}

.wb-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 20px));
  transition:
    transform var(--wb-anim-speed) cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity var(--wb-anim-speed) ease,
    visibility 0s linear var(--wb-anim-speed);
}

.wb-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 109, 255, 0.18), transparent 32%),
    radial-gradient(circle at 100% 0, rgba(95, 241, 194, 0.15), transparent 26%);
  pointer-events: none;
}

.wb-banner.wb-visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    transform var(--wb-anim-speed) cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity var(--wb-anim-speed) ease,
    visibility 0s linear 0s;
}

.wb-banner.wb-hidden {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 20px));
}

.wb-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 58px 14px 18px;
  border: 1px solid var(--wb-border);
  border-radius: 24px;
  background: var(--wb-bg);
  box-shadow: var(--wb-shadow);
  backdrop-filter: blur(16px);
}

.wb-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.wb-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(103, 214, 255, 0.18), rgba(95, 241, 194, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(4, 13, 28, 0.28);
  font-size: 1.7rem;
  line-height: 1;
  animation: wb-pulse 2s ease-in-out infinite;
}

.wb-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wb-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wb-label-color);
}

.wb-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--wb-title-color);
}

.wb-subtitle {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--wb-subtitle-color);
}

.wb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--wb-cta-bg);
  box-shadow:
    0 14px 30px rgba(4, 17, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: var(--wb-cta-color);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease;
}

.wb-cta:hover {
  background: var(--wb-cta-bg-hover);
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(4, 17, 28, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.wb-cta:focus-visible,
.wb-close:focus-visible {
  outline: 2px solid var(--wb-accent-strong);
  outline-offset: 3px;
}

.wb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wb-close-color);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.wb-close:hover {
  color: var(--wb-close-hover);
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.wb-close-icon {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.wb-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 46px;
}

.wb-countdown-ring {
  position: relative;
  width: 42px;
  height: 42px;
}

.wb-countdown-ring svg {
  display: block;
  transform: rotate(-90deg);
}

.wb-countdown-ring circle.track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3;
}

.wb-countdown-ring circle.progress {
  fill: none;
  stroke: var(--wb-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.wb-countdown-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wb-title-color);
}

.wb-countdown-label {
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wb-subtitle-color);
}

body.wb-banner-visible .scrolltop {
  bottom: calc(16px + var(--wb-banner-offset, 0px));
}

@keyframes wb-pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 720px) {
  .wb-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .wb-inner {
    gap: 12px;
    padding: 12px 52px 12px 14px;
    border-radius: 22px;
  }

  .wb-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 1.5rem;
  }

  .wb-title {
    font-size: 0.96rem;
  }

  .wb-subtitle {
    font-size: 0.76rem;
  }
}

@media (max-width: 520px) {
  .wb-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .wb-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 12px 46px 12px 12px;
  }

  .wb-text {
    gap: 2px;
  }

  .wb-title {
    font-size: 0.9rem;
  }

  .wb-subtitle {
    font-size: 0.73rem;
  }

  .wb-countdown {
    justify-self: end;
  }

  .wb-cta {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: 11px 16px;
  }
}

@media (max-width: 360px) {
  .wb-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 11px 42px 11px 11px;
    border-radius: 20px;
  }

  .wb-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 1.35rem;
  }

  .wb-label {
    font-size: 0.62rem;
  }

  .wb-title {
    font-size: 0.86rem;
  }

  .wb-subtitle {
    font-size: 0.7rem;
  }

  .wb-countdown {
    display: none;
  }
}

@media (max-width: 300px) {
  .wb-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .wb-inner {
    gap: 8px;
    padding: 10px 40px 10px 10px;
  }

  .wb-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .wb-title {
    font-size: 0.82rem;
  }

  .wb-subtitle {
    font-size: 0.66rem;
  }

  .wb-cta {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}
