/* ==========================================================================
   LUXURY LIGHT EXECUTIVE THEME - WEB PITCH DECK
   Client: مجمع دار المئوية لطب الأسنان
   Ratio: 16:9 Presentation Stage | RTL Oriented
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Palette */
  --brand-primary: #DC2626;       /* Medical Crimson */
  --brand-primary-dark: #B91C1C;
  --brand-primary-light: #FEF2F2;
  --brand-secondary: #0F172A;     /* Charcoal Navy */
  --brand-secondary-light: #1E293B;

  /* Executive Neutrals */
  --bg-pure: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-card: #E2E8F0;
  --border-highlight: #CBD5E1;
  
  /* Text Tones */
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Status Accents */
  --accent-emerald: #059669;
  --accent-emerald-bg: #ECFDF5;
  --accent-emerald-border: #A7F3D0;
  
  --accent-danger: #E11D48;
  --accent-danger-bg: #FFF1F2;
  --accent-danger-border: #FECDD3;

  --accent-amber: #D97706;
  --accent-amber-bg: #FFFBEB;
  --accent-amber-border: #FDE68A;

  --accent-blue: #2563EB;
  --accent-blue-bg: #EFF6FF;
  --accent-blue-border: #BFDBFE;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(220, 38, 38, 0.12);

  /* Fonts */
  --font-arabic: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-latin: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Reset & Lock */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-pure);
  color: var(--text-body);
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  overflow: hidden; /* Strict: NO window scrollbars */
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Number / Latin Font Overrides */
.en-font, .number-font, .metric-value, .badge-num {
  font-family: var(--font-latin), var(--font-arabic);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   PRESENTATION STAGE (Fixed 16:9 Canvas)
   ========================================================================== */
.presentation-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(95vw, calc(92vh * 16 / 9), 1720px);
  max-height: min(92vh, 960px);
  background: var(--bg-pure);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden; /* Strict: NO slide internal scrollbars */
  display: flex;
  flex-direction: column;
  margin: auto;
}

/* Fullscreen Mode Adjustments */
body:fullscreen .presentation-stage,
body:-webkit-full-screen .presentation-stage {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* ==========================================================================
   SLIDE ARCHITECTURE
   ========================================================================== */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 32px 48px 72px 48px; /* Bottom space reserved for HUD */
  opacity: 0;
  pointer-events: none;
  transform: scale(0.99) translateZ(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  background-color: var(--bg-pure);
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateZ(0);
  z-index: 2;
}

/* Slide Header Standard Component */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 12px;
  flex-shrink: 0;
}

.slide-header-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid #FEE2E2;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.header-capsule.emerald {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald-border);
}

.header-capsule.blue {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  border-color: var(--accent-blue-border);
}

.slide-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slide-platform-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: #FFF;
  padding: 3px;
  border: 1px solid var(--border-subtle);
}

.slide-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.slide-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.slide-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 8px;
}

/* Slide Content Flex Container */
.slide-body {
  flex: 1;
  min-height: 0; /* Crucial to prevent flex overflow */
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   FLOATING HUD CAPSULE (Bottom Bar)
   ========================================================================== */
.floating-hud {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 6px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.12);
  transition: all 0.25s ease;
}

.floating-hud:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 35px -2px rgba(15, 23, 42, 0.16);
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-body);
  font-family: var(--font-arabic);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: #F1F5F9;
  color: var(--brand-primary);
}

.hud-btn:active {
  transform: scale(0.96);
}

.hud-btn.primary {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.hud-btn.primary:hover {
  background: var(--brand-primary-dark);
}

.hud-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  padding: 0 8px;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.hud-counter .current-num {
  color: var(--brand-primary);
  font-size: 15px;
}

.hud-counter .total-num {
  color: var(--text-muted);
}

.hud-progress-container {
  position: absolute;
  bottom: -1px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 3px;
  overflow: hidden;
}

.hud-progress-bar {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--brand-primary), #EF4444);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 3px;
}

/* ==========================================================================
   SHIELDS, BADGES & CARDS
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.card.highlight {
  border: 2px solid var(--brand-primary);
  box-shadow: 0 10px 30px -5px rgba(220, 38, 38, 0.15);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFD 100%);
}

.card.danger-tint {
  background: var(--accent-danger-bg);
  border-color: var(--accent-danger-border);
}

.card.success-tint {
  background: var(--accent-emerald-bg);
  border-color: var(--accent-emerald-border);
}

/* ==========================================================================
   SLIDE 1: COVER SLIDE (Minimalist Executive Cover)
   ========================================================================== */
