/* ========================================
   Chatbot Widget Styles
   Link Holdings Group
   ======================================== */

/* CSS Variables */
:root {
    --chatbot-primary: #c9a84c;
    --chatbot-primary-dark: #a68a3e;
    --chatbot-primary-light: #e2c97e;
    --chatbot-bg-dark: #111111;
    --chatbot-bg-light: #ffffff;
    --chatbot-text-dark: #f0f0f0;
    --chatbot-text-light: #333333;
    --chatbot-border: rgba(255, 255, 255, 0.1);
    --chatbot-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --chatbot-message-user: rgba(201, 168, 76, 0.15);
    --chatbot-message-bot: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   CHATBOT CONTAINER
============================================================ */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   FLOATING TOGGLE BUTTON
============================================================ */
.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chatbot-primary-light), var(--chatbot-primary));
    color: #000;
    border: none;
    cursor: none;
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(201, 168, 76, 0.4);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.chatbot-toggle:hover::before {
    transform: translateX(0);
}

.chatbot-icon-chat,
.chatbot-icon-close {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
    position: absolute;
}

.chatbot-window.open ~ .chatbot-toggle .chatbot-icon-chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.chatbot-window.open ~ .chatbot-toggle .chatbot-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ============================================================
   CHAT WINDOW
============================================================ */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--chatbot-bg-dark);
    border: 1px solid var(--chatbot-border);
    border-radius: 12px;
    box-shadow: var(--chatbot-shadow);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.chatbot-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ============================================================
   CHAT HEADER
============================================================ */
.chatbot-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--chatbot-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
}

.chatbot-header-content {
    flex: 1;
}

.chatbot-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--chatbot-text-dark);
    margin: 0;
    letter-spacing: 0.3px;
}

.chatbot-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 4px 0 0 0;
}

.chatbot-minimize {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-minimize:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.chatbot-minimize svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   MESSAGES CONTAINER
============================================================ */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* ============================================================
   MESSAGE BUBBLES
============================================================ */
.chatbot-message {
    display: flex;
    animation: messageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message.bot-message {
    justify-content: flex-start;
}

.chatbot-message.user-message {
    justify-content: flex-end;
}

.chatbot-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message .chatbot-message-content {
    background: var(--chatbot-message-bot);
    border: 1px solid rgba(201, 168, 76, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.user-message .chatbot-message-content {
    background: var(--chatbot-message-user);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--chatbot-primary);
}

.chatbot-message-content p {
    margin: 0;
    color: #ffffff !important;
}

/* ============================================================
   SUGGESTIONS
============================================================ */
.chatbot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    animation: suggestionsSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes suggestionsSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-suggestion-btn {
    padding: 10px 14px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: none;
    transition: all 0.2s ease;
    text-align: left;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #c9a84c !important;
    color: #ffffff !important;
}

.chatbot-suggestion-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: rgba(201, 168, 76, 0.5);
    transform: translateX(4px);
}

.chatbot-suggestion-btn:active {
    transform: translateX(2px);
}

/* ============================================================
   INPUT CONTAINER
============================================================ */
.chatbot-input-container {
    padding: 16px;
    border-top: 1px solid var(--chatbot-border);
    background: rgba(0, 0, 0, 0.3);
    background-color: #111827;
}

.chatbot-input-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

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

.chatbot-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.chatbot-send-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--chatbot-primary-light), var(--chatbot-primary));
    border: none;
    color: #000;
    border-radius: 8px;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.chatbot-send-btn:hover::before {
    transform: translateX(0);
}

.chatbot-send-btn svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   TYPING INDICATOR
============================================================ */
.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--chatbot-message-bot);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 12px;
    width: fit-content;
}

.chatbot-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: typing 1.4s infinite;
}

.chatbot-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* ============================================================
   LIGHT MODE SUPPORT
============================================================ */
[data-theme="light"] .chatbot-window {
    background: var(--chatbot-bg-light);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .chatbot-title,
[data-theme="light"] .chatbot-header-content {
    color: var(--chatbot-text-light);
}

[data-theme="light"] .chatbot-subtitle {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .chatbot-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), rgba(201, 168, 76, 0.02));
}

