#kosar-public-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999999;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    user-select: none;
}

#kosar-chat-toggle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#kosar-chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

#kosar-chat-window-container {
    position: absolute;
    bottom: 85px;
    left: 0;
    width: 400px;
    height: 600px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 80vh;
}

.kosar-chat-header {
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kosar-chat-header .header-info strong { 
    display: block; 
    font-size: 1.15rem; 
    color: #1e293b;
    font-weight: 700;
}

.kosar-chat-header .header-info span { 
    font-size: 0.85rem; 
    color: #64748b;
}

.header-actions { display: flex; gap: 12px; }
.header-actions button {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-actions button:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

#kosar-chat-close:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

#kosar-chat-reset:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

#kosar-chat-minimize:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.header-icon {
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.5px !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    flex-shrink: 0;
}

#kosar-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.msg {
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 0.98rem;
    max-width: 85%;
    line-height: 1.6;
    word-wrap: break-word;
}

.msg.bot {
    background: #ffffff;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.msg.user {
    background: #2563eb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.thinking-indicator {
    font-style: italic;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.kosar-chat-input-area {
    padding: 20px 24px;
    background: linear-gradient(to top, #ffffff 0%, #fbfcfd 100%);
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}

#kosar-chat-input {
    flex: 1;
    padding: 16px 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 18px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
    background: #fbfcfd;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

#kosar-chat-input:focus {
    border-color: #2563eb !important;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), inset 0 2px 4px rgba(0,0,0,0.01) !important;
}

#kosar-chat-input::placeholder {
    color: #64748b;
    opacity: 0.9;
}

/* HIGH VISIBILITY SEND BUTTON */
#kosar-chat-send {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
    border: none !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

#kosar-chat-send:active {
    transform: scale(0.95);
}

#kosar-chat-send:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

#kosar-chat-send svg {
    display: block;
    margin: auto;
}

/* PERSISTENT WHATSAPP BUTTON */
.whatsapp-support-bar {
    padding: 12px 24px;
    background: #f0fdf4;
    border-top: 1px solid #dcfce7;
    flex-shrink: 0;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #22c55e;
    color: white !important;
    text-decoration: none !important;
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.whatsapp-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

/* Scrollbar */
#kosar-chat-messages::-webkit-scrollbar { width: 6px; }
#kosar-chat-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
