#pgn-chat-widget {
    position: fixed;
    bottom: var(--pgn-offset);
    z-index: 999999;
    font-family: 'Geologica', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pgn-chat-pos-right { right: var(--pgn-side-offset); }
.pgn-chat-pos-left { left: var(--pgn-side-offset); align-items: flex-start !important; }

#pgn-chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--pgn-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#pgn-chat-bubble:hover {
    transform: scale(1.1);
}

#pgn-chat-bubble svg {
    width: 30px;
    height: 30px;
}

#pgn-chat-window {
    width: 350px;
    height: 500px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(220, 38, 38, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
}

.pgn-chat-header {
    padding: 20px;
    background: rgba(220, 38, 38, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgn-chat-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

#pgn-chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
}

.pgn-chat-tabs {
    display: flex;
    padding: 10px 20px;
    gap: 10px;
}

.pgn-chat-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.pgn-chat-tab.active {
    background: var(--pgn-brand);
    color: white;
}

.pgn-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pgn-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.pgn-msg-bot {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.pgn-msg-user {
    background: var(--pgn-brand);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.pgn-chat-input {
    padding: 20px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

#pgn-chat-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    font-size: 14px;
}

#pgn-chat-input-field:focus {
    outline: none;
    border-color: var(--pgn-brand);
}

#pgn-chat-send {
    background: var(--pgn-brand);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#pgn-chat-send svg {
    width: 20px;
    height: 20px;
}

#pgn-chat-offline-form {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
}

#pgn-chat-offline-form input,
#pgn-chat-offline-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
}

#pgn-chat-offline-form input:focus,
#pgn-chat-offline-form textarea:focus {
    outline: none;
    border-color: var(--pgn-brand);
}

.pgn-btn-brand {
    background: var(--pgn-brand);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Geologica', sans-serif;
    transition: all 0.3s;
}

.pgn-btn-brand:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}
