/* ═══════════════════════════════════════════════════════════════
   المساعد الذكي — لغة بصرية وحدة لكل مكان يشتغل بيه الذكاء
   بنفسجي→وردي + نجمة تلمع = "هذا المساعد الذكي" (المحادثة، يناسب شغلي؟، حلّل قائمتي، ليش يناسبك…)
   + "؟" الشرح الصغير لأي حقل أو رقم
   مشتركة بين كل صفحات الزوار ولوحة المشهور ولوحة الإدارة
   ═══════════════════════════════════════════════════════════════ */
:root {
  --ai: linear-gradient(120deg, #7c4dff 0%, #b14dff 48%, #ff4f9a 100%);
  --ai-ink: #6d28d9;
  --ai-soft: #f4eeff;
  --ai-line: rgba(124, 77, 255, .22);
}

/* ─── أيقونة وعلامة الذكاء ─── */
.ai-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.ai-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }
.ai-ic .spark { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; animation: ai-twinkle 2.6s ease-in-out infinite; }
@keyframes ai-twinkle { 0%, 100% { transform: none; } 50% { transform: scale(.72) rotate(45deg); } }
.ai-ic--big { width: 44px; height: 44px; padding: 10px; border-radius: 15px; background: var(--ai); color: #fff; box-shadow: 0 10px 22px -10px rgba(124, 77, 255, .7); }
.ai-ic--head { width: 42px; height: 42px; padding: 9px; border-radius: 14px; background: var(--ai); color: #fff; box-shadow: 0 10px 22px -12px rgba(124, 77, 255, .8); }

.ai-mark {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--ai-soft); color: var(--ai-ink); font: 700 13px var(--font-head); box-shadow: inset 0 0 0 1px var(--ai-line);
}
.ai-mark .ai-ic { width: 16px; height: 16px; }

.btn-ai {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ai); background-size: 170% 100%; color: #fff; font: 700 15px var(--font-head); white-space: nowrap; text-decoration: none;
  box-shadow: 0 12px 26px -12px rgba(124, 77, 255, .75); transition: transform .35s var(--spring), background-position .6s var(--ease), box-shadow .3s;
}
.btn-ai:hover { transform: translateY(-2px) scale(1.03); background-position: 100% 0; box-shadow: 0 16px 30px -12px rgba(177, 77, 255, .8); }
.btn-ai:active { transform: scale(.96); }
.btn-ai:focus-visible { outline: 3px solid #b14dff; outline-offset: 3px; }
.btn-ai .ai-ic { width: 20px; height: 20px; }
.btn-ai--block { width: 100%; }
.btn-ai--soft { background: var(--ai-soft); color: var(--ai-ink); box-shadow: inset 0 0 0 1.5px var(--ai-line); }
.btn-ai--sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn-ai:disabled { opacity: .6; cursor: progress; transform: none; }

/* ─── "؟" الشرح الصغير ─── */
.tip {
  display: inline-grid; place-items: center; width: 19px; height: 19px; margin-inline-start: 6px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  vertical-align: middle; background: #ece6f8; color: #5b4a7a; font: 800 12px/1 var(--font-head); flex: none;
  transition: background-color .2s, color .2s, transform .3s var(--spring);
}
.tip:hover, .tip[aria-expanded="true"] { background: var(--ai-ink); color: #fff; transform: scale(1.12); }
.tip:focus-visible { outline: 2px solid var(--ai-ink); outline-offset: 2px; }
.tip-bubble {
  position: fixed; z-index: 400; max-width: min(300px, calc(100vw - 24px)); padding: 10px 14px; border-radius: 14px; pointer-events: none;
  background: #2b1a46; color: #fff; font: 500 13.5px/1.75 var(--font-body); text-align: start; white-space: normal;
  box-shadow: 0 16px 36px -14px rgba(43, 26, 70, .6); animation: tip-pop .25s var(--spring);
}
@keyframes tip-pop { from { opacity: 0; transform: translateY(4px) scale(.96); } }

/* ═══ زر المساعد الذكي (أسفل الصفحة) ═══ */
.chat-launch {
  position: fixed; z-index: 80; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding-block: 7px; padding-inline: 7px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text); text-align: start; box-shadow: 0 18px 40px -16px rgba(80, 40, 120, .55), 0 0 0 1px var(--ai-line);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.chat-launch:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -16px rgba(124, 77, 255, .55), 0 0 0 1.5px #c9b3ff; }
.chat-launch:focus-visible { outline: 3px solid #b14dff; outline-offset: 3px; }
.chat-launch__ic {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ai); color: #fff; animation: ai-breathe 3.2s ease-in-out infinite;
}
.chat-launch__ic .ai-ic { width: 25px; height: 25px; }
.chat-launch__ic em {
  position: absolute; top: -6px; inset-inline-start: -7px; padding: 0 6px; border-radius: 999px; border: 2px solid var(--surface);
  background: #12b886; color: #fff; font: 800 10.5px/1.6 var(--font-head); font-style: normal; letter-spacing: .5px;
}
@keyframes ai-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(177, 77, 255, .45); } 50% { box-shadow: 0 0 0 9px rgba(177, 77, 255, 0); } }
.chat-launch__txt { display: grid; line-height: 1.3; }
.chat-launch__txt b { font: 800 15.5px var(--font-head); }
.chat-launch__txt small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.chat-launch__tip {
  position: absolute; bottom: calc(100% + 12px); left: 0; white-space: nowrap; padding: 9px 14px; border-radius: 16px;
  background: #2b1a46; color: #fff; font-size: 14px; box-shadow: 0 14px 30px -14px rgba(43, 26, 70, .6); animation: launch-tip .5s var(--ease) both 1.5s;
}
.chat-launch__tip::after { content: ""; position: absolute; top: 100%; left: 26px; border: 7px solid transparent; border-top-color: #2b1a46; }
.chat-launch__tip b { font-family: var(--font-head); }
@keyframes launch-tip { from { opacity: 0; transform: translateY(6px); } }

/* بعد النزول بالصفحة يصغر للأيقونة حتى ما يغطي البطاقات (ويكبر بالمرور عليه) */
.chat-launch.is-compact { padding-inline-end: 7px; }
.chat-launch.is-compact .chat-launch__txt { display: none; }
.chat-launch.is-compact:hover { padding-inline-end: 18px; }
.chat-launch.is-compact:hover .chat-launch__txt { display: grid; }

/* ═══ نافذة المحادثة ═══ */
.chat {
  position: fixed; z-index: 110; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: 400px; height: min(660px, calc(100vh - 40px)); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column;
  background: #fffaf6; color: var(--text); box-shadow: 0 40px 100px -30px rgba(80, 40, 120, .55), 0 0 0 1px var(--ai-line);
  transform-origin: bottom left; transform: scale(.6) translateY(40px); opacity: 0; pointer-events: none;
  transition: transform .45s var(--spring), opacity .3s var(--ease);
}
.chat.is-open { transform: none; opacity: 1; pointer-events: auto; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(120deg, #f1e9ff, #ffeaf4); border-bottom: 1px solid var(--ai-line); }
.chat__title { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.chat__title b { font: 800 16.5px var(--font-head); }
.chat__title small { display: inline-flex; align-items: center; gap: 6px; color: #0c8a63; font-size: 12.5px; font-weight: 600; }
.chat__title small i { width: 7px; height: 7px; border-radius: 50%; background: #12b886; box-shadow: 0 0 0 3px rgba(18, 184, 134, .18); }
.chat__hbtn { width: 38px; height: 38px; flex: none; border: 0; border-radius: 12px; cursor: pointer; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--text); transition: background-color .2s, transform .3s var(--spring); }
.chat__hbtn:hover { background: var(--surface); transform: scale(1.08); }
.chat__hbtn .ic { width: 19px; height: 19px; }
.chat__body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }

.chat .msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; animation: msg-in .35s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.chat .msg--bot { align-self: flex-start; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -14px rgba(80, 40, 120, .4); border-start-start-radius: 6px; }
.chat .msg--me { align-self: flex-end; background: var(--ai); color: #fff; font-weight: 500; border-start-end-radius: 6px; }
.chat .typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat .typing i { width: 7px; height: 7px; border-radius: 50%; background: #b14dff; animation: chat-blink 1.2s infinite; }
.chat .typing i:nth-child(2) { animation-delay: .15s; background: #ff4f9a; }
.chat .typing i:nth-child(3) { animation-delay: .3s; background: #ff9f1c; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

/* بطاقات مصغّرة بالرد */
.chat .mini-cards { display: grid; gap: 8px; align-self: stretch; animation: msg-in .35s var(--ease) both; }
.chat .mini { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.chat .mini:hover { box-shadow: 0 0 0 1.5px #d9c8ff, 0 10px 20px -14px rgba(124, 77, 255, .5); }
.chat .mini__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.chat .mini img, .chat .mini .ph { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; flex: none; font-size: 20px; }
.chat .mini .meta { flex: 1; min-width: 0; display: grid; line-height: 1.45; }
.chat .mini b { font: 700 14.5px var(--font-head); display: flex; align-items: center; gap: 6px; }
.chat .mini small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat .mini__price { font: 700 13px var(--font-head); color: var(--ai-ink); }
.chat .mini__demo, .sl-demo { padding: 0 7px; border-radius: 999px; background: #e0f2fe; color: #075985; font: 700 11px/1.7 var(--font-head); font-style: normal; }
.chat .add-btn { width: 40px; height: 40px; flex: none; border-radius: 13px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--ai-soft); color: var(--ai-ink); transition: transform .3s var(--spring), background-color .2s; }
.chat .add-btn:hover { transform: scale(1.08); }
.chat .add-btn.is-on { background: #12b886; color: #fff; }
.chat .add-btn .ic { width: 19px; height: 19px; }

/* أفعال تحت الرد + أسئلة سريعة */
.chat-acts { display: flex; flex-wrap: wrap; gap: 6px; animation: msg-in .35s var(--ease) both; }
.chat-act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--surface); color: var(--ai-ink); font: 700 13px var(--font-head); box-shadow: inset 0 0 0 1.5px var(--ai-line); transition: transform .3s var(--spring), background-color .2s;
}
.chat-act:hover { transform: translateY(-1px); background: var(--ai-soft); }
.chat-act .ic { width: 16px; height: 16px; }
.chat-act--hot { background: var(--ai); color: #fff; box-shadow: 0 10px 20px -12px rgba(124, 77, 255, .8); }
.chat-act--hot:hover { background: var(--ai); }
.chat-act--wa { background: #12b886; color: #fff; box-shadow: none; }
.chat-act--wa:hover { background: #0ca678; }
.chat .quick { display: flex; flex-wrap: wrap; gap: 6px; animation: msg-in .35s var(--ease) both; }
.chat .quick .chip {
  min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--surface); color: var(--text);
  font: 600 13.5px var(--font-body); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s, transform .3s var(--spring);
}
.chat .quick .chip:hover { box-shadow: inset 0 0 0 1.5px #b14dff; transform: translateY(-1px); }
.chat .quick--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat .quick--grid .chip { min-height: 40px; }

/* الترحيب */
.chat-welcome { display: grid; gap: 12px; animation: msg-in .4s var(--ease) both; }
.chat-hello { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.chat-hello b { display: block; font: 800 16px var(--font-head); margin-bottom: 2px; }
.chat-hello p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.chat-need { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; border-radius: 16px; background: var(--ai-soft); box-shadow: inset 0 0 0 1px var(--ai-line); }
.chat-need small { color: var(--ai-ink); font-weight: 700; font-size: 12.5px; }
.chat-need b { font: 700 14px var(--font-head); flex: 1; min-width: 8em; }
.chat-need button { border: 0; background: var(--ai); color: #fff; border-radius: 999px; min-height: 32px; padding: 0 12px; font: 700 12.5px var(--font-head); cursor: pointer; }
.chat-ctx { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 10px; border-radius: 18px; background: linear-gradient(120deg, #fff4e8, #ffeef6); }
.chat-ctx img, .chat-ctx > i { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; background: var(--hot); color: #fff; font: 800 18px var(--font-head); font-style: normal; }
.chat-ctx small { display: block; color: var(--muted); font-size: 12px; }
.chat-ctx b { font: 700 15px var(--font-head); }
.chat-ctx .quick { grid-column: 1 / -1; }
.chat-welcome__t { margin: 4px 0 0; font: 700 14px var(--font-head); color: var(--muted); }
.chat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chat-tile {
  --t: #8b5cf6;
  display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 18px; cursor: pointer; text-align: start; color: var(--text);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--spring), box-shadow .2s;
}
.chat-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--t) 45%, transparent), 0 12px 24px -16px var(--t); }
.chat-tile__ic { width: 38px; height: 38px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--t); background: color-mix(in srgb, var(--t) 13%, var(--surface)); }
.chat-tile__ic .ic { width: 19px; height: 19px; }
.chat-tile b { display: block; font: 700 13.5px/1.35 var(--font-head); }
.chat-tile small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.chat-human { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 999px; text-decoration: none; color: #0c8a63; font: 700 13.5px var(--font-head); background: #e6fcf5; }
.chat-human .ic { width: 18px; height: 18px; }

/* الكتابة */
.chat__foot { padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat__form { display: flex; gap: 8px; align-items: flex-end; }
.chat__form textarea {
  flex: 1; resize: none; min-height: 48px; max-height: 120px; padding: 12px 14px; border-radius: 18px; border: 1.5px solid var(--line-2);
  background: #fbf8ff; color: var(--text); font: 500 15.5px/1.5 var(--font-body);
}
.chat__form textarea:focus { outline: none; border-color: #b14dff; box-shadow: 0 0 0 4px rgba(177, 77, 255, .14); }
.chat__send { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: var(--ai); color: #fff; box-shadow: 0 10px 20px -10px rgba(124, 77, 255, .8); transition: transform .3s var(--spring); }
.chat__send:hover { transform: scale(1.08) rotate(-8deg); }
.chat__send .ic { width: 21px; height: 21px; transform: scaleX(-1); }
.chat__note { font-size: 11.5px; color: var(--dim); text-align: center; margin-top: 8px; }

/* ═══ قائمة الحملة: "طلبك" + رأي المساعد ═══ */
.need-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: 18px; background: var(--ai-soft); box-shadow: inset 0 0 0 1px var(--ai-line); color: var(--ai-ink); }
.need-bar__txt { flex: 1; min-width: 0; display: grid; line-height: 1.4; }
.need-bar__txt small { font-size: 12px; font-weight: 700; }
.need-bar__txt b { font: 700 14.5px var(--font-head); color: var(--text); }
.need-bar__edit { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ai-ink); font: 700 13px var(--font-head); text-decoration: none; }
.need-bar--ask { display: grid; gap: 10px; }
.need-bar--ask p { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 14px var(--font-head); }
.need-bar__pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.need-bar select, .v3-fitbox__pick select {
  min-height: 42px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--ai-line); background: var(--surface); color: var(--text); font: 600 14px var(--font-body); min-width: 0;
}
.sl-item.is-top { box-shadow: 0 0 0 2px #b14dff, 0 14px 28px -18px rgba(124, 77, 255, .7); }
.sl-item .meta a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.sl-item .meta a b { min-width: 0; }
.sl-item small { display: block; }
.sl-role { display: inline-block; margin-top: 4px; padding: 1px 9px; border-radius: 999px; background: var(--ai); color: #fff; font: 700 12px/1.8 var(--font-head); }
.sl-why { margin: 4px 0 0; font-size: 13px; line-height: 1.65; color: var(--text); }
.advice { display: grid; gap: 10px; padding: 14px; margin: 4px 0 16px; border-radius: 20px; background: linear-gradient(130deg, #f6f0ff, #fff1f7); box-shadow: inset 0 0 0 1px var(--ai-line); }
.advice__lead { display: grid; gap: 6px; justify-items: start; }
.advice__lead p, .advice.is-busy p { margin: 0; color: var(--muted); font-size: 14px; }
.advice__sum { margin: 0; font-size: 14.5px; line-height: 1.85; }
.advice__plan { margin: 0; font-size: 14px; line-height: 1.8; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.advice__plan b { font-family: var(--font-head); color: var(--ai-ink); }
.advice__tips { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.advice__note { color: var(--dim); font-size: 12px; }
.advice .ai-mark { justify-self: start; }
.ld-form .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ═══ الرئيسية: البحث يفهم الأفكار + "حسب طلبك" ═══ */
.v3-goal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; padding: 12px 14px; border-radius: 22px; background: linear-gradient(120deg, #f4eeff, #ffeef6); box-shadow: inset 0 0 0 1px var(--ai-line); animation: msg-in .4s var(--spring); }
.v3-goal p { flex: 1; min-width: 14em; margin: 0; font-size: 15px; }
.v3-goal b { font-family: var(--font-head); }
.v3-chip--ai { background: var(--ai-soft) !important; color: var(--ai-ink) !important; box-shadow: inset 0 0 0 1.5px var(--ai-line) !important; }
.v3-chip--ai.is-on { background: var(--ai) !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(124, 77, 255, .8) !important; }
.v3-chip--ai .ai-ic { width: 18px; height: 18px; }
.v3-finder__ai { position: absolute; top: -13px; inset-inline-end: 22px; }

/* ═══ صفحة المشهور: "يناسب شغلك؟" ═══ */
.fit-panel { border-color: var(--ai-line) !important; background: linear-gradient(160deg, #fbf8ff, #fff 45%) !important; }
.fit-panel__ask { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer; background: var(--surface); color: var(--ai-ink); font: 700 13.5px var(--font-head); box-shadow: inset 0 0 0 1.5px var(--ai-line); transition: background-color .2s; }
.fit-panel__ask:hover { background: var(--ai-soft); }
.fit-panel__ask .ai-ic { width: 17px; height: 17px; }
.fit-panel .v3-fitbox { padding: 0; background: none; box-shadow: none; }
.fit-panel .v3-fitbox h4 { font-size: 20px; }

@media (max-width: 640px) {
  .chat-launch { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 0; padding: 6px; }
  .chat-launch__txt, .chat-launch__tip { display: none; }
  .chat-launch__ic { width: 50px; height: 50px; }
  .chat { left: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .chat .quick--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-pbar .chat-launch { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .v3-finder__ai { inset-inline-end: 14px; }
  .need-bar__pick { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-ic .spark, .chat-launch__ic, .chat-launch__tip, .tip-bubble { animation: none; }
  .chat { transition: opacity .2s; transform: none; }
}

/* ═══ النماذج (لوحة المشهور والإدارة): عنوان الحقل + أداة يمّه + "اكتبها بالذكاء" ═══ */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.field-head label { margin-bottom: 0 !important; display: inline !important; }
.ai-write { display: grid; gap: 8px; margin-top: -4px; padding: 10px; border-radius: 16px; background: var(--ai-soft); box-shadow: inset 0 0 0 1px var(--ai-line); }
.ai-write textarea { min-height: 64px; }
.ai-write__act { display: flex; gap: 8px; align-items: center; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ai-ink); font: inherit; font-weight: 700; text-decoration: underline dotted; text-underline-offset: 4px; }
.full > .form__msg:empty { display: none; }
.v3-menu__need { margin: 0; text-decoration: none; transition: transform .35s var(--spring); }
.v3-menu__need:hover { transform: translateX(-4px); }
.nf__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
/* "تابعة لمنصة عصفورة" بآخر الصفحة */
.v3-parent a, .ftr__parent a { color: var(--text) !important; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid #ffb3cb; }
.v3-parent a:hover, .ftr__parent a:hover { color: #e8467c !important; }
