/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root{
  --bg-main: #FFFFFF;
  --bg-panel: #F7FAFF;
  --bg-hover: #EEF5FF;
  --bg-active: #E3F0FF;
  --bg: #e8f4f8;
  --panel: #ffffff;
  --panel2: #f8fbff;
  --text: #1a3a52;
  --muted: #5a7a92;
  --border: rgba(58,134,180,0.2);
  --shadow: 0 10px 30px rgba(58,134,180,.15);
  --accent: #3a86b4;
  --accent2: #2dd4bf;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #10b981;
  --focus: #0ea5e9;
  --radius: 18px;
  --radius2: 12px;
  --maxw: 1200px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-heading: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans: var(--font-body);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 25%, #e0e7ff 50%, #d1fae5 75%, #ccfbf1 100%);
  background-attachment: fixed;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:#3b82f6; color:#fff; padding:8px 10px; border-radius:10px;
  font-weight: 600;
}
.skip-link:focus{ left:10px; top:10px; z-index:9999; box-shadow: 0 4px 12px rgba(59,130,246,.4); }

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid var(--border);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(58,134,180,.08);
  position: sticky;
  top:0;
  z-index: 20;
}

.brand{
  display:flex; gap:12px; align-items:center;
}
.logo{
  width:40px; height:40px;
  display:grid; place-items:center;
  flex-shrink: 0;
}
.logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-title{ font-family: var(--font-heading); font-weight:700; letter-spacing:.2px; }
.brand-subtitle{ font-size:12px; color: var(--muted); margin-top:2px; }

.topbar-actions{ display:flex; gap:10px; align-items:center; }
select{
  background: var(--panel);
  color: var(--text);
  border:1px solid var(--border);
  border-radius: 12px;
  padding:8px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
}
select:hover{
  border-color: rgba(59,130,246,.4);
}
select:focus{
  outline: 2px solid rgba(59,130,246,.3);
  outline-offset: 2px;
}

.app{
  max-width: var(--maxw);
  margin: 18px auto 30px;
  padding: 0 16px;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:16px;
}

.card{
  background-color: var(--bg-main);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding:16px;
}

.card-title{
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing:.2px;
}

.phase-list{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:10px;
}
.phase{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
}
.phase.active{
  background: rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.4);
  color: var(--text);
  font-weight: 600;
}
.phase.complete{
  background: rgba(45,212,191,.15);
  border-color: rgba(45,212,191,.4);
  color: var(--text);
}
.phase-dot{
  width:10px; height:10px; border-radius:99px;
  background: rgba(90,122,146,.25);
  border:1px solid var(--border);
}
.phase.active .phase-dot{ background: #3b82f6; border-color: #3b82f6; }
.phase.complete .phase-dot{ background: #2dd4bf; border-color: #2dd4bf; }

.chunk{ margin-top: 10px; padding-top: 10px; border-top:1px dashed rgba(58,134,180,.25); }
.chunk-title{ font-weight:650; font-size: 13px; }
.chunk-steps{ margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; }

/* Step Checklist Styles */
.step-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--bg-main);
  transition: all 0.2s ease;
}

.checklist-item:hover {
  background-color: var(--bg-hover);
}

.checklist-item.current {
  background-color: var(--bg-active);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.checklist-item.completed {
  background-color: var(--bg-main);
  border-color: rgba(45, 212, 191, 0.3);
}

.checklist-icon {
  font-size: 16px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkmark-svg {
  display: inline-block;
  vertical-align: middle;
}

.checklist-item.current .checklist-icon {
  color: #3b82f6;
}

.checklist-item.completed .checklist-icon {
  color: #2dd4bf;
}

.checklist-item:not(.current):not(.completed) .checklist-icon {
  color: var(--muted);
}

.checklist-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.checklist-item:not(.current):not(.completed) .checklist-text {
  color: var(--muted);
}

.checklist-text strong {
  font-weight: 650;
}

.badge{
  font-size:12px;
  padding:6px 8px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(226,232,240,.6);
  color: var(--muted);
}
.badge.active{
  background: rgba(59,130,246,.2);
  color: var(--text);
  border-color: rgba(59,130,246,.4);
  font-weight: 600;
}
.badge.done{
  background: rgba(45,212,191,.2);
  color: var(--text);
  border-color: rgba(45,212,191,.4);
}

.sidebar{ display:flex; flex-direction:column; gap:16px; }

.sidebar .card {
  background-color: var(--bg-panel);
}

.content{
  min-height: 74vh;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.statusbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}

.status-left{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(226,232,240,.6);
  border:1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}

.progress{
  width: 220px;
  height: 10px;
  border-radius: 999px;
  background: rgba(226,232,240,.5);
  border: 1px solid var(--border);
  overflow:hidden;
}
.progress-bar{
  height:100%;
  background: linear-gradient(90deg, #3b82f6, #2dd4bf);
  width:0%;
  transition: width 0.3s ease;
}

.view{
  flex:1;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background-color: var(--bg-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 18px;
  overflow:hidden;
}

.footer-nav{
  display: none;  /* Navigation now inside panels */
}

.footer-center{ flex:1; display:flex; justify-content:center; }

.btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.8);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 14px;
  cursor:pointer;
  font-family: var(--font-body);
  font-weight:600;
  font-size: 14px;
  transition: all 0.2s ease;
}
.btn:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58,134,180,.2);
}
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.btn-primary{
  background: linear-gradient(135deg, #3b82f6, #2dd4bf);
  border-color: transparent;
  color: white;
  font-weight: 700;
}
.btn-primary:hover:not(:disabled){
  box-shadow: 0 6px 20px rgba(59,130,246,.4);
}
.btn-ghost{
  background: transparent;
}
.btn-outline{
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(59,130,246,.4);
  color: #3b82f6;
  font-weight: 650;
}
.btn-outline:hover:not(:disabled){
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.6);
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  height: 100%;
}

