/* 🛠️ Qlobal Sıfırlama və Quraşdırma */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 🎨 Əsas Dizayn Dəyişənləri */
:root {
  --bg-dark-1: #000;
  --bg-dark-2: #1a1a1a;
  --bg-dark-3: #1c1c1c;
  --hover-dark: #232323;

  --border-dark-1: #2c2c2c;
  --border-dark-2: #2a2a2a;
  --border-bubble: rgba(255, 255, 255, 0.15);
  --bg-bubble: rgba(255, 255, 255, 0.05);
  --bg-bubble-hover: rgba(255, 255, 255, 0.15);

  --primary-blue: #2d6bff;
  --primary-blue-light: #9abfff;
  --primary-blue-text: #b2cbff;
  --user-msg-blue: #007aff;
  --send-btn-color: #8ab7ff;

  --text-light: #fff;
  --text-medium: #ccc;

  --font-main: "Poppins", sans-serif;
}

/* 🌑 Ümumi üslub */
body {
  background: var(--bg-dark-1);
  color: var(--text-light);
  font-family: var(--font-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 📦 Əsas konteyner */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 🔹 Başlıq */
.header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
}

/* dry: Baza Düymə Stili */
.base-btn {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark-1);
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-main);
}
.base-btn:hover {
  background: var(--hover-dark);
}

/* dry: İkon Düymə Stili */
.icon-btn {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 15px;
  padding: 6px 10px;
}

/* 🧹 Yeni Təmizlə düyməsi */
.clear-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #7fc0ff;
  transition: all 0.25s ease;
  z-index: 30;
}

.clear-btn:hover {
  background: #1c1c1c;
  box-shadow: 0 0 10px rgba(45, 107, 255, 0.4);
  transform: rotate(180deg) scale(1.05);
  color: #a4c9ff;
}

