@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Montserrat:wght@600;700;800;900&display=swap');

:root {
  /* Official NC A&T & Aggie Gateway Brand Colors */
  --aggie-blue: #004684;
  --aggie-blue-dark: #002d57;
  --aggie-blue-deep: #001a3a;
  --aggie-gold: #FDB927;
  --aggie-gold-dark: #d49514;
  
  /* Surfaces (Clean Light Surface System) */
  --surface-bg: #f1f5f9;
  --surface-card: #ffffff;
  --surface-hover: #f8fafc;
  --sidebar-bg: #001a3a;
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Status Colors */
  --status-complete: #059669;
  --status-complete-bg: #d1fae5;
  --status-ip: #d97706;
  --status-ip-bg: #fef3c7;
  --status-info: #2563eb;
  --status-info-bg: #dbeafe;
  
  /* Borders & Spacing */
  --border: #e2e8f0;
  --border-strong: rgba(0, 70, 132, 0.2);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 70, 132, 0.1);

  /* Easing Curves */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Theme RGB (for alpha blending) */
  --theme-primary-rgb: 0, 70, 132;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: 12px;

  /* Category Colors */
  --cat-purpose: #2563EB;
  --cat-communities: #059669;
  --cat-localglobal: #D97706;
  --cat-identity: #7C3AED;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--surface-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Master 3-Panel Aggie Gateway Layout --- */
.aggie-top-persistent-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #00142e, #002e5d, #004684, #0060ad, #004684, #002e5d, #00142e);
  background-size: 300% 300%;
  animation: headerGradient 12s ease infinite;
  color: #ffffff;
  padding: 0.65rem 1.75rem;
  border-bottom: 3.5px solid var(--aggie-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes headerGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-brand-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-ncat-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.header-brand-divider {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 200;
  color: rgba(253, 185, 39, 0.65);
  margin: 0 0.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.header-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.header-brand-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.header-center-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-badge.blue {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.pill-badge.gold {
  background: rgba(253, 185, 39, 0.2);
  border: 1.5px solid var(--aggie-gold);
  color: var(--aggie-gold);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-btn.gold {
  background: var(--aggie-gold);
  color: var(--aggie-blue-deep);
  border-color: var(--aggie-gold);
}

.header-btn.gold:hover {
  background: #e5a41c;
}

.header-btn.intro {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Header Consolidated Dropdown Menu */
.header-dropdown-menu {
  display: none;
  position: absolute;
  top: 38px;
  right: 0;
  background: #001a3a;
  border: 1.5px solid var(--aggie-gold);
  border-radius: var(--radius-md);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  overflow: hidden;
}

.header-dropdown-menu.active {
  display: block;
}

.header-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.header-dropdown-menu a:hover {
  background: rgba(253, 185, 39, 0.2);
  color: var(--aggie-gold);
}

/* BLS Career Statistics Bar */
.bls-career-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--aggie-gold);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.bls-stat-item {
  text-align: center;
}

.bls-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--aggie-blue);
  line-height: 1.1;
}

.bls-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.bls-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.aggie-gateway-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  min-height: calc(100vh - 58px);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 1200px) {
  .aggie-gateway-layout {
    grid-template-columns: 240px 1fr 240px;
  }
}

/* --- LEFT PANEL: Student Profile + Advisory Team --- */
.left-panel {
  background: var(--sidebar-bg);
  color: var(--text-inverse);
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
  overflow-y: auto;
  max-height: 100vh;
}

.student-profile-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 0.85rem;
  cursor: pointer;
}

.avatar-container:hover .photo-upload-overlay {
  opacity: 1;
}

.photo-upload-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(0, 26, 58, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 70px;
  border-bottom-right-radius: 70px;
  opacity: 0;
  transition: opacity 0.2s;
}

.student-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4.5px solid var(--aggie-gold);
  box-shadow: 0 0 24px rgba(253, 185, 39, 0.6);
  transition: transform 0.25s ease;
}

.student-photo:hover {
  transform: scale(1.04);
}

.status-indicator {
  position: absolute;
  bottom: 6px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid var(--sidebar-bg);
}

.student-name-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.student-major-sub {
  font-size: 0.82rem;
  color: var(--aggie-gold);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.student-banner-id {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.85rem;
}

.student-badges-row {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.badge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.badge-pill.gold {
  background: rgba(253, 185, 39, 0.2);
  color: var(--aggie-gold);
  border: 1px solid rgba(253, 185, 39, 0.4);
}

.badge-pill.green {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.nav-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(135deg, var(--aggie-blue), #003366);
  color: #ffffff;
  border-left: 4px solid var(--aggie-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Curated Advisory Team Cards */
.advisory-team-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faculty-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.faculty-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--aggie-gold);
  transform: translateX(4px);
}

.faculty-avatar-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--aggie-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--aggie-gold);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.faculty-avatar-circle.gold { background: var(--aggie-gold-dark); }
.faculty-avatar-circle.blue { background: #0284c7; }

.faculty-card-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #ffffff;
  line-height: 1.2;
}

.faculty-card-title {
  font-size: 0.72rem;
  color: var(--aggie-gold);
  font-weight: 600;
}

/* --- CENTER CANVAS --- */
.center-canvas {
  padding: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  min-width: 0;
}

.emma-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #001a3a, #004684, #005599, #004684, #001a3a);
  background-size: 200% 200%;
  animation: headerGradient 10s ease infinite;
  border-radius: var(--radius-lg);
  border-bottom: 4px solid var(--aggie-gold);
  padding: 1.15rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

@keyframes headerGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-ncat-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.banner-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
}

.banner-institution {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--aggie-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
}

.banner-subtext {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.isla-greeting-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--aggie-blue);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}

.isla-avatar-pulse { position: relative; flex-shrink: 0; }

.isla-head-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--aggie-gold);
  box-shadow: 0 0 16px rgba(253, 185, 39, 0.35);
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--aggie-gold);
  animation: pulseGlow 2s infinite;
  opacity: 0.6;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(1); opacity: 0.8; }
}

.isla-dialogue-box { flex: 1; }

.isla-dialogue-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.isla-tag {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--aggie-blue);
  letter-spacing: 0.1em;
  background: var(--status-info-bg);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.isla-status-chip {
  font-size: 0.72rem;
  color: var(--status-complete);
  font-weight: 700;
}

.isla-dialogue-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--aggie-blue);
}

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--aggie-blue);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Course Cards --- */
.curriculum-board {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.year-section {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.year-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--aggie-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.6rem;
}

.year-header::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 20px;
  background: var(--aggie-gold);
  border-radius: 4px;
}

.semesters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.semester-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--aggie-gold);
  padding-bottom: 0.35rem;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--aggie-blue);
}

.course-card.type-core { border-left: 5px solid var(--aggie-blue); }
.course-card.type-elective {
  border-left: 5px solid #8b5cf6;
  background: linear-gradient(to right, #faf5ff, #ffffff);
}
.course-card.is-gened-card {
  border-left: 5px solid var(--aggie-gold) !important;
  background: linear-gradient(to right, rgba(253, 184, 39, 0.08), #ffffff);
}
.course-card.is-gened-card:hover {
  border-color: var(--aggie-gold) !important;
  box-shadow: 0 8px 22px rgba(253, 184, 39, 0.25);
}

.course-header { display: flex; justify-content: space-between; align-items: center; }
.course-id { font-size: 0.85rem; font-weight: 800; color: var(--aggie-blue); }
.course-credits {
  font-size: 0.75rem;
  background: var(--surface-bg);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 700;
  border: 1px solid var(--border);
}

.course-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.course-status { display: flex; align-items: center; justify-content: space-between; margin-top: 0.35rem; }

.grade-badge { font-size: 0.75rem; font-weight: 800; padding: 0.15rem 0.65rem; border-radius: 20px; }
.grade-a, .grade-a- { background: var(--status-complete-bg); color: var(--status-complete); border: 1px solid rgba(5, 150, 105, 0.3); }
.grade-b, .grade-b\+ { background: var(--status-info-bg); color: var(--status-info); border: 1px solid rgba(37, 99, 235, 0.3); }
.grade-ip { background: var(--status-ip-bg); color: var(--status-ip); border: 1px solid rgba(217, 119, 6, 0.3); }

.ecosystem-link {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}
.ecosystem-link svg { width: 13px; height: 13px; }

/* --- RIGHT PANEL: Modular ISLA Engine --- */
.right-panel {
  background: var(--surface-card);
  border-left: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100vh;
  min-width: 0;
}

.isla-panel-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.isla-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--aggie-gold);
}

.isla-gauge-card {
  background: var(--surface-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.gauge-title-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.gauge-pct { color: var(--aggie-blue); font-weight: 900; }

.gauge-track {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  background: var(--aggie-blue);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.adjacent-cert-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.45rem;
  cursor: pointer;
  transition: all 0.2s;
}

.achievement-badge-card {
  background: var(--surface-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.85rem;
  text-align: center;
  transition: all 0.25s;
}

.achievement-badge-card:hover {
  transform: translateY(-3px);
  border-color: var(--aggie-gold);
  box-shadow: var(--shadow-sm);
}

.badge-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(253, 185, 39, 0.2);
  color: var(--aggie-blue);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem auto;
}

.badge-icon-circle.green {
  background: rgba(16, 185, 129, 0.15);
}

.badge-icon-circle.gold {
  background: rgba(253, 185, 39, 0.25);
}

.badge-icon-circle.blue {
  background: rgba(0, 70, 132, 0.15);
}

.badge-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--aggie-blue);
  margin-bottom: 0.2rem;
}

.badge-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.proactive-match-box {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(253, 185, 39, 0.15), rgba(0, 70, 132, 0.08));
  border: 1.5px solid var(--aggie-gold);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}

