/* =====================================================
   report.css — گزارش تحلیلی نیروگاه خورشیدی ۱ مگاوات
   پالت: آبی خورشیدی + نارنجی انرژی + طلایی تابش
   ===================================================== */

/* --- فونت وزیر --- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

/* --- پالت رنگی --- */
:root {
  --sol-navy:       #0A2647;
  --sol-navy-2:     #123F6E;
  --sol-blue:       #1B6B93;
  --sol-blue-light: #A2D2FF;
  --sol-orange:     #E8630A;
  --sol-orange-2:   #F59E0B;
  --sol-yellow:     #FBBF24;
  --sol-yellow-lt:  #FEF3C7;
  --sol-teal:       #00C6A9;
  --sol-teal-dark:  #059669;
  --sol-cream:      #FFFBEB;
  --sol-bg:         #F0F7FF;
  --sol-border:     #BAD5F5;
  --text:           #1E293B;
  --text-2:         #475569;
  --radius:         10px;
  --shadow:         0 2px 16px rgba(10,38,71,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  background: #e4ecf4;
  direction: rtl;
}
/* =====================================================
   صفحه A4
   ===================================================== */
.page {
            width: 210mm;
            min-height: 287mm;
            margin: 10mm auto;
            padding: 5mm 5mm 10mm;
            background: white;
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
            position: relative;
            page-break-after: always;
            border-radius: 2px;
            overflow: hidden;
}

/* --- واترمارک --- */
.watermark-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
}
.watermark {
  position: absolute;
  left: 0; width: 100%;
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  color: var(--sol-navy);
  opacity: .06;
  letter-spacing: 4px;
}
.watermark.top    { top: 5%; }
.watermark.middle { top: 48%; }
.watermark.bottom { bottom: 5%; }

/* --- هدر هر صفحه --- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--sol-border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.page-header .chapter-name {
  font-weight: 700;
  color: var(--sol-navy);
  font-size: .9rem;
}
.page-header .page-num {
  background: linear-gradient(135deg, var(--sol-navy), var(--sol-blue));
  color: white;
  padding: 3px 14px;
  border-radius: 15px;
  font-size: .78rem;
  font-weight: 700;
}

/* --- فوتر هر صفحه --- */
.page-footer {
  position: absolute;
  bottom: 8mm;
  left: 20mm; right: 20mm;
  border-top: 2px solid var(--sol-orange);
  padding-top: 5px;
  font-size: 8.5pt;
  color: var(--text-2);
  text-align: center;
}
.page-footer a {
  color: var(--sol-navy);
  text-decoration: none;
  font-weight: 700;
}

/* --- موبایل --- */
@media screen and (max-width: 700px) {
  .page {
    width: 100%;
    min-height: auto;
    padding: 20px 16px 60px;
    margin: 8px auto;
  }
}

/* =====================================================
   COVER
   ===================================================== */
.rp-cover {
  max-width: 900px;
  margin: 2rem auto;
  background: linear-gradient(135deg, var(--sol-navy) 0%, var(--sol-navy-2) 35%, var(--sol-blue) 70%, var(--sol-teal-dark) 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  color: var(--sol-cream);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(10,38,71,.25);
}

.rp-cover::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sol-orange), var(--sol-yellow), var(--sol-orange));
}

.rp-cover::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,.12) 0%, transparent 70%);
  pointer-events: none;
}

.rp-cover-badge {
  display: inline-block;
  background: rgba(251,191,36,.20);
  border: 1px solid rgba(251,191,36,.5);
  color: var(--sol-yellow);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.rp-cover-logo {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.rp-cover-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1.3;
}

.rp-cover-sub {
  font-size: 1rem;
  color: rgba(255,251,235,.7);
  margin-bottom: 2rem;
  letter-spacing: .05em;
}

.rp-cover-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rp-cs {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(251,191,36,.3);
  border-radius: var(--radius);
  padding: .8rem 1.25rem;
  min-width: 140px;
}

.rp-cs .v {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--sol-yellow);
  line-height: 1;
}

.rp-cs .l {
  font-size: .75rem;
  color: rgba(255,251,235,.65);
  margin-top: .3rem;
}

.rp-cover-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sol-orange), var(--sol-yellow));
  color: var(--sol-navy);
  font-size: .95rem;
  font-weight: 800;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: opacity .2s;
}
.rp-cover-btn:hover { opacity: .9; }

