/* ============================================================
   ثيم مؤتمر منافع — مبني على توكنز موقع manafi.sa
   + ألوان الهوية المحدثة (باترن النخلة والترس)
   ============================================================ */

:root {
  /* ألوان الموقع الأساسي */
  --green: #06782C;          /* أخضر منافع */
  --green-heading: #276231;  /* عناوين الأقسام */
  --green-footer: #16361c;   /* الفوتر والبانرات الداكنة */
  --lime: #99BD3E;           /* أزرار الـCTA — نص داكن فوقها */
  --lime-dark: #7fa32e;

  /* ألوان الهوية المحدثة */
  --brand-green: #008B49;    /* أخضر الهوية الجديد */
  --brand-orange: #DB6901;   /* برتقالي الهوية */

  /* محايدات */
  --ink: #1c2b21;
  --muted: #5c6b60;
  --sand: #f6f4ee;
  --line: #e3e6df;
  --white: #ffffff;
  --danger: #c0392b;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(22, 54, 28, 0.10);
  --font: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ============ أزرار ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.9rem; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem; transition: .35s ease;
}
.btn-lime { background: var(--lime); color: var(--green-footer); }
.btn-lime:hover { background: var(--lime-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-heading); }
.btn-block { width: 100%; }

/* ============ الهيدر العام ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; }
.logo { display: flex; align-items: center; gap: .7rem; }
.logo img { height: 50px; width: auto; }
.logo-tag {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  border-inline-start: 1px solid var(--line);
  padding-inline-start: .85rem; line-height: 1.5;
}
.main-nav { display: flex; gap: 1.4rem; align-items: center; }
.main-nav a { font-size: .92rem; font-weight: 600; color: var(--ink); transition: .3s; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }

/* ============ منيو الموبايل الجانبية ============ */
.nav-side { display: flex; align-items: center; gap: .65rem; }
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; padding: 0 10px;
}
.menu-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--green); }

.backdrop {
  position: fixed; inset: 0; background: rgba(10, 22, 13, .5);
  opacity: 0; pointer-events: none; transition: opacity .45s ease; z-index: 94;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(310px, 84vw);
  background: var(--green-footer); color: var(--white); z-index: 95;
  transform: translateX(100%); transition: transform .45s ease;
  display: flex; flex-direction: column; padding: 1.3rem 1.2rem;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.drawer-head img { height: 46px; }
.drawer-close {
  background: rgba(255,255,255,.1); border: 0; color: var(--white);
  width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  padding: .95rem .3rem; font-weight: 600; font-size: .98rem;
  color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.12);
}
.drawer-nav a.active { color: var(--lime); }
.drawer-nav a.drawer-cta {
  margin-top: 1.2rem; background: var(--lime); color: var(--green-footer);
  text-align: center; border-radius: 999px; border-bottom: 0; padding: .8rem; font-weight: 700;
}
.drawer-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.drawer-foot a { font-size: .84rem; color: rgba(255,255,255,.65); }
body.drawer-open { overflow: hidden; }

/* ============ الهيرو ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--green-footer);
  color: var(--white);
  text-align: center;
  padding: 6.5rem 0 5.5rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('/brand/watermark.jpg') center/cover no-repeat;
  opacity: .07; mix-blend-mode: screen;
}
.hero .container { position: relative; }
.hero .kicker {
  display: inline-block; background: rgba(153,189,62,.16); color: var(--lime);
  border: 1px solid rgba(153,189,62,.4); border-radius: 999px;
  padding: .35rem 1.1rem; font-size: .82rem; font-weight: 700; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 3rem); line-height: 1.5; margin-bottom: 1rem; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 640px; margin: 0 auto 2.2rem; }
.hero .actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ============ العد التنازلي ============ */
.countdown { display: flex; gap: .9rem; justify-content: center; margin: 2.4rem 0 2.6rem; flex-wrap: wrap; }
.countdown .unit {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); min-width: 86px; padding: .9rem .6rem;
}
.countdown b { display: block; font-size: 1.9rem; color: var(--lime); line-height: 1.2; }
.countdown small { font-size: .75rem; color: rgba(255,255,255,.75); }

/* ============ شريط الباترن ============ */
.pattern-strip {
  height: 44px;
  background: url('/brand/pattern-strip.png') center/auto 100% repeat-x;
  background-color: var(--white);
}

