/* ==========================================================================
   BIOLAB EXECUTIVE PRESENTATION STYLES - REFINED & FINAL
   Lead Frontend Architect & Executive Presentation System
   Stage Resolution: Fixed 1920 x 1080 (16:9 Canvas)
   Client: مختبر بايولاب الطبي (biolab)
   Design System: Biolab Teal (#018A9A) & Taupe (#8D8469) + Crisp White & Slate
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  /* Brand Color Palette */
  --primary: #018A9A;             /* Biolab Brand Teal */
  --primary-dark: #006C79;
  --primary-light: #E1F4F7;
  --primary-subtle: rgba(1, 138, 154, 0.08);
  --primary-glow: rgba(1, 138, 154, 0.25);

  --secondary: #8D8469;           /* Biolab Taupe / Warm Bronze */
  --secondary-dark: #6E6652;
  --secondary-light: #F6F4EE;
  --secondary-subtle: rgba(141, 132, 105, 0.12);

  /* Executive Neutrals */
  --stage-bg: #FFFFFF;
  --stage-bg-alt: #F8FAFC;
  --card-bg: #FFFFFF;
  --card-border: 1.5px solid #E2E8F0;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 30px -10px rgba(1, 138, 154, 0.12);

  --text-main: #1A2830;           /* High-contrast executive dark slate */
  --text-muted: #52636E;          /* Descriptive secondary text */
  --text-light: #8596A3;          /* Meta notes */

  /* Functional Accents */
  --accent-green: #059669;
  --accent-green-bg: #ECFDF5;
  --accent-blue: #2563EB;
  --accent-blue-bg: #EFF6FF;
  --accent-amber: #D97706;
  --accent-amber-bg: #FFFBEB;
  --accent-purple: #7C3AED;
  --accent-purple-bg: #F5F3FF;
  --accent-red: #DC2626;
  --accent-red-bg: #FEF2F2;

  /* Typography Scale */
  --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Stage Scaling variable (computed dynamically in script.js) */
  --stage-scale: 1;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0A0F14; /* Deep cinematic boardroom backdrop */
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   VIEWPORT & AUTO-SCALING CANVAS ENGINE
   ========================================================================== */
.slide-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  background-color: var(--stage-bg);
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

/* Subtle Stage Ambient Watermark */
.slide-stage::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 10%, rgba(1, 138, 154, 0.035) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(141, 132, 105, 0.03) 0%, transparent 50%);
  z-index: 1;
}

/* ==========================================================================
   SLIDE ARCHITECTURE & TRANSITIONS
   ========================================================================== */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 44px 75px 65px 75px;
  display: none !important;
  opacity: 0;
  flex-direction: column;
  justify-content: flex-start;
  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);
  z-index: 2;
  background-color: var(--stage-bg);
}

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

/* ==========================================================================
   HEADER SYSTEM (Uniform Brand Identity on Content Slides)
   ========================================================================== */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 2px solid #EDF2F7;
  position: relative;
  z-index: 5;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.header-divider {
  width: 2px;
  height: 30px;
  background-color: #E2E8F0;
}

.header-client-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-client-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.header-client-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}

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

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 30px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(1, 138, 154, 0.2);
}

.header-badge-alt {
  background: var(--secondary-subtle);
  color: var(--secondary-dark);
  border-color: rgba(141, 132, 105, 0.25);
}

.header-slide-num {
  font-size: 16px;
  font-weight: 800;
  color: #94A3B8;
  background: #F1F5F9;
  padding: 6px 14px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HEADINGS & CORE TYPOGRAPHY
   ========================================================================== */
.slide-title-area {
  margin-bottom: 22px;
}

.slide-category-pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

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

.slide-title span.highlight {
  color: var(--primary);
}

.slide-subtitle {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ==========================================================================
   SLIDE 1: COVER SLIDE (Strictly Minimal, 96px Title, Logo on Top)
   ========================================================================== */
.slide.cover-slide-minimal {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #FFFFFF;
  padding: 0;
}

.cover-minimal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.cover-minimal-logo {
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.05));
}

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

/* ==========================================================================
   SLIDE 20: FINAL CLOSING SLIDE (Strictly Minimal: "شكرًا" + Flux Logo Only)
   ========================================================================== */
.slide.closing-slide-minimal {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #FFFFFF;
  padding: 0;
}

