/* ================================================
   ilanvan.com Van Kedisi Chatbot CSS
================================================ */

:root {
    --chatbot-color: #ff6b35;
    --chatbot-radius: 16px;
    --chatbot-shadow: 0 8px 32px rgba(0,0,0,0.18);
    --chatbot-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.necox-chatbot {
    position: fixed;
    z-index: 999999;
    font-family: var(--chatbot-font);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/* ── 9 Pozisyon ── */
.necox-chatbot.position-top-left      { top: 24px;    left: 24px;  }
.necox-chatbot.position-top-center    { top: 24px;    left: 50%;   transform: translateX(-50%); }
.necox-chatbot.position-top-right     { top: 24px;    right: 24px; }
.necox-chatbot.position-left-center   { top: 50%;     left: 24px;  transform: translateY(-50%); }
.necox-chatbot.position-center        { top: 50%;     left: 50%;   transform: translate(-50%,-50%); }
.necox-chatbot.position-right-center  { top: 50%;     right: 24px; transform: translateY(-50%); }
.necox-chatbot.position-bottom-left   { bottom: 24px; left: 24px;  }
.necox-chatbot.position-bottom-center { bottom: 24px; left: 50%;   transform: translateX(-50%); }
.necox-chatbot.position-bottom-right  { bottom: 24px; right: 24px; }
/* Sürüklenmiş konumdaysa CSS transform ve pozisyon kurallarını sıfırla */
.necox-chatbot.is-dragged {
    transform: none !important;
    /* top/left/bottom/right inline style ile JS tarafından yönetilir */
}

/* Toggle Butonu */
.chatbot-toggle {
    width: var(--toggle-size, 64px);
    height: var(--toggle-size, 64px);
    border-radius: 50%;
    background: var(--chatbot-color);
    border: none;
    cursor: grab;
    box-shadow: var(--chatbot-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.2s, height 0.2s, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 4px;
    flex-shrink: 0;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.chatbot-toggle.active {
    transform: scale(0.9);
}

.chatbot-avatar-icon {
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-svg-large {
    width: 80%;
    height: 80%;
}

.chatbot-notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #ff3b3b;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot 2s infinite;
}

.chatbot-notification-dot.hidden {
    display: none;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Chat Penceresi */
.chatbot-window {
    position: absolute;
    width: 360px;
    height: 520px;
    background: #fff;
    border-radius: var(--chatbot-radius);
    box-shadow: var(--chatbot-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.chatbot-window.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Pozisyona göre pencere konumu */
/* ── Alt pozisyonlar: pencere yukarı açılır ── */
.position-bottom-right  .chatbot-window,
.position-bottom-center .chatbot-window,
.position-bottom-left   .chatbot-window { bottom: 76px; transform-origin: bottom center; }
.position-bottom-right  .chatbot-window { right: 0;  left: auto; transform-origin: bottom right; }
.position-bottom-left   .chatbot-window { left: 0;   right: auto; transform-origin: bottom left; }
.position-bottom-center .chatbot-window { left: 50%; transform: translateX(-50%); transform-origin: bottom center; }

/* ── Üst pozisyonlar: pencere aşağı açılır ── */
.position-top-right  .chatbot-window,
.position-top-center .chatbot-window,
.position-top-left   .chatbot-window { top: 76px; transform-origin: top center; }
.position-top-right  .chatbot-window { right: 0;  left: auto; transform-origin: top right; }
.position-top-left   .chatbot-window { left: 0;   right: auto; transform-origin: top left; }
.position-top-center .chatbot-window { left: 50%; transform: translateX(-50%); transform-origin: top center; }

/* ── Orta-kenar pozisyonlar ── */
.position-left-center  .chatbot-window { left: 76px;  top: 50%; transform: translateY(-50%); transform-origin: left center; }
.position-right-center .chatbot-window { right: 76px; top: 50%; left: auto; transform: translateY(-50%); transform-origin: right center; }
.position-center       .chatbot-window { left: 50%;   top: 50%; transform: translate(-50%,-50%); transform-origin: center; }

/* Kapalı/açık animasyon override'ları */
.position-bottom-center .chatbot-window.hidden { transform: translateX(-50%) scale(0.85) translateY(16px); }
.position-bottom-center .chatbot-window.visible{ transform: translateX(-50%) scale(1) translateY(0); }
.position-top-center    .chatbot-window.hidden { transform: translateX(-50%) scale(0.85) translateY(-16px); }
.position-top-center    .chatbot-window.visible{ transform: translateX(-50%) scale(1) translateY(0); }
.position-left-center   .chatbot-window.hidden { transform: translateY(-50%) scale(0.85); }
.position-left-center   .chatbot-window.visible{ transform: translateY(-50%) scale(1); }
.position-right-center  .chatbot-window.hidden { transform: translateY(-50%) scale(0.85); }
.position-right-center  .chatbot-window.visible{ transform: translateY(-50%) scale(1); }
.position-center        .chatbot-window.hidden { transform: translate(-50%,-50%) scale(0.85); }
.position-center        .chatbot-window.visible{ transform: translate(-50%,-50%) scale(1); }

/* Sürüklenmiş durumdaki widget için pencere: widget'tan bağımsız, JS ile fixed konumlanır */
.necox-chatbot.is-dragged .chatbot-window {
    position: fixed !important;
    transform-origin: bottom left;
}
.necox-chatbot.is-dragged .chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}
.necox-chatbot.is-dragged .chatbot-window.visible {
    opacity: 1;
    transform: scale(1);
}

/* Header */
.chatbot-header {
    background: var(--chatbot-color);
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

/* Header ust satir */
.chatbot-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: 52px;
}

.chatbot-header-logo {
    max-height: 36px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.chatbot-header-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    z-index: 1;
    pointer-events: none;
}

.chatbot-header-logo img {
    max-height: 36px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.chatbot-header-avatar {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-svg-small {
    width: 34px;
    height: 34px;
}

.chatbot-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    overflow: hidden;
}

.chatbot-header-name {
    color: white;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatbot-header-status {
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #4cff91;
    border-radius: 50%;
    display: inline-block;
    animation: status-blink 2s infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chatbot-minimize {
    background: rgba(0,0,0,0.25);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.chatbot-minimize:hover {
    background: rgba(255,255,255,0.35);
}

.chatbot-close {
    background: rgba(0,0,0,0.25);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chatbot-close:hover {
    background: rgba(255,255,255,0.35);
}

/* Mesajlar */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent !important;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.chatbot-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: fadeInUp 0.25s ease;
}

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

.chatbot-message.bot { align-self: flex-start; }
.chatbot-message.user { align-self: flex-end; }

.chatbot-message-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chatbot-message.bot .chatbot-message-bubble {
    background: white;
    color: #333;
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.chatbot-message.user .chatbot-message-bubble {
    background: var(--chatbot-color);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.chatbot-message-time {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
    padding: 0 4px;
}

.chatbot-message.user .chatbot-message-time {
    text-align: right;
}

/* Yazıyor animasyonu */
.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    background: white;
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    width: fit-content;
    align-self: flex-start;
}

.chatbot-typing span {
    width: 7px;
    height: 7px;
    background: #ccc;
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite;
}

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

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); background: #ccc; }
    40% { transform: translateY(-6px); background: var(--chatbot-color); }
}

/* Input Alanı */
.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 4px;
    background: white;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

#necox-chatbot-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--chatbot-font);
    background: #f8f9fa;
    color: #333;
}

#necox-chatbot-input:focus {
    border-color: var(--chatbot-color);
    background: white;
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--chatbot-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.chatbot-send-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.chatbot-voice-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-voice-btn:hover,
.chatbot-voice-btn.recording {
    background: #ff3b3b;
    border-color: #ff3b3b;
}

.chatbot-voice-btn svg {
    width: 16px;
    height: 16px;
    stroke: #666;
}

.chatbot-voice-btn:hover svg,
.chatbot-voice-btn.recording svg {
    stroke: white;
}

/* Mobil */
/* ═══════════════════════════════════════════════
   TABLET (768px ve altı)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Pencereyi parent'tan kopar, ekrana göre sabitle */
    .necox-chatbot[class*="position-"] .chatbot-window {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: var(--chatbot-tablet-width, calc(100vw - 32px)) !important;
        height: var(--chatbot-tablet-height, 65vh) !important;
        max-height: var(--chatbot-tablet-maxheight, 600px) !important;
        margin: 0 !important;
    }

    /* Kapalıyken */
    .necox-chatbot[class*="position-"] .chatbot-window.hidden {
        opacity: 0 !important;
        transform: translate(-50%, -50%) scale(0.93) !important;
        pointer-events: none !important;
    }

    /* Açıkken */
    .necox-chatbot[class*="position-"] .chatbot-window.visible {
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* ═══════════════════════════════════════════════
   DESKTOP & TABLET - Toggle daima sol alt köşe
═══════════════════════════════════════════════ */
@media (min-width: 481px) {
    /* Toggle daima sol alt köşe (sürüklenmemişse) */
    .necox-chatbot[class*="position-"]:not(.is-dragged) {
        bottom: 24px !important;
        left: 24px !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }

    /* Sürüklenmiş pozisyonu JS inline style üzerinden yönetir */
    .necox-chatbot.is-dragged {
        bottom: auto !important;
        right: auto !important;
    }

    /* Sohbet kutusu JS tarafından fixed olarak konumlanır, max genişlik sınırı */
    .necox-chatbot[class*="position-"] .chatbot-window,
    .necox-chatbot.is-dragged .chatbot-window {
        max-width: calc(100vw - 48px) !important;
    }
}

/* ═══════════════════════════════════════════════
   MOBİL (480px ve altı)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Tüm pozisyon overridelarını sıfırla - toggle sol altta sabit, nav bar'ın üzerinde */
    .necox-chatbot[class*="position-"]:not(.is-dragged) {
        position: fixed !important;
        bottom: 75px !important;
        left: 20px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* Suruklenince is-dragged sinifi geliyor — inline style ile konum JS yonetiyor */
    .necox-chatbot.is-dragged {
        position: fixed !important;
        bottom: auto !important;
        right: auto !important;
        transform: none !important;
        /* top ve left JS tarafindan inline !important ile set ediliyor */
    }

    /* Pencereyi parent'tan kopar, tam ekranın ortasına sabitle */
    .necox-chatbot[class*="position-"] .chatbot-window {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 24px) !important;
        height: var(--chatbot-mobile-height, 82vh) !important;
        max-height: var(--chatbot-mobile-maxheight, none) !important;
        border-radius: var(--chatbot-mobile-radius, 16px) !important;
        margin: 0 !important;
    }

    /* Kapalıyken */
    .necox-chatbot[class*="position-"] .chatbot-window.hidden {
        opacity: 0 !important;
        transform: translate(-50%, -50%) scale(0.93) !important;
        pointer-events: none !important;
    }

    /* Açıkken */
    .necox-chatbot[class*="position-"] .chatbot-window.visible {
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    /* Klavye açıkken yüksekliği küçült */
    .necox-chatbot.keyboard-open .chatbot-window {
        height: var(--chatbot-keyboard-height, 55vh) !important;
    }

    /* Yazı ve input daha büyük - parmakla kolay kullanım */
    #necox-chatbot-input {
        font-size: max(var(--chatbot-msg-font, 15px), 16px) !important;
        padding: 12px 16px !important;
    }
    .chatbot-send-btn,
    .chatbot-voice-btn {
        width: 44px !important;
        height: 44px !important;
    }
    .chatbot-header-row {
        padding: 8px 10px !important;
    }
    .chatbot-messages {
        padding: 12px !important;
    }
}

/* ================================================
   Vaniş v2.0 - Ek Stiller
================================================ */

/* Header actions (ses + kapat buton grubu) */
.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Ses butonu */
.chatbot-sound-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chatbot-sound-btn:hover { background: rgba(255,255,255,0.35); }
.chatbot-sound-btn.muted  { background: rgba(255,59,59,0.4); }
.chatbot-sound-btn svg    { width: 14px; height: 14px; stroke: white; }

/* Mesaj limiti bar */
.chatbot-limit-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #fff8f5;
    border-top: 1px solid #ffe5d8;
    flex-shrink: 0;
}
.chatbot-limit-bar.limit-empty {
    background: #fff0f0;
    border-top-color: #ffc0c0;
}
.limit-label {
    font-size: 11px;
    color: #ff6b35;
    font-weight: 500;
    white-space: nowrap;
}
.limit-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}
.limit-dot.active {
    background: var(--chatbot-color);
    transform: scale(1.1);
}

/* Limit aşımı mesajı */
.chatbot-message.bot.limit-msg .chatbot-message-bubble {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 4px 18px 18px 18px;
}

/* Sesli giriş butonu — her zaman görünür */
.chatbot-voice-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.chatbot-voice-btn:hover,
.chatbot-voice-btn.recording {
    background: #ff3b3b;
    border-color: #ff3b3b;
}
.chatbot-voice-btn svg { width: 16px; height: 16px; stroke: #666; }
.chatbot-voice-btn:hover svg,
.chatbot-voice-btn.recording svg { stroke: white; }

.chatbot-toggle:active { cursor: grabbing; }

/* ═══════════════════════════════════════════════
   VANİŞ ANİMASYONLARI
═══════════════════════════════════════════════ */

/* Neon halka animasyonları artık .chatbot-toggle-ring üzerinde */

/* Zıplama animasyonu - wrapper'a taşındı, yazı da birlikte hareket eder */
.chatbot-toggle {
    animation: none;
}

@keyframes icon-float {
    0%   { transform: translateY(0px) rotate(0deg); }
    15%  { transform: translateY(-9px) rotate(-3deg); }
    30%  { transform: translateY(0px) rotate(0deg); }
    45%  { transform: translateY(-5px) rotate(2deg); }
    60%  { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Göz kırpma - SVG elementlerine */
.cat-svg-large .eye-left,
.cat-svg-large .eye-right {
    animation: eye-blink 4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center 50%;
}
.cat-svg-large .eye-right {
    animation-delay: 0.08s;
}

@keyframes eye-blink {
    0%, 42%, 58%, 100% { transform: scaleY(1); }
    50%                 { transform: scaleY(0.05); }
}

/* Kulak titreme */
.cat-svg-large .ear-left {
    transform-origin: 25px 30px;
    animation: ear-twitch 5s ease-in-out infinite;
}
.cat-svg-large .ear-right {
    transform-origin: 75px 30px;
    animation: ear-twitch 5s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes ear-twitch {
    0%, 85%, 100% { transform: rotate(0deg); }
    88%           { transform: rotate(-8deg); }
    92%           { transform: rotate(5deg); }
    96%           { transform: rotate(-3deg); }
}

/* Bıyık titreme */
.cat-svg-large .whisker {
    animation: whisker-move 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes whisker-move {
    0%, 90%, 100% { transform: scaleX(1); }
    95%           { transform: scaleX(1.08); }
}

/* Header'daki küçük kedi de hafif pulse yapsın */
.cat-svg-small {
    animation: small-pulse 3s ease-in-out infinite;
}

@keyframes small-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* ═══════════════════════════════════════════════
   YENİ ÖZELLİKLER: Font, Logo, Arka Plan, Kenarlık
═══════════════════════════════════════════════ */

/* Yazı büyüklüğü - CSS değişkeni ile */
.chatbot-message-bubble {
    font-size: var(--chatbot-msg-font, 15px) !important;
}
#necox-chatbot-input {
    font-size: var(--chatbot-msg-font, 15px) !important;
}
.chatbot-message-time {
    font-size: calc(var(--chatbot-msg-font, 15px) - 4px) !important;
}

/* Sohbet kutusu köşe yuvarlaklığı */
.chatbot-window {
    border-radius: var(--chatbot-radius, 16px) !important;
}

/* Arka plan video */
#necox-chatbot-window .chatbot-bg-video {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    border-radius: inherit !important;
}

/* Arka plan overlay */
#necox-chatbot-window .chatbot-bg-overlay {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    z-index: 1 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
}

/* Icerik video/overlay'in ustunde kalmali */
#necox-chatbot-window > *:not(.chatbot-bg-video):not(.chatbot-bg-overlay) {
    position: relative !important;
    z-index: 2 !important;
}

/* Video/resim arka planlarda mesaj alani seffaf */
#necox-chatbot-window.chatbot-window[style*="background-image"] .chatbot-messages,
#necox-chatbot-window.chatbot-window[style*="background: transparent"] .chatbot-messages {
    background: transparent;
}

.chatbot-toggle-wrapper:active { cursor: grabbing; }
.chatbot-toggle-wrapper.active-chat {
    animation: none;
}

/* Wrapper içindeki toggle butonundan eski sürükle imlecini kaldır */
.chatbot-toggle-wrapper .chatbot-toggle {
    cursor: inherit;
    position: relative;
    z-index: 2;
}

/* ── Neon Dönen Halkalar ── */
.chatbot-toggle-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dış dönen neon halka */
.chatbot-toggle-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%, rgba(0,191,255,0) 3%,
        rgba(0,191,255,1) 14%, rgba(180,240,255,1) 20%,
        rgba(0,191,255,0) 30%, transparent 50%,
        rgba(255,107,53,0) 54%, rgba(255,107,53,1) 66%,
        rgba(255,215,130,1) 72%, rgba(255,107,53,0) 82%,
        transparent 100%
    );
    animation: neon-ring-spin 3.5s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* İç ters dönen ince halka */
.chatbot-toggle-ring::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 120deg,
        transparent 0%, rgba(0,191,255,.4) 10%,
        transparent 25%, transparent 60%,
        rgba(255,107,53,.35) 72%, transparent 87%
    );
    animation: neon-ring-spin 6s linear infinite reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes neon-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Glow aura */
.chatbot-toggle {
    filter: drop-shadow(0 0 0px rgba(0,191,255,0));
}
.chatbot-toggle-ring .chatbot-toggle {
    box-shadow:
        0 0 16px rgba(0,191,255,0.45),
        0 0 32px rgba(0,191,255,0.2),
        0 0 48px rgba(0,191,255,0.08) !important;
    animation: neon-glow-pulse 3s ease-in-out infinite;
}

@keyframes neon-glow-pulse {
    0%,100% {
        box-shadow:
            0 0 16px rgba(0,191,255,0.45),
            0 0 32px rgba(0,191,255,0.2),
            0 0 48px rgba(0,191,255,0.08);
    }
    50% {
        box-shadow:
            0 0 22px rgba(0,191,255,0.65),
            0 0 44px rgba(0,191,255,0.3),
            0 0 65px rgba(0,191,255,0.14);
    }
}

/* Chatbot adı etiketi - toggle'ın üstünde */
.chatbot-toggle-label {
    display: block !important;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1.2;
    padding: 3px 10px 4px;
    border-radius: 20px;
    margin-bottom: 6px;
    margin-top: 0;
    position: relative;
    letter-spacing: 0.5px;
}

/* Neon border animasyonu - etiket etrafında */
.chatbot-toggle-label.neon-border {
    animation: neon-glow-label 2s ease-in-out infinite alternate;
}

@keyframes neon-glow-label {
    0%   { box-shadow: 0 0 4px currentColor, 0 0 8px currentColor; }
    100% { box-shadow: 0 0 8px currentColor, 0 0 18px currentColor, 0 0 30px currentColor; }
}

/* Avatar icon - toggle boyutuyla oran koruyarak büyüsün */
.chatbot-avatar-icon {
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-svg-large {
    width: 80%;
    height: 80%;
}

/* Kampanya noktası pulse animasyonu */
.chatbot-notification-dot.pulse {
    animation: campaign-pulse 1.5s ease-in-out infinite;
}

@keyframes campaign-pulse {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(1);   opacity: 1; }
}

/* Tıklanabilir ilan linkleri */
.chatbot-message-bubble a.chatbot-link {
    color: var(--chatbot-color, #ff6b35);
    text-decoration: underline;
    word-break: break-all;
    font-weight: 500;
}
.chatbot-message-bubble a.chatbot-link:hover {
    opacity: 0.8;
}

/* Limit: rakam gösterimi */
.limit-count {
    font-size: 12px;
    color: #555;
    padding: 2px 6px;
}
.limit-count strong {
    color: var(--chatbot-color, #ff6b35);
    font-size: 14px;
}

/* Limit: sınırsız gösterimi */
.limit-unlimited {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
    padding: 2px 6px;
}

/* İlan kartları */
/* Kart wrapper — chatbot-message siniflarindan bagimsiz, tam genislikte */
.chatbot-ilan-cards-wrap {
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}
/* Kart yapısal stiller — renk/font dinamik CSS'ten gelir */
#necox-chatbot-window .chatbot-ilan-cards { display: flex; flex-direction: column; }
#necox-chatbot-window .chatbot-ilan-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
/* thumb-top: banner gorunum (default) */
#necox-chatbot-window .chatbot-ilan-card.thumb-top {
    display: block !important;
    position: static !important;
}
#necox-chatbot-window .chatbot-ilan-card.thumb-top .chatbot-ilan-card-thumb {
    position: static !important;
    width: calc(100% + 24px) !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    margin-top: -10px !important;
    margin-bottom: 8px !important;
    height: 140px !important;
}
/* thumb-overlay: overlay gorunum */
#necox-chatbot-window .chatbot-ilan-card.thumb-overlay {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
}
#necox-chatbot-window .chatbot-ilan-card.thumb-overlay .chatbot-ilan-card-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}
#necox-chatbot-window .chatbot-ilan-card.thumb-overlay .chatbot-ilan-card-title,
#necox-chatbot-window .chatbot-ilan-card.thumb-overlay .chatbot-ilan-card-meta,
#necox-chatbot-window .chatbot-ilan-card.thumb-overlay .chatbot-ilan-card-desc,
#necox-chatbot-window .chatbot-ilan-card.thumb-overlay .chatbot-ilan-btn {
    position: relative !important;
    z-index: 1 !important;
}
#necox-chatbot-window .chatbot-ilan-card-thumb {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#necox-chatbot-window .chatbot-ilan-card:hover {
    color: inherit;
}
#necox-chatbot-window .chatbot-ilan-card-title {
    margin-top: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
#necox-chatbot-window .chatbot-ilan-card-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
}
#necox-chatbot-window .chatbot-ilan-card-meta span {
    white-space: nowrap;
    margin: 0 !important;
    padding: 0 !important;
}
#necox-chatbot-window .chatbot-ilan-urgent {
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════
   DESTEK MODU — Support Chat UI
   ═══════════════════════════════════════════════ */

