/* ==========================================================================
   EXECUTIVE PRESENTATION SYSTEM - DESIGN SYSTEM & ARCHITECTURE
   Stage Canvas: 1920x1080 (16:9 Fixed Ratio) with Dynamic Auto-Scaling Engine
   Client: أكنا (Accan Coffee Roasters)
   Agency: فلوكس للحلول التسويقية (Flux Ads)
   ========================================================================== */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Readex+Pro:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Brand Palette (Accan Terracotta & Specialty Coffee Identity) */
  --brand-primary: #C85A32;
  --brand-primary-dark: #A54320;
  --brand-primary-light: #FDF5F2;
  --brand-primary-glow: rgba(200, 90, 50, 0.16);
  --brand-secondary: #2C4A43; /* Forest Coffee Sage */
  --brand-secondary-light: #EFF6F4;
  --brand-accent: #E07A5F;
  --brand-gold: #D4AF37;
  --brand-gold-light: #FEF9E7;

  /* Flux Ads Identity */
  --flux-blue: #2B59C3;
  --flux-cyan: #22B8CF;

  /* Executive Neutrals */
  --bg-stage: #FFFFFF;
  --bg-canvas-outer: #090D16;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8FAFC;
  --bg-card-hover: #FFFFFF;

  /* Typography Colors */
  --text-main: #0F172A;
  --text-muted: #334155;
  --text-light: #64748B;
  --text-white: #FFFFFF;

  /* Borders & Shadows */
  --border-light: #E2E8F0;
  --border-brand: rgba(200, 90, 50, 0.35);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-brand: 0 14px 35px rgba(200, 90, 50, 0.18);

  /* Functional Status Colors */
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --success-border: #A7F3D0;

  --warning-bg: #FFFBEB;
  --warning-text: #92400E;
  --warning-border: #FDE68A;

  --danger-bg: #FEF2F2;
  --danger-text: #991B1B;
  --danger-border: #FECACA;

  --info-bg: #EFF6FF;
  --info-text: #1E40AF;
  --info-border: #BFDBFE;

  /* Fonts */
  --font-primary: 'Readex Pro', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cairo', 'Readex Pro', sans-serif;

  /* Auto-scaling variable updated dynamically via JS */
  --stage-scale: 1;
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-canvas-outer);
  font-family: var(--font-primary);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  user-select: none;
}

/* --- VIEWPORT CONTAINER --- */
.viewport-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1E293B 0%, #0F172A 70%, #020617 100%);
}

/* --- SLIDE STAGE (STRICT 1920x1080 CANVAS) --- */
.slide-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  background: var(--bg-stage);
  background-image: 
    radial-gradient(at 0% 0%, rgba(200, 90, 50, 0.035) 0px, transparent 45%),
    radial-gradient(at 100% 100%, rgba(44, 74, 67, 0.035) 0px, transparent 45%),
    linear-gradient(rgba(226, 232, 240, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.25) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 54px 54px, 54px 54px;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 4px;
}

/* --- SLIDES ARCHITECTURE --- */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  display: none !important;
  flex-direction: column;
  padding: 34px 60px 42px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.995);
}

.slide.active {
  display: flex !important;
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
  z-index: 10;
}

/* --- EXECUTIVE SLIDE HEADER --- */
.slide-header {
  width: 100%;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 18px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--brand-primary-light);
  border: 1px solid var(--border-brand);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-primary);
}

.brand-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.section-tag {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.slide-subtitle {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-muted);
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-client-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.header-separator {
  width: 1.5px;
  height: 44px;
  background: var(--border-light);
}

.header-agency-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.agency-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agency-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--flux-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- SLIDE CONTENT CONTAINER (EXPANDS FULLY TO PREVENT VOIDS) --- */
.slide-body {
  flex: 1;
  width: 100%;
  height: calc(100% - 118px);
  display: flex;
  overflow: hidden;
  position: relative;
}

/* --- GRID LAYOUTS (STRICT SPATIAL BALANCE & FULL EXTENSION) --- */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.content-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

/* --- CARDS & PANELS --- */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

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

.card.highlighted {
  border: 2px solid var(--brand-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--brand-primary-light) 100%);
  box-shadow: var(--shadow-brand);
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
}

