:root {
    --bg-black: #000000;
    --hs-gradient: linear-gradient(135deg, #f43695 0%, #f78131 100%);
    --dark-grey: #121212;
    --border: rgba(255, 255, 255, 0.08);
}

/* 🌟 ASTRA THEME RESET FOR CHATBOT 🌟 */
#chatbot-container { 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    /* Smooth text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 1. LAUNCHER WRAPPER */
#launcher-wrapper { 
    position: fixed; 
    top: 65px; 
    left: 50%; 
    transform: translateX(-90%); 
    z-index: 999999; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 95px; 
    height: 95px; 
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#launcher-wrapper:hover {
    transform: translateX(-85%) scale(1.1);
}

/* 2. RING: Centered and EXTRA DARK BLACK */
.pulse-ring {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 70px;  
    height: 70px; 
    background: #000000; 
    border-radius: 50%;
    opacity: 1;    
    z-index: 1; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9); 
    animation: vibrate-pulse 2s infinite ease-out;
}

@keyframes vibrate-pulse {
    0% { 
        transform: translate(-50%, -50%) scale(0.9); 
        opacity: 0.9; 
        box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.8);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.15); 
        opacity: 0.6; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.4); 
        opacity: 0; 
        box-shadow: 0 0 0 30px rgba(0, 0, 0, 0);
    }
}

/* 3. BUTTON & GIRL CENTERING */
#launcher-wrapper #chatbot-button { 
    width: 75px; 
    height: 75px; 
    border-radius: 50%; 
    background: transparent;
    border: none; 
    display: flex;
    align-items: center;
    justify-content: center; 
    cursor: pointer; 
    box-shadow: none;
    position: relative;
    z-index: 3; 
    margin: 0; 
    padding: 0; 
}

/* 3. GIRL IMAGE */
.animated-girl-gif {
    width: 85px; 
    max-width: none; 
    height: auto;
    position: absolute;
    bottom: 5px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; 
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.7)); 
    transition: 0.3s;
    pointer-events: none;
}

/* 4. NAME BUBBLE */
#name-bubble {
    background: rgba(15, 15, 15, 0.95); 
    backdrop-filter: blur(10px);
    color: #e76c29;
    padding: 8px 14px; 
    border-radius: 12px 12px 10px 12px;
    /* RESPONSIVE FONT */
    font-size: clamp(10px, 2vw, 12px); 
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(231, 108, 41, 0.3); 
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    opacity: 0; 
    animation: popupBubble 5s ease-in-out forwards; 
    pointer-events: none;
}

@keyframes popupBubble {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.8); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } 
    100% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.8); } 
}

/* 5. 🌟 PREMIUM CHAT CONTAINER 🌟 */
#chatbot-container { 
    position: fixed; 
    top: 155px; 
    left: 50%;
    transform: translateX(-65%); 
    width: 340px; 
    height: 550px; 
    min-height: 400px; 
    max-height: calc(100vh - 180px); 
    display: none; 
    flex-direction: column; 
    background: #111111; 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    z-index: 999999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.4); 
}

/* Sleek Gradient Header */
#chatbot-container .chat-header { 
    background: linear-gradient(135deg, #181818 0%, #0a0a0a 100%); 
    padding: 12px 16px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    min-height: 65px; 
    flex: 0 0 auto; 
}

.header-brand-box { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.brand-logo-img { 
    width: 36px; 
    height: 36px; 
    border-radius: 8px; 
    object-fit: cover; 
    border: 1px solid rgba(255,255,255,0.1); 
}

.company-name { 
    color: white; 
    /* RESPONSIVE FONT */
    font-size: clamp(13px, 3vw, 15px); 
    font-weight: 800; 
    letter-spacing: 0.5px; 
    margin: 0; 
}

.pulse-dot { 
    width: 8px; 
    height: 8px; 
    background: #26b349; 
    border-radius: 50%; 
    animation: pulse 2s infinite; 
    box-shadow: 0 0 8px #26b349; 
    margin: 0; 
}

@keyframes pulse { 
    0% { opacity: 1; } 
    50% { opacity: 0.4; } 
    100% { opacity: 1; } 
}

/* RED CLOSE BUTTON */
#chatbot-container #close-chat { 
    background: rgba(255, 0, 0, 0.08); 
    border: 1px solid rgba(255, 0, 0, 0.5); 
    color: #ff3333; 
    width: 32px;
    height: 32px;
    border-radius: 6px; 
    font-size: 18px; 
    font-weight: bold;
    margin: 0 0 0 10px; 
    padding: 0; 
    cursor: pointer; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease;
}

/* 🌟 MESSAGES AREA 🌟 */
#chatbot-container #chat-messages { 
    flex: 1 1 0; 
    min-height: 0; 
    padding: 15px; 
    margin: 0;
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    background: #090909; 
    scrollbar-width: thin; 
    scrollbar-color: #333 transparent; 
}