/* Chatbot penceresi destek modunda genişlesin */
#necox-chatbot-window.necox-support-mode {
    width: 760px !important;
    max-width: 96vw !important;
    height: 640px !important;
    max-height: 92vh !important;
}

/* Geri butonu */
.isup-back-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: background .2s;
    flex-shrink: 0;
}
.isup-back-btn:hover { background: rgba(255,255,255,0.2); }

/* Ana layout */
#necox-support-ui {
    display: flex;
    height: calc(100% - 52px);
    overflow: hidden;
}

/* Sol panel */
.isup-left {
    width: 180px;
    min-width: 180px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    overflow: hidden;
}
.isup-left-title {
    padding: 12px 14px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .6px;
    flex-shrink: 0;
}
.isup-staff-list { flex: 1; overflow-y: auto; }
.isup-staff-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
}
.isup-staff-card:hover { background: #f2f2f2; }
.isup-staff-card.isup-active {
    background: #fff4f0;
    border-left-color: var(--chatbot-color, #ff6b35);
}
.isup-staff-photo {
    width: 40px; height: 40px;
    border-radius: 50%; object-fit: cover;
    flex-shrink: 0; border: 2px solid #eee;
}
.isup-staff-avatar {
    width: 40px; height: 40px;
    border-radius: 50%; background: #e8e8e8;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.isup-staff-info { overflow: hidden; min-width: 0; }
.isup-staff-info strong {
    display: block; font-size: 13px; color: #1a1a1a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-weight: 600;
}
.isup-staff-info span { display: block; font-size: 11px; color: #aaa; margin-top: 2px; }

/* Online/Offline durum gostergesi */
.isup-staff-card { position: relative; }
.isup-status-dot {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    top: 10px; left: 48px;
    z-index: 2;
}
.isup-status-dot.isup-online { background: #22c55e; }
.isup-status-dot.isup-offline { background: #9ca3af; }
.isup-status-text {
    font-size: 10px !important;
    margin-top: 1px !important;
}
.isup-status-text.online { color: #22c55e !important; }
.isup-status-text.offline { color: #9ca3af !important; }

/* Sağ panel */
.isup-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.isup-right-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ddd;
    gap: 8px;
}
.isup-right-empty span { font-size: 40px; }
.isup-right-empty p    { font-size: 13px; color: #bbb; margin: 0; }

/* Sohbet başlığı */
.isup-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}
.isup-chat-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.isup-chat-avatar-ph {
    width: 36px; height: 36px; border-radius: 50%;
    background: #e8e8e8; display: flex; align-items: center;
    justify-content: center; font-size: 18px; flex-shrink: 0;
}
.isup-chat-header strong { display: block; font-size: 14px; color: #1a1a1a; font-weight: 600; }
.isup-chat-header span   { font-size: 11px; color: #aaa; }

/* Mesajlar */
.isup-messages {
    flex: 1 1 0;
    min-height: 200px;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f7f7;
    scroll-behavior: smooth;
}
.isup-msg { display: flex; flex-direction: column; max-width: 78%; }
.isup-msg-mine   { align-self: flex-end; align-items: flex-end; }
.isup-msg-theirs { align-self: flex-start; align-items: flex-start; }
.isup-msg-bubble {
    padding: 10px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}
.isup-msg-mine   .isup-msg-bubble {
    background: var(--chatbot-color, #ff6b35);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.isup-msg-theirs .isup-msg-bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.isup-msg-time { font-size: 10px; color: #c0c0c0; margin-top: 3px; padding: 0 3px; }

/* Input */
.isup-input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px 14px;
    border-top: 1px solid #ebebeb;
    background: #fff;
    flex-shrink: 0;
}
.isup-textarea {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border .2s, box-shadow .2s;
    line-height: 1.5;
    min-height: 46px;
    max-height: 120px;
    overflow-y: auto;
}
.isup-textarea:focus {
    border-color: var(--chatbot-color, #ff6b35);
    box-shadow: 0 0 0 3px rgba(255,107,53,.1);
}
.isup-send-btn {
    background: var(--chatbot-color, #ff6b35);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    white-space: nowrap;
    flex-shrink: 0;
    height: 46px;
}
.isup-send-btn:hover  { opacity: .88; transform: translateY(-1px); }
.isup-send-btn:active { transform: translateY(0); }
.isup-send-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Giriş gerekli */
.isup-login-required {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
}
.isup-login-required p { font-size: 14px; color: #666; margin: 0; line-height: 1.5; }
.isup-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    background: var(--chatbot-color, #ff6b35);
    color: #fff !important;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity .2s;
    min-width: 140px;
    justify-content: center;
}
.isup-login-btn:hover { opacity: .85; }
.isup-register-btn { background: #555 !important; }

/* Responsive — mobil */
/* Sol panel gizlenince sag tam ekran */
.isup-left-hidden { display: none !important; }
.isup-right-fullscreen { width: 100% !important; max-width: 100% !important; }

@media (max-width: 520px) {
    /* Pencere tam ekran */
    #necox-chatbot-window.necox-support-mode {
        width: calc(100vw - 16px) !important;
        height: 88vh !important;
        max-height: 88vh !important;
        bottom: 8px !important;
        right: 8px !important;
    }

    /* Sol panel daha dar — temsilci secim ekrani */
    .isup-left { width: 130px; min-width: 130px; }
    .isup-left-title { font-size: 10px; padding: 10px 8px 6px; }
    .isup-staff-card { padding: 10px 8px; gap: 8px; }
    .isup-staff-photo, .isup-staff-avatar { width: 34px; height: 34px; font-size: 16px; }
    .isup-staff-info strong { font-size: 12px; }
    .isup-staff-info span { font-size: 10px; }

    /* Mesaj baloncuklari */
    .isup-msg { max-width: 90% !important; }
    .isup-msg-bubble { font-size: 14px !important; padding: 10px 14px !important; }

    /* Mesaj alani daha yuksek */
    .isup-messages {
        flex: 1 1 0 !important;
        min-height: 150px !important;
        padding: 12px 14px !important;
    }

    /* Input buyuk ve parmakla kolay */
    .isup-input-area { padding: 10px 12px 14px !important; gap: 10px !important; }
    .isup-textarea { font-size: 15px !important; min-height: 48px !important; padding: 11px 14px !important; border-radius: 12px !important; }
    .isup-send-btn { height: 48px !important; padding: 11px 18px !important; font-size: 14px !important; border-radius: 12px !important; }

    /* Sohbet basligi */
    .isup-chat-header { padding: 10px 12px !important; }
    .isup-chat-header strong { font-size: 14px !important; }
}
@media (max-width: 380px) {
    .isup-left { width: 110px; min-width: 110px; }
    .isup-staff-info span { display: none; }
    .isup-staff-card { padding: 9px 6px; }

    #necox-chatbot-window.necox-support-mode {
        width: 100vw !important;
        height: 92vh !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }
}

/* ══════════════════════════════════════════
   DESTEK MODU — 3 hedefli düzeltme
   ══════════════════════════════════════════ */

/* 1. Mesajlasma alani yuksekligi artik ana blokta tanimli */
#necox-chatbot-window.necox-support-mode {
    max-height: 92vh !important;
}

/* 2. Giris/kayit popup — chatbot ustunde gorunsun */
#login.modal,
#register.modal {
    z-index: 1000002 !important;
}
/* Login/register backdrop'u chatbot'un ustunde */
.necox-chatbot-login-active .modal-backdrop {
    z-index: 1000001 !important;
}

/* Mobilde popup — Bootstrap display yönetimine dokunma, sadece boyut */
@media (max-width: 600px) {
    #login.modal .modal-dialog,
    #register.modal .modal-dialog {
        max-width: 92vw !important;
        margin: 16px auto !important;
    }
    #login.modal .modal-content,
    #register.modal .modal-content {
        border-radius: 14px !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
    }
}

/* ═══ WhatsApp & Messenger Kanallari ═══ */
.isup-channels {
    padding: 8px 12px 0;
    flex-shrink: 0;
    overflow: hidden;
}
.isup-channels-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}
.isup-channel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    margin-bottom: 6px;
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
    border: none;
}
.isup-channel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
    text-decoration: none;
}
.isup-channel-btn svg {
    flex-shrink: 0;
}
.isup-wa-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.isup-wa-btn:hover {
    background: linear-gradient(135deg, #20bd5a, #0f7a6e);
}
.isup-fb-btn {
    background: linear-gradient(135deg, #0084FF, #0066CC);
}
.isup-fb-btn:hover {
    background: linear-gradient(135deg, #0077e6, #005bb5);
}
.isup-channels-divider {
    display: flex;
    align-items: center;
    margin: 8px 0 4px;
    gap: 10px;
}
.isup-channels-divider::before,
.isup-channels-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}
.isup-channels-divider span {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* ═══ Per-Staff WhatsApp & Messenger Buttons ═══ */
.isup-staff-channels {
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    align-items: center;
}
.isup-staff-channels .isup-channel-btn {
    flex: none;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 0;
}

/* ═══ Channel Description Text ═══ */
.isup-channel-desc {
    font-size: 11px;
    color: #555;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.3;
    text-align: center;
}
.isup-staff-channels .isup-channel-desc:not(:first-child) {
    margin-top: 8px;
}

/* ═══ Staff WhatsApp Toggle Butonu ═══ */
.isup-wa-staff-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 10px;
    background: #fff8f0;
    border-bottom: 1px solid #ffe0c0;
    width: 100%;
}
.isup-wa-staff-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    line-height: 1.2;
}
.isup-wa-staff-toggle-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.isup-wa-staff-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.isup-wa-staff-toggle-hint {
    font-size: 10px;
    color: #999;
    line-height: 1.3;
}

/* ═══ Kullanici Paneli Mesajlasma Link Alani ═══ */
.isup-panel-link-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: #f0f4ff;
    border-top: 1px solid #dce6ff;
    text-align: center;
}
.isup-panel-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #3b82f6;
    color: #fff !important;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    line-height: 1.2;
}
.isup-panel-link-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    color: #fff !important;
}
.isup-panel-link-desc {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════
   MOBIL RESPONSIVE FIX — Sohbet penceresi tam ekrana sigsin
   WhatsApp/kanal bolumu kompakt, gonder butonu her zaman gorunsun
   ═══════════════════════════════════════════════════ */

/* Kanal bolumu: flex-shrink tanimi ana blokta birlestirildi */

@media (max-width: 520px) {

    /* Pencere: gorunur ekran yuksekligine sig */
    #necox-chatbot-window.necox-support-mode {
        height: calc(var(--vh, 1vh) * 90) !important;
        max-height: calc(var(--vh, 1vh) * 90) !important;
        display: flex;
        flex-direction: column;
    }

    /* Support UI tum yuksekligi kaplasin */
    #necox-support-ui {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    /* Sag panel flex column — scroll sadece mesajlarda */
    .isup-right {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
    }

    /* Kanal bolumu: daha kucuk padding, buton daha ince */
    .isup-channels {
        padding: 8px 10px 0 !important;
    }

    .isup-channel-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        margin-bottom: 6px !important;
    }

    .isup-channel-btn svg {
        width: 15px !important;
        height: 15px !important;
    }

    /* Aciklama metni: daha kucuk */
    .isup-channel-desc {
        font-size: 11px !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.3 !important;
    }

    /* Ayrac: daha dar bosluk */
    .isup-channels-divider {
        margin: 8px 0 4px !important;
    }

    /* Mesajlar flex ile dinamik boyut — tasmasin */
    .isup-messages {
        flex: 1 1 0 !important;
        min-height: 120px !important;
        overflow-y: auto !important;
        padding: 12px 14px !important;
    }

    /* Gonder butonu her zaman gorunsun */
    .isup-input-area {
        flex-shrink: 0 !important;
        padding: 10px 12px 12px !important;
    }
}

@media (max-width: 380px) {

    /* Cok kucuk ekranlarda kanal aciklamasi gizlensin */
    .isup-channel-desc {
        display: none !important;
    }

    .isup-channels {
        padding: 6px 8px 0 !important;
    }

    .isup-channel-btn {
        padding: 7px 10px !important;
        font-size: 11px !important;
    }

    .isup-channels-divider {
        margin: 6px 0 3px !important;
    }
}

/* ── Tablet Responsive (521px - 768px) ── */
@media (min-width: 521px) and (max-width: 768px) {
    #necox-chatbot-window.necox-support-mode {
        width: 94vw !important;
        height: 75vh !important;
        max-height: 80vh !important;
    }
    .isup-left { width: 160px; min-width: 160px; }
    .isup-messages {
        min-height: 180px !important;
        padding: 14px 16px !important;
    }
    .isup-textarea {
        font-size: 14px !important;
        min-height: 46px !important;
    }
    .isup-send-btn {
        height: 46px !important;
        font-size: 14px !important;
    }
}

/* ── Ilan Git Butonu ─────────────────────────────────────────── */
/* ── Ilan karti butonu — Adifier genel a/button kurallarini sifirla ── */
#necox-chatbot-window .chatbot-ilan-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
    cursor: pointer !important;
    /* Adifier a{} ve tema genel kurallari buton boyutunu bozmasin */
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    vertical-align: baseline !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap !important;
    /* Boyut degiskenligi: dinamik CSS !important ile uzerine yazar,
       bu kurallar sadece dinamik CSS yuklenmeden once (sayfa gec isi sirasinda)
       butonun sismesini engeller */
    max-width: 100% !important;
}
#necox-chatbot-window .chatbot-ilan-btn:hover {
    text-decoration: none !important;
}
#necox-chatbot-window .chatbot-ilan-btn:active {
    opacity: 0.85 !important;
}
#necox-chatbot-window .chatbot-ilan-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}
#necox-chatbot-window .chatbot-ilan-btn-icon {
    font-size: 14px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}