/* 💬 Əsas Məzmun Sahəsi */
main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.center {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.brand-sub {
  font-size: 44px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 10px 0;
  text-shadow: 0 0 25px rgba(45, 107, 255, 0.7);
}


/* style.css - təxminən sətir 135 */

.tagline {
  color: var(--text-medium);
  font-size: 20px;
  margin-bottom: 25px;
  min-height: 30px; /* Mətn dəyişəndə hoppanmaması üçün yer saxlayırıq */
  
  /* ✨ Animasiya parametrləri */
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Yazı dəyişən zaman bu sinif aktiv olacaq */
.tagline.hide {
  opacity: 0;
  transform: translateY(10px) scale(0.95); /* Aşağı sürüşür və kiçilir */
  filter: blur(10px); /* Bulanıqlaşır */
}

/* 💡 Prompt bubble-lar */
.prompt-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.bubble {
  background: var(--bg-bubble);
  border: 1px solid var(--border-bubble);
  color: var(--text-light);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 14px;
  transition: 0.3s;
  cursor: pointer;
}
.bubble:hover {
  background: var(--bg-bubble-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(45, 107, 255, 0.3);
}

/* 💬 Chat qutusu (scroll + footer overlap düzəlişi ilə) */
.chat-box {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: calc(100vh - 180px); /* footer + input bar sahəsi çıxılır */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 120px 20px 30px;
  scroll-behavior: smooth;
  overscroll-behavior: contain; /* mobil scroll jitter düzəldilir */
}

/* 💭 Mesajlar */
.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.6;
  font-size: 15.5px;
  animation: fadeIn 0.25s ease;
}
.message.user {
  align-self: flex-end;
  background: var(--user-msg-blue);
  color: white;
}
.message.bot {
  align-self: flex-start;
  background: var(--bg-dark-3);
  border: 1px solid var(--border-dark-2);
  color: var(--text-light);
  white-space: pre-line;
  text-align: left;
}

/* 🧩 Input bar */
.input-bar {
  position: fixed;
  bottom: 75px; /* footer üçün yer */
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 800px;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(80, 80, 80, 0.4);
  z-index: 100;
}

/* 💥 FIX: Daxili Wrapper-in fon və blur effektini ləğv edirik ki, əsas glass görünsün */
.input-wrapper {
  background: transparent !important; /* Fondan qurtuluruq*/
  backdrop-filter: none !important;  /* Blur-u ləğv edirik*/
  -webkit-backdrop-filter: none !important;
  border-radius: 14px !important; /* Radiusu saxlayırıq */
}

/* ✨ Fokuslandıqda mavi border + glow gəlir */
.input-wrapper:focus-within {
  background: linear-gradient(120deg, #0a32f0, #4c7eff, #0a32f0);
  background-size: 200% 200%;
  animation: borderFlow 4s ease infinite;
  box-shadow: 0 0 14px rgba(74, 120, 255, 0.3);
}

/* 💫 Gradient axını üçün animasiya */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#user-input {
  flex: 1; /* ✅ Bu, boşluğun yox olmasına kömək edəcək */
  height: 44px;
  background: transparent !important; /* Əvvəlki düzəliş */
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.send {
  height: 44px;
  min-width: 44px;
  background: #0a32f0;
  border: none;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.send:hover {
  background: #4c7eff;
  box-shadow: 0 0 12px rgba(74, 120, 255, 0.4);
}
/* SEND düyməsinin deaktiv vəziyyəti */
.send.disabled {
  background: #2a2a2a !important;   /* tünd boz */
  color: #777 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.6 !important;
}

/* ⚙️ Footer */
.legal {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 800px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
  z-index: 50;
  pointer-events: none;
}

.legal strong {
  color: #6d8bff;
  font-weight: 600;
}

/* 📱 Mobil uyğunlaşdırma */
@media (max-width: 768px) {
  .chat-box {
    height: calc(100vh - 220px);
    padding-bottom: 50px;
  }

  .input-bar {
    bottom: 85px;
    width: 94%;
  }

  .legal {
    bottom: 20px;
    font-size: 12px;
  }

  .center {
    top: 40%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--primary-blue);
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}
.version-label {
  opacity: 0.6; /* 🔹 Solğun effekt */
  transition: opacity 0.3s ease;
}

.version-label:hover {
  opacity: 1; /* Hover zamanı tam parlaq olsun */
}

.model-dropdown {
  position: relative;
  display: inline-block;
}

.model-btn {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.25s ease;
}

.model-btn:hover {
  background: #252525;
  color: #fff;
}

/* ▼ AÇILAN MENYU */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.dropdown-menu .model-item,
.dropdown-menu .feedback-link {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu .model-item.selected {
  background: rgba(45, 107, 255, 0.15);
  color: #8ab7ff;
  font-weight: 600;
}

.dropdown-menu .feedback-link:hover {
  background: rgba(45, 107, 255, 0.1);
  color: #fff;
}

/* Aktiv olarkən görünür */
.dropdown-menu.show {
  display: block;
}

/* 🧊 Popup arxa fonu */
.confirm-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Aktiv olanda göstər */
.confirm-popup.show {
  opacity: 1;
  pointer-events: all;
}

/* 🧩 Qutu */
.confirm-box {
  background: #181818;
  color: #fff;
  padding: 22px 28px;
  border-radius: 16px;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: "Poppins", sans-serif;
}

/* 🔘 Düymələr */
.confirm-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.confirm-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.confirm-btn.yes {
  background-color: #4a6bff;
  color: white;
}

.confirm-btn.no {
  background-color: #2a2a2a;
  color: #ccc;
}

.confirm-btn.yes:hover {
  background-color: #5c7aff;
}

.confirm-btn.no:hover {
  background-color: #3a3a3a;
}
/* 🌟 Smart suggestions animasiyası */
.bubble {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s ease forwards;
}
.bubble:nth-child(1) { animation-delay: 0.2s; }
.bubble:nth-child(2) { animation-delay: 0.4s; }
.bubble:nth-child(3) { animation-delay: 0.6s; }
.bubble:nth-child(4) { animation-delay: 0.8s; }
.bubble:nth-child(5) { animation-delay: 1s; }

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

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #8ab7ff; /* Daha açıq mavi */
  border-radius: 50%;
  animation: blink 1.4s infinite both;
  opacity: 0.6;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }

}
.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--primary-blue);
  border-radius: 50%;
  opacity: 0.5;
  animation: blink 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  40% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* 📱 Shake popup */
.shake-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 26, 26, 0.96);
  border: 1px solid rgba(45, 107, 255, 0.4);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  box-shadow: 0 0 25px rgba(45, 107, 255, 0.4);
  text-align: center;
  z-index: 999;
  width: 85%;
  max-width: 320px;
  animation: fadeInPopup 0.3s ease;
  backdrop-filter: blur(8px);
}

