.gleam-floating,
.gleam-floating * {
  box-sizing: border-box;
}

.gleam-floating {
  position: relative;
  z-index: 900;
}

.gleam-floating__trial[hidden] {
  display: none;
}

.gleam-floating__trial.is-closing {
  pointer-events: none;
  transform-origin: left bottom;
  animation: gleam-floating-trial-close 320ms cubic-bezier(0.55, 0, 0.8, 0.25)
    forwards;
}

.gleam-floating__trial {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  width: min(240px, calc(100vw - 40px));
  padding: 15px;
  color: #350015;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color-scheme: light;
  background: radial-gradient(ellipse at 50% 40%, #fff8da 0%, #ffedb6 100%);
  border: 1px solid #fff2c9;
  border-radius: 17px;
  box-shadow:
    0 14px 48px #210e2829,
    0 3px 10px #210e2810;
}

.gleam-floating__trial::after {
  position: absolute;
  z-index: -1;
  inset: 14px;
  content: "";
  background: linear-gradient(150deg, #fffef1, #fffbe6);
  border-radius: 19px;
}

.gleam-floating__trial-top,
.gleam-floating__trial-eyebrow,
.gleam-floating__trial-title,
.gleam-floating__trial-offer-wrap,
.gleam-floating__trial-note,
.gleam-floating__trial-claim {
  position: relative;
  z-index: 1;
}

.gleam-floating__trial-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}

.gleam-floating__trial-brand {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.8px;
}

.gleam-floating__trial-close {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #514952;
  cursor: pointer;
  background: #ffffffb8;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(102, 79, 255, 0.3);
  transition:
    box-shadow 0.5s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  align-items: center;
  justify-content: center;
}

.gleam-floating__trial-close:hover {
  background: #fff;
}

.gleam-floating__trial-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition:
    filter 0.3s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.gleam-floating__trial:hover .gleam-floating__trial-icon,
.gleam-floating__trial:focus-visible .gleam-floating__trial-icon {
  box-shadow:
    0 8px 20px rgba(102, 79, 255, 0.46),
    0 0 0 5px rgba(118, 89, 255, 0.12);
  transform: rotate(45deg) scale(1.08);
}

.gleam-floating__trial:hover .gleam-floating__trial-icon svg,
.gleam-floating__trial:focus-visible .gleam-floating__trial-icon svg {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.72));
  transform: rotate(135deg) scale(0.88);
}

.gleam-floating__trial-eyebrow {
  margin: 4px 15px 2px;
  color: #350015;
  font-size: 12px;
}

.gleam-floating__trial-title {
  width: fit-content;
  margin: 0 15px;
  color: #350015;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

.gleam-floating__trial-title::after {
  position: absolute;
  top: 3px;
  right: -8px;
  width: 7px;
  height: 7px;
  content: "";
  background: #ff8631;
  border-radius: 50%;
}

.gleam-floating__trial-offer-wrap {
  margin: 20px 15px 0;
  isolation: isolate;
}

.gleam-floating__trial-offer-wrap::before {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: -1;
  width: 30px;
  height: 30px;
  content: "";
  background: #ff8000;
  border-radius: 50%;
  opacity: 0.6;
}

.gleam-floating__trial-offer {
  display: grid;
  grid-template-columns: 35% 65%;
  /* min-height: 94px; */
  padding: 12px 0;
  background: #fffff8;
  border-radius: 10px;
  box-shadow: 0 6px 16px #e9b94c17;
}

.gleam-floating__trial-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  justify-content: center;
  min-width: 0;
}

.gleam-floating__trial-days {
  align-items: center;
  border-right: 1px solid #b8a6af;
}

.gleam-floating__trial-traffic {
  padding-left: 17px;
}

.gleam-floating__trial-stat strong {
  color: #350015;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -1.5px;
  white-space: nowrap;
}

.gleam-floating__trial-traffic strong {
  font-size: 24px;
}

-stat small {
  color: #604454;
  font-size: 13px;
}

.gleam-floating__trial-note {
  margin: 14px 15px 10px;
  color: #604454;
  font-size: 12px;
  text-align: center;
}

