/* فاتورة — موقع تعريفي (RTL) */
:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #142032;
  --muted: #5a6b7d;
  --primary: #0d3b66;
  --primary-soft: #e4eef8;
  --accent: #1e6bb8;
  --tag-bg: #eef4fb;
  --tag-border: #c5d6eb;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(13, 59, 102, 0.08);
  --font: "Tajawal", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0c1219;
  --surface: #151d28;
  --text: #e8eef5;
  --muted: #9aacbd;
  --primary: #7eb8ea;
  --primary-soft: #1a2838;
  --accent: #5a9fd4;
  --tag-bg: #1a2838;
  --tag-border: #2d3f56;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  inset-inline-start: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  z-index: 9999;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

.btn-theme {
  border: 1px solid var(--tag-border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.btn-theme:hover {
  background: var(--primary-soft);
}

/* شريط علوي: على الموبايل القائمة تُفتح من زر — بدل سطور كثيرة تغطي نصف الشاشة */
.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
  }

  .brand {
    font-size: 1.2rem;
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--tag-border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
  }

  .nav-toggle:hover {
    background: var(--primary-soft);
  }

  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 10px 16px 14px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 150;
  }

  [data-theme="dark"] .nav-links {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  }

  .site-header.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links .btn-theme {
    margin-top: 6px;
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--primary);
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #164a7a);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 59, 102, 0.25);
}
.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.sector-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--primary) 8%, transparent);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--primary);
}

.pill-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--text);
  font-size: 0.95rem;
  border: 1px solid var(--tag-border);
}

.site-footer-wrap {
  margin-top: 48px;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 20px;
  background: linear-gradient(180deg, var(--surface), var(--primary-soft));
  border-top: 1px solid var(--tag-border);
  text-align: center;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--primary);
}
.site-footer p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ——— CTA احترافي (تواصل) ——— */
.cta-pro {
  position: relative;
  padding: 56px 20px 48px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 107, 184, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(184, 134, 11, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0e14 0%, #06080c 100%);
}

.cta-pro__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.15), transparent 45%);
}

.cta-pro__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 28px 32px;
  border-radius: 22px;
  background: rgba(18, 22, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.cta-pro__title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fafafa;
  letter-spacing: -0.02em;
}

.cta-pro__lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #a8b0bd;
}

.cta-pro__lead strong {
  color: #e2e8f0;
  font-weight: 800;
}

.cta-pro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}

.cta-pro__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  border: none;
  cursor: pointer;
  min-height: 52px;
}
.cta-pro__btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  filter: brightness(1.05);
}

.cta-pro__btn--wa {
  background: linear-gradient(180deg, #2fe066, #1fa855);
  color: #fff;
  box-shadow: 0 10px 32px rgba(31, 168, 85, 0.45);
  padding-inline: 26px;
}

.cta-pro__btn--mail {
  background: rgba(45, 52, 64, 0.95);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  word-break: break-all;
}

.cta-pro__wa-icon {
  flex-shrink: 0;
}

.site-footer-bottom {
  padding: 20px;
  text-align: center;
  background: #06080c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-bottom .footer-meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.88rem;
}

.cta-pro__back {
  margin: 24px 0 0;
  font-size: 0.95rem;
}
.cta-pro__back-link {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
}
.cta-pro__back-link:hover {
  text-decoration: underline;
}

html[data-theme="light"] .cta-pro {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 107, 184, 0.12), transparent 55%),
    linear-gradient(180deg, #e8eef6 0%, #dce6f2 100%);
}
html[data-theme="light"] .cta-pro__inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(13, 59, 102, 0.12);
  box-shadow: 0 20px 60px rgba(13, 59, 102, 0.12);
}
html[data-theme="light"] .cta-pro__title {
  color: #0d3b66;
}
html[data-theme="light"] .cta-pro__lead {
  color: #5a6b7d;
}
html[data-theme="light"] .cta-pro__lead strong {
  color: #142032;
}
html[data-theme="light"] .site-footer-bottom {
  background: #dce6f2;
  border-top-color: rgba(13, 59, 102, 0.1);
}
html[data-theme="light"] .site-footer-bottom .footer-meta {
  color: #5a6b7d;
}