.shake-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.shake-actions button {
  background: #2d6bff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.shake-actions button:hover {
  background: #4c8dff;
  box-shadow: 0 0 10px rgba(45, 107, 255, 0.5);
}
.shake-actions #shakeNo {
  background: #333;
  color: #ccc;
}
.shake-actions #shakeNo:hover {
  background: #444;
  color: #fff;
}

@keyframes fadeInPopup {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 🔔 Info popup (kiçik xəbərdarlıq) */
.info-popup {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 107, 255, 0.9);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(45, 107, 255, 0.5);
  z-index: 999;
  animation: fadeInOut 3s ease;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px) translateX(-50%); }
  10%, 90% { opacity: 1; transform: translateY(0) translateX(-50%); }
  100% { opacity: 0; transform: translateY(10px) translateX(-50%); }
}
/* 📱 Mobil üçün suggestions */
@media (max-width: 768px) {
  .prompt-bubbles {
    position: fixed;
    bottom: 115px; /* input-un bir az yuxarısında */
    left: 0;
    width: 100%;
    padding: 10px 12px;
    display: flex;
    overflow-x: auto;
    gap: 10px;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 95;
  }

  .prompt-bubbles::-webkit-scrollbar {
    display: none;
  }

  .bubble {
    flex: 0 0 auto;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    color: #fff;
    transition: all 0.2s ease;
  }

  .bubble:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
  }

  /* Desktop görünüşü üçün override */
  .center .prompt-bubbles {
    position: static;
    background: none;
    border: none;
  }
}

/* ============================================================
   🌬️ iOS 26 LIQUID GLASS OVERRIDE — ONLY SPECIFIED COMPONENTS
   ============================================================ */

/* Universal glass variables */
:root {
  --liq-bg: rgba(190, 210, 255, 0.06);
  --liq-blur: blur(28px) brightness(135%);
  --liq-shadow: 0 2px 12px rgba(0,0,0,0.28);
  --liq-edge: inset 0 0 0 0.5px rgba(255,255,255,0.22);
}

/* ================
   1) HEADER BUTTONS
   ================ */

.model-btn,
.clear-btn {
  background: var(--liq-bg) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;
  border: none !important;
  box-shadow: var(--liq-edge), var(--liq-shadow) !important;
  border-radius: 18px !important;
  transition: 0.25s !important;
}
.model-btn:hover,
.clear-btn:hover {
  transform: translateY(-2px) !important;
}

/* ================
   2) SUGGESTIONS (.bubble)
   ================ */

.prompt-bubbles .bubble {
  background: var(--liq-bg) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;

  border: none !important;
  box-shadow: var(--liq-edge), var(--liq-shadow) !important;

  border-radius: 26px !important;
  padding: 12px 22px !important;
  color: #fff !important;
  font-weight: 500 !important;

  transition: 0.25s !important;
}
.prompt-bubbles .bubble:hover {
  transform: translateY(-2px) !important;
}

/* ==================
   3) INPUT BAR
   ================== */

.input-bar {
  background: var(--liq-bg) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;

  border: none !important;
  box-shadow: var(--liq-edge), var(--liq-shadow) !important;
  border-radius: 26px !important;
  padding: 14px 18px !important;
}

.input-wrapper {
  flex: 1; /* ✅ Bunu saxlayın */
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 2px;
  background: #1e1e1e; /* normal vəziyyətdə sadə fon */
  transition: all 0.3s ease;
}

/* ==================
   4) DROPDOWN MENU
   ================== */

.dropdown-menu {
  background: var(--liq-bg) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;

  border: none !important;
  box-shadow: var(--liq-edge), var(--liq-shadow) !important;
  border-radius: 20px !important;
}

/* ==================
   5) POPUP BOXES
   ================== */

.confirm-box,
.shake-popup {
  background: var(--liq-bg) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;

  border: none !important;
  box-shadow: var(--liq-edge), var(--liq-shadow) !important;
  border-radius: 20px !important;
}