#necox-chatbot-window .chatbot-ilan-btn-text {
    flex-shrink: 0 !important;
}
#necox-chatbot-window .chatbot-ilan-btn-arrow {
    font-size: 15px !important;
    transition: transform 0.18s ease !important;
    flex-shrink: 0 !important;
}
#necox-chatbot-window .chatbot-ilan-btn:hover .chatbot-ilan-btn-arrow {
    transform: translateX(3px) !important;
}
#necox-chatbot-window .chatbot-ilan-btn-wrap {
    display: none !important;
}
/* Buton direkt kart icinde, wrap olmadan */
#necox-chatbot-window .chatbot-ilan-card > .chatbot-ilan-btn {
    display: inline-flex !important;
    margin-top: 8px !important;
}

/* Footer bilgi - input'un altinda, stiller admin'den gelir */
.chatbot-footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.2;
}
.chatbot-footer-info a:hover {
    text-decoration: underline !important;
    opacity: 0.9;
}

/* Support modunda footer gizle - sohbet alanina yer ac */
.necox-support-mode .chatbot-footer-info {
    display: none !important;
}

/* ═══ Toolbar: Ses(sol) + Kampanya(sag) — limit bar'in altinda ═══ */
.chatbot-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    flex-shrink: 0;
}

/* ═══ Kampanya Butonu ═══ */
.chatbot-campaign-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform .2s, box-shadow .2s;
    letter-spacing: 0.3px;
    margin-left: auto;
}
.chatbot-campaign-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 3px 14px rgba(0,0,0,0.25);
    text-decoration: none;
    color: inherit;
}
.chatbot-campaign-btn:active {
    transform: scale(0.95);
}
.campaign-btn-text {
    line-height: 1;
}
.campaign-btn-arrow {
    font-size: 13px;
    transition: transform .2s;
}
.chatbot-campaign-btn:hover .campaign-btn-arrow {
    transform: translateX(3px);
}