.cover-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 60px;
  position: relative;
  gap: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.02) 0%, transparent 60%);
}

.cover-top-bar {
  display: none;
}

.cover-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  gap: 24px;
}

.cover-logo-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px 52px;
  box-shadow: 0 12px 36px -6px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.cover-logo-box:hover {
  transform: translateY(-2px);
}

.cover-logo-img {
  height: 130px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
}

.cover-main-title {
  font-size: 54px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.cover-main-title span {
  color: var(--brand-primary);
}

.cover-date {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0;
  letter-spacing: 0.5px;
}

.cover-desc {
  display: none;
}

.cover-footer {
  display: none;
}

/* ==========================================================================
   SLIDE 2: TABLE OF CONTENTS (4 Interactive Cards Grid)
   ========================================================================== */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  height: 100%;
  align-items: stretch;
}

.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.toc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-subtle);
  transition: background 0.25s ease;
  border-radius: 18px 18px 0 0;
}

.toc-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.1);
}

.toc-card:hover::before {
  background: var(--brand-primary);
}

.toc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.toc-num {
  font-family: var(--font-latin);
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-primary);
}

.toc-icon {
  font-size: 28px;
  background: var(--bg-surface);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.toc-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.toc-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.toc-card-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.toc-card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 3px 10px;
  border-radius: 6px;
}

.toc-arrow {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.toc-card:hover .toc-arrow {
  transform: translateX(-4px);
  color: var(--brand-primary);
}

/* ==========================================================================
   SLIDE 3: 4 PILLARS GRID (4 Adjacent Vertical Cards)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  height: 100%;
}

.pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pillar-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.pillar-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 3px 8px;
  border-radius: 6px;
}

.pillar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.pillar-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 14px;
}

.pillar-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
}

.pillar-points li {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.pillar-points li::before {
  content: '•';
  color: var(--brand-primary);
  font-size: 16px;
  line-height: 1;
}

/* ==========================================================================
   SLIDE 4: GROWTH OPPORTUNITIES (4 Horizontal Numbered Cards)
   ========================================================================== */
.opportunities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: space-between;
}

.opportunity-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.opportunity-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
  transform: translateX(-3px);
}

.opp-badge {
  font-family: var(--font-latin);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #FECACA;
}

.opp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opp-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opp-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
}

.opp-highlight {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  background: #FFF1F2;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #FFE4E6;
}

.opp-desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.45;
}

.opp-solution {
  font-size: 12.5px;
  color: var(--accent-emerald);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-emerald-bg);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  border: 1px solid var(--accent-emerald-border);
  margin-top: 2px;
}

/* ==========================================================================
   SLIDE 5: MARKET & DIRECT COMPETITORS (2 Balanced Columns)
   ========================================================================== */
.competitors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  height: 100%;
}

.competitor-col {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.comp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 12px;
}

.comp-name-wrap h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.comp-site {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-latin);
  direction: ltr;
  display: inline-block;
}

.comp-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  max-width: 220px;
  text-align: center;
}

.comp-section {
  margin-bottom: 12px;
}

.comp-section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comp-section-title.strengths { color: var(--accent-emerald); }
.comp-section-title.weaknesses { color: var(--accent-danger); }
.comp-section-title.opportunity { color: var(--brand-primary); }

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comp-list li {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.45;
  padding-right: 12px;
  position: relative;
}

.comp-list.strengths li::before {
  content: '✔';
  color: var(--accent-emerald);
  position: absolute;
  right: 0;
  font-size: 11px;
}

.comp-list.weaknesses li::before {
  content: '✖';
  color: var(--accent-danger);
  position: absolute;
  right: 0;
  font-size: 11px;
}

.comp-opportunity-box {
  background: var(--brand-primary-light);
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 12px 14px;
}

