/* Floating Button */
    #suport-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #0f0f10;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 6px 16px rgba(0,0,0,0.3);
      z-index: 10000;
  transition: transform 1s cubic-bezier(0.68,-0.55,0.27,1.55); /* dönüş animasyonu */
      transform-style: preserve-3d;
    }

#suport-button:hover {
  transform: scale(1.05);
}

/* aktif pozisyon — yana yatırılmış */
    #suport-button.active {
  transform: rotateX(50deg) rotateZ(-35deg) scale(0.85);
    }

    /* Chat Popup */
    #suport-popup {
      position: fixed;
      bottom: 130px;
      right: 20px;
      width: 520px;
      height: 520px;
  background: rgba(15, 15, 16, 0.55); /* yarı saydam */
  backdrop-filter: blur(18px);         /* cam efekti */
  -webkit-backdrop-filter: blur(18px); /* Safari desteği */
      color: #fff;
      border-radius: 14px;
      box-shadow: 0 12px 32px rgba(0,0,0,0.45);
      flex-direction: column;
      overflow: hidden;
      z-index: 100000;
  border: 1px solid rgba(255, 255, 255, 0.08); /* hafif parlama çerçevesi */
    }
#suport-popup:not(.hidden) {
  display: flex; /* sadece açıkken flex olacak */
    }
.hidden {
  display: none !important;
}

    /* Header */
    .suport-header {
      background: linear-gradient(135deg, rgba(20,0,0,0.85), rgba(15,15,15,0.95));
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      padding: 20px 22px;
      display: flex;
      align-items: center;
      gap: 14px;
      font-weight: 700;
      font-size: 22px;
      color: #fff;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      box-shadow: 0 6px 20px rgba(0,0,0,0.55);
  border-radius: 14px 14px 0 0; /* üst kenarlara yumuşak hat */
    }

    .suport-header img {
      width: 56px;
      height: 56px;
  border-radius: 18px;              /* kare + yuvarlatılmış köşe */
      object-fit: cover;
      object-position: center;
      background: #000;
  
  border: 2px solid #ff2a2a;        /* kırmızı çerçeve */
      box-shadow: 0 0 12px rgba(255, 0, 0, 0.65),
              inset 0 0 8px rgba(255, 0, 0, 0.35); /* glow efekti */
  padding: 3px;                     /* çerçeve kalınlığı */
    }

    .suport-header span {
      font-size: 22px;
      font-weight: 800;
      background: linear-gradient(90deg, #ff2a2a, #ff5555);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .suport-header #suport-close {
      margin-left: auto;
      background: none;
      border: none;
      font-size: 26px;
      color: #fff;
      cursor: pointer;
      opacity: 0.75;
      transition: opacity 0.2s ease;
    }
.suport-header #suport-close:hover {
  opacity: 1;
}


    /* Messages */
    .suport-messages {
      flex: 1;
      padding: 12px 14px;
      overflow-y: auto;
      background: #0a0a0a;
  overscroll-behavior: contain; /* sayfa scroll'una karışmaz */
  scrollbar-width: thin;        /* Firefox için ince bar */
  cursor: grab;
}
.suport-messages:active { cursor: grabbing; }

/* Scrollbar (WebKit) */
.suport-messages::-webkit-scrollbar {
  width: 8px;
}
.suport-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e11d2e, #800000);
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(255,0,0,0.5);
}
.suport-messages::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.message {
  display: block;              /* alt alta dizilir */
  width: fit-content;          /* içerik kadar genişlik */
  max-width: 75%;              /* çok uzun olursa kırılır */
      margin: 6px 0;
      padding: 10px 14px;
      border-radius: 18px;
  line-height: 1.5;
  font-size: 15px;
  word-wrap: break-word;
  word-break: break-word;
}
.message.user {
  background: linear-gradient(135deg, #e11d2e, #b30000);
  margin-left: auto;  /* sağda hizalanır */
  color: #fff;
}
.message.bot {
  background: rgba(255,255,255,0.08);
  margin-right: auto; /* solda hizalanır */
  color: #fff;
}

/* Input Wrapper */
.suport-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px;              /* sağ + sol boşluk garanti */
  margin-bottom: 10px;
}