/* Pulse animasyonu */
.chatbot-campaign-btn.campaign-pulse {
    animation: campaignPulse 2s ease-in-out infinite;
}
@keyframes campaignPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 5px rgba(255,68,68,0.2); }
}

/* Support modunda toolbar ve footer gizle */
.necox-support-mode .chatbot-toolbar {
    display: none !important;
}
.necox-support-mode .chatbot-header-bottom {
    display: none !important;
}

/* Mobil responsive */
@media (max-width: 480px) {
    .chatbot-toolbar {
        padding: 3px 10px;
    }
    .chatbot-campaign-btn {
        font-size: 10px;
        padding: 3px 12px;
    }
}

/* ── Kategoriler Butonu — mesaj alani ile input arasinda sag alt ── */
.chatbot-catbtn-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 4px 10px 2px 10px;
    flex-shrink: 0;
}
.chatbot-catbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform .2s, box-shadow .2s;
    letter-spacing: 0.3px;
    line-height: 1;
}
.chatbot-catbtn:hover {
    transform: scale(1.06);
    box-shadow: 0 3px 14px rgba(0,0,0,0.25);
}
.chatbot-catbtn:active {
    transform: scale(0.95);
}
.catbtn-text {
    line-height: 1;
}
.catbtn-arrow {
    font-size: 13px;
    transition: transform .2s;
}
.chatbot-catbtn:hover .catbtn-arrow {
    transform: translateX(3px);
}
@media (max-width: 480px) {
    .chatbot-catbtn {
        font-size: 10px;
        padding: 4px 12px;
    }
}

