.rb-lanyard {
  position: fixed;
  top: 48px;
  right: 28px;
  z-index: 900;
  width: 210px;
  height: 350px;
  perspective: 900px;
  pointer-events: none;
  transform: translateZ(0);
}

.rb-lanyard * {
  box-sizing: border-box;
}

.rb-lanyard__pin {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 14%, #79eaff 16% 36%, #1677ff 38% 72%, #203d8e 74% 100%);
  box-shadow: 0 5px 14px rgba(22, 119, 255, 0.26);
  transform: translateX(-50%);
}

.rb-lanyard__rope {
  position: absolute;
  inset: 5px 0 auto;
  width: 210px;
  height: 250px;
  overflow: visible;
  pointer-events: none;
}

.rb-lanyard__rope-path,
.rb-lanyard__rope-shadow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rb-lanyard__rope-shadow {
  stroke: rgba(10, 26, 56, 0.16);
  stroke-width: 13;
  transform: translateY(3px);
  filter: blur(4px);
}

.rb-lanyard__rope-path {
  stroke: url("#rb-lanyard-rope-gradient");
  stroke-width: 10;
  filter: drop-shadow(0 7px 10px rgba(21, 66, 143, 0.18));
}

.rb-lanyard__card {
  position: absolute;
  top: 180px;
  left: 50%;
  width: 132px;
  min-height: 162px;
  padding: 22px 14px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background:
    radial-gradient(circle at 24% 8%, rgba(112, 224, 255, 0.24), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(226, 241, 255, 0.88));
  box-shadow:
    0 14px 28px rgba(15, 40, 76, 0.13),
    0 3px 8px rgba(15, 40, 76, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #071d34;
  text-align: center;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transform: translateX(-50%);
  transform-origin: 50% 6px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.rb-lanyard__card:active {
  cursor: grabbing;
}

.rb-lanyard__card-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset -7px -8px 16px rgba(57, 104, 154, 0.09),
    inset 7px 7px 14px rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.rb-lanyard__clip {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 38px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #203b58, #071a2e 58%, #3c5a78);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    0 2px 4px rgba(4, 15, 28, 0.18);
  transform: translateX(-50%) translateZ(4px);
}

.rb-lanyard__calendar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  width: 82px;
  height: 70px;
  margin: 13px auto 10px;
  overflow: hidden;
  border: 1px solid rgba(20, 104, 224, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 12px rgba(9, 36, 72, 0.09);
  transform: translateZ(8px);
}

.rb-lanyard__calendar-month {
  display: block;
  padding: 5px 3px 4px;
  background: linear-gradient(90deg, #1677ff, #615cff);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.rb-lanyard__calendar-day {
  display: block;
  color: #071d34;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.rb-lanyard__calendar-week {
  display: block;
  padding-bottom: 5px;
  color: #607185;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.rb-lanyard__title,
.rb-lanyard__desc {
  position: relative;
  z-index: 1;
  display: block;
  transform: translateZ(7px);
}

.rb-lanyard__title {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.22;
}

.rb-lanyard__desc {
  margin-top: 5px;
  color: #596b7e;
  font-size: 11px;
}

.rb-lanyard__glint {
  position: absolute;
  inset: -60% auto auto -80%;
  width: 76%;
  height: 230%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: rotate(24deg);
  animation: rb-lanyard-glint 5.6s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

.rb-lanyard.is-dragging .rb-lanyard__card {
  box-shadow:
    0 20px 34px rgba(15, 40, 76, 0.16),
    0 4px 10px rgba(15, 40, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@keyframes rb-lanyard-glint {
  0%,
  58% {
    opacity: 0;
    transform: translateX(0) rotate(24deg);
  }

  68% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(340%) rotate(24deg);
  }
}

@media (max-width: 900px) {
  .rb-lanyard {
    top: 58px;
    right: 6px;
    transform: scale(0.76);
    transform-origin: top right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-lanyard__glint {
    animation: none;
  }
}

/* White footer theme */
.footer-box {
  border-top: 1px solid #eceff3;
  background: #fff !important;
  color: #4b5563 !important;
}

.footer-box .footer-ft__nav,
.footer-box .footer-ft__nav i,
.footer-box .footer-ft__nav .icptxt {
  color: #4b5563 !important;
}

.footer-box .footer-ft__nav a {
  color: #1f2937 !important;
}

.footer-box .footer-ft__nav a:hover {
  color: #1687ff !important;
}

/* React Bits SpotlightCard behavior, adapted for the static product cards. */
.product-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(22, 135, 255, 0.2);
  isolation: isolate;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle 260px at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 78%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.product-card:hover::after,
.product-card:focus-within::after {
  opacity: 0.72;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

/* React Bits AnimatedContent behavior for the protocol copy block. */
.animated-content {
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 120px, 0);
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease;
  will-change: transform, opacity;
}

.animated-content.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .animated-content,
  .animated-content.is-visible {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
