/* =========================================================
   MB AI ROBOT — FINAL VERSION
   Friendly / Professional / Interactive
========================================================= */

.mb-ai-section {
    position: relative;
    width: 100%;
    min-height: 390px;
    margin: 28px 0;
    overflow: hidden;
    border-radius: 26px;

    background:
        radial-gradient(
            circle at 22% 50%,
            rgba(0, 190, 255, .14),
            transparent 30%
        ),
        radial-gradient(
            circle at 78% 40%,
            rgba(70, 100, 255, .10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #02070d,
            #06131e 55%,
            #02080e
        );

    border: 1px solid rgba(80, 210, 255, .10);

    box-shadow:
        0 22px 60px rgba(0, 0, 0, .32),
        inset 0 0 80px rgba(0, 180, 255, .035);
}


/* =========================================================
   GRID
========================================================= */

.mb-ai-bg-grid {
    position: absolute;
    inset: 0;

    opacity: .13;

    background-image:
        linear-gradient(
            rgba(0, 200, 255, .10) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 200, 255, .10) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 25%,
            black 75%,
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   GLOW
========================================================= */

.mb-ai-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(75px);
}

.mb-ai-glow-1 {
    width: 260px;
    height: 260px;
    left: 5%;
    top: 20%;
    background: rgba(0, 190, 255, .12);
}

.mb-ai-glow-2 {
    width: 230px;
    height: 230px;
    right: 8%;
    bottom: 5%;
    background: rgba(50, 100, 255, .10);
}


/* =========================================================
   CONTENT
========================================================= */

.mb-ai-content {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 1050px;

    min-height: 390px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 55px;

    padding: 12px 35px;
}


/* =========================================================
   ROBOT AREA
========================================================= */

.mb-ai-robot-area {
    position: relative;

    width: 390px;
    height: 375px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   ROBOT
========================================================= */

.mb-ai-robot {
    position: relative;

    width: 270px;
    height: 380px;

    transform-style: preserve-3d;

    animation:
        robotFloat 4.8s ease-in-out infinite;

    transition:
        filter .3s ease;
}


/* =========================================================
   AURA
========================================================= */

.robot-aura {
    position: absolute;

    width: 235px;
    height: 235px;

    left: 18px;
    top: 72px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 220, 255, .18),
            rgba(0, 120, 255, .07),
            transparent 70%
        );

    filter: blur(24px);

    animation:
        auraPulse 3.2s ease-in-out infinite;

    pointer-events: none;
}


/* =========================================================
   SHADOW
========================================================= */

.robot-shadow {
    position: absolute;

    width: 155px;
    height: 25px;

    left: 57px;
    bottom: -4px;

    border-radius: 50%;

    background: rgba(0, 0, 0, .55);

    filter: blur(13px);

    animation:
        shadowFloat 4.8s ease-in-out infinite;
}


/* =========================================================
   ANTENNA
========================================================= */

.robot-antenna {
    position: absolute;

    width: 5px;
    height: 34px;

    left: 132px;
    top: -19px;

    border-radius: 5px;

    background:
        linear-gradient(
            to top,
            #405766,
            #d7edf6
        );

    z-index: 2;
}

.antenna-light {
    position: absolute;

    width: 14px;
    height: 14px;

    left: -4.5px;
    top: -8px;

    border-radius: 50%;

    background: #61ecff;

    box-shadow:
        0 0 9px #00ddff,
        0 0 24px rgba(0, 210, 255, .85);

    animation:
        antennaPulse 1.5s ease-in-out infinite;
}


/* =========================================================
   HEAD
========================================================= */

.robot-head {
    position: absolute;

    width: 208px;
    height: 154px;

    left: 31px;
    top: 18px;

    border-radius:
        64px 64px 52px 52px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #d9e9ef 40%,
            #9ab0bc 78%,
            #718793 100%
        );

    border:
        3px solid #6b8490;

    box-shadow:
        inset 9px 8px 20px rgba(255, 255, 255, .80),
        inset -10px -12px 22px rgba(0, 0, 0, .18),
        0 14px 28px rgba(0, 0, 0, .35);

    transform-style: preserve-3d;

    z-index: 8;

    transition:
        transform .12s ease-out;
}


/* =========================================================
   FACE GLASS
========================================================= */

