#sc-chatbot {
    position: fixed !important;
    right: 24px;
    bottom: 24px;
    z-index: 2147483647;
    font-family: 'Geist', sans-serif;
}

#sc-chat-toggle {
    width: 60px; height: 60px; border-radius: 999px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #0055FE, #003ab3);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,85,254,0.45);
    animation: sc-float 2.6s ease-in-out infinite;
    transition: transform 0.2s ease;
}
#sc-chat-toggle:hover { transform: scale(1.08); }

@keyframes sc-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

#sc-chat-panel {
    position: absolute; bottom: 76px; right: 0;
    width: 340px; max-width: calc(100vw - 32px);
    height: 480px; max-height: calc(100vh - 140px);
    background: rgba(17, 19, 23, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: sc-pop 0.25s ease;
}
#sc-chat-panel.hidden { display: none; }

@keyframes sc-pop {
    from { opacity: 0; transform: scale(0.9) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#sc-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: linear-gradient(135deg, #0055FE, #003ab3);
    flex-shrink: 0;
}
#sc-chat-header-info { display: flex; align-items: center; gap: 10px; }
#sc-chat-avatar {
    width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
}
#sc-chat-name { color: #fff; font-weight: 700; font-size: 14px; margin: 0; }
#sc-chat-status { color: rgba(255,255,255,0.8); font-size: 11px; margin: 0; }
#sc-chat-close { background: none; border: none; color: #fff; cursor: pointer; display: flex; }

#sc-chat-body { padding: 16px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; }
#sc-chat-messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.sc-msg-bot, .sc-msg-user {
    max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5;
}
.sc-msg-bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-bottom-left-radius: 2px; color: #e2e2e8;
}
.sc-msg-user {
    align-self: flex-end;
    background: rgba(0,85,254,0.16); border: 1px solid rgba(0,85,254,0.3);
    border-bottom-right-radius: 2px; color: #fff;
}

#sc-chat-suggestions { display: flex; flex-direction: column; gap: 8px; }
.sc-chat-question-btn {
    text-align: left; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: #c3c5d9; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; cursor: pointer;
    transition: all 0.15s ease;
}
.sc-chat-question-btn:hover { border-color: #0055FE; color: #fff; background: rgba(0,85,254,0.12); }

.sc-chat-more-btn {
    text-align: center; background: transparent; border: 1px dashed rgba(255,255,255,0.15);
    color: #8d90a2; padding: 8px 12px; border-radius: 10px; font-size: 12px; cursor: pointer;
    transition: all 0.15s ease;
}
.sc-chat-more-btn:hover { color: #0055FE; border-color: #0055FE; }

#sc-chat-input-row {
    display: flex; gap: 8px; padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
}
#sc-chat-input {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px; padding: 9px 14px; color: #e2e2e8; font-size: 13px; outline: none;
}
#sc-chat-input:focus { border-color: #0055FE; }
#sc-chat-input::placeholder { color: #8d90a2; }
#sc-chat-send {
    width: 36px; height: 36px; border-radius: 999px; border: none; cursor: pointer; flex-shrink: 0;
    background: linear-gradient(135deg, #0055FE, #003ab3);
    display: flex; align-items: center; justify-content: center;
}

#sc-chat-footer { padding: 8px 16px 12px; flex-shrink: 0; }
#sc-chat-footer a {
    color: #0055FE; font-size: 11.5px; font-weight: 700; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
#sc-chat-footer a .material-symbols-outlined { font-size: 14px; }

@media (max-width: 480px) {
    #sc-chatbot { right: 16px; bottom: 16px; }
    #sc-chat-panel { width: calc(100vw - 32px); }
}
