/**
 * Eranet Bilişim - EraCan Modüler Maskot Bileşeni Stilleri
 * 
 * Modlar:
 * 1. Header Modu (nas-selection.html): Dikey hizada isim rozeti + Konuşma balonu + Zarif Glassmorphic Cyber-Pills
 * 2. Floating Modu (index.html): Serbest sürüklenebilir (draggable) canlı maskot + Kenar tutunma + İnteraktif kart
 */

/* ==========================================================================
   1. GENEL ANİMASYONLAR VE TABAN
   ========================================================================== */
@keyframes eracanFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes eracanPulseRing {
  0% {
    transform: scale(0.92);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
    box-shadow: 0 0 22px rgba(79, 227, 240, 0.45);
  }
  100% {
    transform: scale(0.92);
    opacity: 0.6;
  }
}

@keyframes eracanSoundWave {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ==========================================================================
   2. HEADER MODU (nas-selection.html)
   ========================================================================== */

/* Maskot ve İsmin Dikey Olarak Alt Alta Hizalandığı Birim */
.eracan-brand-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  user-select: none;
}

/* Kompakt Maskot Sahnesi (nas-selection.html, 352x544 dikey oran) */
.eracan-mascot-compact {
  width: 112px;
  height: 174px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 768px) {
  .eracan-mascot-compact {
    width: 84px;
    height: 130px;
  }
}

.eracan-stage {
  position: relative;
  width: 100%;
  height: 100%;
  animation: none;
  user-select: none;
}

.eracan-stage video,
.eracan-stage img,
.eracan-stage canvas.eracan-alpha-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: none !important;
  transform: translateZ(0);
}

/* Maskotun Tam Altındaki Zarif Parlayan İsim Rozeti */
.eracan-name-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
  margin-top: 1px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
}

.eracan-name-badge:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-0.5px);
}

.eracan-name-badge .badge-dot {
  display: none !important;
}

.eracan-name-badge .badge-text {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(79, 227, 240, 0.4));
  line-height: 1.2;
  transition: filter 0.25s ease;
}

.eracan-name-badge:hover .badge-text {
  filter: drop-shadow(0 0 14px rgba(79, 227, 240, 0.75));
}

/* ==========================================================================
   3. SAĞDAKİ ZARİF VE ŞIK KONTROL BUTONLARI (Glassmorphic Cyber-Pills)
   ========================================================================== */
.ai-bar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.btn-chat-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 227, 240, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-chat-glass i,
.btn-chat-glass svg {
  font-size: 12px;
  color: var(--nas-accent, #64ffda);
  transition: transform 0.2s ease;
}

.btn-chat-glass:hover {
  background: linear-gradient(135deg, rgba(79, 227, 240, 0.15), rgba(14, 165, 233, 0.12));
  border-color: rgba(79, 227, 240, 0.65);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(79, 227, 240, 0.3), 0 4px 12px rgba(0, 0, 0, 0.35);
  transform: translateY(-1.5px);
}

.btn-chat-glass:hover i {
  transform: scale(1.1);
}

.btn-chat-glass:active {
  transform: translateY(0.5px) scale(0.97);
}

/* Ses Butonu Aktif / Pasif Özel Durumları */
.btn-chat-glass.voice-active {
  border-color: rgba(79, 227, 240, 0.55);
  color: #e0f2fe;
}

.btn-chat-glass.voice-muted {
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  opacity: 0.75;
}

.btn-chat-glass.voice-muted i {
  color: #94a3b8;
}

/* Temizle Butonu Hover Özel Vurgusu */
.btn-chat-glass.btn-clear-chat:hover {
  border-color: rgba(244, 63, 94, 0.6);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.3);
}

.btn-chat-glass.btn-clear-chat:hover i {
  color: #fb7185;
}

/* Daralt / Genişlet Butonu (Dairesel Glass Hap) */
.btn-chat-glass.btn-toggle-chat {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
}

/* ==========================================================================
   4. ANA SAYFA SERBEST SÜRÜKLENEBİLİR CANLI ERA-CAN (index.html)
   ========================================================================== */
.eracan-floating-widget {
  position: fixed;
  bottom: clamp(14px, 1.4vw, 22px);
  right: calc(clamp(12px, 1vw, 20px) + clamp(44px, 2.9vw, 56px) + clamp(12px, 0.8vw, 18px));
  width: clamp(114px, 8.8vw, 140px);
  height: clamp(176px, 13.6vw, 216px);
  z-index: 9998;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.eracan-floating-widget.is-dragging {
  cursor: grabbing !important;
  cursor: -webkit-grabbing !important;
  transition: none !important;
  will-change: transform;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 16px rgba(79, 227, 240, 0.45));
}

.eracan-floating-widget .widget-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.eracan-floating-widget .widget-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  animation: none;
  pointer-events: none;
}