/* SPA Views */
.view { display: none; animation: fadeIn 0.25s ease-in-out; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.view-title { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 900; margin-bottom: 1.5rem; color: var(--aggie-blue); }

.btn-primary {
  background: linear-gradient(135deg, var(--aggie-blue), #003366);
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--aggie-blue-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dashboard-widget {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}

.progress-bar-container {
  width: 100%; height: 12px; background: var(--surface-bg); border-radius: 10px; margin: 1rem 0; overflow: hidden; border: 1px solid var(--border);
}
.progress-bar { height: 100%; background: var(--status-complete); border-radius: 10px; }
.progress-text { font-size: 0.88rem; color: var(--status-complete); font-weight: 700; }

.scholarship-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.scholarship-card { background: var(--surface-card); border: 1px solid var(--border); border-top: 4px solid var(--aggie-gold); border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.scholarship-card h4 { font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--aggie-blue); font-weight: 800; }
.scholarship-card p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1.25rem; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.42rem; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--aggie-gold); border: 3px solid var(--surface-card); box-shadow: var(--shadow-sm); }
.timeline-date { font-size: 0.85rem; font-weight: 800; color: var(--aggie-blue); text-transform: uppercase; margin-bottom: 0.35rem; }
.timeline-content { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.timeline-content h4 { color: var(--text-primary); font-size: 1.15rem; margin-bottom: 0.35rem; font-weight: 800; }
.timeline-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* Login & Landing Page Overlays */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #061120;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 70, 132, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(253, 185, 39, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(0, 70, 132, 0.3) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
}

.login-card { background: #ffffff; border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 480px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); color: var(--text-primary); }

/* ─── Executive Landing Page System ─── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(6, 17, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(253, 185, 39, 0.3);
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.landing-nav-logo {
  height: 48px;
  width: auto;
}

.landing-nav-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
}

.landing-nav-title-group {
  display: flex;
  flex-direction: column;
}

.landing-nav-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.1;
}

.landing-nav-title span {
  color: var(--aggie-gold);
}

.landing-nav-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.landing-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.landing-nav-link:hover {
  color: var(--aggie-gold);
}

.landing-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-landing-sso {
  background: linear-gradient(135deg, var(--aggie-blue), #002b52);
  color: #ffffff;
  border: 1.5px solid rgba(253, 185, 39, 0.4);
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 70, 132, 0.4);
}

.btn-landing-sso:hover {
  background: linear-gradient(135deg, #0056a3, var(--aggie-blue));
  border-color: var(--aggie-gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(253, 185, 39, 0.3);
}

/* ─── Hero Section ─── */
.landing-hero {
  position: relative;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(253, 185, 39, 0.12);
  border: 1px solid rgba(253, 185, 39, 0.35);
  color: var(--aggie-gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  max-width: 980px;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-headline .text-gold-gradient {
  background: linear-gradient(135deg, #fcd34d 0%, #FDB927 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #94a3b8;
  max-width: 840px;
  line-height: 1.65;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1080px;
  background: rgba(11, 24, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--aggie-gold);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

/* ─── Dual Portal Login Doors ─── */
.landing-portals-section {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--aggie-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

.portals-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.portal-entry-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 29, 56, 0.92) 0%, rgba(8, 18, 36, 0.98) 100%);
  border-radius: 24px;
  border: 2px solid rgba(253, 185, 39, 0.25);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.portal-entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.portal-entry-card.student-portal::before {
  background: linear-gradient(90deg, #004684, var(--aggie-gold));
}

.portal-entry-card.faculty-portal::before {
  background: linear-gradient(90deg, var(--aggie-gold), #b45309);
}

.portal-entry-card:hover {
  transform: translateY(-6px);
  border-color: var(--aggie-gold);
  box-shadow: 0 28px 65px rgba(253, 185, 39, 0.18);
}

.portal-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.portal-entry-card.student-portal .portal-top-badge {
  background: rgba(0, 70, 132, 0.4);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.portal-entry-card.faculty-portal .portal-top-badge {
  background: rgba(253, 185, 39, 0.15);
  color: var(--aggie-gold);
  border: 1px solid rgba(253, 185, 39, 0.4);
}

.portal-persona-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.portal-persona-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--aggie-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.portal-persona-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.portal-persona-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--aggie-gold);
  margin-bottom: 0.2rem;
}

.portal-persona-id {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.portal-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.portal-feature-item strong {
  color: #ffffff;
}

.portal-feature-icon {
  width: 20px;
  height: 20px;
  color: var(--aggie-gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.portal-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
}

.btn-portal-sso {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(135deg, #004684, #002d57);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-portal-sso:hover {
  background: linear-gradient(135deg, #0056a3, #003668);
  border-color: var(--aggie-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 70, 132, 0.45);
}

.btn-portal-demo {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(253, 185, 39, 0.12);
  border: 1.5px solid var(--aggie-gold);
  color: var(--aggie-gold);
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-portal-demo:hover {
  background: var(--aggie-gold);
  color: #061120;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(253, 185, 39, 0.35);
}

/* ─── 4 Sovereign Pillars Showcase ─── */
.landing-pillars-section {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 4.5rem;
}

.pillars-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-showcase-card {
  background: rgba(14, 28, 54, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.pillar-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 185, 39, 0.6);
  background: rgba(18, 35, 68, 0.9);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.pillar-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 1.25rem;
}

.pillar-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--aggie-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pillar-code-badge {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--aggie-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.pillar-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pillar-stat-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar-stat-pill span {
  color: var(--aggie-gold);
  font-weight: 800;
}

/* ─── Trim-Tab Strategic Imperative Banner ─── */
.landing-trim-tab-section {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 4.5rem;
}

.trim-tab-box {
  background: linear-gradient(135deg, rgba(0, 70, 132, 0.85), rgba(6, 17, 32, 0.95));
  border: 2px solid rgba(253, 185, 39, 0.35);
  border-radius: 24px;
  padding: 2.75rem 3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.trim-tab-logo {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4));
}

.trim-tab-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.trim-tab-content h3 span {
  color: var(--aggie-gold);
}

.trim-tab-content p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.trim-tab-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 220px;
}

.trim-metric-badge {
  background: rgba(6, 17, 32, 0.7);
  border: 1px solid rgba(253, 185, 39, 0.3);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.trim-metric-badge .m-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--aggie-gold);
}

.trim-metric-badge .m-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ─── Institutional Landing Footer ─── */
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 10, 20, 0.98);
  padding: 3rem 2rem 2.5rem;
  width: 100%;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 42px;
  width: auto;
}

.footer-text {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-right a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--aggie-gold);
}

/* ─── Responsive Media Queries ─── */
@media (max-width: 1024px) {
  .portals-dual-grid {
    grid-template-columns: 1fr;
  }
  .pillars-quad-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .trim-tab-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .trim-tab-logo {
    margin: 0 auto;
  }
  .trim-tab-metrics {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 1rem 1.5rem;
  }
  .landing-nav-links {
    display: none;
  }
  .pillars-quad-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-ribbon {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


.module-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.module-modal-overlay.hidden { display: none !important; }
.module-modal-container { width: 100%; max-width: 1400px; height: 92vh; background: #ffffff; border-radius: var(--radius-lg); border: 3px solid var(--aggie-gold); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; overflow: hidden; }
.module-modal-header { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #001a3a, #004684); color: #ffffff; padding: 1rem 1.75rem; border-bottom: 2px solid var(--aggie-gold); }
.module-header-left { display: flex; align-items: center; gap: 1rem; }
.module-mascot-head { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--aggie-gold); }
.module-title-text { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 900; color: #ffffff; }
.module-sub-text { font-size: 0.82rem; color: var(--aggie-gold); font-weight: 700; }
.btn-close-module { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff; padding: 0.6rem 1.25rem; border-radius: 30px; font-weight: 800; font-size: 0.88rem; cursor: pointer; transition: all 0.2s; }
.btn-close-module:hover { background: #ef4444; border-color: #ef4444; }
.module-modal-body { flex: 1; width: 100%; height: 100%; background: #f8fafc; }
.module-iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   PACE Journey Map — EMMA-Style Phase Grid System
   Pathway to Academic & Career Excellence
   ============================================================ */

/* ── Extended Design Tokens ── */
:root {
  --theme-primary-rgb: 0, 70, 132;
  --theme-secondary-rgb: 253, 185, 39;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-blur: blur(16px);
  --glass-blur-strong: blur(24px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --cat-purpose: #2563EB;
  --cat-purpose-rgb: 37, 99, 235;
  --cat-communities: #059669;
  --cat-communities-rgb: 5, 150, 105;
  --cat-localglobal: #D97706;
  --cat-localglobal-rgb: 217, 119, 6;
  --cat-identity: #7C3AED;
  --cat-identity-rgb: 124, 58, 237;
}

/* ── Confetti Canvas ── */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ── Toast Container ── */
.emma-toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emma-toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toastSlideIn 0.35s var(--ease-out-expo);
  max-width: 340px;
}

.emma-toast.success { background: linear-gradient(135deg, #059669, #10b981); }
.emma-toast.info    { background: linear-gradient(135deg, var(--aggie-blue), #0369a1); }
.emma-toast.warning { background: linear-gradient(135deg, #d97706, #f59e0b); }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Progress Hero Bar ── */
.jm-progress-hero {
  background: linear-gradient(135deg, var(--aggie-blue-deep), var(--aggie-blue));
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(253, 185, 39, 0.25);
  transition: border-color 0.3s;
}
.jm-progress-hero:hover { border-color: var(--aggie-gold); }

/* ── Transfer Credit Pre-Populated Stamp & Audit Banner in EMMA ── */
.jm-transfer-audit-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-left: 5px solid #059669;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.08);
}
@media (max-width: 860px) {
  .jm-transfer-audit-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.jm-transfer-audit-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.jm-transfer-status-badge {
  font-size: 0.68rem;
  font-weight: 900;
  color: #065f46;
  background: #d1fae5;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  letter-spacing: 0.04em;
}
.jm-transfer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--aggie-blue);
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}
.jm-transfer-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
.btn-transfer-link {
  background: linear-gradient(135deg, var(--aggie-blue), #002d57);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-transfer-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 70, 132, 0.2);
}
.jm-transfer-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.jm-progress-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.jm-progress-hero-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aggie-gold);
}
.jm-progress-hero-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.jm-progress-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.jm-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aggie-gold), #FFD700, var(--aggie-gold));
  background-size: 200% 100%;
  animation: shimmerBar 2s ease-in-out infinite;
  border-radius: 99px;
  transition: width 0.6s var(--ease-out-expo);
  position: relative;
}
@keyframes shimmerBar {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.jm-progress-label {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  display: block;
  margin-top: 0.25rem;
}

.jm-career-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.jm-career-stat { text-align: center; }
.jm-career-value {
  font-size: 1rem;
  font-weight: 900;
  color: var(--aggie-gold);
  display: block;
}
.jm-career-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.jm-career-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* ── Category Legend Strip ── */
.jm-category-legend {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.jm-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.jm-legend-item:hover { background: rgba(0,0,0,0.04); }
.jm-legend-item.active { background: rgba(0,0,0,0.06); font-weight: 800; color: var(--text-primary); }
.jm-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Phase Grid (4-column) ── */
.jm-phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── Phase Column ── */
.jm-phase-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: phaseSlideIn 0.6s var(--ease-out-expo) both;
}
.jm-phase-column:nth-child(1) { animation-delay: 0ms; }
.jm-phase-column:nth-child(2) { animation-delay: 100ms; }
.jm-phase-column:nth-child(3) { animation-delay: 200ms; }
.jm-phase-column:nth-child(4) { animation-delay: 300ms; }

@keyframes phaseSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Phase Header ── */
.jm-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(0,70,132,0.08), rgba(0,70,132,0.03));
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--aggie-blue);
}
.jm-phase-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--aggie-blue);
}
.jm-phase-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  font-weight: 700;
}

/* ── Phase Progress Ring ── */
.jm-phase-ring {
  width: 42px; height: 42px;
  position: relative;
  flex-shrink: 0;
}
.jm-phase-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.jm-phase-ring-bg {
  fill: none;
  stroke: rgba(0,70,132,0.1);
  stroke-width: 4;
}
.jm-phase-ring-fill {
  fill: none;
  stroke: var(--aggie-blue);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease-out-expo);
}
.jm-phase-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--aggie-blue);
}

/* ── Milestone Card ── */
.jm-milestone-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-left: 5px solid var(--aggie-blue);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal),
              border-left-color var(--duration-normal);
  user-select: none;
  position: relative;
  animation: cardSlideIn 0.4s var(--ease-out-expo) both;
}
.jm-milestone-card:nth-child(2) { animation-delay: 50ms; }
.jm-milestone-card:nth-child(3) { animation-delay: 100ms; }
.jm-milestone-card:nth-child(4) { animation-delay: 150ms; }
.jm-milestone-card:nth-child(5) { animation-delay: 200ms; }
.jm-milestone-card:nth-child(6) { animation-delay: 250ms; }
.jm-milestone-card:nth-child(7) { animation-delay: 300ms; }
.jm-milestone-card:nth-child(8) { animation-delay: 350ms; }

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.jm-milestone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.jm-milestone-card.checked {
  border-left-color: var(--aggie-gold) !important;
  box-shadow: 0 8px 24px rgba(253, 185, 39, 0.15);
}
.jm-milestone-card.just-checked {
  animation: milestoneCheck 0.5s var(--ease-spring);
}

@keyframes milestoneCheck {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.06); }
  50%  { transform: scale(0.97); }
  70%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ── Milestone Checkbox ── */
.jm-checkbox {
  width: 22px; height: 22px; min-width: 22px;
  border-radius: 6px;
  border: 2px solid rgba(0,70,132,0.3);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--duration-fast);
  cursor: pointer;
}
.jm-checkbox::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 150ms, transform 150ms var(--ease-spring);
}
.jm-milestone-card.checked .jm-checkbox {
  background: var(--aggie-gold);
  border-color: var(--aggie-gold);
}
.jm-milestone-card.checked .jm-checkbox::after {
  opacity: 1;
  transform: scale(1);
}

