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

:root {
  --brand-primary: #1A56DB;
  --brand-secondary: #0EA5E9;
  --brand-light: rgba(26, 86, 219, 0.05);
  --brand-glow: rgba(26, 86, 219, 0.12);
  --bg-pure: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-sub: #475569;
  --border-glass: rgba(226, 232, 240, 0.85);
  --border-card: #E2E8F0;
  --card-bg: #FFFFFF;
  --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  --card-shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  --stage-scale: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #F8FAFC;
  font-family: 'Tajawal', sans-serif;
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  user-select: none;
}

/* ========================================================
   Stage Container & Auto-Scaling Canvas (1920x1080)
   ======================================================== */
.viewport-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F8FAFC 100%);
}

.slide-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
  background: var(--bg-pure);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  border-radius: 8px;
}

/* Radiant Ambient Glows */
.stage-glow-tl {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.stage-glow-br {
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Slide Deck Engine */
.deck {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 80px 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
  display: flex;
  flex-direction: column;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide.prev {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-40px);
}

/* ========================================================
   Typography & Headers
   ======================================================== */
.slide-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding-bottom: 24px;
}

.slide-title-group h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.2;
}

.slide-title-group p {
  font-size: 19px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 8px;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--brand-light);
  color: var(--brand-primary);
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(26, 86, 219, 0.15);
}

.slide-content {
  flex: 1;
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
}

/* ========================================================
   Glass & Card Design System
   ======================================================== */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(26, 86, 219, 0.25);
}

/* ========================================================
   Slide 1: Minimalist Cover
   ======================================================== */
.slide-cover {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
}

.cover-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.cover-subtitle-pill {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--brand-light);
  color: var(--brand-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(26, 86, 219, 0.2);
}

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

.cover-logo-box {
  margin-top: 20px;
  width: 320px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========================================================
   Slide 2: Table of Contents
   ======================================================== */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
  align-items: center;
}

.toc-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  height: 520px;
  justify-content: space-between;
}

.toc-card .toc-num {
  font-size: 54px;
  font-weight: 900;
  color: var(--brand-primary);
  opacity: 0.85;
}

.toc-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-top: 16px;
  color: var(--text-main);
}

.toc-card p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
}

.toc-card ul {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-card li {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-card li::before {
  content: "•";
  color: var(--brand-primary);
  font-size: 20px;
}

/* ========================================================
   Slide 3: Business Framing (4 Pillars)
   ======================================================== */
.four-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
  align-items: stretch;
}

.pillar-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  border: 1px solid rgba(26, 86, 219, 0.15);
}

.pillar-card h3 {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 14px;
}

.pillar-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar-list {
  margin-top: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-list li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.5;
  padding-right: 18px;
  position: relative;
}

.pillar-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
}

/* ========================================================
   Slide 4: Growth Opportunities (4 Angles)
   ======================================================== */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
}

.opp-card {
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.opp-badge {
  min-width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}

.opp-text h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.opp-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   Slide 5: Market & Competitors (2 Strengths / 2 Weaknesses)
   ======================================================== */
.competitors-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  width: 100%;
}

.comp-box {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.comp-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-card);
}

.comp-box-header h3 {
  font-size: 24px;
  font-weight: 800;
}

.comp-tier-badge {
  font-size: 14px;
  color: var(--brand-primary);
  background: var(--brand-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 700;
}

.comp-points-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.points-subgroup h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-subgroup.strengths h4 {
  color: #16A34A;
}

.points-subgroup.weaknesses h4 {
  color: #DC2626;
}

.points-subgroup ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-subgroup li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.5;
  padding-right: 18px;
  position: relative;
}

.points-subgroup.strengths li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: #16A34A;
  font-weight: 800;
}

.points-subgroup.weaknesses li::before {
  content: "✕";
  position: absolute;
  right: 0;
  color: #DC2626;
  font-weight: 800;
}

/* ========================================================
   Slide 6: Mac Frame Desktop Screenshot Cover
   ======================================================== */
.mac-stage-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mac-window {
  width: 1200px;
  height: 680px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 30px 80px -15px rgba(15, 23, 42, 0.16), 0 0 1px 1px rgba(203, 213, 225, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #CBD5E1;
}

.mac-titlebar {
  height: 44px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 8px;
}

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

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

.mac-address-bar {
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 4px 30px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid #E2E8F0;
  direction: ltr;
  font-family: monospace;
}

.mac-viewport {
  flex: 1;
  background: #F8FAFC;
  overflow: hidden;
  position: relative;
}

.mac-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Fallback Notice when no website exists */
.website-gap-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 60px;
  text-align: center;
  gap: 20px;
}

.website-gap-box .gap-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}

.website-gap-box h3 {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
}

.website-gap-box p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.6;
}

/* ========================================================
   Slides 7, 9, 11, 13: 3-Way Mobile Comparison (Slim iPhone)
   ======================================================== */
.comparison-3way-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  width: 100%;
  height: 720px;
  align-items: center;
  justify-items: center;
}

