/* ===== STUDENT SUCCESS HUB ===== */
:root {
    --hub-primary: #0F4CFF;
    --hub-gold: #FFD700;
    --hub-green: #2ECC71;
    --hub-red: #E74C3C;
    --hub-purple: #9B59B6;
    --hub-teal: #1ABC9C;
    --hub-pink: #FF69B4;
    --hub-orange: #FF6B35;
}

.hub-header {
    padding: 120px 0 30px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 50%, rgba(15,76,255,0.05) 100%);
    position: relative; overflow: hidden;
}
.hub-header::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(15,76,255,0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255,215,0,0.03) 0%, transparent 50%);
    animation: hubGlow 8s ease-in-out infinite alternate;
}
@keyframes hubGlow { 0% { transform: translate(0,0); } 100% { transform: translate(2%,-2%); } }
.hub-header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; position: relative; z-index: 1; }
.hub-header-content h1 { font-size: 2.8rem; font-weight: 900; color: var(--text); margin: 10px 0; }
.hub-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(15,76,255,0.1); color: var(--hub-primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(15,76,255,0.2); }
.hub-header-right { display: flex; gap: 15px; align-items: center; }
.hub-streak-display, .hub-xp-display { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-size: 0.95rem; font-weight: 700; }
.hub-streak-display { background: rgba(255,105,180,0.1); border: 1px solid rgba(255,105,180,0.2); }
.hub-streak-display i { color: var(--hub-pink); font-size: 1.2rem; }
.hub-xp-display { background: rgba(255,215,0,0.15); border: 1px solid rgba(255,215,0,0.3); }
.hub-xp-display i { color: var(--hub-orange); }

/* ===== CARDS ===== */
.glass-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 25px; box-shadow: var(--shadow); transition: all 0.4s ease; }
.glass-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.glass-card h3 { font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.glass-card h3 i { color: var(--hub-primary); }
.glass-card-wide { grid-column: 1 / -1; }

/* ===== HUB TABS ===== */
.hub-nav-section { padding: 0 0 30px; background: var(--bg-light); position: sticky; top: 70px; z-index: 50; }
.hub-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 5px 0; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tab { flex-shrink: 0; padding: 10px 20px; background: var(--bg); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-light); cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: all 0.3s; font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 8px; }
.hub-tab:hover { background: var(--bg-light); color: var(--text); }
.hub-tab.active { background: var(--hub-primary); border-color: var(--hub-primary); color: #fff; box-shadow: 0 4px 20px rgba(15,76,255,0.3); }
.hub-content-section { padding: 0 0 80px; background: var(--bg-light); min-height: 60vh; }
.hub-panel { display: none; animation: fadeInUp 0.4s ease; }
.hub-panel.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== DASHBOARD ===== */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.dashboard-welcome { grid-column: 1 / -1; }
.dashboard-welcome h2 { font-size: 1.8rem; margin-bottom: 5px; }
.quick-stats { display: flex; gap: 25px; flex-wrap: wrap; margin-top: 15px; }
.quick-stats div { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-light); }
.quick-stats i { color: var(--hub-primary); }
.circular-progress { position: relative; width: 120px; height: 120px; margin: 10px auto; display: flex; align-items: center; justify-content: center; }
.circular-progress svg { transform: rotate(-90deg); width: 120px; height: 120px; }
.circular-progress .bg { fill: none; stroke: var(--border-color); stroke-width: 6; }
.circular-progress .fg { fill: none; stroke: var(--hub-primary); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.5s ease; }
.circular-progress span { position: absolute; font-size: 1.5rem; font-weight: 800; font-family: 'Poppins', sans-serif; }
.dashboard-chart { min-height: 280px; }
.dashboard-chart canvas { max-height: 220px; }

