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

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAF9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent-green: #22C55E;
  --accent-green-light: #F0FDF4;
  --accent-green-border: rgba(34, 197, 94, 0.2);
  --border-color: rgba(226, 232, 240, 0.8);
  --border-light: rgba(226, 232, 240, 0.4);
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.02), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
  --shadow-premium: 0 30px 60px -15px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.01);
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
}

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

body {
  background-color: #0F172A;
  font-family: var(--font-body);
  color: var(--text-primary);
}

/* Presentation Container */
@media screen {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .slides-container {
    width: 1920px;
    height: 1080px;
    position: relative;
    background: var(--bg-primary);
    box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 100px;
  }
  
  .slide.active {
    opacity: 1;
    visibility: visible;
  }

  /* Slide Controls overlay */
  .controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 100;
  }

  .control-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-subtle);
  }

  .control-btn:hover {
    background: var(--bg-primary);
    border-color: var(--accent-green);
    transform: scale(1.05);
  }
}

/* Print Styling */
@media print {
  @page {
    size: 1920px 1080px;
    margin: 0;
  }
  
  html, body {
    background: #FFFFFF;
    width: 1920px;
    height: 1080px;
    overflow: visible !important;
  }
  
  .slides-container {
    width: 1920px;
    height: 1080px;
    box-shadow: none;
    border-radius: 0;
  }
  
  .slide {
    page-break-after: always;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 1920px !important;
    height: 1080px !important;
    padding: 40px 100px !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
  }
  
  .controls {
    display: none !important;
  }
}

/* Typography & Global Components */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.slide-index {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

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

.slide-footer-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* Slide layouts */
.slide-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 80px;
  margin: 20px 0;
}

.text-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual-side {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Text styles */
.slide-title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.slide-subtitle {
  font-size: 24px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
}

.slide-subtitle strong {
  color: var(--accent-green);
  font-weight: 600;
}

/* Badge styling */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent-green-light);
  color: var(--accent-green);
  border: 1px solid var(--accent-green-border);
  margin-bottom: 24px;
  align-self: flex-start;
}

/* Custom CSS iPhone Mockup (Premium Vector style) */
.iphone-mockup {
  width: 340px;
  height: 680px;
  background: #000000;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 50px 100px -20px rgba(15, 23, 42, 0.15), 
              0 30px 60px -30px rgba(0, 0, 0, 0.2),
              0 0 0 4px #1E293B,
              0 0 0 1px #475569;
  position: relative;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #F1F5F9;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
}

/* Notch */
.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 26px;
  background: #000000;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

/* WhatsApp Mockup Interface */
.wa-header {
  background: #FFFFFF;
  padding: 30px 14px 10px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-avatar-icon {
  width: 16px;
  height: 16px;
  fill: var(--accent-green);
}

.wa-status {
  display: flex;
  flex-direction: column;
}

.wa-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-verified {
  width: 14px;
  height: 14px;
  fill: #00B0FF;
}

.wa-online {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 500;
}

.wa-chat-area {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #F4F6F5; /* subtle light green-gray background */
}

.wa-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wa-bubble.incoming {
  background: #FFFFFF;
  align-self: flex-start;
  border-top-left-radius: 4px;
  color: var(--text-primary);
}

.wa-bubble.outgoing {
  background: #DCF8C6; /* Classic WhatsApp light green but premium */
  align-self: flex-end;
  border-top-right-radius: 4px;
  color: #0F2C0B;
}

.wa-time {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
  display: block;
}

.wa-rating-stars {
  display: flex;
  gap: 4px;
  margin: 6px 0;
  color: #FBBF24;
}

.wa-link {
  color: #0066CC;
  text-decoration: underline;
  word-break: break-all;
}

/* Slide 2: Visual Comparison Channel Styles */
.comparison-channel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-channel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

.channel-manual {
  border-left: 5px solid #EF4444;
}

.channel-auto {
  border-left: 5px solid #22C55E;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.channel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.channel-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.channel-meta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.channel-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 0;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 90px;
  position: relative;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.step-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
}

.step-line {
  flex-grow: 1;
  height: 2px;
  background: var(--border-light);
  margin-top: -20px; /* aligns with center of circles */
}

/* Specific node states */
.danger-node .step-num {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #EF4444;
}

.danger-node .step-text {
  color: #EF4444;
  font-weight: 700;
}

.active-node .step-num {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #15803D;
}

.active-node .step-text {
  color: #15803D;
  font-weight: 700;
}

.active-node-success .step-num {
  background: #22C55E;
  border-color: #22C55E;
  color: #FFFFFF;
  font-size: 14px;
}

.active-node-success .step-text {
  color: #15803D;
  font-weight: 800;
}

.active-line {
  background: #86EFAC;
}

.channel-footer {
  padding-top: 4px;
}

.footer-warning {
  font-size: 11px;
  font-weight: 500;
  color: #B45309;
}

.footer-success {
  font-size: 11px;
  font-weight: 600;
  color: #15803D;
}


/* Slide 3: Main System Flow (Redesigned with brand accents) */
.flow-steps-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  gap: 16px;
  margin: 10px auto 0;
}

.flow-step-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
}

.step-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.step-badge.wa-badge {
  background: #25D366;
  color: #FFFFFF;
}

/* Slide 3: Main System Flow (Redesigned with brand accents & enlarged for presentation) */
.flow-steps-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 20px;
  margin: 20px auto 0;
}

.flow-step-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}

.step-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.step-badge.wa-badge {
  background: #25D366;
  color: #FFFFFF;
}