body.sectors-page .sectors-footer-wrap .cta-pro {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}
body.sectors-page .site-footer-bottom--sectors {
  background: #050505;
}

html[data-theme="light"] body.sectors-page .site-footer-bottom--sectors {
  background: var(--primary-soft);
  border-top-color: var(--tag-border);
}

.footer-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.disclaimer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 32px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 520px) {
  .hero {
    padding-top: 32px;
  }
}

/* ——— صفحة الأنشطة (وضع داكن افتراضي، يُفتح الوضع الفاتح بزر الثيم) ——— */
body.sectors-page {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --primary: #fafafa;
  --primary-soft: #1c1c1e;
  --accent: #38bdf8;
  --tag-bg: #27272a;
  --tag-border: #3f3f46;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] body.sectors-page {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #142032;
  --muted: #5a6b7d;
  --primary: #0d3b66;
  --primary-soft: #e4eef8;
  --accent: #1e6bb8;
  --tag-bg: #eef4fb;
  --tag-border: #c5d6eb;
  --shadow: 0 12px 40px rgba(13, 59, 102, 0.08);
}

body.sectors-page {
  background: var(--bg);
  color: var(--text);
}

body.sectors-page .sectors-header {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: #2a2a2a;
}

html[data-theme="light"] body.sectors-page .sectors-header {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom-color: color-mix(in srgb, var(--primary) 12%, transparent);
}

body.sectors-page .sectors-brand {
  color: var(--text);
}
body.sectors-page .sectors-brand .brand-mark {
  background: linear-gradient(135deg, #1e3a5f, #0ea5e9);
}

body.sectors-page .sectors-nav a {
  color: var(--muted);
}
body.sectors-page .sectors-nav a:hover {
  color: var(--text);
  background: var(--primary-soft);
}

body.sectors-page .sectors-theme {
  background: var(--surface);
  border-color: var(--tag-border);
  color: var(--text);
}

body.sectors-page .sectors-hero .sectors-badge {
  background: var(--primary-soft);
  color: var(--accent);
}

body.sectors-page .sectors-hero__erp-line {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, var(--muted));
}

body.sectors-page .sectors-hero h1 {
  color: var(--text);
}

body.sectors-page .sectors-lead {
  color: var(--muted);
}

body.sectors-page .sectors-btn-primary {
  background: linear-gradient(135deg, #1e3a5f, #0369a1);
  box-shadow: 0 8px 28px rgba(3, 105, 161, 0.35);
}

body.sectors-page .sectors-btn-ghost {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--tag-border);
}

body.sectors-page .sectors-section .section-head h2 {
  color: var(--text);
}

body.sectors-page .section-count {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

body.sectors-page .sectors-card {
  background: var(--surface);
  border: 1px solid #2a2a2a;
  box-shadow: var(--shadow);
}

html[data-theme="light"] body.sectors-page .sectors-card {
  border: 1px solid color-mix(in srgb, var(--primary) 8%, transparent);
}

body.sectors-page .sectors-card h3 {
  color: var(--text);
}

body.sectors-page .sectors-card p {
  color: var(--muted);
}

body.sectors-page .sectors-tags .tag {
  background: var(--tag-bg);
  border-color: var(--tag-border);
  color: var(--text);
  font-size: 0.76rem;
}

body.sectors-page .card--highlight {
  border-color: #b8860b;
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.35), var(--shadow);
}

/* ——— شريط المديولات ——— */
.modules-strip {
  padding-top: 32px;
  padding-bottom: 8px;
  border-top: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
}

.modules-strip__chips {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.modules-strip__chip {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--tag-border);
}

.modules-strip__chip--accent {
  background: color-mix(in srgb, var(--accent) 14%, var(--primary-soft));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--tag-border));
}

.modules-strip__footnote {
  margin: 22px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

html[data-theme="dark"] .modules-strip__chip {
  color: var(--text);
}

/* ——— لوحة التحكم (واجهة البرنامج) ——— */
.section--dashboard {
  padding-top: 48px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--primary-soft) 40%, var(--bg)));
}