.robot-face {
    position: absolute;

    left: 14px;
    top: 16px;

    width: 180px;
    height: 118px;

    border-radius:
        52px 52px 43px 43px;

    background:
        linear-gradient(
            145deg,
            #102b3b,
            #071722 60%,
            #041019
        );

    border:
        2px solid rgba(120, 225, 255, .38);

    box-shadow:
        inset 0 0 35px rgba(0, 190, 255, .10),
        0 4px 15px rgba(0, 0, 0, .35);

    overflow: hidden;
}


/* =========================================================
   FACE REFLECTION
========================================================= */

.robot-face::before {
    content: "";

    position: absolute;

    width: 85px;
    height: 22px;

    top: 7px;
    left: 18px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .08);

    transform: rotate(-8deg);

    filter: blur(2px);

    pointer-events: none;
}


/* =========================================================
   EYES
========================================================= */

.robot-eye {
    position: absolute;

    top: 31px;

    width: 45px;
    height: 50px;

    border-radius: 45%;

    background:
        radial-gradient(
            circle at 32% 25%,
            #ffffff 0 7%,
            #baf8ff 8% 20%,
            #35dcff 22% 43%,
            #0089c7 44% 68%,
            #002333 70%
        );

    border:
        2px solid rgba(110, 225, 255, .65);

    box-shadow:
        0 0 14px rgba(0, 215, 255, .65),
        inset 0 0 10px rgba(255, 255, 255, .15);

    transition:
        transform .10s ease-out;

    z-index: 3;
}

.robot-eye-left {
    left: 31px;
}

.robot-eye-right {
    right: 31px;
}


/* Pupil */

.eye-pupil {
    position: absolute;

    width: 14px;
    height: 19px;

    left: 50%;
    top: 52%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        #00131d;

    box-shadow:
        0 0 4px rgba(0, 0, 0, .8);

    transition:
        transform .10s ease-out;
}


/* Eye highlight */

.eye-glow {
    position: absolute;

    width: 11px;
    height: 11px;

    left: 8px;
    top: 7px;

    border-radius: 50%;

    background: white;

    filter: blur(.5px);

    z-index: 2;
}


/* =========================================================
   FRIENDLY SMILE
========================================================= */

.robot-smile {
    position: absolute;

    left: 50%;
    bottom: 13px;

    width: 48px;
    height: 19px;

    transform:
        translateX(-50%);

    border-bottom:
        4px solid #55e8ff;

    border-radius:
        0 0 50px 50px;

    filter:
        drop-shadow(0 0 6px #00d9ff);

    transition:
        transform .25s ease;
}


/* =========================================================
   EARS
========================================================= */

.robot-ear {
    position: absolute;

    top: 44px;

    width: 27px;
    height: 60px;

    border-radius: 13px;

    background:
        linear-gradient(
            180deg,
            #6f8792,
            #263c48
        );

    border:
        2px solid #7c98a5;

    box-shadow:
        inset 3px 3px 7px rgba(255,255,255,.18),
        0 5px 10px rgba(0,0,0,.25);
}

.robot-ear-left {
    left: -19px;
}

.robot-ear-right {
    right: -19px;
}

.robot-ear div {
    width: 7px;
    height: 29px;

    margin: 14px auto;

    border-radius: 6px;

    background: #29dfff;

    box-shadow:
        0 0 9px #00d9ff;
}


/* =========================================================
   NECK
========================================================= */

.robot-neck {
    position: absolute;

    width: 68px;
    height: 27px;

    left: 101px;
    top: 157px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #263d4a,
            #a8c0ca,
            #263d4a
        );

    z-index: 4;
}


/* =========================================================
   BODY
========================================================= */

.robot-body {
    position: absolute;

    width: 178px;
    height: 153px;

    left: 46px;
    top: 176px;

    border-radius:
        34px 34px 45px 45px;

    background:
        linear-gradient(
            145deg,
            #f2fbff 0%,
            #c2d4dc 45%,
            #8097a2 78%,
            #637b87 100%
        );

    border:
        3px solid #617a86;

    box-shadow:
        inset 8px 8px 20px rgba(255,255,255,.68),
        inset -10px -14px 20px rgba(0,0,0,.20),
        0 15px 30px rgba(0,0,0,.30);

    z-index: 5;
}


/* =========================================================
   CHEST
========================================================= */

