/* === Student Review Form/Card === */
.my-review-stars {
  display: inline-flex;
  gap: 4px;
}
.my-star-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--border);
  cursor: pointer;
  transition: color 0.1s;
  line-height: 1;
  padding: 0 2px;
}
.my-star-btn:hover,
.my-star-btn.active {
  color: var(--kc-gold);
}
.my-review-form, .my-review-card, .my-review-locked {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* === Profile Setup Wizard === */
.profile-setup-wrapper {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.profile-setup-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.profile-setup-header {
  background: linear-gradient(135deg, var(--kc-navy), var(--kc-navy-light));
  color: #fff;
  padding: 2rem;
  text-align: center;
}
.profile-setup-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.profile-setup-brand .brand-icon {
  background: var(--kc-orange);
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.profile-setup-title { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.profile-setup-subtitle { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin-bottom: 1.5rem; }

.wizard-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.wizard-dots {
  display: flex;
  align-items: center;
  gap: 0;
}
.wizard-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid rgba(255,255,255,0.2);
}
.wizard-dot.active {
  background: var(--kc-orange);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(46,139,87,0.3);
}
.wizard-dot.done {
  background: var(--success);
  border-color: var(--success);
}
.wizard-dot.done [data-lucide] { width: 16px; height: 16px; }
.wizard-dot-line {
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  transition: background 0.25s;
}
.wizard-dot-line.done { background: var(--success); }
.wizard-step-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

.profile-setup-body { padding: 2rem; min-height: 360px; }
.wizard-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--kc-navy);
  margin-bottom: 0.25rem;
}
.wizard-section-title [data-lucide] { width: 20px; height: 20px; }
.wizard-section-hint {
  color: var(--muted-fg);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.wizard-radio-group, .wizard-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wizard-radio, .wizard-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--card);
  margin: 0;
  transition: all 0.15s;
  user-select: none;
}
.wizard-radio input, .wizard-checkbox input { display: none; }
.wizard-radio:hover, .wizard-checkbox:hover {
  border-color: var(--kc-navy-light);
  background: var(--muted);
}
.wizard-radio.active, .wizard-checkbox.active {
  border-color: var(--kc-orange);
  background: var(--kc-orange-lighter);
  color: var(--kc-navy);
  font-weight: 600;
}

.profile-setup-footer {
  padding: 1.25rem 2rem;
  background: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 560px) {
  .profile-setup-header { padding: 1.5rem 1rem; }
  .profile-setup-body { padding: 1.25rem; }
  .profile-setup-footer { padding: 1rem; }
  .wizard-dot { width: 30px; height: 30px; }
  .wizard-dot-line { width: 20px; }
}

/* Research KPI grid for Users page */
.research-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 900px) { .research-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* === Research Dashboard === */
.dash-intro {
  padding: 0.75rem 1rem;
  background: var(--kc-orange-lighter);
  border-left: 4px solid var(--kc-orange);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.dash-card h6 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--kc-navy);
  margin-bottom: 0.75rem;
}
.dash-card h6 [data-lucide] { width: 16px; height: 16px; }

/* Horizontal bars */
.dash-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
}
.dash-bar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--foreground);
}
.dash-bar-track {
  background: var(--muted);
  border-radius: 4px;
  height: 14px;
  overflow: hidden;
}
.dash-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease-out; }
.dash-bar-value { font-weight: 600; color: var(--kc-navy); text-align: right; font-size: 0.8rem; }

/* Donut */
.dash-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dash-donut {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.dash-donut-text {
  font-size: 20px;
  font-weight: 700;
  fill: var(--kc-navy);
}
.dash-donut-legend {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
}
.dash-legend-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.dash-legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
}
.dash-legend-label {
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-legend-value { font-size: 0.75rem; color: var(--muted-fg); font-variant-numeric: tabular-nums; }

/* Histogram */
.dash-histogram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  align-items: end;
  height: 140px;
}
.dash-hist-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.dash-hist-bar-wrap {
  flex-grow: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.dash-hist-bar {
  width: 100%;
  background: linear-gradient(to top, var(--kc-navy), var(--kc-navy-light));
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 2px;
  transition: height 0.4s ease-out;
}
.dash-hist-count {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--kc-navy);
}
.dash-hist-label {
  font-size: 0.7rem;
  color: var(--muted-fg);
  text-align: center;
}

/* Highlight card */
.dash-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--kc-orange-lighter), var(--card));
  border: 1px solid var(--kc-orange);
  border-radius: var(--radius-lg);
}
.dash-highlight-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--kc-orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-highlight-title { font-weight: 700; color: var(--kc-navy); margin-bottom: 4px; }
.dash-highlight-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dash-highlight-chip {
  background: #fff;
  border: 1px solid var(--kc-orange);
  color: var(--kc-navy);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

