/* ═══════════════════════════════════════════════════════════════════
   Banu Ünal Ergün — True CoachHub Split-Screen 2-Column Architecture
   Stage 1: Compact Floating Popup Box (On Open / Exit-Intent)
   Stage 2: True 2-Column Split-Screen with Untouched Normal Navbar
   ═══════════════════════════════════════════════════════════════════ */

/* ── Floating Trigger Button (Bottom Right) ────────────────────── */
/* ── Floating Trigger Button (Bottom Right - Gold Gradient Edition) ─ */
.banu-chat-trigger {
  position: fixed;
  bottom: 25px;
  right: 28px;
  z-index: 9989;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #1a2744;
  cursor: pointer;
  background: linear-gradient(135deg, #d4a843 0%, #b8923a 100%);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  animation: banu-chat-heartbeat 4s ease-in-out infinite;
  box-sizing: border-box;
}
.banu-chat-trigger:hover {
  animation: none;
  transform: scale(1.08) !important;
  border-color: #0f172a;
  background: linear-gradient(135deg, #e0b94e 0%, #c8a040 100%);
  box-shadow: 0 12px 32px rgba(212, 168, 67, 0.55), 0 0 0 4px rgba(212, 168, 67, 0.25);
}
.banu-chat-trigger.open {
  animation: none;
  border-color: #00c853;
  background: linear-gradient(135deg, #00f576 0%, #00c853 100%);
  box-shadow: 0 8px 30px rgba(0, 245, 118, 0.5), 0 0 16px rgba(0, 245, 118, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.banu-chat-trigger .banu-coffee-icon {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  stroke-width: 2.2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.banu-chat-trigger .banu-smile-icon {
  width: 29px;
  height: 29px;
  stroke: #ffffff;
  stroke-width: 2.2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  position: absolute;
  opacity: 0;
  transform: scale(0.4) rotate(-120deg);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* ── OPEN DURUMUNDA: Kahve Fincanı Gülen Yüze Dönüşür ──────── */
.banu-chat-trigger.open .banu-coffee-icon {
  opacity: 0;
  transform: scale(0.4) rotate(120deg);
  position: absolute;
}
.banu-chat-trigger.open .banu-smile-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ── Tüten Duman / Buhar Efekti (Rising Coffee Steam) ────────── */
.banu-steam-container {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 20px;
  pointer-events: none;
  overflow: visible;
}
.banu-chat-trigger.open .banu-steam-container { display: none; }

.banu-steam-wisp {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 14px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(212, 168, 67, 0.4), transparent);
  border-radius: 4px;
  filter: blur(0.5px);
  animation: banu-steam-rise 2.4s ease-in-out infinite;
  opacity: 0;
}
.banu-steam-wisp.wisp-1 { left: 4px; animation-delay: 0s; }
.banu-steam-wisp.wisp-2 { left: 10px; animation-delay: 0.8s; height: 16px; }
.banu-steam-wisp.wisp-3 { left: 16px; animation-delay: 1.6s; }

@keyframes banu-steam-rise {
  0% {
    transform: translateY(0) scaleX(1) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.75;
  }
  50% {
    transform: translateY(-10px) scaleX(1.6) rotate(12deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-22px) scaleX(2.4) rotate(-14deg);
    opacity: 0;
  }
}

/* ── Hover Tooltip (Bir Kahve Molasında Danışın) ──────────────── */
.banu-chat-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #1a2744;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(26, 39, 68, 0.35), 0 0 0 1px rgba(200, 169, 81, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.banu-chat-trigger:hover .banu-chat-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.banu-chat-trigger.open .banu-chat-tooltip { display: none; }

/* ── Organik, Zarif Kalp Atışı (Heartbeat) ve Sıcak Altın Işıma ── */
@keyframes banu-chat-heartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.4), 0 0 0 0 rgba(212, 168, 67, 0.5);
  }
  12% {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(212, 168, 67, 0.5), 0 0 0 6px rgba(212, 168, 67, 0.3);
  }
  22% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.4), 0 0 0 2px rgba(212, 168, 67, 0.2);
  }
  32% {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(212, 168, 67, 0.48), 0 0 0 12px rgba(212, 168, 67, 0);
  }
  42% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.4), 0 0 0 0 rgba(212, 168, 67, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.4), 0 0 0 0 rgba(212, 168, 67, 0);
  }
}

.banu-chat-trigger::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 8px rgba(34, 197, 94, 0.6);
  animation: banu-dot-pulse 2.5s ease-in-out infinite;
  box-sizing: border-box;
}
.banu-chat-trigger.open::after { display: none; }

@keyframes banu-dot-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 6px rgba(34, 197, 94, 0.6);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(34, 197, 94, 0.9);
  }
}