/* ── Milestone Content ── */
.jm-milestone-content { flex: 1; min-width: 0; }
.jm-milestone-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  display: block;
  margin-bottom: 0.15rem;
}
.jm-milestone-course-ref {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.35rem;
}
.jm-milestone-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

/* ── Category Badge ── */
.jm-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
}
.jm-cat-badge[data-category="Purpose"]      { background: rgba(37,99,235,0.1);  color: var(--cat-purpose); }
.jm-cat-badge[data-category="Communities"]   { background: rgba(5,150,105,0.1);  color: var(--cat-communities); }
.jm-cat-badge[data-category="LocalGlobal"]   { background: rgba(217,119,6,0.1);  color: var(--cat-localglobal); }
.jm-cat-badge[data-category="Identity"]      { background: rgba(124,58,237,0.1); color: var(--cat-identity); }

.jm-credit-badge {
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border-radius: 9999px;
}

/* ── Milestone Detail Modal ── */
.jm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.jm-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.jm-modal-content {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  animation: modalSlideUp 0.35s var(--ease-out-expo);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.jm-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-bg);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.jm-modal-close:hover {
  background: var(--aggie-blue);
  color: #fff;
  border-color: var(--aggie-blue);
}

.jm-modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.jm-detail-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.jm-detail-section:last-child { border-bottom: none; }

.jm-detail-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.jm-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}
.jm-detail-info-item {
  background: var(--surface-bg);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
}
.jm-detail-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.jm-detail-info-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.jm-detail-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.jm-detail-objectives-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.jm-detail-objective-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.5rem 0.65rem;
  background: var(--surface-bg);
  border-radius: var(--radius-sm);
}
.jm-detail-objective-area {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--aggie-blue);
  background: rgba(0,70,132,0.08);
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.jm-detail-objective-text {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.jm-detail-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.jm-detail-skill-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(0,70,132,0.06);
  color: var(--aggie-blue);
  border: 1px solid rgba(0,70,132,0.12);
}

.jm-detail-standards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.jm-detail-standard-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(253,185,39,0.1);
  color: var(--aggie-gold-dark);
  border: 1px solid rgba(253,185,39,0.2);
}

/* ── Phase Grid Responsive ── */
@media (max-width: 1200px) {
  .jm-phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .jm-phase-grid {
    grid-template-columns: 1fr;
  }
  .jm-career-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .jm-career-divider { display: none; }
}

/* ── Reduced Motion ── */
/* ============================================================
   PACE Journey Map — EMMA-Style Phase Grid CSS
   ============================================================ */

/* ── Toast ── */
.emma-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.emma-toast {
  background: var(--aggie-blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  animation: toastSlideIn 0.3s ease-out;
  transition: all 0.3s ease;
}
.emma-toast.success { background: #059669; }

@keyframes toastSlideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Progress Hero Bar ── */
.jm-progress-hero {
  background: linear-gradient(135deg, #001a3a, #004684);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 2px solid var(--aggie-gold);
  color: #fff;
}
.jm-progress-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.jm-progress-hero-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
}
.jm-progress-hero-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--aggie-gold);
}
.jm-progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.jm-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aggie-gold), #FFD700);
  border-radius: 99px;
  transition: width 0.6s var(--ease-out-expo, ease-out);
}
.jm-progress-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--aggie-gold);
}
.jm-career-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  justify-content: center;
}
.jm-career-stat { text-align: center; }
.jm-career-value { font-size: 0.95rem; font-weight: 900; color: var(--aggie-gold); display: block; }
.jm-career-label { font-size: 0.62rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.jm-career-divider { width: 1px; background: rgba(255,255,255,0.15); }

/* ── Category Legend ── */
.jm-category-legend {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.jm-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: opacity 0.2s;
}
.jm-legend-item:not(.active) { opacity: 0.35; }
.jm-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Phase Grid ── */
.jm-phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── Phase Column ── */
.jm-phase-column {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: phaseSlideIn 0.5s ease-out both;
}
.jm-phase-column:nth-child(2) { animation-delay: 0.08s; }
.jm-phase-column:nth-child(3) { animation-delay: 0.16s; }
.jm-phase-column:nth-child(4) { animation-delay: 0.24s; }

@keyframes phaseSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Phase Header ── */
.jm-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0.25rem;
}
.jm-phase-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--aggie-blue);
}
.jm-phase-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ── SVG Progress Ring ── */
.jm-phase-ring {
  width: 42px;
  height: 42px;
  position: relative;
  flex-shrink: 0;
}
.jm-phase-ring svg { width: 100%; height: 100%; }
.jm-phase-ring-bg {
  fill: none;
  stroke: rgba(0,70,132,0.1);
  stroke-width: 4;
}
.jm-phase-ring-fill {
  fill: none;
  stroke: var(--aggie-gold);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.6s var(--ease-out-expo, ease-out);
}
.jm-phase-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--aggie-blue);
}