.comp-opportunity-box p {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

/* ==========================================================================
   SLIDE 6: DESKTOP MACBOOK PRO WINDOW (Full Space 100% W & H)
   ========================================================================== */
.macbook-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.macbook-window {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.macbook-header {
  height: 38px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
}

.macbook-dots {
  display: flex;
  gap: 8px;
}

.macbook-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.macbook-dot.red { background: #FF5F56; }
.macbook-dot.yellow { background: #FFBD2E; }
.macbook-dot.green { background: #27C93F; }

.macbook-address-bar {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font-latin);
  color: #475569;
  direction: ltr;
  gap: 8px;
  font-weight: 500;
}

.macbook-content {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.macbook-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFFFF;
}

.macbook-note-badge {
  position: absolute;
  bottom: 14px;
  right: 20px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   SLIDE 7, 9, 11, 13: 3 IPHONE COMPARISON GRID
   ========================================================================== */
.phones-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  height: 100%;
  align-items: center;
  justify-items: center;
}

.phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 320px;
  justify-content: flex-start;
  gap: 8px;
}

.phone-header-info {
  text-align: center;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.phone-brand-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.phone-badge.client-badge {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: #FECACA;
}

/* Realistic iPhone Mockup Frame */
.iphone-frame {
  position: relative;
  height: calc(100% - 38px);
  max-height: 485px;
  aspect-ratio: 592 / 1280;
  width: auto;
  background: #0F172A;
  border-radius: 36px;
  padding: 6px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.22), inset 0 0 0 2px #334155;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 30px;
}

.iphone-island {
  display: none !important;
}

/* Simulated App Screen for Client (When profile is inactive/under setup) */
.simulated-profile-screen {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 22px 10px 10px 10px;
  position: relative;
  box-sizing: border-box;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-latin);
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.sim-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sim-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  padding: 2px;
  object-fit: contain;
}

.sim-stats {
  display: flex;
  gap: 10px;
  font-size: 10px;
  text-align: center;
}

.sim-stat-val {
  font-weight: 800;
  color: var(--text-main);
  display: block;
  font-family: var(--font-latin);
}

.sim-stat-lbl {
  color: var(--text-muted);
  font-size: 9px;
}

.sim-bio {
  font-size: 10px;
  color: var(--text-body);
  line-height: 1.35;
  margin-bottom: 10px;
}

.sim-opportunity-notice {
  flex: 1;
  background: var(--brand-primary-light);
  border: 1px dashed var(--brand-primary);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.sim-notice-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-primary);
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #FECACA;
}

.sim-notice-text {
  font-size: 10.5px;
  color: var(--text-body);
  line-height: 1.4;
  font-weight: 500;
}

/* ==========================================================================
   SLIDE 8, 10, 12, 14: 5 STRATEGIC CONSULTING CARDS GRID
   ========================================================================== */
.consulting-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  height: 100%;
}

.consult-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.consult-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-highlight);
}

.consult-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 8px;
}

.consult-icon {
  font-size: 18px;
}

.consult-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
}

.consult-desc {
  font-size: 12.8px;
  color: var(--text-body);
  line-height: 1.55;
}

.consult-card.danger {
  background: var(--accent-danger-bg);
  border-color: var(--accent-danger-border);
}

.consult-card.danger .consult-title {
  color: var(--accent-danger);
}

.consult-card.success-span {
  grid-column: span 2;
  background: var(--accent-emerald-bg);
  border-color: var(--accent-emerald-border);
}

.consult-card.success-span .consult-title {
  color: var(--accent-emerald);
}

/* ==========================================================================
   SLIDE 15: CONTRACT PACKAGES (3-Month Progressive Roadmap)
   ========================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  height: calc(100% - 32px);
}

.package-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.25s ease;
}

.package-card.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: 0 12px 35px -5px rgba(220, 38, 38, 0.16);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFD 100%);
}

.package-card.tech {
  border: 1px solid #94A3B8;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.package-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.package-month-badge {
  font-family: var(--font-arabic);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: #0F172A;
  color: #FFFFFF;
}

.package-month-badge.featured {
  background: var(--brand-primary);
}

.package-top-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  width: fit-content;
}

.package-card.standard .package-top-badge {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.package-card.featured .package-top-badge {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid #FECACA;
}

.package-card.tech .package-top-badge {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.package-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.3;
}

.package-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 10px 0;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 10px;
}

.package-price {
  font-family: var(--font-latin), var(--font-arabic);
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-primary);
}

.package-currency {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.package-tax {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.package-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.spec-row {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
  gap: 6px;
  line-height: 1.4;
}

.spec-row.highlight-spec {
  background: #FFF1F2;
  border: 1px dashed #FECACA;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--brand-primary);
}

.spec-label {
  font-weight: 700;
  color: var(--text-muted);
  min-width: 95px;
  flex-shrink: 0;
}

.spec-val {
  color: var(--text-main);
  font-weight: 600;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.package-features li {
  font-size: 11.5px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.package-features li::before {
  content: '✓';
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 12px;
}

.package-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
}

.package-tag {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 3px 7px;
  border-radius: 6px;
}

.package-tag.ad-tag {
  background: #FFF1F2;
  border-color: #FECACA;
  color: var(--brand-primary);
  font-weight: 800;
}

.packages-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

/* ==========================================================================
   SLIDE 16: AD CHANNELS & BUDGET ENGINEERING
   ========================================================================== */
