/* Shared celebration/notification animations (used across dashboard/chat/dating)
   Keep this lightweight and dependency-free. */

:root {
  --dgc-anim-z: 999999;
  --dgc-anim-bg: radial-gradient(120% 120% at 20% 10%, rgba(255, 92, 141, 0.22) 0%, rgba(9, 11, 18, 0.86) 55%, rgba(9, 11, 18, 0.92) 100%);
}

.dgc-anim-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  z-index: var(--dgc-anim-z);
  background: rgba(9, 11, 18, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.dgc-anim-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dgc-anim-card {
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dgc-anim-bg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  animation: dgcAnimPop 220ms ease forwards;
  position: relative;
}

@keyframes dgcAnimPop {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.dgc-anim-body {
  padding: 18px 18px 20px;
  text-align: center;
  position: relative;
}

.dgc-anim-title {
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 950;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
}

.dgc-anim-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(245, 245, 255, 0.78);
}

.dgc-anim-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 12, 20, 0.45);
}

.dgc-anim-chip[data-tone="gold"] {
  background: linear-gradient(135deg, rgba(255, 211, 106, 0.18), rgba(255, 179, 0, 0.10));
  border-color: rgba(255, 211, 106, 0.25);
}

.dgc-anim-chip[data-tone="pink"] {
  background: linear-gradient(135deg, rgba(255, 92, 141, 0.22), rgba(180, 90, 255, 0.10));
  border-color: rgba(255, 92, 141, 0.26);
}

/* Coin burst (re-usable; modeled after welcome coins) */
.dgc-anim-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dgc-anim-coin {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.2) 30%, rgba(0,0,0,0) 55%),
      linear-gradient(135deg, #ffd36a, #ffb300);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
  transform: translate(0, 0) rotate(0deg) scale(0.9);
  opacity: 0;
  animation: dgcAnimCoinBurst 980ms cubic-bezier(.16,.84,.22,1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes dgcAnimCoinBurst {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.7); opacity: 0; filter: blur(0px); }
  12% { opacity: 1; transform: translate(calc(var(--dx, 0px) * 0.18), calc(var(--dy, 0px) * 0.18)) rotate(calc(var(--rot, 0deg) * 0.2)) scale(1); }
  55% { opacity: 1; transform: translate(calc(var(--dx, 0px) * 0.7), calc(var(--dy, 0px) * 0.7)) rotate(calc(var(--rot, 0deg) * 0.7)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)) scale(0.85); filter: blur(0.3px); }
}

/* Hearts confetti */
.dgc-anim-heart {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
  opacity: 0;
  pointer-events: none;
  animation: dgcAnimHeart 1100ms cubic-bezier(.16,.84,.22,1) forwards;
  animation-delay: var(--delay, 0ms);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

.dgc-anim-heart::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.25) 30%, rgba(0,0,0,0) 55%),
    linear-gradient(135deg, rgba(255,92,141,1), rgba(180,90,255,1));
  clip-path: path("M7 13 C 7 13, 0 8.6, 0 4.9 C 0 2.7, 1.6 1, 3.8 1 C 5 1, 6.2 1.6, 7 2.6 C 7.8 1.6, 9 1, 10.2 1 C 12.4 1, 14 2.7, 14 4.9 C 14 8.6, 7 13, 7 13 Z");
}

@keyframes dgcAnimHeart {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.75); }
  14% { opacity: 1; transform: translate(calc(-50% + (var(--dx, 0px) * 0.18)), calc(-50% + (var(--dy, 0px) * 0.18))) rotate(calc(var(--rot, 0deg) * 0.2)) scale(1); }
  60% { opacity: 1; transform: translate(calc(-50% + (var(--dx, 0px) * 0.7)), calc(-50% + (var(--dy, 0px) * 0.7))) rotate(calc(var(--rot, 0deg) * 0.7)) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) rotate(var(--rot, 0deg)) scale(0.85); }
}

/* Lightweight toast pop (non-intrusive) */
.dgc-anim-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: calc(var(--dgc-anim-z) + 1);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12, 14, 24, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.94);
  box-shadow: 0 24px 60px rgba(0,0,0,0.52);
  transform: translateY(10px);
  opacity: 0;
  animation: dgcAnimToastIn 200ms ease forwards;
}

@keyframes dgcAnimToastIn {
  to { transform: translateY(0); opacity: 1; }
}

.dgc-anim-toast.is-leaving {
  animation: dgcAnimToastOut 160ms ease forwards;
}

@keyframes dgcAnimToastOut {
  to { transform: translateY(10px); opacity: 0; }
}

/* Video overlay chip (free/paid counter) */
.dgc-user-video-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 6;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 12, 20, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.dgc-user-video-chip[data-tone="free"] {
  background: linear-gradient(135deg, rgba(255, 211, 106, 0.18), rgba(255, 179, 0, 0.10));
  border-color: rgba(255, 211, 106, 0.25);
}

.dgc-user-video-chip[data-tone="paid"] {
  background: linear-gradient(135deg, rgba(255, 92, 141, 0.22), rgba(180, 90, 255, 0.10));
  border-color: rgba(255, 92, 141, 0.26);
}

/* ────────────────────────────────────────────────
   Info popup — animated card with action buttons
   ──────────────────────────────────────────────── */
.dgc-anim-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  animation: dgcAnimIconPulse 1.6s ease-in-out infinite;
}

@keyframes dgcAnimIconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.dgc-anim-icon[data-tone="info"] {
  background: linear-gradient(135deg, rgba(67, 169, 255, 0.18), rgba(90, 120, 255, 0.12));
  border-color: rgba(67, 169, 255, 0.22);
}

.dgc-anim-icon[data-tone="success"] {
  background: linear-gradient(135deg, rgba(80, 250, 160, 0.16), rgba(60, 200, 140, 0.10));
  border-color: rgba(80, 250, 160, 0.20);
}

.dgc-anim-icon[data-tone="warning"] {
  background: linear-gradient(135deg, rgba(255, 200, 80, 0.18), rgba(255, 170, 40, 0.10));
  border-color: rgba(255, 200, 80, 0.24);
}

.dgc-anim-icon[data-tone="love"] {
  background: linear-gradient(135deg, rgba(255, 92, 141, 0.22), rgba(180, 90, 255, 0.10));
  border-color: rgba(255, 92, 141, 0.26);
}

.dgc-anim-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.dgc-anim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.dgc-anim-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
}

.dgc-anim-btn:active {
  transform: scale(0.97);
}

.dgc-anim-btn--primary {
  background: linear-gradient(135deg, rgba(255, 92, 141, 0.28), rgba(180, 90, 255, 0.18));
  border-color: rgba(255, 92, 141, 0.30);
}

.dgc-anim-btn--primary:hover {
  background: linear-gradient(135deg, rgba(255, 92, 141, 0.38), rgba(180, 90, 255, 0.26));
}

.dgc-anim-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.65);
}

.dgc-anim-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}

/* Text input inside anim card */
.dgc-anim-input {
  width: 100%;
  max-width: 340px;
  margin: 10px auto 0;
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  outline: none;
  transition: border-color 120ms ease;
}

.dgc-anim-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.dgc-anim-input:focus {
  border-color: rgba(255, 92, 141, 0.45);
}

.dgc-anim-hint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

