/* «الرسائل الإعلانية» (القدرة ads) — أعلى المحادثات، «مُموَّل» في الساحة، صفحة الإعلان، وشاشات المدير (.adm-).
   الهدوء أولاً: لون ذهبي خافت من شعار «أويس» للشارة والحلقة، دخول بتمدّد ناعم ولمعة واحدة، وحلقة تتنفّس ببطء (3.6 ث).
   لا شيء يومض ولا يتحرّك بلا توقّف إلا الحلقة، وكلها تقف مع prefers-reduced-motion. */

:root { --ad-gold: #B8901F; --ad-gold-soft: color-mix(in srgb, #C9A227 14%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ad-gold: #E2BE55; } }
:root[data-theme="dark"] { --ad-gold: #E2BE55; }

.ad-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: .2px; color: var(--ad-gold); background: var(--ad-gold-soft);
}
.ad-tag-muted { color: var(--fg-3); background: var(--bg-2); }
.ad-x {
  flex: none; width: 32px; height: 32px; margin: -6px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--fg-3); cursor: pointer;
}
.ad-x .icon-svg { width: 16px; height: 16px; }
.ad-x:active { background: var(--bg-2); }

/* ─── أعلى قائمة المحادثات ─── */
.ad-slot { padding: 2px 12px 8px; overflow: hidden; }
.ad-slot[hidden] { display: none; }
.chats-selecting .ad-slot { display: none; }
.ad-banner {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; overflow: hidden;
  border-radius: var(--r-lg); cursor: pointer; -webkit-tap-highlight-color: transparent;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, #C9A227 7%, transparent)),
    var(--bg-elev);
  border: 1px solid color-mix(in srgb, var(--ad-gold) 22%, var(--sep));
  box-shadow: 0 1px 2px rgba(10, 20, 40, .04);
  transition: transform var(--dur-1, 120ms) var(--ease, ease), box-shadow var(--dur-1, 120ms);
}
.ad-banner:active { transform: scale(.985); }
.ad-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ad-b-av { position: relative; flex: none; }
.ad-b-av .av { --sz: 46px; width: 46px; height: 46px; }
.ad-b-av::after {                       /* الحلقة تتنفّس */
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--ad-gold);
  opacity: .55; animation: ad-breathe 3.6s ease-in-out infinite;
}
.ad-b-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ad-b-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ad-b-name { font-size: 13px; color: var(--fg-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-b-title { font-weight: 700; color: var(--fg); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-b-text { font-size: 13px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-b-cta {
  flex: none; display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 10px 0 6px; border-radius: 15px;
  font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); max-width: 40%;
}
.ad-b-cta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-b-cta .icon-svg { width: 15px; height: 15px; flex: none; }
.ad-banner .ad-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; margin: 0; opacity: .7; }
.ad-banner .ad-x .icon-svg { width: 13px; height: 13px; }
.ad-banner .ad-b-cta { margin-inline-end: 14px; }
.ad-sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(110%);
}
[dir="rtl"] .ad-sheen { transform: translateX(-110%); }
.ad-in { animation: ad-grow 420ms cubic-bezier(.2, .8, .2, 1) both; }
.ad-in .ad-sheen { animation: ad-sheen 1300ms 450ms ease-out 1 both; }
[dir="rtl"] .ad-in .ad-sheen { animation-name: ad-sheen-rtl; }
@keyframes ad-grow { from { opacity: 0; transform: translateY(-6px); max-height: 0; } to { opacity: 1; transform: none; max-height: 140px; } }
@keyframes ad-sheen { 0% { opacity: 0; transform: translateX(-110%); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(110%); } }
@keyframes ad-sheen-rtl { 0% { opacity: 0; transform: translateX(110%); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(-110%); } }
@keyframes ad-breathe { 0%, 100% { opacity: .25; transform: scale(1); } 50% { opacity: .7; transform: scale(1.06); } }

/* ─── «مُموَّل» في الساحة ─── */
.ad-scard {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--sep);
  background: linear-gradient(180deg, color-mix(in srgb, #C9A227 5%, transparent), transparent 70%);
  -webkit-tap-highlight-color: transparent;
}
.ad-scard:active { background: var(--bg-2); }
.ad-scard:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ad-s-av { flex: none; position: relative; }
.ad-s-av .av { --sz: 40px; width: 40px; height: 40px; }
.ad-s-av::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--ad-gold); opacity: .45; }
.ad-s-main { flex: 1; min-width: 0; }
.ad-s-head { display: flex; align-items: center; gap: 6px; min-height: 24px; min-width: 0; }
.ad-s-name { font-weight: 700; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.ad-s-user { color: var(--fg-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1000 auto; }
.ad-s-head .ad-x { margin-inline-start: auto; }
.ad-s-title { font-weight: 700; margin-top: 4px; color: var(--fg); }
.ad-s-text { color: var(--fg-2); margin-top: 2px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.ad-s-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ad-s-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-3); font-size: 12.5px; min-width: 0; }
.ad-s-hint .icon-svg { width: 15px; height: 15px; flex: none; }
.ad-s-hint span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-s-cta {
  flex: none; display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 12px 0 8px; border-radius: 16px;
  font-size: 13px; font-weight: 700; color: var(--accent-fg); background: var(--accent);
}
.ad-s-cta .icon-svg { width: 15px; height: 15px; }

/* ─── صفحة الإعلان ─── */
.ad-screen { padding-bottom: calc(96px + var(--bottom-inset, 0px)); }
.ad-page { max-width: 640px; margin: 0 auto; }
.ad-preview-note {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 16px 0; padding: 8px 12px;
  border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
}
.ad-preview-note .icon-svg { width: 16px; height: 16px; }
.ad-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px 10px; text-align: center; }
.ad-hero-av { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; margin-bottom: 6px; cursor: pointer; }
.ad-hero-av .av { --sz: 88px; width: 88px; height: 88px; font-size: 34px; }
.ad-ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ad-gold); opacity: .55; animation: ad-breathe 3.6s ease-in-out infinite; }
.ad-hero-name { font-size: 20px; font-weight: 800; color: var(--fg); }
.ad-hero-user { color: var(--fg-3); font-size: 14px; }
.ad-hero-tags { display: flex; gap: 6px; margin-top: 4px; }
.ad-hero-btn { margin-top: 10px; }
.ad-thread { padding: 8px 16px 4px; display: flex; }
.ad-msg {
  position: relative; max-width: 92%; padding: 12px 14px 10px; border-radius: 18px; border-start-start-radius: 6px;
  background: var(--bubble-in, var(--bg-elev)); color: var(--bubble-in-fg, var(--fg));
  box-shadow: 0 1px 1.5px rgba(10, 20, 40, .08); animation: ad-pop 380ms cubic-bezier(.2, .8, .2, 1) both;
}
.ad-msg-title { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.ad-msg-text { white-space: pre-line; line-height: 1.65; }
.ad-msg-meta { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--ad-gold); font-weight: 600; }
.ad-msg-meta .icon-svg { width: 14px; height: 14px; }
@keyframes ad-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ad-sec { margin-top: 14px; }
.ad-chan {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px; padding: 12px 14px; text-align: start;
  border: 1px solid var(--sep); border-radius: var(--r-lg); background: var(--bg-elev); color: var(--fg); cursor: pointer;
}
.ad-chan:active { background: var(--bg-2); }
.ad-chan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-chan-sub { font-size: 13px; color: var(--fg-3); }
.ad-chan-desc { font-size: 13px; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-post { border-top: 1px solid var(--sep); }
.ad-post-plain { margin: 0 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-elev); white-space: pre-line; }
.ad-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 18px 16px 8px; color: var(--fg-3); font-size: 12.5px; }
.ad-note .icon-svg { width: 15px; height: 15px; }
.ad-note-hide { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; padding: 4px 2px; cursor: pointer; }
.ad-cta-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 5; padding: 10px 16px calc(10px + var(--bottom-inset, 0px));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.ad-cta { max-width: 608px; margin: 0 auto; gap: 4px; }
.ad-cta .icon-svg { width: 18px; height: 18px; }
.ad-gone { padding: 48px 16px; }
.ad-gone-act { display: flex; justify-content: center; margin-top: 8px; }
.ad-skel { gap: 10px; }
.ad-skel-av { width: 88px; height: 88px; border-radius: 50%; }
.ad-skel-l { width: 160px; height: 16px; border-radius: 8px; }
.ad-skel-s { width: 100px; height: 12px; border-radius: 6px; }
.ad-skel-p { width: 240px; height: 40px; border-radius: 10px; margin-top: 8px; }
.ad-msg.ad-skel { display: flex; flex-direction: column; margin: 8px 16px; background: var(--bg-elev); animation: none; }

