/* ==========================================================================
   Open Minds Academy — Student Dashboard (#/aluno)
   Scoped strictly to .stu-* classes (zero collision with styles.css / live.css).
   Performance-first: crisp solid surfaces, snappy hover/progress transitions,
   zero heavy compositing filters, responsive (<=1024px, <=640px) & RTL-ready.
   ========================================================================== */

.stu-wrap {
  --stu-accent: var(--u-purple, #6d28d9);
  --stu-accent-h: var(--u-purple-h, #5b21b6);
  --stu-accent-soft: var(--u-purple-soft, rgba(109, 40, 217, 0.08));
  --stu-accent-ring: rgba(109, 40, 217, 0.2);
  --stu-border: var(--line, #e2e8f0);
  --stu-surface: var(--surface, #ffffff);
  --stu-paper: var(--paper, #f8fafc);
  --stu-ink: var(--ink, #0f172a);
  --stu-text: var(--text, #1e293b);
  --stu-muted: var(--muted, #475569);
  --stu-muted-2: var(--muted-2, #94a3b8);
  --stu-green: var(--green, #15803d);
  --stu-gold: var(--gold, #d97706);
  --stu-red: var(--red, #dc2626);

  max-width: 1320px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--stu-text);
  text-align: start;
}

.stu-wrap *,
.stu-wrap *::before,
.stu-wrap *::after {
  box-sizing: border-box;
}

/* Structural grid overflow guard */
.stu-kpis > *,
.stu-main-grid > *,
.stu-grid > *,
.stu-rec-grid > *,
.stu-resume > * {
  min-width: 0;
}

/* Harmonize primary/outline buttons & chips inside .stu-wrap with brand violet (#6d28d9) */
.stu-wrap .btn-p {
  background: var(--stu-accent);
  color: #ffffff;
  border-color: var(--stu-accent-h);
  box-shadow: 0 2px 0 var(--stu-accent-h);
}

.stu-wrap .btn-p:hover {
  background: var(--stu-accent-h);
  border-color: #4c1d95;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #4c1d95;
}

.stu-wrap .btn-o {
  background: var(--stu-surface);
  color: var(--stu-ink);
  border-color: var(--stu-border);
  box-shadow: 0 1px 0 var(--stu-border);
}

.stu-wrap .btn-o:hover {
  border-color: var(--stu-accent);
  color: var(--stu-accent);
  background: var(--stu-accent-soft);
  box-shadow: 0 2px 0 rgba(109, 40, 217, 0.22);
}

.stu-wrap .chip-v {
  background: var(--stu-accent-soft);
  color: var(--stu-accent);
}

.stu-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--stu-accent);
  white-space: nowrap;
  transition: color 0.14s ease;
}

.stu-link:hover {
  color: var(--stu-accent-h);
  text-decoration: underline;
}

.stu-link svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.stu-muted {
  font-size: 13px;
  color: var(--stu-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   1. Welcome Hero Header (.stu-hero)
   ========================================================================== */
.stu-hero {
  background: var(--stu-surface);
  border: 1px solid var(--stu-border);
  border-radius: var(--r-lg, 18px);
  padding: 22px 26px;
  box-shadow: var(--sh-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.stu-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.stu-hero-top {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.stu-hero h1 {
  font-family: var(--font-d, 'Inter', system-ui, sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--stu-ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}

.stu-hero p {
  font-size: 14px;
  color: var(--stu-muted);
  margin: 0;
  line-height: 1.5;
}

.stu-streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.22);
  color: #c2410c;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.stu-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   2. Continue Learning Spotlight (.stu-resume)
   ========================================================================== */
.stu-resume {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  border: 1px solid rgba(109, 40, 217, 0.22);
  border-radius: var(--r-lg, 18px);
  padding: 20px;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.07);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.stu-resume.is-empty {
  grid-template-columns: minmax(0, 1fr);
  padding: 24px;
}

.stu-resume-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r, 14px);
  overflow: hidden;
  background: #1e1b4b;
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.stu-resume-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.stu-resume-media:hover img {
  transform: scale(1.03);
}

.stu-resume-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.92);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.stu-resume-play svg {
  width: 20px;
  height: 20px;
}

.stu-resume-media:hover .stu-resume-play {
  transform: scale(1.08);
  background: var(--stu-accent-h);
}

.stu-resume-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.stu-resume-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stu-resume-cat {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--stu-muted);
}

.stu-resume h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--stu-ink);
  line-height: 1.25;
  margin: 0;
}

.stu-resume-next {
  font-size: 13.5px;
  color: var(--stu-muted);
  margin: 0;
  line-height: 1.45;
}

.stu-resume-next strong {
  color: var(--stu-ink);
  font-weight: 700;
}

.stu-resume .stu-prog {
  max-width: 520px;
}

.stu-resume-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* ==========================================================================
   3. 4 KPI Metric Cards (.stu-kpis / .stu-kpi)
   ========================================================================== */
.stu-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stu-kpi {
  background: var(--stu-surface);
  border: 1px solid var(--stu-border);
  border-radius: var(--r, 14px);
  padding: 18px 20px;
  box-shadow: var(--sh-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.stu-kpi-link {
  cursor: pointer;
}

.stu-kpi-link:hover {
  border-color: var(--stu-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.09);
}

.stu-kpi-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--stu-muted);
}

.stu-kpi-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--stu-accent-soft);
  color: var(--stu-accent);
}

.stu-kpi-ic svg {
  width: 17px;
  height: 17px;
}

.stu-kpi:nth-child(2) .stu-kpi-ic {
  background: rgba(21, 128, 61, 0.11);
  color: var(--stu-green);
}

.stu-kpi:nth-child(3) .stu-kpi-ic {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue, #2563eb);
}

.stu-kpi:nth-child(4) .stu-kpi-ic {
  background: rgba(217, 119, 6, 0.12);
  color: var(--stu-gold);
}

.stu-kpi-val {
  font-family: var(--font-d, 'Inter', system-ui, sans-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--stu-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.stu-kpi-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--stu-muted-2);
}

.stu-kpi-link .stu-kpi-sub {
  color: var(--stu-accent);
  font-weight: 700;
}

.stu-kpi-sub svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   4. Main 2-Column Layout (.stu-main-grid: 1fr 340px)
   ========================================================================== */
.stu-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.stu-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* ==========================================================================
   5. Sections, Toolbar, Filter Tabs & Search
   ========================================================================== */
.stu-section {
  background: var(--stu-surface);
  border: 1px solid var(--stu-border);
  border-radius: var(--r-lg, 18px);
  padding: 22px;
  box-shadow: var(--sh-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stu-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stu-sec-head h2,
.stu-sec-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--stu-ink);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stu-side-card .stu-sec-head h3 {
  font-size: 15px;
}

.stu-sec-head h3 svg {
  width: 17px;
  height: 17px;
  color: var(--stu-accent);
  flex: none;
}

.stu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stu-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--stu-paper);
  border: 1px solid var(--stu-border);
  border-radius: 12px;
  padding: 4px;
}

.stu-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--stu-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.stu-tab:hover {
  color: var(--stu-ink);
  background: rgba(15, 23, 42, 0.04);
}

.stu-tab.on {
  background: var(--stu-accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.22);
}

.stu-tab span {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.stu-tab.on span {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.stu-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 210px;
  flex: 1;
  max-width: 280px;
}

.stu-search-ic {
  position: absolute;
  inset-inline-start: 12px;
  display: grid;
  place-items: center;
  color: var(--stu-muted-2);
  pointer-events: none;
}

.stu-search-ic svg {
  width: 15px;
  height: 15px;
}

.stu-search input {
  width: 100%;
  height: 38px;
  padding-block: 7px;
  padding-inline-start: 35px;
  padding-inline-end: 12px;
  border-radius: 10px;
  border: 1px solid var(--stu-border);
  background: var(--stu-paper);
  color: var(--stu-ink);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.stu-search input::placeholder {
  color: var(--stu-muted-2);
}

.stu-search input:focus {
  background: var(--stu-surface);
  border-color: var(--stu-accent);
  box-shadow: 0 0 0 3px var(--stu-accent-ring);
}

/* ==========================================================================
   6. Enrolled Courses Grid (.stu-grid / .stu-card / .stu-course)
   ========================================================================== */
.stu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stu-grid > .stu-empty {
  grid-column: 1 / -1;
}

.stu-card,
.stu-course {
  background: var(--stu-surface);
  border: 1px solid var(--stu-border);
  border-radius: var(--r, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.stu-card:hover,
.stu-course:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 40, 217, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.stu-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.stu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.stu-card:hover .stu-thumb img {
  transform: scale(1.03);
}

.stu-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.stu-badge.is-done {
  background: var(--stu-green);
}

.stu-badge svg {
  width: 12px;
  height: 12px;
}

.stu-card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.stu-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--stu-ink);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stu-card-title a:hover {
  color: var(--stu-accent);
}

.stu-meta {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--stu-muted);
}

.stu-next-lesson {
  font-size: 12.5px;
  color: var(--stu-muted);
  background: var(--stu-paper);
  border: 1px solid var(--line-2, #f1f5f9);
  border-radius: 9px;
  padding: 7px 10px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stu-next-lesson strong {
  color: var(--stu-ink);
  font-weight: 700;
}

/* Progress bar (.stu-prog) */
.stu-prog {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.stu-prog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--stu-muted);
  font-weight: 600;
}

.stu-prog-head b,
.stu-prog-head strong {
  color: var(--stu-accent);
  font-weight: 800;
}

.stu-cert-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--stu-green);
  background: rgba(21, 128, 61, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.stu-prog-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--line-2, #f1f5f9);
  overflow: hidden;
}

.stu-prog-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--stu-accent) 0%, #8b5cf6 100%);
  transition: width 0.3s ease;
}

.stu-card-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2, #f1f5f9);
}

/* ==========================================================================
   7. Recommended Courses (.stu-rec-grid / .stu-rec-card)
   ========================================================================== */
.stu-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stu-rec-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-2, #f1f5f9);
}

.stu-price {
  font-family: var(--font-d, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--stu-ink);
  white-space: nowrap;
}

.stu-rec-act {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   8. Right Sidebar (.stu-side / .stu-side-card)
   ========================================================================== */
.stu-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.stu-side-card {
  background: var(--stu-surface);
  border: 1px solid var(--stu-border);
  border-radius: var(--r-lg, 18px);
  padding: 18px 20px;
  box-shadow: var(--sh-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Weekly Goal Widget (#stu-weekly-goal) --- */
.stu-goal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stu-goal-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--stu-ink);
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stu-goal-head h3 svg {
  width: 17px;
  height: 17px;
  color: var(--stu-accent);
  flex: none;
}

.stu-goal-sub {
  font-size: 12.5px;
  color: var(--stu-muted);
  line-height: 1.45;
  margin: 0;
}

.stu-goal-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--stu-paper);
  border: 1px solid var(--stu-border);
  border-radius: 10px;
  padding: 3px;
  flex: none;
}

.stu-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--stu-surface);
  color: var(--stu-ink);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}

.stu-step-btn:hover:not(:disabled) {
  border-color: var(--stu-accent);
  color: var(--stu-accent);
  background: var(--stu-accent-soft);
}

.stu-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stu-goal-val {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-d, 'Inter', system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--stu-ink);
}

/* --- Live Sessions Mini-Cards (.stu-live-list / .stu-live-item) --- */
.stu-live-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stu-live-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--stu-border);
  background: var(--stu-paper);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.stu-live-item:hover {
  border-color: rgba(109, 40, 217, 0.35);
  background: #ffffff;
}

.stu-live-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
}