/* ── Milestone Card ── */
.jm-milestone-card {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 4px solid var(--aggie-blue);
  background: var(--surface-bg);
  cursor: pointer;
  transition: all 0.2s;
  animation: cardSlideIn 0.3s ease-out both;
}
.jm-milestone-card:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.jm-milestone-card.checked {
  background: rgba(253,185,39,0.04);
  border-color: rgba(253,185,39,0.15);
  border-left-color: var(--aggie-gold);
}
.jm-milestone-card.just-checked {
  animation: milestoneCheck 0.4s ease;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes milestoneCheck {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ── Checkbox ── */
.jm-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 2px;
}
.jm-checkbox:hover { border-color: var(--aggie-blue); }
.jm-milestone-card.checked .jm-checkbox {
  background: var(--aggie-gold);
  border-color: var(--aggie-gold);
}
.jm-milestone-card.checked .jm-checkbox::after {
  content: '✓';
  color: #1a1a2e;
  font-size: 0.72rem;
  font-weight: 900;
}

/* ── Milestone Content ── */
.jm-milestone-content { flex: 1; min-width: 0; }
.jm-milestone-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.3;
}
.jm-milestone-card.checked .jm-milestone-label {
  text-decoration: line-through;
  opacity: 0.6;
}
.jm-milestone-course-ref {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.15rem;
}
.jm-milestone-meta {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

/* ── Category Badge ── */
.jm-cat-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.jm-cat-badge[data-category="Purpose"] { background: rgba(37,99,235,0.1); color: #2563EB; }
.jm-cat-badge[data-category="Communities"] { background: rgba(5,150,105,0.1); color: #059669; }
.jm-cat-badge[data-category="LocalGlobal"] { background: rgba(217,119,6,0.1); color: #D97706; }
.jm-cat-badge[data-category="Identity"] { background: rgba(124,58,237,0.1); color: #7C3AED; }

.jm-credit-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
}

/* ── Detail Modal ── */
.jm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.jm-modal-overlay.active { display: flex; }

.jm-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalSlideUp 0.3s ease-out;
  position: relative;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.jm-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
}
.jm-modal-close:hover { color: var(--text-primary); }

.jm-modal-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin-bottom: 1rem;
  padding-right: 2rem;
}

/* ── Detail Modal Sections ── */
.jm-detail-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.jm-detail-section:last-child { border-bottom: none; }

.jm-detail-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.jm-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.jm-detail-info-item {
  background: var(--surface-bg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.jm-detail-info-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.jm-detail-info-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--aggie-blue);
  margin-top: 0.15rem;
}
.jm-detail-description {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.jm-detail-objectives-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.jm-detail-objective-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.jm-detail-objective-area {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--aggie-blue);
  background: rgba(0,70,132,0.06);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.jm-detail-objective-text {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.4;
}
.jm-detail-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.jm-detail-skill-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(0,70,132,0.06);
  color: var(--aggie-blue);
  border: 1px solid rgba(0,70,132,0.1);
}
.jm-detail-standards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.jm-detail-standard-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(253,185,39,0.1);
  color: var(--aggie-gold-dark);
  border: 1px solid rgba(253,185,39,0.2);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .jm-phase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .jm-phase-grid { grid-template-columns: 1fr; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .jm-phase-column,
  .jm-milestone-card,
  .jm-progress-bar-fill,
  .jm-modal-content,
  .emma-toast {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PACE Career Discovery Assessment — UI Styles
   ============================================================ */

.ca-wrapper { max-width: 100%; }

.ca-header-banner {
  background: linear-gradient(135deg, #001a3a, #004684);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--aggie-gold);
  color: #fff;
}

/* ── Provost Major Pivot & Academic Rescue Concierge ── */
.ca-pivot-concierge {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(0, 70, 132, 0.2);
  box-shadow: 0 4px 18px rgba(0, 45, 87, 0.08);
}
.ca-pivot-header {
  margin-bottom: 1.15rem;
}
.ca-pivot-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #b45309;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ca-pivot-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin: 0 0 0.35rem 0;
  font-family: 'Montserrat', sans-serif;
}
.ca-pivot-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}
.ca-pivot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ca-pivot-chip {
  background: var(--surface-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--aggie-blue);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ca-pivot-chip:hover {
  background: #e0f2fe;
  border-color: var(--aggie-blue);
}
.ca-pivot-chip.active {
  background: var(--aggie-blue);
  color: #ffffff;
  border-color: var(--aggie-blue);
  box-shadow: 0 2px 6px rgba(0, 70, 132, 0.25);
}
.ca-pivot-search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.ca-pivot-search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.ca-pivot-search-bar input:focus {
  outline: none;
  border-color: var(--aggie-blue);
  box-shadow: 0 0 0 3px rgba(0, 70, 132, 0.15);
}
.btn-pivot-ask {
  background: linear-gradient(135deg, var(--aggie-gold), #d49514);
  color: #002d57;
  font-weight: 800;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  transition: transform 0.15s ease;
}
.btn-pivot-ask:hover {
  transform: translateY(-1px);
}
.ca-pivot-results {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.ca-pivot-banner-callout {
  background: #eff6ff;
  border-left: 4px solid var(--aggie-blue);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.ca-pivot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.ca-pivot-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ca-pivot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 70, 132, 0.1);
  border-color: rgba(0, 70, 132, 0.3);
}
.ca-pivot-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.ca-pivot-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.ca-pivot-overlap {
  font-size: 0.75rem;
  font-weight: 800;
  color: #059669;
  background: #d1fae5;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ca-pivot-major-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--aggie-blue);
  margin: 0 0 0.25rem 0;
}
.ca-pivot-dept {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.ca-pivot-careers-list {
  font-size: 0.78rem;
  color: #334155;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.ca-pivot-salary-strip {
  display: flex;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.76rem;
}
.ca-pivot-salary-val {
  font-weight: 900;
  color: var(--aggie-blue);
}
.ca-pivot-advantage {
  font-size: 0.75rem;
  color: #475569;
  background: #fffbeb;
  border-left: 3px solid var(--aggie-gold);
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}
.ca-btn-adopt-trajectory {
  width: 100%;
  background: var(--aggie-blue);
  color: #ffffff;
  border: none;
  padding: 0.55rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s;
}
.ca-btn-adopt-trajectory:hover {
  background: #002d57;
}
.ca-pivot-footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.ca-pivot-stats-group {
  display: flex;
  gap: 1.25rem;
}
.ca-pivot-stat-box {
  display: flex;
  flex-direction: column;
}
.ca-pivot-stat-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--aggie-blue);
}
.ca-pivot-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
}
/* ── Visual Transcript Audit & Degree Slotting Simulator ── */
.ca-transcript-suite {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(0, 70, 132, 0.2);
  box-shadow: 0 4px 18px rgba(0, 45, 87, 0.08);
}
.ca-transcript-header-group {
  margin-bottom: 1.25rem;
}
.ca-transcript-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--aggie-blue);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ca-transcript-main-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin: 0 0 0.35rem 0;
  font-family: 'Montserrat', sans-serif;
}
.ca-transcript-subtext {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  line-height: 1.45;
}
.ca-preset-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.ca-preset-toolbar-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
}
.ca-preset-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ca-preset-pill:hover {
  background: #e0f2fe;
  border-color: var(--aggie-blue);
  color: var(--aggie-blue);
}
.ca-preset-pill.active {
  background: var(--aggie-blue);
  color: #ffffff;
  border-color: var(--aggie-blue);
  box-shadow: 0 2px 6px rgba(0, 70, 132, 0.2);
}
.ca-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .ca-split-grid {
    grid-template-columns: 1fr;
  }
}
.ca-split-pane {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  border: 1px solid var(--border);
}
.ca-pane-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.ca-pane-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--aggie-blue);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ca-transcript-meta-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.ca-course-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.ca-course-row {
  background: #ffffff;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  transition: border-color 0.15s;
}
.ca-course-row:hover {
  border-color: var(--aggie-blue);
}
.ca-course-left {
  display: flex;
  flex-direction: column;
}
.ca-course-code {
  font-weight: 800;
  color: var(--aggie-blue);
}
.ca-course-name {
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.ca-course-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ca-grade-pill {
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #d1fae5;
  color: #065f46;
}
.ca-credits-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.ca-degree-selector-wrap {
  margin-bottom: 0.85rem;
}
.ca-degree-selector-wrap label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}
.ca-degree-dropdown {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  border: 2px solid var(--aggie-blue);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--aggie-blue);
  background: #ffffff;
}
.ca-efficiency-banner {
  background: #ffffff;
  border-radius: 6px;
  padding: 0.85rem;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ca-eff-score-box {
  display: flex;
  flex-direction: column;
}
.ca-eff-score {
  font-size: 1.4rem;
  font-weight: 900;
  color: #059669;
}
.ca-eff-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.ca-eff-tags {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
}
.ca-eff-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--aggie-blue);
  background: #e0f2fe;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.ca-mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
}
.ca-mapping-table th {
  background: #f1f5f9;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-weight: 800;
  color: var(--aggie-blue);
  border-bottom: 1px solid var(--border);
}
.ca-mapping-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
  color: #1e293b;
}
.ca-map-type {
  font-weight: 700;
  color: #475569;
}
.ca-map-status-pill {
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
}
.ca-map-status-pill.elective {
  background: #fef3c7;
  color: #92400e;
}
.ca-slot-actions {
  display: flex;
  gap: 0.6rem;
}
.btn-slot-adopt {
  flex: 1;
  background: linear-gradient(135deg, var(--aggie-blue), #002d57);
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s;
}
.btn-slot-adopt:hover {
  transform: translateY(-1px);
}
.btn-slot-export {
  background: #ffffff;
  color: var(--aggie-blue);
  border: 1px solid var(--aggie-blue);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}
.btn-slot-export:hover {
  background: #f0f7ff;
}

.ca-step-container {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ── Step Progress Dots ── */
.ca-step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.ca-step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.3s;
}
.ca-step-dot.active {
  background: var(--aggie-blue);
  border-color: var(--aggie-blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,70,132,0.2);
}
.ca-step-dot.done {
  background: var(--status-complete);
  border-color: var(--status-complete);
  color: #fff;
}
.ca-step-line {
  width: 40px;
  height: 3px;
  background: var(--border);
  transition: background 0.3s;
}
.ca-step-line.done { background: var(--status-complete); }

/* ── Step Header ── */
.ca-step-header { text-align: center; margin-bottom: 2rem; }
.ca-step-number {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.ca-step-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin-bottom: 0.35rem;
}
.ca-step-subtitle {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.ca-step-instruction {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ── Option Cards (Single Select) ── */
.ca-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.ca-option-card {
  background: var(--surface-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}
.ca-option-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--aggie-blue);
}
.ca-option-card.selected {
  border-color: var(--aggie-gold);
  background: rgba(253,185,39,0.06);
  box-shadow: 0 0 0 3px rgba(253,185,39,0.2), var(--shadow-md);
}
.ca-option-icon { font-size: 2.2rem; margin-bottom: 0.65rem; }
.ca-option-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.ca-option-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ── Multi-Select Chips ── */
.ca-selection-counter {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--aggie-blue);
  margin-bottom: 1rem;
}
.ca-options-grid.ca-multi {
  grid-template-columns: repeat(4, 1fr);
}
.ca-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--surface-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 700;
}
.ca-chip:hover { border-color: var(--aggie-blue); }
.ca-chip.selected {
  border-color: var(--aggie-gold);
  background: rgba(253,185,39,0.06);
  box-shadow: 0 0 0 2px rgba(253,185,39,0.2);
}
.ca-chip-icon { font-size: 1.2rem; }
.ca-chip-label { color: var(--text-primary); }

/* ── Sliders ── */
.ca-sliders-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ca-slider-row {
  background: var(--surface-bg);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.ca-slider-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.ca-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ca-slider-end {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.ca-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  outline: none;
}
.ca-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--aggie-blue);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}
.ca-slider-value {
  width: 28px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--aggie-blue);
}

/* ── Navigation Buttons ── */
.ca-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.ca-btn-back {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ca-btn-back:hover { border-color: var(--aggie-blue); color: var(--aggie-blue); }

.ca-btn-next {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--aggie-blue), #002d57);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(0,70,132,0.3);
}
.ca-btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,70,132,0.4); }
.ca-btn-next.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Results Page ── */
.ca-results-header { text-align: center; margin-bottom: 2rem; }
.ca-results-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.ca-results-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin-bottom: 0.35rem;
}
.ca-results-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Score Dimensions Bar ── */
.ca-score-dimensions {
  background: var(--surface-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.ca-dim-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}
.ca-dim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.ca-dim-bar-wrap { display: flex; align-items: center; gap: 0.5rem; }
.ca-dim-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 100px;
}
.ca-dim-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.ca-dim-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aggie-blue), #0369a1);
  border-radius: 99px;
  transition: width 0.8s var(--ease-out-expo);
}