.message.user {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  backdrop-filter: blur(18px) brightness(160%) !important;
}

.message.user::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: rgba(45, 107, 255, 0.25); /* Marketify Blue tint */
  backdrop-filter: blur(24px) brightness(130%);
  -webkit-backdrop-filter: blur(24px) brightness(130%);

  box-shadow:
    inset 0 0 0 0.7px rgba(255,255,255,0.32),
    0 4px 12px rgba(0,0,0,0.35);

  z-index: -1;
  pointer-events: none;
}

.message.bot {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
}

.message.bot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: rgba(255, 255, 255, 0.06); /* Tünd neytral glass */
  backdrop-filter: blur(26px) brightness(135%);
  -webkit-backdrop-filter: blur(26px) brightness(135%);

  box-shadow:
    inset 0 0 0 0.6px rgba(255,255,255,0.18),
    0 4px 10px rgba(0,0,0,0.35);

  z-index: -1;
  pointer-events: none;
}

.chat-box {
  position: fixed !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  bottom: 160px; /* input bar + footer üçün yer */
  height: auto !important;
  padding: 120px 20px 20px !important;
  overflow-y: auto !important;
}

@media (max-width: 768px) {
  .chat-box {
    bottom: 180px !important; /* mobil input + footer spacing */
    padding-bottom: 40px !important;
  }
}

/* 📌 FINAL FIX — message bubble clipping fix */
.message,
.message.user,
.message.bot {
  overflow: visible !important;
  position: relative !important;
  min-height: auto !important;
}

/* Glass overlay layout fix */
.message.user::before,
.message.bot::before {
  position: absolute !important;
  inset: 0;
  z-index: -1 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
}

/* 📱 Mobil uyğunlaşdırma (FINAL WORKING BLOCK) */
@media (max-width: 768px) {
  
  /* 1. Chat Box hündürlüyünü tənzimləyirik */
  .chat-box {
    bottom: 180px !important; /* footer + input bar üçün məsafə */
    padding-bottom: 40px !important;
  }
  
  /* 2. Input Bar tənzimlənməsi (Orijinal mobil dəyərlər) */
  .input-bar {
    bottom: 85px;
    width: 94%;
  }

  /* 3. Prompt Bubbles - SLAYDER (FIXED POSITION) */
  /* Element artıq HTML-də .center-dən ayrıldığı üçün bu kod təmiz işləyəcək */
  .prompt-bubbles {
    position: fixed; 
    
    /* 💥 FIX: bottom dəyəri Input Barın (85px) və onun hündürlüyünün (70-75px) üzərinə çıxır */
    bottom: 170px; 
    
    left: 0; 
    right: 0;
    transform: none; /* Mərkəzləşdirməni tam ləğv edir */
    
    width: 100%;
    
    display: flex; 
    flex-wrap: nowrap; /* Tək sətir */
    justify-content: flex-start; /* Sola yapışdırır */
    
    overflow-x: auto; /* Horizontal scroll */
    gap: 10px;
    padding: 10px 16px; /* Yanlardan kənar məsafəsi */
    z-index: 95;
    
    /* Scrollbarı gizlətmə xüsusiyyətlərini də əlavə edirik: */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .prompt-bubbles::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  /* 4. Bubble-ların sıxılmasının qarşısını almaq */
  .bubble {
    flex: 0 0 auto; 
    margin: 0;
    white-space: nowrap; 
  }
}

/* 🎨 BUBBLE DAXİLİ DİZAYN (Title & Subtitle) */
.bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  height: auto; /* Sabit hündürlük yoxdur, mətnə görə dəyişir */
  min-height: 50px;
}

.bubble-content {
  display: flex;
  flex-direction: column; /* Başlıq və alt yazını alt-alta qoyur */
  line-height: 1.3;
}

.bubble-title {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  display: block;
}

.bubble-sub {
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6); /* Bir az solğun rəng */
  display: block;
}