[data-theme="light"] .chatbot-minimize {
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .chatbot-minimize:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .chatbot-input-container {
    border-top-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .chatbot-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--chatbot-text-light);
}

[data-theme="light"] .chatbot-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .chatbot-input:focus {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--chatbot-primary-dark);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

[data-theme="light"] .bot-message .chatbot-message-content {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--chatbot-text-light);
}

[data-theme="light"] .user-message .chatbot-message-content {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.25);
    color: var(--chatbot-primary-dark);
}

[data-theme="light"] .chatbot-suggestion-btn {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.25);
    color: var(--chatbot-primary-dark);
}

[data-theme="light"] .chatbot-suggestion-btn:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--chatbot-primary-dark);
}

[data-theme="light"] .chatbot-typing {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chatbot-typing-dot {
    background: rgba(0, 0, 0, 0.4);
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 640px) {
    .chatbot-widget {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-window {
        width: calc(100vw - 32px);
        height: 480px;
        bottom: 72px;
        right: 0;
        left: 0;
        margin: 0 auto;
        background: #111827 !important;
        color: #ffffff !important;
    }

    .chatbot-toggle {
        width: 48px;
        height: 48px;
    }

    .chatbot-icon-chat,
    .chatbot-icon-close {
        width: 20px;
        height: 20px;
    }

    .chatbot-message-content {
        max-width: 85%;
        font-size: 13px;
        padding: 10px 14px;
    }

    .chatbot-input {
        font-size: 14px;
        color: #ffffff !important;
    }

    .chatbot-title {
        font-size: 14px;
        color: #ffffff !important;
    }
}

@media (max-width: 380px) {
    .chatbot-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
        max-height: 100vh;
        background: #111827 !important;
        color: #ffffff !important;
    }

    .chatbot-messages {
        padding: 12px;
    }
}
/* ── Floating toggle button ─────────────────────────────── */
.chatbot-toggle {
    /* your existing positioning/size styles stay here */
    transition: transform 0.2s ease, opacity 0.2s ease;
     position: fixed;
    bottom: 20px;
    right: 20px;

    width: 50px;
    height: 50px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-toggle svg {
    width: 22px;
    height: 22px;
}
/* FAB shrinks away when window is open */
.chatbot-toggle.is-open {
    transform: scale(0.75);
    opacity: 0;
    pointer-events: none;
}

/* ── Chat window open/close animation ───────────────────── */
.chatbot-window {
    /* your existing position/size styles stay here */
    transform-origin: bottom right;
    transform: scale(0.85) translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.24s cubic-bezier(0.34, 1.3, 0.64, 1),
        opacity   0.18s ease;
    background: #111827 !important;
    color: #ffffff !important;
}

.chatbot-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* ── Header layout ──────────────────────────────────────── */
.chatbot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.chatbot-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1a1a1a;   /* match your brand color */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

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

.chatbot-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff !important;
}

.chatbot-subtitle {
    font-size: 12px;
    color: #ffffff !important;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3B6D11;   /* green = online */
    flex-shrink: 0;
}

/* ── Header action buttons (minimize + close) ───────────── */
.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.chatbot-header-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.chatbot-header-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.chatbot-header-btn:hover {
    background: rgba(0, 0, 0, 0.07);
    color: #333;
}
/* ── Contact capture panel ─────────────────────────────────────── */

.chatbot-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; 
    background: #111827;    
}

.chatbot-panel[hidden] {
    display: none;
}

.chatbot-contact-intro {
    padding: 20px 18px 4px;
}

.chatbot-contact-intro p {
    font-size: 13.5px;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.55;
}

