#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}

#chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    position: relative;
}

#chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: var(--text-light);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: var(--spacing-sm);
    display: none;
    align-items: center;
    justify-content: center;
}

#chat-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    background: var(--navy);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

#chat-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    padding: 14px var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#chat-minimize {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
}

#chat-start {
    padding: 20px;
    text-align: center;
}

#chat-start p {
    color: var(--text-light);
    margin-bottom: 15px;
}

#chat-start input {
    width: 100%;
    padding: 10px var(--spacing-sm);
    margin-bottom: 10px;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-light);
}

#chat-start input::placeholder {
    color: var(--text-dim);
}

.chat-start-btn {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

#chat-messages {
    height: 280px;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.chat-msg {
    margin-bottom: var(--spacing-sm);
    max-width: 80%;
}

.chat-msg span {
    display: inline-block;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.4;
}

.chat-msg.visitor span {
    background: var(--gold);
    color: var(--navy);
}

.chat-msg.admin {
    margin-left: auto;
    text-align: right;
}

.chat-msg.admin span {
    background: var(--bg-card);
    color: var(--text-light);
}

#chat-input-area {
    padding: var(--spacing-sm);
    border-top: 1px solid var(--border-gold);
    display: flex;
    gap: var(--spacing-sm);
}

#chat-input {
    flex: 1;
    padding: 10px var(--spacing-sm);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-light);
}

#chat-input-area button {
    background: var(--gold);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--navy);
    cursor: pointer;
}