#chat-messages::-webkit-scrollbar { 
    width: 5px; 
}

#chat-messages::-webkit-scrollbar-track { 
    background: transparent; 
}

#chat-messages::-webkit-scrollbar-thumb { 
    background: #333; 
    border-radius: 10px; 
}

/* Messages styling */
.message { 
    max-width: 85%; 
    padding: 12px 14px; 
    margin: 0;
    /* RESPONSIVE FONT FOR MESSAGES */
    font-size: clamp(12px, 2.5vw, 13px); 
    border-radius: 16px; 
    font-weight: 500; 
    line-height: 1.5; 
    animation: fadeIn 0.3s ease; 
    word-wrap: break-word; 
    letter-spacing: 0.3px;
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.bot { 
    align-self: flex-start; 
    background: var(--hs-gradient); 
    color: white; 
    border-bottom-left-radius: 4px; 
    box-shadow: 0 4px 15px rgba(244, 54, 149, 0.2); 
}

.user { 
    align-self: flex-end; 
    background: #1e1e1e; 
    color: white; 
    border: 1px solid #333; 
    border-bottom-right-radius: 4px; 
}

.chat-btn { 
    background: #161616; 
    border: 1px solid #333; 
    color: white; 
    padding: 12px; 
    border-radius: 12px; 
    text-align: left; 
    margin: 8px 0 0 0; 
    cursor: pointer; 
    font-weight: 600; 
    width: 100%; 
    transition: 0.2s; 
    font-size: clamp(11px, 2vw, 13px); 
}

.chat-btn:hover { 
    border-color: #f43695; 
    background: #222; 
    transform: translateY(-1px); 
}

.size-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
    margin-top: 8px; 
}

.size-item { 
    background: #161616; 
    border: 1px solid #333; 
    color: white; 
    padding: 10px; 
    margin: 0; 
    border-radius: 10px; 
    text-align: center; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: clamp(10px, 1.8vw, 12px); 
}

.size-item:hover { 
    background: var(--hs-gradient); 
    transform: translateY(-2px); 
    border-color: transparent; 
}

/* 🌟 INPUT AREA 🌟 */
#chatbot-container #chat-input-area { 
    padding: 12px 15px; 
    margin: 0;
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: #111; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    flex: 0 0 auto; 
    border-radius: 0 0 20px 20px; 
    min-height: 65px;
}

#chat-input-area #user-input { 
    flex: 1; 
    background: #1a1a1a; 
    border: 1px solid #333; 
    color: white; 
    padding: 10px 14px; 
    margin: 0; 
    height: 40px; 
    border-radius: 12px; 
    outline: none; 
    font-size: clamp(12px, 2.5vw, 14px); 
    transition: 0.2s; 
    box-shadow: none;
    min-width: 0;
}

#chat-input-area #send-btn { 
    background: var(--hs-gradient); 
    border: none; 
    color: white; 
    margin: 0; 
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; 
    font-weight: 800; 
    cursor: pointer; 
    font-size: clamp(11px, 2vw, 13px); 
    transition: 0.2s; 
    box-shadow: 0 4px 15px rgba(247, 129, 49, 0.3);
    padding: 0 20px; 
    width: auto; 
    min-width: -moz-fit-content;
    min-width: fit-content; 
    flex-shrink: 0; 
    overflow: visible; 
    white-space: nowrap; 
}

#send-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(247, 129, 49, 0.5); 
}

#chatbot-container .chat-footer-note { 
    padding: 10px; 
    margin: 0; 
    text-align: center; 
    font-size: 11px; 
    color: #666; 
    background: #111; 
    border-radius: 0 0 20px 20px; 
    flex: 0 0 auto;
}

/* QUICK OPTIONS */
#chatbot-container .quick-options { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    padding: 10px 15px; 
    margin: 0; 
    background: #090909; 
    flex: 0 0 auto; 
}

.option-btn { 
    background: #1a1a1a; 
    border: 1px solid #333; 
    color: white; 
    padding: 8px 14px; 
    margin: 0; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: clamp(10px, 2vw, 12px); 
    font-weight: 600; 
    transition: all 0.2s ease; 
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    #launcher-wrapper { 
        width: 80px; 
        height: 80px; 
        top: 50px; 
        left: 50%;
        transform: translateX(-85%);
        position: fixed;
    }
    .pulse-ring { 
        width: 65px; 
        height: 65px; 
    } 
    #launcher-wrapper #chatbot-button { 
        width: 65px; 
        height: 65px; 
    }
    .animated-girl-gif { 
        width: 70px;
    } 
    #chatbot-container { 
        width: calc(100vw - 30px); 
        left: 50%; 
        transform: translateX(-50%);
        top: 140px;
        height: calc(100vh - 160px);
        min-height: 350px;
        position: fixed;
    }
}