.robot-chest {
    position: absolute;

    width: 84px;
    height: 84px;

    left: 44px;
    top: 25px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #10384a,
            #061720 65%,
            #030d13
        );

    border:
        3px solid #5b8492;

    box-shadow:
        inset 0 0 20px rgba(0, 210, 255, .18),
        0 0 15px rgba(0, 190, 255, .08);

    display: flex;

    align-items: center;
    justify-content: center;
}


/* Chest ring */

.robot-chest-ring {
    position: absolute;

    width: 68px;
    height: 68px;

    border-radius: 50%;

    border:
        2px solid rgba(0, 220, 255, .45);

    box-shadow:
        0 0 15px rgba(0, 210, 255, .25);

    animation:
        chestPulse 2.4s ease-in-out infinite;
}


/* =========================================================
   CHAT BUTTON
========================================================= */

.robot-chat-button {
    position: relative;

    z-index: 20;

    width: 51px;
    height: 51px;

    border-radius: 50%;

    border:
        2px solid rgba(255,255,255,.90);

    background:
        radial-gradient(
            circle at 32% 27%,
            #8af6ff,
            #08b9eb 52%,
            #00699f
        );

    color: white;

    font-size: 20px;

    cursor: pointer;

    box-shadow:
        0 0 12px #00d9ff,
        0 0 28px rgba(0, 200, 255, .45);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.robot-chat-button:hover {
    transform:
        scale(1.13);

    box-shadow:
        0 0 20px #00eaff,
        0 0 45px rgba(0, 200, 255, .75);
}


/* =========================================================
   BODY LIGHT
========================================================= */

.robot-body-light {
    position: absolute;

    width: 55px;
    height: 4px;

    left: 61px;
    bottom: 18px;

    border-radius: 10px;

    background: #29ddff;

    box-shadow:
        0 0 12px #00d9ff;
}


/* =========================================================
   ARMS
========================================================= */

.robot-arm {
    position: absolute;

    z-index: 4;

    transform-origin:
        top center;
}

.robot-arm-left {
    left: 6px;
    top: 188px;

    transform:
        rotate(11deg);
}

.robot-arm-right {
    right: 6px;
    top: 188px;

    transform:
        rotate(-11deg);
}


/* Shoulder */

.robot-shoulder {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #e7f5fa,
            #78909b
        );

    border:
        2px solid #607984;

    box-shadow:
        inset 4px 4px 8px rgba(255,255,255,.35);
}


/* Upper arm */

.robot-upper-arm {
    width: 36px;
    height: 52px;

    margin: -2px auto 0;

    border-radius: 18px;

    background:
        linear-gradient(
            90deg,
            #334b57,
            #91a8b3,
            #334b57
        );
}


/* Elbow */

.robot-elbow {
    width: 31px;
    height: 31px;

    margin: -1px auto;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #dcecf2,
            #829ba6
        );

    border:
        2px solid #607884;
}


/* Forearm */

.robot-forearm {
    width: 39px;
    height: 50px;

    margin: -1px auto;

    border-radius: 18px;

    background:
        linear-gradient(
            90deg,
            #304753,
            #849ca7,
            #304753
        );
}


/* =========================================================
   FRIENDLY ROBOT HANDS
========================================================= */

.robot-hand {
    position: relative;

    width: 46px;
    height: 38px;

    margin: -2px auto;

    border-radius:
        45% 45% 48% 48%;

    background:
        linear-gradient(
            145deg,
            #f0fbff,
            #b0c5ce 65%,
            #8097a2
        );

    border:
        2px solid #5e7783;

    box-shadow:
        inset 4px 4px 7px rgba(255,255,255,.35);
}


/* Fingers */

.robot-hand span {
    position: absolute;

    width: 8px;
    height: 18px;

    top: -10px;

    border-radius:
        8px 8px 6px 6px;

    background:
        linear-gradient(
            180deg,
            #e8f7fb,
            #9fb6c0
        );

    border:
        1px solid #617985;
}

.robot-hand span:nth-child(1) {
    left: 7px;
}

.robot-hand span:nth-child(2) {
    left: 18px;
}

.robot-hand span:nth-child(3) {
    left: 29px;
}


/* =========================================================
   LEGS
========================================================= */

.robot-leg {
    position: absolute;

    z-index: 3;

    top: 318px;
}

.robot-leg-left {
    left: 72px;
}

.robot-leg-right {
    right: 72px;
}

