/* ELITE WHITE-PURPLE DESIGN SYSTEM - NAMESPACE .tut- */
.tut-wrapper {
  margin-left: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.tut-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* HEADER */
.tut-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; }
.tut-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: 1px; background: linear-gradient(135deg, #fff, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; }
.tut-subtitle { margin: 4px 0 0; color: #a1a1aa; font-size: 14px; }
.tut-header-right { display: flex; gap: 16px; }
.tut-stat-chip { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.3); padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,0.05); }
.tut-clickable { cursor: pointer; transition: all 0.3s; }
.tut-clickable:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* CONTINUE BANNER */
.tut-continue { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; border-left: 4px solid #06b6d4; background: linear-gradient(90deg, rgba(6,182,212,0.1) 0%, rgba(0,0,0,0) 100%); }
.tut-continue-info h2 { margin: 8px 0 4px; font-size: 20px; font-weight: 700; }
.tut-continue-info p { margin: 0 0 12px; font-size: 13px; color: #a1a1aa; }
.tut-progress-bar-bg { width: 300px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.tut-progress-bar-fill { height: 100%; background: #06b6d4; border-radius: 3px; transition: width 0.5s ease; }

/* SECTIONS & GRIDS */
.tut-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.tut-section-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: #e4e4e7; text-transform: uppercase; letter-spacing: 1px; }

.tut-paths-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 24px; }
.tut-path-card { display: flex; align-items: center; gap: 20px; padding: 24px; cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.tut-path-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.4); box-shadow: 0 12px 40px rgba(168,85,247,0.15); }
.tut-path-icon { width: 64px; height: 64px; background: rgba(168,85,247,0.1); border-radius: 16px; display: flex; justify-content: center; align-items: center; font-size: 24px; color: #c084fc; }
.tut-path-info { flex: 1;  }
.tut-path-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.tut-path-desc { font-size: 12px; color: #a1a1aa; margin: 0 0 12px; line-height: 1.4; }

.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tut-card { display: flex; flex-direction: column; padding: 20px; cursor: pointer; transition: all 0.4s; position: relative; overflow: hidden; }
.tut-card:hover { transform: translateY(-4px) scale(1.02); border-color: rgba(6,182,212,0.4); }
.tut-card-top { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tut-card-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.tut-card-meta { display: flex; gap: 12px; font-size: 12px; color: #a1a1aa; margin-top: auto; padding-top: 16px; }

/* BADGES & BUTTONS */
.tut-badge { padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.tut-badge-cyan { background: rgba(6,182,212,0.1); color: #06b6d4; }
.tut-badge-purple { background: rgba(168,85,247,0.1); color: #c084fc; }
.tut-badge-gold { background: rgba(251,191,36,0.1); color: #fbbf24; }

.tut-filters { display: flex; gap: 8px; background: rgba(0,0,0,0.3); padding: 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.tut-filter { background: transparent; border: none; color: #a1a1aa; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s; }
.tut-filter.active { background: rgba(168,85,247,0.2); color: #c084fc; }

.tut-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.3s; border: none; font-family: 'Inter'; }
.tut-btn-primary { background: #a855f7; color: #fff; border: 1px solid #c084fc; }
.tut-btn-primary:hover { background: #c084fc; box-shadow: 0 0 20px rgba(168,85,247,0.4); }
.tut-btn-outline { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.tut-btn-outline:hover { background: rgba(255,255,255,0.1); }
.tut-btn-ghost { background: transparent; color: #a1a1aa; border: 1px solid transparent; }
.tut-btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* DRAWERS */
.tut-drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.tut-drawer-overlay.active { opacity: 1; pointer-events: auto; }
.tut-drawer { position: fixed; top: 0; right: -600px; width: 600px; max-width: 100vw; height: 100vh; z-index: 1001; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; background: rgba(10,10,15,0.95); border-left: 1px solid rgba(255,255,255,0.1); }
.tut-drawer.active { right: 0; }
.tut-drawer-close { position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 10; transition: background 0.3s; }
.tut-drawer-close:hover { background: #ef5350; }
.tut-drawer-content { padding: 48px 40px; overflow-y: auto; height: 100%; }

.tut-hero-img { width: 100%; height: 200px; border-radius: 12px; background: #111; object-fit: cover; margin-bottom: 24px; }
.tut-step-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.tut-step-item { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.tut-step-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(168,85,247,0.2); display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: 700; color: #c084fc; }

/* PLAYER */
.tut-player { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #020005; z-index: 2000; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.tut-player.active { opacity: 1; pointer-events: auto; }
.tut-player-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 32px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tut-player-title { display: flex; flex-direction: column; gap: 4px; }
.tut-player-title span { font-size: 16px; font-weight: 700; }
.tut-player-progress-text { font-size: 12px; color: #a1a1aa; }
.tut-player-progress-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.05); }
.tut-player-progress-fill { height: 100%; background: #c084fc; width: 0%; transition: width 0.4s ease; box-shadow: 0 0 10px #c084fc; }
.tut-player-body { flex: 1; display: flex; justify-content: center; align-items: center; padding: 40px; overflow-y: auto; }
.tut-step-container { max-width: 800px; width: 100%; padding: 48px; position: relative; animation: tutSlideUp 0.4s forwards; }
.tut-player-footer { display: flex; justify-content: space-between; padding: 24px 48px; border-radius: 0; border-top: 1px solid rgba(255,255,255,0.1); }

/* QUIZ UI */
.tut-quiz-opt { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; margin-bottom: 12px; cursor: pointer; transition: all 0.3s; }
.tut-quiz-opt:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
.tut-quiz-opt.selected { background: rgba(168,85,247,0.1); border-color: #c084fc; }
.tut-quiz-opt.correct { background: rgba(34,197,94,0.1); border-color: #22c55e; }
.tut-quiz-opt.wrong { background: rgba(239,83,80,0.1); border-color: #ef5350; animation: tutShake 0.4s; }
.tut-quiz-marker { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); display: flex; justify-content: center; align-items: center; font-size: 10px; }
.tut-quiz-opt.selected .tut-quiz-marker { border-color: #c084fc; background: #c084fc; }

/* MODALS & ANIMATIONS */
.tut-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 3000; }
.tut-modal.active { display: flex; animation: tutFadeIn 0.3s forwards; }
.tut-modal-card { padding: 40px; max-width: 400px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tut-modal-icon { font-size: 64px; margin-bottom: 24px; animation: tutPulse 2s infinite; }
.tut-stars { display: flex; gap: 8px; justify-content: center; margin: 12px 0; font-size: 24px; cursor: pointer; color: #333; }
.tut-star:hover, .tut-star.active { color: #fbbf24; }

.tut-confetti-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.tut-particle { position: absolute; width: 10px; height: 10px; opacity: 0; }

@keyframes tutSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tutFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tutShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
@keyframes tutPulse { 0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(251,191,36,0)); } 50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(251,191,36,0.5)); } 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(251,191,36,0)); } }
@keyframes tutConfettiFall { 0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(720deg); opacity: 0; } }