.closing-minimal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.closing-minimal-title {
  font-size: 110px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0;
}

.closing-minimal-logo {
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   VISUAL COMPARISON (3 COLUMNS - Full Image Focus, Zero Clutter)
   ========================================================================== */
.visual-comparison-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  height: calc(1080px - 210px);
  align-items: stretch;
}

.visual-col-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.visual-col-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(1, 138, 154, 0.12);
}

.visual-col-card.client-card {
  border: 2.5px solid var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FBFD 100%);
}

.visual-col-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 14px 12px;
  border-bottom: 1.5px solid #F1F5F9;
  margin-bottom: 14px;
}

.visual-brand-name {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.visual-brand-name.client {
  color: var(--primary);
}

.visual-role-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  background: #F1F5F9;
  color: #64748B;
}

.visual-role-badge.client {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.visual-image-wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border-radius: 14px;
  overflow: hidden;
  padding: 6px;
}

.visual-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: calc(1080px - 340px);
  object-fit: contain;
  border-radius: 10px;
}

/* ==========================================================================
   DUAL COLUMN SYSTEM (content-grid-2)
   ========================================================================== */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  width: 100%;
  height: calc(1080px - 220px);
  align-items: stretch;
  position: relative;
  z-index: 5;
}

.grid-col-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow-y: auto;
  padding-left: 6px;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-executive {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.card-executive.featured {
  border-right: 5px solid var(--primary);
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FCFD 100%);
}

.card-executive.accent-taupe {
  border-right: 5px solid var(--secondary);
}

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

.card-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.card-title-icon.taupe {
  background: var(--secondary-light);
  color: var(--secondary);
}

.card-desc {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-desc strong {
  color: var(--text-main);
  font-weight: 800;
}

.point-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
}

.point-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  margin-top: 8px;
  flex-shrink: 0;
}

.point-bullet.taupe { background-color: var(--secondary); }
.point-bullet.red { background-color: var(--accent-red); }
.point-bullet.green { background-color: var(--accent-green); }

.grid-col-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image-showcase-frame {
  position: relative;
  width: 100%;
  height: 580px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.image-showcase-frame img {
  max-width: 100%;
  max-height: calc(580px - 75px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.image-caption-badge {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 3;
}

.image-caption-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-caption-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   CONTENT GRID 3 (Agenda & Overview Cards)
   ========================================================================== */
.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  height: calc(1080px - 220px);
  align-items: stretch;
}

.card-pillar {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

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

.pillar-index {
  font-size: 38px;
  font-weight: 900;
  color: #CBD5E1;
  line-height: 1;
}

.pillar-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
}

.pillar-desc {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 8px;
}

.pillar-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* ==========================================================================
   SOCIAL MEDIA PROPOSED PLANS (Exact 2 Packages Matching User Request)
   ========================================================================== */
.social-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
  height: calc(1080px - 220px);
  align-items: stretch;
}

.wide-plan-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 22px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
}

.wide-plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FBFD 100%);
  box-shadow: 0 15px 35px rgba(1, 138, 154, 0.12);
}

.plan-badge-top {
  position: absolute;
  top: -15px;
  right: 32px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(1, 138, 154, 0.25);
}

.plan-badge-top.taupe {
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(141, 132, 105, 0.25);
}

.plan-title-box {
  margin-bottom: 20px;
}

.plan-title-text {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.25;
}

.plan-scope-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-scope-pill {
  font-size: 15px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 12px;
  background: #F1F5F9;
  color: var(--text-main);
  border: 1px solid #E2E8F0;
}

.plan-scope-pill.teal {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: rgba(1, 138, 154, 0.25);
}

.plan-scope-pill.taupe {
  background: var(--secondary-light);
  color: var(--secondary-dark);
  border-color: rgba(141, 132, 105, 0.25);
}

.plan-services-stack {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.plan-service-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border: 1.5px solid #F1F5F9;
  border-radius: 14px;
  padding: 13px 18px;
  transition: all 0.15s ease;
}

.plan-service-row:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.plan-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

.plan-check-icon.taupe {
  background: var(--secondary-light);
  color: var(--secondary);
}