.rp-cover-meta {
  display: flex;
  justify-content: center;
  gap: .75rem;
  font-size: .78rem;
  color: rgba(255,251,235,.5);
}

/* =====================================================
   TOC
   ===================================================== */
.rp-toc {
  border: 2px solid var(--sol-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rp-toc-title {
  background: linear-gradient(135deg, var(--sol-navy), var(--sol-blue));
  color: var(--sol-cream);
  font-size: 1rem;
  font-weight: 800;
  padding: .85rem 1.25rem;
}

.rp-toc-grid { padding: .5rem 0; }

.rp-toc-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--sol-bg);
  transition: background .15s;
  font-size: .9rem;
}
.rp-toc-item:last-child { border-bottom: none; }
.rp-toc-item:hover { background: var(--sol-bg); }

.rp-toc-num {
  font-size: .75rem;
  font-weight: 900;
  color: var(--sol-orange);
  background: rgba(232,99,10,.1);
  border-radius: 5px;
  padding: .15rem .4rem;
  flex-shrink: 0;
}

.rp-toc-text { flex: 1; font-weight: 600; }
.rp-toc-dots { flex: 1; border-bottom: 2px dotted var(--sol-border); margin: 0 .5rem; }
.rp-toc-page { font-size: .8rem; color: var(--sol-orange); font-weight: 700; flex-shrink: 0; }

/* =====================================================
   SECTION HEADER
   ===================================================== */
.rp-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.rp-section-header.eco    { background: linear-gradient(135deg, var(--sol-navy), var(--sol-blue)); }
.rp-section-header.green  { background: linear-gradient(135deg, var(--sol-teal-dark), #065F46); }
.rp-section-header.gold   { background: linear-gradient(135deg, var(--sol-orange), var(--sol-navy)); }
.rp-section-header.brown  { background: linear-gradient(135deg, #78350F, var(--sol-navy-2)); }

.rp-sec-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255,251,235,.3);
  line-height: 1;
  flex-shrink: 0;
}

.rp-sec-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.rp-sec-sub {
  font-size: .8rem;
  color: rgba(255,251,235,.65);
  margin-top: .2rem;
}

.rp-sec-icon {
  margin-right: auto;
  font-size: 1.75rem;
  opacity: .6;
  flex-shrink: 0;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.rp-h3 {
  font-size: .98rem;
  font-weight: 800;
  color: var(--sol-navy);
  margin: 1.5rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--sol-bg);
  position: relative;
}
.rp-h3::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 40px; height: 2px;
  background: var(--sol-orange);
  border-radius: 2px;
}

.rp-p {
  font-size: .9rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: .85rem;
}

.rp-note {
  font-size: .75rem;
  color: var(--text-2);
  opacity: .7;
  margin-top: .4rem;
  font-style: italic;
}

/* =====================================================
   INTRO BOX
   ===================================================== */
.rp-intro-box {
  background: var(--sol-bg);
  border-right: 4px solid var(--sol-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.75rem;
}

/* =====================================================
   KPI ROW
   ===================================================== */
.rp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.rp-kpi {
  background: linear-gradient(135deg, var(--sol-navy), var(--sol-blue));
  border-radius: var(--radius);
  padding: 1rem .75rem;
  text-align: center;
  color: var(--sol-cream);
}

.rp-kpi-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--sol-yellow);
  line-height: 1;
  margin-bottom: .4rem;
}

.rp-kpi-label {
  font-size: .73rem;
  color: rgba(255,251,235,.7);
  line-height: 1.4;
}

/* =====================================================
   TWO COL
   ===================================================== */
.rp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

/* =====================================================
   BAR CHART
   ===================================================== */
.rp-bar-chart {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: .75rem 0;
}

.rp-bar-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.rp-bar-label {
  width: 55px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
  text-align: left;
}

.rp-bar-wrap {
  flex: 1;
  background: var(--sol-bg);
  border-radius: 50px;
  height: 26px;
  overflow: hidden;
}

