/* ==========================================================================
   YUNUS KAPLAN WHATSAPP CHAT PRO v2.0.1
   Premium animations + tema izolasyonu
   ========================================================================== */

/* ============ ULTRA-RESET - TEMA CSS'İNDEN İZOLASYON ============ */
/* html body prefix ile en yüksek specificity */

html body .ykwa-konteyner,
html body .ykwa-konteyner *,
html body .ykwa-konteyner *::before,
html body .ykwa-konteyner *::after {
    /* Tipografi reset */
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-indent: 0 !important;
    text-align: left;
    line-height: 1.4;
    /* Tema'nın bizim kutuyu yutmaması için */
    float: none !important;
    clear: none !important;
}

/* IMG tag'leri tam reset - tema yutmasın */
html body .ykwa-konteyner img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
    transform: none;
    background: transparent !important;
    vertical-align: middle;
}

/* BUTTON tag'leri tam reset - tema renk uygulayamaz */
html body .ykwa-konteyner button {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 400;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1;
    cursor: pointer;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    text-align: center;
    overflow: visible;
}

/* A tag'leri tam reset */
html body .ykwa-konteyner a {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: inherit !important;
    font-family: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
    outline: none !important;
    line-height: 1.4;
}

/* SVG reset */
html body .ykwa-konteyner svg {
    display: inline-block;
    vertical-align: middle;
    overflow: visible;
    fill: currentColor;
    max-width: none !important;
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* DIV, SPAN, P reset */
html body .ykwa-konteyner div,
html body .ykwa-konteyner span,
html body .ykwa-konteyner p {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    text-decoration: none;
    box-shadow: none;
}

/* ============ KONTEYNER ============ */
.ykwa-konteyner {
    position: fixed !important;
    bottom: 25px !important;
    z-index: 2147483640 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ykwa-konteyner > * {
    pointer-events: auto;
}

.ykwa-konteyner.ykwa-sag {
    right: 25px !important;
    left: auto !important;
}

.ykwa-konteyner.ykwa-sol {
    left: 25px !important;
    right: auto !important;
}

.ykwa-konteyner *,
.ykwa-konteyner *::before,
.ykwa-konteyner *::after {
    box-sizing: border-box;
}

/* Cihaz görünürlük */
@media (max-width: 768px) {
    .ykwa-konteyner.ykwa-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .ykwa-konteyner.ykwa-hide-desktop { display: none !important; }
}

/* ==========================================================================
   TETİK BUTON - PREMIUM
   ========================================================================== */
.ykwa-konteyner .ykwa-tetik {
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    border-radius: 50% !important;
    background-color: var(--ykwa-tema, #25D366) !important;
    background-image: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.12)) !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 
        0 10px 30px -8px rgba(37, 211, 102, 0.45),
        0 4px 12px -2px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    will-change: transform, box-shadow;
    animation: ykwa-giris 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

/* Giriş animasyonu - sayfa yüklendiğinde */
@keyframes ykwa-giris {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.3);
    }
    60% {
        transform: translateY(-8px) scale(1.05);
    }
    80% {
        transform: translateY(2px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ykwa-konteyner .ykwa-tetik:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 
        0 18px 40px -8px rgba(37, 211, 102, 0.55),
        0 8px 20px -4px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
}

.ykwa-konteyner .ykwa-tetik:active {
    transform: translateY(-1px) scale(0.96) !important;
    transition: transform 0.12s ease;
}

.ykwa-wa-ikon,
.ykwa-kapat-ikon {
    width: 32px;
    height: 32px;
    color: #fff;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1) rotate(0);
    transition: 
        transform 0.45s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.ykwa-kapat-ikon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(-90deg);
}

.ykwa-konteyner.ykwa-acik .ykwa-wa-ikon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(90deg);
}

.ykwa-konteyner.ykwa-acik .ykwa-kapat-ikon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
}

/* Bildirim Noktası - sıçramalı giriş */
.ykwa-bildirim-nokta {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff5252, #ff1744);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #fff;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(255, 23, 68, 0.4);
    animation: 
        ykwa-bildirim-girisi 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s,
        ykwa-bildirim-nabiz 2.5s ease-in-out 2.2s infinite;
}

