/* ==========================================================================
   MAHA Checkpoint - Journey of Paddy Design System & Stylesheet
   Based on Storyboard Scenes 1-12 & Implementation Guide
   ========================================================================== */

:root {
  /* Color Palette */
  --navy-900: #092854;
  --navy-700: #17477A;
  --green-800: #176637;
  --green-600: #248A4B;
  --green-500: #2EB363;
  --green-100: #EAF6ED;
  --green-50:  #F4FAF6;
  --blue-500: #397BC2;
  --blue-100: #EAF3FC;
  --gold-500: #F1B638;
  --gold-100: #FFF6DE;
  --bg-main: #F8FBFE;
  --bg-card: #FFFFFF;
  --border: #C8D9EC;
  --border-light: #E2ECF7;
  --text-primary: #092854;
  --text-secondary: #4F6074;
  --text-muted: #7A8999;
  --error: #C44242;
  --error-bg: #FDE8E8;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows */
  --shadow-soft: 0 8px 30px rgba(9, 40, 84, 0.08);
  --shadow-card: 0 4px 16px rgba(9, 40, 84, 0.04);
  --shadow-selected: 0 8px 24px rgba(36, 138, 75, 0.15);
  --shadow-modal: 0 20px 50px rgba(9, 40, 84, 0.2);
}

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

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

/* ==========================================================================
   Desktop Presentation Workspace Layout
   ========================================================================== */
.workspace-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-main);
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  gap: 32px;
}

@media (max-width: 767px) {
  .workspace-wrapper {
    padding: 0;
    background-color: #ffffff;
  }
}

/* Left Sidebar - Scene Info & Presentation Guide */
.desktop-sidebar {
  display: none;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  height: fit-content;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

@media (min-width: 1120px) {
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

.sidebar-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
}

.sidebar-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.scene-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-main);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.timeline-item:hover {
  border-color: var(--border);
  background: #fff;
  color: var(--navy-900);
}

.timeline-item.active {
  background: var(--green-100);
  border-color: var(--green-600);
  color: var(--green-800);
  font-weight: 700;
}

.timeline-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-900);
}

.timeline-item.active .timeline-num {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

/* Right Sidebar - Demo Controls Toolbar */
.desktop-controls {
  display: none;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  height: fit-content;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

@media (min-width: 1120px) {
  .desktop-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

.control-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
  color: var(--navy-900);
}

.control-btn.danger {
  color: var(--error);
}

.control-btn.danger:hover {
  background: var(--error-bg);
  border-color: var(--error);
}

/* ==========================================================================
   Smartphone Device Mockup Container (.app)
   ========================================================================== */
.phone-frame {
  width: 100%;
  max-width: 430px;
  height: 100%;
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow: hidden;
}

@media (min-width: 768px) {
  .phone-frame {
    height: 880px;
    min-height: 880px;
    max-height: 880px;
    border-radius: 36px;
    border: 8px solid #1e293b;
    box-shadow: 0 25px 60px -15px rgba(9, 40, 84, 0.25), 0 0 0 1px rgba(255,255,255,0.8) inset;
  }
}

/* Simulated Smartphone Status Bar */
.status-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 6px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  z-index: 50;
  user-select: none;
}

.status-time {
  font-weight: 700;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-notch {
  width: 110px;
  height: 22px;
  background: #1e293b;
  border-radius: 12px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: none;
}

@media (min-width: 768px) {
  .status-bar {
    display: flex;
  }
  .status-notch {
    display: block;
  }
}

/* App Viewport Container */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

/* App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-logo {
  height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  max-width: 220px;
}

.header-logo img {
  height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.header-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-100);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-800);
}

.header-progress.hidden {
  display: none;
}

/* ==========================================================================
   Screen Structure & Transitions
   ========================================================================== */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Screen specific padding adjustments */
#screen-tunnel.screen {
  padding: 0;
}

/* Common Typography & Hero Styles */
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-700);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.highlight-green {
  color: var(--green-600);
}

/* Buttons */
.btn-primary {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  background-color: var(--green-600);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(36, 138, 75, 0.2);
  user-select: none;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--green-800);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background-color: transparent;
  color: var(--navy-700);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--blue-100);
  border-color: var(--blue-500);
  color: var(--navy-900);
}

.btn-helper {
  background: var(--blue-100);
  color: var(--blue-500);
  border: 1px dashed var(--blue-500);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.btn-helper:hover {
  background: #dbeafe;
}

/* Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}

.input-box {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background-color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-box:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(36, 138, 75, 0.15);
}

.input-box.error {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.error-msg {
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* ==========================================================================
   SCREEN 01 — Registration
   ========================================================================== */
.registration-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 10px 0 20px;
}

.reg-badge-card {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}

.reg-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reg-badge-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.reg-badge-text strong {
  color: var(--navy-900);
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

/* ==========================================================================
   SCREEN 02 — Journey Intro
   ========================================================================== */
.intro-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
}

.hero-media-card {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.hero-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(9, 40, 84, 0.75), transparent);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.hero-media-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-900);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.info-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pill-group {
  display: flex;
  gap: 8px;
  margin: 6px 0 12px;
}