.single-column-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.panel{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 14px;
  overflow:auto;
}

.panel-with-nav {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: visible;
}

.panel-content {
  flex: 1;
  padding: 16px 20px;
  overflow: auto;
}

.panel-content .h1 {
  margin-bottom: 8px;
}

.panel-content .p {
  margin-bottom: 8px;
}

.panel-nav {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-main);
  justify-content: flex-start;
}

.panel-nav .btn {
  flex: 1;
  max-width: 160px;
}

.h1{
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.3;
  margin: 0 0 12px;
  padding-bottom: 4px;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #3b82f6, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.progress-container {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(248, 250, 252, 0.5);
}

.progress-container .progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.5);
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-container .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2dd4bf);
  transition: width 0.4s ease;
}

.h2{
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 10px;
  padding-bottom: 4px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
}
.p{
  font-family: var(--font-body);
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

/* Apply heading font to native heading elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  padding-bottom: 4px;
}

.kbd{
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border:1px solid var(--border);
  background: rgba(226,232,240,.6);
  color: var(--text);
  font-weight: 500;
}

.media{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.img-wrap{
  width:100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border:1px dashed rgba(58,134,180,.3);
  background: rgba(226,232,240,.4);
  overflow:hidden;
  display:grid;
  place-items:center;
  position:relative;
}
.img-wrap img{
  width:100%; height:100%; object-fit:cover;
  display:block;
}
.content-img-wrap {
  width: 100%;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(226,232,240,.2);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}
.content-img-wrap img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* Side-by-side layout for image and instruction */
.step-content-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 16px 0;
}

.step-image-col {
  flex: 0 0 auto;
  max-width: 300px;
  min-width: 240px;
}

.step-image-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(226,232,240,.2);
}

.step-text-col {
  flex: 1;
  min-width: 0;
}

.step-text-col .p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .step-content-row {
    flex-direction: column;
  }
  
  .step-image-col {
    max-width: 100%;
  }
}

.img-placeholder{
  color: rgba(90,122,146,.7);
  font-size: 13px;
  padding: 10px;
  text-align:center;
}

/* img-tag removed - no more overlay labels on images */

.callout{
  border-radius: var(--radius);
  border:1px solid rgba(58,134,180,.25);
  background: rgba(224,242,254,.5);
  padding: 10px 12px;
}
.callout-title{ 
  font-family: var(--font-heading); 
  font-weight: 700; 
  margin-bottom: 6px; 
  padding-bottom: 4px;
  color: var(--text); 
  line-height: 1.3;
}
.callout ul{ margin: 8px 0 0 18px; color: var(--muted); }

.quiz{
  display:flex; flex-direction:column; gap:10px;
}
.options{
  display:flex; flex-direction:column; gap:8px;
}
.option{
  width: 100%;
  text-align:left;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.7);
  cursor:pointer;
  font-family: var(--font-body);
  color: var(--text);
  transition: all 0.2s ease;
}
.option:hover{ 
  border-color: rgba(59,130,246,.5); 
  background: rgba(224,242,254,.6);
  transform: translateX(2px);
}
.option.correct{ 
  border-color: rgba(45,212,191,.6); 
  background: rgba(209,250,229,.7); 
  font-weight: 600;
}
.option.wrong{ 
  border-color: rgba(239,68,68,.5); 
  background: rgba(254,226,226,.6); 
}
.option.correct{ border-color: rgba(176,255,138,.35); background: rgba(176,255,138,.10); }
.option.wrong{ border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.09); }