/* ─── المدير ─── */
.adm-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; flex: none; }
.adm-ok { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.adm-warn { color: var(--warning); background: color-mix(in srgb, var(--warning) 16%, transparent); }
.adm-accent { color: var(--accent); background: var(--accent-soft); }
.adm-muted { color: var(--fg-3); background: var(--bg-2); }
.adm-intro-ic { background: linear-gradient(135deg, #1E3A6E, #C9A227) !important; }
.adm-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 16px 4px; }
.adm-sum > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r-md); background: var(--bg-elev); }
.adm-sum b { font-size: 18px; font-variant-numeric: tabular-nums; }
.adm-sum small { font-size: 11.5px; color: var(--fg-3); }
.adm-row-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-row-t > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.adm-row-s { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.adm-row-s .icon-svg { width: 13px; height: 13px; opacity: .7; }
.adm-head { display: flex; align-items: center; gap: 8px; margin: 14px 16px 6px; color: var(--fg-3); font-size: 13px; }
.adm-preview { margin: 0 12px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--sep); background: var(--bg-elev); pointer-events: none; }
.adm-preview .ad-scard { border-bottom: 0; }
.adm-preview .ad-x { visibility: hidden; }
.adm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 16px 4px; }
.adm-stat { padding: 12px; border-radius: var(--r-md); background: var(--bg-elev); display: flex; flex-direction: column; gap: 6px; }
.adm-stat-h { display: flex; align-items: center; gap: 6px; color: var(--fg-3); font-size: 12.5px; font-weight: 600; }
.adm-stat-h .icon-svg { width: 16px; height: 16px; color: var(--c); }
.adm-stat-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--fg); }
.adm-stat-v small { font-size: 12px; font-weight: 600; color: var(--fg-3); }
.adm-stat-sub { font-size: 12px; color: var(--fg-3); }
.adm-bar { display: flex; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.adm-bar i { flex: none; height: 100%; border-radius: 3px; background: var(--c); transition: width 600ms var(--ease, ease); }
.adm .set-tm-count { margin-inline-start: 6px; }
.adm-danger .item-title { color: var(--danger); }
.adm-ta { min-height: 96px; resize: vertical; line-height: 1.6; }
.adm-count { text-align: end; font-variant-numeric: tabular-nums; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .adm-two { grid-template-columns: 1fr; } }
.adm-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-chips .chip.on { background: var(--accent); color: var(--accent-fg); }
.adm-err { margin: 10px 16px 0; }
.adm-pick { margin-top: 8px; }
select.input { appearance: auto; }

/* ─── 1.12: علامة التوثيق، ساعات الظهور، لمن يظهر، «إعلاناتي»، أرقام إعلانك ─── */
.ad-b-top .vbadge, .ad-s-head .vbadge { margin-inline-start: -2px; }
.ad-hero-name { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; }
.ad-chan-main b { display: inline-flex; align-items: center; min-width: 0; }
.adm-row-adv { display: inline-flex; align-items: center; }
.adm-row-adv .vbadge { margin-inline-start: 3px; }
.adm .set-kv .item-value { white-space: normal; max-width: 64%; line-height: 1.45; }
.adm [data-act].busy { opacity: .55; pointer-events: none; }
.adm-hint-bad { color: var(--danger); }
.adm-aud { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
.adm-aud-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.adm-aud-chip {
  display: inline-flex; align-items: center; gap: 2px; height: 30px; max-width: 100%; padding-inline: 12px 3px; border-radius: 15px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
}
.adm-aud-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-aud-chip button {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer;
}
.adm-aud-chip button:active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.adm-aud-chip .icon-svg { width: 13px; height: 13px; }
.adm-aud-empty { color: var(--fg-3); font-size: 13px; }
.adm-aud-sheet .item-title { display: flex; align-items: center; min-width: 0; }
.adm-aud-sheet .pick-foot .btn .badge { background: var(--accent-fg); color: var(--accent); }
.adm-aud-sheet .item-title > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* أرقام إعلانك (صفحة الإعلان، للمعلن والمدير) */
.ad-stats-card { margin: 0 16px; padding: 12px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--sep); }
.ad-stats-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--fg-3); font-size: 13px; }
.ad-stats-card .adm-stats { margin: 10px 0 0; }
.ad-stats-card .adm-stat { background: var(--bg-2); }
.ad-stats-card .adm-bar { background: var(--bg-elev); }
.ad-stats-note { margin-top: 10px; font-size: 12px; color: var(--fg-3); }