.rp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sol-blue), var(--sol-teal));
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: .5rem;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  transition: width .8s ease;
}
.rp-bar.summer { background: linear-gradient(90deg, var(--sol-orange), var(--sol-yellow)); }
.rp-bar.autumn { background: linear-gradient(90deg, #78350F, var(--sol-orange)); }
.rp-bar.winter { background: linear-gradient(90deg, #6B7280, #9CA3AF); }

/* =====================================================
   DONUT
   ===================================================== */
.rp-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.rp-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
}

.rp-donut::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: #fff;
  border-radius: 50%;
}

.rp-donut-legend {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
}

.rp-dl-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.d1 { background: var(--sol-navy); }
.d2 { background: var(--sol-orange); }
.d3 { background: var(--sol-blue); }
.d4 { background: var(--sol-teal); }

/* =====================================================
   TAGS
   ===================================================== */
.rp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0 1rem;
}

.rp-tag {
  padding: .35rem .85rem;
  background: var(--sol-bg);
  border: 1.5px solid var(--sol-border);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
}
.rp-tag.hot {
  background: rgba(232,99,10,.1);
  border-color: var(--sol-orange);
  color: var(--sol-orange);
}
.rp-tag.emerging {
  background: rgba(0,198,169,.1);
  border-color: var(--sol-teal);
  color: var(--sol-teal-dark);
}

/* =====================================================
   TABLE
   ===================================================== */
.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
  margin: .75rem 0;
}

.rp-table th {
  background: linear-gradient(135deg, var(--sol-navy), var(--sol-blue));
  color: var(--sol-cream);
  font-weight: 800;
  padding: .65rem .85rem;
  text-align: right;
  white-space: nowrap;
}

.rp-table td {
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--sol-bg);
  color: var(--text);
}

.rp-table tr:last-child td { border-bottom: none; }
.rp-table tr:hover td { background: var(--sol-bg); }
.rp-table td.hi { font-weight: 800; color: var(--sol-teal-dark); }
.rp-table tr.hi td { background: rgba(0,198,169,.07); font-weight: 700; }

/* =====================================================
   INSIGHT BOX
   ===================================================== */
.rp-insight {
  display: flex;
  gap: .85rem;
  padding: 1rem 1.1rem;
  background: rgba(0,198,169,.07);
  border: 1.5px solid rgba(0,198,169,.2);
  border-radius: var(--radius);
  margin: 1.25rem 0;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--text);
}
.rp-insight.gold {
  background: rgba(251,191,36,.08);
  border-color: rgba(251,191,36,.3);
}
.rp-insight-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }

/* =====================================================
   TIMELINE
   ===================================================== */
.rp-timeline-v {
  position: relative;
  padding-right: 1rem;
}

.rp-timeline-v::before {
  content: '';
  position: absolute;
  top: 0; right: 20px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--sol-orange), var(--sol-blue));
  border-radius: 2px;
}

.rp-tlv-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.rp-tlv-item.last { margin-bottom: 0; }

.rp-tlv-marker {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sol-orange), var(--sol-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(232,99,10,.3);
}
.rp-tlv-marker.done {
  background: linear-gradient(135deg, var(--sol-teal), var(--sol-teal-dark));
}

.rp-tlv-num {
  font-size: .85rem;
  font-weight: 900;
  color: #fff;
}

.rp-tlv-content {
  flex: 1;
  background: var(--sol-bg);
  border: 1.5px solid var(--sol-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.rp-tlv-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--sol-navy);
  margin-bottom: .25rem;
}

.rp-tlv-duration {
  font-size: .75rem;
  color: var(--sol-orange);
  font-weight: 700;
  margin-bottom: .6rem;
}

.rp-tlv-desc {
  font-size: .86rem;
  color: var(--text);
  line-height: 1.75;
}

/* =====================================================
   CHECKLIST
   ===================================================== */
.rp-checklist {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.rp-check-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  color: var(--text);
}

.ck {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sol-teal-dark);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* =====================================================
   DOC GRID
   ===================================================== */
.rp-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin: .6rem 0;
}

.rp-doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--sol-border);
  border-radius: 8px;
  padding: .65rem .5rem;
  font-size: .77rem;
  color: var(--text-2);
  font-weight: 600;
}

.rp-doc-icon { font-size: 1.3rem; }

/* =====================================================
   ALERT
   ===================================================== */
.rp-alert {
  display: flex;
  gap: .6rem;
  padding: .7rem .9rem;
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.7;
  margin: .6rem 0;
}
.rp-alert.warn {
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.3);
  color: #78350F;
}
.rp-alert.tip {
  background: rgba(0,198,169,.08);
  border: 1px solid rgba(0,198,169,.2);
  color: var(--sol-teal-dark);
}