.mini-pill {
  flex: 1;
  padding: 8px 6px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mini-pill svg {
  color: var(--green-600);
}

/* ==========================================================================
   SCREEN 03 — Immersive Tunnel & Favorite Scene
   ========================================================================== */
.tunnel-view {
  position: relative;
  width: 100%;
  height: 240px;
  background: #051429;
}

.tunnel-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tunnel-header-badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 40, 84, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.tunnel-bottom-sheet {
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px;
  margin-top: -20px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 -8px 24px rgba(9, 40, 84, 0.08);
}

.scene-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.scene-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scene-option-card:hover {
  border-color: var(--green-600);
  background: var(--green-50);
}

.scene-option-card.selected {
  border: 2px solid var(--green-600);
  background-color: var(--green-100);
  box-shadow: var(--shadow-selected);
}

.scene-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scene-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.scene-text-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}

.radio-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.scene-option-card.selected .radio-check {
  border-color: var(--green-600);
  background-color: var(--green-600);
  color: #ffffff;
}

/* ==========================================================================
   SCREEN 04 — Choose Checkpoint (Hub / Core Screen)
   ========================================================================== */
.progress-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

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

.progress-title-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-counter-badge {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-800);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--blue-100);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--green-600);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Checkpoint List */
.checkpoint-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.checkpoint-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
  user-select: none;
}

.checkpoint-card:hover {
  border-color: var(--blue-500);
  transform: translateY(-1px);
}

.checkpoint-card.active-selected {
  border: 2px solid var(--green-600);
  background: var(--green-100);
  box-shadow: var(--shadow-selected);
}

.checkpoint-card.completed {
  border-color: var(--green-600);
  background: var(--green-50);
  opacity: 0.95;
}

.cp-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-icon-green { background: var(--green-100); color: var(--green-600); }
.cp-icon-blue  { background: var(--blue-100);  color: var(--blue-500); }
.cp-icon-gold  { background: var(--gold-100);  color: var(--gold-500); }

.cp-meta-box {
  display: flex;
  flex-direction: column;
}

.cp-number-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cp-name-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}

.cp-subtitle-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.cp-card-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cp-status-pill {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.cp-status-pill.done {
  background: var(--green-600);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cp-chevron {
  color: var(--navy-700);
}

/* Checkpoint Route Mini Graphic (as shown in Storyboard 2 Scene 5) */
.route-map-graphic {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-nodes-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 6px 4px;
}

.route-nodes-bar::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 2px;
  border-top: 2px dashed var(--border);
  z-index: 1;
}

.route-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--navy-900);
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.route-node.done {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #ffffff;
}

.route-node.active {
  background: var(--navy-900);
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(9, 40, 84, 0.25);
}

/* ==========================================================================
   SCREEN 05 — Checkpoint Experience & Quiz
   ========================================================================== */
.cp-exp-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-100);
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  width: fit-content;
}

/* State A: Selected & Instruction */
.location-hero-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.location-icon-bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

/* State B: Multiple Choice Quiz Card */
.quiz-stepper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

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

.quiz-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-100);
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.quiz-step-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--blue-100);
  border-radius: 100px;
  overflow: hidden;
}

.quiz-step-bar-fill {
  height: 100%;
  background-color: var(--green-600);
  border-radius: 100px;
  transition: width 0.35s ease;
}

.quiz-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease;
}

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

.quiz-question-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-question-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.4;
}

.quiz-btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mc-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mc-option-card:hover {
  border-color: var(--green-600);
  background: var(--green-50);
}

.mc-option-card.selected {
  border: 2px solid var(--green-600);
  background-color: var(--green-100);
  box-shadow: var(--shadow-selected);
}

.mc-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mc-letter-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mc-option-card.selected .mc-letter-badge {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #ffffff;
}

.mc-text-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.35;
}

.mc-radio-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mc-option-card.selected .mc-radio-check {
  border-color: var(--green-600);
  background-color: var(--green-600);
  color: #ffffff;
}

/* ==========================================================================
   SCREEN 06 — Checkpoint Completed
   ========================================================================== */
.success-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  gap: 20px;
  padding: 20px 0;
}

.success-icon-large {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(36, 138, 75, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(36, 138, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 138, 75, 0); }
}

.success-summary-box {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
}

/* ==========================================================================
   SCREEN 07 — Journey Progress
   ========================================================================== */
.progress-screen-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
}

.timeline-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-checkpoint-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.timeline-checkpoint-item.done {
  background: var(--green-50);
  border-color: var(--green-600);
}

.timeline-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-state-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-state-icon.done {
  background: var(--green-600);
  color: #fff;
}

.timeline-state-icon.pending {
  background: var(--bg-main);
  border: 2px solid var(--border);
  color: var(--text-muted);
}

/* ==========================================================================
   SCREEN 08 — Journey Completed (Celebration)
   ========================================================================== */
.celebration-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 10px 0 24px;
  position: relative;
}

#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.trophy-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(241, 182, 56, 0.3);
  position: relative;
  z-index: 2;
}

.reward-card {
  width: 100%;
  background: linear-gradient(135deg, #092854, #17477A);
  border-radius: 20px;
  padding: 20px;
  color: #ffffff;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(9, 40, 84, 0.2);
  z-index: 2;
}

.reward-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.reward-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.reward-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(241, 182, 56, 0.2);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-title {
  font-size: 16px;
  font-weight: 700;
}

.reward-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.4;
}

.reward-code-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 16px;
}

/* ==========================================================================
   Bottom Navigation Bar
   ========================================================================== */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 0 8px;
  position: sticky;
  bottom: 0;
  z-index: 40;
}

.bottom-nav.hidden {
  display: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.nav-item:hover {
  color: var(--navy-900);
}

.nav-item.active {
  color: var(--green-600);
  font-weight: 700;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Modal Dialog for Reward & Voucher
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 40, 84, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

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

.modal-sheet {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-modal);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
