#rvbot-root{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:99999;
    font-family:Inter,Arial,sans-serif;
}

#rvbot-launcher{
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,#111827,#1f2937);
    color:#fff;
    padding:14px 18px;
    box-shadow:0 18px 40px rgba(17,24,39,.24);
    cursor:pointer;
    font-size:14px;
    font-weight:600;
}

#rvbot-panel{
    width:380px;
    max-width:calc(100vw - 28px);
    height:600px;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 30px 80px rgba(15,23,42,.22);
    border:1px solid rgba(15,23,42,.08);
    margin-bottom:14px;
    display:flex;
    flex-direction:column;
}

.rvbot-hidden{
    display:none !important;
}

.rvbot-header{
    padding:16px 16px 14px;
    background:linear-gradient(180deg,#0f172a,#111827);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.rvbot-brand{
    display:flex;
    gap:12px;
    align-items:center;
}

.rvbot-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.2);
    font-weight:700;
}

.rvbot-header h4{
    margin:0 0 3px;
    font-size:15px;
    font-weight:700;
}

.rvbot-header p{
    margin:0;
    font-size:12px;
    opacity:.82;
}

#rvbot-close{
    border:none;
    background:transparent;
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}

.rvbot-messages{
    flex:1;
    overflow-y:auto;
    background:
      radial-gradient(circle at top right, rgba(99,102,241,.06), transparent 32%),
      linear-gradient(180deg,#f8fafc,#ffffff);
    padding:16px;
}

.rvbot-msg{
    display:flex;
    margin-bottom:12px;
}

.rvbot-msg.user{
    justify-content:flex-end;
}

.rvbot-msg.bot{
    justify-content:flex-start;
}

.rvbot-bubble{
    max-width:84%;
    padding:12px 14px;
    border-radius:16px;
    font-size:14px;
    line-height:1.55;
    word-break:break-word;
    white-space:pre-wrap;
}

.rvbot-msg.user .rvbot-bubble{
    background:linear-gradient(135deg,#111827,#1f2937);
    color:#fff;
    border-bottom-right-radius:6px;
    box-shadow:0 12px 24px rgba(17,24,39,.14);
}

.rvbot-msg.bot .rvbot-bubble{
    background:#fff;
    color:#0f172a;
    border:1px solid #e2e8f0;
    border-bottom-left-radius:6px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.rvbot-typing{
    font-size:13px;
    color:#64748b;
    margin:4px 0 10px;
}

.rvbot-form{
    display:flex;
    gap:10px;
    padding:14px;
    border-top:1px solid #e2e8f0;
    background:#fff;
}

#rvbot-input{
    flex:1;
    min-height:46px;
    max-height:130px;
    resize:none;
    border:1px solid #cbd5e1;
    border-radius:14px;
    padding:11px 12px;
    outline:none;
    font-size:14px;
    line-height:1.4;
}

#rvbot-input:focus{
    border-color:#6366f1;
    box-shadow:0 0 0 4px rgba(99,102,241,.08);
}

.rvbot-form button{
    border:none;
    background:linear-gradient(135deg,#4f46e5,#111827);
    color:#fff;
    border-radius:14px;
    padding:0 18px;
    font-weight:600;
    cursor:pointer;
}

@media (max-width:768px){
    #rvbot-root{
        right:12px;
        bottom:12px;
    }

    #rvbot-panel{
        width:calc(100vw - 24px);
        height:74vh;
        border-radius:18px;
    }
}