/* ── Base Panel Styles ────────────────────────────────────────── */
.banu-chat-panel {
  position: fixed;
  z-index: 9990;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── STAGE 1: Compact Floating Popup Box (Initial Open) ───────── */
.banu-chat-panel.compact-mode {
  top: auto;
  bottom: 88px;
  right: 30px;
  width: 360px;
  height: 440px;
  max-height: calc(100vh - 110px);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translateY(12px) scale(0.96);
}
.banu-chat-panel.compact-mode.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.banu-chat-panel.compact-mode .banu-chat-messages {
  flex: 1;
  min-height: 80px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.banu-chat-panel.compact-mode .banu-chips-container {
  max-height: 95px;
  overflow-y: auto;
  padding: 4px 12px 6px;
}

.banu-chat-panel.compact-mode .banu-chat-disclaimer {
  padding: 4px 12px 10px;
  flex-shrink: 0;
}

/* ── STAGE 2: CoachHub Style 2-Column Split-Screen Panel ──────── */
.banu-chat-panel.expanded-mode {
  top: 0;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border-left: 1px solid #e2e8f0;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(0);
}
.banu-chat-panel.expanded-mode.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.banu-chat-panel.expanded-mode .banu-chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ── COACHHUB TRUE SPLIT-SCREEN & UNTOUCHED NAVBAR ────────────── */
@media (min-width: 993px) {
  html.banu-chat-expanded-html {
    overflow-x: hidden !important;
  }

  body.banu-chat-expanded {
    padding-right: 400px !important;
    box-sizing: border-box !important;
    transition: padding-right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Shift Navbar to Left Column smoothly without fixed body hacks */
  body.banu-chat-expanded .navbar,
  body.banu-chat-expanded nav.navbar,
  body.banu-chat-expanded #navbar {
    width: calc(100% - 400px) !important;
    max-width: calc(100% - 400px) !important;
    right: 400px !important;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 9980 !important;
  }
}

/* Adjust navbar container & menu spacing during split screen so original menu fits nicely */
body.banu-chat-expanded .navbar .container {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  max-width: 100% !important;
}

body.banu-chat-expanded .nav-menu {
  gap: 0.6rem !important;
}

body.banu-chat-expanded .nav-link {
  font-size: 0.84rem !important;
}

/* Constrain Floating Elements */
body.banu-chat-expanded .whatsapp-float {
  right: 28px !important;
}

body.banu-chat-expanded .banu-chat-trigger {
  right: 26px !important;
}

/* Ensure all WOW.js animated sections and lazy elements reveal 100% when split screen is active */
body.banu-chat-expanded .wow,
body.banu-chat-expanded .animate__animated,
body.banu-chat-expanded [class*="wow"],
body.banu-chat-expanded [style*="visibility: hidden"],
body.banu-chat-expanded [style*="visibility:hidden"] {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Custom Styled Scrollbar for Website in Split Screen */
body.banu-chat-expanded::-webkit-scrollbar {
  width: 7px;
}
body.banu-chat-expanded::-webkit-scrollbar-track {
  background: #f1f5f9;
}
body.banu-chat-expanded::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
body.banu-chat-expanded::-webkit-scrollbar-thumb:hover {
  background: #c8a951;
}

/* ── Header ───────────────────────────────────────────────────── */
.banu-chat-header {
  background: linear-gradient(135deg, #1a2744 0%, #243352 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(200, 169, 81, 0.2);
}
.banu-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200, 169, 81, 0.6);
  flex-shrink: 0;
}
.banu-chat-header-info {
  flex: 1;
  min-width: 0;
}
.banu-chat-header-name {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.banu-chat-header-status {
  color: rgba(200, 169, 81, 0.95);
  font-size: 0.76rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.banu-chat-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}
.banu-chat-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banu-chat-close:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.22);
}

/* ── Messages Container ──────────────────────────────────────── */
.banu-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafbfc;
  min-height: 100px;
}
.banu-chat-messages::-webkit-scrollbar { width: 5px; }
.banu-chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }

/* Message bubbles */
.banu-msg {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: banu-msg-in 0.25s ease-out;
  word-wrap: break-word;
}
@keyframes banu-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.banu-msg.bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.banu-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1a2744 0%, #2a3a5c 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 6px rgba(26, 39, 68, 0.18);
}

/* Formatting Inside Bot Messages */
.banu-msg.bot strong {
  color: #0f172a;
  font-weight: 700;
}

