.celeb-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.celeb-popup[hidden] {
  display: none;
}

.celeb-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: celeb-popup-fade 0.3s ease;
}

.celeb-popup-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-card);
  max-width: 450px;
  width: 100%;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: celeb-popup-pop 0.3s ease;
}

@keyframes celeb-popup-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes celeb-popup-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.celeb-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-grey-text);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celeb-popup-close:hover {
  color: var(--color-black);
}

.celeb-popup-img {
  width: 350px;
  height: 350px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.celeb-popup-text {
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  text-align: center;
  margin: 0;
}

.celeb-popup-ref {
  color: #d4af37;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.celeb-popup-ref:hover {
  text-decoration: underline;
}

.celeb-popup-cta {
  width: 100%;
  justify-content: center;
  animation: wobble 1s ease-in-out infinite;
}

@keyframes wobble {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-5deg); }
  30%  { transform: rotate(3deg); }
  45%  { transform: rotate(-3deg); }
  60%  { transform: rotate(2deg); }
  75%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

/* ===========================
   EXIT-ANIMATIONEN POPUP
=========================== */

.celeb-popup.is-closing .celeb-popup-backdrop {
  animation: celeb-popup-fade-out 0.3s ease forwards;
}

.celeb-popup.is-closing .celeb-popup-card {
  animation: celeb-popup-pop-out 0.3s ease forwards;
}

@keyframes celeb-popup-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes celeb-popup-pop-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.96); }
}

/* ===========================
   MINI-WIDGET
=========================== */

.celeb-mini {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  width: 220px;
  height: 70px;
  padding: 12px 16px;
  background: var(--color-white);
  border: 2px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  text-align: left;
  animation: celeb-mini-fade-in 0.4s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.celeb-mini[hidden] {
  display: none;
}

.celeb-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
}

.celeb-mini.is-closing {
  animation: celeb-mini-fade-out 0.3s ease forwards;
  pointer-events: none;
}

.celeb-mini-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.celeb-mini-text {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: #1a1a1a;
}

@keyframes celeb-mini-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes celeb-mini-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 768px) {
  .celeb-mini {
    width: 50px;
    height: 50px;
    bottom: 120px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .celeb-mini-text {
    display: none;
  }
}

@media (max-width: 600px) {
  .celeb-popup-card {
    max-width: 90%;
    padding: 32px 20px 24px;
  }

  .celeb-popup-img {
    width: 280px;
    height: 280px;
  }

  .celeb-popup-text {
    font-size: 14px;
  }
}