@keyframes ykwa-bildirim-girisi {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.3) rotate(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes ykwa-bildirim-nabiz {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 23, 68, 0.4);
    }
    50% { 
        transform: scale(1.12);
        box-shadow: 0 4px 16px rgba(255, 23, 68, 0.6);
    }
}

.ykwa-konteyner.ykwa-acik .ykwa-bildirim-nokta {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* Halka efekti */
.ykwa-halka {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--ykwa-tema, #25D366);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.ykwa-tetik.ykwa-animasyon .ykwa-halka-1 {
    animation: ykwa-halka-yayilma 2.5s cubic-bezier(0, 0, 0.2, 1) 2s infinite;
}

.ykwa-tetik.ykwa-animasyon .ykwa-halka-2 {
    animation: ykwa-halka-yayilma 2.5s cubic-bezier(0, 0, 0.2, 1) 3.25s infinite;
}

@keyframes ykwa-halka-yayilma {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Sallanma - daha zarif */
.ykwa-tetik.ykwa-animasyon {
    animation: 
        ykwa-giris 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s,
        ykwa-zarif-sallan 6s cubic-bezier(0.45, 0, 0.55, 1) 3s infinite;
}

@keyframes ykwa-zarif-sallan {
    0%, 88%, 100% { transform: rotate(0); }
    90% { transform: rotate(-10deg); }
    92% { transform: rotate(10deg); }
    94% { transform: rotate(-8deg); }
    96% { transform: rotate(6deg); }
    98% { transform: rotate(-3deg); }
}

.ykwa-tetik.ykwa-animasyon:hover {
    animation: none !important;
}

.ykwa-konteyner.ykwa-acik .ykwa-tetik {
    animation: none !important;
}

.ykwa-konteyner.ykwa-acik .ykwa-halka {
    display: none;
}

/* Ripple efekti */
.ykwa-ripple-konteyner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.ykwa-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ykwa-ripple-yay 0.6s linear;
    pointer-events: none;
}

@keyframes ykwa-ripple-yay {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ==========================================================================
   YAN MESAJ (TOOLTIP - şimdilik gizli, ileri özellik)
   ========================================================================== */
.ykwa-yan-mesaj {
    display: none;
}

/* ==========================================================================
   SOHBET KUTUSU - PREMIUM
   ========================================================================== */
html body .ykwa-konteyner .ykwa-sohbet-kutusu {
    position: absolute;
    bottom: 80px;
    width: 360px;
    background-color: #fff !important;
    border-radius: 18px !important;
    box-shadow: 
        0 24px 60px -12px rgba(0, 0, 0, 0.25),
        0 8px 20px -8px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.05) !important;
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    pointer-events: none;
    transition: 
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    transform-origin: bottom right;
    will-change: transform, opacity;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ykwa-konteyner.ykwa-sag .ykwa-sohbet-kutusu {
    right: 0;
    transform-origin: bottom right;
}

.ykwa-konteyner.ykwa-sol .ykwa-sohbet-kutusu {
    left: 0;
    transform-origin: bottom left;
}

.ykwa-konteyner.ykwa-acik .ykwa-sohbet-kutusu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Üst dekoratif gradient */
.ykwa-deko-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.4) 50%,
        transparent);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-100%);
}

.ykwa-konteyner.ykwa-acik .ykwa-deko-gradient {
    animation: ykwa-shimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s 1 forwards;
}