.robot-thigh {
    width: 44px;
    height: 47px;

    border-radius: 17px;

    background:
        linear-gradient(
            90deg,
            #304652,
            #8ca4ae,
            #304652
        );
}

.robot-knee {
    width: 34px;
    height: 26px;

    margin: -2px auto;

    border-radius: 50%;

    background:
        #a9bdc6;

    border:
        2px solid #607884;
}

.robot-foot {
    width: 59px;
    height: 31px;

    margin-top: -2px;

    border-radius:
        15px 25px 12px 12px;

    background:
        linear-gradient(
            145deg,
            #f0fafc,
            #9cb2bc
        );

    border:
        2px solid #607884;
}


/* =========================================================
   INFO
========================================================= */

.mb-ai-info {
    width: 380px;
    color: white;
}

.mb-ai-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        7px 15px;

    border-radius: 30px;

    background:
        rgba(0, 190, 255, .08);

    border:
        1px solid rgba(0, 210, 255, .25);

    color:
        #5ce7ff;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #25e8ff;

    box-shadow:
        0 0 10px #00e5ff;
}

.mb-ai-info h2 {
    margin:
        15px 0 8px;

    font-size: 40px;

    font-weight: 900;

    line-height: 1.1;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #63e5ff
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mb-ai-info p {
    margin-bottom: 20px;

    color:
        rgba(255,255,255,.60);

    font-size: 16px;

    line-height: 1.6;
}


/* =========================================================
   OPEN BUTTON
========================================================= */

.mb-ai-open-button {
    border: none;

    padding:
        12px 23px;

    border-radius: 30px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #007dff,
            #00cfff
        );

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 28px rgba(0, 150, 255, .28);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.mb-ai-open-button:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 14px 35px rgba(0, 180, 255, .45);
}


/* =========================================================
   CHAT WINDOW
========================================================= */

.mb-ai-chat {
    position: absolute;

    z-index: 50;

    right: 25px;
    bottom: 20px;

    width: 370px;

    max-width:
        calc(100% - 30px);

    border-radius: 22px;

    overflow: hidden;

    background:
        #07121c;

    border:
        1px solid rgba(0, 200, 255, .25);

    box-shadow:
        0 25px 80px rgba(0,0,0,.65),
        0 0 35px rgba(0,160,255,.12);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(25px)
        scale(.95);

    transition:
        .3s ease;
}

.mb-ai-chat.active {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CHAT HEADER
========================================================= */

.mb-ai-chat-header {
    height: 68px;

    padding:
        10px 15px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background:
        linear-gradient(
            135deg,
            #071d2e,
            #063450
        );

    color: white;
}

.chat-header-bot {
    display: flex;

    align-items: center;

    gap: 10px;
}

.chat-mini-robot {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #0b2737,
            #020b11
        );

    border:
        2px solid #3fdcff;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    box-shadow:
        0 0 15px rgba(0,210,255,.4);
}

.mini-eye {
    width: 6px;
    height: 9px;

    border-radius: 50%;

    background:
        #52e7ff;

    box-shadow:
        0 0 6px #00d9ff;
}

.chat-header-bot strong {
    display: block;
    font-size: 14px;
}

.chat-header-bot small {
    display: flex;

    align-items: center;

    gap: 5px;

    color: #53e5ff;
}

.online-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #26e6a5;
}


/* Close */

.chat-close {
    width: 34px;
    height: 34px;

    border: none;

    border-radius: 50%;

    color: white;

    background:
        rgba(255,255,255,.08);

    font-size: 22px;

    cursor: pointer;
}


/* =========================================================
   CHAT CONTENT
========================================================= */

.mb-ai-chat-messages {
    height: 300px;

    padding: 18px;

    overflow-y: auto;
}

.mb-ai-chat-options {
    padding:
        12px 15px;

    border-top:
        1px solid rgba(255,255,255,.08);
}


/* =========================================================
   MESSAGES
========================================================= */

.ai-message {
    width: fit-content;

    max-width: 85%;

    padding:
        10px 13px;

    margin-bottom: 10px;

    border-radius:
        15px 15px 15px 4px;

    color: #eafaff;

    background:
        #102431;

    border:
        1px solid rgba(0,190,255,.12);

    font-size: 14px;

    line-height: 1.6;
}

