/* ==========================================================================
   Vibe Coding & Cloudflare Edge — Style Sheet
   Mobile-First, Tactile, High-Performance Dark Mode Theme
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #070a12;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 38, 58, 0.85);
  --bg-card-solid: #0f172a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(243, 128, 32, 0.45);
  --border-glow: rgba(99, 102, 241, 0.35);

  /* Accents */
  --cf-orange: #f38020;
  --cf-orange-light: #fb923c;
  --cf-orange-dim: rgba(243, 128, 32, 0.12);
  --indigo-accent: #6366f1;
  --indigo-light: #818cf8;
  --indigo-dim: rgba(99, 102, 241, 0.12);
  --emerald-accent: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --cyan-accent: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.12);
  --amber-accent: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --rose-accent: #f43f5e;

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Sizing & Touch Layout */
  --header-height: 64px;
  --bottom-nav-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glows */
body::before {
  content: "";
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 380px;
  background: radial-gradient(circle, rgba(243, 128, 32, 0.12) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Main App Wrapper */
.app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  background: transparent;
  z-index: 1;
}

/* ==========================================================================
   STICKY TOP NAVIGATION
   ========================================================================== */
.top-nav {
  position: relative;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 100%;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--cf-orange-dim);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243, 128, 32, 0.25);
}

.brand-icon svg {
  width: 16px;
  height: 16px;
}

.brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.badge-accent {
  background: linear-gradient(135deg, var(--cf-orange), var(--cf-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.slide-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

/* Linear Progress Line */
.progress-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--cf-orange), var(--indigo-light));
  transition: width var(--transition-smooth);
  box-shadow: 0 0 10px rgba(243, 128, 32, 0.5);
}

/* ==========================================================================
   DECK & SLIDE CONTAINER
   ========================================================================== */
.deck-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  outline: none;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(35px);
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(var(--bottom-nav-height) + 20px) 16px;
}

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

.slide.prev-slide {
  transform: translateX(-35px);
}

.slide::-webkit-scrollbar {
  width: 4px;
}

.slide::-webkit-scrollbar-track {
  background: transparent;
}