.stu-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stu-accent);
  flex: none;
}

.stu-live-dot.is-live {
  background: var(--stu-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.stu-live-status {
  font-weight: 800;
  color: var(--stu-accent);
}

.stu-live-status.is-live {
  color: var(--stu-red);
}

.stu-live-dur {
  margin-inline-start: auto;
  font-size: 11.5px;
  color: var(--stu-muted);
  font-weight: 600;
}

.stu-live-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--stu-ink);
  line-height: 1.35;
  margin: 0;
}

.stu-live-meta {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--stu-muted);
}

.stu-live-btn {
  width: 100%;
  justify-content: center;
  margin-top: 3px;
}

/* --- Open Mind AI Quick Card (.stu-ai-card) --- */
.stu-ai-card {
  background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: rgba(109, 40, 217, 0.22);
}

.stu-ai-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stu-ai-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--stu-accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
}

.stu-ai-ic svg {
  width: 19px;
  height: 19px;
}

.stu-ai-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--stu-ink);
  margin: 0 0 4px;
}

.stu-ai-card p {
  font-size: 12.5px;
  color: var(--stu-muted);
  line-height: 1.5;
  margin: 0;
}

.stu-ai-btn {
  width: 100%;
  justify-content: center;
}

/* --- Certificates List (.stu-cert-list / .stu-cert-item) --- */
.stu-cert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stu-cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stu-border);
  background: var(--stu-paper);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.stu-cert-item:hover {
  border-color: rgba(21, 128, 61, 0.35);
  background: #ffffff;
}