.budget-slide-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  height: 100%;
}

.budget-left-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.donut-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.donut-chart-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.donut-chart-circle-bg {
  fill: none;
  stroke: #F1F5F9;
  stroke-width: 18;
}

.donut-chart-circle-val {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 18;
  stroke-dasharray: 440;
  stroke-dashoffset: 0; /* 100% full circle */
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.donut-text-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  direction: ltr;
}

.donut-center-pct {
  font-family: var(--font-latin);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-primary);
}

.donut-center-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-arabic);
}

.donut-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.donut-info-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.donut-info-desc {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.channels-showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.channel-item-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 2px;
  border: 1px solid var(--border-subtle);
}

.channel-item-details {
  flex: 1;
}

.channel-item-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.channel-item-role {
  font-size: 11.5px;
  color: var(--text-muted);
}

.channel-item-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Formula & Math Card */
.budget-math-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.math-header {
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.math-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.math-formula-box {
  background: #0F172A;
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.math-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  margin-bottom: 16px;
}

.math-breakdown-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
}

.math-breakdown-val {
  font-family: var(--font-latin);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.math-breakdown-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.math-result-box {
  background: var(--brand-primary-light);
  border: 2px solid var(--brand-primary);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.math-result-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.math-result-val {
  font-family: var(--font-latin);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-primary);
}

/* ==========================================================================
   SLIDE 17: GOOGLE SEARCH DEMAND
   ========================================================================== */
.demand-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  height: 100%;
}

.demand-screenshot-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.demand-screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #F8FAFC;
}

.demand-metrics-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.demand-metric-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demand-metric-val {
  font-family: var(--font-latin);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.1;
}

.demand-metric-lbl {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.demand-metric-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   SLIDE 18: EXECUTION ROADMAP (4 Phased Timeline)
   ========================================================================== */
.roadmap-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  height: 100%;
}

.roadmap-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.2s ease;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
  border-radius: 16px 16px 0 0;
}

.roadmap-card.governance {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.roadmap-card.governance::before {
  background: var(--text-main);
}

.roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.roadmap-phase-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 3px 8px;
  border-radius: 6px;
}

.roadmap-card.governance .roadmap-phase-badge {
  color: var(--text-main);
  background: #E2E8F0;
}

.roadmap-icon {
  font-size: 20px;
}

.roadmap-timing {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.roadmap-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 8px;
}

.roadmap-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.roadmap-tasks li {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.roadmap-tasks li::before {
  content: '▸';
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 12px;
}

.roadmap-card.governance .roadmap-tasks li::before {
  color: var(--text-main);
}

/* ==========================================================================
   SLIDE 19: MINIMALIST CLOSING (Agency Logo + "شكرًا" Only)
   ========================================================================== */
.closing-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 36px;
  background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.02) 0%, transparent 60%);
}

.closing-title {
  font-size: 68px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
}

.closing-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 460px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 16px 40px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}

.closing-agency-logo {
  max-height: 95px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.closing-desc {
  display: none;
}

.closing-logos-row {
  display: none;
}

.closing-cta-row {
  display: none;
}

/* ==========================================================================
   RESPONSIVE SCALING & ADAPTIVE COMPACTING
   ========================================================================== */
@media (max-height: 850px) {
  .slide {
    padding: 24px 36px 64px 36px;
  }
  .slide-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  .slide-title {
    font-size: 22px;
  }
  .slide-subtitle {
    font-size: 13px;
  }
  .card, .pillar-card, .consult-card, .package-card, .toc-card {
    padding: 16px;
  }
  .pillar-points {
    gap: 4px;
    padding-top: 8px;
  }
  .pillar-points li {
    font-size: 11.5px;
  }
  .opp-badge {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .opp-title {
    font-size: 15px;
  }
  .opp-desc {
    font-size: 12px;
  }
  .package-price {
    font-size: 28px;
  }
  .package-features {
    gap: 4px;
    margin-bottom: 10px;
  }
  .package-features li {
    font-size: 11.5px;
  }
  .iphone-frame {
    max-height: 380px;
  }
  .roadmap-tasks {
    gap: 4px;
  }
  .roadmap-tasks li {
    font-size: 11px;
  }
  .closing-title {
    font-size: 40px;
  }
}

@media (max-height: 720px) {
  .slide {
    padding: 18px 28px 56px 28px;
  }
  .slide-title {
    font-size: 20px;
  }
  .iphone-frame {
    max-height: 320px;
  }
  .package-features {
    display: none; /* Keep specs & tags on ultra-short screens */
  }
}
