/* «مساعد مدار» — نافذة محادثة ثابتة في زاوية الصفحة، بألوان الموقع. بلا حركات دائمة (راحة المعالج). */
.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: #1a1205; background: linear-gradient(180deg, #ffe7a8 0%, #ffc857 50%, #e9a23b 100%); box-shadow: 0 10px 28px rgba(0, 0, 0, .55); 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: #0d0d0f; border: 1px solid rgba(215, 220, 230, .16); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: #f1f2f4; }
.ma-panel[hidden], .ma-fab[hidden] { display: none; }
.ma-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #151518; border-bottom: 1px solid rgba(215, 220, 230, .14); }
.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: #1d1d1f; border: 1px solid rgba(215, 220, 230, .16); border-start-start-radius: 4px; }
.ma-me { align-self: flex-end; background: #2a2b30; color: #f1f2f4; 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: #e2e4e9; }
.ma-link { display: inline-block; margin-top: 8px; color: #d4d7de; 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 #404042; color: #e9ebef; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: start; }
.ma-chip:hover { border-color: #c9ccd3; background: rgba(230, 233, 240, .12); }
.ma-fb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9b9ea6; }
.ma-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #29292b; background: #070a12; }
.ma-input { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid rgba(215, 220, 230, .16); background: #151517; color: #f1f2f4; padding: 0 12px; font: inherit; font-size: 14px; }
.ma-input:focus { outline: none; border-color: #c9ccd3; }
.ma-send { height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #ffe7a8 0%, #ffc857 50%, #e9a23b 100%); color: #1a1205; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 480px) { .ma-root { bottom: 14px; inset-inline-end: 14px; } }