/* «إعلاناتي» */
.mine-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 16px; }
.mine-card {
  display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 12px 14px; text-align: start; font: inherit;
  border: 1px solid var(--sep); border-radius: var(--r-lg); background: var(--bg-elev); color: var(--fg); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mine-card:active { background: var(--bg-2); }
.mine-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mine-av { flex: none; }
.mine-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mine-tt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-tt small { display: inline-flex; align-items: center; flex-wrap: wrap; color: var(--fg-3); font-size: 12.5px; }
.mine-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mine-nums > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mine-nums small { display: inline-flex; align-items: center; gap: 3px; color: var(--fg-3); font-size: 11.5px; white-space: nowrap; }
.mine-nums small .icon-svg { width: 13px; height: 13px; flex: none; }
.mine-nums b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mine-nums i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--fg-3); }
.mine-nums .adm-bar { height: 4px; }
.mine-done { font-size: 12px; color: var(--fg-3); }

/* ─── 1.20: لوحة المعلن — الصورة، «إعلاناتي» بأقسامها، إعلاني، النموذج، المراجعة ─── */
.adm-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.ad-img { position: relative; display: block; overflow: hidden; background: var(--bg-2); }
.ad-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-img-in img { animation: ad-fade 260ms ease-out both; }
@keyframes ad-fade { from { opacity: 0; } to { opacity: 1; } }
.ad-b-img { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.ad-s-img { margin-top: 10px; border-radius: var(--r-md); aspect-ratio: var(--ar, 1.6); max-height: 320px; border: 1px solid var(--sep); }
.mine-img { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.ad-hero-img { margin: 4px 16px 0; border-radius: var(--r-lg); aspect-ratio: var(--ar, 1.6); max-height: 360px; border: 1px solid var(--sep); }
.ad-pv-where { display: flex; align-items: center; gap: 6px; margin: 10px 4px 6px; color: var(--fg-3); font-size: 12.5px; font-weight: 600; }
.ad-pv-where .icon-svg { width: 14px; height: 14px; }
.ad-pv-chat, .ad-pv-saha { pointer-events: none; border-radius: var(--r-lg); overflow: hidden; }
.ad-pv-saha { border: 1px solid var(--sep); background: var(--bg-elev); }
.ad-pv-saha .ad-scard { border-bottom: 0; }
.ad-pv-chat .ad-x, .ad-pv-saha .ad-x { visibility: hidden; }
.ade-preview { margin: 0 12px; }
.ade-pv-none { padding: 14px; text-align: center; color: var(--fg-3); font-size: 13px; }
.ade-help { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.ade-img { display: flex; align-items: center; gap: 12px; }
.ade-img-pv {
  flex: none; width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  background: var(--bg-2); color: var(--fg-3); border: 1px dashed color-mix(in srgb, var(--fg-3) 40%, transparent);
}
.ade-img.has .ade-img-pv { border-style: solid; border-color: var(--sep); }
.ade-img-pv img { width: 100%; height: 100%; object-fit: cover; }
.ade-img-pv .icon-svg { width: 26px; height: 26px; }
.ade-img-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ade-img.busy .ade-img-pv { opacity: .5; }
.ade-img.busy .ade-img-acts { opacity: .55; pointer-events: none; }
.ade-actions { display: flex; flex-direction: column; gap: 8px; }
.ade-actions .btn.busy, .adm .btn.busy { opacity: .6; pointer-events: none; }
.adm-aud .chip.on { background: var(--accent); color: var(--accent-fg); }
.ade-rules { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ade-rules li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
.ade-rules .icon-svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--success); }
.ade-rules li:nth-child(n+4) .icon-svg { color: var(--danger); }

/* «إعلاناتي» */
.mine-new {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 12px 16px 4px; padding: 12px 14px; text-align: start;
  font: inherit; color: var(--fg); cursor: pointer; border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--ad-gold) 30%, var(--sep));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, #C9A227 10%, transparent)), var(--bg-elev);
}
.mine-new:active { transform: scale(.99); }
.mine-new-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1E3A6E, #C9A227); }
.mine-new-ic .icon-svg { width: 22px; height: 22px; }
.mine-new-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mine-new-t small { color: var(--fg-3); font-size: 12.5px; }
.mine-new .chev { width: 18px; height: 18px; color: var(--fg-3); }
.mine-elig { display: flex; align-items: flex-start; gap: 8px; margin: 12px 16px 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-elev); color: var(--fg-2); font-size: 13px; line-height: 1.55; }
.mine-elig .icon-svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--fg-3); }
.mine-tabs { display: flex; gap: 6px; margin: 12px 16px 0; overflow-x: auto; scrollbar-width: none; }
.mine-tabs::-webkit-scrollbar { display: none; }
.mine-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; border: 0;
  background: var(--bg-2); color: var(--fg-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.mine-tab.on { background: var(--accent); color: var(--accent-fg); }
.mine-tab-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; display: inline-grid; place-items: center; background: color-mix(in srgb, currentColor 16%, transparent); font-variant-numeric: tabular-nums; }
.mine-empty { padding-top: 28px; }
.mine-note { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--fg-3); line-height: 1.5; }
.mine-note .icon-svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.mine-note span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mine-note-bad { color: var(--danger); }

