.floating-support-bubble {
    position: fixed;
    bottom: 28px;
    z-index: 1055;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 34px rgba(17, 15, 11, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 0;
    cursor: pointer;
}

.floating-support-bubble:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 24px 44px rgba(17, 15, 11, 0.3);
}

.floating-support-bubble-chat {
    left: 24px;
    color: #fff7e2;
    background: rgba(33, 27, 18, 0.95);
    border: 1.5px solid rgba(201, 168, 76, 0.35);
    animation: floatingSupportDriftLeft 5.8s ease-in-out infinite;
}

/* Pulse ring around chat bubble */
.floating-support-bubble-chat::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.45);
    animation: gcPulseRing 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes gcPulseRing {
    0%   { transform: scale(1);    opacity: 0.7; }
    70%  { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
}

/* "Ask me" callout bubble above the chat button */
.gc-callout {
    position: fixed;
    bottom: 104px;
    left: 24px;
    z-index: 1056;
    background: #fff;
    color: #1C1A14;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 8px 24px rgba(17,15,11,0.18);
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border: 1px solid rgba(201,168,76,0.2);
}

.gc-callout::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 18px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid rgba(201,168,76,0.2);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    transform: rotate(45deg);
    border-radius: 0 0 3px 0;
}

[data-bs-theme=dark] .gc-callout {
    background: #2a2519;
    color: #f5f0e8;
    border-color: rgba(201,168,76,0.3);
}
[data-bs-theme=dark] .gc-callout::after {
    background: #2a2519;
}

.gc-callout.gc-callout-hidden {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

.floating-support-bubble-whatsapp {
    right: 24px;
    color: #f4fff8;
    background: rgba(12, 78, 50, 0.92);
    border: 1px solid rgba(110, 231, 160, 0.22);
    animation: floatingSupportDriftRight 6.6s ease-in-out infinite;
}

.floating-support-bubble.is-disabled {
    opacity: 0.42;
    filter: saturate(0.7);
    cursor: not-allowed;
}

.floating-support-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.18);
    color: #f2d88f;
    font-size: 22px;
    flex-shrink: 0;
}

.floating-support-icon-whatsapp {
    background: rgba(110, 231, 160, 0.18);
    color: #9ef0c2;
}

.floating-support-label {
    display: none;
}

.floating-support-panel {
    position: fixed;
    left: 24px;
    bottom: 96px;
    z-index: 1054;
    width: min(320px, calc(100vw - 28px));
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-support-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-support-panel-card {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(18, 15, 10, 0.96);
    box-shadow: 0 28px 60px rgba(17, 15, 11, 0.26);
}

.floating-support-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.floating-support-panel-head strong {
    display: block;
    color: #fff7e2;
    font-size: 14px;
    font-weight: 700;
}

.floating-support-panel-head p {
    margin: 2px 0 0;
    color: rgba(255, 247, 226, 0.5);
    font-size: 12px;
}

.floating-support-panel-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 247, 226, 0.7);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.floating-support-panel-body {
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.floating-support-message {
    display: inline-flex;
    max-width: 86%;
    padding: 12px 14px;
    border-radius: 18px 18px 18px 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff7e2;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes floatingSupportDriftLeft {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes floatingSupportDriftRight {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@media (max-width: 768px) {
    .floating-support-bubble {
        bottom: 18px;
        width: 56px;
        height: 56px;
        font-size: 12px;
    }

    .floating-support-bubble-chat {
        left: 14px;
    }

    .floating-support-bubble-whatsapp {
        right: 14px;
    }

    .floating-support-icon {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .floating-support-panel {
        left: 14px;
        bottom: 88px;
        width: min(320px, calc(100vw - 28px));
    }

    .gc-callout {
        bottom: 90px;
        left: 14px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .floating-support-icon {
        width: 30px;
        height: 30px;
    }

    .floating-support-panel {
        right: 14px;
        left: 14px;
        width: auto;
    }
}

/* ── Chat UI ─────────────────────────────────────── */

/* Make panel taller to fit chat */
.floating-support-panel {
    width: min(400px, calc(100vw - 16px));
}

/* Scrollable message list */
.floating-support-panel-body {
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 8px;
    scroll-behavior: smooth;
}

.floating-support-panel-body::-webkit-scrollbar {
    width: 4px;
}
.floating-support-panel-body::-webkit-scrollbar-track {
    background: transparent;
}
.floating-support-panel-body::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.2);
    border-radius: 4px;
}

/* Shared message bubble */
.gc-msg {
    max-width: 88%;
    padding: 9px 13px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

/* AI bubble — left */
.gc-msg-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: #fff7e2;
    border-radius: 16px 16px 16px 4px;
}

/* User bubble — right */
.gc-msg-user {
    align-self: flex-end;
    background: rgba(201, 168, 76, 0.22);
    color: #fff7e2;
    border-radius: 16px 16px 4px 16px;
}

/* Typing indicator */
.gc-typing-wrap {
    padding: 4px 14px 6px;
}

.gc-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px 16px 16px 4px;
    padding: 9px 14px;
}

.gc-typing span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.7);
    animation: gcDot 1.2s ease-in-out infinite;
}

.gc-typing span:nth-child(2) { animation-delay: 0.2s; }
.gc-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes gcDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* Input row */
.gc-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.gc-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    color: #fff7e2;
    padding: 8px 11px;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    overflow: hidden;
    min-height: 40px;
    max-height: 96px;
    outline: none;
    transition: border-color 0.15s;
}

.gc-input::placeholder {
    color: rgba(255, 247, 226, 0.35);
}

.gc-input:focus {
    border-color: rgba(201, 168, 76, 0.45);
}

.gc-send-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(201, 168, 76, 0.85);
    color: #1a1408;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.gc-send-btn:hover:not(:disabled) {
    background: rgba(201, 168, 76, 1);
}

.gc-send-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .floating-support-panel {
        width: auto;
        left: 8px;
        right: 8px;
    }
    .floating-support-panel-body {
        max-height: 320px;
    }
}
