/* ==========================================================================
   HAKEEM MEDICAL LABORATORIES - EXECUTIVE PRESENTATION STYLES
   Client: مختبرات حكيم الطبية (Hakeem Medical Laboratories)
   Agency: فلوكس آدز للتسويق | FLUX Ads
   Canvas Baseline: Fixed 1920 x 1080 (16:9 Canvas) with Dynamic Auto-Scaling
   Theme: Luxury Executive Light Mode with Royal Sapphire Blue & Vibrant Medical Cyan
   ========================================================================== */

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

:root {
  /* Hakeem Medical Laboratories Palette - Exact from Brand Logo */
  --primary: #204E9B;             /* Royal Sapphire Blue */
  --primary-dark: #14356B;        /* Deep Boardroom Navy */
  --primary-light: #EFF6FF;       /* Ambient Ice Blue Tint */
  --primary-subtle: rgba(32, 78, 155, 0.08);
  --primary-glow: rgba(32, 78, 155, 0.22);
  --primary-border: rgba(32, 78, 155, 0.2);

  --accent-cyan: #01A9DA;         /* Vibrant Medical Cyan from Logo */
  --accent-cyan-light: #E0F6FC;
  --accent-cyan-subtle: rgba(1, 169, 218, 0.12);

  --accent-gold: #F59E0B;         /* Glowing Executive Gold */
  --accent-gold-dark: #D97706;
  --accent-gold-light: #FEF3C7;
  --accent-gold-subtle: rgba(245, 158, 11, 0.12);

  --accent-mint: #01A9DA;         /* Medical Cyan Accent */
  --accent-mint-light: #E0F6FC;

  /* Executive Luxury White Mode */
  --stage-bg: #FFFFFF;
  --stage-bg-alt: #F8FAFC;
  --card-bg: #FFFFFF;
  --card-glass: rgba(255, 255, 255, 0.96);
  --card-border: 1.5px solid #E2E8F0;
  --card-border-active: 2px solid var(--primary);
  --card-shadow: 0 10px 30px -5px rgba(32, 78, 155, 0.05), 0 8px 12px -6px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 35px -8px rgba(32, 78, 155, 0.12);

  --text-main: #0F172A;           /* Deep Executive Slate */
  --text-muted: #475569;          /* Secondary descriptive */
  --text-light: #64748B;          /* Muted metadata */

  /* Functional Accents */
  --accent-green: #059669;
  --accent-green-bg: #ECFDF5;
  --accent-blue: #204E9B;
  --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: #0A111F; /* Deep boardroom royal sapphire navy 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 (Strict 1920x1080)
   ========================================================================== */
.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 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

/* Ambient Canvas Glow & Subtle Luxury Grid */
.slide-stage::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 88% 12%, rgba(32, 78, 155, 0.05) 0%, transparent 55%),
    radial-gradient(circle at 12% 88%, rgba(1, 169, 218, 0.04) 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.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.996);
  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 Across 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: 18px;
}

.header-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 4px 8px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.header-logo {
  height: 42px;
  max-width: 160px;
  object-fit: contain;
}

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

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

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

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

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

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 30px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--primary-border);
}

.header-badge.gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  border-color: rgba(245, 158, 11, 0.3);
}

.header-slide-num {
  font-size: 16px;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  padding: 7px 16px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  border: 1px solid #E2E8F0;
}

.header-agency-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-light);
  padding: 6px 12px;
  background: #FAFAFA;
  border-radius: 8px;
  border: 1px solid #ECECEC;
}

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

.slide-category-pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  background: var(--accent-gold-light);
  padding: 4px 12px;
  border-radius: 6px;
}

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

.slide-title span.highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #01A9DA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   SLIDE 01: MINIMAL EXECUTIVE COVER (Logo + "استراتيجيات التسويق" ONLY)
   ========================================================================== */
.slide.cover-slide-hakeem {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F5F9FD 70%, #EBF3FC 100%);
  padding: 0;
}

.cover-hakeem-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 1000px;
}

.cover-logo-wrapper {
  padding: 24px 48px;
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(32, 78, 155, 0.10), 0 0 0 1.5px rgba(32, 78, 155, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-hakeem-logo {
  max-width: 520px;
  max-height: 240px;
  height: auto;
  object-fit: contain;
}

.cover-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cover-hakeem-title {
  font-size: 82px;
  font-weight: 900;
  color: var(--primary);
  background: linear-gradient(135deg, #204E9B 0%, #01A9DA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 0;
}

/* ==========================================================================
   SLIDE 17: STRICT MINIMAL CLOSING ("شكرًا" + Flux Logo ONLY)
   ========================================================================== */
.slide.closing-slide-hakeem {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F8FAFC 85%, #F1F5F9 100%);
  padding: 0;
}

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

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

.closing-hakeem-logo {
  max-width: 440px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.06));
}

/* ==========================================================================
   CARDS & GRIDS (2, 3, and 4 Columns Layouts)
   ========================================================================== */
.content-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

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

.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

/* Pillar Card Architecture */
.card-pillar {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 18px;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.card-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-mint) 100%);
  opacity: 0.85;
}

