/* Learning Mode - Clean Professional Styles */
.task-card-learning {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Completed Task Card */
.completed-task-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.completed-task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.completed-task-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  color: #22c55e;
  font-size: 1.25rem;
}

.completed-task-card h6 {
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.9375rem;
}

.completed-task-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.completed-task-time {
  color: #9ca3af;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.completed-task-checkmark {
  color: #22c55e;
  font-size: 1.75rem;
  opacity: 0.8;
}

/* Success Celebration on Task Card */
.completed-task-card.celebrating {
  animation: task-celebrate-pulse 0.6s ease-out;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.4) !important;
}

@keyframes task-celebrate-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.success-celebration-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 100;
  text-align: center;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-celebration-badge.show {
  transform: translate(-50%, -50%) scale(1);
}

.success-celebration-icon {
  font-size: 4rem;
  color: #22c55e;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 20px rgba(34, 197, 94, 0.6));
  animation: success-icon-bounce 0.6s ease-out;
}

.success-celebration-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 197, 94, 0.5);
  animation: success-text-fade-in 0.4s ease-out 0.2s backwards;
}

@keyframes success-icon-bounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes success-text-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes confetti-burst {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) rotate(1080deg) scale(0.3);
    opacity: 0;
  }
}

.celebration-confetti {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.learning-content {
  width: 100% !important;
  max-width: 100% !important;
}

.learning-content > * {
  max-width: 100% !important;
}

/* Learn Section - Blue Theme */
.learning-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 2px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.learning-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

/* Answer Section - Green Theme */
.question-answer-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 2px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.question-answer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.task-question-text {
  color: #e5e7eb;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.task-points-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.answer-input,
.answer-input-learning {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  font-family: 'Monaco', 'Menlo', monospace;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  height: auto;
  min-height: calc(1.5em + 1.5rem + 2px);
}

.answer-input-learning:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  outline: none;
  background: rgba(2, 6, 23, 0.95);
}

.answer-input-learning:focus.error-state,
.answer-input:focus.error-state {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.answer-input-learning::placeholder {
  color: #6b7280;
}

.btn-submit-learning,
.btn-submit-answer {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(34, 197, 94, 0.15);
  min-width: 200px;
  text-align: center;
  white-space: nowrap;
  height: auto;
  min-height: calc(1.5em + 1.5rem + 2px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-submit-learning:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(34, 197, 94, 0.2);
  transform: translateY(-1px);
}

.btn-hint-learning {
  background: transparent;
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-width: 130px;
  text-align: center;
  white-space: nowrap;
}

.btn-hint-learning:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: #fbbf24;
}

.hints-card-learning {
  background: rgba(45, 21, 2, 0.3);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
}

.hint-item-learning {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 3px solid #fbbf24;
}

.locked-task {
  opacity: 0.5;
  color: #6b7280;
}

/* Nav Tabs Styling */
nav .btn-outline-dark {
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
  background: rgba(15, 23, 42, 0.4);
  color: #9ca3af;
  font-weight: 400;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

nav .btn-outline-dark:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #e5e7eb;
}

nav .btn-outline-dark.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5) !important;
  color: #22c55e;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.answer-input.shake {
  animation: shake 0.3s ease-in-out;
  border-color: var(--bs-danger) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}
.length-warning-tooltip {
  position: fixed;
  background: var(--bs-danger);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  transform: translateY(-100%);
  margin-top: -10px;
}
.length-warning-tooltip.show {
  opacity: 1;
}
@keyframes success-pop {
  0% { transform: scale(0.98); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes success-fade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.98); }
}
@keyframes confetti {
  0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
.success-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.95) 0%, rgba(21, 115, 71, 0.95) 100%);
  color: white;
  z-index: 9999;
  pointer-events: none;
  animation: success-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
}
.success-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.success-animation::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 1.5rem;
  animation: success-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.success-text {
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
}
.success-animation.fade-out {
  animation: success-fade 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  animation: confetti 5s ease-in-out infinite;
}

/* Start Lab Button Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.tour-btn-start-machine {
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}

.tour-btn-start-machine:hover {
  box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.tour-btn-start-machine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

/* Lab Navigation Tabs */
.lab-nav-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.lab-nav-primary,
.lab-nav-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lab-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lab-nav-link i {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.lab-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.lab-nav-link.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.lab-nav-link.active i {
  color: #22c55e;
}

.lab-nav-link.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #20c997);
}