/* ── Match Cards ── */
.ca-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ca-match-card {
  background: var(--surface-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: all 0.25s;
}
.ca-match-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ca-match-card.top-match {
  border-color: var(--aggie-gold);
  box-shadow: 0 0 0 3px rgba(253,185,39,0.15), var(--shadow-md);
}
.ca-top-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, var(--aggie-gold), #FFD700);
  color: #1a1a2e;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(253,185,39,0.3);
}
.ca-match-rank {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.ca-match-fit-ring {
  width: 56px; height: 56px;
  position: relative;
  margin: 0 auto 0.75rem;
}
.ca-match-fit-ring svg {
  width: 100%; height: 100%;
}
.ca-match-fit-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--aggie-blue);
}
.ca-match-college-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}
.ca-match-program {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin-bottom: 0.15rem;
}
.ca-match-dept {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.ca-match-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.ca-match-careers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.ca-career-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(0,70,132,0.06);
  color: var(--aggie-blue);
  border: 1px solid rgba(0,70,132,0.1);
}
.ca-match-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.65rem;
}
.ca-match-stat { text-align: left; }
.ca-stat-value { font-size: 0.95rem; font-weight: 900; color: var(--aggie-blue); display: block; }
.ca-stat-label { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.ca-match-accreditation {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--status-complete);
  margin-bottom: 1rem;
}
.ca-match-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.ca-btn-deepdive {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--aggie-blue), #002d57);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ca-btn-deepdive:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,70,132,0.3); }
.ca-btn-secondary {
  padding: 0.6rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ca-btn-secondary:hover { border-color: var(--aggie-blue); color: var(--aggie-blue); }

/* ── Transcript Upload ── */
.ca-transcript-section {
  background: var(--surface-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.ca-transcript-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin-bottom: 0.35rem;
}
.ca-transcript-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}
.ca-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  margin-bottom: 1.5rem;
}
.ca-upload-zone:hover, .ca-upload-zone.dragover {
  border-color: var(--aggie-blue);
  background: rgba(0,70,132,0.03);
}
.ca-upload-icon { font-size: 2.5rem; margin-bottom: 0.65rem; }
.ca-upload-text { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.35rem; }
.ca-upload-or { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.65rem; }
.ca-upload-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--aggie-blue);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--aggie-blue);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ca-upload-btn:hover { background: var(--aggie-blue); color: #fff; }

/* ── Credit Mapping Table ── */
.ca-transcript-summary {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.ca-transcript-stat { text-align: center; }

.ca-credit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}
.ca-credit-table th {
  text-align: left;
  padding: 0.6rem 0.85rem;
  background: var(--aggie-blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ca-credit-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.ca-credit-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.ca-credit-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
}
.ca-credit-table tr:nth-child(even) td { background: var(--surface-bg); }
.ca-transfer-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.ca-transfer-badge.accepted { background: var(--status-complete-bg); color: var(--status-complete); }
.ca-transfer-badge.gened { background: var(--status-info-bg); color: var(--status-info); }
.ca-transfer-badge.review { background: var(--status-ip-bg); color: var(--status-ip); }

.ca-transcript-impact {
  background: rgba(253,185,39,0.08);
  border: 1px solid rgba(253,185,39,0.2);
  border-left: 4px solid var(--aggie-gold);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ── Results Footer ── */
.ca-results-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.ca-btn-apply {
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--aggie-gold), #FFD700);
  color: #1a1a2e;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.ca-btn-apply:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(253,185,39,0.4); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ca-options-grid { grid-template-columns: repeat(2, 1fr); }
  .ca-options-grid.ca-multi { grid-template-columns: repeat(2, 1fr); }
  .ca-dim-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ca-options-grid { grid-template-columns: 1fr; }
  .ca-options-grid.ca-multi { grid-template-columns: repeat(2, 1fr); }
  .ca-matches-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   DIGITAL CLASSROOM — NATIVE MODULE CSS
   ═══════════════════════════════════════════════════════════ */

/* ─── Command Center Hero ─── */
.cr-command-center {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.cr-command-left {
  background: linear-gradient(135deg, #001a3a, #004684);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.cr-command-right {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.cr-focus-badge {
  background: rgba(253, 185, 39, 0.1);
  border: 1px solid rgba(253, 185, 39, 0.3);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cr-stat-card { text-align: center; }
.cr-stat-icon { font-size: 1.8rem; margin-bottom: 0.15rem; }
.cr-stat-value { font-size: 2.2rem; font-weight: 900; color: var(--aggie-blue); }
.cr-stat-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); }
.cr-stat-sub { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.15rem; }
.cr-stat-divider { width: 1px; height: 60px; background: var(--border); }

/* ─── XP Bar ─── */
.cr-xp-bar {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}
.cr-xp-info { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.5rem; }
.cr-level-badge {
  background: var(--aggie-blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.cr-level-title { font-weight: 700; font-size: 0.82rem; color: var(--text-primary); }
.cr-xp-count { margin-left: auto; font-weight: 800; font-size: 0.82rem; color: var(--aggie-gold); }
.cr-xp-track {
  height: 8px;
  background: rgba(0,70,132,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.cr-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aggie-blue), var(--aggie-gold));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}
.cr-xp-next { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

/* ─── Filter Bar ─── */
.cr-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.cr-filter-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-filter-btn:hover { border-color: var(--aggie-blue); color: var(--aggie-blue); }
.cr-filter-btn.active {
  background: var(--aggie-blue);
  color: #fff;
  border-color: var(--aggie-blue);
}
.cr-course-count { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }

/* ─── Curriculum Grid ─── */
.cr-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.cr-course-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.cr-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--aggie-gold);
}
.cr-course-code { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.04em; margin-bottom: 0.15rem; }
.cr-course-year { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 0.5rem; }
.cr-course-title { font-size: 0.92rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.5rem; flex: 1; }
.cr-course-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.cr-module-count { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.cr-explore-link { font-size: 0.72rem; font-weight: 800; }

/* ─── Back Button ─── */
.cr-back-btn {
  background: none;
  border: none;
  color: var(--aggie-blue);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.cr-back-btn:hover { color: var(--aggie-gold); }

/* ─── Course Detail Header ─── */
.cr-course-header {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.cr-course-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.25rem; }
.cr-course-badges { display: flex; gap: 0.35rem; margin-bottom: 0.5rem; }
.cr-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cr-badge.blue { background: rgba(0,70,132,0.1); color: var(--aggie-blue); }
.cr-badge.gold { background: rgba(253,185,39,0.15); color: var(--aggie-gold-dark); }
.cr-badge.green { background: rgba(16,185,129,0.1); color: #059669; }
.cr-course-detail-title { font-size: 1.35rem; font-weight: 900; color: var(--text-primary); margin: 0; }
.cr-course-detail-subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
.cr-completion-ring { width: 64px; height: 64px; position: relative; flex-shrink: 0; }
.cr-completion-ring svg { width: 100%; height: 100%; }
.cr-completion-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--aggie-gold);
}
.cr-course-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.cr-info-item { display: flex; flex-direction: column; gap: 0.15rem; }
.cr-info-label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.04em; }
.cr-info-value { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }

/* ─── Section Card ─── */
.cr-section-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.cr-section-title { font-size: 0.92rem; font-weight: 800; color: var(--aggie-blue); margin-bottom: 1rem; }

/* ─── Books Grid ─── */
.cr-books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.cr-book-card {
  background: rgba(0,70,132,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cr-book-title { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.cr-book-author { font-size: 0.78rem; color: var(--text-secondary); }
.cr-book-isbn { font-size: 0.68rem; color: var(--text-muted); }

/* ─── Modules Grid ─── */
.cr-modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.cr-module-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-module-card:hover { border-color: var(--aggie-gold); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.cr-module-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.cr-module-week { font-size: 0.65rem; font-weight: 800; color: var(--aggie-blue); text-transform: uppercase; }
.cr-module-mode { font-size: 0.6rem; font-weight: 700; color: var(--aggie-gold-dark); background: rgba(253,185,39,0.1); padding: 0.1rem 0.4rem; border-radius: var(--radius-full); }
.cr-module-title { font-size: 0.85rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.25rem; }
.cr-module-topic { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.cr-module-chapter { font-size: 0.72rem; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.cr-module-progress { margin-top: 0.5rem; }
.cr-module-progress-track { height: 4px; background: rgba(0,70,132,0.06); border-radius: var(--radius-full); overflow: hidden; }
.cr-module-progress-fill { height: 100%; background: var(--aggie-gold); border-radius: var(--radius-full); transition: width 0.3s; }
.cr-module-progress-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

/* ─── Module Timeline (8-Step) ─── */
.cr-module-header-banner {
  background: linear-gradient(135deg, #001a3a, #004684);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.cr-module-week-label { font-size: 0.68rem; font-weight: 800; color: var(--aggie-gold); text-transform: uppercase; letter-spacing: 0.08em; }
.cr-module-view-title { font-size: 1.25rem; font-weight: 900; color: #fff; margin: 0.25rem 0; }
.cr-module-view-topic { font-size: 0.85rem; color: #94a3b8; margin: 0; }
.cr-module-chapter-ref { font-size: 0.75rem; color: var(--aggie-gold); display: block; margin-top: 0.35rem; }

.cr-timeline { display: flex; flex-direction: column; gap: 0.5rem; }
.cr-timeline-step {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
}
.cr-timeline-step.complete { border-left: 4px solid #059669; }
.cr-timeline-step.locked { opacity: 0.5; }
.cr-timeline-step.expanded { border-color: var(--aggie-blue); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.cr-step-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cr-step-header:hover { background: rgba(0,70,132,0.03); }
.cr-step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,70,132,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--aggie-blue);
}
.cr-timeline-step.complete .cr-step-indicator { background: #059669; }
.cr-step-check { color: #fff; font-size: 1rem; }
.cr-step-num { color: var(--aggie-blue); }
.cr-step-info { flex: 1; }
.cr-step-title { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); }
.cr-step-lock { font-size: 0.72rem; color: #ef4444; display: block; margin-top: 0.1rem; }
.cr-step-done { font-size: 0.72rem; color: #059669; display: block; margin-top: 0.1rem; }
.cr-step-toggle { font-size: 0.72rem; color: var(--text-muted); }

.cr-step-content {
  padding: 0.5rem 1.15rem 1.25rem;
  border-top: 1px solid var(--border);
}
.cr-step-inner { display: flex; flex-direction: column; gap: 1rem; }

/* ─── Complete Button ─── */
.cr-complete-btn {
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}
.cr-complete-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }

/* ─── Flashcard ─── */
.cr-flashcard-area { text-align: center; }
.cr-flashcard {
  width: 100%;
  max-width: 420px;
  height: 200px;
  margin: 0 auto 1rem;
  perspective: 1000px;
  cursor: pointer;
}
.cr-flashcard-front, .cr-flashcard-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  transition: transform 0.5s;
}
.cr-flashcard { position: relative; }
.cr-flashcard-front {
  background: linear-gradient(135deg, #001a3a, #004684);
  color: #fff;
}
.cr-flashcard-back {
  background: var(--surface-card);
  border: 2px solid var(--aggie-gold);
  transform: rotateY(180deg);
}
.cr-flashcard.flipped .cr-flashcard-front { transform: rotateY(180deg); }
.cr-flashcard.flipped .cr-flashcard-back { transform: rotateY(0deg); }
.cr-flashcard-label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--aggie-gold); margin-bottom: 0.5rem; }
.cr-flashcard-text { font-size: 0.92rem; font-weight: 600; line-height: 1.5; }
.cr-flashcard-hint { font-size: 0.68rem; color: #94a3b8; margin-top: 0.5rem; }
.cr-flashcard-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.cr-fc-btn {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.cr-fc-btn:hover { border-color: var(--aggie-blue); }
.cr-fc-counter { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* ─── Quiz ─── */
.cr-quiz-area { display: flex; flex-direction: column; gap: 1.25rem; }
.cr-quiz-question { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; }
.cr-quiz-question.correct { border-color: #059669; background: rgba(16,185,129,0.03); }
.cr-quiz-question.incorrect { border-color: #ef4444; background: rgba(239,68,68,0.03); }
.cr-quiz-q-text { font-size: 0.88rem; color: var(--text-primary); margin-bottom: 0.75rem; line-height: 1.5; }
.cr-quiz-options { display: flex; flex-direction: column; gap: 0.35rem; }
.cr-quiz-option {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-weight: 500;
}
.cr-quiz-option:hover:not([disabled]) { border-color: var(--aggie-blue); background: rgba(0,70,132,0.03); }
.cr-quiz-option.selected { border-color: var(--aggie-blue); background: rgba(0,70,132,0.06); }
.cr-quiz-option.correct-answer { border-color: #059669; background: rgba(16,185,129,0.08); color: #059669; font-weight: 700; }
.cr-quiz-option.wrong-answer { border-color: #ef4444; background: rgba(239,68,68,0.06); color: #ef4444; text-decoration: line-through; }
.cr-quiz-explanation {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(253,185,39,0.06);
  border: 1px solid rgba(253,185,39,0.2);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.cr-quiz-results { text-align: center; padding: 0.75rem; font-weight: 800; color: var(--aggie-blue); }

/* ─── Exercise ─── */
.cr-exercise-card {
  background: rgba(0,70,132,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.cr-exercise-part { font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.5; }
.cr-rubric-preview { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.cr-rubric-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.82rem; }
.cr-rubric-criterion { color: var(--text-primary); }
.cr-rubric-points { font-weight: 800; color: var(--aggie-blue); }

/* ─── Upload Zone ─── */
.cr-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-upload-zone:hover { border-color: var(--aggie-gold); background: rgba(253,185,39,0.03); }
.cr-upload-browse {
  padding: 0.5rem 1.25rem;
  background: var(--aggie-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}
.cr-prev-submissions { margin-top: 1rem; }
.cr-submission-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
}

/* ─── AI Review ─── */
.cr-ai-score-hero { text-align: center; margin-bottom: 1.25rem; }
.cr-ai-score-ring { width: 80px; height: 80px; margin: 0 auto 0.75rem; position: relative; }
.cr-ai-score-ring svg { width: 100%; height: 100%; }
.cr-ai-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
}
.cr-ai-feedback { font-size: 0.88rem; color: var(--text-primary); line-height: 1.5; max-width: 500px; margin: 0 auto; }
.cr-rubric-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.cr-rubric-table th { text-align: left; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); padding: 0.5rem; border-bottom: 2px solid var(--border); }
.cr-rubric-table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); }
.cr-rubric-score { font-weight: 800; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); font-size: 0.78rem; }
.cr-rubric-score.good { background: rgba(16,185,129,0.1); color: #059669; }
.cr-rubric-score.ok { background: rgba(253,185,39,0.15); color: var(--aggie-gold-dark); }
.cr-rubric-score.low { background: rgba(239,68,68,0.1); color: #ef4444; }

.cr-annotations-list { margin-top: 1rem; }
.cr-annotation-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.cr-annotation-item.positive { background: rgba(16,185,129,0.06); color: #059669; }
.cr-annotation-item.improvement { background: rgba(253,185,39,0.08); color: var(--aggie-gold-dark); }
.cr-annotation-item.critical { background: rgba(239,68,68,0.06); color: #ef4444; }
.cr-annotation-item.note { background: rgba(0,70,132,0.04); color: var(--aggie-blue); }
.cr-annotation-icon { font-size: 1rem; flex-shrink: 0; }

.cr-scanning-animation { font-size: 4rem; animation: crScan 1.5s infinite; }
@keyframes crScan { 0%,100% { transform: scale(1); opacity:0.7; } 50% { transform: scale(1.2); opacity:1; } }

/* ─── Classroom Responsive ─── */
@media (max-width: 768px) {
  .cr-command-center { grid-template-columns: 1fr; }
  .cr-curriculum-grid { grid-template-columns: 1fr; }
  .cr-modules-grid { grid-template-columns: 1fr; }
  .cr-course-info-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ISLA LICENSURE EXAM CENTER MODAL
   ═══════════════════════════════════════════════════════════ */
.isla-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 58, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.isla-modal-overlay.active {
  display: flex;
}
.isla-modal-container {
  background: var(--surface-card);
  border: 1.5px solid var(--aggie-gold);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: jmFadeIn 0.25s var(--ease-out-expo);
}
.isla-modal-header {
  background: linear-gradient(135deg, #001a3a, #004684);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--aggie-gold);
}
.isla-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.isla-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.isla-section-tabs {
  display: flex;
  background: rgba(0, 70, 132, 0.05);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.isla-tab-btn {
  flex: 1;
  padding: 0.75rem 0.65rem;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.isla-tab-btn:hover {
  color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.03);
}
.isla-tab-btn.active {
  color: var(--aggie-blue);
  border-bottom-color: var(--aggie-gold);
  background: #ffffff;
  font-weight: 800;
}
.isla-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.isla-q-header {
  background: rgba(0, 70, 132, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
}
.isla-q-topic {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.isla-q-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}
.isla-q-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0.5rem 0 0 0;
}
.isla-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.isla-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.isla-opt-btn:hover:not([disabled]) {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.03);
}
.isla-opt-btn.selected {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.06);
}
.isla-opt-btn.correct {
  border-color: #059669;
  background: rgba(16, 185, 129, 0.08);
  font-weight: 700;
}
.isla-opt-btn.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
  opacity: 0.7;
}
.isla-opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 70, 132, 0.08);
  color: var(--aggie-blue);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.isla-opt-btn.selected .isla-opt-letter {
  background: var(--aggie-blue);
  color: #fff;
}
.isla-opt-btn.correct .isla-opt-letter {
  background: #059669;
  color: #fff;
}
.isla-opt-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.isla-explanation-card {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
}
.isla-explanation-card.correct {
  background: rgba(16, 185, 129, 0.06);
  border-color: #059669;
  color: #059669;
}
.isla-explanation-card.incorrect {
  background: rgba(239, 68, 68, 0.05);
  border-color: #ef4444;
  color: #ef4444;
}
.isla-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.isla-score-pill {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(0, 70, 132, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════════
   ISLA TESTING CENTER — FULL NATIVE PLATFORM STYLES
   ═══════════════════════════════════════════════════════════ */
.isla-platform-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 3rem;
  animation: jmFadeIn 0.3s var(--ease-out-expo);
}

/* ── Hero Banner ── */
.isla-hero-banner {
  background: linear-gradient(135deg, #001a3a, #004684 80%);
  border: 1.5px solid rgba(253, 185, 39, 0.4);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 70, 132, 0.15);
}
.isla-hero-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.isla-mascot-hero-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--aggie-gold);
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.isla-hero-badge {
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--aggie-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.isla-degree-pill {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}
.isla-hero-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.15rem 0;
}
.isla-hero-subtitle {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0;
  max-width: 620px;
  line-height: 1.45;
}
.isla-hero-right {
  display: flex;
  gap: 1rem;
}
.isla-stat-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(253, 185, 39, 0.3);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.isla-stat-chip .label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--aggie-gold);
  text-transform: uppercase;
}
.isla-stat-chip .val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}

/* ── Section Pills ── */
.isla-section-pills-bar {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.isla-sec-pill {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.isla-sec-pill:hover {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.02);
}
.isla-sec-pill.active {
  border-color: var(--aggie-gold);
  background: linear-gradient(135deg, rgba(0, 70, 132, 0.05), rgba(253, 185, 39, 0.08));
  box-shadow: 0 4px 12px rgba(0, 70, 132, 0.1);
}
.isla-sec-pill .sec-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--aggie-blue);
}

/* ── Mode Sub-Navigation Tabs ── */
.isla-mode-tabs-bar {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.35rem;
  gap: 0.35rem;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.isla-mode-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.isla-mode-tab:hover {
  color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.04);
}
.isla-mode-tab.active {
  background: var(--aggie-blue);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 70, 132, 0.25);
}

/* ── Mode Mount Card ── */
.isla-mode-content-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* ── 3D Flashcards Styles ── */
.isla-fc-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.isla-fc-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.isla-fc-progress-pill {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}
.isla-tool-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.isla-tool-btn:hover {
  border-color: var(--aggie-blue);
  color: var(--aggie-blue);
}
.isla-flip-card-scene {
  perspective: 1200px;
  width: 100%;
  height: 320px;
  cursor: pointer;
}
.isla-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 70, 132, 0.1);
}
.isla-flip-card.flipped {
  transform: rotateY(180deg);
}
.isla-flip-card-front,
.isla-flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
.isla-flip-card-front {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid var(--border);
}
.isla-flip-card-back {
  background: linear-gradient(135deg, #001a3a, #004684);
  color: #ffffff;
  border: 2px solid var(--aggie-gold);
  transform: rotateY(180deg);
}
.isla-card-hint {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aggie-blue);
}
.isla-card-content-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: inherit;
  max-width: 600px;
}
.isla-card-flip-prompt {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}
.isla-fc-assessment-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.isla-rate-btn {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.isla-rate-btn.needs-work {
  background: rgba(253, 185, 39, 0.15);
  color: var(--aggie-gold-dark);
  border: 1.5px solid var(--aggie-gold);
}
.isla-rate-btn.needs-work:hover {
  background: var(--aggie-gold);
  color: #000;
}
.isla-rate-btn.got-it {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1.5px solid #10b981;
}
.isla-rate-btn.got-it:hover {
  background: #10b981;
  color: #fff;
}
.isla-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.isla-nav-arrow:hover:not([disabled]) {
  border-color: var(--aggie-blue);
  color: var(--aggie-blue);
}

/* ── Match Game Styles ── */
.isla-match-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.isla-match-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.isla-timer-badge {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.08);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
}
.isla-match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.isla-match-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.isla-match-col-header {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--aggie-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.isla-match-card {
  padding: 1rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  min-height: 64px;
  transition: all 0.2s;
}
.isla-match-card:hover:not(.matched) {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.02);
}
.isla-match-card.selected {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 70, 132, 0.2);
}
.isla-match-card.matched {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  opacity: 0.65;
  cursor: default;
}
.isla-match-card.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  animation: jmShake 0.4s ease;
}

/* ── Exam Simulator Styles ── */
.isla-sim-intro-card,
.isla-sim-results-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 0;
}
.isla-sim-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.isla-sim-meta-box {
  background: rgba(0, 70, 132, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
}
.isla-sim-meta-box .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.isla-sim-meta-box .val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--aggie-blue);
  margin-top: 0.2rem;
}
.isla-sim-active-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.isla-sim-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.isla-sim-item-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aggie-blue);
  letter-spacing: 0.04em;
}
.isla-flag-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}
.isla-flag-btn.flagged {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}
.isla-sim-timer-pill {
  font-size: 1rem;
  font-weight: 900;
  background: #001a3a;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}
.isla-grid-toggle-btn {
  background: rgba(0, 70, 132, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--aggie-blue);
  cursor: pointer;
}
.isla-submit-exam-btn {
  background: var(--aggie-gold);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 900;
  color: #000;
  cursor: pointer;
}
.isla-nav-grid-overlay {
  background: #f8fafc;
  border: 1.5px solid var(--aggie-blue);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  animation: jmFadeIn 0.2s ease;
}
.isla-grid-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 0.5rem;
}
.isla-grid-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.isla-grid-btn.answered {
  background: var(--aggie-blue);
  color: #fff;
  border-color: var(--aggie-blue);
}
.isla-grid-btn.flagged {
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: inset 0 0 0 2px #ef4444;
}
.isla-grid-btn.current {
  outline: 2px solid var(--aggie-gold);
}
.isla-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}
.isla-legend-dot.answered { background: var(--aggie-blue); }
.isla-legend-dot.flagged { background: #ef4444; }
.isla-legend-dot.unanswered { background: #cbd5e1; }
.isla-sim-question-card {
  padding: 1rem 0;
}
.isla-sim-topic-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
}
.isla-sim-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0.4rem 0 1.25rem 0;
}
.isla-sim-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.isla-sim-option-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}
.isla-sim-option-row:hover {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.02);
}
.isla-sim-option-row.selected {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.06);
}
.isla-sim-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.isla-sim-radio.checked {
  border-color: var(--aggie-blue);
  background: var(--aggie-blue);
  box-shadow: inset 0 0 0 3px #fff;
}
.isla-sim-letter {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--aggie-blue);
}
.isla-sim-opt-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}
.isla-sim-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.isla-sim-results-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.isla-res-box {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.isla-res-box .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.isla-res-box .val {
  font-size: 2rem;
  font-weight: 900;
  margin: 0.25rem 0;
}
.isla-res-box .sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.isla-sim-topic-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.isla-sim-topic-row {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
}
.isla-sim-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 70, 132, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.isla-sim-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ── Adaptive Quiz Styles ── */
.isla-aq-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.isla-aq-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.isla-streak-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}
.isla-streak-pill.active {
  color: var(--aggie-gold-dark);
  background: rgba(253, 185, 39, 0.15);
  border: 1px solid var(--aggie-gold);
}
.isla-aq-counter-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--aggie-blue);
  letter-spacing: 0.05em;
}
.isla-aq-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0.4rem 0 1.25rem 0;
}
.isla-aq-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.isla-aq-option-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.isla-aq-option-btn:hover:not([disabled]) {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.02);
}
.isla-aq-option-btn.selected {
  border-color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.06);
}
.isla-aq-option-btn.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}
.isla-aq-option-btn.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}
.isla-aq-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 70, 132, 0.06);
  color: var(--aggie-blue);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.isla-aq-option-btn.correct .isla-aq-letter {
  background: #10b981;
  color: #fff;
}
.isla-aq-option-btn.incorrect .isla-aq-letter {
  background: #ef4444;
  color: #fff;
}
.isla-aq-opt-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.isla-aq-check {
  color: #10b981;
  font-weight: 900;
  margin-left: auto;
}
.isla-aq-x {
  color: #ef4444;
  font-weight: 900;
  margin-left: auto;
}
.isla-aq-explanation {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
}
.isla-aq-explanation.correct {
  background: rgba(16, 185, 129, 0.06);
  border-color: #10b981;
  color: #059669;
}
.isla-aq-explanation.incorrect {
  background: rgba(239, 68, 68, 0.05);
  border-color: #ef4444;
  color: #ef4444;
}