html[data-theme="dark"] body.page-home .section--dashboard {
  background: linear-gradient(180deg, var(--bg), #0f172a);
}

.dashboard-showcase__intro .section-head h2 {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dashboard-showcase__intro .section-head p {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
}

.dashboard-showcase__roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 28px auto 0;
}

.dashboard-role-card {
  margin: 0;
  padding: 20px 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: var(--shadow);
}

.dashboard-role-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
}

.dashboard-role-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

.dashboard-showcase__themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 36px auto 0;
  max-width: min(1120px, 100%);
}

.dashboard-theme-shot {
  margin: 0;
}

.dashboard-theme-shot__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
}

html[data-theme="dark"] .dashboard-theme-shot__label {
  color: var(--text);
}

.dashboard-theme-shot__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
}

.dashboard-theme-shot__badge--light {
  background: linear-gradient(145deg, #fef9c3, #fde047);
  color: #713f12;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
}

.dashboard-theme-shot__badge--dark {
  background: linear-gradient(145deg, #1e293b, #334155);
  color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.5);
}

.dashboard-theme-shot__frame {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: 0 18px 48px rgba(13, 59, 102, 0.12);
}

.dashboard-theme-shot__frame--light {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--tag-border));
}

.dashboard-theme-shot__frame--dark {
  border-color: #334155;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .dashboard-theme-shot__frame {
  border-color: var(--tag-border);
}

.dashboard-theme-shot__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.dashboard-theme-shot__missing {
  margin: 0;
  border-radius: 0;
  min-height: 180px;
}

.dashboard-showcase__theme-note {
  margin: 18px auto 0;
  max-width: 48rem;
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted);
}

.dashboard-showcase__theme-note strong {
  color: var(--text);
}

@media (max-width: 800px) {
  .dashboard-showcase__themes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-showcase__roles {
    grid-template-columns: 1fr;
  }
}

.dashboard-sidebar-highlight {
  margin: 24px auto 0;
  max-width: 52rem;
  padding: 20px 22px 22px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--tag-border));
  border-inline-start: 4px solid var(--accent);
  box-shadow: 0 10px 36px rgba(13, 59, 102, 0.08);
}

html[data-theme="dark"] .dashboard-sidebar-highlight {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: var(--tag-border);
  border-inline-start-color: var(--accent);
  box-shadow: none;
}

.dashboard-sidebar-highlight h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--primary);
}

html[data-theme="dark"] .dashboard-sidebar-highlight h3 {
  color: var(--text);
}

.dashboard-sidebar-highlight p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--muted);
}

/* ——— الإعدادات (الموقع) ——— */
.section--settings-power {
  padding-top: 44px;
  padding-bottom: 48px;
  border-top: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
  background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--primary-soft) 35%, var(--bg)));
}

html[data-theme="dark"] body.page-home .section--settings-power {
  background: linear-gradient(180deg, var(--bg), #0f172a);
}

html[data-theme="dark"] body.sectors-page .section--settings-power {
  background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--surface) 88%, #0f172a));
}

.settings-power__lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.settings-tldr {
  list-style: none;
  margin: 22px auto 0;
  padding: 0;
  max-width: 920px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.settings-tldr li {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--tag-border));
  box-shadow: 0 4px 14px rgba(13, 59, 102, 0.06);
}

html[data-theme="dark"] .settings-tldr li {
  color: var(--text);
  border-color: var(--tag-border);
  background: color-mix(in srgb, var(--surface) 92%, #000);
}

.settings-tldr--in-callout {
  margin-top: 14px;
  margin-bottom: 0;
  max-width: none;
}

/* شريط «تفاصيل إضافية» بنفس روح الهيدر (شريط علوي شفاف + ضبابية) */
.settings-deeper {
  margin: 22px auto 0;
  max-width: 1120px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: 0 8px 28px rgba(13, 59, 102, 0.06);
}

html[data-theme="dark"] .settings-deeper {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  border-color: color-mix(in srgb, var(--tag-border) 85%, transparent);
}

.settings-deeper summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
  user-select: none;
}