/* Solution shine effect */
@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.solution-shine {
  position: relative;
  overflow: hidden;
}

.solution-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

/* Solution locked state */
.lab-nav-link.solution-locked {
  color: #ffab00;
}

.lab-nav-link.solution-locked i {
  color: #ffab00;
}

.lab-nav-link.solution-locked:hover {
  background: rgba(255, 171, 0, 0.1);
  border-color: rgba(255, 171, 0, 0.3);
}

/* Solution Pro exclusive state */
.lab-nav-link.solution-pro {
  color: #ffab00;
}

.lab-nav-link.solution-pro i {
  color: #ffab00;
}

.lab-nav-link.solution-pro:hover {
  background: rgba(255, 171, 0, 0.1);
  border-color: rgba(255, 171, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lab-nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  
  .lab-nav-primary,
  .lab-nav-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .lab-nav-link {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  
  .lab-nav-link span {
    display: none;
  }
  
  .lab-nav-link i {
    font-size: 1.25rem;
  }
}

/* Info Section Styles */
.info-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.info-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-section-header i {
  font-size: 1.25rem;
  color: #22c55e;
}

.info-section-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-section-content {
  padding: 1.5rem;
}

/* Difficulty Badge */
.info-difficulty-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.15), rgba(105, 108, 255, 0.08));
  border: 1px solid rgba(105, 108, 255, 0.3);
  border-radius: 6px;
  color: #696cff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

/* Description */
.info-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Stats Grid */
.info-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.info-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  flex-shrink: 0;
}

.info-stat-icon i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.info-stat-icon.success {
  background: rgba(34, 197, 94, 0.15);
}

.info-stat-icon.success i {
  color: #22c55e;
}

.info-stat-icon.warning {
  background: rgba(251, 191, 36, 0.15);
}

.info-stat-icon.warning i {
  color: #fbbf24;
}

.info-stat-icon.primary {
  background: rgba(105, 108, 255, 0.15);
}

.info-stat-icon.primary i {
  color: #696cff;
}

.info-stat-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

/* First Blood Card */
.first-blood-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
}

.first-blood-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.first-blood-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.first-blood-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.first-blood-user {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22c55e;
  text-decoration: none;
  transition: all 0.2s ease;
}

.first-blood-user:hover {
  color: #20c997;
  text-decoration: underline;
}

.first-blood-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.first-blood-empty i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.first-blood-empty p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Recent Flags List */
.recent-flags-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recent-flag-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.recent-flag-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
  transform: translateX(4px);
}

.recent-flag-item i {
  color: #22c55e;
  font-size: 1rem;
}

/* Responsive adjustments for info section */
@media (max-width: 992px) {
  .info-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .info-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .info-section-header {
    padding: 1rem;
  }
  
  .info-section-content {
    padding: 1rem;
  }
}

/* Solution Preview Styles */
.solution-preview {
  position: relative;
  max-height: 300px;
  overflow: hidden;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.solution-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
  border-radius: 0 0 0.375rem 0.375rem;
}

/* Restart Card Styles */
.restart-card {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(21, 115, 71, 0.08) 100%);
  border: 1px solid rgba(25, 135, 84, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

.restart-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.restart-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(25, 135, 84, 0.1);
  border-radius: 12px;
  position: relative;
}

.restart-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(45deg, rgba(25, 135, 84, 0.2), transparent);
  z-index: -1;
  animation: iconGlow 2s ease-in-out infinite;
}

.restart-text {
  flex-grow: 1;
  text-align: left;
}

.restart-text h5 {
  color: #198754;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.restart-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.restart-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.75rem;
}

.restart-btn, .upgrade-btn {
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  font-weight: 400;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.restart-btn {
  background: #198754;
  border: none;
}

.restart-btn:hover {
  background: #157347;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.upgrade-btn {
  border: 2px solid #198754;
}

.upgrade-btn:hover {
  background: rgba(25, 135, 84, 0.1);
  transform: translateY(-1px);
}

@keyframes iconGlow {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.5; transform: scale(1); }
}

@media (max-width: 768px) {
  .restart-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .restart-text {
    text-align: center;
  }

  .restart-actions {
    flex-direction: column;
    width: 100%;
  }

  .restart-btn, .upgrade-btn {
    width: 100%;
  }
}