/* ── Mastery Dashboard Styles ── */
.isla-mastery-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.isla-mastery-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.isla-metric-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.isla-metric-card .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}
.isla-metric-card .val {
  font-size: 1.85rem;
  font-weight: 900;
  margin: 0.25rem 0;
}
.isla-metric-card .sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.isla-heatmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.isla-heat-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.isla-heat-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(0, 70, 132, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.isla-heat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}
.isla-legend-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ── ISLA Instructional Video Tutorials & Blueprint Styles ── */
.isla-video-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: jmFadeIn 0.3s var(--ease-out-expo);
}

.isla-video-header {
  background: linear-gradient(135deg, rgba(0, 70, 132, 0.05), rgba(253, 185, 39, 0.08));
  border: 1px solid rgba(0, 70, 132, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.isla-video-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--aggie-blue);
  background: rgba(0, 70, 132, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.isla-video-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0.2rem 0 0.4rem;
  letter-spacing: -0.02em;
}

.isla-video-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.isla-format-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.isla-format-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* Video Selector Tabs Bar */
.isla-video-tabs-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 70, 132, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.isla-video-tabs-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.isla-video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.isla-vid-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  padding: 0.45rem 0.9rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.isla-vid-tab:hover {
  background: rgba(0, 70, 132, 0.08);
  color: var(--aggie-blue);
  border-color: rgba(0, 70, 132, 0.25);
  transform: translateY(-1px);
}

.isla-vid-tab.active {
  background: var(--aggie-blue) !important;
  color: #ffffff !important;
  border-color: var(--aggie-blue) !important;
  box-shadow: 0 4px 12px rgba(0, 70, 132, 0.25);
}

.isla-vid-tab .tab-icon {
  display: inline-flex;
  align-items: center;
}

/* 16:9 Video Embed Player */
.isla-player-container {
  background: #080c14;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.isla-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.isla-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.isla-player-caption {
  padding: 1rem 1.25rem;
  background: #0d131f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.isla-player-caption .caption-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--aggie-gold);
  margin-bottom: 0.2rem;
}

.isla-player-caption .caption-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.isla-yt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.isla-yt-link-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.isla-video-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: #94a3b8;
}