.chatbot-contact-form {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Form fields ───────────────────────────────────────────────── */

.chatbot-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chatbot-label {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.chatbot-field-input {
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    outline: none;
    background: #fafafa;
    color: #111;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.chatbot-field-input::placeholder {
    color: #bbb;
}

.chatbot-field-input:focus {
    border-color: #555;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Invalid state — applied by JS */
.chatbot-field-input.is-invalid {
    border-color: #c0392b;
    background: #fff8f7;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.chatbot-field-error {
    font-size: 12px;
    color: #c0392b;
    min-height: 16px;   /* reserves space so layout doesn't jump */
    line-height: 1.4;
}

/* ── Submit button ─────────────────────────────────────────────── */

.chatbot-contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 2px;
}

.chatbot-contact-submit:hover  { background: #333; }
.chatbot-contact-submit:active { transform: scale(0.98); }

.chatbot-contact-submit:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

/* ── Privacy note ──────────────────────────────────────────────── */

.chatbot-privacy-note {
    font-size: 11.5px;
    color: #ffffff !important;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* ── Panel slide transition ────────────────────────────────────── */

/*
 * When the contact panel is dismissed and the chat panel appears,
 * we briefly animate the swap using a fade-up. JS adds/removes
 * the .is-leaving class on the outgoing panel.
 */
@keyframes panelFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chatbot-panel.is-entering {
    animation: panelFadeUp 0.22s ease forwards;
}
.chatbot-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

/* Light theme override */
@media (prefers-color-scheme: light) {
    .chatbot-footer {
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        background: rgba(165, 136, 7, 0.02);
    }
}

.chatbot-footer::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
}

.chatbot-footer-text,
.chatbot-footer-link {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* Light theme text */
@media (prefers-color-scheme: light) {
    .chatbot-footer-text,
    .chatbot-footer-link {
        color: rgb(240, 209, 33);
    }
}

.chatbot-footer-link {
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.chatbot-footer-link:hover,
.chatbot-footer-link:focus-visible {
    color: rgba(146, 137, 6, 0.6);
    text-decoration: none;
    outline: none;
    text-decoration: underline;
}

@media (prefers-color-scheme: light) {
    .chatbot-footer-link:hover,
    .chatbot-footer-link:focus-visible {
        color: rgba(0, 0, 0, 0.6);
    }
}
.chatbot-input {
    background: #1e2d45 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.chatbot-input:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.chatbot-input-container {
    background: #111827 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.chatbot-input-form {
    background: #111827 !important;
}
/* ── Welcome panel ───────────────────────────────────────── */
.chatbot-welcome-panel {
    display: flex;
    flex-direction: column;
    animation: chatbot-fadein 0.3s ease forwards;
}

@keyframes chatbot-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero */
.chatbot-welcome-hero {
    background: linear-gradient(135deg, #1a56db 0%, #0e3fa8 55%, #6c2bd9 100%);
    padding: 28px 20px 24px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.chatbot-welcome-hero-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.chatbot-welcome-hero-orb--top {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -50px;
}

.chatbot-welcome-hero-orb--bottom {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: -30px;
}

.chatbot-welcome-hero-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.chatbot-welcome-greeting {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}

.chatbot-welcome-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    max-width: 240px;
}

.chatbot-welcome-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.chatbot-welcome-action-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.2s;
}

.chatbot-welcome-action-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Body */
.chatbot-welcome-body {
    padding: 16px 16px 8px;
    flex: 1;
    overflow-y: auto;
    background: #111827;
}

.chatbot-welcome-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 10px;
    display: block;
}

/* New Conversation button */
.chatbot-welcome-new-chat {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
}

.chatbot-welcome-new-chat:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
}

.chatbot-welcome-new-chat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1a56db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-welcome-new-chat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.chatbot-welcome-new-chat-text strong {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.chatbot-welcome-new-chat-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-welcome-arrow {
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

/* Topic quick cards */
.chatbot-welcome-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.chatbot-welcome-topic {
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
}

.chatbot-welcome-topic:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.chatbot-welcome-topic svg {
    color: #6c9cf8;
    margin-bottom: 4px;
}

.chatbot-welcome-topic strong {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.chatbot-welcome-topic span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}
/* ============================================================
   CHATBOT WIDGET — MOBILE FIX
   ============================================================ */

.chatbot-widget {
    position: fixed !important;
    bottom: 24px !important;
    right: 20px !important;
    z-index: 99999 !important;
    pointer-events: all !important;
}

.chatbot-toggle {
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: all !important;
    cursor: pointer !important;
}

.chatbot-window {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    z-index: 99998 !important;
    pointer-events: all !important;
}

/* Mobile: make window full-width so it doesn't get cut off */
@media (max-width: 480px) {
    .chatbot-window {
        right: 10px !important;
        left: 10px !important;
        bottom: 80px !important;
        width: auto !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
    }
}