/* ShotBank — style.css : سينما سوداء حقيقية، اللقطات هي البطل */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Inter:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0b; --panel: #141416; --panel2: #1c1c1f;
  --line: #26262a; --line-hi: #35353a;
  --text: #f4f2ec; --dim: #8e8c85;
  --amber: #d9a441; --gold: #d9a441;
  --ivory: #f4f2ec; --red: #e23d2e;
  --t-display: 'Space Grotesk', 'Inter', sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; }
h1 { font-family: var(--t-display); font-weight: 500; letter-spacing: -0.01em; }

/* ─── الهيدر ─── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; row-gap: 6px;
  padding: 12px 28px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(10,10,11,0.85); backdrop-filter: blur(12px); z-index: 20;
}
.brand { font-family: var(--t-display); letter-spacing: 0.16em; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 11px; }
.brand i { font-family: 'IBM Plex Mono', monospace; font-style: normal; font-size: 9.5px; color: var(--dim); letter-spacing: 2.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.top nav { display: flex; gap: 2px; flex-wrap: wrap; }
.top nav a { padding: 7px 13px; border-radius: 8px; font-size: 13px; color: var(--dim); }
.top nav a.on, .top nav a:hover { color: var(--text); background: var(--panel2); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 26px 28px 90px; }
.brand-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--gold); }

/* ─── الهيرو + البحث ─── */
.hero { margin: 34px 0 6px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); margin: 0 0 6px; line-height: 1.05; }
.hero p { color: var(--dim); font-size: 15px; margin: 0; }
.search { display: flex; gap: 9px; margin: 20px 0 8px; }
.search input {
  flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 15px 18px; font-size: 16px; border-radius: 12px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: #5d5c56; }
.search input:focus { border-color: var(--line-hi); box-shadow: 0 0 0 3px rgba(217,164,65,0.12); }
.img-btn {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  width: 54px; cursor: pointer; color: var(--dim);
  display: inline-flex; align-items: center; justify-content: center;
}
.img-btn .ic { width: 20px; height: 20px; display: flex; }
.img-btn .ic svg { width: 100%; height: 100%; }
.img-btn:hover { border-color: var(--line-hi); color: var(--text); }
.search button:not(.img-btn):not(.kf) {
  background: var(--ivory); color: #0a0a0b; border: 0; padding: 0 30px;
  font-size: 14.5px; font-weight: 600; border-radius: 12px; cursor: pointer; font-family: inherit;
}
.status { color: var(--dim); font-size: 13px; margin: 12px 2px 18px; min-height: 18px; }

/* ─── إضافة لينك + الطابور ─── */
.addbar { display: flex; gap: 10px; margin: 10px 0 4px; }
.addbar input {
  flex: 1; background: var(--panel); border: 1px dashed var(--line); color: var(--text);
  padding: 11px 16px; font-size: 13.5px; border-radius: 6px; font-family: inherit; outline: none;
}
.addbar input:focus { border-color: var(--amber); border-style: solid; }
.addbar button {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  padding: 0 22px; font-size: 14px; font-weight: 700; border-radius: 6px; cursor: pointer; font-family: inherit;
}
.addbar button:hover { border-color: var(--amber); color: var(--amber); }
.queue { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 2px; }
.q-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.q-chip { font-family: 'IBM Plex Mono', monospace; font-size: 10px; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.q-pending    { background: var(--panel2); color: var(--dim); }
.q-processing { background: rgba(255,178,36,0.15); color: var(--amber); animation: rec 1.6s infinite; }
.q-done       { background: rgba(70,167,88,0.15); color: #6fd086; }
.q-failed     { background: rgba(229,72,77,0.15); color: var(--red); }
.q-txt { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── زرار المشابه بصرياً ─── */
.more-btn {
  display: block; margin: 0 0 14px; background: transparent; border: 1px dashed var(--line);
  color: var(--dim); padding: 8px 18px; border-radius: 20px; font-size: 12.5px;
  cursor: pointer; font-family: inherit;
}
.more-btn:hover { border-color: var(--amber); color: var(--amber); }
.more-btn:disabled { opacity: 0.6; cursor: wait; }

/* ─── أزرار الأقسام ─── */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.cat {
  background: var(--panel); border: 1px solid var(--line); color: var(--dim);
  padding: 7px 16px; border-radius: 20px; font-size: 13px; cursor: pointer;
  font-family: inherit; transition: all 0.15s;
}
.cat:hover { border-color: var(--amber); color: var(--text); }
.cat.on { background: var(--amber); border-color: var(--amber); color: #1a1509; font-weight: 700; }

/* ─── شبكة اللقطات ─── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.shot-card { cursor: pointer; }
.shot-media {
  position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.shot-media img, .shot-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-media video { opacity: 0; transition: opacity 0.2s; z-index: 2; }
/* اسم الإعلان على الصورة نفسها */
.shot-ad {
  position: absolute; z-index: 4; bottom: 9px; inset-inline-start: 12px; inset-inline-end: 40px;
  font-size: 12.5px; font-weight: 500; color: var(--ivory); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.shot-time, .shot-score {
  position: absolute; top: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  background: rgba(6,6,7,0.7); backdrop-filter: blur(5px); color: #fff; padding: 3px 8px; border-radius: 7px; z-index: 4;
}
.shot-time { inset-inline-start: 8px; }
.shot-score { inset-inline-start: 8px; color: var(--gold); }
/* أيقونة نوع اللقطة — تحت يمين، فوق الـscrim */
.shot-kind {
  position: absolute; bottom: 9px; inset-inline-end: 9px; z-index: 4;
  width: 23px; height: 23px; display: flex; align-items: center; justify-content: center;
  background: rgba(6,6,7,0.55); backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 7px; color: #e9e7e0;
  opacity: .92; transition: opacity .15s;
}
.shot-kind .ic { width: 12px; height: 12px; display: flex; }
.shot-kind .ic svg { width: 100%; height: 100%; }
.shot-kind.k-still { color: #cdb4f6; border-color: rgba(160,120,240,0.3); }
.shot-card:hover .shot-kind { opacity: .4; }
.shot-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.shot-tags i { font-style: normal; font-size: 10px; background: var(--panel2); color: var(--dim); padding: 2px 7px; border-radius: 20px; }

/* ─── شبكة الإعلانات ─── */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.ad-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color 0.15s; }
.ad-card:hover { border-color: var(--amber); }
.ad-thumb { aspect-ratio: 16/9; overflow: hidden; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-body { padding: 12px 14px; }
.ad-title { font-weight: 700; font-size: 14px; line-height: 1.5; }
.ad-meta { color: var(--dim); font-size: 12px; margin-top: 5px; }
.ad-head-left { width: 300px; max-width: 100%; display: flex; flex-direction: column; }
.ad-crew { display: flex; flex-direction: column; margin-top: 14px; }
.ad-crew-h { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--dim); margin-bottom: 6px; }
.crew-i { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: baseline;
  padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--text); }
.crew-i b { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); font-weight: 400; }

/* ─── صفحة الإعلان ─── */
.ad-head { display: flex; gap: 22px; align-items: flex-start; margin: 14px 0 26px; flex-wrap: wrap; }
.ad-head-thumb { width: 300px; max-width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.ad-head-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-head h1 { margin: 8px 0; font-size: 24px; }

/* ─── صوت الإعلان ─── */
.audio-box { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; max-width: 460px; }
.audio-title { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--amber); margin-bottom: 8px; }
.audio-box audio { width: 100%; height: 36px; }
.audio-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 9px; }
.atag { font-style: normal; font-size: 10.5px; background: var(--panel2); color: var(--dim); padding: 3px 9px; border-radius: 20px; }
.adl { margin-top: 0 !important; padding: 5px 12px !important; font-size: 11.5px !important; }

/* ─── أزرار ─── */
.btn {
  display: inline-block; background: var(--amber); color: #1a1509; font-weight: 700;
  padding: 9px 16px; border-radius: 5px; font-size: 13px; margin-top: 10px; border: 1px solid var(--amber);
}
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--amber); }

/* ─── نافذة اللقطة ─── */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.82); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; max-width: 860px; width: 100%; position: relative; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-box video { width: 100%; aspect-ratio: 16/9; background: #000; flex-shrink: 0; max-height: 55vh; object-fit: contain; }
.modal-box .modal-still { width: 100%; aspect-ratio: 16/9; background: #000; flex-shrink: 0; max-height: 55vh; object-fit: contain; display: block; }

/* فلتر النوع: موشن / ستيلز — جنب زرار السيرش (مفيش اختيار = كل حاجة) */
.kindfilter { display: inline-flex; gap: 8px; align-items: center; }
.kindfilter .kf { padding: 8px 16px; border: 1px solid var(--line); background: var(--panel); color: var(--dim);
  border-radius: 999px; cursor: pointer; font-size: 13px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.kindfilter .kf:hover { border-color: var(--amber); color: var(--text); }
.kindfilter .kf.on { background: linear-gradient(180deg,var(--amber-2),var(--amber)); border-color: transparent; color: #241803; font-weight: 700; box-shadow: var(--glow-amber); }
.search .kindfilter { margin: 0; }
.search { align-items: center; flex-wrap: wrap; }
.search input { flex: 1 1 220px; }
.modal-info { overflow-y: auto; overscroll-behavior: contain; }
.modal-info { padding: 16px 20px 22px; }
.modal-title { font-weight: 700; font-size: 16px; }
.modal-meta { color: var(--dim); font-size: 12px; font-family: 'IBM Plex Mono', monospace; margin-top: 4px; }
.modal-desc { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--text); background: var(--panel2); border-inline-start: 3px solid var(--amber); padding: 9px 13px; border-radius: 4px; }
.modal-actions { display: flex; gap: 9px; flex-wrap: wrap; }
/* أزرار نافذة اللقطة — أيقونة + كلمة، شكل نضيف */
.mact { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none;
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); }
.mact .ic { width: 17px; height: 17px; display: inline-flex; flex-shrink: 0; }
.mact .ic svg { width: 100%; height: 100%; }
.mact:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-1px); }
.mact.primary { background: var(--amber); border-color: var(--amber); color: #141310; }
.mact.primary:hover { color: #141310; filter: brightness(1.06); }
.mact.danger { color: var(--red); border-color: rgba(229,72,77,.4); background: transparent; }
.mact.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.modal-close { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(0,0,0,0.6); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }

/* ─── الوسوم ─── */
.tags-edit { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.tags-edit .lbl { font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { background: var(--panel2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; font-size: 12px; display: inline-flex; gap: 8px; align-items: center; }
.tag-go { cursor: pointer; }
.tag-go:hover { color: var(--amber); text-decoration: underline; }
.tag b { cursor: pointer; color: var(--dim); font-weight: 400; }
.tag b:hover { color: var(--red); }
.dim { color: var(--dim); font-size: 12px; }
.tag-form { display: flex; gap: 8px; }
.tag-form input { flex: 1; background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 8px 12px; border-radius: 5px; font-family: inherit; font-size: 13px; }
.tag-form button { background: var(--amber); border: 0; width: 38px; border-radius: 5px; font-size: 17px; cursor: pointer; }

/* ─── البوردات ─── */
.board-thumbs { aspect-ratio: 16/9; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; overflow: hidden; background: var(--panel2); }
.board-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.board-empty { grid-column: span 2; grid-row: span 2; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 12px; }
.board-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 10px 0 6px; }
.board-head h1 { margin: 0; font-size: 26px; }
.board-actions { display: flex; gap: 8px; }
.board-menu {
  position: absolute; z-index: 60; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px; width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.bm-title { font-size: 11px; color: var(--amber); font-family: 'IBM Plex Mono', monospace; letter-spacing: 1px; margin-bottom: 8px; }
.bm-list { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; margin-bottom: 10px; }
.bm-item { text-align: start; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 7px 10px; border-radius: 5px; cursor: pointer; font-family: inherit; font-size: 13px; }
.bm-item:hover { border-color: var(--amber); }
.bm-new { display: flex; gap: 6px; }
.bm-new input { flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 7px 10px; border-radius: 5px; font-family: inherit; font-size: 12.5px; }
.bm-new button { background: var(--amber); border: 0; width: 34px; border-radius: 5px; cursor: pointer; font-weight: 700; }
.modal-actions { position: relative; }

/* ─── عرض التريتمنت ─── */
.treat-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.treat-row { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.treat-num { font-family: 'IBM Plex Mono', monospace; color: var(--amber); font-size: 13px; padding-top: 4px; }
.treat-img { width: 240px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; cursor: pointer; flex-shrink: 0; }
.treat-info { flex: 1; }
.treat-desc { font-size: 14px; line-height: 1.65; }
.treat-meta { color: var(--dim); font-size: 11.5px; margin-top: 7px; font-family: 'IBM Plex Mono', monospace; }
.treat-ctrl { display: flex; flex-direction: column; gap: 5px; }
.treat-ctrl button { background: var(--panel2); border: 1px solid var(--line); color: var(--dim); width: 30px; height: 26px; border-radius: 4px; cursor: pointer; }
.treat-ctrl button:hover { color: var(--amber); border-color: var(--amber); }

/* ─── الباليتة ─── */
.palette { display: flex; gap: 5px; margin-top: 12px; }
.sw { width: 26px; height: 26px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.15); }

/* ─── طباعة التريتمنت (Export PDF) ─── */
.print-only { display: none; }
@media print {
  body { background: #fff; color: #111; }
  .no-print, .top, .status, .treat-ctrl { display: none !important; }
  .print-only { display: block; font-size: 22pt; margin: 0 0 16pt; color: #111; }
  .treat-list { gap: 10pt; }
  .treat-row { background: #fff; border: 1px solid #ddd; break-inside: avoid; }
  .treat-desc { color: #111; }
  .treat-meta { color: #666; }
  .treat-num { color: #b8860b; }
}

/* ─── الفلاتر المتراكبة ─── */
/* بانل الفلاتر — دروَر جانبي شمال (زي غرفة التحكم): مجموعات منظّمة بعناوين مونو */
.filters {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 45;
  width: min(320px, 88vw); overflow-y: auto; overscroll-behavior: contain;
  background: rgba(14,14,16,0.97); backdrop-filter: blur(14px);
  border-inline-end: 1px solid var(--line);
  padding: 14px 18px 30px; margin: 0;
  box-shadow: 24px 0 60px -30px rgba(0,0,0,.8);
  animation: fslide .22s var(--ease);
}
@keyframes fslide { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.f-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(14,14,16,0.97); z-index: 1; }
.f-title { font-family: var(--t-display); font-size: 16px; font-weight: 500; letter-spacing: .04em; flex: 1; }
.f-clear { background: none; border: 0; color: var(--gold); font-size: 12px; cursor: pointer; font-family: inherit; padding: 4px 2px; }
.f-clear:hover { text-decoration: underline; }
.f-close { background: none; border: 0; color: var(--dim); font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: 7px; }
.f-close:hover { color: var(--text); background: var(--panel2); }
.f-group { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 2.2px; color: var(--gold); margin: 16px 0 8px; text-transform: uppercase; }
.f-row { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chip { background: var(--panel2); border: 1px solid var(--line); color: var(--dim); padding: 5px 12px; border-radius: 16px; font-size: 12px; cursor: pointer; font-family: inherit; }
.f-chip:hover { color: var(--text); }
.f-chip.on { background: var(--ivory); color: #0a0a0b; border-color: var(--ivory); font-weight: 600; }
.f-color { display: inline-flex; align-items: center; gap: 6px; }
.dotc { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: inline-block; }

/* ─── صفحة التقنيات ─── */
.tech-group { display: flex; align-items: center; gap: 9px; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 2.5px; color: var(--amber); margin: 26px 0 12px; text-transform: uppercase; }
.tech-group .ic svg { width: 18px; height: 18px; }
.tech-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,178,36,.3), transparent); margin-inline-start: 4px; }
.tech-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tech-tile { display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, var(--panel-hi), transparent), var(--panel);
  border: 1px solid var(--line); color: var(--text); padding: 11px 17px; border-radius: 11px;
  cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 500;
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease); }
.tech-tile b { color: var(--dim); font-weight: 500; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  background: rgba(0,0,0,.22); padding: 2px 8px; border-radius: 20px; transition: color .16s, background .16s; }
.tech-tile:hover { transform: translateY(-2px); border-color: rgba(255,178,36,.55); box-shadow: var(--glow-amber); }
.tech-tile:hover b { color: var(--amber); }
.tech-tile.on { background: linear-gradient(180deg, var(--amber-2), var(--amber)); border-color: transparent;
  color: #241803; box-shadow: var(--glow-amber); }
.tech-tile.on b { background: rgba(0,0,0,.2); color: #241803; }

/* ─── صفحة الموسيقى ─── */
.music-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.music-row { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.music-thumb { width: 130px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.music-info { flex: 1; min-width: 0; }
.music-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.music-info audio { width: 100%; height: 32px; }
.mt-form { margin-top: 8px; max-width: 340px; }
.mt-form input { font-size: 12px !important; padding: 6px 10px !important; }
.mt-form button { width: 32px !important; }
.atag b { cursor: pointer; color: var(--dim); font-weight: 400; }
.atag b:hover { color: var(--red); }

/* ─── مجموعات تاجز الصوت: Music / Voice / SFX ─── */
.agrp-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 7px; }
.agrp-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 8.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber); opacity: 0.8;
  min-width: 46px; padding-top: 6px; flex-shrink: 0;
}
.agrp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.atag.a-music { background: rgba(255,178,36,0.10); border: 1px solid rgba(255,178,36,0.28); color: #e8c780; }
.atag.a-voice { background: transparent; border: 1px solid var(--line); color: var(--text); }
.atag.a-sfx   { background: rgba(111,208,134,0.08); border: 1px solid rgba(111,208,134,0.3); color: #8fd8a0; }

/* فلاتر صفحة الميوزيك — نفس تقسيمة المجموعات */
#moods { flex-direction: column; align-items: flex-start; gap: 7px; }
.mf-row { margin-bottom: 0; width: 100%; }
.mf-music { border-color: rgba(255,178,36,0.3); }
.mf-music:hover, .mf-music.on { background: rgba(255,178,36,0.15); border-color: var(--amber); color: #e8c780; }
.mf-voice:hover, .mf-voice.on { border-color: var(--text); color: var(--text); background: var(--panel2); }
.mf-sfx { border-color: rgba(111,208,134,0.3); }
.mf-sfx:hover, .mf-sfx.on { background: rgba(111,208,134,0.14); border-color: #6fd086; color: #8fd8a0; }
.music-side { display: flex; flex-direction: column; gap: 6px; }

/* أيقونات الكارت: ＋ للألبومات و ≈ للشبيه */
.card-acts { position: absolute; top: 7px; right: 7px; display: flex; gap: 5px; opacity: 0; transition: opacity 0.15s; z-index: 5; }
.shot-card:hover .card-acts { opacity: 1; }
.ca { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,10,10,0.72); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }
.ca .ic { width: 14px; height: 14px; display: flex; }
.ca .ic svg { width: 100%; height: 100%; }
.ca:hover { background: var(--ivory); border-color: var(--ivory); color: #0a0a0b; }
.ca-del:hover { background: var(--red); border-color: var(--red); color: #fff; }
.ca-star.on { background: var(--gold); border-color: var(--gold); color: #0a0a0b; }   /* مثبّت في الهوم */
.ca-star:hover { border-color: var(--gold); color: var(--gold); }
.ca-star.on:hover { color: #0a0a0b; }

/* ─── زرار مسح الإعلان (خطر) ─── */
.btn.danger { border-color: rgba(229,72,77,0.55); color: var(--red); }
.btn.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ─── بوب-أب تأكيد المسح ─── */
.confirm-pop {
  position: fixed; z-index: 400; width: 230px; padding: 13px;
  background: #17150f; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.5);
}
.cp-msg { font-size: 12.5px; line-height: 1.5; color: var(--text); margin-bottom: 11px; }
.cp-btns { display: flex; gap: 8px; justify-content: flex-end; }
.cp-btns button { padding: 7px 14px; font-size: 12px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); }
.cp-no { background: transparent; color: var(--text); }
.cp-no:hover { border-color: var(--amber); }
.cp-yes { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.cp-yes:hover { filter: brightness(1.1); }
.cp-yes:disabled { opacity: 0.6; cursor: default; }

/* ─── تصنيفات الإعلانات بالمود — كل مود بلونه ─── */
.adcats { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.adcat {
  --tint: var(--amber);
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 9px; font-family: inherit; font-size: 13px; color: var(--dim);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.adcat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tint) 55%, transparent); color: var(--text); }
.adcat.on {
  border-color: var(--tint); color: var(--text);
  background: color-mix(in srgb, var(--tint) 12%, var(--panel));
  box-shadow: 0 0 14px color-mix(in srgb, var(--tint) 25%, transparent);
}
.adcat-ic {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: color-mix(in srgb, var(--tint) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 35%, transparent);
}
.adcat-lb { letter-spacing: 0.3px; }
.adcat-n {
  font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 10%, transparent); border-radius: 999px; padding: 2px 8px;
}

/* كروت الألبومات: ⋮ على الكارت — تعديل الاسم أو المسح */
.alb-card { position: relative; }
.alb-kebab { position: absolute; top: 8px; right: 8px; z-index: 4; width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(10,10,10,0.72);
  color: #fff; cursor: pointer; font-size: 15px; line-height: 1; opacity: 0; transition: opacity 0.15s;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.alb-card:hover .alb-kebab { opacity: 1; }
.alb-kebab:hover { border-color: var(--amber); color: var(--amber); }
.kebab-menu { position: absolute; top: 40px; right: 8px; z-index: 60; min-width: 175px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.kebab-menu button { display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-family: inherit; }
.kebab-menu button:hover { background: var(--panel2); }
.kebab-menu .danger { color: var(--red); }
.ad-title[contenteditable="true"] { outline: 1px dashed var(--amber); outline-offset: 3px; border-radius: 6px; background: var(--panel2); cursor: text; }

/* رأس صفحة My Collection */
.page-head { margin: 4px 0 16px; }
.page-sub { color: var(--dim); font-size: 13px; margin: 6px 0 0; max-width: 520px; }

/* صفحة Build Treatment — قريباً */
.coming { text-align: center; padding: 90px 20px 110px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.coming-badge { width: 64px; height: 64px; margin-bottom: 8px; }
.coming-badge svg { width: 30px; height: 30px; }
.coming-title { font-size: 30px; margin: 2px 0 0; letter-spacing: 0.5px; }
.coming-sub { color: var(--dim); font-size: 14px; max-width: 440px; line-height: 1.7; margin: 0; }
.coming-soon { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 4px; color: var(--amber); border: 1px solid rgba(255,178,36,0.3); border-radius: 999px; padding: 7px 18px; margin-top: 14px; }

/* ─── بلاطات الإحصائيات ─── */
.statsbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line);
}
.stile {
  display: flex; align-items: center; gap: 15px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; transition: border-color 0.2s, transform 0.2s;
}
.stile:hover { border-color: rgba(255,178,36,0.5); transform: translateY(-2px); }
.stile-badge {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(255,178,36,0.14), rgba(255,178,36,0.04));
  border: 1px solid rgba(255,178,36,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.stile-badge svg {
  width: 21px; height: 21px; fill: none; stroke: var(--amber);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.stile-val { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; }
.stile-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--dim); margin-top: 5px;
}
.stile.hero {
  grid-column: span 2;
  background:
    radial-gradient(ellipse at top left, rgba(255,178,36,0.08), transparent 55%),
    linear-gradient(135deg, var(--panel) 0%, var(--panel2) 100%);
  border-color: rgba(255,178,36,0.4); position: relative; overflow: hidden;
}
.stile.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent 75%);
}
.stile.hero .stile-badge { width: 56px; height: 56px; border-radius: 14px; }
.stile.hero .stile-badge svg { width: 27px; height: 27px; }
.stile.hero .stile-val { font-size: 44px; color: var(--amber); text-shadow: 0 0 30px rgba(255,178,36,0.25); }
@media (max-width: 640px) { .statsbar { grid-template-columns: repeat(2, 1fr); } }

/* ─── تسجيل الدخول ─── */
.auth-overlay { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 100; }
.auth-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 34px; width: 340px; display: flex; flex-direction: column; gap: 12px; }
.auth-box h2 { margin: 2px 0 8px; font-size: 20px; }
.auth-box input { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 11px 13px; border-radius: 5px; font-family: inherit; font-size: 14px; }
.auth-box button { background: var(--amber); color: #1a1509; border: 0; padding: 12px; border-radius: 5px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.auth-err { color: var(--red); font-size: 12px; min-height: 15px; }
.addbar[hidden] { display: none !important; }   /* خانة إضافة الإعلانات: أدمن بس */
/* بوب-أب رسالة (تأكيد اقتراح لينك…) */
.notice-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(8,8,8,0.8); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; }
.notice-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 30px 34px; max-width: 400px; text-align: center; display: flex; flex-direction: column; gap: 18px; }
.notice-msg { color: var(--text); font-size: 15.5px; line-height: 1.7; }
/* عنوان الإعلان القابل للتعديل (أدمن) */
.editable-title { cursor: text; border-bottom: 1.5px dashed transparent; outline: none; transition: border-color .15s; }
.editable-title:hover { border-bottom-color: var(--line); }
.editable-title:focus { border-bottom-color: var(--amber); }
.auth-overlay { background: rgba(8,8,8,0.82); backdrop-filter: blur(3px); }
.auth-box { position: relative; }
.auth-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; padding: 0;
  background: transparent !important; color: var(--dim) !important; font-size: 15px; border-radius: 7px; }
.auth-x:hover { color: var(--text) !important; background: var(--panel2) !important; }
.auth-switch { font-size: 12.5px; color: var(--dim); text-align: center; }
.auth-switch a { color: var(--amber); cursor: pointer; text-decoration: underline; }
/* شاشة نجاح التسجيل — برتقالي + علامة صح */
.auth-done { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 10px 4px 4px; }
.auth-check { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,178,36,0.14); color: var(--amber); font-size: 30px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--amber); }
.auth-done-msg { color: var(--amber); font-size: 15px; line-height: 1.65; }
.auth-done-msg b { color: var(--text); }
.auth-back { width: 100%; margin-top: 4px; }
/* لينك الدخول/الأدمن في شريط التنقل */
.auth-nav { margin-inline-start: auto; display: inline-flex; gap: 16px; align-items: center; }
.auth-nav .auth-act { cursor: pointer; }
/* زرار اقتراح لينك عائم — عاجي، هادي وواضح */
.suggest-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ivory); color: #0a0a0b;
  border: 0; border-radius: 30px; padding: 13px 20px; font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.7);
  transition: transform .18s var(--ease); }
.suggest-fab .ic { width: 16px; height: 16px; display: flex; color: #9a6b17; }
.suggest-fab .ic svg { width: 100%; height: 100%; }
.suggest-fab:hover { transform: translateY(-2px); }
/* skeleton — وميض خافت لحد ما الصورة توصل */
@keyframes sk { 0% { opacity: .5; } 50% { opacity: 1; } 100% { opacity: .5; } }
.shot-media::before { content: ""; position: absolute; inset: 0; background: var(--panel2); animation: sk 1.6s ease-in-out infinite; }
.shot-media img { position: absolute; z-index: 1; }
@media (max-width: 640px) { .suggest-fab { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 13px; } }

/* منع أي تمدّد أفقي للصفحة كلها (clip مش hidden عشان الهيدر sticky يفضل شغّال) */
html, body { overflow-x: clip; max-width: 100%; }
img, video { max-width: 100%; }

@media (max-width: 640px) {
  .wrap { padding: 8px 12px 70px; max-width: 100%; }
  .search { margin-top: 6px; }
  /* عمودين يتّسعوا للشاشة بالظبط (minmax(0,1fr) بيمنع تمدّد الجريد) */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  /* هيدر مدمج — كل روابط التنقل تلفّ وتتشاف (مفيش تخبية/سكرول) */
  .top { padding: 9px 12px; gap: 6px; }
  .brand { font-size: 16px; letter-spacing: 2.5px; }
  .brand i { display: none; }
  .top nav { flex-wrap: wrap; width: 100%; gap: 3px 4px; }
  .top nav a { padding: 6px 9px; font-size: 12.5px; }
  .auth-nav { margin-inline-start: 0; gap: 12px; }
  /* البحث + الأزرار */
  .search { gap: 7px; }
  .search input { min-width: 0; }
  .btn { padding: 10px 14px; font-size: 13px; }
  /* شرائط الفلاتر تلفّ — كل حاجة ظاهرة، مفيش حركة يمين */
  .kindfilter, .cats, .adcats, .soundfilter, .tech-row, .filters { flex-wrap: wrap; }
  /* الإعلانات عمود واحد */
  .ads-grid { grid-template-columns: 1fr; }
  /* نافذة اللقطة full-width + الأزرار تملا العرض */
  .modal { padding: 10px; }
  .modal-box { max-width: 100%; max-height: 94vh; }
  .modal-info { padding: 16px 15px 20px; }
  .modal-title { font-size: 16px; }
  .modal-actions .mact { flex: 1 1 44%; justify-content: center; }
  /* بوب-أب الدخول والتأكيد يتّسعوا للشاشة */
  .auth-box { width: min(92vw, 360px); padding: 26px 22px; }
  .confirm-pop { width: min(86vw, 250px); }
  h1 { font-size: 26px; }
}

/* أقسام صفحة الإعلان: موشن / ستيلز */
.sections { display: flex; flex-direction: column; gap: 8px; }
.sec-head { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber); margin: 22px 2px 4px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line); }
.sec-head:first-child { margin-top: 4px; }

/* فلتر نوع الصوت (Music / Voice+Music / Voice-over) — صفحة الميوزك */
.soundfilter { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.sfbtn { background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 8px; transition: all .15s; }
.sfbtn:hover { border-color: var(--amber); }
.sfbtn.on { background: var(--amber); border-color: var(--amber); color: #1a1509; font-weight: 700; }
.sfbtn .sfn { font-family: 'IBM Plex Mono', monospace; font-size: 11px; opacity: .7;
  background: rgba(0,0,0,.12); padding: 1px 7px; border-radius: 20px; }
.sfbtn.on .sfn { background: rgba(0,0,0,.18); opacity: .85; }

/* ═══════════════════════════════════════════════════════════
   2026 CINEMATIC POLISH — أزرار وكنترولز بروح غرفة المونتاج
   ═══════════════════════════════════════════════════════════ */
:root{
  --amber-2:#e4b95e;                              /* ذهبي أفتح — للهوفر النصّي */
  --ease:cubic-bezier(.2,.75,.25,1);
  --r:10px;
  --ring-gold:0 0 0 1px rgba(217,164,65,.35);
  --panel-hi:rgba(255,255,255,.03);
}

/* الزرار الأساسي — عاجي صريح على الأسود: توقيع الفخامة، بلا تدرّج ولا توهّج */
.btn, .search button:not(.img-btn):not(.kf), .addbar button{
  border:1px solid transparent; border-radius:var(--r);
  font-weight:600; letter-spacing:.1px; cursor:pointer; font-family:inherit;
  background:var(--ivory); color:#0a0a0b;
  transition:transform .18s var(--ease), box-shadow .2s var(--ease),
             background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), filter .18s var(--ease);
}
.btn{ padding:10px 20px; font-size:13px; }
.btn:hover, .search button:not(.img-btn):not(.kf):hover, .addbar button:hover:not(.ghost){
  transform:translateY(-1px); filter:brightness(1.05);
  box-shadow:0 8px 24px -10px rgba(0,0,0,.8);
}
.btn:active, .search button:not(.img-btn):not(.kf):active{ transform:translateY(0); filter:brightness(.96); }

/* الزرار الشبح — هيرلاين هادي، حد ذهبي رقيق عند الهوفر */
.btn.ghost, .addbar button{
  background:var(--panel-hi); color:var(--text);
  border-color:var(--line); box-shadow:none;
}
.btn.ghost:hover, .addbar button:hover{
  border-color:var(--gold); color:var(--text); background:var(--panel2);
  transform:translateY(-1px);
}
.img-btn{ transition:border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.img-btn:hover{ transform:translateY(-1px); }

/* البحث — فوكس بهالة ذهبية خافتة جداً */
.addbar input:focus{
  border-color:var(--line-hi);
  box-shadow:0 0 0 3px rgba(217,164,65,.1);
}

/* Load more — بيل موسّط هادي يتحوّل عاجي */
.more-btn{
  display:block; width:auto; margin:26px auto; padding:12px 30px; border-radius:999px;
  background:var(--panel-hi); border:1px solid var(--line); color:var(--dim);
  font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:2.5px; text-transform:uppercase;
  cursor:pointer;
  transition:color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease),
             transform .2s var(--ease);
}
.more-btn:hover{
  color:#0a0a0b; background:var(--ivory);
  border-color:transparent; transform:translateY(-1px);
}

/* بيلز الفلاتر — هادية، والمختار عاجي صريح */
.cat, .sfbtn, .kf, .f-chip{
  transition:transform .16s var(--ease), background .16s var(--ease),
             border-color .16s var(--ease), color .16s var(--ease);
}
.cat:hover, .kf:hover, .f-chip:hover, .sfbtn:hover{ transform:translateY(-1px); border-color:var(--line-hi); }
.cat.on, .kf.on, .sfbtn.on{
  background:var(--ivory); border-color:transparent;
  color:#0a0a0b; font-weight:600;
}
.adcat{ transition:transform .16s var(--ease), border-color .16s var(--ease); }
.adcat:hover{ transform:translateY(-1px); }
.adcat.on{ border-color:var(--tint, var(--gold)); }

/* كروت اللقطات + الإعلانات — رفعة ناعمة وظل عميق */
.shot-media{ transition:border-color .18s var(--ease), box-shadow .18s var(--ease); }
.shot-card{ transition:transform .18s var(--ease); }
.shot-card:hover{ transform:translateY(-3px); }
.shot-card:hover .shot-media{ border-color:var(--line-hi); box-shadow:0 14px 36px -14px rgba(0,0,0,.85); }
.ad-card{ transition:transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.ad-card:hover{ transform:translateY(-3px); border-color:var(--line-hi); box-shadow:0 14px 36px -16px rgba(0,0,0,.85); }

/* روابط النڤ — إحساس أنعم */
.top nav a{ transition:color .16s var(--ease), background .16s var(--ease); }

@media (prefers-reduced-motion:reduce){
  .btn,.more-btn,.cat,.sfbtn,.kf,.f-chip,.shot-card,.ad-card,.adcat,.img-btn{ transition:none !important; }
  .btn:hover,.more-btn:hover,.shot-card:hover,.ad-card:hover{ transform:none !important; }
}

/* أيقونات SVG المخصوصة — تاخد لون النص وتتحرّك معاه */
.ic{ display:inline-flex; align-items:center; justify-content:center; flex:none; }
.ic svg{ width:18px; height:18px; display:block; }
.sfbtn .ic svg{ width:19px; height:19px; }
.adcat .ic svg{ width:19px; height:19px; }
.kf .ic svg{ width:17px; height:17px; }

/* محاذاة الأيقونة + النص جوه أزرار الفلاتر */
.kf, .sfbtn { display:inline-flex; align-items:center; gap:8px; }
.kf .ic svg { width:17px; height:17px; }
.adcat-ic { display:inline-flex; align-items:center; }
.adcat-ic svg { width:20px; height:20px; display:block; }

/* دروب-داون الإكمال التلقائي للبحث */
.ac-drop{ position:fixed; z-index:60; background:var(--panel); border:1px solid var(--line);
  border-radius:12px; padding:5px; box-shadow:0 18px 44px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(255,178,36,.1); }
.ac-drop[hidden]{ display:none; }
.ac-item{ padding:9px 13px; border-radius:8px; font-size:14.5px; color:var(--dim); cursor:pointer; transition:background .12s, color .12s; }
.ac-item b{ color:var(--amber); font-weight:700; }
.ac-item:hover, .ac-item.on{ background:var(--panel2); color:var(--text); }
.r-th.in::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 7px;
  width: 21px; height: 21px; border-radius: 50%; background: #2f9e5f; color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; }
/* شارة NEW الصغيرة المضيئة — فوق أداة جديدة في القايمة */
.nu { font-size: 8px; font-weight: 700; letter-spacing: 1.2px; color: #4da3ff;
  text-shadow: 0 0 9px rgba(77,163,255,.9); vertical-align: super; margin-inline-start: 4px;
  animation: nupulse 2.2s ease-in-out infinite; }
@keyframes nupulse { 50% { opacity: .55; } }
/* زرار البريفيو — الأدمن بيشوف الموقع بعين اليوزر؛ لما يكون شغال بيبقى دهبي واضح */
.preview-t { border: 1px solid var(--line-hi); border-radius: 999px; padding: 5px 13px !important; }
.preview-t.on { background: var(--gold); color: #141210 !important; border-color: var(--gold); font-weight: 700; }
/* ☰ قايمة الموبايل — بتظهر تحت 880px بدل الأقسام المزحومة */
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); padding: 8px 10px; cursor: pointer; align-items: center; }
@media (max-width: 880px) {
  .top nav { display: none !important; }
  .burger { display: flex; }
}
.mob-menu { position: fixed; inset: 0; z-index: 220; background: rgba(8,8,9,.97);
  display: flex; flex-direction: column; padding: 22px 26px; overflow-y: auto; }
.mob-x { align-self: flex-end; background: none; border: 0; color: var(--dim); font-size: 22px;
  cursor: pointer; padding: 6px 10px; }
.mob-x:hover { color: var(--text); }
.mob-links { display: flex; flex-direction: column; margin-top: 10px; }
.mob-links a { font-size: 21px; font-weight: 650; color: var(--text); text-decoration: none;
  padding: 14px 6px; border-bottom: 1px solid var(--line); }
.mob-links a.on { color: var(--gold); }
.mob-links a .nu { vertical-align: super; }
.mob-auth { display: flex; gap: 10px; margin-top: 22px; }
.mob-auth .btn { flex: 1; }