/* Completion Card Styles */
.completion-card {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.12) 0%, rgba(21, 115, 71, 0.12) 100%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(25, 135, 84, 0.15);
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.6s ease-out;
}

.completion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #198754, #ffc107, #198754);
  animation: gradient 3s linear infinite;
  background-size: 200% 100%;
}

.completion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background: rgba(255, 193, 7, 0.15);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  animation: trophyFloat 3s ease-in-out infinite;
}

.completion-rays {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.2) 0%, transparent 70%);
  animation: rays 4s ease-in-out infinite;
}

.completion-sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffc107;
  border-radius: 50%;
  animation: sparkle 1.5s linear infinite;
  box-shadow: 0 0 10px #ffc107;
}

.completion-sparkles span:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
.completion-sparkles span:nth-child(2) { top: 15%; right: 15%; animation-delay: 0.3s; }
.completion-sparkles span:nth-child(3) { bottom: 15%; left: 15%; animation-delay: 0.6s; }
.completion-sparkles span:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 0.9s; }
.completion-sparkles span:nth-child(5) { top: 50%; left: 5%; animation-delay: 0.2s; }
.completion-sparkles span:nth-child(6) { top: 50%; right: 5%; animation-delay: 0.5s; }
.completion-sparkles span:nth-child(7) { left: 50%; top: 5%; animation-delay: 0.7s; }
.completion-sparkles span:nth-child(8) { left: 50%; bottom: 5%; animation-delay: 1s; }

.celebration-text {
  background: linear-gradient(45deg, #198754, #ffc107, #198754);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 3s linear infinite;
  font-weight: 600;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lab-name {
  color: #198754;
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding: 0 4px;
}

.lab-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #198754, transparent);
  animation: underline 2s ease-in-out infinite;
}

.certificate-btn {
  border-width: 2px;
  font-weight: 400;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.certificate-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.certificate-btn:hover {
  background: #198754;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 135, 84, 0.3);
}

.confetti-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffc107;
  animation: confetti 5s ease-in-out infinite;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; }
.confetti:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.confetti:nth-child(3) { left: 50%; animation-delay: 1s; }
.confetti:nth-child(4) { left: 70%; animation-delay: 1.5s; }
.confetti:nth-child(5) { left: 90%; animation-delay: 2s; }

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

@keyframes trophyFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes rays {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.5; }
}

@keyframes sparkle {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes textGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes underline {
  0% { transform: scaleX(0.8); opacity: 0.5; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.8); opacity: 0.5; }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pro Upgrade Button Styles */
.pro-upgrade-btn {
  position: relative;
  overflow: hidden;
  border: 2px solid #ffc107;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.2) 100%);
  color: #ffc107;
  font-weight: 500;
  transition: all 0.3s ease;
  animation: proGlow 2s ease-in-out infinite;
}

.pro-upgrade-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 193, 7, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.pro-upgrade-btn:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.3) 100%);
  color: #ffc107;
  border-color: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.pro-upgrade-btn .badge {
  animation: bounce 2s infinite;
}

@keyframes proGlow {
  0% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.8), 0 0 30px rgba(255, 193, 7, 0.4); }
  100% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  60% { transform: translateY(-1px); }
}

/* Pro Solution Paywall Styles */
.pro-solution-section {
  margin: 2rem 0;
}

.pro-solution-card {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 235, 59, 0.15) 100%);
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.pro-solution-header {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 235, 59, 0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.pro-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pro-icon-bg {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 193, 7, 0.2);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

.pro-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #212529;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.pro-header-content {
  flex-grow: 1;
  margin-left: 1.5rem;
}

.pro-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pro-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