/* 📱 MOBİL ÜÇÜN XÜSUSİ TƏNZİMLƏMƏ */
@media (max-width: 768px) {
  .prompt-bubbles {
    /* Mövcud kodlarınız qalır, sadəcə bunu yoxlayın: */
    display: flex;
    flex-wrap: nowrap; /* Sətiri qırmasın, yanaşı düzsün */
    overflow-x: auto; /* Yana sürüşdürmə aktiv olsun */
    gap: 10px;
    padding: 10px 16px;
    
    /* Scrollbarı gizlətmək */
    -ms-overflow-style: none; 
    scrollbar-width: none;
  }
  
  .prompt-bubbles::-webkit-scrollbar {
    display: none;
  }

  .bubble {
    flex: 0 0 auto; /* Bubble sıxılmasın */
    max-width: 240px; /* ⚠️ Çox uzun olsa belə ekranı tutmasın */
    white-space: normal; /* Daxildə mətnin sətirdən keçməsinə icazə veririk */
    padding: 10px 14px !important;
  }

  /* Əgər mətn həddindən artıq uzundursa, 2 sətirdən sonra "..." qoysun */
  .bubble-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ============================================
   🎯 PROMPT BUBBLES - MƏRKƏZİ YERLƏŞMƏ (FIX)
============================================ */

/* .center içindəki bubbles üçün xüsusi qaydalar */
.center .prompt-bubbles {
  position: relative !important; /* Fixed ləğv edilir */
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  
  margin-top: 25px !important; /* ↕️ Tagline ilə məsafə */
  width: 100%;
  padding: 0 !important;
  
  /* Arxa fon və borderləri təmizləyirik (konteyner üçün) */
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Mobil üçün sürüşdürmə (Slider) */
@media (max-width: 768px) {
  .center .prompt-bubbles {
    flex-wrap: nowrap !important; /* Qırılmasın */
    overflow-x: auto !important; /* Sürüşdürmə aktiv olsun */
    justify-content: flex-start !important; /* Soldan başlasın */
    padding-bottom: 10px !important; /* Barmaqlıq məsafəsi */
  }
  
  /* Scrollbar gizlətmək */
  .center .prompt-bubbles::-webkit-scrollbar {
    display: none;
  }
  
  .center .prompt-bubbles .bubble {
    flex: 0 0 auto; /* Sıxılmasın */
  }
}

/* ============================================
   📱 MOBILE: PROMPT BUBBLES (INPUT BAR ÜZƏRİNDƏ)
============================================ */

@media (max-width: 768px) {
  
  /* 1. "Transform Trap" problemini həll edirik */
  /* Mobildə mərkəzləşdirmə üsulunu dəyişirik ki, Bubbles sərbəst qalsın */
  .center {
    transform: none !important; /* Transform ləğv edilir */
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    width: 100%;
    height: 100%;
    
    /* Yeni mərkəzləşdirmə (Flexbox) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 100px; /* Vizual olaraq bir az yuxarı çəkirik */
  }

  /* 2. Bubbles-ları Input Bar-ın üzərinə yapışdırırıq */
  .center .prompt-bubbles {
    position: fixed !important; /* Artıq ekrana görə sabitlənəcək */
    
    /* Input Bar (85px) + Boşluq = ~170px */
    bottom: 170px !important; 
    
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    margin-top: 0 !important;
    
    /* Slider dizaynı */
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 10px 16px !important;
    gap: 10px !important;
    z-index: 95;
    
    /* Scrollbar gizlətmək */
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: transparent !important;
  }

  /* Webkit brauzerlər üçün scrollbar gizlətmə */
  .center .prompt-bubbles::-webkit-scrollbar {
    display: none;
  }

  /* Bubble ölçülərini qoruyuruq */
  .center .prompt-bubbles .bubble {
    flex: 0 0 auto !important;
    min-width: 150px;
    max-width: 240px;
    background: rgba(20, 20, 20, 0.6); /* Mobil üçün bir az tünd fon */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* 🧹 Təmizlə düyməsi (Yenilənmiş) */
.clear-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #7fc0ff;
  z-index: 30;
  
  /* ✨ Gizlətmə effekti üçün yeni sətirlər: */
  opacity: 0;             /* Görünməz edir */
  visibility: hidden;     /* Kliklənməni bağlayır */
  transform: scale(0.8);  /* Bir az kiçik olsun */
  pointer-events: none;   /* Siçan toxunuşunu ləğv edir */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Pop-up effekti */
}

/* Aktiv olanda bu sinifi əlavə edəcəyik */
.clear-btn.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

.clear-btn:hover {
  background: #1c1c1c;
  box-shadow: 0 0 10px rgba(45, 107, 255, 0.4);
  transform: rotate(90deg) scale(1.1); /* Hover-da fırlanma */
  color: #a4c9ff;
}

/* =========================================
   ✨ PERFECT TYPING INDICATOR (V3)
   ========================================= */

/* Mesaj qutusunun özü üçün xüsusi tənzimləmə */
.message.bot.typing-message {
  display: flex;
  flex-direction: column; /* Alt-alta düzür */
  align-items: flex-start;
  gap: 4px; /* Mətn və nöqtələr arası məsafə (azaldıldı) */
  padding: 12px 18px; /* Bir az daha yığcam padding */
  width: fit-content;
}

/* Mətn stili */
.typing-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Nöqtələrin konteyneri */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px; /* Nöqtələr arası məsafə */
  height: 14px; /* Hündürlüyü sabitləyirik */
  margin-top: 2px; /* Mətnə daha yaxın olsun */
}

/* Nöqtələrin özü */
.typing-indicator span {
  display: block;
  width: 6px;
  height: 6px;
  background-color: #8ab7ff; /* Daha açıq, parlaq mavi */
  border-radius: 50%;
  animation: bounceWave 1.4s infinite ease-in-out both;
}

/* Animasiya gecikmələri (Dalğa effekti üçün) */
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

/* 🌊 Dalğa Animasiyası (Yuxarı-aşağı) */
@keyframes bounceWave {
  0%, 80%, 100% { 
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% { 
    transform: scale(1.2) translateY(-4px); /* Yuxarı hoppanır və böyüyür */
    opacity: 1;
    background-color: #fff; /* Hoppananda ağarır */
  }
}

/* ✨ Model Tooltip (Glass Style) */
.model-tooltip {
  position: absolute;
  top: 55px; /* Button-dan məsafə */
  left: 4px;
  
  /* 🧊 Şəffaf Şüşə Effekti */
  background: rgba(30, 30, 30, 0.6); /* Yarımşəffaf tünd fon */
  backdrop-filter: blur(12px);        /* Arxa fonu bulandırır */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15); /* İncə ağ çərçivə */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);   /* Kölgə */
  
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 90;
  
  /* Animasiya */
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Görünən halı */
.model-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* 🔼 Şüşə Ox (Arrow) */
.model-tooltip::before {
  content: "";
  position: absolute;
  top: -6px; /* Yuxarı çıxır */
  left: 24px;
  width: 12px;
  height: 12px;
  
  /* Eyni şüşə effekti */
  background: rgba(30, 30, 30, 0.6); 
  backdrop-filter: blur(12px);
  
  /* Sadəcə yuxarı və sol tərəfə çərçivə veririk */
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  
  /* 45 dərəcə fırladaraq ox formasına salırıq */
  transform: rotate(45deg);
}

/* --- Analitika Rejimi (Deaktiv) Üslubları --- */

/* Deaktiv menyu elementi */
.dropdown-menu .model-item.disabled {
  opacity: 0.5;                /* Yarımşəffaf görüntü */
  cursor: not-allowed;         /* Üzərinə gələndə qadağan işarəsi */
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;        /* Kliklənməni tamamilə bağlayır */
}

/* Deaktiv elementin üzərinə gələndə fon dəyişməsin */
.dropdown-menu .model-item.disabled:hover {
  background: transparent;
  color: #ccc;
}

/* "Tezliklə" yazısının dizaynı */
.badge-soon {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  color: #aaa;
}

/* ✨ Yeni İncə Ayırıcı (Divider) */
hr.custom-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Çox solğun ağ xətt */
  margin: 24px auto; /* Yuxarı-aşağı məsafə */
  width: 100%; /* Mesajın eni qədər */
  opacity: 0.6;
  position: relative;
}

/* İstəyə bağlı: Xəttin ortasında kiçik parıltı effekti */
hr.custom-divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 120, 255, 0.5), transparent);
  opacity: 0.5;
}

