.sofia-overlay,
#sofiaOverlay,
.sofia-clean-widget,
.sofia-clean-mini,
#sofiaCleanWidget,
#sofiaCleanMini,
.sofia-visual-panel,
.sofia-visual-arrow,
#skrSofiaPanel,
#skrSofiaArrow {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sofia-total-mini {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    border: 2px solid rgba(56,189,248,.7);
    background: rgba(8,18,34,.95);
    box-shadow: 0 0 35px rgba(56,189,248,.45);
    z-index: 2147483000;
    cursor: pointer;
    overflow: hidden;
}

.sofia-total-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sofia-total-mini.hide {
    display: none;
}

.sofia-total-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(430px, calc(100vw - 40px));
    height: min(620px, calc(100vh - 70px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2147483000;
    background: rgba(2,8,23,.98);
    color: #e5e7eb;
    border: 1px solid rgba(56,189,248,.45);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,.65), 0 0 45px rgba(56,189,248,.25);
}

.sofia-total-widget.show {
    display: flex;
}

.sofia-total-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(15,23,42,.90);
    border-bottom: 1px solid rgba(148,163,184,.18);
}

.sofia-total-header img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
}

.sofia-total-title {
    font-size: 19px;
    font-weight: 900;
}

.sofia-total-subtitle {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
}

#sofiaTotalClose {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(248,113,113,.55);
    background: rgba(127,29,29,.45);
    color: #fecaca;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
}

.sofia-total-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sofia-total-msg {
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.45;
    white-space: pre-wrap;
    font-size: 14px;
}

.sofia-total-msg.bot {
    background: rgba(30,64,175,.38);
    border: 1px solid rgba(96,165,250,.35);
    align-self: flex-start;
}

.sofia-total-msg.user {
    background: rgba(124,45,18,.58);
    border: 1px solid rgba(251,146,60,.38);
    align-self: flex-end;
}

.sofia-total-msg.loading {
    opacity: .75;
    font-style: italic;
}

.sofia-total-inputbar {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: rgba(15,23,42,.88);
    border-top: 1px solid rgba(148,163,184,.18);
}

.sofia-total-inputbar input {
    flex: 1;
    background: rgba(2,6,23,.95);
    color: #e5e7eb;
    border: 1px solid rgba(56,189,248,.35);
    border-radius: 14px;
    padding: 12px;
    outline: none;
}

.sofia-total-inputbar button {
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff7900, #fb923c);
    color: white;
    padding: 0 16px;
    font-weight: 900;
    cursor: pointer;
}