.ai-option {
    display: block;

    width: 100%;

    margin-bottom: 8px;

    padding:
        10px 13px;

    border-radius: 12px;

    border:
        1px solid rgba(0,200,255,.25);

    background:
        rgba(0,160,255,.07);

    color:
        #bfefff;

    cursor: pointer;

    text-align: left;

    transition:
        .2s ease;
}

.ai-option:hover {
    background:
        rgba(0,180,255,.18);

    border-color:
        rgba(0,220,255,.55);

    transform:
        translateX(3px);
}


/* =========================================================
   NORMAL FLOAT
========================================================= */

@keyframes robotFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotateY(0deg);
    }

    50% {
        transform:
            translateY(-9px)
            rotateY(1.5deg);
    }
}


/* =========================================================
   AURA
========================================================= */

@keyframes auraPulse {

    0%,
    100% {
        opacity: .35;

        transform:
            scale(.92);
    }

    50% {
        opacity: .75;

        transform:
            scale(1.08);
    }
}


/* =========================================================
   SHADOW
========================================================= */

@keyframes shadowFloat {

    0%,
    100% {
        transform:
            scale(1);

        opacity: .5;
    }

    50% {
        transform:
            scale(.78);

        opacity: .28;
    }
}


/* =========================================================
   ANTENNA
========================================================= */

@keyframes antennaPulse {

    0%,
    100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}


/* =========================================================
   CHEST
========================================================= */

@keyframes chestPulse {

    0%,
    100% {
        transform: scale(.96);
        opacity: .65;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}


/* =========================================================
   CHAT REACTION
========================================================= */

.mb-ai-robot.chat-reaction {
    animation:
        robotChatReaction .9s ease;
}

.mb-ai-robot.chat-reaction .robot-arm-right {
    animation:
        robotWave .9s ease;
}

.mb-ai-robot.chat-reaction .robot-arm-left {
    animation:
        robotHello .9s ease;
}

.mb-ai-robot.chat-reaction .robot-smile {
    transform:
        translateX(-50%)
        scaleX(1.25);
}

.mb-ai-robot.chat-reaction .robot-chat-button {
    box-shadow:
        0 0 25px #00eaff,
        0 0 60px rgba(0,200,255,.9);

    transform:
        scale(1.18);
}


@keyframes robotChatReaction {

    0% {
        transform:
            translateY(0)
            rotate(0);
    }

    20% {
        transform:
            translateY(-12px)
            rotate(-2deg);
    }

    40% {
        transform:
            translateY(-7px)
            rotate(2deg);
    }

    60% {
        transform:
            translateY(-12px)
            rotate(-1.5deg);
    }

    80% {
        transform:
            translateY(-4px)
            rotate(1deg);
    }

    100% {
        transform:
            translateY(0)
            rotate(0);
    }
}


@keyframes robotWave {

    0% {
        transform:
            rotate(-11deg);
    }

    25% {
        transform:
            rotate(-35deg);
    }

    45% {
        transform:
            rotate(-5deg);
    }

    65% {
        transform:
            rotate(-32deg);
    }

    85% {
        transform:
            rotate(-8deg);
    }

    100% {
        transform:
            rotate(-11deg);
    }
}


@keyframes robotHello {

    0% {
        transform:
            rotate(11deg);
    }

    30% {
        transform:
            rotate(20deg);
    }

    55% {
        transform:
            rotate(7deg);
    }

    80% {
        transform:
            rotate(17deg);
    }

    100% {
        transform:
            rotate(11deg);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .mb-ai-section {
        min-height: 690px;
    }

    .mb-ai-content {
        flex-direction: column;

        gap: 0;

        padding:
            12px 20px 25px;
    }

    .mb-ai-robot-area {
        width: 100%;
        height: 390px;
    }

    .mb-ai-info {
        width: 100%;

        text-align: center;
    }

    .mb-ai-info h2 {
        font-size: 32px;
    }

    .mb-ai-robot {
        transform:
            scale(.92);
    }

    .mb-ai-chat {
        right: 15px;
        bottom: 15px;
    }
}


@media (max-width: 480px) {

    .mb-ai-section {
        border-radius: 20px;
    }

    .mb-ai-robot-area {
        height: 375px;
    }

    .mb-ai-robot {
        transform:
            scale(.86);
    }

    .mb-ai-info h2 {
        font-size: 28px;
    }

    .mb-ai-info p {
        font-size: 14px;
    }
}