/* ── Kategori Kartlari — Container ── */
.chatbot-category-container {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.15) transparent;
    box-sizing: border-box;
    max-width: 100%;
}
.chatbot-category-container::-webkit-scrollbar { width: 4px; }
.chatbot-category-container::-webkit-scrollbar-track { background: transparent; }
.chatbot-category-container::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }

/* ── Kategori Kartlari — Liste ── */
.chatbot-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ── Kategori Kartlari — Kart Ogesi ── */
.chatbot-category-item {
    margin: 0;
    width: 100%;
}
.chatbot-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    gap: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}
.chatbot-category-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.chatbot-category-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.chatbot-category-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    min-width: 0;
}
.chatbot-category-count {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Hover Efekt 1: Glow Lift — yukari kayma + golge artisi ── */
.chatbot-category-link.hvr-glow-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

/* ── Hover Efekt 2: Border Pulse — kenarlik gecisli parlama ── */
.chatbot-category-link.hvr-border-pulse {
    transition: all 0.3s ease, border-color 0.3s ease;
}
.chatbot-category-link.hvr-border-pulse:hover {
    border-color: var(--catcard-hover-border, #ff6b35);
    background: var(--catcard-hover-bg, #f8f9fa);
    box-shadow: 0 0 0 2px rgba(255,107,53,.15);
}

/* ── Hover Efekt 3: Slide Highlight — soldan saga arka plan gecisi ── */
.chatbot-category-link.hvr-slide-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--catcard-hover-bg, #f8f9fa);
    transition: left 0.3s ease;
    z-index: 0;
    border-radius: inherit;
}
.chatbot-category-link.hvr-slide-highlight:hover::before {
    left: 0;
}
.chatbot-category-link.hvr-slide-highlight .chatbot-category-left,
.chatbot-category-link.hvr-slide-highlight .chatbot-category-count {
    position: relative;
    z-index: 1;
}

/* ── Hover Efekt 4: Scale Pop — hafif buyume + golge ── */
.chatbot-category-link.hvr-scale-pop:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

/* ── Alt Kategori Stili ── */
.chatbot-category-child-item {
    margin-left: 0;
}
.chatbot-category-link.catcard-child .chatbot-category-name {
    font-weight: 400;
    color: #555;
}

/* ── v1.2.40: Marka/Model Gosterim Stilleri ── */

/* == Stil 1: Baloncuk / Chip == */
.chatbot-brands-chip .chatbot-brands-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 6px;
}
.chatbot-brands-chip .chatbot-brand-item {
    flex: 0 0 auto;
}
.chatbot-brands-chip .chatbot-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 16px;
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.chatbot-brands-chip .chatbot-brand-link:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.chatbot-brands-chip .chatbot-category-name {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
}
.chatbot-brands-chip .chatbot-category-count {
    font-size: 10px;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 8px;
}

/* == Stil 2: Kategori Karti == */
/* Kategori karti stili renderCategories ile ayni CSS'i kullanir */
/* Ek olarak brand ikonu icin: */
.chatbot-brand-icon {
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

/* ================================================
   Whisper STT — kayit UI
================================================ */
.chatbot-voice-btn.recording-whisper {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    animation: whisper-pulse 1.2s ease-in-out infinite;
}
.chatbot-voice-btn.recording-whisper svg {
    stroke: #fff !important;
}
@keyframes whisper-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.chatbot-voice-btn.processing-whisper {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
}
.chatbot-voice-btn.processing-whisper svg {
    stroke: #fff !important;
    animation: whisper-spin 1s linear infinite;
}
@keyframes whisper-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* Kayit suresi badge */
#chatbot-rec-timer {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 8px;
    pointer-events: none;
    display: none;
    line-height: 1.6;
}
.chatbot-voice-btn { position: relative; }

/* ================================================================
   v1.2.43: Ilan Tipi Kartlari — 2'serli grid duzeni
   ================================================================ */
.chatbot-adtype-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.chatbot-adtype-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 70px;
    box-sizing: border-box;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}