.gleam-floating__trial-claim {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: calc(100% - 30px);
  min-height: 45px;
  padding: 10px 12px;
  margin: 15px auto;
  color: #210d08;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(100deg, #ff7500, #ff8900);
  border: 0;
  border-radius: 999px;
  animation: gleam-floating-trial-breathe 4.68s ease-in-out infinite;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.gleam-floating__trial-claim-compact {
  display: none;
}

.gleam-floating__trial-claim svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gleam-floating__trial-claim:hover {
  animation-play-state: paused;
  box-shadow: 0 5px 12px #ff800030;
  transform: translateY(-1px);
}

.gleam-floating__trial-claim:active {
  transform: translateY(0);
}

.gleam-floating__trial-close:focus-visible,
.gleam-floating__trial-claim:focus-visible {
  outline: 3px solid #6b3c91;
  outline-offset: 3px;
}
.gleam-floating__contact {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  gap: 10px;
  align-items: center;
}

.gleam-floating__contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  background: rgba(12, 16, 35, 0.9);
  border: 1px solid rgba(143, 126, 255, 0.28);
  border-radius: 24px;
  box-shadow:
    0 12px 32px rgba(10, 14, 35, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(16px);
}

.gleam-floating__contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.gleam-floating__contact-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gleam-floating__contact-button[data-floating-channel="telegram"] svg path {
  fill: currentColor;
  stroke: none;
}

.gleam-floating__contact-button:hover,
.gleam-floating__contact-button:focus-visible,
.gleam-floating__contact-button.is-active {
  color: #fff;
  background: linear-gradient(145deg, #7659ff, #5145dc);
  outline: none;
  transform: translateY(-1px);
}

.gleam-floating__preview[hidden],
.gleam-floating__preview [hidden] {
  display: none;
}

.gleam-floating__preview {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 184px;
  min-height: 224px;
  padding: 15px;
  color: #141824;
  text-align: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(218, 222, 239, 0.96);
  border-radius: 16px;
  box-shadow:
    0 18px 46px rgba(26, 31, 63, 0.2),
    0 0 0 1px rgba(112, 92, 255, 0.04) inset;
  backdrop-filter: blur(18px);
  animation: gleam-floating-preview-in 0.16s ease-out;
}

.gleam-floating__preview::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 2px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    #7659ff 30%,
    #42d5ff 70%,
    transparent
  );
  border-radius: 0 0 4px 4px;
}

.gleam-floating__preview::after {
  position: absolute;
  right: -5px;
  bottom: 20px;
  width: 9px;
  height: 9px;
  content: "";
  background: #fff;
  border-top: 1px solid rgba(218, 222, 239, 0.96);
  border-right: 1px solid rgba(218, 222, 239, 0.96);
  transform: rotate(45deg);
}

.gleam-floating__preview-qr {
  order: 2;
  width: 148px;
  height: 148px;
  padding: 5px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(30, 38, 70, 0.08);
}

.gleam-floating__preview-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gleam-floating__preview-copy {
  display: grid;
  order: 1;
  gap: 1px;
  min-width: 0;
}

.gleam-floating__preview-copy strong {
  font-size: 15px;
  line-height: 1.35;
}

.gleam-floating__preview-copy span {
  color: #68758a;
  font-size: 12px;
  line-height: 1.4;
}

.gleam-floating__preview-email {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 6px 14px 6px 7px;
  color: #30374a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
  border-radius: 22px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.gleam-floating__preview-email::before {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 9px;
  color: #fff;
  font-size: 15px;
  content: "@";
  background: linear-gradient(145deg, #7659ff, #5145dc);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(102, 79, 255, 0.24);
}

.gleam-floating__preview.is-email {
  width: auto;
  min-width: 246px;
  min-height: 54px;
  padding: 5px;
  border-radius: 28px;
}

.gleam-floating__preview.is-email::before {
  display: none;
}

.gleam-floating__preview-email:hover,
.gleam-floating__preview-email:focus-visible {
  color: #5e46db;
  background: #f5f3ff;
  outline: none;
}

@keyframes gleam-floating-trial-close {
  0% {
    opacity: 1;
    transform: rotate(0deg) translateX(0) scale(1);
  }
  55% {
    opacity: 0.85;
    transform: rotate(-24deg) translateX(-18px) scale(0.92);
  }
  100% {
    opacity: 0;
    transform: rotate(-72deg) translateX(-120%) scale(0.72);
  }
}

@keyframes gleam-floating-trial-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 128, 0, 0),
      0 4px 10px rgba(255, 128, 0, 0.14);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(255, 128, 0, 0.11),
      0 6px 13px rgba(255, 128, 0, 0.18);
    transform: scale(1.03);
  }
}