/* =====================================================
   PARALLEL STEPS
   ===================================================== */
.rp-parallel-steps {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .75rem 0;
  flex-wrap: wrap;
}

.rp-ps-item {
  flex: 1;
  min-width: 130px;
  background: #fff;
  border: 1.5px solid var(--sol-border);
  border-radius: var(--radius);
  padding: .75rem .65rem;
  text-align: center;
}

.rp-ps-icon { font-size: 1.4rem; margin-bottom: .35rem; display: block; }
.rp-ps-title { font-size: .83rem; font-weight: 800; color: var(--sol-navy); margin-bottom: .2rem; }
.rp-ps-desc { font-size: .73rem; color: var(--text-2); line-height: 1.5; }
.rp-ps-arrow { font-size: 1.2rem; color: var(--sol-orange); flex-shrink: 0; }

/* =====================================================
   SUCCESS BOX
   ===================================================== */
.rp-success-box {
  background: linear-gradient(135deg, var(--sol-teal-dark), #065F46);
  color: var(--sol-cream);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  margin-top: .75rem;
}

/* =====================================================
   TIPS GRID
   ===================================================== */
.rp-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: .75rem 0;
}

.rp-tip-card {
  background: var(--sol-bg);
  border: 1.5px solid var(--sol-border);
  border-radius: var(--radius);
  padding: .85rem .7rem;
  text-align: center;
}

.rp-tip-icon { font-size: 1.4rem; display: block; margin-bottom: .4rem; }
.rp-tip-title { font-size: .83rem; font-weight: 800; color: var(--sol-navy); margin-bottom: .3rem; }
.rp-tip-text { font-size: .75rem; color: var(--text-2); line-height: 1.55; }

/* =====================================================
   GANTT
   ===================================================== */
.rp-gantt {
  border: 1.5px solid var(--sol-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0;
  font-size: .8rem;
}

.rp-gantt-header {
  display: flex;
  background: linear-gradient(135deg, var(--sol-navy), var(--sol-blue));
  color: var(--sol-cream);
  font-weight: 800;
}

.rp-gantt-row {
  display: flex;
  border-bottom: 1px solid var(--sol-bg);
  min-height: 42px;
}
.rp-gantt-row.last { border-bottom: none; }
.rp-gantt-row:hover { background: var(--sol-bg); }

.rp-gantt-label {
  width: 180px;
  flex-shrink: 0;
  padding: .6rem .85rem;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  border-left: 1px solid var(--sol-border);
}

.rp-gantt-header .rp-gantt-label {
  color: var(--sol-cream);
  border-left-color: rgba(255,255,255,.2);
}

.rp-gantt-months {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  padding: .35rem .5rem;
  gap: 2px;
}

.rp-gantt-header .rp-gantt-months { padding: .6rem .5rem; }

.rp-gantt-header .rp-gantt-months span {
  text-align: center;
  font-size: .72rem;
  color: rgba(255,251,235,.8);
}

.rp-gantt-bar {
  height: 22px;
  border-radius: 50px;
}

.phase1 { background: linear-gradient(90deg, var(--sol-orange), var(--sol-yellow)); }
.phase2 { background: linear-gradient(90deg, var(--sol-blue), var(--sol-teal)); }
.phase3 { background: linear-gradient(90deg, var(--sol-navy), var(--sol-blue)); }
.phase4 { background: linear-gradient(90deg, #78350F, var(--sol-orange)); }
.phase5 { background: linear-gradient(90deg, var(--sol-teal-dark), var(--sol-teal)); }
.phase6 { background: linear-gradient(90deg, var(--sol-orange), var(--sol-yellow)); }
.phase7 { background: linear-gradient(90deg, var(--sol-blue), var(--sol-orange)); }
.phase8 { background: linear-gradient(90deg, var(--sol-yellow), #FDE68A); }

.rp-status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 50px;
}
.rp-status.plan   { background: rgba(251,191,36,.12); color: var(--sol-orange); }
.rp-status.build  { background: rgba(0,198,169,.12); color: var(--sol-teal-dark); }
.rp-status.market { background: rgba(27,107,147,.1); color: var(--sol-blue); }
.rp-status.done   { background: rgba(5,150,105,.2); color: var(--sol-teal-dark); font-weight: 900; }

/* =====================================================
   CTA
   ===================================================== */
.rp-cta-box {
  background: linear-gradient(135deg, var(--sol-navy) 0%, var(--sol-navy-2) 35%, var(--sol-blue) 75%, var(--sol-teal-dark) 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--sol-cream);
  position: relative;
  overflow: hidden;
}

.rp-cta-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sol-orange), var(--sol-yellow), var(--sol-orange));
}

.rp-cta-badge {
  display: inline-block;
  background: rgba(251,191,36,.20);
  border: 1px solid rgba(251,191,36,.5);
  color: var(--sol-yellow);
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.rp-cta-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: .75rem;
}

.rp-cta-desc {
  font-size: .9rem;
  color: rgba(255,251,235,.8);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.rp-cta-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .75rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  text-align: right;
}

.rp-cta-feat {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  color: rgba(255,251,235,.85);
}
.rp-cta-feat span { color: var(--sol-yellow); font-weight: 900; }

.rp-cta-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.rp-price-num { font-size: 1.85rem; font-weight: 900; color: var(--sol-yellow); }
.rp-price-unit { font-size: .9rem; color: rgba(255,251,235,.7); }
.rp-price-old { font-size: .85rem; color: rgba(255,251,235,.4); text-decoration: line-through; }

.rp-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sol-orange), var(--sol-yellow));
  color: var(--sol-navy);
  font-size: 1rem;
  font-weight: 800;
  padding: .9rem 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: opacity .2s, transform .2s;
}
.rp-cta-btn:hover { opacity: .92; transform: translateY(-1px); }