.card-pillar.gold-top::before {
  background: linear-gradient(90deg, var(--accent-gold) 0%, #FBBF24 100%);
}

.pillar-top {
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.pillar-index {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon {
  font-size: 26px;
}

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

.pillar-desc {
  font-size: 16.5px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 500;
}

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

.pillar-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.55;
}

.pillar-point-icon {
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pillar-footer-action {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1.5px dashed #E2E8F0;
  margin-top: auto;
}

.pillar-kpi-badge {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.badge-pill.green {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

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

.badge-pill.gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-pill.amber {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-pill.red {
  background: var(--accent-red-bg);
  color: var(--accent-red);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-pill.blue {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   VISUAL COMPARISON (3 COLUMNS - MOCKUP FRAMES)
   ========================================================================== */
.visual-comparison-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.visual-col-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.visual-col-card.client-card {
  border: 2px solid var(--primary);
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(32, 78, 155, 0.12);
}

.visual-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #EDF2F7;
}

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

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

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

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

.visual-image-wrapper {
  flex: 1;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E8F0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  padding: 8px;
  cursor: zoom-in;
  position: relative;
}

.visual-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: block;
  transition: transform 0.25s ease;
}

.visual-image-wrapper:hover img {
  transform: scale(1.02);
}

.visual-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #EDF2F7;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   CRO COMPARISON MATRIX & TABLES
   ========================================================================== */
.cro-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.cro-table-card {
  background: #FFFFFF;
  border: var(--card-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.cro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cro-table th {
  background: #F8FAFC;
  color: var(--text-main);
  font-weight: 800;
  padding: 14px 16px;
  text-align: right;
  border-bottom: 2px solid #E2E8F0;
}

.cro-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #EDF2F7;
  color: var(--text-muted);
  vertical-align: middle;
}

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

.cro-table td.strong {
  font-weight: 800;
  color: var(--text-main);
}

.cro-action-card {
  background: #FFFFFF;
  border: 1.5px solid var(--primary-border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.cro-action-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
}

.cro-recommendation-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cro-rec-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.cro-rec-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.cro-rec-text h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cro-rec-text p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SLIDE 15: SOCIAL MEDIA RETAINERS (PROPOSED PACKAGES)
   ========================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.package-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 22px;
  padding: 26px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.package-card.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(32, 78, 155, 0.12);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFB 100%);
}

.package-ribbon {
  position: absolute;
  top: 18px;
  left: 24px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 30px;
  letter-spacing: 0.5px;
}

.package-header {
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 22px;
  margin-bottom: 24px;
}

.package-tag {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.package-name {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
}

.package-specs-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #F1F5F9;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

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

.package-labels-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.package-labels-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-labels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.package-label-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.package-label-badge.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary-dark);
}

.package-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.package-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.package-footer-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   SLIDE 16: BUDGET ALLOCATION & GOOGLE SEARCH VOLUME
   ========================================================================== */
.budget-dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.budget-channels-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.budget-channel-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.budget-channel-card:hover {
  transform: translateX(-4px);
  border-color: var(--primary);
}

.budget-channel-card.lead {
  border: 2px solid var(--primary);
  background: linear-gradient(90deg, #FFFFFF 0%, #F5FAF7 100%);
}

.channel-info-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
  overflow: hidden;
}

.channel-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.channel-texts h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.channel-texts p {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.channel-percent-group {
  text-align: left;
}

.channel-percent {
  font-size: 34px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.channel-percent.lead {
  color: var(--primary);
}

.channel-role-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Search Volume Visual Cards */
.budget-visual-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-vol-preview-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

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

.search-vol-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-vol-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.search-vol-img-box {
  flex: 1;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.search-vol-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   PROGRESS BAR & CONTROLS DOCK
   ========================================================================== */
.stage-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-mint) 100%);
  width: 5.88%;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.controls-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  direction: rtl;
}

.dock-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.dock-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.dock-btn:active {
  transform: scale(0.95);
}

.dock-counter {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  padding: 0 12px;
  min-width: 140px;
  text-align: center;
  user-select: none;
  letter-spacing: 0.3px;
}

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

.keyboard-hints {
  position: fixed;
  bottom: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  z-index: 9999;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  direction: rtl;
}

.key-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

/* ==========================================================================
   OVERVIEW DRAWER / MODAL
   ========================================================================== */
.overview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

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

.overview-card {
  width: 100%;
  max-width: 1400px;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  direction: rtl;
}

.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #EDF2F7;
  margin-bottom: 24px;
}

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

.overview-close-btn {
  background: #F1F5F9;
  border: none;
  color: #64748B;
  font-size: 26px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.overview-close-btn:hover {
  background-color: #E2E8F0;
  color: var(--text-main);
}

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

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

.thumbnail-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 8px 18px rgba(32, 78, 155, 0.08);
}

.thumbnail-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
}

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

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

/* ==========================================================================
   ENHANCED 20-SLIDE ARCHITECTURE STYLES
   ========================================================================== */

/* Slide 03: Brand Overview Layout */
.brand-overview-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.brand-kpi-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-kpi-pill {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.brand-kpi-pill::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}

.brand-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.brand-kpi-content h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.brand-kpi-content p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.brand-website-frame {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.browser-top-bar {
  height: 42px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 16px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red { background: #EF4444; }
.browser-dot.yellow { background: #F59E0B; }
.browser-dot.green { background: #10B981; }

.browser-address {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.brand-website-img-wrap {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: zoom-in;
}

.brand-website-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.brand-website-img-wrap:hover img {
  transform: scale(1.015);
}

/* Slide 04: Personas Cards */
.persona-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.persona-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #F1F5F9;
}

.persona-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.persona-title-group h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.persona-section {
  margin-bottom: 16px;
}

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

.persona-section-content {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.6;
  font-weight: 600;
}

.persona-footer-metric {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Slide 06: Strategic Warning Cards */
.card-warning {
  background: #FFFFFF;
  border: 1.5px solid #FED7AA;
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.card-warning::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #EA580C 0%, #F59E0B 100%);
}

.card-warning:hover {
  transform: translateY(-4px);
  border-color: #F97316;
}

.warning-gap-box {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.warning-gap-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #C2410C;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-gap-text {
  font-size: 15.5px;
  color: #7C2D12;
  line-height: 1.6;
  font-weight: 600;
}

.warning-solution-box {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.warning-solution-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #047857;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-solution-text {
  font-size: 15.5px;
  color: #064E3B;
  line-height: 1.6;
  font-weight: 600;
}

.warning-action-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.warning-action-title {
  font-size: 15px;
  font-weight: 800;
  color: #1E40AF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-action-list {
  font-size: 14.5px;
  line-height: 1.55;
  color: #1E3A8A;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.warning-impact-badge {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  border: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Slide 14: LinkedIn Corporate Offer Box */
.linkedin-b2b-offer-box {
  background: linear-gradient(135deg, #204E9B 0%, #14356B 100%);
  border-radius: 16px;
  padding: 14px 18px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(32, 78, 155, 0.2);
  margin-top: 10px;
}

.b2b-offer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-offer-price {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
}

.b2b-offer-price small {
  font-size: 15px;
  font-weight: 700;
  color: #D1FAE5;
  margin-right: 4px;
}

.b2b-offer-perks {
  font-size: 13.5px;
  font-weight: 700;
  color: #ECFDF5;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Slide 16: Campaign Strategy & Strict Rules Layout */
.ad-rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.ad-rule-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  flex: 1;
  justify-content: center;
}

.ad-rule-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gold);
}

.ad-rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-rule-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-rule-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  background: #FEF3C7;
  color: #92400E;
}

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

/* Slide 17 & 18: Google Search Volume Full Frame */
.search-vol-slide-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.search-kpi-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.search-kpi-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.search-kpi-info h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 4px;
}

.search-kpi-info p {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.search-kpi-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.search-kpi-value.gold {
  color: var(--accent-gold-dark);
}

.search-vol-wide-frame {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.search-vol-wide-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Slide 19: 4-Week Timeline */
.timeline-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

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

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

.timeline-week-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.timeline-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
}

.timeline-subtitle {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold-dark);
  margin-bottom: 18px;
}

.timeline-tasks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 20px;
}

.timeline-task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #1E293B;
  line-height: 1.55;
  font-weight: 600;
}

.timeline-task-icon {
  color: var(--primary);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-kpi-footer {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* ==========================================================================
   EXECUTIVE FULL-SIZE IMAGE LIGHTBOX MODAL
   Allows clicking any screenshot/image to view in 100% full screen
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.lightbox-content-box {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100001;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
}