/* 📱 Mobil üçün (Standart) - Kiçik və yığcam qalır */
.bubble-title {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  display: block;
}

.bubble-sub {
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6); /* Solğun qalır ki, gözü yormasın */
  display: block;
}

/* 💻 Desktop üçün Balans - Opacity Versiyası */
@media (min-width: 769px) {
  .bubble-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;          /* Başlıq: Tam Ağ */
    margin-bottom: 2px;
  }

  .bubble-sub {
    font-size: 13px;
    font-weight: 400;
    /* Rəng ağdır, amma 75% görünürlülük veririk */
    color: rgba(255, 255, 255, 0.75); 
    line-height: 1.4;
    transition: color 0.3s ease;
  }
  
  /* Hover effekti: Üstünə gələndə tam ağ olsun */
  .bubble:hover .bubble-sub {
    color: rgba(255, 255, 255, 1);
  }
}

/* style.css */

/* Gizlədilmiş Bubbles üçün sinif */
.prompt-bubbles.hidden-bubbles {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px); /* Aşağı sürüşərək itir */
  pointer-events: none; /* Kliklənməni ləğv edir */
}

/* Bubbles üçün keçid effektini təmin etmək üçün mövcud koda əlavə */
.prompt-bubbles {
  /* Mövcud kodların qalır, sadəcə bu sətri əlavə et və ya yoxla: */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* style.css */

/* 1. Input bar-da elementləri aşağıya (bottom) hizalayırıq */
.input-bar {
  align-items: flex-end; /* Düymə həmişə aşağıda qalsın */
  padding: 10px 14px; /* Padding-i sabit saxlayırıq */
  transition: all 0.2s ease;
}

/* 2. Textarea üçün yeni stil */
#user-input {
  flex: 1;
  background: transparent !important;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  
  resize: none; /* İstifadəçi əli ilə dartıb uzada bilməsin */
  overflow-y: hidden; /* Scrollbar görünməsin */
  min-height: 24px; /* Başlanğıc hündürlük */
  max-height: 120px; /* Maksimum uzanma hündürlüyü (çox böyük olmasın) */
  line-height: 1.5;
  padding: 0; /* Padding-i wrapper həll edir */
  margin-bottom: 2px; /* Mətni vizual mərkəzləşdirmək üçün */
}

