/* ── Floating Support Chat Widget ──────────────────────────── */
.sc-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-gold, #c5a896);
    border: none;
    color: #0a0a0a;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-premium, cubic-bezier(0.25, 1, 0.5, 1)),
                opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(197, 168, 150, 0.3);
}
.sc-fab:hover {
    transform: scale(1.08);
}
.sc-fab svg {
    width: 22px;
    height: 22px;
}

.sc-panel {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #121212;
    border: 1px solid rgba(197, 168, 150, 0.15);
    border-radius: 16px;
    z-index: 9997;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.sc-panel.open {
    display: flex;
}

.sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(197, 168, 150, 0.1);
    flex-shrink: 0;
}
.sc-header-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-pure, #fff);
    letter-spacing: 0.5px;
}
.sc-header-close {
    background: none;
    border: none;
    color: var(--text-dim, #8e8e93);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}
.sc-header-close:hover {
    color: var(--text-pure, #fff);
}

.sc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sc-messages::-webkit-scrollbar {
    width: 4px;
}
.sc-messages::-webkit-scrollbar-thumb {
    background: #2c2c2e;
    border-radius: 2px;
}

.sc-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.sc-bubble-user {
    align-self: flex-end;
    background: var(--accent-gold, #c5a896);
    color: #0a0a0a;
    border-bottom-right-radius: 4px;
}
.sc-bubble-agent {
    align-self: flex-start;
    background: #1c1c1e;
    color: var(--text-pure, #fff);
    border-bottom-left-radius: 4px;
}
.sc-bubble-agent p {
    margin-bottom: 8px;
}
.sc-bubble-agent p:last-child {
    margin-bottom: 0;
}

.sc-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(197, 168, 150, 0.1);
    flex-shrink: 0;
}
.sc-input {
    flex: 1;
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-pure, #fff);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}
.sc-input:focus {
    border-color: var(--accent-gold, #c5a896);
}
.sc-input::placeholder {
    color: var(--text-dim, #8e8e93);
}
.sc-send-btn {
    background: var(--accent-gold, #c5a896);
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    color: #0a0a0a;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}
.sc-send-btn:hover {
    opacity: 0.85;
}
.sc-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sc-thinking {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}
.sc-thinking.visible {
    display: flex;
}
.sc-thinking-dot {
    width: 6px;
    height: 6px;
    background: var(--text-dim, #8e8e93);
    border-radius: 50%;
    animation: sc-bounce 1.2s infinite ease-in-out;
}
.sc-thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.sc-thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes sc-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.sc-welcome {
    text-align: center;
    color: var(--text-dim, #8e8e93);
    font-size: 0.78rem;
    padding: 20px 10px;
    line-height: 1.6;
}
.sc-welcome strong {
    color: var(--text-pure, #fff);
}