.slide::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.slide-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================================
   SHARED TYPOGRAPHY & COMPONENTS
   ========================================================================== */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cf-orange-light);
  background: var(--cf-orange-dim);
  border: 1px solid rgba(243, 128, 32, 0.28);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cf-orange);
  box-shadow: 0 0 0 0 rgba(243, 128, 32, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(243, 128, 32, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 7px rgba(243, 128, 32, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(243, 128, 32, 0);
  }
}

.slide-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, var(--cf-orange-light) 65%, var(--cf-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.slide-subtitle strong {
  color: var(--text-main);
}

/* ==========================================================================
   SLIDE 1: WELCOME & MINDSET CARDS
   ========================================================================== */
.card-grid-2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 520px) {
  .card-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-card.highlight-card {
  border-color: rgba(243, 128, 32, 0.35);
  background: linear-gradient(180deg, rgba(243, 128, 32, 0.08) 0%, rgba(18, 24, 38, 0.75) 100%);
}

.card-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-badge.orange {
  background: var(--cf-orange-dim);
  color: var(--cf-orange);
  border: 1px solid rgba(243, 128, 32, 0.3);
}

.card-icon-badge.indigo {
  background: var(--indigo-dim);
  color: var(--indigo-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.card-icon-badge svg {
  width: 22px;
  height: 22px;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.card-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.mindset-pill-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(243, 128, 32, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
}

.box-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.box-icon {
  font-size: 1rem;
}

.box-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cf-orange-light);
}

.box-quote {
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.45;
  color: #e2e8f0;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  background: linear-gradient(135deg, var(--cf-orange) 0%, #e06c10 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(243, 128, 32, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 6px;
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-button svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.cta-button:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   SLIDE 2: RESTAURANT ANALOGY & INTERACTIVE TABS
   ========================================================================== */
.interactive-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.interactive-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-width: 110px;
  min-height: 42px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-content-container {
  position: relative;
  min-height: 230px;
}

.tab-panel {
  display: none;
  animation: fadeIn 220ms ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.analogy-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analogy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.analogy-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.orange-badge {
  background: var(--cf-orange-dim);
  color: var(--cf-orange-light);
  border: 1px solid rgba(243, 128, 32, 0.3);
}

.purple-badge {
  background: var(--indigo-dim);
  color: var(--indigo-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.emerald-badge {
  background: var(--emerald-dim);
  color: var(--emerald-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.analogy-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.analogy-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.analogy-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
}

@media (min-width: 440px) {
  .breakdown-item {
    flex-direction: row;
    gap: 8px;
  }
}

.b-label {
  font-weight: 700;
  color: var(--text-dim);
  min-width: 85px;
}

.b-text {
  color: #e2e8f0;
}

.b-text code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cf-orange-light);
}

.tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.tip-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.tip-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

/* ==========================================================================
   SLIDE 3: HTTP BRIDGE & INTERACTIVE SIMULATION
   ========================================================================== */
.simulation-stage {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.sim-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.status-light.active {
  background: var(--emerald-accent);
  box-shadow: 0 0 10px var(--emerald-accent);
}

.status-light.simulating {
  background: var(--cf-orange);
  box-shadow: 0 0 10px var(--cf-orange);
  animation: pulse-ring 1s infinite;
}

.status-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sim-latency {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan-accent);
  background: var(--cyan-dim);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.sim-latency svg {
  width: 14px;
  height: 14px;
}

/* Pipeline Track (Cards) */
.pipeline-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.pipeline-track::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 25px;
  left: 17px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.step-marker {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.step-card {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: all var(--transition-fast);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px;
}

.step-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.step-tag.client {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-accent);
}

.step-tag.edge {
  background: var(--cf-orange-dim);
  color: var(--cf-orange-light);
}

.step-tag.db {
  background: var(--emerald-dim);
  color: var(--emerald-accent);
}

.step-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.step-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Active Highlight during Simulation */
.pipeline-step.active-step .step-marker {
  background: var(--cf-orange);
  border-color: #fff;
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(243, 128, 32, 0.8);
}

.pipeline-step.active-step .step-card {
  border-color: var(--cf-orange);
  background: rgba(243, 128, 32, 0.09);
  transform: translateX(4px);
}

.pipeline-step.done-step .step-marker {
  background: var(--emerald-accent);
  border-color: var(--emerald-accent);
  color: #fff;
}

.sim-actions {
  display: flex;
  justify-content: center;
}

.sim-trigger-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(243, 128, 32, 0.35);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.sim-trigger-btn:active {
  transform: scale(0.98);
}

.sim-trigger-btn.running {
  background: rgba(243, 128, 32, 0.15);
  border-color: var(--cf-orange);
  pointer-events: none;
}

.sim-btn-icon {
  font-size: 1rem;
}

/* ==========================================================================
   SLIDE 4: C-A-R-E ACCORDION & PROMPT TOGGLES
   ========================================================================== */
.care-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.care-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.care-item.active {
  border-color: rgba(99, 102, 241, 0.4);
}

.care-header {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.pillar-letter {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.pillar-letter.c { background: #3b82f6; }
.pillar-letter.a { background: #8b5cf6; }
.pillar-letter.r { background: #ec4899; }
.pillar-letter.e { background: var(--cf-orange); }

.pillar-info {
  flex: 1;
}

.pillar-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.pillar-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.care-arrow {
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

.care-item.active .care-arrow {
  transform: rotate(180deg);
  color: var(--indigo-light);
}

.care-body {
  display: none;
  padding: 4px 14px 14px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.care-item.active .care-body {
  display: block;
  animation: fadeIn 200ms ease;
}

.prompt-chip {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--indigo-light);
  padding: 8px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #e2e8f0;
}

/* Prompt Toggle Box */
.prompt-toggle-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toggle-bar {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.toggle-pill {
  flex: 1;
  min-height: 38px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.prompt-display {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e2e8f0;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.copy-command-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-command-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.copy-command-btn:active {
  transform: scale(0.98);
}

.copy-command-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   SLIDE 5: PRACTICAL MISSION CHECKLIST
   ========================================================================== */
.checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.checklist-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.checklist-progress {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cf-orange-light);
  background: var(--cf-orange-dim);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(243, 128, 32, 0.25);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.check-item:active {
  transform: scale(0.99);
}

.task-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.custom-check svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}

.task-checkbox:checked + .custom-check {
  background: var(--emerald-accent);
  border-color: var(--emerald-accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.task-checkbox:checked + .custom-check svg {
  opacity: 1;
  transform: scale(1);
}

.check-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition-fast);
}

.task-checkbox:checked ~ .check-text-group .task-title {
  color: var(--text-dim);
  text-decoration: line-through;
}

.task-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.code-snippet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 6px;
  gap: 8px;
}

.code-snippet-box code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-accent);
  overflow-x: auto;
  white-space: nowrap;
}

.inline-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.inline-copy-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.inline-copy-btn:active {
  transform: scale(0.9);
}

.inline-copy-btn svg {
  width: 15px;
  height: 15px;
}

.mission-status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(243, 128, 32, 0.08);
  border: 1px solid rgba(243, 128, 32, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all var(--transition-smooth);
}

.mission-status-card.completed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

.status-icon {
  font-size: 1.3rem;
}

.status-copy {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #e2e8f0;
}

/* ==========================================================================
   SLIDE 6: SUMMARY & DEPLOY ACTION
   ========================================================================== */
.rules-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.rule-num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--cf-orange-dim);
  color: var(--cf-orange-light);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 128, 32, 0.3);
}

.rule-content strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 2px;
}

.rule-content p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.deploy-action-box {
  background: linear-gradient(180deg, rgba(243, 128, 32, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(243, 128, 32, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.deploy-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: #fff;
}

.cf-cloud-icon {
  font-size: 1.1rem;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.deploy-box-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.code-snippet-box.primary {
  background: #090e1a;
  border-color: rgba(243, 128, 32, 0.3);
  padding: 10px 12px;
}

.code-snippet-box.primary code {
  color: #fed7aa;
  font-weight: 600;
  font-size: 0.8rem;
}

.restart-wrap {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.secondary-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.secondary-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   BOTTOM STICKY NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  min-width: 90px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0 18px;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-btn:not(:disabled):active {
  transform: scale(0.95);
}

.next-btn {
  background: linear-gradient(135deg, var(--cf-orange), #ea580c);
  border-color: rgba(243, 128, 32, 0.5);
  box-shadow: 0 2px 12px rgba(243, 128, 32, 0.35);
}

.nav-btn svg {
  width: 18px;
  height: 18px;
}

.dot-indicators {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.dot-btn.active {
  width: 22px;
  border-radius: 8px;
  background: var(--cf-orange);
  box-shadow: 0 0 8px rgba(243, 128, 32, 0.6);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(243, 128, 32, 0.4);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