/* Scrollbar yalnız max-height keçiləndə görünsün */
#user-input.scrolling {
  overflow-y: auto;
}

/* Düyməni bir az qaldıraq ki, tək sətirdə tam mərkəz görünsün */
.send {
  margin-bottom: 2px;
}

/* --- MULTI-LINE INPUT FIX --- */

/* 1. Input bar elementlərini aşağıya hizalayırıq */
.input-bar {
  align-items: flex-end !important; /* Düymə həmişə aşağıda qalsın */
  padding: 10px 14px; /* Padding-i qoruyuruq */
  transition: all 0.2s ease;
  min-height: 66px; /* Orijinal hündürlüyü qorumaq üçün */
}

/* 2. Textarea tənzimləmələri */
#user-input {
  flex: 1;
  background: transparent !important;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  
  resize: none; /* İstifadəçi əli ilə dartıb uzada bilməsin */
  overflow-y: hidden; /* Scrollbar əvvəlcə gizli olsun */
  
  min-height: 24px; /* Başlanğıc mətn hündürlüyü */
  max-height: 140px; /* Maksimum uzanma hündürlüyü (təxminən 5-6 sətir) */
  line-height: 1.5;
  
  padding: 10px 0 2px 0; /* Mətni vizual mərkəzləşdirmək üçün */
  margin-bottom: 0;
}

/* 3. Göndər düyməsini vizual olaraq aşağıda mərkəzləşdiririk */
.send {
  margin-bottom: 2px; /* Textarea-nın son sətri ilə eyni səviyyədə olması üçün */
  height: 44px; /* Orijinal hündürlük */
}

/* --- FIXED INPUT BAR --- */

.input-bar {
  display: flex;
  align-items: flex-end; /* Elementləri aşağıdan hizalayırıq */
  padding: 10px 14px;
  background: rgba(30, 30, 30, 0.9); /* Orijinal fon */
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(80, 80, 80, 0.4);
  min-height: 64px; /* Sabit minimal hündürlük */
  transition: all 0.2s ease;
}

