:root {
    --kk-bg: #1f2937;       /* Koyu Lacivert Zemin */
    --kk-text: #ffffff;     /* Beyaz Yazı */
    --kk-red: #dc2626;      /* Kırmızı */
    --kk-red-hover: #b91c1c;
    --kk-radius: 12px;
    
    --kk-float-bg: #1f2937;
    --kk-float-border: #374151;
}

.kk-hidden { display: none !important; }

/* --- FLOAT BUTTON (Sol Alt Yuvarlak İkon) --- */
.kk-float-btn {
    position: fixed; bottom: 25px; left: 25px; width: 56px; height: 56px;
    border-radius: 50%; background: var(--kk-float-bg); border: 1px solid var(--kk-float-border);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    z-index: 999998; box-shadow: 0 4px 15px rgba(0,0,0,0.25); transition: all 0.3s ease;
}
.kk-float-btn:hover { transform: scale(1.08); }
.kk-float-btn img { width: 28px; height: 28px; object-fit: contain; position: absolute; }
.kk-img-dark { opacity: 0; visibility: hidden; }
.kk-img-light { opacity: 1; visibility: visible; }

/* --- BANNER (ANA KUTU) --- */
.kk-banner {
    position: fixed; 
    bottom: 25px; 
    left: 25px;         
    width: auto; 
    max-width: 600px;   /* İdeal genişlik */
    background: var(--kk-bg); 
    color: #fff; 
    padding: 30px;      
    border-radius: var(--kk-radius); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); 
    z-index: 999999;
    font-family: system-ui, -apple-system, sans-serif;
    animation: kkSlideUp 0.5s ease-out;

    /* İŞTE ÇÖZÜM BURADA: */
    display: flex;
    flex-direction: column; /* Alt alta dizilimi sağlar */
    gap: 20px;              /* Yazı ile butonlar arasındaki boşluk */
}

/* İçerik Alanı */
.kk-content { 
    width: 100%;
}

.kk-text p { 
    margin: 0; 
    font-size: 15px; 
    line-height: 1.6; 
    color: #e5e7eb;
}

/* Metin içindeki Linkler (Kırmızı) */
.kk-text-link { 
    color: #fff !important; 
    text-decoration: underline !important; 
    cursor: pointer;
    font-weight: 500;
}

/* --- BUTON GRUBU --- */
.kk-actions { 
    display: flex; 
    justify-content: flex-end; /* Butonları en sağa iter */
    align-items: center;       /* Dikeyde ortalar */
    gap: 15px;                 /* İki buton arası boşluk */
    width: 100%;               /* Alanı tam kapla ki sağa yaslayabilsin */
}

.kk-btn { 
    padding: 12px 24px; 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer; 
    border: none; 
    transition: 0.2s; 
    text-transform: uppercase;
    white-space: nowrap; /* Buton içindeki yazının alt satıra geçmesini engeller */
}

/* KABUL ET (Kırmızı Kutu) */
.kk-btn-primary { 
    background: var(--kk-red); 
    color: #fff; 
}
.kk-btn-primary:hover { 
    background: var(--kk-red-hover); 
}

/* ÇEREZ AYARLARI (Şeffaf Arkaplan) */
.kk-btn-secondary { 
    background: transparent; 
    color: #ffffff; 
    padding: 10px 15px; /* Biraz daha dar padding */
}
.kk-btn-secondary:hover { 
    color: #e5e7eb;
    text-decoration: underline; /* Üzerine gelince altını çizsin */
}

/* --- MODAL (Aynı Kalıyor) --- */
.kk-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 999999; }
.kk-modal { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.kk-modal-inner { background: var(--kk-bg); color: var(--kk-text); width: 100%; max-width: 500px; border-radius: var(--kk-radius); box-shadow: 0 25px 50px rgba(0,0,0,0.5); overflow: hidden; }
.kk-modal-header { padding: 20px 25px; border-bottom: 1px solid #374151; display: flex; justify-content: space-between; align-items: center; }
.kk-modal-header h2 { margin: 0; font-size: 18px; color: #fff; }
.kk-close-modal { background: none; border: none; font-size: 28px; cursor: pointer; color: #9ca3af; }
.kk-modal-body { padding: 25px; max-height: 70vh; overflow-y: auto; }
.kk-option { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #374151; padding-bottom: 15px; }
.kk-option:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }
.kk-option label { font-weight: 600; color: #fff; font-size: 15px; display: block; }
.kk-option span { font-size: 13px; color: #9ca3af; }
.kk-modal-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid #374151; }
.full-width { width: 100%; }

/* Switch */
input.kk-toggle { appearance: none; width: 44px; height: 24px; background: #4b5563; border-radius: 20px; position: relative; cursor: pointer; transition: 0.3s; }
input.kk-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: 0.3s; }
input.kk-toggle:checked { background: var(--kk-red); }
input.kk-toggle:checked::after { transform: translateX(20px); }
input.kk-toggle:disabled { opacity: 0.6; cursor: not-allowed; }

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

@media (max-width: 600px) {
    .kk-banner { 
        left: 15px; right: 15px; bottom: 20px; 
        max-width: none;
    }
    .kk-actions {
        justify-content: space-between; /* Mobilde butonları iki uca yasla */
    }
}