/* Input Satırı */
.suport-input {
  display: flex;
  align-items: center;
  background: #1a1a1c;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 6px 12px;
  box-shadow: inset 0 0 4px rgba(255,255,255,.05);
}

/* Input Alanı */
.suport-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  text-align: left;
  padding: 14px;
  caret-color: #e11d2e;          /* kırmızı caret */
  cursor: text !important;       /* metin imleci */
}
.suport-input input::placeholder {
  color: rgba(255,255,255,.45);
}
.send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  margin-left: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #e11d2e, #b30000);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  font-size: 22px;
  font-weight: bold;
  color: white;
  line-height: 1;

  /* 👇 sadece bu butona özel font */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.send-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.75);
}

.send-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

/* Tıklayınca placeholder gizlensin */
.suport-input input:focus::placeholder {
  color: transparent;
}

/* Caret (yanıp sönen yazı imleci) görünür olsun */
.suport-input input {
  caret-color: #e11d2e !important; /* kırmızı yanıp sönen imleç */
}
/* Uyarı ve Sayaç */
.char-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.char-warning {
  font-size: 12px;
  color: #ff4d4d;
  font-weight: 600;
}
.char-counter {
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.hidden { display: none; }

/* Ortak img stili */
#suport-button img{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

/* Typing Indicator Styles */
.typing-indicator {
  display: flex !important;
  align-items: center;
  opacity: 0.8;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.typing-dots span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-8px);
  opacity: 1;
  }
}

/* Typewriter cursor effect */
.message.bot {
  position: relative;
}

.message.bot.typing::after {
  content: '|';
  animation: cursor-blink 1s infinite;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
/* SuPort Chat Scroll */
.suport-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
  overscroll-behavior: contain; /* sayfa scroll'una karışmaz */
}

.suport-messages::-webkit-scrollbar {
  width: 6px;
}
.suport-messages::-webkit-scrollbar-track {
  background: transparent;
}
.suport-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 0, 0.3);
  border-radius: 3px;
}
.suport-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 0, 0.5);
}
/* Hologram Beam */
    #holo-beam {
      position: fixed;
      bottom: 70px;
      right: 10px;
      width: 550px;
      height: 70px;
      z-index: 99999;
      opacity: 0;
      pointer-events: none;

      clip-path: polygon(3% 0%, 98% 0%, 89% 100%);
      background: radial-gradient(circle at 50% 80%,
                  rgba(180,0,0,0.4) 0%,
                  rgba(0,0,0,0.95) 100%);
      filter: drop-shadow(0 0 30px rgba(255,0,0,0.9))
              drop-shadow(0 0 60px rgba(255,0,0,0.6));

      transform: scaleY(0);
      transform-origin: bottom center;
      transition: transform 0.6s ease, opacity 0.6s ease;
      overflow: hidden;
    }
    #holo-beam.active {
      opacity: 1;
      transform: scaleY(1);
    }

    /* Partiküller (yıldızlar) */
    .star {
      position: absolute;
      bottom: 0;
      background: radial-gradient(circle, rgba(255,120,120,1) 0%, rgba(255,120,120,0) 70%);
      border-radius: 50%;
      animation: floatUp linear infinite;
      filter: drop-shadow(0 0 6px rgba(255,0,0,0.9));
      pointer-events: none;
      opacity: 0.9;
    }
    @keyframes floatUp {
      0% { transform: translateY(0) scale(1); opacity: 0.2; }
      30% { opacity: 1; }
      100% { transform: translateY(-180px) scale(0.6); opacity: 0; }
    }