.card-desc {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- PILLS, BADGES & CHIPS --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.pill-primary {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid var(--border-brand);
}

.pill-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.pill-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

.pill-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.pill-info {
  background: var(--info-bg);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}

/* --- IMAGE FRAME (FULL HEIGHT FOR PERFECT BALANCE) --- */
.image-preview-frame {
  position: relative;
  height: 100%;
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.image-preview-frame:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.image-preview-frame .frame-inner {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100% - 66px);
  background: #0B0F19;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.image-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.image-preview-frame:hover img {
  transform: scale(1.025);
}

.image-caption-badge {
  height: 66px;
  width: 100%;
  background: #FFFFFF;
  border-top: 1.5px solid var(--border-light);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.caption-text {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.caption-meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 5px 14px;
  border-radius: 8px;
}

/* --- STATS & KPI BOXES --- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
}

.metric-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1.1;
}

.metric-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

/* --- LISTS & BULLET ITEMS --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.feature-desc {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FULL 3-IMAGES SHOWCASE LAYOUT (شريحة فقط الـ 3 صور بحجم كامل)
   ========================================================================== */
.full-showcase-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.full-showcase-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 22px;
  padding: 16px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  height: 100%;
}

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

.full-showcase-card.client-card {
  border: 2.5px solid var(--brand-primary);
  box-shadow: 0 16px 45px rgba(200, 90, 50, 0.16);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F6 100%);
}

.full-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--border-light);
  flex-shrink: 0;
}

.full-showcase-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.full-showcase-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.full-showcase-logo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.full-showcase-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.full-showcase-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
}

.full-showcase-viewport {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #0B0F19;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  border: 1.5px solid var(--border-light);
  box-shadow: inset 0 2px 14px rgba(0,0,0,0.5);
}

.full-showcase-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.full-showcase-viewport:hover img {
  transform: scale(1.03);
}

.full-showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 4px;
  flex-shrink: 0;
}

.showcase-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  background: #F8FAFC;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   DEEP ANALYSIS DECK (شريحة الشرح والتحليل الموزعة بالكامل لمنع الفراغات)
   ========================================================================== */
.deep-analysis-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.deep-analysis-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 22px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.deep-analysis-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
}

.deep-analysis-card.client-card {
  border: 2.5px solid var(--brand-primary);
  box-shadow: 0 14px 36px rgba(200, 90, 50, 0.15);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F6 100%);
}

.deep-analysis-card.client-card::before {
  content: "العلامة المستهدفة بالتحليل (أكنا للقهوة)";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--brand-primary);
  color: #FFFFFF;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 0;
  letter-spacing: 0.5px;
}

.deep-analysis-card.client-card .deep-card-header {
  margin-top: 10px;
}

.deep-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.deep-brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deep-brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.deep-brand-meta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
}

.deep-blocks-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: space-around;
}

