/**
 * Phase 3: Student dashboard — Quick-access hub, progress, flow cards, explore, profile, notifications
 */
.dashboard-hub {
  display: flex;
  gap: var(--app-space-md);
  overflow-x: auto;
  padding: var(--app-space-md) var(--app-space) var(--app-space-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dashboard-hub::-webkit-scrollbar {
  display: none;
}
.hub-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--app-space-xs);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
  font: inherit;
  transition: transform var(--app-duration-fast) var(--app-ease-out);
  min-width: 64px;
}
.hub-item:hover {
  transform: translateY(-2px);
}
.hub-item:active {
  transform: translateY(0);
}
.hub-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: var(--app-radius-lg);
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--app-duration-fast) var(--app-ease), box-shadow var(--app-duration-fast) var(--app-ease), background var(--app-duration-fast) var(--app-ease);
}
.hub-icon-wrap img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.hub-item-notes .hub-icon-wrap img {
  width: 58px;
  height: 58px;
}
.hub-item:hover .hub-icon-wrap {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--app-shadow-md);
  background: var(--app-primary-soft);
}
/* USP hub item — AI Counselling: larger icon, light glow around border */
.hub-item-usp .hub-icon-wrap {
  border: 2px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px var(--app-primary-soft), var(--app-shadow);
}
.hub-item-usp .hub-icon-wrap img {
  width: 56px;
  height: 56px;
}
.hub-icon-wrap.hub-icon-avatar {
  overflow: hidden;
  padding: 0;
}
.hub-icon-wrap.hub-icon-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Override USP img size when it's an avatar so AI Counselling fills the cell like Be a Mentor */
.hub-item-usp .hub-icon-wrap.hub-icon-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-item-usp .hub-icon-wrap.hub-icon-avatar {
  background: var(--app-surface);
}
.hub-item-usp:hover .hub-icon-wrap {
  border-color: var(--app-primary);
  box-shadow: 0 0 12px 2px var(--app-primary-glow), var(--app-shadow-md);
}
.hub-item-add .hub-icon-wrap {
  background: var(--app-bg);
  border: 2px dashed var(--app-border);
  color: var(--app-text-muted);
}
.hub-item-add:hover .hub-icon-wrap {
  border-color: var(--app-primary);
  color: var(--app-primary);
  background: var(--app-primary-soft);
}
.hub-add-icon {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.hub-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--app-text-secondary);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.progress-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 24px;
  padding: 22px var(--app-space);
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow-card);
  transition: box-shadow var(--app-duration) var(--app-ease), transform var(--app-duration-fast) var(--app-ease);
}
.progress-card:hover {
  box-shadow: var(--app-shadow-card-hover);
}
.progress-ring-wrap {
  position: relative;
  flex-shrink: 0;
}
.progress-ring {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}
.progress-ring-bg {
  fill: none;
  stroke: var(--app-border);
  stroke-width: 6;
}
.progress-ring-fill {
  fill: none;
  stroke: var(--app-success);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--app-ease-out);
}
.progress-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--app-text);
}
.progress-info h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.progress-info p {
  font-size: 0.8125rem;
  color: var(--app-text-secondary);
  margin-bottom: 8px;
}
.streak-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--app-success);
  background: var(--app-success-soft);
  padding: 6px 12px;
  border-radius: var(--app-radius-full);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* Practice and Earn — student dashboard */
