.floating-inquiry-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #14B8A6;
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
    transition: all 0.3s cubic-bezier(.16,1,.3,1);
    z-index: 9999;
    user-select: none;
}

.floating-inquiry-btn:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(20, 184, 166, 0.4);
}

.inquiry-btn-text {
    white-space: nowrap;
}

.inquiry-btn-arrow {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(.16,1,.3,1);
}

.floating-inquiry-btn:hover .inquiry-btn-arrow {
    transform: translateX(3px);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .floating-inquiry-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════
   CHATBOT FLOAT BUTTON
   ══════════════════════════════════════════════ */

.chatbot-float-btn {
    position: fixed;
    bottom: 96px;
    right: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #14B8A6;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(20, 184, 166, 0.3);
    transition: transform 0.3s cubic-bezier(.16,1,.3,1), border-color 0.3s, box-shadow 0.3s;
    z-index: 9998;
    user-select: none;
    animation: chatbot-idle-pulse 3.5s ease-in-out infinite;
}

@keyframes chatbot-idle-pulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(20,184,166,0.35), 0 0 0 0 rgba(20,184,166,0.32); }
    55%       { box-shadow: 0 8px 28px rgba(20,184,166,0.35), 0 0 0 9px rgba(20,184,166,0); }
}

.chatbot-float-btn:hover {
    transform: translateY(-3px) scale(1.06);
    background: #0F766E;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 36px rgba(20,184,166,0.45), 0 0 22px rgba(20,184,166,0.3);
    animation: none;
}

.chatbot-float-btn.is-open {
    background: #0F766E;
    border-color: transparent;
    animation: none;
    box-shadow: 0 8px 28px rgba(20,184,166,0.5);
}

/* Tooltip */
.chatbot-float-btn::after {
    content: 'Pinetree AI';
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13,17,23,0.92);
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.chatbot-float-btn:hover::after {
    opacity: 1;
}

/* ══════════════════════════════════════════════
   CHATBOT PANEL
   ══════════════════════════════════════════════ */

.chatbot-panel {
    position: fixed;
    bottom: 162px;
    right: 30px;
    width: 358px;
    height: 490px;
    background: #0d1117;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 28px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(20,184,166,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9997;
    transform: scale(0.91) translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(.16,1,.3,1), opacity 0.22s ease;
    transform-origin: bottom right;
}

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

/* ── Panel Header ── */
.chatbot-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(20,184,166,0.1) 0%, rgba(15,118,110,0.06) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.055);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.chatbot-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #14B8A6, #0F766E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(20,184,166,0.3);
}

.chatbot-header-meta {
    flex: 1;
    min-width: 0;
}

.chatbot-header-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #f0fdfa;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.chatbot-header-status {
    font-size: 11px;
    color: #5eead4;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.chatbot-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #14B8A6;
    flex-shrink: 0;
    animation: status-blink 2.2s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.chatbot-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    color: #9ca3af;
}

.chatbot-close-btn:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.12);
    color: #e5e7eb;
}

/* ── Messages Area ── */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.09) transparent;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.09);
    border-radius: 4px;
}

/* ── Message Rows ── */
.chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    max-width: 100%;
    animation: msg-appear 0.28s cubic-bezier(.16,1,.3,1);
}

@keyframes msg-appear {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-msg.user {
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #14B8A6, #0F766E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-msg-bubble {
    max-width: calc(100% - 42px);
    padding: 9px 12px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.58;
    word-break: break-word;
}

.chat-msg.bot .chat-msg-bubble {
    background: rgba(255,255,255,0.048);
    border: 1px solid rgba(255,255,255,0.065);
    color: #d1d5db;
    border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

/* ── Typing Indicator ── */
.chat-typing-indicator {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    animation: msg-appear 0.28s cubic-bezier(.16,1,.3,1);
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 11px 14px;
    background: rgba(255,255,255,0.048);
    border: 1px solid rgba(255,255,255,0.065);
    border-radius: 13px;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #14B8A6;
    animation: typing-bounce 1.3s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.55; }
    30%            { transform: translateY(-6px); opacity: 1; }
}

/* ── Suggestion Chips ── */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 14px 10px;
    flex-shrink: 0;
}

.chatbot-chip {
    padding: 5px 11px;
    border-radius: 20px;
    background: rgba(20,184,166,0.07);
    border: 1px solid rgba(20,184,166,0.22);
    color: #5eead4;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    user-select: none;
}

.chatbot-chip:hover {
    background: rgba(20,184,166,0.14);
    border-color: rgba(20,184,166,0.45);
    transform: translateY(-1px);
}

/* ── Input Area ── */
.chatbot-input-row {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255,255,255,0.055);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
    background: rgba(0,0,0,0.18);
}

.chatbot-input {
    flex: 1;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 11px;
    padding: 9px 12px;
    color: #f0fdfa;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 38px;
    max-height: 96px;
    line-height: 1.45;
    transition: border-color 0.2s;
    scrollbar-width: none;
}

.chatbot-input::-webkit-scrollbar { display: none; }

.chatbot-input::placeholder { color: rgba(255,255,255,0.22); }

.chatbot-input:focus { border-color: rgba(20,184,166,0.38); }

.chatbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #14B8A6, #0F766E);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.chatbot-send-btn:hover:not(:disabled) {
    transform: scale(1.07);
    box-shadow: 0 4px 14px rgba(20,184,166,0.38);
}

.chatbot-send-btn:disabled {
    opacity: 0.38;
    cursor: default;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .chatbot-float-btn {
        bottom: 84px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .chatbot-panel {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 148px;
        height: 420px;
    }
    .chatbot-float-btn::after { display: none; }
}