/* ===============================
   CLOUDORA – GENIE UI (POLISHED)
   tawk.io SAFE
================================ */

#genie {
  position: fixed;
  right: 20px;
  bottom: 390px;          /* ⬅️ top 70% hatao */
  top: auto;
  transform: none;      /* ⬅️ translateY hatao */
  z-index: 99999;       /* ⬅️ sabse upar */
  pointer-events: none;
}


/* ===== FLOAT BUTTON ===== */
#genieToggle {
  pointer-events: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6cf2c2, #4cc9ff);
  box-shadow:
    0 10px 25px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  animation: geniePulse 3s ease-in-out infinite;
  animation: genieFloat 4s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
@keyframes genieFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
#genieToggle:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

#genieToggle img {
  width: 134px;
  height: 134px;
  object-fit: contain;
  pointer-events: none;
}

/* subtle pulse */
@keyframes geniePulse {
  0%,100% { box-shadow: 0 10px 25px rgba(0,0,0,.35); }
  50% { box-shadow: 0 10px 25px rgba(108,242,194,.55); }
}

/* ===== PANEL ===== */
#geniePanel {
  pointer-events: auto;
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%) scale(.92);
  width: 520px;
  max-height: 480px;
  background: var(--bg, #0f1623);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: all .28s cubic-bezier(.4,0,.2,1);
}

#geniePanel.open {
  opacity: 1;
  transform: scale(1);
  animation: geniePop .35s ease-out;
}
@keyframes geniePop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== HEADER ===== */
#geniePanel header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#geniePanel header strong {
  color: #fff;
  font-size: 14px;
  letter-spacing: .3px;
}

#geniePanel header span {
  display: block;
  font-size: 11px;
  color: #9ca3af;
}

#genieClose {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

#genieClose:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* ===== BODY ===== */
.genie-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
#geniePanel footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}

#geniePanel input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: none;
  background: #0b1220;
  color: #9ca3af;
  font-size: 13px;
  outline: none;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] #geniePanel {
  --bg: #ffffff;
}

[data-theme="light"] .genie-body {
  color: #374151;
}

[data-theme="light"] #geniePanel input {
  background: #f3f4f6;
  color: #111827;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  #genie {
    top: auto;
    bottom: 100px;
    transform: none;
  }

  #geniePanel {
    right: 0;
    top: auto;
    bottom: 70px;
    transform: scale(.95);
    width: 92vw;
  }

  #geniePanel.open {
    transform: scale(1);
  }
}
.genie-msg {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 85%;
}

.genie-msg.bot {
  background: #1f2937;
  color: #e5e7eb;
}

.genie-msg.user {
  background: #4cc9ff;
  color: #0b0f14;
  margin-left: auto;
}
@media (max-width: 480px) {
  #genie {
    right: 16px;
    bottom: 90px;
  }

  #geniePanel {
    right: 4vw;
    left: 4vw;
    bottom: 80px;
    width: auto;
    max-height: 65vh;
  }
}
section, .container, .card {
  overflow: visible !important;
}
/* ===== GENIE ACTION BUTTONS ===== */
.genie-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.genie-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, #111827, #0b1220);
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.genie-action-btn:active {
  transform: scale(.97);
}
.genie-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.45);
  background: linear-gradient(135deg, #1f2937, #0f172a);
}

.genie-action-btn span {
  font-size: 18px;
}

/* Light mode */
[data-theme="light"] .genie-action-btn {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
}
/* ===== GENIE PRIMARY CTA (GENIE PAGE) ===== */
.genie-action-btn.primary {
  background: linear-gradient(135deg, #6cf2c2, #4cc9ff);
  color: #0b0f14;
  font-weight: 600;
  box-shadow:
    0 10px 28px rgba(76,201,255,.45),
    inset 0 0 0 1px rgba(255,255,255,.35);
}

.genie-action-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(76,201,255,.55);
}
