.card-interactive {
  position: relative;
}

.card-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 35;
  border-radius: inherit;
}

.card-interactive.is-blurred::before {
  opacity: 1;
  pointer-events: auto;
}

.btn-toggle-popup {
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  position: absolute;
}

.btn-toggle-popup::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 5px solid transparent;
  border-radius: 50%;
  transform: rotate(0deg);
  transition: transform .4s ease;
  pointer-events: none;
}

.btn-toggle-popup.is-active::before {
  transform: rotate(360deg);
}

.btn-toggle-popup .icon {
  font-size: 18px;
  color: #fff;
  transition: transform .4s ease;
  transform: rotate(0deg);
}

.btn-toggle-popup.is-active .icon {
  transform: rotate(180deg);
}

.popup-content {
  --bg: #fff;
  position: absolute;
  bottom: 65px;
  right: 0;
  z-index: 100;
  background: var(--bg);
  padding: 10px;
  border-radius: 12px;
  max-width: 65px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
  opacity: 0;
  transform: scale(.75) translateY(40px);
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}

.popup-content.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.popup-content::after {
  content: '';
  position: absolute;
  bottom: -35px;
  right: 12px;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-top-color: var(--bg);
}

.card-interactivet::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    transparent 0%, 
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.6) 70%,
    rgba(0,0,0,0.9) 100%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.card-interactivet::before {
  box-shadow: 0 0 20px rgba(74, 144, 217, 0.6), 0 0 40px rgba(74, 144, 217, 0.4);
}

.btn-toggle-popupt {
  background: #6C95B880;
  bottom: 2px;
  right: -7px;
}

.btn-toggle-popupt::before {
  border-top-color: #16df37;
}

.card-interactivec::before {
  box-shadow: 0 0 20px rgba(232, 146, 58, 0.6), 0 0 40px rgba(232, 146, 58, 0.4);
}

.btn-toggle-popupc {
  background: #6a39c5;
  bottom: 5px;
  right: 5px;
}

.btn-toggle-popupc::before {
  border-top-color: #E8923A;
}

.card-interactives::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    transparent 0%, 
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.6) 70%,
    rgba(0,0,0,0.9) 100%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.card-interactives::before {
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6), 0 0 40px rgba(76, 175, 80, 0.4);
}

.btn-toggle-popups {
  background: #4CAF50;
  bottom: 15px;
  right: 15px;
}

.btn-toggle-popups::before {
  border-top-color: #4CAF50;
}

.card-interactivee::before {
  box-shadow: 0 0 20px rgba(156, 39, 176, 0.6), 0 0 40px rgba(156, 39, 176, 0.4);
}

.btn-toggle-popupe {
  background: #9C27B0;
  bottom: 8px;
  right: 12px;
}

.btn-toggle-popupe::before {
  border-top-color: #9C27B0;
}

.card-interactive--simple::before {
  display: none;
}

.btn-toggle-popup--simple {
  background: #222;
  bottom: 10px;
  right: 10px;
}

.btn-toggle-popup--simple::before {
  border-top-color: #e78637;
}
