/* ═══════════ مارلين ستور — نظام العلاقات العامة ═══════════ */
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url('/brand/tajawal-400.woff2') format('woff2'); }
@font-face { font-family: 'Tajawal'; font-weight: 500; font-display: swap; src: url('/brand/tajawal-500.woff2') format('woff2'); }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap; src: url('/brand/tajawal-700.woff2') format('woff2'); }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap; src: url('/brand/tajawal-800.woff2') format('woff2'); }

:root {
  --ink: #34232d;
  --muted: #786771;
  --faint: #9d8b94;
  --rose: #a82b60;
  --rose-dark: #8d214e;
  --pink: #e8338f;
  --bg: #faf6f3;
  --blush: #f4e4e6;
  --soft: #fbf0f4;
  --soft-line: #f2dee7;
  --line: #f0e6e3;
  --line-2: #dfd0d7;
  --card: #fff;
  --cream: #fffaf1;
  --ok: #2f7d5b;
  --ok-bg: #eaf6ef;
  --warn: #9a6512;
  --warn-bg: #fdf3df;
  --bad: #b42335;
  --bad-bg: #fcebee;
  --info: #3d5a99;
  --info-bg: #ecf0fa;
  --gray-bg: #f2eff0;
  --radius: 22px;
  --shadow: 0 20px 80px #5b173508;
  --shadow-2: 0 10px 30px #5b17351a;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Tajawal, 'Segoe UI', Tahoma, sans-serif; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── الأزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px 10px; border: 1px solid transparent; border-radius: 12px;
  background: var(--rose); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2;
  box-shadow: 0 6px 14px #a82b6016; transition: background .15s, transform .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--rose-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.lg { min-height: 56px; padding-inline: 30px; font-size: 17px; border-radius: 14px; }
.btn.sm { min-height: 36px; padding: 7px 14px 5px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn.xs { min-height: 30px; padding: 5px 10px 3px; font-size: 12px; border-radius: 8px; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--rose); color: var(--rose); background: #fff; }
.btn.soft { background: var(--soft); color: var(--rose); border-color: var(--soft-line); box-shadow: none; }
.btn.soft:hover { background: #f8e3ec; }
.btn.ok { background: var(--ok); }
.btn.ok:hover { background: #256649; }
.btn.danger { background: #fff; color: var(--bad); border-color: #efc5cc; box-shadow: none; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.wa { background: #1f9d55; }
.btn.wa:hover { background: #178345; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; color: var(--muted);
}
.icon-btn:hover { color: var(--rose); border-color: var(--rose); }

/* ── الحقول ── */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); line-height: 1.6; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fffcfd; color: var(--ink); font-size: 16px; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select.input {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23786771' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center;
}
textarea.input { min-height: 96px; resize: vertical; }
.input::placeholder { color: var(--faint); opacity: 1; }
.input:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 3px #a82b6014; }
.input.sm { min-height: 38px; padding: 7px 11px; font-size: 14px; border-radius: 10px; }
.field.invalid .input, .field.invalid .handle, .input.invalid { border-color: var(--bad); background: #fff8f9; box-shadow: 0 0 0 3px #b4233512; }
.err { color: var(--bad); font-size: 13px; font-weight: 500; line-height: 1.6; min-height: 0; }
.err:empty { display: none; }

/* خانة اليوزر ويا @ ثابتة */
.handle {
  display: flex; align-items: stretch; direction: ltr; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fffcfd; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.handle:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px #a82b6014; }
.handle .at {
  display: grid; place-items: center; padding: 0 14px; background: var(--soft); color: var(--rose);
  font-weight: 800; font-size: 17px; border-right: 1px solid var(--soft-line); user-select: none;
}
.handle input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 14px; min-height: 50px;
  font-size: 16px; direction: ltr; text-align: left;
}
.handle .plat { display: grid; place-items: center; padding: 0 12px; color: var(--faint); }
.check-link { font-size: 13px; font-weight: 700; color: var(--rose); align-self: flex-start; }
.check-link:hover { text-decoration: underline; }

/* مربعات الاختيار */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.7; }
.check input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--rose); }

/* ── شارات ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 2px; border-radius: 100px;
  font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; border: 1px solid transparent;
}
.chip.rose { background: var(--soft); color: var(--rose); border-color: var(--soft-line); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.gray { background: var(--gray-bg); color: var(--muted); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ═══════════════════ الصفحة العامة ═══════════════════ */
@font-face { font-family: 'Baloo Bhaijaan 2'; font-weight: 400 800; font-display: swap; src: url('/brand/baloo-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Baloo Bhaijaan 2'; font-weight: 400 800; font-display: swap; src: url('/brand/baloo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.pub {
  --hot: #ee2a8c;
  --deep: #d4146f;
  --wine: #9c0c52;
  --sun: #ffc531;
  --sun-deep: #e9a400;
  --baby: #fff1f7;
  --candy: #ffd9e9;
  --ink: #2b0f1e;
  --muted: #80566a;
  --faint: #b08a9c;
  /* نفس المكونات المشتركة بس بألوان مارلين الفاقعة */
  --rose: var(--deep);
  --rose-dark: var(--wine);
  --soft: #ffe6f1;
  --soft-line: #ffc4dd;
  --line: #ffd3e5;
  --line-2: #f7bcd6;
  --bg: var(--baby);
  --display: 'Baloo Bhaijaan 2', Tajawal, sans-serif;
  background: var(--baby);
  background-image: radial-gradient(#ffd3e5 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
.pub h1, .pub h2, .pub h3, .pub .display { font-family: var(--display); letter-spacing: 0; }
.pub ::selection { background: var(--hot); color: #fff; }

/* أزرار بستايل الملصقات */
.pub .btn {
  border-radius: 100px; background: var(--deep); font-family: var(--display); font-weight: 700; font-size: 17px;
  padding: 12px 26px; box-shadow: 0 5px 0 var(--wine); transition: transform .12s, box-shadow .12s, background .15s;
}
.pub .btn:hover { background: var(--hot); }
.pub .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--wine); }
.pub .btn.lg { min-height: 60px; font-size: 20px; padding-inline: 34px; border-radius: 100px; }
.pub .btn.white { background: #fff; color: var(--deep); box-shadow: 0 5px 0 #7d0a42; }
.pub .btn.white:hover { background: var(--sun); color: var(--ink); }
.pub .btn.sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--sun-deep); }
.pub .btn.sun:hover { background: #ffd35c; }

/* الشريط المتحرك */
.ticker { background: var(--ink); color: #fff; overflow: hidden; font-family: var(--display); font-weight: 600; font-size: 14.5px; direction: ltr; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding: 9px 11px 7px; white-space: nowrap; direction: rtl; }
.ticker-track span::after { content: '✦'; color: var(--sun); }
@keyframes ticker { to { transform: translateX(-50%); } }

.pub-shell { max-width: 1240px; margin-inline: auto; padding: 0 32px; }

/* الرأس */
.pub-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 8px 12px 8px 14px;
  background: #fff; border: 2px solid var(--candy); border-radius: 100px; box-shadow: 0 6px 0 var(--candy); position: relative; z-index: 5;
}
.pub-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--deep); }
.pub-brand img { width: 58px; height: 58px; object-fit: contain; }
.pub-nav { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 15px; }
.pub-nav a:not(.btn):hover { color: var(--deep); }
.pub-nav .btn { min-height: 44px; font-size: 16px; padding: 8px 22px 6px; box-shadow: 0 4px 0 var(--wine); }

/* الواجهة */
.hero {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 20px; margin-top: 26px;
  border-radius: 44px; overflow: hidden; isolation: isolate; color: #fff; padding: 64px clamp(26px, 5vw, 70px);
  background: radial-gradient(circle at 24% 50%, #ff5aa970, transparent 50%), linear-gradient(to left, #c40f66b3, transparent 62%),
    repeating-conic-gradient(from 4deg at 24% 50%, #e3207f 0 9deg, #d4146f 9deg 18deg);
  box-shadow: 0 10px 0 var(--wine);
}
.brand-line { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; letter-spacing: .28em; font-size: 13px; direction: ltr; opacity: .95; }
.brand-line::before, .brand-line::after { content: ''; width: 34px; height: 2px; background: currentColor; border-radius: 2px; opacity: .7; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(42px, 5.4vw, 78px); line-height: 1.22; font-weight: 800; text-shadow: 0 4px 0 #a80d5b; }
.hero h1 mark {
  display: inline-block; background: var(--sun); color: var(--ink); padding: 0 .28em .04em; border-radius: 18px; transform: rotate(-3deg);
  text-shadow: none; box-shadow: 0 5px 0 var(--sun-deep);
}
.hero .lead { margin: 0; max-width: 470px; font-size: 18px; line-height: 1.9; font-weight: 500; color: #fff; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-pills span { background: #ffffff24; border: 1.5px solid #ffffff59; border-radius: 100px; padding: 6px 15px 4px; font-weight: 700; font-size: 14px; backdrop-filter: blur(4px); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 30px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.photo {
  position: relative; width: min(430px, 88%); aspect-ratio: 4 / 5; border-radius: 36px; overflow: hidden; background: #fff;
  border: 8px solid #fff; transform: rotate(4deg); box-shadow: 0 14px 0 #9c0c5266, 0 30px 60px #5a062f66;
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sticker { position: absolute; z-index: 2; display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; line-height: 1.15; }
.sticker.logo { width: 132px; height: 132px; border-radius: 50%; background: #fff; inset-inline-end: -4px; bottom: 6px; transform: rotate(-10deg); box-shadow: 0 6px 0 #9c0c5280; border: 4px solid var(--candy); }
.sticker.logo img { width: 104px; height: 104px; object-fit: contain; }
.sticker.burst {
  width: 128px; height: 128px; inset-inline-start: 0; top: 40%; color: var(--ink); font-size: 19px; transform: rotate(-12deg);
  background: var(--sun); filter: drop-shadow(0 5px 0 var(--sun-deep));
  clip-path: polygon(50% 0, 61% 12%, 75% 5%, 79% 21%, 95% 21%, 90% 37%, 100% 50%, 90% 63%, 95% 79%, 79% 79%, 75% 95%, 61% 88%, 50% 100%, 39% 88%, 25% 95%, 21% 79%, 5% 79%, 10% 63%, 0 50%, 10% 37%, 5% 21%, 21% 21%, 25% 5%, 39% 12%);
  animation: wobble 5s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.05); } }
.deco { position: absolute; z-index: 1; pointer-events: none; }
.deco.h1 { top: 8%; inset-inline-start: 6%; width: 46px; color: #fff; animation: float 6s ease-in-out infinite; }
.deco.h2 { bottom: 4%; inset-inline-end: 10%; width: 34px; color: var(--sun); animation: float 7s ease-in-out -2s infinite; }
.deco.s1 { top: 46%; inset-inline-end: -2%; font-size: 40px; color: #fff; }
.deco.s2 { top: 2%; inset-inline-start: 38%; font-size: 26px; color: var(--sun); }
@keyframes float { 50% { transform: translateY(-12px) rotate(8deg); } }

/* عناوين الأقسام */
.section { padding: 92px 0 0; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 38px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--deep); font-family: var(--display); font-weight: 700; font-size: 15px; }
.eyebrow::before, .eyebrow::after { content: ''; width: 30px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
.section-head h2 { margin: 0; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.3; font-weight: 800; color: var(--ink); }
.section-head h2 em { font-style: normal; color: var(--deep); }
.section-head p { margin: 0; max-width: 560px; color: var(--muted); font-size: 16.5px; }

/* فرص التعاون */
.collab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.collab-card {
  position: relative; background: #fff; border: 2px solid var(--candy); border-radius: 30px; padding: 30px 24px 26px; text-align: center;
  box-shadow: 0 8px 0 var(--candy); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.collab-card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--hot); box-shadow: 0 14px 0 var(--hot); }
.collab-card .n {
  position: absolute; top: -16px; inset-inline-start: 50%; transform: translateX(50%); background: var(--deep); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 15px; padding: 3px 16px 1px; border-radius: 100px; box-shadow: 0 3px 0 var(--wine);
}
.collab-card .ic {
  width: 78px; height: 78px; margin: 10px auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #ff6bb3, var(--deep)); box-shadow: inset 0 -5px 0 #0000001f, 0 0 0 7px var(--soft);
}
.collab-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; line-height: 1.35; }
.collab-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }

/* الفيديوهات */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.video-card {
  position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--wine); padding: 0; color: #fff; text-align: start;
  border: 6px solid #fff; box-shadow: 0 8px 0 var(--candy); transition: transform .18s, box-shadow .18s;
}
.video-card:hover { transform: translateY(-5px) rotate(1deg); box-shadow: 0 13px 0 var(--hot); }
.video-card img, .video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #7a0b45e6, transparent 55%); }
.video-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; box-shadow: 0 5px 0 var(--sun-deep); }
.video-card .meta { position: absolute; inset-inline: 14px; bottom: 12px; z-index: 2; font-family: var(--display); }
.video-card .meta b { display: block; font-size: 18px; line-height: 1.4; }
.video-card .meta small { font-size: 13px; opacity: .9; }

.modal-back { position: fixed; inset: 0; z-index: 100; background: #5a062fd9; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.player { position: relative; width: min(420px, 100%); max-height: calc(100svh - 40px); }
.player video { width: 100%; max-height: calc(100svh - 110px); border-radius: 26px; background: #000; aspect-ratio: 9 / 16; object-fit: contain; border: 6px solid #fff; }
.player .title { color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; margin-top: 10px; text-align: center; }
.player .close { position: absolute; top: -10px; inset-inline-end: -10px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sun); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 0 var(--sun-deep); }

/* شروط التصوير */
.terms-card {
  position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; overflow: hidden; isolation: isolate;
  background: var(--candy); border: 2px solid var(--soft-line); border-radius: 40px; padding: 50px clamp(24px, 5vw, 60px); box-shadow: 0 8px 0 var(--soft-line);
}
.terms-card::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #fff; opacity: .5; inset-inline-start: -140px; top: -160px; z-index: -1; }
.terms-card .eyebrow::before { display: none; }
.terms-card h2 { margin: 6px 0 8px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.3; font-weight: 800; }
.terms-card p { margin: 0; color: var(--muted); font-size: 16px; }
.terms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: t; }
.terms-list li {
  counter-increment: t; display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 100px; padding: 10px 12px 8px 22px;
  font-size: 15.5px; font-weight: 500; box-shadow: 0 4px 0 var(--soft-line); line-height: 1.6;
}
.terms-list li::before {
  content: counter(t, arabic-indic); flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep); color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px;
}

.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.ig-frame { min-width: 0; background: #fff; border: 2px solid var(--candy); border-radius: 24px; box-shadow: 0 8px 0 var(--candy); overflow: hidden; }
.ig-frame iframe { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.ig-frame a { display: block; text-align: center; padding: 10px 12px 9px; border-top: 2px solid var(--candy); color: var(--deep); font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; }

.swipe-hint { display: none; justify-content: center; align-items: center; gap: 8px; margin-top: 4px; color: var(--deep); font-family: var(--display); font-weight: 700; font-size: 14.5px; }

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  display: flex; align-items: center; gap: 14px; text-align: start; color: #fff;
  background: linear-gradient(135deg, var(--hot), var(--deep)); border-radius: 24px; padding: 16px 18px 14px; box-shadow: 0 7px 0 var(--wine);
}
.step .num {
  flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; padding-top: 4px;
  background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 27px; box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
}
.step h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; color: #fff; }
.step p { margin: 2px 0 0; color: rgba(255, 255, 255, .92); font-size: 14.5px; line-height: 1.5; }

/* نموذج التسجيل */
.form-wrap { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.form-aside {
  position: sticky; top: 20px; overflow: hidden; isolation: isolate; color: #fff; border-radius: 36px; padding: 34px 28px 30px; text-align: center;
  background: repeating-conic-gradient(from 5deg at 50% 22%, #e3207f 0 10deg, #d4146f 10deg 20deg); box-shadow: 0 8px 0 var(--wine);
}
.form-aside .badge { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 0 #9c0c5280; }
.form-aside .badge img { width: 96px; height: 96px; object-fit: contain; }
.form-aside h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.25; font-weight: 800; text-shadow: 0 3px 0 #a80d5b; }
.form-aside p { margin: 0; font-size: 15.5px; line-height: 1.85; font-weight: 500; }
.form-aside ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; text-align: start; }
.form-aside li { display: flex; gap: 12px; align-items: center; background: #ffffff26; border: 1.5px solid #ffffff4d; border-radius: 100px; padding: 6px 8px 4px 16px; font-weight: 700; font-size: 15px; }
.form-aside li span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--deep); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; }

.form-card { background: #fff; border: 2px solid var(--candy); border-radius: 36px; padding: 8px clamp(18px, 4vw, 42px) 34px; box-shadow: 0 8px 0 var(--candy); }
.fstep { padding: 30px 0 28px; margin: 0; min-width: 0; border: 0; border-bottom: 2px dashed var(--candy); }
.fstep:last-of-type { border-bottom: 0; padding-bottom: 6px; }
.fstep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 20px; }
.fstep-head .no { background: var(--deep); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; border-radius: 100px; padding: 3px 15px 1px; box-shadow: 0 3px 0 var(--wine); }
.fstep-head h3 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.3; }
.fstep-head small { color: var(--deep); background: var(--soft); border-radius: 100px; padding: 3px 12px 1px; font-size: 13px; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pub .field > label { font-size: 15px; }
.pub .input, .pub .handle { border-width: 2px; border-radius: 18px; background: #fff; }
.pub .input { min-height: 54px; }
.pub .handle input { min-height: 50px; }
.pub .input:focus, .pub .handle:focus-within { border-color: var(--hot); box-shadow: 0 0 0 4px #ee2a8c26; }
.pub .handle .at { background: var(--deep); color: #fff; border: 0; font-family: var(--display); font-size: 20px; padding: 0 16px; }
.pub .field.invalid .input, .pub .field.invalid .handle { border-color: var(--bad); background: #fff6f7; box-shadow: 0 0 0 4px #b4233514; }
.pub .field.invalid .handle .at { background: var(--bad); }
.handle-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff8e1; border: 2px dashed #f3d27a; border-radius: 18px; padding: 11px 16px 9px; font-size: 14.5px; font-weight: 500; color: #6b4d00; margin-bottom: 18px; line-height: 1.8; }
.handle-hint code { direction: ltr; unicode-bidi: isolate; background: #fff; border: 1.5px solid #f3d27a; padding: 0 9px; border-radius: 8px; font-family: inherit; font-weight: 800; }
.pub .check-link { background: var(--soft); border-radius: 100px; padding: 4px 13px 2px; color: var(--deep); }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 14px; border: 2px solid var(--line-2); border-radius: 22px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, transform .12s, box-shadow .15s; }
.type-opt:hover { border-color: var(--hot); transform: translateY(-2px); }
.type-opt input { flex: none; width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--deep); }
.type-opt b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.4; }
.type-opt small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.type-opt:has(input:checked) { border-color: var(--deep); background: var(--soft); box-shadow: 0 5px 0 var(--deep); }
.consent-box { margin-top: 26px; padding: 18px 18px 16px; border-radius: 22px; background: var(--soft); border: 2px solid var(--soft-line); }
.pub .check input { accent-color: var(--deep); }
.form-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.form-alert { padding: 12px 18px 10px; border-radius: 18px; background: var(--bad-bg); color: var(--bad); font-size: 15px; font-weight: 700; }

.success-card { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff; border-radius: 44px; padding: 70px 26px; background: repeating-conic-gradient(from 4deg at 50% 30%, #e3207f 0 9deg, #d4146f 9deg 18deg); box-shadow: 0 10px 0 var(--wine); }
.success-card .ring { width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 0 var(--sun-deep); }
.success-card h2 { margin: 0 0 8px; font-size: clamp(38px, 5vw, 60px); font-weight: 800; line-height: 1.25; text-shadow: 0 4px 0 #a80d5b; }
.success-card p { margin: 0 auto; max-width: 480px; font-size: 17.5px; font-weight: 500; line-height: 1.9; }

/* التذييل */
.pub-footer { margin-top: 96px; background: var(--ink); color: #fff; border-radius: 44px 44px 0 0; padding: 44px 0 30px; }
.pub-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 30px; }
.pub-footer .fbrand { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.pub-footer .fbrand span { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.pub-footer .fbrand img { width: 62px; height: 62px; object-fit: contain; }
.pub-footer .links { display: flex; flex-wrap: wrap; gap: 10px; }
.pub-footer .links a { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 20px 6px; border-radius: 100px; background: #ffffff14; border: 1.5px solid #ffffff33; font-weight: 700; font-size: 15px; transition: background .15s, color .15s; }
.pub-footer .links a:hover { background: var(--hot); border-color: var(--hot); }
.privacy { display: flex; gap: 10px; align-items: center; color: #ffd3e5; font-size: 14.5px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #ffffff24; }
.copy { color: #c9a3b5; font-size: 13px; margin-top: 8px; }

@media (max-width: 1040px) {
  .collab-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .form-wrap { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .form-aside ul { grid-template-columns: 1fr 1fr; }
  .terms-card { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .pub-shell { padding: 0 14px; }
  .pub-header { margin-top: 12px; padding: 5px 8px 5px 8px; }
  .pub-brand { font-size: 17px; gap: 6px; }
  .pub-brand img { width: 48px; height: 48px; }
  .pub-nav .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; border-radius: 34px; padding: 26px 20px 40px; margin-top: 18px; text-align: center; gap: 6px;
    background: radial-gradient(circle at 50% 22%, #ff5aa970, transparent 45%), repeating-conic-gradient(from 4deg at 50% 22%, #e3207f 0 9deg, #d4146f 9deg 18deg); }
  .hero-art { order: -1; min-height: 370px; }
  .photo { width: 270px; border-width: 6px; border-radius: 28px; }
  .sticker.logo { width: 92px; height: 92px; inset-inline-end: 0; bottom: 0; top: auto; }
  .sticker.logo img { width: 72px; height: 72px; }
  .sticker.burst { width: 92px; height: 92px; font-size: 14px; inset-inline-start: 0; top: 38%; bottom: auto; }
  .hero h1 { font-size: 44px; margin: 12px 0 10px; }
  .hero .lead { font-size: 16px; margin-inline: auto; }
  .hero-pills, .hero-cta { justify-content: center; }
  .hero-cta .btn { width: 100%; }
  .section { padding-top: 68px; }
  .section-head { margin-bottom: 30px; }
  .collab-grid, .grid-2, .grid-3, .type-grid { grid-template-columns: 1fr; }
  .collab-grid { row-gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .video-card { border-width: 4px; border-radius: 22px; }
  .video-card .play { width: 50px; height: 50px; }
  /* بالموبايل: الفيديوهات صف واحد ينقلب بالسحب */
  .ig-grid, .video-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: -14px; padding: 4px 14px 16px; scrollbar-width: none; align-items: flex-start;
  }
  .ig-grid::-webkit-scrollbar, .video-grid::-webkit-scrollbar { display: none; }
  .ig-grid > * { flex: 0 0 84%; max-width: 84%; scroll-snap-align: center; }
  .video-grid > * { flex: 0 0 62%; scroll-snap-align: center; }
  .swipe-hint { display: flex; }
  .terms-card { padding: 32px 18px; border-radius: 32px; }
  .terms-list li { border-radius: 24px; padding: 10px 12px 8px 16px; }
  .form-aside { padding: 26px 20px 24px; border-radius: 30px; }
  .form-aside .badge { width: 96px; height: 96px; }
  .form-aside .badge img { width: 76px; height: 76px; }
  .form-aside h2 { font-size: 30px; }
  .form-card { border-radius: 30px; padding: 2px 16px 26px; }
  .fstep-head h3 { font-size: 23px; }
  .pub-footer { border-radius: 32px 32px 0 0; margin-top: 70px; }
  .pub-footer .row { flex-direction: column; align-items: flex-start; }
  .pub-footer .links a { font-size: 14px; padding-inline: 16px; }
}

/* ═══════════════════ لوحة التحكم ═══════════════════ */
.admin-body { background: #f8f3f1; }
.auth-wrap { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 30px 30px; box-shadow: var(--shadow); }
.auth-card .logo { width: 84px; height: 84px; margin: 0 auto 6px; object-fit: contain; }
.auth-card h1 { margin: 0; text-align: center; font-size: 22px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 24px; }
.auth-card form { display: grid; gap: 16px; }

.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100svh; }
.side {
  position: sticky; top: 0; height: 100svh; background: #fff; border-left: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px;
}
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side .brand img { width: 46px; height: 46px; object-fit: contain; }
.side .brand b { display: block; font-size: 15px; line-height: 1.3; }
.side .brand small { color: var(--muted); font-size: 12px; }
.nav-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px 9px; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; text-align: start;
}
.nav-btn:hover { background: var(--bg); color: var(--ink); }
.nav-btn.active { background: var(--soft); color: var(--rose); }
.nav-btn .count { margin-inline-start: auto; background: var(--rose); color: #fff; border-radius: 20px; font-size: 11px; padding: 2px 8px 0; min-width: 22px; text-align: center; }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 6px 0; display: grid; gap: 8px; }
.me-row { display: flex; align-items: center; gap: 10px; }
.avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--rose);
  display: grid; place-items: center; font-weight: 800; font-size: 16px; border: 1px solid var(--soft-line);
}
.avatar.lg { width: 52px; height: 52px; font-size: 21px; }
.me-row b { display: block; font-size: 14px; line-height: 1.3; }
.me-row small { color: var(--muted); font-size: 12px; }
.me .actions { display: flex; gap: 6px; }

.main { min-width: 0; padding: 26px 32px 60px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 26px; line-height: 1.3; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.topbar { display: none; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: 0 6px 24px #5b173506; min-width: 0; }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.panel h2 .chip { font-size: 11px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 14px; }
.stat small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.stat b { display: block; font-size: 27px; font-weight: 800; line-height: 1.35; margin-top: 4px; }
.stat.hl { background: var(--rose); border-color: var(--rose); color: #fff; }
.stat.hl small { color: #ffffffcc; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols-3 > .panel + .panel, .cols-2 > .panel + .panel { margin-top: 0; }
.mt { margin-top: 18px; }

.mini-list { display: grid; gap: 2px; }
.mini-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px 7px; border-radius: 12px; border: 0; background: transparent; text-align: start; width: 100%; }
.mini-item:hover { background: var(--bg); }
.mini-item .who { min-width: 0; flex: 1; }
.mini-item .who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item .who small { color: var(--muted); font-size: 12.5px; }
.empty { color: var(--faint); font-size: 14px; text-align: center; padding: 22px 10px; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 10px; font-size: 13.5px; }
.bar-row .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--rose); border-radius: 10px; min-width: 3px; }
.bar-row .v { text-align: left; font-weight: 700; direction: ltr; }

/* الجدول */
.toolbar { display: grid; gap: 12px; margin-bottom: 14px; }
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 10px; }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.sortbar > span { color: var(--muted); font-weight: 700; margin-inline-end: 4px; }
.seg { border: 1px solid var(--line-2); background: #fff; border-radius: 100px; padding: 6px 14px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg:hover { border-color: var(--rose); color: var(--rose); }
.seg.on { background: var(--rose); border-color: var(--rose); color: #fff; }
.sortbar .spacer { flex: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.tbl th { text-align: start; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 12px 10px 10px; border-bottom: 1px solid var(--line); background: #fdfafa; white-space: nowrap; position: sticky; top: 0; }
.tbl th button { border: 0; background: none; padding: 0; color: inherit; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.tbl th button:hover { color: var(--rose); }
.tbl td { padding: 11px 10px 9px; border-bottom: 1px solid #f5eeee; vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background .1s; }
.tbl tbody tr:hover { background: #fdf7f9; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .name b { display: block; font-size: 14.5px; }
.tbl .name small { color: var(--muted); font-size: 12.5px; direction: ltr; unicode-bidi: isolate; }
.tbl .sub { display: block; color: var(--muted); font-size: 12px; }
.late { color: var(--bad); font-weight: 800; }
.stars { color: #e0a425; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #e7dfe2; }
.result-count { color: var(--muted); font-size: 13px; margin: 0 4px 10px; }

/* النافذة الجانبية */
.drawer-back { position: fixed; inset: 0; background: #2b1a2340; z-index: 60; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(760px, 100%); background: var(--bg); z-index: 61;
  box-shadow: 10px 0 50px #2b1a2333; display: flex; flex-direction: column; animation: slideIn .22s ease-out;
}
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head .t { flex: 1; min-width: 0; }
.drawer-head h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.drawer-head small { color: var(--muted); font-size: 13px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 40px; display: grid; gap: 16px; align-content: start; }
.drawer-body .panel + .panel { margin-top: 0; }

.decision { border-radius: 18px; padding: 18px 20px; border: 1px solid; display: grid; gap: 12px; }
.decision.pending { background: var(--warn-bg); border-color: #f1dcae; }
.decision.accepted { background: var(--ok-bg); border-color: #c6e6d3; }
.decision.contacted { background: var(--info-bg); border-color: #cdd7ee; }
.decision.rejected { background: var(--bad-bg); border-color: #f1c6cd; }
.decision.paused { background: var(--gray-bg); border-color: #e2dadd; }
.decision .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.decision h3 { margin: 0; font-size: 17px; }
.decision p { margin: 0; font-size: 14px; color: var(--muted); }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.kv div small { display: block; color: var(--muted); font-size: 12px; }
.kv div b { font-size: 15px; font-weight: 700; word-break: break-word; }
.acc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.acc-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 5px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 14px; direction: ltr; }
.acc-link:hover { border-color: var(--rose); color: var(--rose); }
.acc-link small { color: var(--muted); font-weight: 500; direction: rtl; }
.quote { background: var(--bg); border-radius: 12px; padding: 12px 14px 10px; font-size: 14px; white-space: pre-wrap; margin-top: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.form-grid .field > label { font-size: 13px; }
.rating { display: flex; gap: 2px; direction: ltr; justify-content: flex-end; }
.rating button { border: 0; background: none; font-size: 26px; line-height: 1; padding: 2px; color: #e7dfe2; }
.rating button.on { color: #e0a425; }
.rating button:hover { transform: scale(1.12); }

.wa-row { display: flex; flex-wrap: wrap; gap: 8px; }

.notes-list { display: grid; gap: 10px; margin-top: 12px; }
.note { background: var(--bg); border-radius: 12px; padding: 12px 14px 10px; }
.note .h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.note .h b { color: var(--ink); }
.note .h .icon-btn { margin-inline-start: auto; width: 28px; height: 28px; border-radius: 8px; }
.note p { margin: 0; font-size: 14.5px; white-space: pre-wrap; }

.rec { margin-top: 4px; }
.rec table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rec th { text-align: start; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rec td { padding: 8px 8px 6px; border-bottom: 1px solid #f5eeee; vertical-align: middle; word-break: break-word; }
.rec-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.rec-wrap { overflow-x: auto; }
.tabs-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs-mini button { border: 1px solid var(--line-2); background: #fff; border-radius: 100px; padding: 6px 13px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tabs-mini button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs-mini button .c { opacity: .7; margin-inline-start: 4px; }

/* الحملات */
.camp { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 20px; }
.camp + .camp { margin-top: 14px; }
.camp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.camp-head h3 { margin: 0; font-size: 18px; }
.camp-head small { color: var(--muted); font-size: 13px; }
.progress { height: 10px; background: var(--bg); border-radius: 10px; overflow: hidden; margin: 6px 0 2px; }
.progress div { height: 100%; background: var(--rose); border-radius: 10px; }
.camp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.camp-stats div { background: var(--bg); border-radius: 12px; padding: 10px 12px 8px; }
.camp-stats small { display: block; color: var(--muted); font-size: 12px; }
.camp-stats b { font-size: 16px; }

/* الفيديوهات باللوحة */
.vid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.vid-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: grab; transition: box-shadow .15s, opacity .15s; }
.vid-item.dragging { opacity: .4; }
.vid-item.over { box-shadow: 0 0 0 3px var(--rose); }
.vid-item .thumb { aspect-ratio: 9 / 12; background: #2b1a23; position: relative; }
.vid-item .thumb img, .vid-item .thumb video { width: 100%; height: 100%; object-fit: cover; }
.vid-item .thumb .chip { position: absolute; top: 8px; inset-inline-start: 8px; }
.vid-item .body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.vid-item .body b { font-size: 14px; line-height: 1.4; }
.vid-item .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.vid-item.hidden-v .thumb { opacity: .45; }
.drop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 18px; text-align: center; color: var(--muted); background: #fffcfd; }

/* المستخدمين */
.user-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.user-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 12px; }
.user-card.off { opacity: .65; }
.user-card .top { display: flex; align-items: center; gap: 12px; }
.user-card .top b { display: block; font-size: 15.5px; }
.user-card .top small { color: var(--muted); font-size: 12.5px; direction: ltr; unicode-bidi: isolate; }
.user-card .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; }
.user-card .meta small { display: block; color: var(--muted); font-size: 11.5px; }
.user-card .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.invite-box { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 12px; padding: 8px 8px 8px 12px; margin-top: 12px; }
.invite-box input { flex: 1; min-width: 0; border: 0; background: transparent; direction: ltr; font-size: 13px; outline: 0; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.perm-table th, .perm-table td { padding: 9px 10px 7px; border-bottom: 1px solid var(--line); text-align: start; }
.perm-table td.c, .perm-table th.c { text-align: center; }
.yes { color: var(--ok); font-weight: 800; }
.no { color: #d3c4ca; font-weight: 800; }

/* الإعدادات */
.tpl { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: #fffcfd; }
.tpl + .tpl { margin-top: 10px; }
.tpl .row { display: flex; gap: 8px; align-items: center; }
.tpl .row .input { flex: 1; }
.placeholders { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); align-items: center; }
.placeholders code { background: var(--soft); color: var(--rose); padding: 2px 8px; border-radius: 6px; font-family: inherit; font-weight: 700; }
.prot-list { display: grid; gap: 10px; }
.prot-list div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.prot-list .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.prot-list .ic.ok { background: var(--ok-bg); color: var(--ok); }
.prot-list .ic.warn { background: var(--warn-bg); color: var(--warn); }

/* سجل النشاط */
.activity { display: grid; gap: 0; }
.act { display: flex; gap: 12px; padding: 10px 2px 8px; border-bottom: 1px solid #f5eeee; font-size: 13.5px; }
.act:last-child { border-bottom: 0; }
.act .time { flex: none; width: 92px; color: var(--muted); font-size: 12px; }
.act b { font-weight: 700; }

/* تنبيهات */
.toast-zone { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px 10px; border-radius: 14px; font-size: 14.5px; box-shadow: 0 10px 30px #0003; animation: up .2s ease-out; }
.toast.err { background: var(--bad); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.update-bar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 210; border: 0; background: var(--ink); color: #fff;
  border-radius: 100px; padding: 11px 22px 9px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px #0003; display: flex; gap: 8px; align-items: center;
}
.update-bar:hover { background: var(--rose); }

.dialog-back { position: fixed; inset: 0; background: #2b1a2359; z-index: 150; display: grid; place-items: center; padding: 16px; }
.dialog { width: min(480px, 100%); background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 30px 80px #2b1a234d; display: grid; gap: 14px; max-height: calc(100svh - 32px); overflow-y: auto; }
.dialog h3 { margin: 0; font-size: 19px; }
.dialog .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 1200px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app { display: block; }
  .side {
    position: fixed; inset: 0 0 0 auto; width: 270px; z-index: 80; transform: translateX(110%); transition: transform .2s; visibility: hidden;
  }
  .side.open { transform: none; visibility: visible; box-shadow: -10px 0 40px #2b1a2333; }
  .side-back { position: fixed; inset: 0; z-index: 79; background: #2b1a2340; }
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; background: #fffffff0;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 16px; border-bottom: 1px solid var(--line);
  }
  .topbar img { width: 38px; height: 38px; object-fit: contain; }
  .topbar b { flex: 1; font-size: 16px; }
  .main { padding: 18px 16px 50px; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 22px; }
  .camp-stats { grid-template-columns: 1fr 1fr; }
  .drawer-head { padding: 14px 16px; }
  .drawer-body { padding: 14px 14px 40px; }
  .page-head h1 { font-size: 22px; }
  .bar-row { grid-template-columns: 90px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
