.ck-genie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 27, 62, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}
.ck-genie-overlay.is-open { display: flex; opacity: 1; }

.ck-genie-panel {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 32px);
  border-radius: 30px;
  padding: 40px 32px 30px;
  text-align: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: scale(0.4) rotate(-12deg) translateY(40px);
  opacity: 0;
}
.ck-genie-panel::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  animation: ckGenieShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ckGenieShimmer {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
.ck-genie-overlay.is-open .ck-genie-panel {
  animation: ckGenieTumble .7s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}
@keyframes ckGenieTumble {
  0%   { transform: scale(0.4) rotate(-12deg) translateY(40px); opacity: 0; }
  55%  { transform: scale(1.07) rotate(4deg)  translateY(0);    opacity: 1; }
  78%  { transform: scale(0.97) rotate(-2deg) translateY(0);    opacity: 1; }
  100% { transform: scale(1)    rotate(0deg)  translateY(0);    opacity: 1; }
}

.ck-genie-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28); color: #fff;
  font-size: 16px; cursor: pointer; line-height: 1;
  transition: background .15s ease;
}
.ck-genie-close:hover { background: rgba(255, 255, 255, 0.5); }

.ck-genie-aura {
  position: absolute;
  top: 70px; left: 50%;
  width: 220px; height: 220px;
  margin-left: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.45) 0%, rgba(255,107,0,0.18) 45%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: ckGenieAura 3s ease-in-out infinite;
}
@keyframes ckGenieAura {
  0%, 100% { transform: scale(0.9); opacity: .6; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.ck-genie-figure {
  position: relative;
  z-index: 1;
  font-size: 8rem; line-height: 1; margin-bottom: 4px;
  filter: drop-shadow(0 12px 22px rgba(124, 58, 237, 0.6));
  animation: ckGenieFloat 2.6s ease-in-out infinite;
  transform-origin: center bottom;
  display: inline-block;
}
@keyframes ckGenieFloat {
  0%   { transform: translateY(0) rotate(-4deg) scale(1); }
  25%  { transform: translateY(-14px) rotate(3deg) scale(1.04); }
  50%  { transform: translateY(-6px) rotate(-2deg) scale(1); }
  75%  { transform: translateY(-16px) rotate(4deg) scale(1.05); }
  100% { transform: translateY(0) rotate(-4deg) scale(1); }
}

.ck-genie-items {
  display: flex; justify-content: center; gap: 16px;
  font-size: 2.1rem; margin-bottom: 16px;
}
.ck-genie-items span {
  display: inline-block;
  animation: ckGenieSparkle 1.8s ease-in-out infinite;
}
.ck-genie-items span:nth-child(2) { animation-delay: .25s; }
.ck-genie-items span:nth-child(3) { animation-delay: .5s; }
.ck-genie-items span:nth-child(4) { animation-delay: .75s; }
.ck-genie-items span:nth-child(5) { animation-delay: 1s; }
@keyframes ckGenieSparkle {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: .85; }
  50%      { transform: translateY(-12px) scale(1.25) rotate(8deg); opacity: 1; }
}

.ck-genie-title {
  font-family: 'Baloo 2', sans-serif; color: #fff;
  font-size: 1.35rem; margin: 0 0 8px;
}
.ck-genie-text {
  color: rgba(255, 255, 255, 0.94); font-size: 0.92rem;
  line-height: 1.55; margin: 0 0 18px;
}
.ck-genie-point {
  font-size: 1.4rem; margin-bottom: -4px;
  animation: ckGeniePoint 1s ease-in-out infinite;
}
@keyframes ckGeniePoint {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
.ck-genie-btn {
  display: inline-block; background: #FF6B00; color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 13px 32px; border-radius: 14px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.5);
  transition: transform .15s ease, background .15s ease;
}
.ck-genie-btn:hover { background: #e25e00; transform: translateY(-2px); }
.ck-genie-alt { margin-top: 14px; }
.ck-genie-alt a {
  color: rgba(255, 255, 255, 0.88); font-size: 0.82rem; text-decoration: underline;
}