.practice-earn-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 24px;
  padding: 20px var(--app-space);
  background: linear-gradient(145deg, var(--app-surface) 0%, rgba(99, 102, 241, 0.04) 100%);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow-card);
  transition: box-shadow var(--app-duration) var(--app-ease);
}
.practice-earn-card:hover {
  box-shadow: var(--app-shadow-card-hover);
}
.practice-earn-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--app-radius-lg);
}
.practice-earn-icon-wrap img {
  display: block;
  object-fit: contain;
}
.practice-earn-body {
  flex: 1;
  min-width: 0;
}
.practice-earn-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--app-text);
}
.practice-earn-desc {
  font-size: 0.8125rem;
  color: var(--app-text-secondary);
  line-height: 1.45;
  margin: 0 0 12px;
}
.practice-earn-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  color: var(--app-text-secondary);
}
.practice-earn-stat strong {
  color: var(--app-text);
  font-weight: 700;
}
.practice-earn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.practice-earn-btn {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--app-radius-md);
  transition: background var(--app-duration-fast) var(--app-ease), color var(--app-duration-fast) var(--app-ease), border-color var(--app-duration-fast) var(--app-ease), transform var(--app-duration-fast) var(--app-ease);
  -webkit-tap-highlight-color: transparent;
}
.practice-earn-btn-primary {
  background: var(--app-gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}
.practice-earn-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.practice-earn-btn-secondary {
  background: var(--app-surface);
  color: var(--app-primary);
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.practice-earn-btn-secondary:hover {
  background: var(--app-primary-soft);
  border-color: var(--app-primary);
}

.flow-cards {
  padding: 0 16px 24px;
}
.flow-cards-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding: 0 4px;
  color: var(--app-text);
}
.flow-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-bottom: 12px;
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  text-decoration: none;
  color: var(--app-text);
  -webkit-tap-highlight-color: transparent;
  transition: background var(--app-duration) var(--app-ease), box-shadow var(--app-duration) var(--app-ease), transform var(--app-duration-fast) var(--app-ease-out), border-color var(--app-duration) var(--app-ease);
  box-shadow: var(--app-shadow);
}
.flow-card:hover,
.flow-card:focus {
  background: var(--app-primary-soft);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--app-shadow-card);
  transform: translateY(-2px);
}
.flow-card:active {
  transform: translateY(0);
}
/* Institution-only: dashboard CTA (school role) */
.inst-dash-cta-wrap {
  margin-bottom: var(--app-space-md);
}
.inst-dash-cta-wrap .inst-dash-cta {
  border: 2px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, var(--app-primary-soft) 0%, var(--app-accent-soft) 100%);
  box-shadow: 0 4px 20px -4px rgba(99, 102, 241, 0.15);
}
.inst-dash-cta-wrap .inst-dash-cta:hover {
  border-color: var(--app-primary);
  box-shadow: var(--app-shadow-card-hover);
}
.inst-dash-cta-wrap .inst-dash-cta-icon {
  background: rgba(99, 102, 241, 0.2);
}
.flow-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--app-radius-md);
  background: var(--app-gradient-soft);
  transition: background var(--app-duration) var(--app-ease), transform var(--app-duration-fast) var(--app-ease);
}
.flow-card:hover .flow-card-icon {
  background: rgba(99, 102, 241, 0.12);
  transform: scale(1.05);
}
.flow-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.flow-card-icon-svg svg {
  width: 24px;
  height: 24px;
  color: var(--app-text-muted);
  transition: color var(--app-duration) var(--app-ease);
}
.flow-card:hover .flow-card-icon-svg svg,
.flow-card:focus .flow-card-icon-svg svg {
  color: var(--app-primary);
}
.flow-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.flow-card-text strong {
  font-size: 0.9375rem;
}
.flow-card-text span {
  font-size: 0.8125rem;
  color: var(--app-text-secondary);
}
.flow-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--app-primary);
  background: rgba(77, 136, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
.flow-card-arrow {
  font-size: 1.25rem;
  color: var(--app-text-muted);
}
.flow-card-locked {
  opacity: 0.85;
}
.flow-card-locked .flow-card-arrow {
  color: var(--app-text-muted);
}

.explore-category {
  margin-bottom: var(--app-space-xl);
}
.explore-category:last-child {
  margin-bottom: 0;
}
.explore-category-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-text-secondary);
  margin: 0 0 var(--app-space-sm);
  padding: 0 var(--app-space-md);
  line-height: 1.3;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px;
}
.explore-category .explore-grid {
  padding: 0;
}
.explore-category:first-of-type {
  margin-top: var(--app-space-md);
}
.explore-category + .explore-category .explore-category-title {
  margin-top: var(--app-space-lg);
  padding-top: var(--app-space-sm);
  border-top: 1px solid var(--app-border-soft);
}
.explore-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  min-width: 0;
  min-height: 120px;
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  text-decoration: none;
  color: var(--app-text);
  font-size: 0.875rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: all var(--app-duration) var(--app-ease);
  box-shadow: var(--app-shadow);
  position: relative;
  overflow: hidden;
}
.explore-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--app-gradient-soft);
  opacity: 0;
  transition: opacity var(--app-duration) var(--app-ease);
}
.explore-tile:hover {
  background: var(--app-surface);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--app-shadow-card);
  transform: translateY(-4px) scale(1.02);
}
.explore-tile:hover::before {
  opacity: 1;
}
.explore-tile:active {
  transform: translateY(-1px) scale(1);
}
.explore-tile-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--app-radius-md);
  background: var(--app-gradient-soft);
  position: relative;
  z-index: 1;
  transition: transform var(--app-duration) var(--app-ease-out), box-shadow var(--app-duration) var(--app-ease);
}
.explore-tile:hover .explore-tile-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}
.explore-tile-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.explore-tile-icon-avatar img {
  object-fit: cover;
  border-radius: inherit;
}
.explore-tile-desc {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--app-text-secondary);
  position: relative;
  z-index: 1;
}
.explore-tile span:not(.explore-tile-icon):not(.explore-tile-desc) {
  position: relative;
  z-index: 1;
}