/* CLARB Blueprint Card */
.isla-blueprint-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.blueprint-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.blueprint-card-header .header-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: rgba(0, 70, 132, 0.08);
  color: var(--aggie-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blueprint-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.blueprint-card-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.blueprint-topics-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blueprint-topic-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 70, 132, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.blueprint-topic-item:hover {
  background: rgba(0, 70, 132, 0.05);
  border-color: rgba(0, 70, 132, 0.2);
  transform: translateX(3px);
}

.blueprint-topic-item .weight-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--aggie-blue);
  color: var(--aggie-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 70, 132, 0.2);
}

.blueprint-topic-item .topic-info {
  flex: 1;
}

.blueprint-topic-item .topic-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.blueprint-topic-item .topic-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Quick Launch Activities Grid */
.isla-activities-launcher {
  margin-top: 0.5rem;
}

.isla-activities-launcher .launcher-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .launcher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .launcher-grid {
    grid-template-columns: 1fr;
  }
}

.launcher-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.launcher-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--aggie-blue);
}

.launcher-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.launcher-card-icon.blue {
  background: rgba(0, 70, 132, 0.1);
  color: var(--aggie-blue);
}

.launcher-card-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.launcher-card-icon.gold {
  background: rgba(253, 185, 39, 0.15);
  color: #b8860b;
}

.launcher-card-icon.green {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.launcher-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}

.launcher-card-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 1rem;
  flex: 1;
}