.step-badge.route-badge {
  background: var(--accent-green);
  color: #FFFFFF;
  top: -12px;
  left: 50%;
}

.flow-card-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.flow-card-icon-wrapper.wa-icon-bg {
  background: #25D366;
  border-color: #20BA5A;
}

.flow-emoji {
  font-size: 32px;
}

.flow-svg-icon {
  width: 32px;
  height: 32px;
}

.flow-svg-icon.wa-svg {
  fill: #FFFFFF;
}

.flow-card-content h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.flow-card-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* WhatsApp message bubble simulator */
.wa-bubble-preview {
  margin-top: 18px;
  background: #EBF7EE;
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  width: 100%;
}

.wa-bubble-text {
  font-size: 13px;
  color: #1c1c1c;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}

.wa-bubble-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-btn-option {
  background: #FFFFFF;
  border: 1px solid #D0EBD5;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: default;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.wa-btn-option.positive {
  color: #15803D;
  border-left: 4px solid #25D366;
}

.wa-btn-option.negative {
  color: #B45309;
  border-left: 4px solid #F59E0B;
}

/* Flow Connectors */
.flow-direction-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-muted);
  font-weight: 300;
  user-select: none;
}

/* Step 3: Branch routing container */
.flow-routing-container {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  min-height: 100%;
}

.route-channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.route-label {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.route-label.label-pos {
  background: #DCFCE7;
  color: #15803D;
}

.route-label.label-neg {
  background: #FEF3C7;
  color: #B45309;
}

.route-target-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1;
}

.route-target-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
}

.route-target-card.card-2gis {
  border-color: rgba(40, 173, 99, 0.3);
}

.route-target-card.card-private {
  border-color: rgba(245, 158, 11, 0.3);
}

.target-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.target-icon-circle.tgis-bg {
  background: #28AD63;
}

.target-icon-circle.private-bg {
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
}

.route-card-text h5 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.route-card-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.route-res-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.route-res-badge.pos-res {
  background: #DCFCE7;
  color: #15803D;
}

.route-res-badge.neg-res {
  background: #FEE2E2;
  color: #991B1B;
}


/* Slide 4: Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.benefit-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-green);
  box-shadow: var(--shadow-premium);
}

.benefit-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

.benefit-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.benefit-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.benefit-card-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Slide 5: Implementation Timeline Cards */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.timeline-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border-color);
}

.timeline-card.active::before {
  background: var(--accent-green);
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1;
}

.timeline-card.active .timeline-number {
  color: var(--accent-green);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Slide 6: Pricing layouts */
.pricing-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 900px;
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  flex: 1;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.premium {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-premium);
}

.pricing-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 600;
}

.pricing-tier {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-price-container {
  margin-bottom: 20px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-secondary);
}

.pricing-feature-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
}

.pricing-button {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.pricing-card.premium .pricing-button {
  background: var(--accent-green);
}

.pricing-button:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* Calculator Styles */
.calc-inputs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.calc-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.calc-val-badge {
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green);
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results-card {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.calc-results-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Period Tabs */
.period-tabs {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: var(--border-radius-md);
  gap: 4px;
}

.period-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.period-btn.active {
  background: var(--bg-primary);
  color: var(--accent-green);
  box-shadow: var(--shadow-subtle);
}

/* Rating Flow Card */
.rating-flow-card {
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green-border);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.rating-flow-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.rating-flow-start, .rating-flow-end {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating-flow-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 4px;
}

.rating-flow-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1;
}

.rating-flow-value.positive {
  color: var(--accent-green);
  font-size: 46px;
}

.rating-flow-arrow {
  font-size: 32px;
  color: var(--text-muted);
}

.star-rating-container {
  display: flex;
  justify-content: center;
}

.star-rating-wrapper {
  position: relative;
  font-size: 32px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.08);
  display: inline-block;
  user-select: none;
  letter-spacing: 3px;
}

.star-rating-fill {
  position: absolute;
  top: 0;
  left: 0;
  color: #F59E0B;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.calc-res-item {
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.calc-res-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.calc-res-label.font-danger {
  color: #B91C1C;
}

.calc-res-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-res-value.positive {
  color: var(--accent-green);
  font-size: 26px;
}

.calc-res-value.negative {
  color: #EF4444;
}

.calc-res-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.calc-cta-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.calc-cta-btn:hover {
  background: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.2);
}

/* Utility to center text content slides */
.slide-content.centered {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* ── Mini Conversion Funnel ── */
.calc-funnel {
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
}

.calc-funnel-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.calc-funnel-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calc-funnel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
}

.funnel-step-icon {
  font-size: 20px;
  line-height: 1;
}

.funnel-step-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.funnel-step-value {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1;
}

.funnel-step-value.funnel-neg {
  color: #EF4444;
}

.calc-funnel-arrow {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 4px;
}

.calc-funnel-caption {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  opacity: 0.7;
}

/* ── Rating Context Hint ── */
.rating-context-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  padding: 8px 0 2px;
  line-height: 1.4;
  transition: all 0.3s ease;
}

/* ── 5-item Results Grid ── */
.calc-results-grid-5 {
  grid-template-columns: repeat(2, 1fr);
}

.calc-res-item-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(34, 197, 94, 0.02));
  border-color: rgba(34, 197, 94, 0.2);
  padding: 10px 14px;
}

.calc-res-item-wide .calc-res-label {
  flex-shrink: 0;
  margin-bottom: 0;
  font-size: 12px;
}

.calc-res-item-wide .calc-res-value {
  flex-shrink: 0;
  font-size: 24px;
}

.calc-res-item-wide .calc-res-sub {
  margin-top: 0;
  flex: 1;
}