#suport-popup {
  opacity: 0;
  transform: scale(0.2) translateY(60px); /* ufak ve biraz aşağıda */
  filter: blur(10px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#suport-popup.show {
  opacity: 1;
  transform: scale(1) translateY(0); /* normal boyutuna gelir */
  filter: blur(0);
  pointer-events: all;
}
   
  /* ====================== */
  /* SUPORT POPUP RESPONSIVE */
  /* ====================== */
  @media (max-width: 768px) {
    #suport-button {
       width: 80px;
      height: 80px;
      bottom: 15px;
      right: 15px;
    }
    
    #suport-button img {
     width: 64px;
       height: 64px;
     }
     
    #suport-popup {
       width: calc(100vw - 20px);
      height: 380px;
      max-height: 380px;
      bottom: 110px;
       right: 10px;
       left: 10px;
      border-radius: 12px;
     }
     
     .suport-header {
       padding: 16px 18px;
       font-size: 18px;
       border-radius: 12px 12px 0 0;
    }
    
    .suport-header img {
      width: 48px;
      height: 48px;
      border-radius: 14px;
    }
    
    .suport-header span {
      font-size: 18px;
    }
    
    .suport-header #suport-close {
      font-size: 22px;
    }
    
    .suport-messages {
      padding: 10px 12px;
    }
    
    .message {
      max-width: 85%;
      padding: 8px 12px;
      font-size: 14px;
      border-radius: 14px;
    }
    
    .suport-input-wrapper {
      padding: 0 12px;
      margin-bottom: 8px;
    }
    
    .suport-input {
      padding: 4px 8px;
      border-radius: 14px;
    }
    
    .suport-input input {
      padding: 10px 12px;
      font-size: 14px;
    }
    
    .suport-input button {
      width: 36px;
      height: 36px;
    }
    
    .suport-input button::before {
      font-size: 24px;
    }
    
    #holo-beam {
      width: calc(100vw - 20px);
      bottom: 65px;
      right: 0px;
      left: 10px;
      height: 40px;
    }
  }
  
  @media (max-width: 480px) {
    #suport-popup {
      height: 350px;
      max-height: 350px;
      bottom: 100px;
    }
    
    .suport-header {
      padding: 14px 16px;
    }
    
    .suport-header img {
      width: 44px;
      height: 44px;
    }
    
    .message {
      max-width: 90%;
      padding: 7px 10px;
      font-size: 13px;
    }
   }
   

/* ==========================================
   AJANS SU 2.0 - Smart Suggestions (Premium)
   ========================================== */

.smart-suggestions {
  background: linear-gradient(135deg,
    rgba(30, 0, 0, 0.65) 0%,
    rgba(10, 0, 0, 0.85) 100%);
  border: 1px solid rgba(225, 29, 46, 0.4);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 22px rgba(225, 29, 46, 0.2), inset 0 0 8px rgba(255, 0, 0, 0.1);
  overflow: hidden;
  max-height: 240px;
  font-size: 13px;
  animation: suggestionsFadeIn 0.4s ease-out;
}

#suport-popup .smart-suggestions {
  margin-bottom: 10px;
  max-height: 150px;
  border-radius: 12px;
}

/* Header */
.suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(225, 29, 46, 0.35);
}

.suggestions-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.suggestions-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
}


/* Grid */
.suggestions-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* hep 3 kolon */
  gap: 12px;
  padding: 10px;
  overflow: hidden; /* fazlası görünmesin */
  max-height: none; /* yükseklik kısıtlamasını kaldır */
}

/* Item */
.suggestion-item {
  position: relative;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.08);
  animation: suggestionSlideIn 0.25s ease-out;
}

.suggestion-item:hover {
  background: rgba(225, 29, 46, 0.15);
  border-color: rgba(225, 29, 46, 0.5);
  box-shadow: 0 6px 22px rgba(225, 29, 46, 0.25);
  transform: translateY(-3px);
}

/* Content/Button */
.suggestion-btn {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.suggestion-btn:hover {
  color: #ff4d4d;
}

/* Dismiss (X) */
.suggestion-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  display: none !important;
}
.suggestion-dismiss:hover {
  background: rgba(225, 29, 46, 0.9);
  transform: scale(1.1);
}

/* Animations */
@keyframes suggestionsFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes suggestionSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .suggestions-list { gap: 6px; padding: 8px; }
  .suggestion-item { min-height: 58px; }
  .suggestion-btn { font-size: 11px; padding: 8px; }
}

@media (max-width: 480px) {
  .suggestions-list { gap: 4px; padding: 6px; }
  .suggestion-item { min-height: 50px; }
  .suggestion-btn { font-size: 10px; }
}
#suportInput, 
#suportInput:focus, 
#suportInput::selection, 
#suportInput::placeholder {
  cursor: none !important; /* Tarayıcı cursor’unu tamamen iptal et */
}