/* ===== PLANNER ===== */
.planner-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; }
#plannerForm .form-group { margin-bottom: 15px; }
#plannerForm label { display: block; margin-bottom: 5px; font-size: 0.9rem; color: var(--text); }
#plannerForm input, #plannerForm select { width: 100%; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: border-color 0.3s; }
#plannerForm input:focus, #plannerForm select:focus { outline: none; border-color: var(--hub-primary); }
#plannerForm select option { background: var(--bg); color: var(--text); }
.timetable-grid { display: grid; gap: 10px; margin-top: 15px; }
.timetable-day { background: var(--bg); border-radius: 12px; padding: 15px; }
.timetable-day h4 { color: var(--hub-primary); margin-bottom: 10px; }
.timetable-day p { margin: 3px 0; font-size: 0.9rem; }
.timetable-day .subject-tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.8rem; margin: 3px; font-weight: 500; }
.timetable-section { margin-top: 20px; }
.timetable-section h4 { color: var(--hub-primary); margin-bottom: 10px; }
.timetable-section ul { list-style: none; }
.timetable-section li { padding: 6px 0; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.timetable-section li::before { content: '▸'; color: var(--hub-primary); }

/* ===== GOALS ===== */
.goals-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.goals-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
#goalDate { font-size: 0.85rem; color: var(--text-light); }
.goals-progress-bar { width: 100%; height: 8px; background: var(--border-color); border-radius: 10px; margin: 15px 0; overflow: hidden; }
.goals-progress-fill { height: 100%; background: linear-gradient(90deg, var(--hub-primary), var(--hub-green)); border-radius: 10px; transition: width 0.5s ease; }
#goalsProgressText { font-size: 0.85rem; color: var(--text-light); margin-bottom: 15px; }
.goals-list { list-style: none; margin-bottom: 15px; }
.goals-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 8px; background: var(--bg); border-radius: 10px; transition: all 0.3s; cursor: pointer; border: 1px solid var(--border-color); }
.goals-list li:hover { background: var(--bg-light); }
.goals-list li.completed { opacity: 0.6; text-decoration: line-through; }
.goals-list li .goal-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s; cursor: pointer; }
.goals-list li.completed .goal-check { background: var(--hub-green); border-color: var(--hub-green); }
.goals-list li .goal-check i { font-size: 0.7rem; color: #fff; opacity: 0; }
.goals-list li.completed .goal-check i { opacity: 1; }
.goals-list li .goal-cat { font-size: 0.7rem; padding: 2px 10px; border-radius: 20px; background: rgba(15,76,255,0.1); color: var(--hub-primary); margin-left: auto; }
.goals-input-row { display: flex; gap: 8px; }
.goals-input-row input { flex: 1; padding: 10px 16px; background: var(--bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text); font-family: 'Inter', sans-serif; }
.goals-input-row input:focus { outline: none; border-color: var(--hub-primary); }
.productivity-score { font-size: 4rem; font-weight: 900; text-align: center; color: var(--hub-green); font-family: 'Poppins', sans-serif; margin: 20px 0; }
#productivityLabel { text-align: center; color: var(--text-light); font-size: 0.9rem; }

/* ===== QUIZ ===== */
.quiz-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.quiz-meta { display: flex; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
.quiz-meta div { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-light); }
.quiz-meta i { color: var(--hub-primary); }
.quiz-header { display: flex; justify-content: space-between; align-items: center; }
.quiz-timer { font-size: 1.5rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: var(--hub-primary); }
.quiz-progress { width: 100%; height: 6px; background: var(--border-color); border-radius: 10px; margin: 15px 0; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--hub-primary); border-radius: 10px; transition: width 0.3s; }
.quiz-question { margin: 20px 0; }
.quiz-question h4 { font-size: 1.1rem; margin-bottom: 15px; line-height: 1.6; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { padding: 14px 18px; background: var(--bg); border: 2px solid var(--border-color); border-radius: 12px; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; }
.quiz-option:hover { border-color: var(--hub-primary); background: rgba(15,76,255,0.05); }
.quiz-option.selected { border-color: var(--hub-primary); background: rgba(15,76,255,0.08); }
.quiz-option.correct { border-color: var(--hub-green); background: rgba(46,204,113,0.08); }
.quiz-option.wrong { border-color: var(--hub-red); background: rgba(231,76,60,0.08); }
.quiz-question-number { font-size: 0.85rem; color: var(--text-light); margin-bottom: 5px; }
.quiz-next-btn { margin-top: 20px; padding: 12px 30px; background: var(--hub-primary); border: none; border-radius: 10px; color: #fff; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: 'Inter', sans-serif; }
.quiz-next-btn:hover { background: var(--primary-dark); }
.quiz-result-stats { display: flex; gap: 30px; justify-content: center; margin: 25px 0; flex-wrap: wrap; }
.quiz-stat { text-align: center; font-size: 1.1rem; }
.quiz-stat span { display: block; font-size: 2.5rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: var(--hub-primary); }
.quiz-review-item { padding: 15px; margin: 10px 0; background: var(--bg); border-radius: 12px; border: 1px solid var(--border-color); }
.quiz-review-item .q-text { font-weight: 600; margin-bottom: 5px; }
.quiz-review-item .q-answer { font-size: 0.85rem; color: var(--text-light); }
.quiz-review-item .q-answer.correct { color: var(--hub-green); }
.quiz-review-item .q-answer.wrong { color: var(--hub-red); }
.quiz-review-item .q-explain { font-size: 0.8rem; color: var(--text-light); margin-top: 5px; padding: 8px; background: var(--bg-light); border-radius: 8px; }
.quiz-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.quiz-stats-grid div { text-align: center; padding: 12px; background: var(--bg); border-radius: 10px; border: 1px solid var(--border-color); }
.quiz-stats-grid span { display: block; font-size: 1.5rem; font-weight: 700; font-family: 'Poppins', sans-serif; }
.quiz-stats-grid small { display: block; font-size: 0.75rem; color: var(--text-light); margin-top: 3px; }

/* ===== PRACTICE ===== */
.practice-grid { display: grid; gap: 20px; }
.practice-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; margin: 20px 0; }
.practice-mode { text-align: center; padding: 20px; background: var(--bg); border-radius: 16px; cursor: pointer; transition: all 0.3s; border: 2px solid var(--border-color); }
.practice-mode:hover { border-color: var(--hub-primary); background: rgba(15,76,255,0.05); transform: translateY(-3px); }
.practice-mode .pm-icon { font-size: 2rem; margin-bottom: 10px; }
.practice-mode:nth-child(1) .pm-icon { color: var(--hub-green); }
.practice-mode:nth-child(2) .pm-icon { color: var(--hub-gold); }
.practice-mode:nth-child(3) .pm-icon { color: var(--hub-red); }
.practice-mode:nth-child(4) .pm-icon { color: var(--hub-purple); }
.practice-mode h4 { font-size: 1rem; margin-bottom: 5px; }
.practice-mode p { font-size: 0.8rem; color: var(--text-light); }
.practice-progress-row { display: flex; align-items: center; gap: 15px; margin: 10px 0; }
.practice-progress-bar { flex: 1; height: 6px; background: var(--border-color); border-radius: 10px; overflow: hidden; }
.practice-progress-fill { height: 100%; background: var(--hub-primary); border-radius: 10px; transition: width 0.3s; }
.practice-feedback { margin: 15px 0; }
.practice-subjects { font-size: 0.9rem; color: var(--text-light); }

/* ===== FEEDBACK REPORT ===== */
.feedback-report { display: grid; gap: 8px; }
.feedback-report .fr-row { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--bg); border-radius: 8px; font-size: 0.85rem; border: 1px solid var(--border-color); }
.feedback-report .fr-row:nth-child(even) { background: var(--bg-light); }