.eracan-floating-widget.is-dragging .widget-stage {
  animation: none;
}

.eracan-floating-widget video,
.eracan-floating-widget img,
.eracan-floating-widget canvas.eracan-alpha-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  pointer-events: none;
  mix-blend-mode: normal;
  filter: none !important;
  transform: translateZ(0);
}

/* Taban Işıma Halkası (Glow Shadow) */
.eracan-float-shadow {
  position: absolute;
  bottom: 4px;
  width: 55%;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(79, 227, 240, 0.45) 0%, rgba(79, 227, 240, 0) 70%);
  filter: blur(2px);
  pointer-events: none;
  animation: eracanPulseRing 3.8s infinite ease-in-out;
}

/* Mini AI Rozeti (Sol Üst Köşe) */
.eracan-mini-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(6, 182, 212, 0.4);
  pointer-events: none;
  z-index: 2;
}

/* =========================================================================
   ERA-CAN AKAN CANLI SOHBET AKIŞI (Streaming Flowing Chat Bubble - Kompakt & Akıllı Konum)
   ========================================================================= */
.eracan-flowing-chat {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: clamp(210px, 18vw, 255px);
  background: linear-gradient(155deg, #0a192f 0%, #061220 100%);
  border: 1px solid rgba(79, 227, 240, 0.4);
  border-radius: 16px;
  padding: 9px 11px 11px 11px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(79, 227, 240, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  pointer-events: auto;
  text-align: left;
  user-select: none;
  cursor: pointer;
  animation: eracanFlowEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes eracanFlowEntrance {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.eracan-flowing-chat.bubble-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(10px) scale(0.94) !important;
  pointer-events: none !important;
}

/* Konuşma Kuyruğu (Mascot Pointing Tail - Varsayılan: Alt Sağ) */
.eracan-flowing-chat .eracan-bubble-tail {
  position: absolute;
  bottom: -7px;
  right: 36px;
  width: 14px;
  height: 14px;
  background: #061220;
  border-right: 1px solid rgba(79, 227, 240, 0.4);
  border-bottom: 1px solid rgba(79, 227, 240, 0.4);
  transform: rotate(45deg);
  border-bottom-right-radius: 3px;
  transition: all 0.2s ease;
}

/* =========================================================================
   AKILLI EKRAN KONUMLANDIRMA (Maskot Nereye Giderse Gitsin Ekranda Kalır)
   ========================================================================= */

/* Maskot ekranın üstündeyse -> Balon altta belirsin: */
.eracan-flowing-chat.pos-bottom {
  top: calc(100% + 12px) !important;
  bottom: auto !important;
}
.eracan-flowing-chat.pos-bottom .eracan-bubble-tail {
  top: -7px !important;
  bottom: auto !important;
  border-bottom: none !important;
  border-right: none !important;
  border-top: 1px solid rgba(79, 227, 240, 0.4) !important;
  border-left: 1px solid rgba(79, 227, 240, 0.4) !important;
  transform: rotate(45deg) !important;
}

/* Maskot ekranın altındaysa -> Balon üstte belirsin (Varsayılan): */
.eracan-flowing-chat.pos-top {
  bottom: calc(100% + 12px) !important;
  top: auto !important;
}
.eracan-flowing-chat.pos-top .eracan-bubble-tail {
  bottom: -7px !important;
  top: auto !important;
  border-top: none !important;
  border-left: none !important;
  border-right: 1px solid rgba(79, 227, 240, 0.4) !important;
  border-bottom: 1px solid rgba(79, 227, 240, 0.4) !important;
  transform: rotate(45deg) !important;
}

/* Maskot ekranın solundaysa -> Balon sağa açılsın: */
.eracan-flowing-chat.pos-left {
  left: 0 !important;
  right: auto !important;
}
.eracan-flowing-chat.pos-left .eracan-bubble-tail {
  left: 36px !important;
  right: auto !important;
}

/* Maskot ekranın sağındaysa -> Balon sola açılsın (Varsayılan): */
.eracan-flowing-chat.pos-right {
  right: 0 !important;
  left: auto !important;
}
.eracan-flowing-chat.pos-right .eracan-bubble-tail {
  right: 36px !important;
  left: auto !important;
}

/* Üst Başlık Şeridi */
.eracan-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eracan-flow-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.04em;
  text-transform: none;
}

.eracan-flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  position: relative;
  display: inline-block;
}

.eracan-flow-dot::after {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  border: 1px solid #10b981;
  animation: eracanPulseRing 2s infinite ease-in-out;
  opacity: 0.7;
}

.eracan-flow-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 6px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  z-index: 10;
}

