/* CONTAINER */
.centi-container {
    position: fixed;
    bottom: 24px;
    right: 47px;
    z-index: 99999;
    font-family: system-ui, Poppins, sans-serif;
}

/* LAUNCHER */
.centi-launcher {
    width: 56px;
    height: 56px;
    background: #2979ff;
    border-radius: 50%;
    box-shadow: 0px 8px 20px rgba(41, 121, 255, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .25s ease;
}

.centi-launcher:hover {
    transform: scale(1.08);
}

.centi-launcher-icon {
    width: 45px;
}

/* CHAT WIDGET */
.centi-chat-widget {
    width: 360px;
    height: 500px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0px 18px 38px -10px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: centiSlideUp .35s ease;
}

/* Center Floating Chat Widget (Mobile) */
@media (max-width: 765px) {

    .centi-chat-widget {
        width: 92vw;
        max-width: 360px;
        height: 55vh;

        position: fixed;
        bottom: 12px;

        left: 50%;
        transform: translateX(-50%);  /* TRUE horizontal center */

        right: auto;
        top: auto;

        border-radius: 16px;
        box-shadow: 0px 12px 28px rgba(0,0,0,.22);
    }

}



.hidden { display: none; }

/* HEADER */
.centi-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #2979ff, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.centi-meta { flex: 1; }

.centi-name {
    font-weight: 600;
    font-size: 16px;
}

.centi-sub {
    font-size: 12px;
    opacity: .85;
}

.centi-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: .85;
}

/* BODY */
.centi-body {
    flex: 1;
    padding: 12px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

/* BUBBLES */
.centi-bubble {
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 92%;
    line-height: 1.4;
}

.centi-ai {
    background: #f6f7fa;
    border: 1px solid #e2e4e8;
    align-self: flex-start;
    white-space: pre-line;
}

.centi-user {
    background: #2979ff;
    color: white;
    align-self: flex-end;
    white-space: pre-line;
}

/* CHIPS / BUTTONS */
.centi-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: -2px;
}

.centi-chip {
    padding: 7px 12px;
    border-radius: 10px;
    background: #eef2ff;
    border: 1px solid #d5dcff;
    font-size: 13px;
    cursor: pointer;
    transition: .2s ease;
}

.centi-chip:hover {
    background: #e1e7ff;
}

/* ABOUT BLOCKS (WHO WE ARE / VISION / MISSION) */
.centi-about-block {
    background: #f7f8fc;
    border-left: 3px solid #2979ff;
    padding: 9px 10px;
    border-radius: 8px;
    margin-top: 6px;
    font-size: 13.5px;
    white-space: pre-line;
}

.centi-about-title {
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 3px;
}

/* FOOTER INPUT */
.centi-footer {
    padding: 10px;
    display: flex;
    gap: 6px;
    border-top: 1px solid #eee;
}

.centi-input {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.centi-send {
    background: #2979ff;
    color: #fff;
    border: none;
    padding: 0 13px;
    border-radius: 10px;
    cursor: pointer;
}

/* TYPING */
.centi-typing {
    font-size: 14px;
    color: #555;
    margin: 3px 0;
}

.centi-typing span {
    animation: blink 1.4s infinite both;
}

.centi-typing span:nth-child(2) {
    animation-delay: .2s;
}
.centi-typing span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

/* ANIMATION */
@keyframes centiSlideUp {
    from { transform: translateY(20px); opacity: 0; }
}