/* ============ الأقسام ============ */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--sand); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.6rem; }
.section-head .eyebrow { color: var(--brand-orange); font-weight: 700; font-size: .85rem; letter-spacing: .5px; }
.section-head h2 { color: var(--green-heading); font-size: clamp(1.4rem, 3vw, 2rem); margin: .4rem 0 .7rem; }
.section-head p { color: var(--muted); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { color: var(--green-heading); font-size: 1.05rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .92rem; }

/* ============ الفوتر ============ */
.site-footer { background: var(--green-footer); color: rgba(255,255,255,.85); padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: start; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-logo { margin-bottom: 1rem; }
.site-footer .foot-logo img { height: 58px; }
.foot-blurb { font-size: .85rem; opacity: .8; max-width: 340px; line-height: 2; }
.site-footer h4 { color: var(--lime); font-size: .95rem; margin-bottom: .8rem; }
.site-footer a { display: block; font-size: .88rem; padding-block: .22rem; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--lime); }
.site-footer .credit { text-align: center; font-size: .8rem; padding-top: 1.4rem; opacity: .8; line-height: 2; }

/* ============ صفحات الفورم / الـQR ============ */
.narrow-page { max-width: 520px; margin: 4rem auto; padding-inline: 4%; }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 2.2rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--green), var(--lime));
}
.panel h1 { color: var(--green-heading); font-size: 1.35rem; margin-bottom: .4rem; }
.panel .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }

.qr-frame {
  display: inline-block; background: var(--white); border: 2px solid var(--green);
  border-radius: var(--radius-lg); padding: 14px; margin: 1rem 0 1.2rem;
}
.qr-frame img { width: 240px; height: 240px; }

.badge { display: inline-block; border-radius: 999px; padding: .25rem .9rem; font-size: .78rem; font-weight: 700; }
.badge-vip { background: #fdf3e3; color: var(--brand-orange); border: 1px solid #f3ddb8; }
.badge-green { background: #e8f4ec; color: var(--green); border: 1px solid #cfe6d6; }
.badge-gray { background: var(--sand); color: var(--muted); border: 1px solid var(--line); }
.badge-red { background: #fdecea; color: var(--danger); border: 1px solid #f5c9c4; }

/* ============ الفورمات ============ */
.field { text-align: right; margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--green-heading); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .92rem; background: var(--white); transition: .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(6,120,44,.12);
}
.form-error { color: var(--danger); font-size: .82rem; margin-top: .35rem; }

/* ============ لوحة التحكم ============ */
.admin-body { background: var(--sand); min-height: 100vh; }
.admin-topbar {
  background: var(--green-footer); color: var(--white);
  position: sticky; top: 0; z-index: 60;
}
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding-block: .7rem; }
.admin-topbar .logo img { height: 46px; }
.admin-topbar .logo-tag { color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.28); }
.admin-nav { display: flex; gap: .3rem; flex: 1; min-width: 0; justify-content: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { white-space: nowrap; }
.admin-nav a {
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85);
  padding: .45rem .9rem; border-radius: 999px; transition: .25s;
}
.admin-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.admin-nav a.active { background: var(--lime); color: var(--green-footer); }
.admin-user { display: flex; align-items: center; gap: .8rem; font-size: .82rem; flex-shrink: 0; }
.admin-user-id { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: .22rem; }
.admin-user .user-name { color: var(--white); font-weight: 600; line-height: 1.4; }
.admin-user .role-chip {
  display: inline-block; background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  padding: .2rem .8rem; font-size: .72rem; font-weight: 600; line-height: 1.6;
}
.btn-logout { background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--white); border-radius: 999px; padding: .35rem .9rem; font: inherit; font-size: .78rem; cursor: pointer; }
.btn-logout:hover { background: rgba(255,255,255,.12); }

.admin-main { padding: 2.2rem 0 3.5rem; }
.page-title { color: var(--green-heading); font-size: 1.35rem; margin-bottom: 1.4rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.7rem; color: var(--green); line-height: 1.3; }
.stat span { font-size: .8rem; color: var(--muted); }
.stat.accent b { color: var(--brand-orange); }

