/* الصفحات العامة (دردشة فلسطين، الخصوصية، المساعدة...). خفيفة ومستقلة عن تطبيق الدردشة */
:root {
  --bg: #0f172a; --surface: #1e293b; --surface2: #273449; --border: #334155;
  --text: #e2e8f0; --muted: #94a3b8; --primary: #6366f1; --primary-2: #4f46e5; --on-primary: #fff; --live: #22c55e;
  --tail: 22px 22px 22px 6px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc; --surface: #ffffff; --surface2: #eef2f7; --border: #dbe3ee;
    --text: #0f172a; --muted: #55657a; --primary: #4f46e5; --primary-2: #4338ca; --live: #16a34a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.9 'Readex Pro', 'Segoe UI', Tahoma, system-ui, sans-serif;
}
a { color: var(--primary); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 880px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.bubble {
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px;
  background: var(--primary); border-radius: 14px 14px 14px 4px;
}

main { max-width: 880px; margin: 0 auto; padding: 0 16px 40px; }
main > section, main > article { margin-top: 40px; }

/* الافتتاحية */
.hero { margin-top: 24px; padding: 32px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 30px 30px 30px 8px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 6vw, 44px); line-height: 1.35; font-weight: 700; }
.lead { margin: 0 0 18px; font-size: 18px; color: var(--muted); max-width: 62ch; }
.live { display: flex; width: fit-content; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 25%, transparent); }
.cta {
  display: inline-block; padding: 14px 30px; border-radius: var(--tail); text-decoration: none; font-weight: 700; font-size: 18px;
  background: var(--primary); color: var(--on-primary); transition: background .15s;
}
.cta:hover { background: var(--primary-2); }
.cta.small { padding: 8px 18px; font-size: 15px; border-radius: 16px 16px 16px 5px; }
.fine { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

h2 { font-size: 23px; margin: 0 0 10px; line-height: 1.5; }
.prose { max-width: 68ch; }
.prose section + section { margin-top: 26px; }
.prose p { margin: 0 0 12px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin: 24px 0 8px; }
.updated { color: var(--muted); font-size: 14px; }

/* الغرف الحية */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.room {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none;
}
.room:hover { border-color: var(--primary); }
.room span { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* الخطوات (تسلسل حقيقي، لذلك مرقّمة) */
.steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; padding: 16px; background: var(--surface2); border-radius: 18px; }
.steps li::before {
  content: counter(s); width: 30px; height: 30px; margin-bottom: 8px; display: grid; place-items: center;
  border-radius: 10px 10px 10px 3px; background: var(--primary); color: var(--on-primary); font-weight: 700;
}
.steps span { color: var(--muted); font-size: 15px; }

/* الأسئلة */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 14px; color: var(--muted); max-width: 68ch; }

.end { text-align: center; }

.foot { border-top: 1px solid var(--border); margin-top: 20px; padding: 24px 16px 32px; }
.foot nav { max-width: 880px; margin: 0 auto 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { max-width: 880px; margin: 14px auto 0; font-size: 12px; color: var(--muted); }
.foot p a { color: inherit; }

@media (max-width: 520px) {
  .hero { padding: 24px 18px; }
  .lead { font-size: 16px; }
  .cta { display: block; text-align: center; }
  .top .cta.small { display: inline-block; }
}