/* Typing indicator */
.banu-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.banu-typing span {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: banu-bounce 1.4s infinite ease-in-out;
}
.banu-typing span:nth-child(2) { animation-delay: 0.2s; }
.banu-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes banu-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Guided Chips (Prompt Suggestions) ──────────────── */
.banu-chips-container {
  padding: 4px 12px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  background: #fafbfc;
}
.banu-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.banu-chip:hover {
  background: #f0f4ff;
  border-color: #c8a951;
  color: #1a2744;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(200, 169, 81, 0.14);
}
.banu-chip-icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* ── Persistent Sticky CTA Above Input ──────────────── */
.banu-sticky-cta {
  padding: 6px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.banu-sticky-cta-btn {
  width: 100%;
  padding: 8px 14px;
  background: linear-gradient(135deg, #1a2744 0%, #243352 100%);
  color: #c8a951;
  border: 1px solid rgba(200, 169, 81, 0.4);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.banu-sticky-cta-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #243352 0%, #2a3a5c 100%);
  border-color: #c8a951;
  box-shadow: 0 4px 14px rgba(200, 169, 81, 0.25);
}

/* ── Inline CTA Cards inside chat ───────────────────── */
.banu-cta-card {
  background: linear-gradient(135deg, #1a2744 0%, #243352 100%);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 4px;
  max-width: 90%;
  align-self: flex-start;
  animation: banu-msg-in 0.25s ease-out;
}
.banu-cta-card-title {
  color: #c8a951;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.banu-cta-card-text {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 6px;
}
.banu-cta-btn {
  display: inline-block;
  padding: 7px 16px;
  background: linear-gradient(135deg, #c8a951 0%, #dbb862 100%);
  color: #1a2744;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.banu-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(200, 169, 81, 0.35);
}

/* Blog card inside chat */
.banu-blog-cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 90%;
  align-self: flex-start;
  animation: banu-msg-in 0.25s ease-out;
}
.banu-blog-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s;
}
.banu-blog-link:hover {
  border-color: #c8a951;
  background: #fffef5;
  transform: translateX(2px);
}
.banu-blog-link-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Input Area ──────────────────────────────────────── */
.banu-chat-input-area {
  padding: 8px 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  flex-shrink: 0;
}
.banu-chat-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 0.82rem;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
  transition: border-color 0.2s;
  font-family: inherit;
}
.banu-chat-input:focus {
  border-color: #c8a951;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.12);
}
.banu-chat-input::placeholder {
  color: #94a3b8;
}
.banu-chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1a2744 0%, #2a3a5c 100%);
  color: #c8a951;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.banu-chat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(26, 39, 68, 0.25);
}
.banu-chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ── Disclaimer with KVKK Link ───────────────────────── */
.banu-chat-disclaimer {
  padding: 4px 12px 8px;
  text-align: center;
  font-size: 0.67rem;
  color: #94a3b8;
  background: #ffffff;
  flex-shrink: 0;
}
.banu-chat-disclaimer a {
  color: #c8a951;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}
.banu-chat-disclaimer a:hover {
  color: #1a2744;
}

/* ── Mobile Responsive ───────────────────────────────── */
@media (max-width: 992px) {
  body.banu-chat-expanded {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow-y: auto !important;
    margin: 0 !important;
  }
  html.banu-chat-expanded-html .navbar,
  body.banu-chat-expanded .navbar,
  body.banu-chat-expanded nav.navbar,
  body.banu-chat-expanded #navbar {
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 540px) {
  .banu-chat-panel.compact-mode,
  .banu-chat-panel.expanded-mode {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
  .banu-chat-trigger {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

/* ── Cal.com Modal Container High Z-Index Layer ── */
cal-modal-box {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

/* When in Split Screen (expanded-mode on Desktop), render Cal.com Modal in the Left Screen Column */
@media (min-width: 993px) {
  body.banu-chat-expanded cal-modal-box {
    width: calc(100vw - 400px) !important;
    max-width: calc(100vw - 400px) !important;
    right: 400px !important;
    left: 0 !important;
    z-index: 2147483640 !important;
  }
}

.banu-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  transition: opacity 0.25s ease, max-height 0.3s ease;
}

.banu-chips-container.banu-chips-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}


/* ── Custom Branded Cal Modal (100% Controllable & Unbreakable) ── */
.banu-custom-cal-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.banu-custom-cal-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.banu-cal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(10, 25, 47, 0.78) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.banu-cal-container {
  position: relative !important;
  width: 92% !important;
  max-width: 960px !important;
  height: 88vh !important;
  max-height: 760px !important;
  background: #111827 !important;
  border: 1px solid rgba(200, 169, 81, 0.45) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(200, 169, 81, 0.18) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 2 !important;
  transform: scale(0.96) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.banu-custom-cal-modal.active .banu-cal-container {
  transform: scale(1) !important;
}

.banu-cal-close-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
}

.banu-cal-close-btn:hover {
  background: #c8a951 !important;
  color: #0f172a !important;
  transform: rotate(90deg) scale(1.08) !important;
}

.banu-cal-iframe-wrap {
  width: 100% !important;
  height: 100% !important;
  flex: 1 !important;
}

.banu-cal-iframe-wrap iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  background: #111827 !important;
}

/* Split-Screen: modal displays specifically in the Left Screen area */
@media (min-width: 993px) {
  body.banu-chat-expanded .banu-custom-cal-modal {
    width: calc(100vw - 400px) !important;
    right: 400px !important;
    left: 0 !important;
  }
}
