:root {
  --bg-base: #070a14;
  --bg-mid: #101933;
  --bg-surface: rgba(15, 24, 50, 0.64);
  --bg-surface-2: rgba(17, 32, 70, 0.72);
  --ink: #eff5ff;
  --ink-muted: #b9c8e8;
  --line: rgba(143, 177, 255, 0.34);
  --electric-blue: #33ccff;
  --magenta: #db62ff;
  --amber: #ffbf4d;
  --violet: #8f63ff;
  --success: #54ffb4;
  --warn: #ffd25b;
  --danger: #ff7a88;
}

* {
  box-sizing: border-box;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 12% 8%, #1a2d6e 0%, transparent 35%),
    radial-gradient(circle at 80% 12%, #4a1f73 0%, transparent 34%),
    linear-gradient(125deg, var(--bg-base) 0%, var(--bg-mid) 58%, #122352 100%);
  color: var(--ink);
}

.reveal {
  isolation: isolate;
}

.reveal::before {
  content: "";
  position: fixed;
  top: 38px;
  left: 38px;
  width: 220px;
  height: 76px;
  background: url("../img/logo_white.png") no-repeat left center / contain;
  z-index: 1000;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.reveal::after {
  content: "إدارة التحول الرقمي";
  position: fixed;
  top: 42px;
  right: 42px;
  font-size: 1rem;
  font-weight: 700;
  color: #ddedff;
  z-index: 1000;
  pointer-events: none;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgba(164, 195, 255, 0.52);
  background: rgba(18, 31, 67, 0.55);
  box-shadow: 0 8px 20px rgba(5, 10, 24, 0.45);
}

.reveal .controls {
  color: var(--electric-blue);
}

.reveal .progress {
  color: var(--magenta);
  height: 5px;
}

.reveal .slides {
  text-align: right;
}

.reveal .slides section.present .slide-shell {
  animation: slide-enter 520ms ease;
}

@keyframes slide-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.slide-shell {
  width: 100%;
  height: 100vh;
  padding: 2.8vh 4vw;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1.6vh;
  background: linear-gradient(145deg, rgba(20, 35, 78, 0.65) 0%, rgba(10, 16, 38, 0.62) 100%);
  border: 1px solid rgba(171, 198, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(98, 137, 219, 0.17), 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.slide-header h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
  color: #f3f8ff;
  text-shadow: 0 10px 30px rgba(20, 20, 20, 0.5);
}

.message-line {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 700;
  color: #d3e8ff;
  border-right: 4px solid var(--electric-blue);
  padding: 0.15rem 0.8rem 0.15rem 0.2rem;
  background: linear-gradient(90deg, transparent 0%, rgba(51, 204, 255, 0.16) 100%);
}

.two-col {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: stretch;
}

.col {
  min-width: 0;
}

.bullets {
  margin: 0;
  padding: 0 1rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.bullets li {
  position: relative;
  font-size: clamp(0.92rem, 1.2vw, 1.07rem);
  line-height: 1.65;
  color: var(--ink);
  padding-right: 1rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(140deg, var(--electric-blue), var(--magenta));
  box-shadow: 0 0 14px rgba(219, 98, 255, 0.55);
}

.reveal .fragment {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  filter: blur(3px);
  transition: transform 420ms ease, opacity 420ms ease, filter 420ms ease;
}

.reveal .fragment.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.kpi-box {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(49, 84, 170, 0.35), rgba(16, 26, 55, 0.58));
  padding: 0.8rem;
  min-height: 88px;
  box-shadow: inset 0 0 0 1px rgba(144, 177, 255, 0.18);
}

.kpi-value {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.kpi-label {
  font-size: clamp(0.78rem, 0.96vw, 0.92rem);
  color: #b7cbf0;
  margin-top: 0.25rem;
}

.panel,
.step {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface-2));
  padding: 0.78rem;
  min-height: 0;
  box-shadow: inset 0 0 0 1px rgba(149, 183, 255, 0.15);
}

.panel-title,
.step h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f2f7ff;
}

.step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.chart-box {
  width: 100%;
  height: min(46vh, 420px);
  background: linear-gradient(160deg, rgba(17, 29, 66, 0.74), rgba(12, 20, 43, 0.84));
  border: 1px solid rgba(170, 199, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(98, 158, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.slide-measurable-outputs .chart-col {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.35rem;
}

.slide-measurable-outputs .chart-col .chart-box {
  min-height: 0;
  height: 100%;
}

.source-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0d1428;
  background: linear-gradient(135deg, #79f4ff 0%, #9fdbff 45%, #ffcb71 100%);
  padding: 0.18rem 0.55rem;
}

.risk-list li::before {
  background: linear-gradient(140deg, #ff9f7f, #ff6077);
  box-shadow: 0 0 14px rgba(255, 113, 130, 0.5);
}

.ok {
  color: var(--success);
  font-weight: 700;
}

.warn {
  color: var(--warn);
  font-weight: 700;
}

.danger {
  color: var(--danger);
  font-weight: 700;
}

.footer-line {
  margin-top: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.76rem;
  color: #aac1e7;
}

.small {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.centered {
  display: grid;
  place-items: center;
}

.full-svg {
  width: 100%;
  height: min(48vh, 430px);
  object-fit: contain;
  background: linear-gradient(180deg, rgba(18, 31, 67, 0.78), rgba(12, 21, 45, 0.92));
  border: 1px solid rgba(174, 203, 255, 0.31);
  box-shadow: inset 0 0 0 1px rgba(125, 164, 244, 0.18);
}

.reveal img[src*=".svg"] {
  cursor: zoom-in;
}

.svg-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(3, 8, 20, 0.82);
  z-index: 2500;
}

.svg-modal.is-open {
  display: flex;
}

.svg-modal__dialog {
  position: relative;
  width: min(94vw, 1400px);
  max-height: 92vh;
  padding: 0.75rem;
  border: 1px solid rgba(174, 203, 255, 0.38);
  background: linear-gradient(180deg, rgba(16, 27, 58, 0.96), rgba(8, 14, 34, 0.96));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
}

.svg-modal__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 2.4rem);
  object-fit: contain;
}

.svg-modal__close {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(210, 229, 255, 0.45);
  background: rgba(9, 17, 40, 0.85);
  color: #eff5ff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.slide-scope-read .scope-figure-pop {
  margin-top: 0.65rem;
}

.slide-scope-read .scope-figure-pop .full-svg {
  width: 100%;
  height: min(34vh, 290px);
  max-height: none;
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.reveal .slides section.present .slide-scope-read .scope-figure-pop.fragment.visible .full-svg {
  animation: scope-figure-enter 420ms ease both;
}

@keyframes scope-figure-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .reveal::before {
    width: 170px;
    height: 58px;
    top: 12px;
    left: 12px;
  }

  .reveal::after {
    top: 12px;
    right: 12px;
    font-size: 0.78rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-strip {
    grid-template-columns: 1fr;
  }
}