#user-input {
  flex: 1;
  background: transparent !important;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  
  resize: none; 
  overflow-y: hidden;
  
  /* ✅ ƏSAS DÜZƏLİŞ: Hündürlüyü düymə (44px) ilə eyniləşdiririk */
  height: 44px; 
  min-height: 44px;
  max-height: 140px; 
  
  /* Mətni şaquli mərkəzləşdirmək üçün padding */
  padding: 10px 4px; 
  line-height: 1.5;
  margin-bottom: 0;
}

/* Düymənin yerini sabit saxlayırıq */
.send {
  height: 44px;
  width: 44px;
  margin-bottom: 0; /* Aşağıdan yapışdırırıq */
  flex-shrink: 0; /* Düymə sıxılmasın */
}

/* --- FIXED ALIGNMENT --- */

.input-bar {
  display: flex;
  align-items: flex-end; /* Elementləri aşağıda saxlayır */
  justify-content: space-between;
  
  /* Padding-i bir az tənzimləyirik */
  padding: 10px 14px 10px 14px; 
  
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(80, 80, 80, 0.4);
  min-height: 64px;
  transition: all 0.2s ease;
}

.send {
  height: 44px;
  width: 44px;
  
  /* ✅ ƏSAS HƏLL: Düyməni 3px yuxarı qaldırırıq */
  margin-bottom: 3px; 
  
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Digər stillər olduğu kimi qalır */
  background: #0a32f0;
  border: none;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effekti */
.send:hover {
  background: #4c7eff;
  box-shadow: 0 0 12px rgba(74, 120, 255, 0.4);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: .6; }
}

.new-chat-label {
  font-size: 44px;
  font-weight: 700;
  margin-top: -5px;

  /* Dynamic Gradient */
  background: linear-gradient(135deg, #2d6bff, #60a5ff, #7db3ff, #2d6bff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s ease infinite;

  /* Soft premium glow */
  text-shadow:
    0 0 20px rgba(45, 107, 255, 0.45),
    0 0 40px rgba(0, 0, 0, 0.35);

  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all .45s ease;
  display: none;

  /* Subtle breathing */
  animation-name: gradientFlow, breathe;
  animation-duration: 6s, 4.2s;
  animation-timing-function: ease, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-play-state: paused, paused;
}

.new-chat-label.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation-play-state: running, running;
}

/* Gradient Axını */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Subtle breathing */
@keyframes breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(1px) scale(1.02);
  }
}

/* Yeni başlıq overlay kimi – digər elementləri itələmir */
.new-dynamic-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  z-index: 5;

  font-size: 44px;
  font-weight: 700;
  display: flex;
  gap: 12px;
  white-space: nowrap;

  background: linear-gradient(135deg, #2d6bff, #60a5ff, #7db3ff, #2d6bff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s ease infinite;

  text-shadow:
    0 0 20px rgba(45, 107, 255, 0.25),
    0 0 40px rgba(0, 0, 0, 0.25);

  opacity: 0;
  transition: all .35s ease;
  pointer-events: none; /* klikləri bloklamasın */
}

.new-dynamic-title.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.new-dynamic {
  transition: opacity .45s ease, transform .45s ease;
}

.new-dynamic.fade {
  opacity: 0;
  transform: translateY(6px);
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🌐 Social Pill Container (Yenilənmiş - Daha yığcam) */
.social-pill {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  
  /* 👇 ENİ AZALDIRIQ: Kənarlardan 45px boşluq veririk */
  margin: 12px 45px 8px 45px; 
  
  /* 👇 HÜNDÜRLÜYÜ AZALDIRIQ: Daha nazik olsun */
  padding: 6px 0;
  
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; /* Küncləri biraz daha yumşaltdım */
  backdrop-filter: blur(10px);
}

/* İkonların özü */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.6); /* Default rəng (boz) */
  transition: all 0.3s ease;
  border-radius: 8px;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

/* Hover Effektləri (Marketify Blue Glow) */
.social-icon:hover {
  color: #fff;
  background: rgba(45, 107, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 107, 255, 0.3);
}

/* Aradakı şaquli xətlər (Separators) */
.social-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1); /* Çox solğun xətt */
}