/* روبوت تفاعلي — عيون متحركة */
.interactive-robot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.interactive-robot .robot-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-robot .robot-antenna {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 2px;
    height: 5px;
    margin-left: -1px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.95;
}

.interactive-robot .robot-antenna::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: currentColor;
}

.interactive-robot .robot-ear {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 9px;
    margin-top: -5px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.9;
}

.interactive-robot .robot-ear-l { left: 1px; }
.interactive-robot .robot-ear-r { right: 1px; }

.interactive-robot .robot-face {
    position: relative;
    width: 72%;
    height: 72%;
    border: 2px solid currentColor;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-sizing: border-box;
}

.interactive-robot .robot-eyes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 1px;
}

.interactive-robot .robot-eye {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    overflow: hidden;
    transform-origin: center center;
    animation: robot-blink 4.5s ease-in-out infinite;
}

.interactive-robot .robot-eye:nth-child(2) {
    animation-delay: 0.15s;
}

.interactive-robot .robot-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1e3a8a;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease-out;
    will-change: transform;
}

.interactive-robot .robot-mouth {
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.85;
}

.interactive-robot.is-thinking .robot-eye {
    animation: robot-think 0.55s ease-in-out infinite alternate;
}

.interactive-robot.is-happy .robot-mouth {
    width: 8px;
    height: 4px;
    border: 2px solid currentColor;
    border-top: none;
    background: transparent;
    border-radius: 0 0 8px 8px;
}

@keyframes robot-blink {
    0%, 42%, 44%, 100% { transform: scaleY(1); }
    43% { transform: scaleY(0.12); }
}

@keyframes robot-think {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1px); }
}

/* هيدر الشات */
.chatbot-avatar.interactive-robot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0;
}

/* زر الروبوت العائم في لوحة الإدارة */
.admin-bot-robot.interactive-robot {
    width: 28px;
    height: 28px;
    color: #fff;
    font-size: 0;
}

.admin-bot-robot .robot-face {
    border-width: 1.5px;
    border-radius: 6px;
}

.admin-bot-robot .robot-eye {
    width: 6px;
    height: 6px;
}

.admin-bot-robot .robot-pupil {
    width: 3px;
    height: 3px;
}

.admin-bot-wrap.open .admin-bot-robot {
    display: none;
}
