
:host {
  display: block;
  direction: rtl;
}

.page-004-plan-identity {
  --p004-blue: #1e3a5f;
  --p004-gold: #d4af37;
  --p004-light: #f8fafc;
  --p004-gray: #f1f5f9;
  --p004-dot: #e2e8f0;
  position: relative;
  width: 297mm;
  min-height: 210mm;
  height: 210mm;
  overflow: hidden;
  background-color: #ffffff;
  background-image: radial-gradient(var(--p004-dot) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--p004-blue);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

.page-004-plan-identity *,
.page-004-plan-identity *::before,
.page-004-plan-identity *::after {
  box-sizing: border-box;
}

.page-004-plan-identity::before,
.page-004-plan-identity::after {
  content: "";
  position: absolute;
  background: rgba(241, 245, 249, .55);
  z-index: -1;
  pointer-events: none;
}

.page-004-plan-identity::before {
  top: 0;
  left: 0;
  width: 256px;
  height: 256px;
  border-bottom-right-radius: 150px;
}

.page-004-plan-identity::after {
  right: 0;
  bottom: 0;
  width: 320px;
  height: 320px;
  border-top-left-radius: 100px;
  opacity: .72;
}

.p004-header {
  width: 100%;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 231, 235, .86);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.p004-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p004-logo {
  width: 48px;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.p004-brand-title {
  margin: 0;
  color: var(--p004-blue);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.p004-brand-code,
.p004-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.p004-brand-code {
  margin: 3px 0 0;
  color: #9ca3af;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.p004-ref {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p004-ref-label {
  color: #9ca3af;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.p004-ref-divider {
  width: 1px;
  height: 16px;
  background: #d1d5db;
}

.p004-page-no {
  color: var(--p004-blue);
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.p004-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 64px;
  padding: 48px;
}

.p004-intro {
  position: relative;
  width: 33.333%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p004-watermark {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--p004-blue);
  opacity: .055;
  font-size: 224px;
  line-height: 1;
  font-weight: 900;
  user-select: none;
  pointer-events: none;
}

.p004-chip {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px -18px rgba(0, 0, 0, .25);
  position: relative;
  z-index: 2;
}

.p004-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--p004-gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, .35);
  animation: p004-pulse 1.8s ease-in-out infinite;
}

@keyframes p004-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .32); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); opacity: .78; }
}

.p004-chip-text {
  color: var(--p004-blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p004-title {
  margin: 0 0 24px;
  color: var(--p004-blue);
  font-size: clamp(46px, 4.7vw, 66px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.p004-title-accent {
  position: relative;
  display: inline-block;
  color: var(--p004-gold);
}

.p004-title-accent svg {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 12px;
  color: rgba(212, 175, 55, .3);
}

.p004-lead {
  margin: 0 0 48px;
  padding-right: 16px;
  border-right: 4px solid var(--p004-gold);
  color: #6b7280;
  font-size: 19px;
  line-height: 1.85;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.p004-barcode {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
  opacity: .72;
}

.p004-bars {
  display: flex;
  gap: 4px;
  height: 40px;
  align-items: flex-end;
}

.p004-bars span {
  display: block;
  background: var(--p004-blue);
  height: var(--h, 100%);
  width: var(--w, 4px);
}

.p004-barcode-label {
  margin: 0;
  color: #9ca3af;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.p004-panel {
  position: relative;
  width: 66.666%;
  display: flex;
  align-items: center;
}

.p004-circuit-line {
  position: absolute;
  right: -24px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--p004-gold), rgba(212, 175, 55, .22), var(--p004-gold));
}

.p004-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.p004-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(30, 58, 95, .08);
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, .08);
  border-radius: 24px;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.p004-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--p004-gold);
  transition: height .28s ease;
}

.p004-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, .45);
  box-shadow: 0 14px 28px -18px rgba(30, 58, 95, .24);
}

.p004-card:hover::before {
  height: 100%;
}

.p004-card-wide {
  grid-column: span 2;
}

.p004-card-title {
  margin: 0 0 4px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .16em;
}

.p004-card-heading {
  margin: 0;
  color: var(--p004-blue);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 900;
}

.p004-card-heading-sm {
  font-size: 19px;
}

.p004-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.p004-card-stack {
  position: relative;
  z-index: 2;
  min-height: 162px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p004-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.p004-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--p004-gold);
  background: var(--p004-gray);
}

.p004-icon svg {
  width: 28px;
  height: 28px;
}

.p004-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.p004-icon-sm svg {
  width: 22px;
  height: 22px;
}

.p004-icon-blue {
  color: var(--p004-blue);
  background: rgba(30, 58, 95, .06);
}

.p004-icon-gold {
  color: var(--p004-gold);
  background: rgba(212, 175, 55, .12);
}

.p004-card-soft {
  background: linear-gradient(270deg, #ffffff, rgba(241, 245, 249, .42));
}

.p004-card-number {
  color: var(--p004-gray);
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  opacity: .75;
  user-select: none;
}

.p004-mini-card {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.p004-dot-round {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--p004-gray);
}

.p004-dot-round::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--p004-gold);
}

.p004-dot-blue::after {
  background: var(--p004-blue);
}

.p004-circuit-node {
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--p004-gold);
  z-index: 4;
}

@media (max-width: 900px) {
  .page-004-plan-identity { width: 100%; height: auto; min-height: 100vh; }
  .p004-main { flex-direction: column; gap: 28px; padding: 32px; }
  .p004-intro, .p004-panel { width: 100%; }
  .p004-grid { grid-template-columns: 1fr; }
  .p004-card-wide { grid-column: span 1; }
  .p004-header { padding: 24px 28px; }
  .p004-circuit-line, .p004-circuit-node { display: none; }
}


/* SCREEN_CENTERING_FIX: توحيد تموضع الصفحات المخصصة داخل عارض المشروع */
@media screen {
  .page-004-plan-identity {
    margin: 18px auto;
    box-shadow: 0 15px 50px rgba(15, 23, 42, .18);
  }
}

@media print {
  .page-004-plan-identity {
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}


/* Designer credit — deliberately quiet and outside the content grid. */
.p004-designer-credit {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 8;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 27px;
  padding: 5px 12px;
  border: 1px solid rgba(30,58,95,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #64748b;
  box-shadow: 0 7px 18px rgba(15,23,42,.045);
  white-space: nowrap;
}
.p004-designer-label { font-size: 9.5px; line-height: 1; font-weight: 800; letter-spacing: .04em; }
.p004-designer-sep { width: 20px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.88), transparent); }
.p004-designer-name { color: var(--p004-blue); font-size: 11px; line-height: 1; font-weight: 900; letter-spacing: .035em; direction:ltr; unicode-bidi:isolate; }