.deep-section-block {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px 16px;
  border-right: 4px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deep-section-block.strengths {
  border-right-color: #10B981;
  background: #F0FDF4;
}

.deep-section-block.weaknesses {
  border-right-color: #EF4444;
  background: #FEF2F2;
}

.deep-section-block.opportunities {
  border-right-color: #F59E0B;
  background: #FFFBEB;
}

.deep-section-block.ux {
  border-right-color: #3B82F6;
  background: #EFF6FF;
}

.deep-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.deep-section-block.strengths .deep-section-label { color: #065F46; }
.deep-section-block.weaknesses .deep-section-label { color: #991B1B; }
.deep-section-block.opportunities .deep-section-label { color: #92400E; }
.deep-section-block.ux .deep-section-label { color: #1E40AF; }

.deep-section-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.55;
}

.deep-metric-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deep-metric-badge {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.deep-score-pill {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
}

/* ==========================================================================
   SOCIAL MEDIA PLANS GRID (خطط إدارة السوشيال ميديا المقترحة)
   ========================================================================== */
.social-plans-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.social-plan-card {
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: 24px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.social-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.social-plan-card.plan-featured {
  border: 2.5px solid var(--brand-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F6 100%);
  box-shadow: var(--shadow-brand);
}

.social-plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.social-plan-card.plan-growth::before {
  background: linear-gradient(90deg, var(--flux-blue), var(--flux-cyan));
}

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

.plan-tier-pill {
  font-size: 15px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 999px;
}

.plan-platform-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
}

.plan-main-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 6px;
}

.plan-target-desc {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.plan-cadence-banner {
  background: #F8FAFC;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cadence-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cadence-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-light);
}

.cadence-val {
  font-size: 19px;
  font-weight: 900;
  color: var(--brand-primary);
}

.social-plan-card.plan-growth .cadence-val {
  color: var(--flux-blue);
}

.plan-mix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.mix-card-item {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.mix-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  flex-shrink: 0;
}

.mix-card-info {
  display: flex;
  flex-direction: column;
}

.mix-card-count {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.mix-card-type {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-ads-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 100%);
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.ads-box-icon {
  font-size: 26px;
}

.ads-box-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.ads-box-desc {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
}

.plan-benefit-item .check {
  color: #10B981;
  font-weight: 900;
}

/* --- TABLES & TIMELINES --- */
.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
}

.table-custom th {
  background: #F1F5F9;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 800;
  padding: 18px 22px;
  border-bottom: 2px solid var(--border-light);
  text-align: right;
}

.table-custom td {
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:hover td {
  background: #F8FAFC;
}

/* --- SECTION COVER SLIDES --- */
.section-cover-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-cover-box {
  width: 1200px;
  padding: 70px 80px;
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cover-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--flux-blue));
}

.section-num-badge {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  border: 1.5px solid var(--border-brand);
  padding: 10px 30px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.section-cover-title {
  font-family: var(--font-heading);
  font-size: 68px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 22px;
}

.section-cover-desc {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 900px;
}

.section-points-row {
  display: flex;
  gap: 20px;
  margin-top: 44px;
  width: 100%;
  justify-content: center;
}

.section-pill-tag {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  padding: 12px 26px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- COVER SLIDE (SLIDE 1) --- */
.cover-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 52px;
  padding: 60px;
  background: #FFFFFF;
}

.cover-client-logo {
  height: 220px;
  max-width: 440px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.05));
}

.cover-main-title {
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin: 0;
}

/* --- THANK YOU SLIDE (FINAL SLIDE) --- */
.thankyou-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 40px;
  position: relative;
}

.thankyou-agency-logo {
  height: 135px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(43, 89, 195, 0.15));
}

.thankyou-huge-title {
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--brand-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.thankyou-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 850px;
  line-height: 1.6;
}

.thankyou-contact-card {
  display: flex;
  align-items: center;
  gap: 36px;
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  padding: 20px 48px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.contact-pill .icon {
  color: var(--brand-primary);
}

/* --- BOTTOM HUD CONTROLS & PROGRESS BAR --- */
.presentation-hud {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1.5px solid transparent;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: none;
  direction: ltr; /* Clean icon alignment */
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

/* In idle state, hide the middle elements and extra buttons completely so NOTHING is covered */
.presentation-hud .hud-counter,
.presentation-hud .hud-progress-wrapper,
.presentation-hud #btnFullscreen,
.presentation-hud #btnOverview {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
  transform: translateY(4px);
}

/* Hover state: When standing on the HUD bar, it illuminates with full color and glassmorphism */
.presentation-hud:hover,
.presentation-hud:focus-within {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(199, 107, 63, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(199, 107, 63, 0.35);
  transform: translateX(-50%) translateY(-2px);
  padding: 8px 22px;
}

.presentation-hud:hover .hud-counter,
.presentation-hud:hover .hud-progress-wrapper,
.presentation-hud:hover #btnFullscreen,
.presentation-hud:hover #btnOverview,
.presentation-hud:focus-within .hud-counter,
.presentation-hud:focus-within .hud-progress-wrapper,
.presentation-hud:focus-within #btnFullscreen,
.presentation-hud:focus-within #btnOverview {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hud-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Navigation Arrow Buttons: Small, subtle gentle motion to draw attention */
#btnPrev,
#btnNext {
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  opacity: 0.9;
}

/* Gentle attention-drawing micro-motion for the arrows */
#btnNext {
  animation: hudArrowNudgeNext 2s ease-in-out infinite;
}

#btnPrev {
  animation: hudArrowNudgePrev 2s ease-in-out infinite;
}

@keyframes hudArrowNudgeNext {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3.5px);
  }
}

@keyframes hudArrowNudgePrev {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-3.5px);
  }
}

/* Colorful hover effect on buttons */
.hud-btn:hover {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #D97706 100%);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: scale(1.18) !important;
  box-shadow: 0 4px 16px rgba(199, 107, 63, 0.7), 0 0 12px rgba(199, 107, 63, 0.45);
  animation: none !important;
}

.hud-btn:active {
  transform: scale(0.94) !important;
}

.hud-counter {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 0 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  direction: rtl;
}

.hud-progress-wrapper {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.hud-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), #F59E0B);
  width: 0%;
  transition: width 0.3s ease;
}

/* Fullscreen Mode Optimization */
:fullscreen .presentation-hud,
body.is-fullscreen .presentation-hud {
  bottom: 14px;
}

/* --- LIGHTBOX MODAL FOR HIGH-RES PREVIEWS --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-caption {
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  direction: rtl;
}

.lightbox-close-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0F172A;
  border: none;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
  transform: scale(1.1);
}

/* --- OVERVIEW THUMBNAILS DRAWER --- */
.overview-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  padding: 60px;
  overflow-y: auto;
}