@keyframes gleam-floating-preview-in {
  from {
    opacity: 0;
    transform: translateX(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gleam-floating__trial-icon,
  .gleam-floating__trial-icon svg {
    transition: none;
  }

  .gleam-floating__trial:hover .gleam-floating__trial-icon,
  .gleam-floating__trial:focus-visible .gleam-floating__trial-icon,
  .gleam-floating__trial:hover .gleam-floating__trial-icon svg,
  .gleam-floating__trial:focus-visible .gleam-floating__trial-icon svg {
    transform: none;
  }
}

@media (min-width: 1300px) and (max-width: 1599px) {
  .gleam-floating__trial {
    bottom: 16px;
    left: 16px;
    width: 57px;
    height: 57px;
    padding: 6px;
    overflow: hidden;
    background: #fff8da;
    border-radius: 999px;
    transition: width 180ms ease;
  }

  .gleam-floating__trial:hover,
  .gleam-floating__trial:focus-within {
    width: 202px;
  }

  .gleam-floating__trial::after,
  .gleam-floating__trial-brand,
  .gleam-floating__trial-eyebrow,
  .gleam-floating__trial-title,
  .gleam-floating__trial-offer-wrap,
  .gleam-floating__trial-note {
    display: none;
  }

  .gleam-floating__trial-top {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 2;
    display: block;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-50%);
    transition:
      visibility 0s linear 180ms,
      opacity 120ms ease;
  }

  .gleam-floating__trial:hover .gleam-floating__trial-top,
  .gleam-floating__trial:focus-within .gleam-floating__trial-top {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .gleam-floating__trial-close {
    width: 28px;
    height: 28px;
    color: #5f351d;
    background: #ffffffb8;
  }

  .gleam-floating__trial-close svg {
    width: 14px;
    height: 14px;
  }

  .gleam-floating__trial-claim {
    position: relative;
    justify-content: center;
    width: 43px;
    height: 43px;
    min-height: 43px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    border-radius: 50%;
    animation: gleam-floating-trial-breathe 4.68s ease-in-out infinite;
    transition:
      width 180ms ease,
      padding 180ms ease,
      border-radius 180ms ease;
  }

  .gleam-floating__trial:hover .gleam-floating__trial-claim,
  .gleam-floating__trial:focus-within .gleam-floating__trial-claim {
    justify-content: center;
    width: 188px;
    padding: 9px 44px 9px 12px;
    border-radius: 999px;
    animation-play-state: paused;
    transform: scale(1);
  }

  .gleam-floating__trial-claim-compact {
    position: absolute;
    inset: 0;
    display: grid;
    visibility: visible;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    opacity: 1;
    place-items: center;
    transition:
      visibility 0s,
      opacity 80ms ease;
  }

  .gleam-floating__trial-claim-full {
    visibility: hidden;
    white-space: nowrap;
    opacity: 0;
    transition:
      visibility 0s linear 180ms,
      opacity 100ms ease;
  }

  .gleam-floating__trial:hover .gleam-floating__trial-claim-compact,
  .gleam-floating__trial:focus-within .gleam-floating__trial-claim-compact {
    visibility: hidden;
    opacity: 0;
  }

  .gleam-floating__trial:hover .gleam-floating__trial-claim-full,
  .gleam-floating__trial:focus-within .gleam-floating__trial-claim-full {
    visibility: visible;
    opacity: 1;
    transition-delay: 70ms;
  }

  .gleam-floating__trial-claim svg {
    display: none;
  }
}

@media (max-width: 1299px) {
  .gleam-floating {
    display: none;
  }
}