.toast{
  margin-top: 10px;
  border-radius: 14px;
  padding: 10px 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.8);
  color: var(--muted);
}
.toast.ok{ 
  border-color: rgba(45,212,191,.5); 
  background: rgba(209,250,229,.8);
  color: var(--text); 
  font-weight: 600;
}
.toast.warn{ 
  border-color: rgba(245,158,11,.5); 
  background: rgba(254,243,199,.8);
  color: var(--text); 
}
.toast.danger{ 
  border-color: rgba(239,68,68,.5); 
  background: rgba(254,226,226,.8);
  color: var(--text); 
}

.tiny{ font-size:12px; }
.muted{ color: var(--muted); }

.drag-area{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.drag-col{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.6);
  padding: 12px;
  min-height: 320px;
}
.draggable{
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
  cursor: grab;
  margin-bottom: 8px;
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(58,134,180,.1);
}
.draggable:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(58,134,180,.2);
}
.draggable:active{ cursor: grabbing; }
.dropzone{
  border:1px dashed rgba(58,134,180,.35);
  border-radius: 14px;
  padding: 10px;
  min-height: 60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
  background: rgba(224,242,254,.3);
  transition: all 0.2s ease;
}
.dropzone:hover{
  border-color: rgba(59,130,246,.5);
  background: rgba(224,242,254,.5);
}
.dropzone.filled{
  border-style: solid;
  border-color: rgba(59,130,246,.4);
  background: rgba(224,242,254,.6);
}

/* Visual feedback for correct/incorrect slots in Final Assessment */
.dropzone.slot-correct {
  background-color: rgba(34,197,94,0.15);
  border-color: #22c55e;
  border-style: solid;
  border-width: 2px;
}

.dropzone.slot-wrong {
  background-color: rgba(239,68,68,0.15);
  border-color: #ef4444;
  border-style: solid;
  border-width: 2px;
}

.zone-label{
  font-size: 12px;
  color: var(--muted);
  width: 42px;
}
.zone-text{
  flex:1;
}
.zone-clear{
  border:1px solid var(--border);
  background: rgba(255,255,255,.8);
  color: var(--muted);
  border-radius: 12px;
  padding: 6px 8px;
  cursor:pointer;
  transition: all 0.2s ease;
}
.zone-clear:hover{
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.3);
  color: #ef4444;
}

@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }
  .progress{ width: 160px; }
  .grid{ grid-template-columns: 1fr; }
}

/* --- CLICK FIX: prevent decorative overlays from blocking clicks --- */
body::before,
body::after,
.app::before,
.app::after,
.topbar::before,
.topbar::after {
  pointer-events: none !important;
}

/* If you have any background/overlay layers, add them here */
.bg, .overlay, .noise, .grain, .glow, .vignette {
  pointer-events: none !important;
}

/* === MODAL/POPOVER SYSTEM === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 58, 82, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(58, 134, 180, 0.35);
  max-width: 480px;
  width: 90%;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header.success {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(16, 185, 129, 0.08));
}

.modal-header.error {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.08));
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.modal-title.success {
  color: #10b981;
}

.modal-title.error {
  color: #f59e0b;
}

.modal-body {
  padding: 20px 24px;
  line-height: 1.6;
  color: var(--text);
}

.modal-footer {
  padding: 16px 24px;
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-footer .btn {
  flex: 0 0 auto;
  min-width: 120px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.02);
    opacity: 0.9;
  }
}

@keyframes successGlow {
  0% { 
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(45, 212, 191, 0);
    transform: scale(1.05);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes checkmarkDraw {
  0% {
    stroke-dashoffset: 20;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Apply animations */
.checklist-item.current {
  animation: pulse 2s ease-in-out infinite;
}

.option.correct {
  animation: successGlow 0.4s ease-out;
}

.option.wrong {
  animation: shake 0.3s ease-out;
}

/* Goal section styling */
.step-goal {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(45, 212, 191, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
}

.step-goal-title {
  font-weight: 700;
  color: #3b82f6;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  padding-bottom: 2px;
  line-height: 1.4;
}

.step-goal-text {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

/* Safety Reminder (merged Common Mistake + Critical Fail) */
.safety-reminder {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}

.safety-reminder.highlighted {
  animation: pulse 1s ease-in-out 3;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.12));
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.safety-reminder-title {
  font-weight: 700;
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.safety-reminder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.safety-reminder-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
  color: var(--text);
}

.safety-reminder-list li:before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #f59e0b;
  font-weight: 700;
}

/* Completion Page Stats */
.completion-stat {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(58, 134, 180, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.completion-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 134, 180, 0.15);
}

.completion-stat-icon {
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--accent2);
}

.completion-stat-value {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #3b82f6, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0;
}

.completion-stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Celebrate animation */
@keyframes celebrate {
  0% { transform: scale(0.8) rotate(-10deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* === Force hide progress bar elements (failsafe) === */
#stepProgressBar,
#stepProgressText,
.progress-container {
  display: none !important;
}
