.mg-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 9998;
    padding: 12px 16px;
    border: 1px solid rgba(214,168,95,0.45);
    background: rgba(5,5,5,0.88);
    color: #d6a85f;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.mg-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 150px;
    width: 360px;
    height: 520px;
    z-index: 9998;
    display: none;
    flex-direction: column;
    background:
        radial-gradient(circle at top, rgba(214,168,95,0.08), transparent 40%),
        rgba(5,5,5,0.96);
    border: 1px solid rgba(214,168,95,0.35);
    box-shadow: 0 24px 80px rgba(0,0,0,0.65);
    backdrop-filter: blur(18px);
}

.mg-chat-panel.open {
    display: flex;
}

.mg-chat-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(214,168,95,0.18);
}

.mg-chat-title {
    color: #d6a85f;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.mg-chat-subtitle {
    margin-top: 7px;
    color: rgba(255,255,255,0.46);
    font-size: 12px;
}

.mg-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.mg-msg {
    display: flex;
    margin-bottom: 12px;
}

.mg-msg.user {
    justify-content: flex-end;
}

.mg-msg.bot {
    justify-content: flex-start;
}

.mg-bubble {
    max-width: 78%;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 14px;
}

.mg-msg.user .mg-bubble {
    background: rgba(214,168,95,0.9);
    color: #080808;
    border-bottom-right-radius: 4px;
}

.mg-msg.bot .mg-bubble {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom-left-radius: 4px;
}

.mg-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(214,168,95,0.18);
}

.mg-chat-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 11px 12px;
    outline: none;
    font-size: 13px;
}

.mg-chat-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.mg-chat-send {
    width: 44px;
    border: 1px solid rgba(214,168,95,0.45);
    background: transparent;
    color: #d6a85f;
    cursor: pointer;
}

@media (max-width: 520px) {
    .mg-chat-panel {
        right: 14px;
        left: 14px;
        bottom: 130px;
        width: auto;
        height: 65vh;
    }

    .mg-chat-launcher {
        right: 14px;
        bottom: 82px;
    }
}
