/* ==========================================================================
   AL KHAT AL HADIDI - AI CUSTOMER CHATBOT WIDGET STYLES (GEMINI 1.5 FLASH)
   ========================================================================== */

:root {
  --chat-primary: #0d9488;
  --chat-primary-dark: #0f766e;
  --chat-primary-hover: #14b8a6;
  --chat-accent: #f59e0b;
  --chat-bg-header: #0f172a;
  --chat-bg-body: #f8fafc;
  --chat-bg-card: #ffffff;
  --chat-user-bubble: #0f766e;
  --chat-bot-bubble: #ffffff;
  --chat-border: rgba(226, 232, 240, 0.9);
  --chat-text-dark: #0f172a;
  --chat-text-muted: #64748b;
  --chat-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.3), 0 0 1px 1px rgba(15, 23, 42, 0.05);
  --chat-radius: 18px;
  --chat-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* Nav Header AI Assistant Button */
.btn-ai-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-ai-nav:hover {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.45);
}

.btn-ai-nav-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: navAiPulse 1.8s infinite;
}

@keyframes navAiPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Launcher Floating Button */
#aiChatLauncher {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.45);
  cursor: pointer;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

#aiChatLauncher:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.55);
}

#aiChatLauncher:active {
  transform: scale(0.96);
}

/* Pulsing Glow Ring */
#aiChatLauncher::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(13, 148, 136, 0.5);
  animation: chatPulse 2.4s infinite;
  pointer-events: none;
}

@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Launcher Icons */
.chat-launcher-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.chat-launcher-close {
  display: none;
  width: 24px;
  height: 24px;
}

#aiChatLauncher.active .chat-launcher-icon {
  display: none;
}

#aiChatLauncher.active .chat-launcher-close {
  display: block;
}

/* Tooltip Badge */
.chat-tooltip {
  display: none !important;
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

#aiChatLauncher:hover .chat-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* Main Chat Container */
#aiChatContainer {
  position: fixed;
  bottom: 96px;
  right: 26px;
  width: 400px;
  min-width: 330px;
  max-width: calc(100vw - 32px);
  height: 600px;
  min-height: 420px;
  max-height: calc(100vh - 110px);
  background-color: var(--chat-bg-body);
  border-radius: var(--chat-radius);
  box-shadow: var(--chat-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99998;
  font-family: var(--chat-font);
  border: 1px solid var(--chat-border);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(20px);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

#aiChatContainer.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

#aiChatContainer.is-resizing {
  transition: none !important;
  user-select: none !important;
  box-shadow: 0 25px 60px -10px rgba(13, 148, 136, 0.35), 0 0 0 2px rgba(13, 148, 136, 0.6) !important;
}

/* Resize Handles */
.chat-resize-handle-nw {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  cursor: nwse-resize;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: var(--chat-radius);
  transition: background-color 0.2s ease;
}

.chat-resize-handle-nw::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2.5px solid rgba(255, 255, 255, 0.6);
  border-left: 2.5px solid rgba(255, 255, 255, 0.6);
  border-top-left-radius: 4px;
}

.chat-resize-handle-nw:hover {
  background: rgba(13, 148, 136, 0.35);
}

.chat-resize-handle-nw:hover::before {
  border-color: #38bdf8;
}

.chat-resize-edge-top {
  position: absolute;
  top: 0;
  left: 22px;
  right: 0;
  height: 8px;
  cursor: ns-resize;
  z-index: 110;
}

.chat-resize-edge-left {
  position: absolute;
  top: 22px;
  left: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
  z-index: 110;
}

/* Resize Live Dimension Badge */
.chat-resize-indicator {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  letter-spacing: 0.5px;
}

#aiChatContainer.is-resizing .chat-resize-indicator {
  opacity: 1;
}

/* Maximize / Expanded preset state */
#aiChatContainer.size-large {
  width: 680px !important;
  height: 740px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 110px) !important;
}

#aiChatContainer.size-full {
  width: calc(100vw - 40px) !important;
  height: calc(100vh - 100px) !important;
  max-width: 1200px !important;
  bottom: 20px !important;
  right: 20px !important;
  border-radius: 16px !important;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
  position: relative;
}

.chat-avatar-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.chat-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  background-color: #10b981;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.chat-title-group h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.chat-title-group p {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.chat-btn-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.chat-btn-icon.active {
  background: #0d9488;
  color: #ffffff;
}

.chat-history-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0f172a;
}

/* ==========================================================================
   AI CHAT HISTORY DRAWER & PANEL
   ========================================================================== */
.chat-history-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.chat-history-drawer.open {
  transform: translateX(0);
}