/* ===== CHALLENGES ===== */
.challenges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.challenge-card { text-align: center; padding: 10px; }
.challenge-card .challenge-icon { font-size: 2.5rem; margin-bottom: 10px; }
.challenge-card:nth-child(1) .challenge-icon { color: var(--hub-gold); }
.challenge-card:nth-child(2) .challenge-icon { color: var(--hub-purple); }
.challenge-card h3 { margin-bottom: 8px; }
.challenge-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.challenge-reward { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; background: rgba(255,215,0,0.1); border-radius: 20px; font-size: 0.8rem; color: var(--hub-orange); margin-bottom: 12px; }

/* ===== CERTIFICATE ===== */
.certificate { text-align: center; padding: 30px; background: var(--bg); border: 2px solid var(--hub-primary); border-radius: 20px; margin: 15px 0; }
.certificate .cert-badge { font-size: 3rem; color: var(--hub-gold); margin-bottom: 10px; }
.certificate h3 { font-size: 1.5rem; color: var(--hub-primary); }
.certificate h2 { font-size: 2rem; margin: 10px 0; color: var(--text); font-family: 'Poppins', sans-serif; }
.certificate .cert-details { display: flex; justify-content: center; gap: 30px; margin: 15px 0; font-size: 0.9rem; color: var(--text-light); flex-wrap: wrap; }
.certificate .cert-seal { display: inline-block; padding: 8px 30px; border: 2px solid var(--hub-primary); border-radius: 50px; color: var(--hub-primary); font-weight: 700; margin: 10px 0; }
.certificate .cert-sub { font-size: 0.85rem; color: var(--text-light); font-style: italic; }