.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { background: var(--sand); color: var(--green-heading); text-align: right; padding: .8rem 1.1rem; font-size: .8rem; }
table.data td { padding: .75rem 1.1rem; border-top: 1px solid var(--line); }
table.data tr:hover td { background: #fbfaf6; }

/* ============ حركات دخول (بطيئة حسب التفضيل) ============ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(26px); animation: fadeUp 1.2s ease forwards; }
  .fade-up.d1 { animation-delay: .25s; }
  .fade-up.d2 { animation-delay: .5s; }
  .fade-up.d3 { animation-delay: .75s; }
  @keyframes fadeUp { to { opacity: 1; transform: none; } }
}

/* ============ موبايل ============ */
@media (max-width: 760px) {
  .main-nav a:not(.btn) { display: none; }
  .menu-toggle { display: flex; }
  .site-header .logo-tag { display: none; }
  .site-footer .cols { grid-template-columns: 1.35fr 1fr 1fr; gap: 1rem; }
  .site-footer .foot-logo img { height: 42px; }
  .foot-blurb { font-size: .74rem; line-height: 1.9; }
  .site-footer h4 { font-size: .82rem; }
  .site-footer a { font-size: .76rem; }
  .site-footer .credit { font-size: .7rem; }
  .hero { padding: 4.5rem 0 4rem; }
  .qr-frame img { width: 200px; height: 200px; }
}

/* ============ تابلت — الشريط سطر واحد مضغوط ============ */
@media (max-width: 1080px) {
  .logo img { height: 44px; }
  .admin-topbar .logo img { height: 40px; }
  .admin-topbar .logo-tag { display: none; }
  .admin-nav { justify-content: flex-start; }
  .admin-nav a { padding: .5rem .8rem; font-size: .82rem; }
  .admin-user { gap: .55rem; }
  .admin-user .role-chip { padding: .12rem .55rem; }
}

/* ============ تنبيهات ============ */
.alert { border-radius: 12px; padding: .9rem 1.2rem; font-size: .9rem; margin-bottom: 1.2rem; text-align: right; line-height: 1.9; }
.alert-success { background: #e8f4ec; color: var(--green); border: 1px solid #cfe6d6; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c9c4; }

/* ============ هيرو داخلي للصفحات ============ */
.page-hero { background: var(--green-footer); color: #fff; text-align: center; padding: 3.1rem 0 2.7rem; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url('/brand/watermark.jpg') center/cover no-repeat; opacity: .07; mix-blend-mode: screen; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.page-hero p { color: rgba(255,255,255,.8); margin-top: .55rem; font-size: .95rem; max-width: 640px; margin-inline: auto; }

/* ============ إحصائيات عامة ============ */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat-pub { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1rem; text-align: center; box-shadow: var(--shadow); }
.stat-pub b { display: block; font-size: 1.45rem; color: var(--green); }
.stat-pub span { font-size: .8rem; color: var(--muted); }

/* ============ صفحات الفورمات ============ */
.form-page { max-width: 660px; margin: 3rem auto 4rem; padding-inline: 4%; }
.panel.wide { text-align: right; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .8rem; margin: .3rem 0 1.1rem; }
@media (max-width: 480px) { .check-grid { grid-template-columns: 1fr; } }
.check-grid label { display: flex; align-items: center; gap: .55rem; font-size: .87rem; background: var(--sand); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; cursor: pointer; font-weight: 600; color: var(--ink); }
.check-grid input { accent-color: var(--green); width: 17px; height: 17px; }

/* ============ صفحة الماسح ============ */
.checkin-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .checkin-grid { grid-template-columns: 1fr; } }
.scan-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.4rem; }
.scan-panel h3 { color: var(--green-heading); font-size: 1rem; margin-bottom: .9rem; }
#qr-reader { width: 100%; border-radius: 14px; overflow: hidden; background: #0d1b10; min-height: 260px; }
.result-empty { text-align: center; color: var(--muted); padding: 1.6rem 1rem; font-size: .88rem; line-height: 2; }
.search-input { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: .95rem; margin-bottom: 1rem; }
.search-input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(6,120,44,.12); }
.guest-hit { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .8rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: #fff; flex-wrap: wrap; }
.guest-hit .info b { font-size: 1.05rem; color: var(--ink); }
.guest-hit .info span { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.big-result { border-radius: var(--radius-lg); padding: 1.7rem 1.3rem; text-align: center; margin-bottom: 1rem; }
.big-result.ok { background: #e8f4ec; border: 2px solid var(--green); }
.big-result.err { background: #fdecea; border: 2px solid var(--danger); }
.big-result h3 { font-size: 1.35rem; }
.big-result.ok h3 { color: var(--green); }
.big-result.err h3 { color: var(--danger); }
.big-result p { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.btn-checkin { background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; font-size: .92rem; }
.btn-checkin:hover { background: var(--green-heading); }

/* ============ فلاتر وجداول الإدارة ============ */
.filter-bar { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.2rem; align-items: center; }
.filter-bar input, .filter-bar select { padding: .6rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .86rem; background: #fff; }
.filter-bar input[type=text] { min-width: 230px; }
.pager { display: flex; gap: .9rem; align-items: center; justify-content: center; margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.pager a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1.1rem; font-weight: 700; color: var(--green); }
.mini-btn { display: inline-block; border-radius: 999px; padding: .32rem .85rem; font-size: .75rem; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--green); }
.mini-btn.wa { color: #128C7E; border-color: #bfe6df; }
details.add-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.4rem; }
details.add-box summary { padding: 1rem 1.3rem; font-weight: 700; color: var(--green-heading); cursor: pointer; }
details.add-box[open] summary { border-bottom: 1px solid var(--line); }
details.add-box .box-body { padding: 1.3rem; }

/* ============ بلوك QR المستثمرين ============ */
.qr-cta { display: flex; gap: 2.2rem; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.qr-cta .txt { max-width: 320px; text-align: right; }
.qr-cta .txt h3 { color: var(--green-heading); margin-bottom: .5rem; }
.qr-cta .txt p { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }

/* ============ طلب استثماري مباشر (صفحة المستثمرين) ============ */
.invest-grid,
.contact-grid {
  display: grid; grid-template-columns: 1.45fr .95fr;
  gap: 1.6rem; align-items: start;
}
@media (max-width: 900px) {
  .invest-grid, .contact-grid { grid-template-columns: 1fr; }
}

.invest-form .eyebrow {
  color: var(--brand-orange); font-weight: 700; font-size: .85rem; letter-spacing: .5px;
}
.invest-title { color: var(--green-heading); font-size: clamp(1.25rem, 2.4vw, 1.65rem); margin: .35rem 0 .5rem; }
.invest-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; line-height: 1.9; }

/* ============ البطاقة الجانبية (QR / بيانات التواصل) ============ */
.side-card {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem; text-align: center;
}
.side-card h3 { color: var(--green-heading); font-size: 1.02rem; margin-bottom: .3rem; }
.side-card > p { color: var(--muted); font-size: .85rem; line-height: 2; }
.side-card .qr-frame { margin: .9rem 0 1rem; }
.side-card .qr-frame img { width: 190px; height: 190px; }

.side-points {
  list-style: none; margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line); text-align: right;
}
.side-points li {
  position: relative; padding-inline-start: 1.4rem; margin-bottom: .6rem;
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
.side-points li::before {
  content: "✓"; position: absolute; inset-inline-start: 0;
  color: var(--green); font-weight: 800;
}

/* ============ بيانات التواصل — بجانب نموذج «تواصل معنا» ============ */
.contact-aside { text-align: right; }
.contact-aside h3 { text-align: right; margin-bottom: 1.1rem; }

.info-list { list-style: none; }
.info-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { font-size: 1.05rem; line-height: 1.6; flex: none; }
.info-list b {
  display: block; color: var(--green-heading);
  font-size: .78rem; font-weight: 700; margin-bottom: .18rem;
}
.info-list a, .info-list span { font-size: .89rem; color: var(--ink); line-height: 1.8; }
.info-list a { color: var(--green); font-weight: 700; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-list [dir="ltr"] { display: inline-block; direction: ltr; unicode-bidi: isolate; }

.aside-cta { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.aside-cta p { font-size: .85rem; color: var(--muted); margin-bottom: .7rem; }

/* ============ زر ختامي وسط القسم ============ */
.section-cta { text-align: center; margin-top: 2.4rem; }

/* ============ رابط جهة التطوير في الفوتر ============ */
.site-footer .credit-link {
  display: inline; color: var(--lime); font-weight: 700; opacity: 1;
}
.site-footer .credit-link:hover { text-decoration: underline; }

/* ============ شاشات لوحة التحكم الجديدة ============ */
.page-hint {
  background: var(--sand); border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1.1rem; font-size: .85rem; color: var(--muted);
  line-height: 2; margin-bottom: 1.3rem;
}
.page-hint a { color: var(--green); font-weight: 700; }
.section-sub { color: var(--green-heading); font-size: 1.05rem; margin: 1.8rem 0 1rem; }

/* صندوق قابل للطي (إضافة / تعديل) */
.panel-box, .lead-edit, .row-edit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 1.2rem; overflow: hidden;
}
.panel-box > summary, .lead-edit > summary {
  cursor: pointer; padding: .85rem 1.1rem; font-weight: 700; font-size: .88rem;
  color: var(--green-heading); background: var(--sand); list-style: none;
}
.panel-box > summary::-webkit-details-marker,
.lead-edit > summary::-webkit-details-marker,
.row-edit > summary::-webkit-details-marker { display: none; }
.panel-box > summary::after, .lead-edit > summary::after { content: " ▾"; opacity: .6; }
.panel-box[open] > summary::after, .lead-edit[open] > summary::after { content: " ▴"; }
.box-body { padding: 1.2rem 1.1rem; }
.lead-edit { margin: 1rem 0 0; border-radius: 12px; }
.row-edit { border: 0; background: transparent; margin: 0; overflow: visible; }
.row-edit > summary { list-style: none; cursor: pointer; display: inline-block; }
.row-edit .box-body { background: var(--sand); border-radius: 12px; margin-top: .6rem; min-width: 260px; }

/* بطاقة اهتمام / رسالة */
.lead-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin-bottom: 1rem;
}
.lead-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.lead-head-side { text-align: left; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.lead-meta { display: block; font-size: .76rem; color: var(--muted); margin-top: .2rem; }
.lead-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.tag {
  background: rgba(6,120,44,.08); color: var(--green); border: 1px solid rgba(6,120,44,.18);
  border-radius: 999px; padding: .2rem .7rem; font-size: .76rem; font-weight: 600;
}
.lead-facts {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .8rem;
  color: var(--muted); padding-top: .8rem; border-top: 1px solid var(--line);
}
.lead-facts b { color: var(--ink); font-weight: 600; }
.lead-notes {
  background: var(--sand); border-radius: 10px; padding: .7rem .9rem;
  font-size: .84rem; line-height: 1.9; margin-top: .8rem; white-space: pre-line;
}
.msg-subject { font-weight: 700; font-size: .9rem; margin: .7rem 0 .3rem; color: var(--ink); }
.msg-body {
  font-size: .85rem; line-height: 2; color: var(--muted);
  white-space: pre-line; margin-bottom: .9rem;
}

/* سجل المتابعة */
.follow-item {
  border-inline-start: 3px solid var(--lime); background: var(--sand);
  border-radius: 0 10px 10px 0; padding: .65rem .9rem; margin-bottom: .6rem;
}
.follow-head { display: flex; justify-content: space-between; gap: .8rem; font-size: .76rem; margin-bottom: .25rem; }
.follow-head b { color: var(--green-heading); }
.follow-head span { color: var(--muted); }
.follow-item p { font-size: .85rem; line-height: 1.9; }
.follow-empty { font-size: .84rem; color: var(--muted); padding: .5rem 0 1rem; }
.inline-form { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }

/* المناطق */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.zone-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem; text-align: center;
}
.zone-qr { background: var(--sand); border-radius: 12px; padding: .8rem; margin-bottom: .9rem; }
.zone-qr img { width: 100%; max-width: 150px; height: auto; }
.zone-card h3 { color: var(--green-heading); font-size: .97rem; margin-bottom: .35rem; }
.zone-desc { font-size: .8rem; color: var(--muted); line-height: 1.9; min-height: 2.6em; }
.zone-facts { display: flex; justify-content: center; align-items: center; gap: .7rem; font-size: .8rem; color: var(--muted); margin: .8rem 0; }
.zone-links { display: flex; gap: .5rem; justify-content: center; }

/* التقارير */
.export-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.6rem; }
.report-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.report-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem;
}
.report-box h3 { color: var(--green-heading); font-size: .93rem; margin-bottom: .7rem; }
table.data.mini { width: 100%; font-size: .84rem; }
table.data.mini td { padding: .45rem .3rem; border-bottom: 1px solid var(--line); }
table.data.mini td.num { text-align: left; font-weight: 700; width: 3.5rem; }
.bar-cell { width: 40%; }
.bar { display: block; height: 7px; border-radius: 99px; background: var(--lime); min-width: 2px; }

/* الصلاحيات */
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.role-card {
  background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--green);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.role-card h3 { color: var(--green-heading); font-size: .97rem; }
.role-count { font-size: .74rem; color: var(--brand-orange); font-weight: 700; }
.role-card p { font-size: .83rem; color: var(--muted); line-height: 1.95; margin-top: .5rem; }
table.perms .perm-col { text-align: center; width: 6.5rem; }
.perm-desc { font-size: .77rem; color: var(--muted); margin-top: .2rem; line-height: 1.8; }
.perm-yes { color: var(--green); font-weight: 800; font-size: 1.05rem; }
.perm-no { color: var(--line); font-weight: 800; }

/* عناصر مساعدة */
.switch { display: flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 600; cursor: pointer; }
.switch input { width: 17px; height: 17px; accent-color: var(--green); }
.field-hint { display: block; font-size: .74rem; color: var(--muted); margin-top: .25rem; }
.btn-outline-green {
  background: transparent; border: 1.5px solid var(--green); color: var(--green);
}
.btn-outline-green:hover { background: var(--green); color: #fff; }