.profile-header {
  padding: 28px 16px;
  text-align: center;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border-soft);
  position: relative;
}
.profile-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--app-gradient-soft);
  pointer-events: none;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--app-gradient-primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: var(--app-shadow-lg), 0 0 0 4px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}
.app-dark .profile-avatar {
  box-shadow: var(--app-shadow-lg), 0 0 0 4px rgba(24, 24, 27, 0.8);
}
.profile-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.profile-bio {
  font-size: 0.875rem;
  color: var(--app-text-secondary);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.profile-actions {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-action-btn {
  display: block;
  padding: 16px 24px;
  text-align: center;
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius-lg);
  color: var(--app-text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all var(--app-duration) var(--app-ease);
  box-shadow: var(--app-shadow);
}
.profile-action-btn:hover {
  background: var(--app-primary-soft);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--app-primary);
  box-shadow: var(--app-shadow-card);
  transform: translateY(-1px);
}
.profile-action-btn:active {
  transform: translateY(0);
}

/* Profile guest card — Create account / Login */
.profile-guest-card {
  margin-bottom: var(--app-space-lg);
  padding: var(--app-space-lg);
  background: var(--app-primary-soft);
  border-radius: var(--app-radius-md);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.profile-guest-desc {
  margin-bottom: var(--app-space-md);
}
.profile-guest-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--app-space-md);
}
.profile-guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--app-radius-md);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--app-duration-fast) var(--app-ease), border-color var(--app-duration-fast) var(--app-ease), box-shadow var(--app-duration-fast) var(--app-ease), transform var(--app-duration-fast) var(--app-ease);
  border: none;
  font-family: var(--app-font);
}
.profile-guest-btn-primary {
  background: var(--app-gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.profile-guest-btn-primary:hover {
  box-shadow: var(--app-shadow-glow), 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
.profile-guest-btn-secondary {
  background: var(--app-surface);
  color: var(--app-text);
  border: 1px solid var(--app-border);
}
.profile-guest-btn-secondary:hover {
  background: var(--app-border-soft);
  border-color: var(--app-primary);
  color: var(--app-primary);
}
.profile-account-user-card {
  margin-bottom: var(--app-space-lg);
  padding: var(--app-space-lg);
  background: var(--app-border-soft);
  border-radius: var(--app-radius-md);
}

.profile-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.profile-course-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius-md);
  font-size: var(--app-text-sm);
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  transition: all var(--app-duration-fast) var(--app-ease);
  box-shadow: var(--app-shadow);
}
.profile-course-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--app-shadow-md);
}
.profile-course-item input {
  margin: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--app-primary);
}