/* ===== LEADERBOARD ===== */
.leaderboard-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.lb-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.lb-filters { display: flex; gap: 5px; }
.lb-filter { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border-color); background: transparent; color: var(--text-light); cursor: pointer; font-size: 0.8rem; font-family: 'Inter', sans-serif; transition: all 0.3s; }
.lb-filter.active { background: var(--hub-primary); border-color: var(--hub-primary); color: #fff; }
.lb-categories { display: flex; gap: 8px; margin: 15px 0; flex-wrap: wrap; }
.lb-cat { padding: 6px 16px; border-radius: 50px; border: 1px solid var(--border-color); background: transparent; color: var(--text-light); cursor: pointer; font-size: 0.8rem; font-family: 'Inter', sans-serif; transition: all 0.3s; }
.lb-cat.active { background: var(--hub-primary); color: #fff; border-color: var(--hub-primary); font-weight: 600; }
.lb-list { margin-top: 15px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 8px; background: var(--bg); border-radius: 12px; transition: all 0.3s; border: 1px solid var(--border-color); }
.lb-row:hover { background: var(--bg-light); }
.lb-row .lb-rank { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.lb-row:nth-child(1) .lb-rank { background: var(--hub-gold); }
.lb-row:nth-child(2) .lb-rank { background: #C0C0C0; }
.lb-row:nth-child(3) .lb-rank { background: #CD7F32; }
.lb-row .lb-rank.default { background: var(--bg-light); color: var(--text-light); }
.lb-row .lb-name { flex: 1; font-weight: 500; }
.lb-row .lb-points { font-weight: 700; color: var(--hub-primary); }
.lb-row .lb-badge { font-size: 1.1rem; }
.your-rank { font-size: 3rem; font-weight: 900; text-align: center; color: var(--hub-primary); font-family: 'Poppins', sans-serif; margin: 15px 0; }
#yourRankLabel { text-align: center; color: var(--text-light); }
#monthlyChamps div { padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
#monthlyChamps div:last-child { border: none; }

/* ===== STREAKS ===== */
.streaks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.streak-display { text-align: center; padding: 20px 0; }
.streak-fire { font-size: 3rem; color: var(--hub-pink); }
.streak-number { font-size: 4rem; font-weight: 900; font-family: 'Poppins', sans-serif; display: block; line-height: 1; margin: 10px 0; }
.streak-label { font-size: 1rem; color: var(--text-light); }
.streak-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-top: 20px; }
.streak-calendar .cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.75rem; background: var(--bg); border: 1px solid var(--border-color); }
.streak-calendar .cal-day.active { background: var(--hub-green); color: #fff; }
.streak-calendar .cal-day.today { border: 2px solid var(--hub-primary); }
.streak-calendar .cal-day.missed { background: rgba(231,76,60,0.1); color: var(--hub-red); }
.streak-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-top: 20px; }
.streak-stats div { text-align: center; padding: 15px; background: var(--bg); border-radius: 12px; border: 1px solid var(--border-color); }
.streak-stats span { display: block; font-size: 2rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: var(--hub-pink); }
.streak-stats small { display: block; font-size: 0.75rem; color: var(--text-light); margin-top: 5px; }
.rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.reward-card { text-align: center; padding: 15px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-color); transition: all 0.3s; }
.reward-card.locked { opacity: 0.4; filter: grayscale(0.8); }
.reward-card.unlocked { border-color: var(--hub-gold); }
.reward-card .reward-icon { font-size: 2rem; margin-bottom: 8px; }
.reward-card .reward-name { font-size: 0.8rem; font-weight: 600; }
.reward-card .reward-desc { font-size: 0.7rem; color: var(--text-light); margin-top: 3px; }

/* ===== BADGES ===== */
.badges-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.badges-display { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; }
.badge-item { text-align: center; padding: 20px 10px; border-radius: 16px; background: var(--bg); transition: all 0.4s; cursor: pointer; border: 2px solid var(--border-color); }
.badge-item:hover { transform: translateY(-5px); background: var(--bg-light); }
.badge-item.earned { border-color: var(--hub-gold); }
.badge-item.locked { opacity: 0.4; filter: grayscale(0.9); }
.badge-item .badge-icon { font-size: 2.5rem; margin-bottom: 8px; display: block; }
.badge-item .badge-name { font-size: 0.75rem; font-weight: 600; }
#badgeProgress .bp-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.85rem; }
#badgeProgress .bp-bar { flex: 1; height: 6px; background: var(--border-color); border-radius: 10px; overflow: hidden; }
#badgeProgress .bp-fill { height: 100%; background: var(--hub-primary); border-radius: 10px; transition: width 0.5s; }

/* ===== ANALYTICS ===== */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.analytics-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.analytics-stats div { text-align: center; padding: 15px 10px; background: var(--bg); border-radius: 12px; border: 1px solid var(--border-color); }
.analytics-stats span { display: block; font-size: 1.6rem; font-weight: 800; font-family: 'Poppins', sans-serif; }
.analytics-stats small { display: block; font-size: 0.7rem; color: var(--text-light); margin-top: 3px; }
.analytics-stats div:nth-child(1) span { color: var(--hub-primary); }
.analytics-stats div:nth-child(2) span { color: var(--hub-green); }
.analytics-stats div:nth-child(3) span { color: var(--hub-gold); }
.analytics-stats div:nth-child(4) span { color: var(--hub-purple); }
.analytics-stats div:nth-child(5) span { color: var(--hub-pink); }
.analytics-stats div:nth-child(6) span { color: var(--hub-teal); }

/* ===== LEVEL SYSTEM ===== */
.level-display { text-align: center; padding: 15px 0; }
.level-badge { display: inline-flex; width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--hub-primary), var(--hub-purple)); color: #fff; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; font-family: 'Poppins', sans-serif; margin-bottom: 10px; }
.level-name { display: block; font-size: 1.2rem; font-weight: 700; color: var(--hub-primary); }
.level-progress-bar { width: 100%; height: 8px; background: var(--border-color); border-radius: 10px; margin: 15px 0; overflow: hidden; }
.level-progress-fill { height: 100%; background: linear-gradient(90deg, var(--hub-primary), var(--hub-purple)); border-radius: 10px; transition: width 0.5s; }
#levelProgressText { text-align: center; font-size: 0.85rem; color: var(--text-light); }

/* ===== WEAK/STRONG AREAS ===== */
.weak-strong-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ws-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.85rem; }
.ws-item span:first-child { width: 100px; flex-shrink: 0; }
.ws-bar { flex: 1; height: 6px; background: var(--border-color); border-radius: 10px; overflow: hidden; }
.ws-fill { height: 100%; border-radius: 10px; transition: width 0.5s; }
.ws-fill.weak { background: var(--hub-red); }
.ws-fill.strong { background: var(--hub-green); }
.ws-item span:last-child { width: 40px; text-align: right; font-size: 0.8rem; }