.chat-history-header {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-history-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.chat-history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-history-btn-new {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.chat-history-btn-new:hover {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.chat-history-search {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.chat-history-search-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-history-search-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.chat-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-history-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-history-item:hover {
  border-color: #0d9488;
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chat-history-item.active {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 1.5px #0d9488;
}

.chat-history-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-history-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.chat-history-item-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.chat-history-item.active .chat-history-item-badge {
  background: #ccfbf1;
  color: #0f766e;
}

.chat-history-item-preview {
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.chat-history-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.chat-history-item-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-history-item-delete {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  opacity: 0.6;
}

.chat-history-item-delete:hover {
  color: #ef4444;
  background: #fee2e2;
  opacity: 1;
}

.chat-history-empty {
  text-align: center;
  padding: 40px 16px;
  color: #94a3b8;
  font-size: 0.84rem;
}

.chat-history-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.7;
}

.chat-history-footer {
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-history-btn-clear {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-history-btn-clear:hover {
  background: #fecaca;
}

.chat-history-btn-export {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-history-btn-export:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* History Toast Notification */
.chat-toast {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chat-btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Quick Suggestion Chips */
.chat-chips-bar {
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.chat-chips-bar::-webkit-scrollbar {
  display: none;
}

.chat-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.chat-chip:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  transform: translateY(-1px);
}

/* Messages Body Area */
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #f8fafc;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: chatFadeUp 0.25s ease-out;
}

@keyframes chatFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-bubble {
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
}

.chat-msg.bot .chat-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 4px;
}

.chat-bubble p {
  margin: 0 0 8px;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble ul, .chat-bubble ol {
  margin: 6px 0 8px;
  padding-left: 18px;
}

.chat-bubble li {
  margin-bottom: 4px;
}

.chat-bubble strong {
  color: #0f172a;
}

.chat-msg.user .chat-bubble strong {
  color: #ffffff;
}

.chat-bubble a {
  color: #0d9488;
  text-decoration: underline;
  font-weight: 600;
}

.chat-msg.user .chat-bubble a {
  color: #fef08a;
}

.chat-meta {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 4px;
  padding: 0 4px;
}

.chat-msg.user .chat-meta {
  text-align: right;
}

/* Typing Indicator Animation */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 4px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-typing-dot {
  width: 7px;
  height: 7px;
  background-color: #0d9488;
  border-radius: 50%;
  animation: chatBounce 1.4s infinite ease-in-out both;
}

.chat-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes chatBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Input Area */
.chat-footer {
  padding: 12px 16px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 6px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-form:focus-within {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  background: #ffffff;
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 4px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  resize: none;
  max-height: 80px;
}

.chat-input::placeholder {
  color: #94a3b8;
}

.chat-send-btn {
  background: #0d9488;
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  background: #0f766e;
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
}

.chat-stop-btn {
  background: #ef4444;
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  animation: stopPulse 1.5s infinite;
}

.chat-stop-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

@keyframes stopPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.chat-streaming-cursor {
  display: inline-block;
  color: #0d9488;
  font-weight: 900;
  margin-left: 2px;
  animation: streamBlink 0.6s infinite;
}

@keyframes streamBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.chat-powered-by {
  font-size: 0.68rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 6px;
}

/* ==========================================================================
   INTERACTIVE ON-PAGE AI SHOWCASE SECTION
   ========================================================================== */
.ai-showcase-section {
  background: linear-gradient(135deg, #091e2b 0%, #0d3844 50%, #0f172a 100%);
  padding: 70px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(13, 148, 136, 0.3);
  border-bottom: 1px solid rgba(13, 148, 136, 0.3);
}

.ai-showcase-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ai-showcase-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  max-width: 960px;
  margin: 0 auto;
}

.ai-showcase-header {
  text-align: center;
  margin-bottom: 28px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.5);
  color: #2dd4bf;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ai-showcase-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.ai-showcase-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.ai-chips-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.ai-prompt-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-prompt-chip:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

.ai-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 30px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  max-width: 680px;
  margin: 0 auto;
}

.ai-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #0f172a;
  background: transparent;
  padding: 8px 4px;
}

.ai-search-btn {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.ai-search-btn:hover {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  transform: scale(1.03);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ai-showcase-card {
    padding: 24px 18px;
  }
  .ai-showcase-title {
    font-size: 1.5rem;
  }
  .ai-search-bar {
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    gap: 10px;
  }
  .ai-search-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #aiChatLauncher {
    bottom: 20px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
  }

  /* Full-screen AI Assistant Modal on Mobile Phones */
  #aiChatContainer {
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Adapts dynamically to mobile virtual keyboard */
    min-height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    position: fixed !important;
    z-index: 100000 !important;
  }

  #aiChatContainer.open {
    transform: none !important;
  }

  /* Hide manual window resize handles on mobile screens */
  .chat-resize-handle-nw,
  .chat-resize-edge-top,
  .chat-resize-edge-left,
  .chat-resize-indicator {
    display: none !important;
  }
}