/* Categorized exams in profile — collapsible */
.profile-exams-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.profile-exam-collapse {
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius-md);
  background: var(--app-surface);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--app-shadow);
}
.profile-exam-collapse:last-child {
  margin-bottom: 0;
}
.profile-exam-collapse[open] {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--app-shadow-card);
}
.profile-exam-category-title {
  font-size: var(--app-text-sm);
  font-weight: 700;
  color: var(--app-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--app-duration-fast) var(--app-ease), color var(--app-duration-fast) var(--app-ease);
  user-select: none;
}
.profile-exam-category-title::-webkit-details-marker,
.profile-exam-category-title::marker {
  display: none;
}
.profile-exam-category-title::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--app-duration) var(--app-ease);
}
.profile-exam-collapse[open] .profile-exam-category-title::after {
  transform: rotate(180deg);
}
.profile-exam-collapse[open] .profile-exam-category-title {
  color: var(--app-primary);
  background: var(--app-primary-soft);
}
.profile-exam-category-title:hover {
  background: var(--app-border-soft);
}
.profile-exam-collapse[open] .profile-exam-category-title:hover {
  background: var(--app-primary-soft);
}
.profile-exam-collapse .profile-exam-chips {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--app-border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Custom exam form when "Other" is selected */
.profile-custom-exam-wrap {
  border-top: 1px solid var(--app-border-soft);
  padding: var(--app-space-md) var(--app-space-lg);
  background: var(--app-primary-soft);
}
.profile-custom-exam-inner {
  max-width: 480px;
}
.profile-custom-exam-head {
  font-size: var(--app-text-sm);
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 4px;
}
.profile-custom-exam-note {
  font-size: 0.8125rem;
  color: var(--app-text-secondary);
  margin: 0 0 var(--app-space-md);
  line-height: 1.4;
}
.profile-custom-exam-fields {
  display: flex;
  flex-direction: column;
  gap: var(--app-space-sm);
}
.profile-custom-exam-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-text-secondary);
  margin: 0;
}
.profile-custom-exam-required {
  font-weight: 500;
  color: var(--app-text-muted);
}
.profile-custom-exam-input,
.profile-custom-exam-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--app-text-sm);
  font-family: var(--app-font);
  color: var(--app-text);
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  transition: border-color var(--app-duration-fast) var(--app-ease), box-shadow var(--app-duration-fast) var(--app-ease);
}
.profile-custom-exam-input:focus,
.profile-custom-exam-textarea:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-soft);
}
.profile-custom-exam-input::placeholder,
.profile-custom-exam-textarea::placeholder {
  color: var(--app-text-muted);
}
.profile-custom-exam-textarea {
  resize: vertical;
  min-height: 72px;
}

/* Papers table (Topper's Package — same as main site) */
.papers-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: var(--app-surface);
}
.papers-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: var(--app-text-sm);
}
.papers-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--app-bg);
  font-weight: 600;
  color: var(--app-text);
  border-bottom: 2px solid var(--app-border);
}
.papers-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--app-border);
  color: var(--app-text);
  vertical-align: middle;
}
.papers-table tbody tr:hover {
  background: var(--app-primary-soft);
}
.papers-cell.class-cell {
  white-space: nowrap;
  color: var(--app-text-secondary);
}
.papers-cell.board-cell {
  font-weight: 500;
}
.papers-cell.stream-cell {
  font-weight: 500;
}
.papers-cell.action-cell {
  white-space: nowrap;
}
.papers-table-btn {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--app-primary);
  background: var(--app-primary-soft);
  border: 1px solid var(--app-primary);
  border-radius: var(--app-radius-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.papers-table-btn:hover {
  background: var(--app-primary);
  color: #fff;
}

.notifications-list {
  padding: 16px;
}
.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--app-border-soft);
  transition: background var(--app-duration-fast) var(--app-ease);
}
.notification-item:hover {
  background: var(--app-gradient-soft);
}
.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.notification-body strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}
.notification-body p {
  font-size: 0.8125rem;
  color: var(--app-text-secondary);
}