.settings-deeper summary::-webkit-details-marker {
  display: none;
}

.settings-deeper summary::marker {
  content: "";
}

.settings-deeper summary::after {
  content: "\25BC";
  margin-inline-start: auto;
  flex-shrink: 0;
  font-size: 0.55rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.95;
  transition: transform 0.2s ease;
}

.settings-deeper[open] summary::after {
  transform: rotate(180deg);
}

.settings-deeper summary:hover {
  background: var(--primary-soft);
}

.settings-deeper__body {
  margin-top: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: start;
  background: color-mix(in srgb, var(--surface) 96%, var(--bg));
}

html[data-theme="dark"] .settings-deeper__body {
  background: color-mix(in srgb, var(--surface) 88%, #000);
  border-top-color: var(--tag-border);
}

.settings-deeper__h {
  margin: 14px 0 8px;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--primary);
}

html[data-theme="dark"] .settings-deeper__h {
  color: var(--text);
}

.settings-deeper__body ul {
  margin: 0 0 8px;
  padding-inline-start: 1.2rem;
}

.settings-deeper__body li {
  margin-bottom: 6px;
}

.settings-deeper__note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.settings-power__shortcut-callout {
  margin: 22px auto 0;
  max-width: min(1000px, 100%);
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--tag-border));
  box-shadow: 0 16px 44px rgba(13, 59, 102, 0.1);
}

html[data-theme="dark"] .settings-power__shortcut-callout {
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
  border-color: var(--tag-border);
  box-shadow: none;
}

.settings-power__shortcut-text {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.settings-power__shortcut-title {
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 900;
  color: var(--primary);
}

html[data-theme="dark"] .settings-power__shortcut-title {
  color: var(--text);
}

.settings-power__shortcut-text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--muted);
}

.settings-power__shortcut-text p strong {
  color: var(--text);
}

.section--why {
  padding-top: 8px;
}

.section--why .pill-note a {
  font-weight: 700;
}

.screenshot-help {
  margin-top: 40px;
  max-width: 720px;
  margin-inline: auto;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--tag-border);
}

.screenshot-help summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--primary);
  list-style-position: outside;
}

.screenshot-help__body {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--tag-border);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

.screenshot-help__body ol {
  margin: 0;
  padding-inline-start: 1.35rem;
}

.screenshot-help__body li {
  margin-bottom: 10px;
}

.screenshot-help__path {
  direction: ltr;
  unicode-bidi: embed;
}

kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--tag-border);
  background: var(--primary-soft);
}

html[data-theme="dark"] .screenshot-help summary {
  color: var(--text);
}

/* ——— مزايا متقدمة + لقطات شاشة ——— */
.section--deep {
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
}

.deep-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.05fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 56px;
}

.deep-feature--reverse .deep-feature__text {
  order: 2;
}

.deep-feature--reverse .feature-shot {
  order: 1;
}

.deep-feature__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 12px;
}

.deep-feature__title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
}

.deep-feature__p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.deep-feature__p--muted {
  color: var(--muted);
  font-size: 0.98rem;
}

.deep-feature__list {
  margin: 16px 0 0;
  padding-inline-start: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
}

.deep-feature__list li {
  margin-bottom: 6px;
}

.feature-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
  box-shadow: var(--shadow);
}

.feature-shot__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.feature-shot__missing {
  min-height: 220px;
  padding: 28px 20px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  background: repeating-linear-gradient(
    -45deg,
    var(--primary-soft),
    var(--primary-soft) 8px,
    color-mix(in srgb, var(--primary-soft) 70%, var(--surface)) 8px,
    color-mix(in srgb, var(--primary-soft) 70%, var(--surface)) 16px
  );
  border: 2px dashed var(--tag-border);
}

/* لا تستخدم display:flex على العنصر وهو يحمل hidden — يتجاوز إخفاء المتصفح */
.feature-shot__missing:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-shot__missing code {
  font-size: 0.85rem;
  direction: ltr;
  unicode-bidi: embed;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--tag-border);
}