.rp-cta-contact {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(251,191,36,.25);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  display: inline-block;
  min-width: 300px;
}

.rp-cc-title { font-size: .8rem; color: rgba(255,251,235,.6); margin-bottom: .35rem; }
.rp-cc-phone { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: .2rem; direction: ltr; }
.rp-cc-name { font-size: .78rem; color: rgba(255,251,235,.65); margin-bottom: .75rem; }
.rp-cc-btns { display: flex; gap: .6rem; justify-content: center; }

.rp-cc-btn {
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.rp-cc-btn.call { background: var(--sol-orange); color: #fff; }
.rp-cc-btn.wa { background: #25D366; color: #fff; }
.rp-cc-btn:hover { opacity: .88; }

/* =====================================================
   FOOTER
   ===================================================== */
        .footer {
            position: absolute;
            bottom: 8mm;
            left: 20mm;
            right: 20mm;
            border-top: 2px solid var(--primary);
            padding-top: 5px;
            font-size: 9pt;
            color: #888;
            text-align: center;
        }
        .footer a {
            color: var(--primary-dark);
            text-decoration: none;
            font-weight: 700;
        }

/* =====================================================
   PRINT
   ===================================================== */

        /* ===== دکمه چاپ ===== */
        .btn-print {
            position: fixed; bottom: 20px; left: 20px;
            background: var(--primary-dark); color: #fff;
            padding: 12px 24px; border: none; border-radius: 30px;
            font-family: inherit; cursor: pointer;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 9999;
            font-size: 11pt;
        }
        
        @media print {
  /* نمایش اجباری نوارها موقع چاپ */
  .rp-bar {
    width: var(--print-w, 50%) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }

  /* رنگ پس‌زمینه همه عناصر موقع چاپ */
  .rp-bar-wrap,
  .rp-kpi,
  .rp-section-header,
  .rp-cover,
  .rp-cta-box,
  .rp-toc-title,
  .rp-table th,
  .rp-gantt-header,
  .rp-gantt-bar,
  .rp-tlv-marker,
  .rp-success-box,
  .page-header .page-num,
  .rp-alert,
  .rp-insight,
  .rp-tag,
  .ck {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }
}
/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 700px) {
  .page { width: 100%; padding: 20px 15px 60px; }
  .rp-kpi-row { grid-template-columns: 1fr 1fr; }
  .rp-two-col { grid-template-columns: 1fr; }
  .rp-doc-grid { grid-template-columns: 1fr 1fr; }
  .rp-tips-grid { grid-template-columns: 1fr 1fr; }
  .rp-cta-features { grid-template-columns: 1fr; }
  .rp-gantt-label { width: 120px; font-size: .72rem; }
  .rp-cover-stats { flex-direction: column; align-items: center; }
  .rp-cs { width: 100%; max-width: 200px; }
}