/* Inner page content */
.page-content {
  padding: 16px;
}
.page-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.page-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  border-radius: var(--app-radius-md);
  overflow: hidden;
  background: var(--app-surface);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow);
}
.page-title-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.topic-list {
  list-style: none;
}
.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--app-border);
}
.topic-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--app-primary);
}
.note-card,
.mock-card {
  display: block;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  text-decoration: none;
  color: var(--app-text);
  box-shadow: var(--app-shadow);
  transition: all var(--app-duration) var(--app-ease);
}
.note-card:hover,
.mock-card:hover {
  background: var(--app-primary-soft);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--app-shadow-card);
  transform: translateY(-2px);
}
.note-card:active,
.mock-card:active {
  transform: translateY(0);
}

/* Mocks page hero */
.mocks-page-hero {
  margin-bottom: var(--app-space-lg);
}
.mocks-loading {
  color: var(--app-text-muted);
  margin-top: 8px;
}

/* Free mocks section: group by exam, card with Start test */
.free-mocks-section {
  margin-bottom: var(--app-space-lg);
}
.free-mocks-heading {
  font-size: var(--app-text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--app-text-muted);
  margin: 0 0 var(--app-space) 0;
}
.free-mocks-grid {
  display: flex;
  flex-direction: column;
  gap: var(--app-space);
}
.free-mocks-group {
  margin-bottom: var(--app-space-lg);
}
.free-mocks-group:last-child {
  margin-bottom: 0;
}
.free-mocks-group-title {
  font-size: var(--app-text-lg);
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 var(--app-space) 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--app-primary-soft);
}
.free-mocks-group-for-your-exam .free-mocks-group-title {
  border-bottom-color: var(--app-primary);
  color: var(--app-primary);
}
.free-mocks-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--app-space);
}
@media (min-width: 480px) {
  .free-mocks-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mock-card {
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: none;
  transform: none;
}
.mock-card:hover,
.mock-card:active {
  transform: none;
  background: transparent;
  border: none;
}
.mock-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--app-space-lg);
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow);
  height: 100%;
  transition: transform 0.2s var(--app-ease), box-shadow 0.2s var(--app-ease), border-color 0.2s;
}
.mock-card:hover .mock-card-inner {
  transform: translateY(-2px);
  box-shadow: var(--app-shadow-md), 0 6px 20px rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}
