@media print {
  @page { size: A4 portrait; margin: 14mm 13mm 15mm; }
  * { box-shadow: none !important; text-shadow: none !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { width: auto; margin: 0; background: #fff !important; color: #2f2327; font-size: 10.5pt; line-height: 1.55; }
  .site-header { display: none !important; }
  main { display: block; }
  section { padding: 0 !important; margin: 0 !important; background: #fff !important; color: #2f2327 !important; }

  /* صفحة الغلاف */
  .hero { height: 267mm; min-height: 267mm; display: flex !important; align-items: center; justify-content: center; text-align: center; page-break-after: always; background: linear-gradient(145deg,#fff8f5,#f5dfe3) !important; border-top: 8mm solid #72283d; }
  .hero-copy { max-width: 155mm; margin: 0 auto; }
  .hero .eyebrow { font-size: 12pt; }
  .hero h1 { font-size: 34pt !important; line-height: 1.25; margin: 10mm 0 7mm; }
  .hero-text { font-size: 14pt; max-width: 145mm; margin: auto; color: #66585d !important; }
  .hero-actions, .hero-visual { display: none !important; }
  .hero-stats { justify-content: center; gap: 14mm; margin-top: 16mm; }
  .hero-stats strong { font-size: 20pt; }
  .hero-stats span { font-size: 9pt; }

  /* بنية كل فصل */
  .intro, .feature-section, .journey, .systems, .admin-section, .customer-section,
  .delivery-section, .merchant-section, .technology, .launch, .business {
    page-break-before: always;
    padding-top: 4mm !important;
  }
  .intro > .eyebrow, .journey > .eyebrow, .business > .eyebrow { text-align: right; }
  .intro > h2, .journey > h2, .business > h2 { text-align: right; }
  .intro > p, .journey > p, .business > p { text-align: right; }
  .eyebrow { font-size: 9pt; margin: 0 0 2mm; color: #a93652 !important; }
  .eyebrow:before { width: 8mm; }
  h2, .intro h2, .journey h2, .systems h2, .business h2,
  .admin-heading h2, .customer-head h2, .delivery-head h2, .merchant-head h2,
  .tech-heading h2, .launch h2, .feature-copy h2 {
    font-size: 23pt !important; line-height: 1.25; margin: 0 0 3mm !important; color: #2f2327 !important;
  }
  h3 { color: #3b2b31 !important; }
  p { orphans: 3; widows: 3; }

  .admin-heading, .customer-head, .delivery-head, .merchant-head, .tech-heading,
  .systems > div:first-child, .launch > div:first-child, .feature-copy {
    display: block !important; margin: 0 0 8mm !important; text-align: right !important;
  }
  .admin-heading > p, .customer-head > p, .delivery-head > p, .merchant-head > p,
  .tech-heading > p:last-child { color: #6f6267 !important; max-width: none; }

  /* شبكة بطاقات واضحة ومقروءة */
  .roles, .admin-modules, .customer-permissions, .delivery-permissions,
  .merchant-permissions, .income, .income.income-two, .tech-explain, .system-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4mm !important;
    margin-top: 5mm !important;
  }
  .roles article, .admin-modules article, .customer-permissions article,
  .delivery-permissions article, .merchant-permissions article, .income article,
  .tech-explain article, .system-grid article {
    display: flex !important; min-height: 0 !important; padding: 4mm !important;
    margin: 0 !important; background: #fffaf8 !important; border: .3mm solid #e6d5d9 !important;
    border-radius: 2mm !important; break-inside: avoid; page-break-inside: avoid;
  }
  .roles article { display: block !important; }
  .roles p { min-height: 0 !important; }
  .roles article a { display: none; }
  .admin-modules article > span, .customer-permissions article > span,
  .delivery-permissions article > span, .merchant-permissions article > span { flex: 0 0 9mm; }
  .admin-modules h3, .customer-permissions h3, .delivery-permissions h3,
  .merchant-permissions h3 { font-size: 11pt !important; margin: 0 0 1mm !important; }
  .admin-modules p, .customer-permissions p, .delivery-permissions p,
  .merchant-permissions p, .income p, .roles p { font-size: 8.6pt !important; color: #6b5d62 !important; }

  /* إزالة عناصر المعاينة المصممة للشاشة */
  .dashboard-preview, .customer-flow, .delivery-phone, .merchant-summary,
  .bouquet-card, .architecture { display: none !important; }
  .merchant-layout, .delivery-layout { display: block !important; }
  .delivery-limits { break-inside: avoid; margin-top: 5mm !important; border: .3mm solid #bad2c8 !important; }

  /* الأقسام العامة */
  .feature-section { display: block !important; }
  .choices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4mm; }
  .choices li, .secret { break-inside: avoid; background: #fff8f6 !important; border: .3mm solid #e6d5d9 !important; padding: 4mm; border-radius: 2mm; }
  .journey .steps { grid-template-columns: repeat(4,1fr) !important; gap: 3mm; }
  .steps:before { display: none; }
  .steps div { border: .3mm solid #e6d5d9; padding: 4mm 2mm; border-radius: 2mm; break-inside: avoid; }
  .systems { display: block !important; }
  .system-grid article { display: grid !important; }

  /* التقنية والإطلاق */
  .technology { color: #2f2327 !important; }
  .tech-explain article { display: block !important; border-top: 1mm solid #a93652 !important; }
  .tech-explain p, .tech-statement { color: #6b5d62 !important; }
  .tech-statement { margin-top: 6mm; border: .3mm solid #e6d5d9 !important; background: #fff8f6 !important; break-inside: avoid; }
  .launch { display: block !important; }
  .launch p, .timeline small { color: #6b5d62 !important; }
  .timeline > div { border-bottom: .3mm solid #e6d5d9 !important; break-inside: avoid; }
  .income.income-two { max-width: none; }
  .income.income-two article { min-height: 0; display: block !important; }

  /* خاتمة */
  .cta { page-break-before: always; min-height: 245mm; margin: 0 !important; padding: 25mm !important; display: flex !important; flex-direction: column; justify-content: center; text-align: center; background: #f1dfe2 !important; }
  .cta h2 { font-size: 28pt; }
  .cta .primary-button { display: none; }
  footer { display: flex; padding: 5mm 0 0; border-top: .3mm solid #e6d5d9; font-size: 8pt; }
  footer .brand { font-size: 10pt; }
  a { color: inherit !important; text-decoration: none !important; }
}