.overview-modal.active {
  display: block;
}

.overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  direction: rtl;
}

.overview-title {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 900;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  direction: rtl;
}

.overview-thumb-item {
  background: #1E293B;
  border: 2px solid #334155;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-thumb-item:hover, .overview-thumb-item.current {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(200, 90, 50, 0.35);
}

.thumb-title {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
}

.thumb-badge {
  font-size: 12.5px;
  color: var(--brand-accent);
}

/* ==========================================================================
   CAMPAIGN BUDGETS & MANAGEMENT DECISION (الشريحة 18)
   ========================================================================== */
.budgets-container-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
  width: 100%;
}

.budgets-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex: 1;
  align-items: stretch;
}

.budget-card {
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.budget-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.budget-card.featured-card {
  border: 2.5px solid var(--brand-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F6 100%);
  box-shadow: var(--shadow-brand);
}

.budget-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.budget-card.search-card::before {
  background: linear-gradient(90deg, #2563EB, #60A5FA);
}

.budget-card.pmax-card::before {
  background: linear-gradient(90deg, #7C3AED, #A78BFA);
}

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

.budget-card-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.budget-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}

.budget-type-desc {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.budget-price-box {
  background: #F8FAFC;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.budget-price-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-light);
}

.budget-price-val {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-primary);
}

.budget-card.search-card .budget-price-val {
  color: #2563EB;
}

.budget-card.pmax-card .budget-price-val {
  color: #7C3AED;
}

.budget-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.budget-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.budget-feat-item .dot-icon {
  color: var(--brand-primary);
  font-weight: 900;
}

.management-decision-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 2px solid #BFDBFE;
  border-radius: 16px;
  padding: 13px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.decision-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.decision-header-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.decision-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
  color: #1E3A8A;
}

.decision-desc {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
}

.decision-options-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.decision-badge {
  background: #FFFFFF;
  border: 1.5px solid #93C5FD;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  color: #1D4ED8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   ROADMAP / TIMELINE 4-PHASES GRID (الشريحة 19)
   ========================================================================== */
.roadmap-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.roadmap-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-brand);
}

.roadmap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--brand-primary);
}

.roadmap-card:nth-child(2)::before {
  background: #2563EB;
}

.roadmap-card:nth-child(3)::before {
  background: #7C3AED;
}

.roadmap-card:nth-child(4)::before {
  background: #059669;
}

.roadmap-phase-num {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 900;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 10px;
}

.roadmap-card:nth-child(2) .roadmap-phase-num {
  color: #2563EB;
  background: #EFF6FF;
}

.roadmap-card:nth-child(3) .roadmap-phase-num {
  color: #7C3AED;
  background: #F5F3FF;
}

.roadmap-card:nth-child(4) .roadmap-phase-num {
  color: #059669;
  background: #ECFDF5;
}

.roadmap-phase-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}

.roadmap-phase-duration {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
}

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

.roadmap-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}

.roadmap-task-item .task-check {
  color: #10B981;
  font-weight: 900;
}

.roadmap-deliverable-badge {
  margin-top: 16px;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   ROADMAP 3 WEEKS + FULL EVALUATION (الشريحة 19 المحدثة)
   ========================================================================== */
.roadmap-container-3 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
  width: 100%;
}

.roadmap-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  flex: 1;
  align-items: stretch;
}

.roadmap-card-3 {
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.roadmap-card-3:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-brand);
}

.roadmap-card-3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--brand-primary);
}

.roadmap-card-3:nth-child(2)::before {
  background: #2563EB;
}

.roadmap-card-3:nth-child(3)::before {
  background: #7C3AED;
}

.roadmap-evaluation-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 2px solid #93C5FD;
  border-radius: 16px;
  padding: 13px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.eval-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.eval-header-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eval-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
  color: #1E3A8A;
}

.eval-desc {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
}

.eval-badge {
  background: #FFFFFF;
  border: 1.5px solid #60A5FA;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: #1D4ED8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   SLIDE 20: THANK YOU (شكرًا + لوقو فلوكس فقط)
   ========================================================================== */
.thankyou-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 44px;
  background: radial-gradient(circle at center, #FFFFFF 0%, #FAFAFA 100%);
  position: relative;
}

.thankyou-agency-logo {
  max-width: 380px;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.06));
}

.thankyou-huge-title {
  font-family: var(--font-heading);
  font-size: 115px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0;
}

