/* «مساعد مدار» — نافذة محادثة ثابتة في زاوية الصفحة، بألوان الموقع. بلا حركات دائمة (راحة المعالج). */
.ma-root { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 900; font-family: var(--font, "Segoe UI", Tahoma, sans-serif); }
.ma-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, #1d4ed8, #3d7bff); box-shadow: 0 10px 28px rgba(29, 78, 216, .45); display: flex; align-items: center; justify-content: center; }
.ma-fab:hover { filter: brightness(1.08); }
.ma-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #0a0e17; border: 1px solid #1d2638; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: #eef3fc; }
.ma-panel[hidden], .ma-fab[hidden] { display: none; }
.ma-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #1d4ed8, #3d7bff); }
.ma-head img { width: 38px; height: auto; }
.ma-head > div { flex: 1; min-width: 0; }
.ma-title { font-weight: 700; font-size: 15px; }
.ma-sub { font-size: 12px; opacity: .85; }
.ma-x { background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 10px; font-size: 20px; line-height: 1; cursor: pointer; }
.ma-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ma-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.ma-bot { align-self: flex-start; background: #111a2b; border: 1px solid #1d2638; border-start-start-radius: 4px; }
.ma-me { align-self: flex-end; background: #1d4ed8; color: #fff; border-start-end-radius: 4px; }
.ma-alert { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .5); color: #fecaca; }
.ma-q { font-weight: 700; margin-bottom: 4px; color: #9cc2ff; }
.ma-link { display: inline-block; margin-top: 8px; color: #5aa9ff; font-weight: 600; text-decoration: none; }
.ma-link:hover { text-decoration: underline; }
.ma-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-chip { background: transparent; border: 1px solid #2a3a5c; color: #cfe0ff; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: start; }
.ma-chip:hover { border-color: #3d7bff; background: rgba(61, 123, 255, .12); }
.ma-fb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #8e9ab0; }
.ma-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #1d2638; background: #070a12; }
.ma-input { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid #1d2638; background: #0d1320; color: #eef3fc; padding: 0 12px; font: inherit; font-size: 14px; }
.ma-input:focus { outline: none; border-color: #3d7bff; }
.ma-send { height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: #3d7bff; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 480px) { .ma-root { bottom: 14px; inset-inline-end: 14px; } }