.plan-service-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.plan-footer-note {
  border-top: 1.5px solid #E2E8F0;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   ADVERTISING CAMPAIGNS SECTION (With Official Uploaded Icons)
   ========================================================================== */
.ads-campaign-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  width: 100%;
  height: calc(1080px - 220px);
  align-items: stretch;
}

.budget-allocation-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.platform-budgets-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 20px;
  gap: 20px;
}

.platform-brand-info {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 220px;
}

/* Real Icon Container */
.platform-icon-frame {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.platform-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.platform-name-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.platform-role-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.platform-percentage-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-track {
  width: 100%;
  height: 12px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
}

.bar-fill.google { width: 50%; background: #4285F4; }
.bar-fill.tiktok { width: 25%; background: #000000; }
.bar-fill.meta { width: 15%; background: #0081FB; }
.bar-fill.snap { width: 10%; background: #FFFC00; border: 1px solid #E2E8F0; }

.platform-share-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  min-width: 65px;
  text-align: left;
}

/* Strict Rules Callout Box */
.ads-rules-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1.5px solid #CBD5E1;
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rule-highlight-box {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.rule-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FULL VIEWPORT SEARCH VOLUME & BIDDING SLIDES (Uncropped, Generous Sizing)
   ========================================================================== */
.full-search-vol-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  height: calc(1080px - 210px);
  align-items: stretch;
}

.search-vol-large-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.search-vol-top-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.search-metric-pill-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-metric-label {
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
}

.search-metric-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.search-metric-value.green { color: var(--accent-green); }
.search-metric-value.red { color: var(--accent-red); }

/* Generous Uncropped Image Viewport */
.search-vol-image-viewport {
  width: 100%;
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

.search-vol-image-viewport img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
}

/* Full Viewport Showcase for Slide 3 */
.slide3-image-viewport {
  width: 100%;
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

.slide3-image-viewport img {
  width: 100%;
  height: 100%;
  max-height: 610px;
  object-fit: contain;
  border-radius: 10px;
}

/* ==========================================================================
   TIMELINE ROADMAP (Strict 4 Stages)
   (أسبوع تحضير ➔ أسبوع اختبار ➔ أسبوع تحسين ➔ تقييم الأداء بشكل كامل)
   ========================================================================== */
.timeline-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  height: calc(1080px - 230px);
  align-items: stretch;
}

.timeline-step-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.step-num-badge {
  font-size: 14px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  align-self: flex-start;
  margin-bottom: 14px;
}

.step-title {
  font-size: 23px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.step-deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-icon {
  color: var(--primary);
  font-weight: 900;
  flex-shrink: 0;
}

.step-footer-pill {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1.5px solid #F1F5F9;
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary);
  text-align: center;
}

/* ==========================================================================
   NAVIGATION & FLOATING CONTROLS DOCK
   ========================================================================== */
.controls-dock {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  z-index: 100;
  direction: ltr;
}

.dock-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #E2E8F0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  transform: scale(1.08);
}

.dock-counter {
  color: #F8FAFC;
  font-size: 14px;
  font-weight: 700;
  padding: 0 10px;
  font-family: var(--font-family);
  direction: rtl;
}

.dock-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.stage-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 99;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   OVERVIEW MODAL
   ========================================================================== */
.overview-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
  padding: 40px;
}

.overview-modal.open {
  display: flex;
  opacity: 1;
}

.overview-card {
  width: 90vw;
  max-width: 1400px;
  max-height: 85vh;
  background: #FFFFFF;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  direction: rtl;
}

.overview-header {
  padding: 20px 32px;
  border-bottom: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overview-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
}

.overview-close-btn {
  background: #F1F5F9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 26px 32px;
  overflow-y: auto;
}

.thumbnail-item {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thumbnail-item:hover, .thumbnail-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.thumb-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.thumb-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.badge-pill.teal { background: var(--primary-light); color: var(--primary-dark); }
.badge-pill.taupe { background: var(--secondary-light); color: var(--secondary-dark); }
.badge-pill.green { background: var(--accent-green-bg); color: var(--accent-green); }
.badge-pill.amber { background: var(--accent-amber-bg); color: var(--accent-amber); }
.badge-pill.red { background: var(--accent-red-bg); color: var(--accent-red); }

.keyboard-hints {
  position: fixed;
  bottom: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  z-index: 90;
  pointer-events: none;
}

.key-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: monospace;
  font-size: 11px;
  color: #FFFFFF;
}