.pro-badge {
  background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
  color: #212529;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.pro-content {
  padding: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.feature-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.category-title {
  color: #ffc107;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-check {
  width: 24px;
  height: 24px;
  background: #28c76f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.feature-item span {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.pro-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}



.btn-pro-upgrade {
  background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
  color: #212529;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-pro-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
  color: #212529;
  text-decoration: none;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-pro-upgrade:hover .btn-glow {
  left: 100%;
}

@media (max-width: 768px) {
  .pro-solution-header {
    flex-direction: column;
    text-align: center;
  }

  .pro-header-content {
    margin-left: 0;
    margin-top: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pro-cta {
    flex-direction: column;
    text-align: center;
  }
}

/* Lab Overview Styles - Unified Header */
.lab-overview-card {
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.08) 0%, rgba(133, 146, 163, 0.05) 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(105, 108, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.lab-hero-unified {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.1) 0%, rgba(13, 202, 240, 0.05) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(105,108,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(105,108,255,0);stop-opacity:0" /></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23grad)" /></svg>') center/cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Lab Image & Title Section */
.lab-image-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.lab-image-unified {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.lab-image-unified.border-primary {
  border-color: rgba(105, 108, 255, 0.5);
}

.lab-image-unified.border-success {
  border-color: rgba(34, 197, 94, 0.5);
}

.lab-image-unified.border-warning {
  border-color: rgba(251, 191, 36, 0.5);
}

.lab-image-unified.border-danger {
  border-color: rgba(239, 68, 68, 0.5);
}

.lab-image-unified.border-info {
  border-color: rgba(13, 202, 240, 0.5);
}

.lab-title-unified {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.lab-teaser-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-style: italic;
}

/* Badges Row */
.lab-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.lab-badges-row > * {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid;
}

.badge-difficulty {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.badge-difficulty:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
}

.badge-difficulty-primary {
  background: rgba(105, 108, 255, 0.15);
  border-color: rgba(105, 108, 255, 0.3);
  color: #696cff;
}

.badge-difficulty-primary:hover {
  background: rgba(105, 108, 255, 0.25);
  border-color: rgba(105, 108, 255, 0.5);
  color: #696cff;
  text-decoration: none;
}

.badge-difficulty-success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.badge-difficulty-success:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
  text-decoration: none;
}

.badge-difficulty-warning {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.badge-difficulty-warning:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  text-decoration: none;
}

.badge-difficulty-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.badge-difficulty-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  text-decoration: none;
}

.badge-difficulty-info {
  background: rgba(13, 202, 240, 0.15);
  border-color: rgba(13, 202, 240, 0.3);
  color: #0dcaf0;
}

.badge-difficulty-info:hover {
  background: rgba(13, 202, 240, 0.25);
  border-color: rgba(13, 202, 240, 0.5);
  color: #0dcaf0;
  text-decoration: none;
}

.badge-pro {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  text-decoration: none;
}

.badge-pro:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  text-decoration: none;
}

.badge-free {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.badge-solution {
  background: rgba(13, 202, 240, 0.15);
  border-color: rgba(13, 202, 240, 0.3);
  color: #0dcaf0;
  text-decoration: none;
}

.badge-solution:hover {
  background: rgba(13, 202, 240, 0.25);
  border-color: rgba(13, 202, 240, 0.5);
  color: #0dcaf0;
  text-decoration: none;
}

.badge-solution-locked {
  background: rgba(255, 171, 0, 0.15);
  border-color: rgba(255, 171, 0, 0.3);
  color: #ffab00;
}

.badge-solution-locked:hover {
  background: rgba(255, 171, 0, 0.25);
  border-color: rgba(255, 171, 0, 0.5);
  color: #ffab00;
}

.badge-solution-pro {
  background: rgba(255, 171, 0, 0.15);
  border-color: rgba(255, 171, 0, 0.3);
  color: #ffab00;
}

.badge-solution-pro:hover {
  background: rgba(255, 171, 0, 0.25);
  border-color: rgba(255, 171, 0, 0.5);
  color: #ffab00;
}

.badge-date {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}

/* Lab Description */
.lab-description-unified {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Stats Sidebar */
.stats-grid-unified {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-card-unified {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.stat-card-unified:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(105, 108, 255, 0.25);
  box-shadow: 0 2px 8px rgba(105, 108, 255, 0.1);
}

.stat-icon-unified {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.2), rgba(13, 202, 240, 0.15));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: #696cff;
  flex-shrink: 0;
  border: 1px solid rgba(105, 108, 255, 0.15);
}

.stat-icon-flags {
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.2), rgba(13, 202, 240, 0.15));
  border-color: rgba(105, 108, 255, 0.15);
  color: #696cff;
}

.stat-icon-points {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
  border-color: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.stat-icon-success {
  background: linear-gradient(135deg, rgba(13, 202, 240, 0.2), rgba(6, 182, 212, 0.15));
  border-color: rgba(13, 202, 240, 0.15);
  color: #0dcaf0;
}

.stat-content-unified {
  flex: 1;
}

.stat-number-unified {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.125rem;
}

.stat-percent {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

.stat-label-unified {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .lab-hero-unified {
    padding: 1.5rem;
  }

  .lab-title-unified {
    font-size: 1.5rem;
  }

  .lab-teaser-title {
    font-size: 1.125rem;
  }

  .lab-image-unified {
    width: 60px;
    height: 60px;
  }

  .stats-grid-unified {
    flex-direction: row;
    gap: 0.5rem;
  }

  .stat-card-unified {
    flex: 1;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
  }

  .stat-icon-unified {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .stat-number-unified {
    font-size: 1.25rem;
  }

  .stat-label-unified {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .lab-title-unified {
    font-size: 1.25rem;
  }

  .lab-teaser-title {
    font-size: 1rem;
  }

  .stats-grid-unified {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stat-card-unified {
    flex-direction: row;
    text-align: left;
    padding: 0.75rem;
  }
}

    /* Compact Start Lab Section Styles */
.start-lab-card {
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.05), rgba(13, 202, 240, 0.03));
  border: 1px solid rgba(105, 108, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.start-lab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #696cff, #0dcaf0, #20c997);
  z-index: 1;
}

.start-lab-compact {
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

.start-compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.start-compact-info {
  flex: 1;
}

.start-compact-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #696cff;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
}

.start-compact-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}



.start-compact-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Start Button Container */
.start-button-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Start Lab Indicator Styles */
.start-lab-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInOut 2s ease-in-out infinite;
}

.indicator-arrow {
  color: #20c997;
  font-size: 1.2rem;
  animation: bounceLeft 1.5s ease-in-out infinite;
}

.indicator-text {
  font-size: 0.85rem;
  color: #20c997;
  font-weight: 500;
  white-space: nowrap;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes bounceLeft {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-8px);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Professional Start Lab Card - Subtle Enhancement */
.start-lab-card {
  position: relative;
  border: 1px solid rgba(32, 201, 151, 0.25) !important;
  box-shadow: 0 2px 12px rgba(32, 201, 151, 0.15) !important;
  transition: all 0.3s ease;
}

.start-lab-card:hover {
  box-shadow: 0 4px 20px rgba(32, 201, 151, 0.25) !important;
}

.start-lab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.04) 0%, rgba(34, 197, 94, 0.02) 100%);
  pointer-events: none;
  opacity: 0.6;
}

/* Enhanced Start Button Styling */
.btn-compact-start {
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(32, 201, 151, 0.3) !important;
  transition: all 0.3s ease;
}

.btn-compact-start:hover {
  box-shadow: 0 4px 16px rgba(32, 201, 151, 0.4) !important;
  transform: translateY(-1px);
}

.btn-compact-start::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-compact-start:hover::after {
  width: 300px;
  height: 300px;
}

/* Integrated Start Lab Header - Compact Horizontal Layout */
.start-compact-header-integrated {
  padding: 1.5rem;
}

.start-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.start-header-content {
  flex: 0 1 auto;
  min-width: 0;
}

.start-title {
  color: #20c997;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  text-shadow: 0 0 15px rgba(32, 201, 151, 0.2);
}

.start-title i {
  animation: rocketPulse 2s ease-in-out infinite;
}

.start-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.start-arrow-divider {
  font-size: 1.75rem;
  color: #20c997;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.bounce-arrow-horizontal {
  animation: bounceRight 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(32, 201, 151, 0.4));
}

.start-action-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@keyframes bounceRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

@keyframes rocketPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Responsive - Stack on smaller screens */
@media (max-width: 768px) {
  .start-header-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .start-arrow-divider {
    transform: rotate(90deg);
  }
  
  .start-action-wrapper {
    width: 100%;
    justify-content: center;
  }
}

/* Machine Target Section */
.machine-target-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(34, 197, 94, 0.01) 100%);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.machine-target-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  z-index: 1;
}