.eracan-flow-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* Mesaj Gövdesi ve Baloncuklar */
.eracan-flow-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eracan-flow-bubble {
  padding: 6px 9px;
  border-radius: 10px;
  line-height: 1.38;
  transition: all 0.2s ease;
  word-break: break-word;
}

.eracan-flow-bubble.msg-1 {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-left-radius: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: #f8fafc;
}

.eracan-flow-bubble.msg-2 {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(79, 227, 240, 0.32);
  border-bottom-left-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  color: #e0f2fe;
  animation: eracanFlowEntrance 0.3s ease;
}

/* Daktilo İmleci (Typewriter Cursor) */
.eracan-cursor {
  display: inline-block;
  color: #4fe3f0;
  font-weight: 700;
  margin-left: 2px;
  animation: eracanCursorBlink 0.7s infinite;
}

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

/* Alt Aksiyon Alanı (CTA) */
.eracan-flow-footer {
  margin-top: 7px;
  display: flex;
  justify-content: flex-end;
  animation: eracanFlowEntrance 0.3s ease;
}

.eracan-flow-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(79, 227, 240, 0.3), rgba(14, 165, 233, 0.45));
  border: 1px solid rgba(79, 227, 240, 0.65);
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.eracan-flowing-chat:hover .eracan-flow-cta {
  background: linear-gradient(135deg, rgba(79, 227, 240, 0.45), rgba(14, 165, 233, 0.6));
  border-color: rgba(79, 227, 240, 0.95);
  box-shadow: 0 0 14px rgba(79, 227, 240, 0.45);
  transform: translateX(2px);
}

.eracan-flowing-chat:hover .eracan-flow-cta i {
  transform: translateX(3px);
}

.eracan-flow-cta i {
  font-size: 9.5px;
  color: #4fe3f0;
  transition: transform 0.2s ease;
}

/* =========================================================================
   ERA-CAN AKTİF CANLI SOHBET BALONU (Geriye Uyumluluk)
   ========================================================================= */
.eracan-chat-bubble,
.eracan-float-card {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: clamp(270px, 22vw, 330px);
  background: linear-gradient(145deg, rgba(10, 24, 40, 0.97), rgba(6, 16, 28, 0.98));
  border: 1px solid rgba(79, 227, 240, 0.45);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 28px rgba(79, 227, 240, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: left;
}

.eracan-chat-bubble.bubble-active,
.eracan-floating-widget:hover .eracan-chat-bubble,
.eracan-floating-widget.card-open .eracan-chat-bubble,
.eracan-floating-widget:hover .eracan-float-card,
.eracan-floating-widget.card-open .eracan-float-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.eracan-bubble-tail {
  position: absolute;
  bottom: -9px;
  right: 48px;
  width: 16px;
  height: 16px;
  background: rgba(8, 20, 34, 0.98);
  border-right: 1px solid rgba(79, 227, 240, 0.45);
  border-bottom: 1px solid rgba(79, 227, 240, 0.45);
  transform: rotate(45deg);
  border-bottom-right-radius: 4px;
}

.eracan-chat-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.eracan-chat-agent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eracan-status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  position: relative;
  display: inline-block;
}

.eracan-status-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: eracanPulseRing 2s infinite;
  opacity: 0.7;
}

.eracan-agent-info {
  display: flex;
  flex-direction: column;
}

.eracan-agent-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.eracan-agent-name i {
  color: #4fe3f0;
  font-size: 11px;
}

.eracan-agent-status {
  font-size: 10.5px;
  color: #4fe3f0;
  font-weight: 500;
  opacity: 0.9;
}

.eracan-bubble-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.eracan-bubble-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.eracan-chat-messages {
  margin-bottom: 12px;
}

.eracan-msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(79, 227, 240, 0.18);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.eracan-msg-bubble:hover {
  border-color: rgba(79, 227, 240, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.eracan-msg-greeting {
  font-size: 12.5px;
  font-weight: 700;
  color: #e0f2fe;
}

.eracan-msg-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  min-height: 34px;
  transition: opacity 0.25s ease;
}

.eracan-chat-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eracan-quick-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(79, 227, 240, 0.22), rgba(14, 165, 233, 0.28));
  border: 1px solid rgba(79, 227, 240, 0.55);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.eracan-quick-btn:hover {
  background: linear-gradient(135deg, rgba(79, 227, 240, 0.35), rgba(14, 165, 233, 0.45));
  border-color: rgba(79, 227, 240, 0.85);
  box-shadow: 0 0 20px rgba(79, 227, 240, 0.4), 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-1.5px);
  color: #ffffff !important;
}

.eracan-quick-btn i {
  color: #4fe3f0;
  transition: transform 0.2s ease;
}

.eracan-quick-btn:hover i {
  transform: translateX(3px);
}

.eracan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.eracan-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #4fe3f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eracan-card-hint {
  font-size: 11px;
  color: #94a3b8;
}

