.solitu-chatbot-widget,
.solitu-chatbot-widget *{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

.solitu-chatbot-widget .chat-launcher{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:999999;
}
.solitu-chatbot-widget .chat-hint{
    position:absolute;
    right:88px;
    bottom:18px;
    width:220px;
    background:white;
    color:#0f172a;
    padding:12px 14px;
    border-radius:18px;
    font-size:13px;
    line-height:1.35;
    box-shadow:0 12px 35px rgba(0,0,0,0.25);
    animation:hintFloat 2.5s ease-in-out infinite;
}
.solitu-chatbot-widget .chat-hint::after{
    content:"";
    position:absolute;
    right:-8px;
    bottom:20px;
    border-left:8px solid white;
    border-top:8px solid transparent;
    border-bottom:8px solid transparent;
}
@keyframes hintFloat{
    0%, 100%{ transform:translateY(0); }
    50%{ transform:translateY(-4px); }
}
.solitu-chatbot-widget .chat-toggle{
    width:64px;
    height:64px;
    border:none;
    border-radius:50%;
    background:#000000;
    cursor:pointer;
    box-shadow:0 0 30px rgba(0,0,0,0.45);
    padding:4px;
    overflow:hidden;
}
.solitu-chatbot-widget .chat-toggle img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}
.solitu-chatbot-widget .chat-container{
    position:fixed;
    right:20px;
    bottom:92px;
    width:340px;
    height:min(450px, calc(100vh - 145px));
    max-height:calc(100vh - 145px);
    background:#0b1220;
    border-radius:22px;
    overflow:hidden;
    display:none;
    flex-direction:column;
    border:1px solid #1f2937;
    box-shadow:0 0 45px rgba(0,0,0,0.55);
    z-index:999998;
}
.solitu-chatbot-widget .chat-container.solitu-chat-open{
    display:flex !important;
}
.solitu-chatbot-widget.solitu-chatbot-inline{
    display:block;
    width:100%;
    max-width:420px;
    margin:24px 0;
}
.solitu-chatbot-widget.solitu-chatbot-inline .chat-launcher{
    display:none;
}
.solitu-chatbot-widget.solitu-chatbot-inline .chat-container{
    position:relative;
    right:auto;
    bottom:auto;
    width:100%;
    height:min(560px, calc(100vh - 120px));
    min-height:420px;
    max-height:none;
    display:flex !important;
    z-index:auto;
}
.solitu-chatbot-widget .chat-header{
    background:#111827;
    padding:16px;
    color:white;
    display:flex;
    align-items:center;
    gap:12px;
    border-bottom:1px solid #1f2937;
}
.solitu-chatbot-widget .profile-pic{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
    background:#000000;
}
.solitu-chatbot-widget .header-info{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.solitu-chatbot-widget .header-title{
    font-size:17px;
    font-weight:bold;
}
.solitu-chatbot-widget .header-status{
    font-size:13px;
    color:#9ca3af;
    display:flex;
    align-items:center;
    gap:6px;
}
.solitu-chatbot-widget .online-dot{
    width:8px;
    height:8px;
    background:#22c55e;
    border-radius:50%;
}
.solitu-chatbot-widget .header-actions{
    margin-left:auto;
    display:flex;
    gap:8px;
}
.solitu-chatbot-widget .header-actions button,
.solitu-chatbot-widget .history-panel-header button{
    border:none;
    background:#1d4ed8;
    color:white;
    border-radius:999px;
    padding:8px 10px;
    cursor:pointer;
    font-size:12px;
}
.solitu-chatbot-widget .header-actions button:hover,
.solitu-chatbot-widget .history-panel-header button:hover{
    background:#3b82f6;
}
.solitu-chatbot-widget .history-panel{
    position:absolute;
    top:81px;
    left:0;
    right:0;
    bottom:73px;
    background:#0f172a;
    z-index:10;
    display:none;
    flex-direction:column;
    border-top:1px solid #1f2937;
}
.solitu-chatbot-widget .history-panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px;
    color:white;
    border-bottom:1px solid #1f2937;
}
.solitu-chatbot-widget .history-list{
    padding:12px;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
}
.solitu-chatbot-widget .history-item{
    width:100%;
    text-align:left;
    border:none;
    background:#1e293b;
    color:white;
    border-radius:14px;
    padding:12px;
    cursor:pointer;
}
.solitu-chatbot-widget .history-item:hover{
    background:#273449;
}
.solitu-chatbot-widget .history-item span{
    display:block;
    margin-top:4px;
    color:#9ca3af;
    font-size:12px;
}
.solitu-chatbot-widget .history-empty{
    color:#9ca3af;
    padding:14px;
    font-size:14px;
}
.solitu-chatbot-widget .chat-messages{
    flex:1;
    overflow-y:auto;
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:14px;
    background:#0f172a;
}
.solitu-chatbot-widget .message-row{
    display:flex;
    align-items:flex-end;
    gap:8px;
}
.solitu-chatbot-widget .message-row.user-row{
    justify-content:flex-end;
}
.solitu-chatbot-widget .message-avatar{
    width:32px;
    height:32px;
    border-radius:50%;
    object-fit:cover;
    background:#000000;
    flex-shrink:0;
}
.solitu-chatbot-widget .message{
    padding:12px 14px;
    border-radius:18px;
    max-width:78%;
    line-height:1.45;
    font-size:14px;
}
.solitu-chatbot-widget .bot{
    background:#1e293b;
    color:white;
    border-bottom-left-radius:6px;
}
.solitu-chatbot-widget .user{
    background:#2563eb;
    color:white;
    border-bottom-right-radius:6px;
}
.solitu-chatbot-widget .chat-input{
    display:flex;
    gap:10px;
    padding:14px;
    background:#111827;
    border-top:1px solid #1f2937;
}
.solitu-chatbot-widget .chat-input input{
    flex:1;
    padding:14px;
    border:none;
    border-radius:999px;
    background:#1e293b;
    color:white;
    outline:none;
}
.solitu-chatbot-widget .chat-input button{
    padding:14px 18px;
    border:none;
    border-radius:999px;
    background:#2563eb;
    color:white;
    cursor:pointer;
    font-weight:bold;
}
.solitu-chatbot-widget .quick-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}
.solitu-chatbot-widget .quick-buttons button{
    background:#1d4ed8;
    border:none;
    color:white;
    padding:9px 12px;
    border-radius:999px;
    cursor:pointer;
    transition:0.2s;
    font-size:13px;
}
.solitu-chatbot-widget .quick-buttons button:hover{
    background:#3b82f6;
}
.solitu-chatbot-widget .email-button{
    display:inline-block;
    background:#22c55e;
    color:white;
    text-decoration:none;
    padding:11px 14px;
    border-radius:999px;
    font-weight:bold;
    margin-top:8px;
}
.solitu-chatbot-widget .email-button:hover{
    background:#16a34a;
}
.solitu-chatbot-widget .analytics-overlay[hidden]{
    display:none;
}
.solitu-chatbot-widget .analytics-overlay{
    position:fixed;
    inset:0;
    z-index:1200;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(4,10,20,0.84);
}
.solitu-chatbot-widget .analytics-panel{
    width:min(1040px, 100%);
    max-height:calc(100vh - 40px);
    overflow-y:auto;
    background:#f8fafc;
    color:#0f172a;
    border-radius:14px;
    box-shadow:0 24px 80px rgba(0,0,0,0.38);
}
.solitu-chatbot-widget .analytics-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:22px;
    border-bottom:1px solid #e2e8f0;
}
.solitu-chatbot-widget .analytics-eyebrow{
    color:#16a34a;
    font-size:12px;
    font-weight:bold;
    letter-spacing:0;
    text-transform:uppercase;
    margin-bottom:4px;
}
.solitu-chatbot-widget .analytics-header h2{
    font-size:24px;
    line-height:1.2;
}
.solitu-chatbot-widget .analytics-close{
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#e2e8f0;
    color:#0f172a;
    cursor:pointer;
    font-size:22px;
    line-height:1;
}
.solitu-chatbot-widget .analytics-close:hover{
    background:#cbd5e1;
}
.solitu-chatbot-widget .analytics-cards{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:12px;
    padding:18px 22px 8px;
}
.solitu-chatbot-widget .analytics-card{
    border:1px solid #e2e8f0;
    border-radius:8px;
    padding:14px;
    background:white;
}
.solitu-chatbot-widget .analytics-card span{
    display:block;
    color:#64748b;
    font-size:13px;
    margin-bottom:8px;
}
.solitu-chatbot-widget .analytics-card strong{
    display:block;
    font-size:28px;
    line-height:1;
}
.solitu-chatbot-widget .analytics-grid{
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:14px;
    padding:14px 22px 22px;
}
.solitu-chatbot-widget .analytics-section{
    border:1px solid #e2e8f0;
    border-radius:8px;
    padding:16px;
    background:white;
}
.solitu-chatbot-widget .analytics-section h3{
    font-size:16px;
    margin-bottom:14px;
}
.solitu-chatbot-widget .analytics-section-wide{
    grid-row:span 4;
}
.solitu-chatbot-widget .analytics-funnel{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.solitu-chatbot-widget .analytics-row-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:7px;
    font-size:13px;
}
.solitu-chatbot-widget .analytics-row-top strong{
    white-space:nowrap;
}
.solitu-chatbot-widget .analytics-bar{
    height:10px;
    overflow:hidden;
    border-radius:999px;
    background:#e2e8f0;
}
.solitu-chatbot-widget .analytics-bar span{
    display:block;
    width:var(--bar-width, 0%);
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg, #16a34a, #d7ff00);
}
.solitu-chatbot-widget .analytics-list{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:10px;
}
.solitu-chatbot-widget .analytics-list li{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-bottom:10px;
    border-bottom:1px solid #e2e8f0;
    font-size:13px;
}
.solitu-chatbot-widget .analytics-list li:last-child{
    border-bottom:none;
    padding-bottom:0;
}
.solitu-chatbot-widget .analytics-list b{
    font-size:14px;
}
.solitu-chatbot-widget .analytics-empty{
    color:#64748b;
    font-size:14px;
}
.solitu-chatbot-widget .analytics-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:0 22px 22px;
}
.solitu-chatbot-widget .analytics-actions button{
    border:none;
    border-radius:999px;
    padding:11px 14px;
    cursor:pointer;
    background:#0f172a;
    color:white;
    font-weight:bold;
}
.solitu-chatbot-widget .analytics-actions button:hover{
    background:#1e293b;
}
.solitu-chatbot-widget .analytics-actions .analytics-reset{
    background:#fee2e2;
    color:#991b1b;
}
.solitu-chatbot-widget .analytics-actions .analytics-reset:hover{
    background:#fecaca;
}
@media(max-width:480px){
    .solitu-chatbot-widget .chat-container{
        right:10px;
        left:10px;
        bottom:82px;
        width:auto;
        height:55vh;
        max-height:calc(100vh - 105px);
    }
    .solitu-chatbot-widget .chat-toggle{ width:64px; height:64px; }
    .solitu-chatbot-widget .chat-hint{ right:76px; bottom:12px; width:185px; font-size:12px; padding:10px 12px; }
    .solitu-chatbot-widget .header-actions button{ padding:7px 8px; font-size:11px; }
}
@media(max-width:760px){
    .solitu-chatbot-widget .analytics-overlay{
        padding:10px;
    }
    .solitu-chatbot-widget .analytics-panel{
        max-height:calc(100vh - 20px);
    }
    .solitu-chatbot-widget .analytics-header,
.solitu-chatbot-widget .analytics-cards,
.solitu-chatbot-widget .analytics-grid,
.solitu-chatbot-widget .analytics-actions{
        padding-left:14px;
        padding-right:14px;
    }
    .solitu-chatbot-widget .analytics-cards,
.solitu-chatbot-widget .analytics-grid{
        grid-template-columns:1fr;
    }
    .solitu-chatbot-widget .analytics-header h2{
        font-size:20px;
    }
}
