/* الدعم الفنّيّ في الموقع */
.sup { max-width: 760px; padding: 10px 0 90px; }
.sup-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.sup-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--mat); color: var(--ink-3); font-weight: 600; font-size: 14px; }
html[dir="rtl"] .sup-steps li { padding: 6px 6px 6px 14px; }
.sup-steps li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.sup-steps li.on { background: var(--ink); color: #fff; }
.sup-steps li.on b { background: var(--red); }
.sup-card { max-width: 520px; }
.sup-phone { display: flex; gap: 6px; }
.sup-phone select { width: auto; max-width: 130px; }
.sup-ended { text-align: center; background: var(--mat); border-radius: 18px; padding: 28px; display: grid; gap: 14px; justify-items: center; }
.sup-chat { border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; height: min(640px, 75vh); background: #fff; }
.sup-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sup-head img { width: 38px; height: 38px; padding: 6px; border-radius: 50%; background: var(--red-tint); }
.sup-head span { flex: 1; display: grid; }
.sup-head small { color: var(--ink-3); font-size: 13px; }
.sup-head .btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.sup-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fafafa; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.6; }
.msg p { white-space: pre-wrap; }
.msg small { display: block; font-size: 12px; font-weight: 600; color: var(--red); }
.msg time { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.msg em { font-style: normal; font-size: 13px; opacity: .8; }
.msg.user { align-self: flex-start; background: var(--ink); color: #fff; border-end-start-radius: 4px; }
html[dir="rtl"] .msg.user { align-self: flex-start; }
.msg.assistant, .msg.agent { align-self: flex-end; background: #fff; border: 1px solid var(--line); border-end-end-radius: 4px; }
.msg.agent { background: var(--red-tint); border-color: transparent; }
.msg.system { align-self: center; background: transparent; color: var(--red); font-size: 13.5px; }
.msg.typing p { color: var(--ink-3); }
.tickets { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.sup-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.sup-chips button { border: 1.5px solid var(--ink); background: #fff; border-radius: 99px; padding: 6px 12px; font: 500 13.5px var(--body); cursor: pointer; }
.sup-chips button:hover { border-color: var(--red); color: var(--red); }
.sup-input { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.sup-input textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; font: 15px var(--body); }
.sup-input textarea:focus { outline: none; border-color: var(--ink); }
.sup-attach { width: 46px; height: 46px; border-radius: 14px; background: var(--mat); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.sup-attach svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.sup-file { font-size: 13px; color: var(--ink-3); padding: 0 16px 10px; margin: 0; }
@media (max-width: 560px) { .sup-input .btn { padding: 0 14px; } .msg { max-width: 92%; } }
