.nbc-widget-container {
    position: fixed;
    bottom: 10px;
    right: 0px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Nút Toggle Tròn */
.nbc-toggle-btn {
    width: 50px;
    height: 50px;
    padding: 13px;
    border-radius: 50%;
    background-color: #3b5998;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    outline: none;
    margin-left: auto;
}
.nbc-toggle-btn:hover {
    transform: scale(1.05);
    background-color: #2d4373;
}

/* Box Popup */
.nbc-popup-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Trạng thái Active */
.nbc-widget-container.is-active .nbc-popup-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.nbc-widget-container.is-active .nbc-icon-chat { display: none; }
.nbc-widget-container.is-active .nbc-icon-close { display: block !important; }

/* Header & Body Popup */
.nbc-popup-header {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.nbc-popup-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}
.nbc-popup-body {
    padding: 20px;
    text-align: center;
}
.nbc-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Các nút bấm */
.nbc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 99px;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
    gap: 8px;
}
.nbc-btn:hover { opacity: 0.85; }
.nbc-btn i { font-size: 18px; }

.nbc-btn-zalo { background-color: #4a90e2; }
.nbc-btn-messenger { background-color: #5c32d4; }
.nbc-btn-email { background-color: #f0932b; }

/* Footer text */
.nbc-popup-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #888;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .nbc-widget-container { bottom: 20px; right: 20px; }
    .nbc-popup-box { right: 0; width: 280px; }
}