.chatbot-adtype-name {
    line-height: 1.3;
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}
.chatbot-adtype-count {
    line-height: 1.2;
}

/* v1.2.56: Dinamik baslik karti — tasma onleme */
.chatbot-dynamic-title {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobilde tek kolon — cok dar ekranlarda */
@media (max-width: 340px) {
    .chatbot-adtype-grid {
        grid-template-columns: 1fr;
    }
}

/* ilpsp — Canli Destek popup body scroll kilidi */
body.ilpsp-body-lock {
    overflow: hidden;
}

/* ═══ v1.3.2: Kilitli mesajlasma paneli (chatbot support mode) ═══ */
.isup-locked-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(247,247,247,.96);
    border-radius: 8px;
    margin: 10px 12px 0;
    text-align: center;
    flex-shrink: 0;
}
.isup-locked-icon { font-size: 24px; }
.isup-locked-text {
    font-size: 13px; color: #888; line-height: 1.5; margin: 0;
}
.isup-locked-text strong {
    color: #555; display: block; margin-bottom: 3px; font-size: 13px;
}
.isup-textarea.isup-locked,
.isup-send-btn.isup-locked {
    opacity: .35 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* ═══ v1.3.2: Sohbeti Bitir butonu (chatbot support mode) ═══ */
.isup-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1.5px solid #e53e3e;
    border-radius: 6px;
    background: transparent;
    color: #e53e3e;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s;
    margin-left: auto;
    flex-shrink: 0;
}
.isup-end-btn:hover { background: #e53e3e; color: #fff; }

/* ═══ v1.3.2: Panel link butonu (chatbot support mode) ═══ */
.isup-panel-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 2px solid #1e3a6e;
    border-radius: 8px;
    background: transparent;
    color: #1e3a6e !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .18s, color .18s;
    align-self: flex-start;
}
.isup-panel-link-btn:hover {
    background: #1e3a6e;
    color: #fff !important;
    text-decoration: none !important;
}