.eracan-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.eracan-card-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 10px;
}

.eracan-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #4fe3f0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s;
}

.eracan-float-card:hover .eracan-card-cta {
  color: #67e8f9;
}

/* Tablet ve Mobil Uyumluluk: EraCan WhatsApp'ın üstünde dikey hizalanır; mobilde otomatik popup metni gizlenir */
@media (max-width: 992px) {
  .eracan-floating-widget {
    width: 84px !important;
    height: 130px !important;
    bottom: 88px !important;
    right: 10px !important;
    touch-action: none !important;
  }

  body:has(.floating-store-btn) .eracan-floating-widget {
    bottom: 88px !important;
  }
}

@media (max-width: 768px) {
  .eracan-flowing-chat,
  .eracan-chat-bubble,
  .eracan-float-card {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Mobil Menü Açıkken Maskotu Gizle */
body.mobile-nav-open .eracan-floating-widget,
body:has(.nav-links.active) .eracan-floating-widget {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* Mascot-Only Floating Link (Diğer Sayfalar) */
.eracan-floating-widget.mascot-only {
  text-decoration: none !important;
  outline: none !important;
}

.eracan-floating-widget.mascot-only:hover {
  transform: translateY(-4px) scale(1.05);
}


/* =========================================================================

/* =========================================================================

/* =========================================================================
   MOBİL BUTON SIRALAMASI: SAĞ ALTTAN YUKARIYA DOĞRU
   1. Kat: Synology Mağaza (bottom: 8px)
   2. Kat: WhatsApp (bottom: 38px)
   3. Kat: Sayfa İçi Kayan FAB (İçindekiler / Hizmetler FAB - bottom: 90px)
   4. Kat: EraCan Maskot (bottom: 146px - EN ÜSTTE)
   ========================================================================= */
@media (max-width: 992px) {
  .mobile-toc-fab,
  .services-mobile-fab,
  body:has(.floating-store-btn) .mobile-toc-fab,
  body:has(.floating-store-btn) .services-mobile-fab {
    bottom: 90px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 9997 !important;
  }

  /* Kayan FAB bulunan sayfalarda Maskot FAB'ın üstüne (en tepeye) çıkar */
  body:has(.mobile-toc-fab) .eracan-floating-widget,
  body:has(.services-mobile-fab) .eracan-floating-widget {
    bottom: 146px !important;
    right: 12px !important;
  }
}

@media (max-width: 480px) {
  .mobile-toc-fab,
  .services-mobile-fab,
  body:has(.floating-store-btn) .mobile-toc-fab,
  body:has(.floating-store-btn) .services-mobile-fab {
    bottom: 90px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 9997 !important;
  }

  body:has(.mobile-toc-fab) .eracan-floating-widget,
  body:has(.services-mobile-fab) .eracan-floating-widget {
    bottom: 146px !important;
    right: 12px !important;
  }
}

@media (max-width: 360px) {
  .mobile-toc-fab,
  .services-mobile-fab,
  body:has(.floating-store-btn) .mobile-toc-fab,
  body:has(.floating-store-btn) .services-mobile-fab {
    bottom: 86px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 9997 !important;
  }

  body:has(.mobile-toc-fab) .eracan-floating-widget,
  body:has(.services-mobile-fab) .eracan-floating-widget {
    bottom: 138px !important;
    right: 8px !important;
  }
}

body.mobile-nav-open .mobile-toc-fab,
body.mobile-nav-open .services-mobile-fab,
body:has(.nav-links.active) .mobile-toc-fab,
body:has(.nav-links.active) .services-mobile-fab,
.nav-links.active ~ .mobile-toc-fab,
.nav-links.active ~ .services-mobile-fab {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* MODAL AÇIKKEN TÜM KAYAN BUTONLARI GİZLE VE MODALI EN ÜSTTE TUT */
.mobile-toc-modal,
.services-mobile-modal {
    z-index: 100000 !important;
}

body:has(.mobile-toc-modal.open) .mobile-toc-fab,
body:has(.mobile-toc-modal.open) .eracan-floating-widget,
body:has(.mobile-toc-modal.open) .whatsapp-float,
body:has(.mobile-toc-modal.open) .floating-store-btn,
body:has(.mobile-toc-modal.active) .mobile-toc-fab,
body:has(.mobile-toc-modal.active) .eracan-floating-widget,
body:has(.mobile-toc-modal.active) .whatsapp-float,
body:has(.mobile-toc-modal.active) .floating-store-btn,
body:has(.services-mobile-modal.active) .services-mobile-fab,
body:has(.services-mobile-modal.active) .eracan-floating-widget,
body:has(.services-mobile-modal.active) .whatsapp-float,
body:has(.services-mobile-modal.active) .floating-store-btn {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