.stu-cert-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(21, 128, 61, 0.12);
  color: var(--stu-green);
  display: grid;
  place-items: center;
  flex: none;
}

.stu-cert-ic svg {
  width: 17px;
  height: 17px;
}

.stu-cert-info {
  min-width: 0;
  flex: 1;
}

.stu-cert-info b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--stu-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stu-cert-info small {
  display: block;
  font-size: 11.5px;
  color: var(--stu-muted);
}

/* ==========================================================================
   9. Empty State (.stu-empty)
   ========================================================================== */
.stu-empty {
  background: var(--stu-paper);
  border: 1px dashed #cbd5e1;
  border-radius: var(--r, 14px);
  padding: 32px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stu-empty.is-compact {
  padding: 18px 14px;
  gap: 8px;
}

.stu-empty h2,
.stu-empty h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--stu-ink);
  margin: 0;
}

.stu-empty p {
  font-size: 13.5px;
  color: var(--stu-muted);
  max-width: 400px;
  line-height: 1.5;
  margin: 0;
}

.stu-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ==========================================================================
   10. Responsive Breakpoints (<= 1024px, <= 640px)
   ========================================================================== */
@media (max-width: 1024px) {
  .stu-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stu-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stu-resume {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
  }

  .stu-rec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stu-wrap {
    gap: 16px;
  }

  .stu-hero {
    padding: 18px;
    align-items: flex-start;
  }

  .stu-hero h1 {
    font-size: 20px;
  }

  .stu-hero-actions {
    width: 100%;
  }

  .stu-hero-actions > * {
    flex: 1 1 auto;
    justify-content: center;
  }

  .stu-resume {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 14px;
  }

  .stu-resume h2 {
    font-size: 18px;
  }

  .stu-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stu-kpi {
    padding: 14px;
  }

  .stu-kpi-val {
    font-size: 21px;
  }

  .stu-section,
  .stu-side-card {
    padding: 16px;
  }

  .stu-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .stu-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .stu-search {
    max-width: none;
    min-width: 0;
  }

  .stu-grid,
  .stu-rec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   11. RTL (Arabic) Adjustments & Reduced Motion
   ========================================================================== */
[dir="rtl"] .stu-wrap {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .stu-resume {
  background: linear-gradient(225deg, #ffffff 0%, #f5f3ff 100%);
}

[dir="rtl"] .stu-prog-bar > i {
  background: linear-gradient(270deg, var(--stu-accent) 0%, #8b5cf6 100%);
}

[dir="rtl"] .stu-link svg,
[dir="rtl"] .stu-kpi-sub svg {
  transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
  .stu-wrap *,
  .stu-wrap *::before,
  .stu-wrap *::after {
    transition-duration: 0.01ms !important;
  }
}