.launcher-card-cta {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--aggie-blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.launcher-card:hover .launcher-card-cta {
  color: var(--aggie-gold);
}

/* ==========================================================================
   JOURNEY MAP DUAL-TRACK FILTERS & COLUMN SCROLL
   ========================================================================== */

.jm-filter-controls-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.jm-track-filters {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.jm-filter-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--aggie-blue);
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.jm-track-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.jm-track-pill:hover {
  background: rgba(0, 70, 132, 0.08);
  color: var(--aggie-blue);
  border-color: rgba(0, 70, 132, 0.2);
}

.jm-track-pill.active {
  background: var(--aggie-blue);
  color: #ffffff;
  border-color: var(--aggie-blue);
  box-shadow: 0 2px 8px rgba(0, 70, 132, 0.25);
}

.jm-milestones-list {
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.jm-milestones-list::-webkit-scrollbar {
  width: 5px;
}
.jm-milestones-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 3px;
}
.jm-milestones-list::-webkit-scrollbar-thumb {
  background: rgba(0, 70, 132, 0.2);
  border-radius: 3px;
}
.jm-milestones-list::-webkit-scrollbar-thumb:hover {
  background: var(--aggie-gold);
}

.jm-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jm-type-badge.experiential {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.jm-type-badge.course {
  background: rgba(0, 70, 132, 0.12);
  color: var(--aggie-blue);
}

.jm-credit-badge.gold {
  background: rgba(253, 185, 39, 0.2);
  color: var(--aggie-gold-dark);
  font-weight: 700;
}

/* ==========================================================================
   EXPERIENTIAL PORTFOLIO & CAMPUS RESEARCH PIPELINE
   ========================================================================== */

.pf-header-card {
  background: linear-gradient(135deg, #002d57 0%, var(--aggie-blue) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pf-header-content {
  flex: 1;
  min-width: 280px;
}

.pf-header-badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--aggie-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.pf-header-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.pf-header-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

.pf-stats-row {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.pf-stat-item {
  display: flex;
  flex-direction: column;
}

.pf-stat-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--aggie-gold);
  line-height: 1.1;
}

.pf-stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pf-header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 180px;
}

.pf-btn-log {
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.pf-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.pf-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pf-section {
  margin-bottom: 2.5rem;
}

.pf-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pf-section-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--aggie-blue);
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pf-section-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

.pf-filter-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pf-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pf-tag:hover, .pf-tag.active {
  background: var(--aggie-blue);
  color: #ffffff;
  border-color: var(--aggie-blue);
}

.pf-opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.pf-opp-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  border-top: 4px solid var(--aggie-gold);
}

.pf-opp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pf-opp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.pf-opp-pi-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pf-opp-pi-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--aggie-gold);
}

.pf-opp-pi-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pf-opp-pi-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pf-match-chip {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.pf-opp-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--aggie-blue);
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.pf-opp-unit {
  font-size: 0.74rem;
  color: var(--aggie-gold-dark);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pf-opp-grant {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.pf-opp-desc {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0 0 0.85rem 0;
  flex: 1;
}

.pf-opp-deliverables {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.pf-deliv-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  display: block;
  width: 100%;
  margin-bottom: 0.2rem;
}

.pf-deliv-pill {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
  font-weight: 600;
}

.pf-opp-standards {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  background: var(--surface-bg);
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.95rem;
}

.pf-opp-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.pf-btn-apply {
  flex: 1;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.pf-btn-link-capstone {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--aggie-blue);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pf-btn-link-capstone:hover {
  background: rgba(0, 70, 132, 0.08);
  border-color: var(--aggie-blue);
}

.pf-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.pf-proj-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.pf-proj-card.completed {
  border-left: 4px solid #10b981;
}

.pf-proj-card.in-progress {
  border-left: 4px solid var(--aggie-gold);
}

.pf-proj-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.pf-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}

.pf-status-badge.complete {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.pf-status-badge.ip {
  background: rgba(253, 185, 39, 0.2);
  color: var(--aggie-gold-dark);
}

.pf-xp-badge {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--aggie-gold-dark);
  background: rgba(253, 185, 39, 0.15);
  padding: 2px 8px;
  border-radius: 9999px;
}

.pf-proj-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--aggie-blue);
  margin: 0 0 0.65rem 0;
  line-height: 1.35;
}

.pf-proj-mentor-row {
  display: flex;
  align-items: center;
  gap: 0.65rem,
  margin-bottom: 0.75rem;
}

.pf-proj-mentor-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--aggie-gold);
}

.pf-proj-mentor-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pf-proj-mentor-lab {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pf-proj-abstract {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0 0 0.85rem 0;
  flex: 1;
}

.pf-proj-deliverable-box {
  background: rgba(0, 70, 132, 0.04);
  border: 1px solid rgba(0, 70, 132, 0.15);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.pf-deliv-header {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.pf-deliv-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pf-deliv-type {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-style: italic;
}

.pf-proj-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.pf-comp-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.pf-proj-endorsement {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: flex;
  gap: 0.45rem;
  background: rgba(253, 185, 39, 0.08);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(253, 185, 39, 0.3);
}

.pf-btn-log-inline {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.pf-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--aggie-blue);
  margin-left: 1rem;
}

.pf-timeline-item {
  position: relative;
}

.pf-timeline-dot {
  position: absolute;
  left: -2.48rem;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aggie-gold);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--aggie-blue);
}

.pf-timeline-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.pf-timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.pf-timeline-type-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(0, 70, 132, 0.1);
  color: var(--aggie-blue);
}

.pf-timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.pf-timeline-xp {
  font-size: 0.74rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 9999px;
}

.pf-timeline-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.pf-timeline-org {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pf-timeline-reflection {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0 0 0.65rem 0;
}

.pf-timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pf-skill-pill {
  font-size: 0.68rem;
  background: var(--surface-bg);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 600;
}

.pf-credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.pf-cred-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.pf-cred-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pf-cred-icon-circle.gold {
  background: rgba(253, 185, 39, 0.15);
  color: var(--aggie-gold-dark);
}

.pf-cred-icon-circle.green {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.pf-cred-icon-circle.blue {
  background: rgba(0, 70, 132, 0.12);
  color: var(--aggie-blue);
}

.pf-cred-icon-circle.purple {
  background: rgba(124, 58, 237, 0.15);
  color: #7c3aed;
}

.pf-cred-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pf-cred-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin: 0.1rem 0;
}

.pf-cred-date {
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
}

/* Modal form controls */
.pf-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aggie-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.pf-form-input, .pf-form-textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.pf-form-input:focus, .pf-form-textarea:focus {
  outline: none;
  border-color: var(--aggie-blue);
  box-shadow: 0 0 0 3px rgba(0, 70, 132, 0.15);
}




/* ==========================================================================
   AGGIE GATEWAY UNIVERSAL PRINT STYLESHEET
   Supports native browser printing (Ctrl+P) and Dossier PDF exports
   ========================================================================== */
@media print {
  @page {
    size: letter portrait;
    margin: 0.5in 0.5in;
  }
  
  html, body {
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
  }

  /* Hide screen-only interactive header, nav, floating elements */
  #landing-page,
  .header,
  .sidebar-left,
  .sidebar-right,
  .isla-greeting-banner,
  .bls-career-stats-bar,
  .header-dropdown-wrap,
  .header-dropdown-menu,
  .tab-nav,
  .pf-header-actions,
  .btn-primary,
  .btn-secondary,
  .jm-modal-overlay,
  .ag-modal-overlay,
  .pathway-switcher-trigger,
  .adjacent-cert-chip,
  .proactive-match-box,
  .isla-video-player-modal,
  #aggie-toast {
    display: none !important;
  }

  /* Unfold Layout to 100% full width */
  .app-wrapper,
  .aggie-gateway-layout,
  .main-workspace {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Ensure active view is visible and other views are hidden */
  .view {
    display: none !important;
  }
  .view.active {
    display: block !important;
    width: 100% !important;
  }

  /* Print Header for institutional context */
  .view.active::before {
    content: "NORTH CAROLINA A&T STATE UNIVERSITY • AGGIE GATEWAY EXPERIENTIAL DOSSIER";
    display: block;
    font-size: 11pt;
    font-weight: 800;
    color: #004684;
    border-bottom: 2px solid #FDB927;
    padding-bottom: 6px;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 0.05em;
  }

  /* Cards & Section Containers */
  .pf-header,
  .pf-section,
  .curriculum-board,
  .isla-platform-shell,
  .ca-container {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    page-break-inside: avoid;
    margin-bottom: 14px !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
  }

  .pf-card,
  .module-card,
  .isla-quiz-box,
  .isla-stat-chip,
  .stat-card {
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    page-break-inside: avoid;
    border-radius: 4px !important;
  }

  a {
    text-decoration: none !important;
    color: inherit !important;
  }

  /* Retain badges in clean grayscale/contrast */
  .badge-pill,
  .pill-badge,
  .pf-badge,
  .isla-hero-badge {
    border: 1px solid #94a3b8 !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* ============================================================
   System Architecture & Canvas LTI Modal Styling
   ============================================================ */
.arch-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}
.arch-tab-btn:hover {
  color: #FDB927;
}
.arch-tab-btn.active {
  color: #FDB927;
  border-bottom-color: #FDB927;
}
.arch-tab-pane {
  display: none;
}
.arch-tab-pane.active {
  display: block;
}

/* ============================================================
   Institutional Leadership & Co-Design Coalition Section
   ============================================================ */
.landing-coalition-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #002244 0%, #00142e 70%, #000c1d 100%);
  padding: 5rem 1.75rem 4rem;
  border-top: 1px solid rgba(253, 185, 39, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.coalition-container {
  max-width: 1320px;
  margin: 0 auto;
}

.coalition-header-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.25rem;
}

.coalition-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(253, 185, 39, 0.15);
  border: 1px solid rgba(253, 185, 39, 0.4);
  color: var(--aggie-gold);
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.coalition-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.coalition-title span {
  color: var(--aggie-gold);
}

.coalition-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
}

.coalition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1200px) {
  .coalition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .coalition-grid {
    grid-template-columns: 1fr;
  }
}

.coalition-card {
  background: rgba(14, 28, 54, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.coalition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--aggie-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coalition-card:hover {
  transform: translateY(-6px);
  border-color: rgba(253, 185, 39, 0.6);
  background: rgba(18, 36, 70, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.coalition-card:hover::before {
  opacity: 1;
}

.coalition-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin-bottom: 1.15rem;
  padding: 3px;
  background: linear-gradient(135deg, #FDB927, #004684);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.coalition-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #001a3a;
}

.coalition-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  background: rgba(253, 185, 39, 0.12);
  color: var(--aggie-gold);
  border: 1px solid rgba(253, 185, 39, 0.35);
}

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

.coalition-card-name {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.coalition-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--aggie-gold);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.coalition-card-unit {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.coalition-card-desc {
  font-size: 0.81rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.coalition-btn-bio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.coalition-btn-bio:hover {
  background: var(--aggie-gold);
  color: #001a3a;
  border-color: var(--aggie-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 185, 39, 0.3);
}

/* Strategic Alignment 4-Pillar Strip */
.coalition-alignment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: rgba(0, 15, 35, 0.7);
  border: 1px solid rgba(253, 185, 39, 0.25);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 992px) {
  .coalition-alignment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .coalition-alignment-grid {
    grid-template-columns: 1fr;
  }
}

.alignment-col {
  padding: 0.75rem 0.5rem;
}

.alignment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--aggie-gold);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.alignment-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.alignment-body {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

