/* Dynamic Island — recent signed deals on homepage hero */
.wp-deal-island {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  transform: translateX(-50%) translateY(10px) scale(0.86);
  opacity: 0;
  pointer-events: none;
  font-family: var(--wp-font-sans, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.wp-deal-island.is-ready {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.wp-deal-island-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(760px, calc(100vw - 40px));
  height: 46px;
  padding: 0 18px 0 8px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 42%),
    rgba(14, 14, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  color: #fff;
  overflow: visible;
  white-space: nowrap;
  box-sizing: border-box;
  transform-origin: 50% 50%;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.42s ease;
}

.wp-deal-island.is-swap .wp-deal-island-pill {
  transform: scale(0.94, 0.86);
}

.wp-deal-island.is-pop .wp-deal-island-pill {
  transform: scale(1.03, 1.06);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.wp-deal-island-icon {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #4ade80, #16a34a 70%);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18), 0 4px 10px rgba(22, 163, 74, 0.35);
}

.wp-deal-island-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.wp-deal-island-live {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid #0e0e10;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: wp-deal-island-pulse 2.2s ease-out infinite;
}

.wp-deal-island-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.wp-deal-island.is-swap .wp-deal-island-copy {
  opacity: 0;
  transform: translateY(6px);
}

.wp-deal-island-kicker {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}

.wp-deal-island-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
}

.wp-deal-island-msg {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
}

.wp-deal-island-msg b {
  font-weight: 650;
  color: #fff;
}

.wp-deal-island-msg em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 450;
}

@keyframes wp-deal-island-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@media (hover: hover) {
  .wp-deal-island-pill:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%),
      rgba(18, 18, 20, 0.86);
  }
}

@media (max-width: 768px) {
  .wp-hero .wp-hero-content {
    padding-bottom: 64px !important;
  }
  .wp-deal-island {
    bottom: 10px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    display: flex;
    justify-content: center;
  }

  .wp-deal-island-pill {
    height: 42px;
    width: auto;
    max-width: 100%;
    padding: 0 14px 0 6px;
    gap: 8px;
    overflow: hidden;
  }
  .wp-deal-island-copy,
  .wp-deal-island-msg {
    min-width: 0;
    flex: 1 1 auto;
  }
  .wp-deal-island-msg {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wp-deal-island-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .wp-deal-island-icon svg {
    width: 14px;
    height: 14px;
  }

  .wp-deal-island-kicker {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .wp-deal-island-msg {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .wp-deal-island-kicker,
  .wp-deal-island-divider {
    display: none;
  }

  .wp-deal-island-pill {
    height: 40px;
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-deal-island,
  .wp-deal-island-pill,
  .wp-deal-island-copy {
    transition: none !important;
  }
  .wp-deal-island-live {
    animation: none;
  }
  .wp-deal-island.is-swap .wp-deal-island-pill,
  .wp-deal-island.is-pop .wp-deal-island-pill {
    transform: none;
  }
}