@keyframes ykwa-shimmer {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============ BAŞLIK ============ */
.ykwa-sohbet-baslik {
    background-color: #075E54 !important;
    background-image: linear-gradient(135deg, #075E54 0%, #0C7B6F 50%, #128C7E 100%) !important;
    padding: 18px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    position: relative;
    overflow: hidden;
    border: none !important;
    margin: 0 !important;
}

/* Başlıkta arka plan motif */
.ykwa-sohbet-baslik::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ykwa-baslik-sol {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

html body .ykwa-konteyner .ykwa-profil-resim-wrap {
    position: relative;
    flex-shrink: 0;
    opacity: 1 !important;
    transform: scale(1);
    visibility: visible !important;
    display: block !important;
}

.ykwa-konteyner.ykwa-acik .ykwa-profil-resim-wrap {
    animation: ykwa-profil-giris 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

@keyframes ykwa-profil-giris {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

html body .ykwa-konteyner .ykwa-profil-resim {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2.5px solid rgba(255, 255, 255, 0.4) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
    background: #fff !important;
}

.ykwa-cevrimici-nokta {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    border-radius: 50%;
    border: 2.5px solid #0C7B6F;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
    animation: ykwa-online-puls 2s ease-in-out infinite;
}

@keyframes ykwa-online-puls {
    0%, 100% { box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
}

html body .ykwa-konteyner .ykwa-baslik-yazi {
    flex: 1;
    min-width: 0;
    color: #fff !important;
    opacity: 1 !important;
    transform: translateX(0);
    visibility: visible !important;
    display: block !important;
}

html body .ykwa-konteyner .ykwa-isim {
    font-size: 15.5px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    color: #fff !important;
    background: transparent !important;
}

html body .ykwa-konteyner .ykwa-unvan {
    font-size: 12.5px !important;
    opacity: 0.92 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    color: #fff !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .ykwa-konteyner .ykwa-durum-yazisi {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 500 !important;
    color: #fff !important;
}

.ykwa-konteyner.ykwa-acik .ykwa-baslik-yazi {
    animation: ykwa-yazi-giris 0.4s cubic-bezier(0, 0, 0.2, 1) 0.2s;
}

@keyframes ykwa-yazi-giris {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.ykwa-durum-yazisi.ykwa-online::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
    animation: ykwa-mini-puls 1.6s ease-in-out infinite;
}

.ykwa-durum-yazisi.ykwa-offline::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #ff9800;
    border-radius: 50%;
    display: inline-block;
}

@keyframes ykwa-mini-puls {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

html body .ykwa-konteyner button.ykwa-kapat {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 
        background 0.25s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    box-shadow: none !important;
    text-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html body .ykwa-konteyner button.ykwa-kapat:hover {
    background-color: rgba(255, 255, 255, 0.22) !important;
    transform: rotate(90deg);
}

html body .ykwa-konteyner button.ykwa-kapat:active {
    transform: rotate(90deg) scale(0.9);
}

html body .ykwa-konteyner button.ykwa-kapat svg {
    width: 16px !important;
    height: 16px !important;
    color: #fff !important;
    fill: none !important;
    stroke: #fff !important;
}

/* ==========================================================================
   MESAJ ALANI
   ========================================================================== */
html body .ykwa-konteyner .ykwa-mesaj-alani {
    background-color: #e5ddd5 !important;
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
        radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px) !important;
    background-size: 18px 18px, 26px 26px !important;
    background-position: 0 0, 9px 9px !important;
    padding: 22px 18px 16px !important;
    min-height: 180px !important;
    position: relative;
    border: none !important;
    margin: 0 !important;
}

/* Yazma göstergesi - daha gerçekçi */
.ykwa-yazma-gostergesi {
    background: #fff;
    border-radius: 16px 16px 16px 4px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: 
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ykwa-konteyner.ykwa-yazma .ykwa-yazma-gostergesi {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ykwa-yazma-gostergesi span {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: ykwa-yazma-noktasi 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

@keyframes ykwa-yazma-noktasi {
    0%, 60%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.4; 
        background: #cbd5e0;
    }
    30% { 
        transform: translateY(-7px) scale(1.15); 
        opacity: 1; 
        background: #7c8794;
    }
}

/* Mesaj baloncuğu */
html body .ykwa-konteyner .ykwa-mesaj-baloncuk {
    background-color: #fff !important;
    background-image: none !important;
    border-radius: 12px 12px 12px 4px !important;
    padding: 10px 14px 6px !important;
    max-width: 88% !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.02) !important;
    position: relative;
    opacity: 1 !important;
    transform: translateY(0) scale(1);
    margin: 0 0 8px !important;
    border: none !important;
    visibility: visible !important;
    display: block !important;
    transition: 
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mesaj baloncuğunun kuyruğu */
.ykwa-mesaj-baloncuk::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transform: rotate(-25deg);
}

.ykwa-konteyner.ykwa-mesaj-gosterildi .ykwa-mesaj-baloncuk:not(.ykwa-mesaj-offline) {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ykwa-mesaj-baloncuk.ykwa-mesaj-offline {
    background: #fff3cd;
    border-radius: 12px 12px 12px 4px;
    transition-delay: 0.3s;
}

.ykwa-mesaj-baloncuk.ykwa-mesaj-offline::before {
    background: #fff3cd;
}

.ykwa-konteyner.ykwa-mesaj-gosterildi .ykwa-mesaj-baloncuk.ykwa-mesaj-offline {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ykwa-offline-ikon {
    font-size: 14px;
    margin-right: 4px;
}

html body .ykwa-konteyner .ykwa-mesaj-icerik {
    font-size: 14.5px !important;
    color: #1f2c33 !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    font-weight: 400 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ykwa-mesaj-altbilgi {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 2px;
}

html body .ykwa-konteyner .ykwa-mesaj-saat {
    font-size: 10.5px !important;
    color: #8696a0 !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.ykwa-mesaj-tikler {
    line-height: 0;
}

.ykwa-mesaj-tikler svg {
    width: 16px;
    height: 11px;
}

/* ==========================================================================
   HIZLI YANITLAR
   ========================================================================== */
.ykwa-hizli-yanitlar {
    margin-top: 12px;
    padding-top: 4px;
}

.ykwa-hizli-yanitlar-baslik {
    font-size: 11px;
    color: #5f7280;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 1;
}

.ykwa-konteyner.ykwa-mesaj-gosterildi .ykwa-hizli-yanitlar-baslik {
    animation: ykwa-fade-up 0.4s ease 2s;
}

@keyframes ykwa-fade-up {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ykwa-hizli-yanit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
    color: #1f2c33;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: 
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        background 0.25s ease;
    opacity: 1;
    transform: translateY(0);
}

.ykwa-konteyner.ykwa-mesaj-gosterildi .ykwa-hizli-yanit {
    animation-name: ykwa-fade-up;
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ykwa-konteyner:not(.ykwa-mesaj-gosterildi) .ykwa-hizli-yanit {
    animation: none;
}

.ykwa-hizli-yanit:hover {
    transform: translateX(3px);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    box-shadow: 0 4px 12px -2px rgba(37, 211, 102, 0.15), 0 0 0 1px rgba(37, 211, 102, 0.2);
    color: #15803d;
}

.ykwa-hizli-yanit:active {
    transform: translateX(3px) scale(0.98);
}

.ykwa-hizli-yanit-metin {
    flex: 1;
    line-height: 1.4;
}

.ykwa-hizli-yanit-ok {
    width: 14px;
    height: 14px;
    color: #8696a0;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.ykwa-hizli-yanit:hover .ykwa-hizli-yanit-ok {
    transform: translateX(3px);
    color: var(--ykwa-tema, #25D366);
}

/* ==========================================================================
   KVKK NOTICE
   ========================================================================== */
.ykwa-kvkk {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
}

.ykwa-kvkk svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #9ca3af;
}

.ykwa-kvkk a {
    color: var(--ykwa-tema, #25D366) !important;
    text-decoration: underline !important;
    font-weight: 500;
}

/* ==========================================================================
   ANA BUTON (Sohbete Başla)
   ========================================================================== */
html body .ykwa-konteyner .ykwa-sohbet-buton {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 22px !important;
    background-color: var(--ykwa-tema, #25D366) !important;
    background-image: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1)) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    transition: 
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease !important;
    width: 100% !important;
    letter-spacing: 0.01em !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.08) !important;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.ykwa-sohbet-buton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ykwa-sohbet-buton:hover::before {
    left: 100%;
}

.ykwa-sohbet-buton:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 
        0 6px 18px -4px rgba(37, 211, 102, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ykwa-sohbet-buton:active {
    transform: translateY(0) scale(0.98);
}

.ykwa-sohbet-buton svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.ykwa-buton-ok {
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}

.ykwa-sohbet-buton:hover .ykwa-buton-ok {
    transform: translateX(4px);
    opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
html body .ykwa-konteyner .ykwa-sohbet-footer {
    padding: 11px 18px !important;
    background-color: #f0f2f5 !important;
    background-image: none !important;
    font-size: 11.5px !important;
    color: #667781 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-top: 0.5px solid rgba(0, 0, 0, 0.03) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

html body .ykwa-konteyner .ykwa-sohbet-footer strong {
    color: #128C7E !important;
    font-weight: 600 !important;
    background: transparent !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 480px) {
    .ykwa-konteyner.ykwa-sag {
        right: 16px !important;
        bottom: 16px !important;
    }
    .ykwa-konteyner.ykwa-sol {
        left: 16px !important;
        bottom: 16px !important;
    }
    .ykwa-sohbet-kutusu {
        width: calc(100vw - 32px);
        max-width: 360px;
        bottom: 78px;
    }
    .ykwa-konteyner.ykwa-sag .ykwa-sohbet-kutusu { right: 0; }
    .ykwa-konteyner.ykwa-sol .ykwa-sohbet-kutusu { left: 0; }
    .ykwa-konteyner .ykwa-tetik {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
    }
    .ykwa-wa-ikon, .ykwa-kapat-ikon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 360px) {
    .ykwa-sohbet-kutusu {
        width: calc(100vw - 24px);
    }
    .ykwa-konteyner.ykwa-sag { right: 12px !important; bottom: 14px !important; }
    .ykwa-konteyner.ykwa-sol { left: 12px !important; bottom: 14px !important; }
}

/* Erişilebilirlik - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .ykwa-konteyner *,
    .ykwa-konteyner *::before,
    .ykwa-konteyner *::after {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
    }
}

/* ==========================================================================
   ARAMA (TELEFON) BUTONU - WhatsApp'tan tamamen bağımsız, üzerine sabit
   ========================================================================== */

html body .ykwa-arama-fab,
html body .ykwa-arama-fab * {
    box-sizing: border-box !important;
}

html body .ykwa-arama-fab:hover {
    transform: scale(1.12) !important;
    box-shadow: 
        0 12px 32px rgba(33, 150, 243, 0.6), 
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 0 0 0 rgba(33, 150, 243, 0.5) !important;
}

html body .ykwa-arama-fab:active {
    transform: scale(0.95) !important;
}

/* Telefon nabız animasyonu — dikkat çekici */
@keyframes ykwa-arama-pulse {
    0%, 100% {
        box-shadow: 
            0 8px 24px rgba(33, 150, 243, 0.45),
            0 3px 8px rgba(0, 0, 0, 0.18),
            0 0 0 0 rgba(33, 150, 243, 0.6) !important;
    }
    50% {
        box-shadow: 
            0 8px 24px rgba(33, 150, 243, 0.45),
            0 3px 8px rgba(0, 0, 0, 0.18),
            0 0 0 18px rgba(33, 150, 243, 0) !important;
    }
}

/* Telefon ikonu sallanma efekti */
html body .ykwa-arama-fab .ykwa-arama-ikon {
    animation: ykwa-tel-salla 3s ease-in-out infinite !important;
    transform-origin: center !important;
}

@keyframes ykwa-tel-salla {
    0%, 88%, 100% { transform: rotate(0deg); }
    90% { transform: rotate(-15deg); }
    93% { transform: rotate(15deg); }
    96% { transform: rotate(-10deg); }
    98% { transform: rotate(0deg); }
}

/* Mobilde biraz küçük */
@media (max-width: 768px) {
    html body .ykwa-arama-fab {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        bottom: 95px !important;
    }
    html body .ykwa-arama-fab .ykwa-arama-ikon {
        width: 22px !important;
        height: 22px !important;
    }
}

/* Mobilde gizle (eklenti ayarına bağlı) */
.ykwa-arama-fab.ykwa-hide-mobile {
    display: none !important;
}
@media (max-width: 768px) {
    .ykwa-arama-fab.ykwa-hide-mobile {
        display: none !important;
    }
}

.ykwa-arama-fab.ykwa-hide-desktop {
    /* sadece desktop gizleyecek media kuralı altta */
}
@media (min-width: 769px) {
    .ykwa-arama-fab.ykwa-hide-desktop {
        display: none !important;
    }
}

/* Sohbet açıkken arama butonunu gizle (çakışmasın) */
body.ykwa-sohbet-acik .ykwa-arama-fab {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.7) translateY(20px) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html body .ykwa-arama-fab,
    html body .ykwa-arama-fab .ykwa-arama-ikon {
        animation: none !important;
    }
}