.device-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.device-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  background: #F1F5F9;
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.device-column.brand-hero .device-tag {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.25);
}

/* Realistic Slim iPhone Mockup (393x852 aspect ratio) */
.iphone-frame {
  position: relative;
  width: 310px;
  height: 640px;
  background: #000000;
  border-radius: 46px;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.2), 0 0 0 4px #E2E8F0, 0 0 0 7px #0F172A;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.device-column.brand-hero .iphone-frame {
  box-shadow: 0 25px 70px -10px rgba(26, 86, 219, 0.3), 0 0 0 4px rgba(26, 86, 219, 0.4), 0 0 0 8px var(--brand-primary);
}

.iphone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #FFFFFF;
  position: relative;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ========================================================
   Slides 8, 10, 12, 14: 5-Card Analysis Grid (<= 25 words)
   ======================================================== */
.analysis-5cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  height: 100%;
}

.analysis-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.analysis-card.span-2 {
  grid-column: span 1.5;
}

.analysis-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-card);
}

.analysis-card-header .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.analysis-card-header h3 {
  font-size: 21px;
  font-weight: 800;
}

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

.analysis-bullets li {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.55;
  padding-right: 18px;
  position: relative;
}

.analysis-bullets li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--brand-primary);
  font-size: 20px;
  line-height: 1;
}

/* ========================================================
   Slide 15: Proposed Packages (Comprehensive vs Custom)
   ======================================================== */
.packages-2split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
  height: 720px;
  align-items: stretch;
}

.package-card {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-card.highlight {
  border-color: var(--brand-primary);
  box-shadow: 0 25px 60px -10px rgba(26, 86, 219, 0.12);
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(26, 86, 219, 0.02) 100%);
}

.package-top-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 800;
  background: var(--brand-light);
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.package-card.highlight .package-top-badge {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.package-card h3 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 10px;
}

.package-card .pkg-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.package-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.package-deliverables li {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.package-deliverables li svg {
  min-width: 20px;
  margin-top: 3px;
  color: var(--brand-primary);
}

.package-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.package-footer .pkg-term {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ========================================================
   Slide 16: Ad Channels & Budget Distribution (Donut Chart)
   ======================================================== */
.budgets-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.donut-visual-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 540px;
}

.donut-svg-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

.donut-center-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.donut-center-info .center-val {
  font-size: 42px;
  font-weight: 900;
  color: var(--brand-primary);
}

.donut-center-info .center-lbl {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.budget-breakdown-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.budget-channel-row {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.channel-color-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.channel-name {
  font-size: 20px;
  font-weight: 800;
}

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

.channel-percent {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-primary);
}

/* CPC Formula Card */
.cpc-formula-box {
  margin-top: 12px;
  padding: 20px 24px;
  background: var(--brand-light);
  border-radius: 14px;
  border: 1px solid rgba(26, 86, 219, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cpc-formula-text {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 700;
}

.cpc-formula-calc {
  font-size: 15px;
  color: var(--brand-primary);
  font-weight: 800;
  direction: ltr;
}

/* ========================================================
   Slide 17: Google Search Volume (Ads Planner Screenshot)
   ======================================================== */
.planner-showcase-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  width: 100%;
  height: 720px;
  align-items: center;
}

.planner-screenshot-card {
  width: 100%;
  height: 640px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-card);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
}

.planner-screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.planner-strategic-insights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.insight-metric-box {
  padding: 30px;
}

.insight-metric-box .metric-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.insight-metric-box h4 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.insight-metric-box p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   Slide 18: Horizontal Stepper Timeline (4 Weeks)
   ======================================================== */
.timeline-stepper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  height: 620px;
  align-items: stretch;
  position: relative;
}

.step-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-card);
}

.step-number {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
}

.step-title-box h3 {
  font-size: 20px;
  font-weight: 800;
}

.step-title-box span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.step-tasks li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.5;
  padding-right: 18px;
  position: relative;
}

.step-tasks li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
}

/* ========================================================
   Slide 19: Minimalist Closing (شكرًا + لوقو الايجنسي)
   ======================================================== */
.slide-closing {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
}

.closing-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.closing-title {
  font-size: 92px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -2px;
}

.closing-logo-box {
  width: 320px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========================================================
   Minimal Floating Transparent HUD
   ======================================================== */
.floating-hud {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 100px;
  background: transparent;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.floating-hud:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border-glass);
}

.hud-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  transition: all 0.2s ease;
  outline: none;
}

.hud-btn svg {
  width: 20px;
  height: 20px;
}

.floating-hud:hover .hud-btn {
  background: #F1F5F9;
}

.hud-btn:hover {
  background: var(--brand-primary) !important;
  color: #FFFFFF !important;
  transform: scale(1.08);
}

.hud-counter {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 8px;
  direction: ltr;
  font-family: monospace;
}

/* ========================================================
   Dynamic Platform Logos & Header Badges
   ======================================================== */
.header-with-logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.channel-header-logo-box {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.channel-header-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-logo-indicator {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.channel-logo-indicator img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-logo-indicator svg {
  max-width: 100%;
  max-height: 100%;
}