.mock-card-exam {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-primary);
  background: var(--app-primary-soft);
  padding: 4px 10px;
  border-radius: var(--app-radius-full);
  margin-bottom: 10px;
}
.mock-card-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--app-radius-full);
  margin-left: 8px;
  vertical-align: middle;
}
.mock-card-badge-premium {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.4);
}
.mock-card-title {
  display: block;
  font-size: var(--app-text-base);
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.mock-card-meta {
  font-size: var(--app-text-sm);
  color: var(--app-text-secondary);
  margin-bottom: 8px;
}
.mock-card-desc {
  font-size: var(--app-text-xs);
  color: var(--app-text-muted);
  margin: 0 0 14px 0;
  line-height: 1.45;
  flex: 1;
}
.mock-card-start {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--app-gradient-primary);
  color: #fff;
  border-radius: var(--app-radius-md);
  font-weight: 600;
  font-size: var(--app-text-sm);
  text-decoration: none;
  margin-top: auto;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  transition: box-shadow 0.2s, transform 0.1s;
}
.mock-card-start:hover,
.mock-card-start:focus {
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.unlock-cta {
  text-align: center;
  padding: 32px 16px;
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border);
  margin: 16px;
}
.unlock-cta h2,
.unlock-cta-head {
  font-size: 1.125rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.unlock-cta-icon {
  display: inline-flex;
}
.unlock-cta-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.page-title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title-with-icon .page-title-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.unlock-cta p {
  font-size: 0.875rem;
  color: var(--app-text-secondary);
  margin-bottom: 16px;
}

/* Get-package: hero and Topper's Package (premium aesthetics) */
.papers-hero {
  text-align: center;
  padding: 2rem 1rem 1.75rem;
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(168, 85, 247, 0.05) 100%);
  border-radius: var(--app-radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.papers-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: var(--app-text-sm);
  font-weight: 600;
  color: var(--app-primary);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.papers-hero-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.papers-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.papers-hero-sub {
  font-size: var(--app-text-base);
  color: var(--app-text-secondary);
  margin: 0;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.papers-unlock {
  margin: 0 0 2rem;
  padding: 1.5rem 1rem;
}
.papers-unlock .unlock-cta-head {
  margin-bottom: 0.5rem;
}
.papers-unlock p {
  margin-bottom: 1rem;
}
.topper-package-section {
  margin-top: 0;
}
.topper-package-head {
  margin-bottom: 1.25rem;
}
.topper-package-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 0.5rem;
}
.topper-package-icon {
  display: inline-flex;
}
.topper-package-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.topper-package-desc {
  font-size: var(--app-text-sm);
  color: var(--app-text-secondary);
  margin: 0 0 0.5rem;
}
.topper-package-contribute {
  font-size: var(--app-text-sm);
  color: var(--app-text-secondary);
  margin: 0;
}
.topper-package-contribute a {
  color: var(--app-primary);
  text-decoration: none;
}
.topper-package-contribute a:hover {
  text-decoration: underline;
}

/* Profile settings sheet */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.settings-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.settings-sheet {
  background: var(--app-surface);
  border-radius: var(--app-radius-lg) var(--app-radius-lg) 0 0;
  width: 100%;
  max-width: var(--app-content-max, 480px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.settings-overlay[aria-hidden="false"] .settings-sheet {
  transform: translateY(0);
}

/* Add exam (₹249) modal */
.add-exam-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.add-exam-sheet {
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--app-shadow-lg);
}
.add-exam-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.add-exam-text {
  font-size: 0.9375rem;
  color: var(--app-text-secondary);
  margin: 0 0 20px;
  line-height: 1.45;
}
.add-exam-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.settings-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}
.settings-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--app-text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--app-radius-full);
  -webkit-tap-highlight-color: transparent;
}
.settings-close:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}
.settings-body {
  padding: 8px 0 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.settings-group {
  padding: 8px 0;
}
.settings-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--app-text-muted);
  padding: 0 16px 6px;
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--app-text);
  font-size: 0.9375rem;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.settings-item:hover {
  background: var(--app-primary-soft);
}
.settings-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.settings-item-label {
  flex: 1;
}
.settings-item-value {
  font-size: 0.875rem;
  color: var(--app-text-secondary);
  margin-right: 4px;
}
.settings-item-chevron {
  font-size: 1.125rem;
  color: var(--app-text-muted);
}
.settings-item-toggle {
  cursor: default;
}
.settings-toggle {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--app-border);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}
.settings-toggle::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.settings-toggle:checked {
  background: var(--app-primary);
}
.settings-toggle:checked::after {
  transform: translateX(20px);
}
.settings-item-button {
  color: var(--app-text-secondary);
}
.settings-item-button:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

/* ========== 4 steps: two categories (Exams you selected / Other resources) ========== */
.steps-category {
  margin-top: var(--app-space-xl);
}
.steps-category:first-of-type {
  margin-top: var(--app-space-lg);
}
.steps-category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}
.steps-category-hint {
  font-size: 0.8125rem;
  color: var(--app-text-muted);
  margin: 0 0 var(--app-space) 0;
}
.steps-category-hint a {
  color: var(--app-primary);
  font-weight: 600;
  text-decoration: none;
}
.steps-category-hint a:hover {
  text-decoration: underline;
}
.steps-category-empty {
  font-size: 0.9375rem;
  color: var(--app-text-secondary);
  padding: var(--app-space-md);
  background: var(--app-bg-elevated);
  border-radius: var(--app-radius-md);
  margin-top: var(--app-space-sm);
}