@media (max-width: 900px) {
  .deep-feature,
  .deep-feature--reverse {
    grid-template-columns: 1fr;
  }

  .deep-feature--reverse .deep-feature__text,
  .deep-feature--reverse .feature-shot {
    order: unset;
  }
}

html[data-theme="dark"] .deep-feature__title {
  color: var(--primary);
}

/* ——— الصفحة الرئيسية: هيرو ERP بريميوم + قيمة السعر ——— */
body.page-home {
  background: var(--bg);
}

.hero.hero--premium {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(168deg, #02060c 0%, #0a1628 42%, #071018 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-premium__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(circle at 85% 60%, rgba(184, 134, 11, 0.12), transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(30, 107, 184, 0.18), transparent 45%);
  pointer-events: none;
}

.hero-premium__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}
.hero-premium__glow--1 {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  background: #1e6bb8;
  top: -10%;
  inset-inline-start: -15%;
}
.hero-premium__glow--2 {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  background: #b8860b;
  bottom: -5%;
  inset-inline-end: -10%;
}

.hero-premium__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 96px) 22px clamp(40px, 7vw, 72px);
  text-align: center;
}

.hero-premium__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-premium__pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-premium__pill--gold {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.35), rgba(212, 175, 55, 0.2));
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff8e7;
}

.hero-premium__eyebrow {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(148, 197, 255, 0.95);
  letter-spacing: 0.02em;
}

.hero-premium__title {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 5.2vw, 3.15rem);
  font-weight: 900;
  line-height: 1.18;
  color: #f8fafc;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-premium__erp {
  background: linear-gradient(135deg, #7dd3fc, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-premium__tagline {
  margin: 0 0 14px;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.92);
  max-width: 52rem;
  margin-inline: auto;
}

.hero-premium__tagline strong {
  color: #fff;
}

.hero-premium__lead {
  margin: 0 auto 26px;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.95);
}

.hero-premium__stats {
  list-style: none;
  margin: 0 auto 32px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  max-width: 52rem;
}

.hero-premium__stats li {
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.88);
}

.hero-premium__stats strong {
  color: #7dd3fc;
  font-size: 1.05rem;
  font-weight: 900;
  margin-inline-end: 6px;
}

.hero-actions--premium {
  gap: 14px;
}

body.page-home .btn--glow {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  padding-inline: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 40px rgba(14, 165, 233, 0.45);
}

body.page-home .btn--glow:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 48px rgba(14, 165, 233, 0.55);
}

body.page-home .btn--on-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.page-home .btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section-head--center {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.section-head--center .section-head p,
.section-head--center p {
  margin-inline: auto;
}

.section.erp-value {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-block: 48px 40px;
  padding-inline: clamp(20px, 4vw, 48px);
  box-sizing: border-box;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 55%, var(--bg)), var(--bg));
}

.section.erp-value .section-head,
.section.erp-value .erp-value__grid {
  max-width: 1120px;
  margin-inline: auto;
}

html[data-theme="dark"] body.page-home .section.erp-value {
  background: linear-gradient(180deg, #0f172a, var(--bg));
}

.erp-value__subtitle {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.erp-value__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.erp-value__card {
  padding: 28px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: 0 16px 48px rgba(13, 59, 102, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.erp-value__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(13, 59, 102, 0.12);
}

.erp-value__card--accent {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--tag-border));
  background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface)));
}

.erp-value__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.erp-value__card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
}

.erp-value__card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
}

.erp-value__card p strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .erp-value__grid {
    grid-template-columns: 1fr;
  }

  .hero.hero--premium {
    min-height: auto;
  }
}

body.page-home .section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

body.page-home .card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.page-home .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(13, 59, 102, 0.12);
}

html[data-theme="dark"] body.page-home .erp-value__card {
  border-color: var(--tag-border);
}

html[data-theme="dark"] body.page-home .erp-value__card h3 {
  color: var(--text);
}
