.ncc-chatbot-root,
.ncc-chatbot-root * {
    box-sizing: border-box;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.ncc-bubble {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 999999;
    background: linear-gradient(135deg, #00F5A0 0%, #00D9F5 50%, #B388FF 100%);
    box-shadow: 0 18px 46px rgba(0, 217, 245, .34), 0 8px 22px rgba(179, 136, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ncc-bubble:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 24px 58px rgba(0, 217, 245, .42), 0 12px 30px rgba(179, 136, 255, .32);
}

.ncc-bubble svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.14));
}

.ncc-panel {
    position: fixed;
    right: 22px;
    bottom: 98px;
    width: 390px;
    max-width: calc(100vw - 28px);
    height: 610px;
    max-height: calc(100vh - 130px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    z-index: 999999;
    box-shadow: 0 28px 85px rgba(15, 23, 42, .26);
    display: none;
    border: 1px solid rgba(148, 163, 184, .22);
}

.ncc-panel.ncc-open {
    display: flex;
    flex-direction: column;
    animation: nccSlideUp .22s ease both;
}

@keyframes nccSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ncc-header {
    padding: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #00F5A0 0%, #00D9F5 50%, #B388FF 100%);
}

.ncc-title-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.ncc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.ncc-title {
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
}

.ncc-subtitle {
    font-size: 12px;
    opacity: .92;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ncc-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.ncc-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

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

.ncc-msg-bot { justify-content: flex-start; }
.ncc-msg-user { justify-content: flex-end; }

.ncc-msg-bubble {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.48;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
    word-break: break-word;
}

.ncc-msg-bot .ncc-msg-bubble {
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(226,232,240,.95);
    border-bottom-left-radius: 6px;
}

.ncc-msg-user .ncc-msg-bubble {
    color: #fff;
    border-bottom-right-radius: 6px;
    background: linear-gradient(135deg, #00D9F5 0%, #B388FF 100%);
}

.ncc-quick-actions {
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-top: 1px solid #eef2f7;
    background: #fff;
}

.ncc-chip {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    color: #334155;
    transition: all .2s ease;
}

.ncc-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
    border-color: rgba(0,217,245,.55);
}

.ncc-lead-form {
    padding: 13px 14px;
    border-top: 1px solid #eef2f7;
    background: #fff;
    display: none;
}

.ncc-lead-form.ncc-show { display: block; }

.ncc-lead-form input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
    outline: none;
}

.ncc-lead-form input:focus,
.ncc-input:focus {
    border-color: #00D9F5;
    box-shadow: 0 0 0 3px rgba(0,217,245,.12);
}

.ncc-save-lead {
    width: 100%;
    border: none;
    color: #fff;
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #00F5A0 0%, #00D9F5 50%, #B388FF 100%);
}

.ncc-input-area {
    padding: 13px 14px 14px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #eef2f7;
    background: #fff;
}

.ncc-input {
    flex: 1;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 12px 13px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.ncc-send {
    border: none;
    color: #fff;
    border-radius: 14px;
    padding: 0 15px;
    font-weight: 850;
    cursor: pointer;
    background: linear-gradient(135deg, #00D9F5 0%, #B388FF 100%);
}

.ncc-human-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

.ncc-support-line {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    background: #f8fafc;
    font-size: 13px;
}

.ncc-human-links a {
    display: block;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    background: #f8fafc;
    font-weight: 750;
    font-size: 13px;
}

@media (max-width: 480px) {
    .ncc-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 88px;
        height: 76vh;
        max-height: 76vh;
        border-radius: 20px;
    }
    .ncc-bubble {
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
    }
    .ncc-msg-bubble {
        max-width: 92%;
        font-size: 13.5px;
    }
    .ncc-subtitle {
        max-width: 210px;
    }
}