.machine-target-container {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.machine-target-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.machine-target-status {
  flex: 1;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.status-ready {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.status-dot.status-starting {
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

.status-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.machine-target-info {
  flex: 1;
}

.machine-target-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* Starting state styling */
.machine-target-card:has(.ti-loader-2) .machine-target-title {
  color: #f59e0b;
}

.machine-target-card:has(.ti-loader-2) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}

.machine-target-card:has(.ti-loader-2)::before {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.machine-target-title .ti-loader-2 {
  color: #f59e0b;
}

.machine-target-title .ti-target {
  color: #22c55e;
}

.target-starting {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  cursor: default !important;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2) !important;
  animation: pulse-orange 2s ease-in-out infinite;
}

@keyframes pulse-orange {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  }
}

.target-ready {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  cursor: pointer;
}

.machine-target-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
}

.machine-target-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Target Display - Integrated into Machine Card */
.machine-target-display {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
}

.machine-target-display.target-expired .target-info-title {
  color: #ef4444;
}

.target-info-header {
  margin-bottom: 1rem;
}

.target-info-title {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.target-info-title i {
  color: #22c55e;
}

/* Loader icon should match the state color */
.target-info-title .ti-loader-2 {
  color: #f59e0b !important;
}

.target-info-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.target-info-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.target-url-display {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.target-url-display i {
  color: #22c55e;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.target-url-link {
  font-family: 'Monaco', 'Menlo', monospace;
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

a.target-url-link:hover {
  color: #22c55e;
  text-decoration: underline;
}

.btn-target-copy {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-target-copy:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.btn-target-copy.copy-success {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
  color: #22c55e;
}



/* Enhanced Machine Button Styles */
.machine-btn {
  position: relative;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.625rem 1.125rem;
  border-radius: 8px;
}

.machine-btn .ti-loader-2 {
  color: inherit;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.machine-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.machine-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Reset Button - using site's blue theme */
.machine-btn-reset {
  background: rgba(105, 108, 255, 0.1);
  border-color: rgba(105, 108, 255, 0.3);
  color: #696cff;
}

.machine-btn-reset:hover {
  background: rgba(105, 108, 255, 0.15);
  border-color: rgba(105, 108, 255, 0.5);
  color: #696cff;
  box-shadow: 0 4px 12px rgba(105, 108, 255, 0.2);
}

.machine-btn-reset:focus {
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.15);
}

/* Stop Button - using a muted red/gray */
.machine-btn-stop {
  background: rgba(108, 117, 125, 0.1);
  border-color: rgba(108, 117, 125, 0.3);
  color: #9ca3af;
}

.machine-btn-stop:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.machine-btn-stop:focus {
  box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.15);
}

/* Add Time Button - using site's orange/pro theme */
.machine-btn-time {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  position: relative;
}

.machine-btn-time:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.machine-btn-time:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.machine-btn-badge {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-left: 0.5rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.machine-btn .ti-player-stop {
  transition: transform 0.3s ease;
}

.machine-btn-stop:hover .ti-player-stop {
  transform: scale(1.1);
}

.machine-btn .ti-clock-hour-10 {
  transition: transform 0.3s ease;
}

.machine-btn-time:hover .ti-clock-hour-10 {
  transform: rotate(15deg);
}

/* Fixed width for countdown to prevent button resizing */
#machineCountdown {
  display: inline-block;
  width: 4.5rem;
  text-align: center;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .machine-target-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .machine-target-actions {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .target-value {
    font-size: 1rem;
  }

  .machine-btn {
    width: 100%;
    margin-bottom: 0;
  }
}

.btn-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 3rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  min-width: 240px;
}

.btn-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-compact-start {
  background: linear-gradient(135deg, #20c997, #198754);
  color: white;
}

.btn-compact-start:hover {
  background: linear-gradient(135deg, #198754, #157347);
  color: white;
}

.btn-compact-login {
  background: linear-gradient(135deg, #696cff, #5a67d8);
  color: white;
}

.btn-compact-login:hover {
  background: linear-gradient(135deg, #5a67d8, #4c63d2);
  color: white;
}

.btn-compact-upgrade {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
}

.btn-compact-upgrade:hover {
  background: linear-gradient(135deg, #fd7e14, #e76500);
  color: white;
}

.btn-compact-loading {
  display: flex;
  align-items: center;
}

.btn-compact-loading .ti-loader-2 {
  color: inherit;
}

.start-compact-details {
  padding: 1rem 1.5rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
}

.compact-info-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.compact-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.compact-info-item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.compact-info-item i {
  font-size: 0.95rem;
  opacity: 0.8;
}

.compact-info-item span {
  white-space: nowrap;
}

/* How It Works Explanation */
.how-it-works-compact {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.how-it-works-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.how-it-works-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(105, 108, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.toggle-chevron {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.how-it-works-toggle.expanded .toggle-chevron {
  transform: rotate(180deg);
}

.how-it-works-content {
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  animation: slideDown 0.3s ease-out;
}


.explanation-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.explanation-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-number-small {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #696cff, #0dcaf0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.step-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.step-text strong {
  color: rgba(255, 255, 255, 0.95);
}

.explanation-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 193, 7, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.explanation-note strong {
  color: #ffc107;
}

/* Tutorial Video Section */
.tutorial-video-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.tutorial-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.tutorial-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tutorial-video-wrapper wistia-player {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.tutorial-video-wrapper wistia-player:hover {
  transform: scale(1.02);
}

/* Compact animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 16px rgba(105, 108, 255, 0.3);
    transform: scale(1.01);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inline Workflow Styles - Next to Button */
.lab-workflow-inline {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow-steps-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.step-item-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.step-icon-inline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-icon-inline.step-1 {
  background: linear-gradient(135deg, #696cff, #0dcaf0);
}

.step-icon-inline.step-2 {
  background: rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

.step-icon-inline.step-3 {
  background: rgba(25, 135, 84, 0.3);
  color: #198754;
}

.step-content-inline {
  flex: 1;
  min-width: 0;
}

.step-title-inline {
  font-size: 0.8rem;
  font-weight: 600;
  color: #696cff;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.step-description-inline {
  font-size: 0.7rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.step-divider-inline {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, rgba(105, 108, 255, 0.3), rgba(133, 146, 163, 0.3));
  border-radius: 1px;
  flex-shrink: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  background: rgba(133, 146, 163, 0.3);
  transition: all 0.3s ease;
}

.step-icon.step-1 {
  background: linear-gradient(135deg, #696cff, #0dcaf0);
}

.step-icon.step-2 {
  background: rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

.step-icon.step-2.active {
  background: linear-gradient(135deg, #ffc107, #ffeb3b);
  color: #212529;
}

.step-icon.step-3 {
  background: rgba(25, 135, 84, 0.3);
  color: #198754;
}

.step-icon.completed {
  background: linear-gradient(135deg, #198754, #20c997);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #696cff;
  margin-bottom: 0.25rem;
}

.step-description {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.step-divider {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, rgba(105, 108, 255, 0.3), rgba(133, 146, 163, 0.3));
  border-radius: 1px;
}

@media (max-width: 768px) {
  .workflow-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .step-item {
    min-width: auto;
    width: 100%;
  }

  .step-divider {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, rgba(105, 108, 255, 0.3), rgba(133, 146, 163, 0.3));
  }

  /* Inline workflow mobile styles */
  .workflow-steps-inline {
    flex-direction: column;
    gap: 1rem;
  }

  .step-item-inline {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .step-divider-inline {
    width: 2px;
    height: 15px;
    background: linear-gradient(180deg, rgba(105, 108, 255, 0.3), rgba(133, 146, 163, 0.3));
  }

  .step-description-inline {
    font-size: 0.65rem;
  }

  /* Compact Start Lab Mobile Responsive */
  .start-lab-compact {
    padding: 1rem;
  }

  .start-compact-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .start-compact-title {
    font-size: 1rem;
  }

  .start-compact-desc {
    font-size: 0.8rem;
  }

  .start-compact-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .start-button-container {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .start-lab-indicator {
    order: -1;
    justify-content: center;
  }

  .btn-compact {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  .compact-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .compact-info-item {
    font-size: 0.75rem;
    gap: 0.375rem;
  }

  .compact-info-item i {
    font-size: 0.875rem;
  }

  /* How It Works Mobile Responsive */
  .how-it-works-toggle {
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
  }


  .step-text {
    font-size: 0.75rem;
  }

  .explanation-note {
    padding: 0.625rem;
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.375rem;
  }

  .explanation-note i {
    align-self: flex-start;
  }

  /* Tutorial Video Mobile Responsive */
  .tutorial-video-section {
    margin: 1rem 0;
    padding: 0.75rem;
  }

  .tutorial-title {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .tutorial-video-wrapper wistia-player {
    max-width: 100% !important;
  }
}

/* Answer input states */
.answer-input.loading-state {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  cursor: not-allowed;
  opacity: 0.7;
}

.answer-input.success-state {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.answer-input.error-state {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Shake animation for errors */
@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.error-shake {
  animation: error-shake 0.5s ease-in-out;
}

/* Button states */
.btn-submit-answer.loading {
  opacity: 0.8;
  cursor: wait;
}

.btn-submit-answer.success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: #22c55e;
}

.btn-submit-answer.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
}