/* ===== NOTES ===== */
.notes-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.notes-categories { list-style: none; }
.notes-categories li { padding: 10px 14px; margin-bottom: 4px; border-radius: 10px; cursor: pointer; transition: all 0.3s; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.notes-categories li:hover { background: var(--bg); }
.notes-categories li.active { background: rgba(15,76,255,0.1); color: var(--hub-primary); font-weight: 600; }
.notes-toolbar { display: flex; gap: 8px; margin-bottom: 15px; }
.notes-toolbar input { flex: 1; padding: 10px 16px; background: var(--bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text); font-family: 'Inter', sans-serif; }
.notes-toolbar input:focus { outline: none; border-color: var(--hub-primary); }
.notes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.note-card { padding: 18px; border-radius: 14px; background: var(--bg); transition: all 0.3s; cursor: pointer; border: 1px solid var(--border-color); }
.note-card:hover { background: var(--bg-light); transform: translateY(-2px); }
.note-card .note-title { font-weight: 600; margin-bottom: 5px; font-size: 0.95rem; }
.note-card .note-preview { font-size: 0.8rem; color: var(--text-light); }
.note-card .note-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.75rem; color: var(--text-light); }
.note-card .note-cat-tag { padding: 2px 10px; border-radius: 20px; background: rgba(15,76,255,0.1); color: var(--hub-primary); }
.note-card .note-actions { display: flex; gap: 8px; margin-top: 10px; }
.note-card .note-actions button { background: none; border: none; color: var(--text-light); cursor: pointer; transition: color 0.3s; padding: 4px; }
.note-card .note-actions button:hover { color: var(--text); }
.note-card .note-actions .delete-btn:hover { color: var(--hub-red); }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-content { width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--border-color); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-close { background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }
.modal-body .form-group { margin-bottom: 15px; }
.modal-body input, .modal-body select { width: 100%; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text); font-family: 'Inter', sans-serif; }
.modal-body input:focus, .modal-body select:focus { outline: none; border-color: var(--hub-primary); }
.modal-body select option { background: var(--bg); color: var(--text); }
.note-editor-toolbar { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; padding: 8px; background: var(--bg-light); border-radius: 10px; }
.note-editor-toolbar button { background: none; border: none; color: var(--text-light); padding: 6px 10px; border-radius: 6px; cursor: pointer; transition: all 0.3s; }
.note-editor-toolbar button:hover { background: var(--border-color); color: var(--text); }
.note-editor { min-height: 300px; padding: 16px; background: var(--bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.95rem; line-height: 1.7; outline: none; }
.note-editor:focus { border-color: var(--hub-primary); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ===== CONFETTI ===== */
.confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
@keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .planner-grid, .goals-grid, .quiz-grid, .leaderboard-grid, .streaks-grid, .badges-grid, .notes-grid, .analytics-grid { grid-template-columns: 1fr; }
    .challenges-grid { grid-template-columns: 1fr; }
    .weak-strong-grid { grid-template-columns: 1fr; }
    .hub-header-content h1 { font-size: 2rem; }
    .lb-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .hub-header { padding: 100px 0 20px; }
    .hub-header-content h1 { font-size: 1.6rem; }
    .hub-tabs { gap: 5px; }
    .hub-tab { padding: 8px 14px; font-size: 0.8rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-stats { flex-direction: column; gap: 10px; }
    .notes-list { grid-template-columns: 1fr; }
    .quiz-result-stats { gap: 15px; }
    .quiz-stat span { font-size: 1.8rem; }
    .hub-header-right { width: 100%; justify-content: center; }
    .analytics-stats { grid-template-columns: 1fr 1fr; }
    .practice-modes { grid-template-columns: 1fr 1fr; }
}