/* إعلاني برقمه */
.mad-banner { display: flex; align-items: flex-start; gap: 10px; margin: 6px 16px 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--sep); }
.mad-banner > .icon-svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--fg-3); }
.mad-banner b { display: block; margin-bottom: 2px; }
.mad-banner p { margin: 0; color: var(--fg-2); font-size: 13.5px; line-height: 1.6; white-space: pre-line; }
.mad-banner .btn { margin-top: 10px; }
.mad-bad { border-color: color-mix(in srgb, var(--danger) 35%, var(--sep)); background: color-mix(in srgb, var(--danger) 6%, var(--bg-elev)); }
.mad-bad > .icon-svg { color: var(--danger); }
.mad-accent > .icon-svg { color: var(--accent); }
.mad-warn > .icon-svg { color: var(--warning); }
.mad-chart { margin: 0 16px; padding: 12px; border-radius: var(--r-lg); background: var(--bg-elev); }
.mad-bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.mad-day { position: relative; flex: 1; height: 100%; }
.mad-day i { position: absolute; inset-inline: 0; bottom: 0; border-radius: 2px 2px 0 0; }
.mad-day .mad-v { inset-inline: 22%; }
.mad-r { background: color-mix(in srgb, #2F6FED 24%, transparent); }
.mad-v { background: #12A150; }
.mad-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--fg-3); font-size: 11.5px; }
.mad-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--fg-3); }
.mad-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mad-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* المدير: المراجعة والإعدادات */
.adm-seg { margin: 12px 16px 0; }
.adm-seg-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-inline-start: 6px; border-radius: 9px; font-size: 11px; background: var(--danger); color: #fff; font-variant-numeric: tabular-nums; }
.adm-review { margin: 0 16px; padding: 12px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--sep)); display: flex; flex-direction: column; gap: 10px; }
.adm-review-h { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.adm-review-h .icon-svg { width: 18px; height: 18px; color: var(--accent); }
.adm-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-flag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.adm-flag.hot { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.adm-flag.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.adm-review-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-review-note { font-size: 12.5px; color: var(--fg-3); line-height: 1.55; }
.adm-reject-sheet textarea { width: 100%; min-height: 110px; margin-top: 10px; }
.adm-sheet-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.adm-sheet-form .seg { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .ad-b-av::after, .ad-ring { animation: none; }
  .ad-in, .ad-in .ad-sheen, .ad-msg, .ad-img-in img { animation: none; }
}
