.sell-assistant-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1040;
}

.sell-assistant-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100dvh;
    background: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(105%);
    transition: transform 0.28s ease;
}

.sell-assistant.open .sell-assistant-panel {
    transform: translateX(0);
}

.sell-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 55%, #dd0202 160%);
    color: #fff;
}

.sell-assistant-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sell-assistant-title {
    font-weight: 700;
    line-height: 1.2;
}

.sell-assistant-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}

.sell-assistant-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sell-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: #f7f7f8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sell-msg {
    display: flex;
}

.sell-msg.user {
    justify-content: flex-end;
}

.sell-bubble {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.sell-msg.bot .sell-bubble {
    background: #fff;
    border: 1px solid #ececec;
    border-bottom-left-radius: 6px;
    color: #222;
}

.sell-msg.user .sell-bubble {
    background: var(--primary, #dd0202);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.sell-assistant-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 10px;
    background: #f7f7f8;
}

.sell-chip {
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

.sell-assistant-input {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 16px 18px;
    border-top: 1px solid #eee;
    background: #fff;
}

.sell-assistant-input textarea {
    flex: 1;
    resize: none;
    border: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 14px;
    padding: 12px 14px;
    max-height: 120px;
    font-family: inherit;
    font-size: 0.95rem;
}

.sell-assistant-input textarea:focus {
    outline: none;
    border-color: var(--primary, #dd0202);
    background: #fff;
}

.sell-send-btn,
.sell-mic-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sell-send-btn {
    background: var(--primary, #dd0202);
    color: #fff;
}

.sell-send-btn:disabled {
    opacity: 0.55;
}

.sell-mic-btn {
    background: #f1f1f1;
    border: 1px solid #e5e5e5;
    color: #444;
}

.sell-mic-btn:hover {
    border-color: var(--primary, #dd0202);
    color: var(--primary, #dd0202);
}

.sell-mic-btn.dinliyor {
    background: #e74c3c;
    border-color: #c0392b;
    color: #fff;
    animation: sell-pulse 1.2s infinite;
}

@keyframes sell-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.sell-voice-bars {
    padding: 0 16px 8px;
    background: #f7f7f8;
}

.sell-voice-status {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 0;
}

.sell-voice-status.aktif {
    display: flex;
}

#sellSesDurumu {
    color: #e74c3c;
}

#sellTtsDurumu {
    color: #2d6a4f;
}

.sell-dalga {
    display: flex;
    gap: 2px;
    align-items: center;
}

.sell-dalga span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: currentColor;
    animation: sell-dalga 0.8s ease-in-out infinite;
}

.sell-dalga span:nth-child(1) { height: 6px; animation-delay: 0s; }
.sell-dalga span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.sell-dalga span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.sell-dalga span:nth-child(4) { height: 18px; animation-delay: 0.15s; }
.sell-dalga span:nth-child(5) { height: 10px; animation-delay: 0.05s; }

@keyframes sell-dalga {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}

.sell-stop-btn {
    font-size: 0.72rem;
    background: none;
    border: 1px solid currentColor;
    border-radius: 6px;
    padding: 1px 7px;
    cursor: pointer;
    color: inherit;
    opacity: 0.85;
}

.sell-typing {
    font-size: 0.85rem;
    color: #777;
    padding: 0 4px;
}

@media (max-width: 575.98px) {
    .sell-assistant-panel {
        width: 100vw;
    }
}
