:root{
    --bg:#0F172A;
    --card:#182236;
    --gold:#C6A56A;
    --white:#FAFAFA;
    --text:#CBD5E1;
}

/* Chat Toggle Button */
.chat-toggle{
    position:fixed;
    bottom:20px;
    left:20px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:var(--gold);
    color:var(--bg);
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    font-size:25px;
    box-shadow:0 5px 20px rgba(198,165,106,0.35);
    transition:all .3s ease;
    z-index:9999;
}

.chat-toggle:hover{
    transform:scale(1.08);
}

/* Chat Window */
.chatbox{
    display:none;
    position:fixed;
    bottom:90px;
    left:20px;
    width:340px;
    height:500px;
    background:var(--card);
    border-radius:15px;
    border:1px solid rgba(198,165,106,.25);
    box-shadow:0 10px 35px rgba(0,0,0,.4);
    overflow:hidden;
    z-index:9999;
}

/* Header */
.chat-header{
    background:var(--bg);
    color:var(--gold);
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:600;
    border-bottom:1px solid rgba(198,165,106,.2);
}

.chat-header span{
    cursor:pointer;
    color:var(--white);
}

/* Messages Area */
.messages{
    height:380px;
    overflow-y:auto;
    padding:12px;
    background:var(--card);
    color:var(--text);
}

/* Scrollbar */
.messages::-webkit-scrollbar{
    width:6px;
}

.messages::-webkit-scrollbar-thumb{
    background:var(--gold);
    border-radius:10px;
}

/* Common Message Style */
.bot,
.user{
    padding:10px 14px;
    margin:8px 0;
    border-radius:12px;
    line-height:1.5;
    max-width:85%;
    word-wrap:break-word;
}

/* Bot Messages */
.bot{
    background:#24324d;
    color:var(--text);
    margin-right:auto;
}

/* User Messages */
.user{
    background:var(--gold);
    color:var(--bg);
    margin-left:auto;
    text-align:right;
    font-weight:500;
}

/* Input Area */
.chat-input{
    display:flex;
    gap:8px;
    padding:12px;
    background:var(--bg);
    border-top:1px solid rgba(198,165,106,.2);
}

/* Input Box */
.chat-input textarea{
    flex:1;
    padding:10px 12px;
    border:none;
    border-radius:8px;
    background:#24324d;
    color:var(--white);
    outline:none;
    font-size:14px;
    resize:none;
    min-height:42px;
    max-height:100px;
    overflow-y:auto;
    font-family:inherit;
}

.chat-input textarea::placeholder{
    color:var(--text);
}

/* Send Button */
.chat-input button{
    padding:10px 15px;
    border:none;
    border-radius:8px;
    background:var(--gold);
    color:var(--bg);
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.chat-input button:hover{
    opacity:.9;
    transform:translateY(-1px);
}

/* Mobile Responsive */
@media (max-width:480px){

    .chat-toggle{
        width:55px;
        height:55px;
        font-size:22px;
        left:15px;
        bottom:15px;
    }

    .chatbox{
        width:90%;
        left:5%;
        bottom:80px;
        height:75vh;
    }

    .messages{
        height:calc(75vh - 120px);
    }
}