/* Modern Glassmorphic Dark Design System for UniMatch */
:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 24, 40, 0.75);
  --bg-card-hover: rgba(28, 36, 58, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(99, 102, 241, 0.3);
  
  --primary: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  padding-bottom: 60px;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass-glow);
  transform: translateY(-2px);
}

/* Layout Header */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 2rem;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.stat-pill .val {
  font-weight: 700;
  color: #a855f7;
  font-size: 1.1rem;
}

.stat-pill.emerald .val {
  color: var(--accent-emerald);
}

/* Nav Tabs */
nav.app-tabs {
  max-width: 1300px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.tabs-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem;
  background: rgba(18, 24, 40, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* Main Container */
main.app-body {
  max-width: 1300px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2col { grid-template-columns: 1fr; }
}

/* Calculator Section */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.panel-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preset-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-preset:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text-main);
  border-color: var(--primary);
}

/* Subject Table / Row */
.subjects-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subject-row {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 40px;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

@media (max-width: 600px) {
  .subject-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "select action"
      "input level";
    gap: 0.65rem 0.5rem;
    padding: 0.75rem 0.85rem;
  }
  .subject-select-wrap { grid-area: select; min-width: 0; }
  .subject-action-wrap { grid-area: action; display: flex; justify-content: flex-end; align-items: center; }
  .mark-input-group    { grid-area: input; min-width: 0; }
  .subject-level-wrap  { grid-area: level; display: flex; justify-content: flex-end; align-items: center; }
}

.subject-select, .form-control {
  width: 100%;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.subject-select:focus, .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.mark-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-mark {
  flex: 1;
  accent-color: var(--primary);
}

.num-mark {
  width: 60px;
  text-align: center;
  font-weight: 700;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-icon-danger {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon-danger:hover {
  background: var(--accent-rose);
  color: #ffffff;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* APS Summary Card */
.aps-summary-box {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.aps-display {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
}

.aps-variant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.aps-variant-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: left;
}

.aps-variant-card .title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.aps-variant-card .val {
  font-size: 1.2rem;
  font-weight: 700;
  color: #38bdf8;
}

/* Course Cards */
.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.varsity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
}

.status-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-badge.QUALIFIED {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.EXTENDED {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.LOCKED {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* STRONG_MATCH tier (Task #2) */
.status-badge.STRONG_MATCH {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

/* Career path pills (Task #3) */
.career-paths {
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
}

.career-paths-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.career-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.career-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
  white-space: nowrap;
}

/* NBT advisory notice (Task #8) */
.nbt-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* NSC qualification banner (Task #4) */
.nsc-warning-banner {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
}

.nsc-banner-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.nsc-issues-list {
  padding-left: 1.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Alternative pathways panel (Task #5) */
.pathways-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.pathways-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pathways-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.pathways-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pathway-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.course-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.course-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.prereq-list {
  background: rgba(11, 15, 25, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
}

.prereq-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.prereq-item.met {
  color: var(--accent-emerald);
}

.prereq-item.unmet {
  color: var(--accent-rose);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-glass);
}

.btn-link {
  color: #818cf8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.btn-link:hover {
  color: #a855f7;
  text-decoration: underline;
}

/* Filters & Search Controls */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  padding-left: 2.5rem;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Varsity Directory Cards */
.varsity-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.varsity-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.varsity-badge-lg {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.closing-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Printable Report */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  header, nav, .preset-buttons, .btn-primary, .btn-icon-danger {
    display: none !important;
  }
  .glass-panel, .glass-card {
    border: 1px solid #ccc !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #000 !important;
  }
  .aps-display {
    -webkit-text-fill-color: #000 !important;
  }
}


/* ─── Task #5 — Application Status Badge ────────────────────────────────── */
.app-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.app-status-badge.OPEN   { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.app-status-badge.CLOSED { background: rgba(244,63,94,0.1);   color: #f43f5e; border: 1px solid rgba(244,63,94,0.2); }
.app-status-badge.UNKNOWN{ background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }

/* ─── Task #9 — APS Benchmark ────────────────────────────────────────────── */
.benchmark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.benchmark-tier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.benchmark-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.benchmark-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}
.benchmark-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
  padding: 0 2px;
}

/* ─── Task #6 — Career Cards ─────────────────────────────────────────────── */
.career-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}
.career-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.career-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.career-field-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  background: rgba(99,102,241,0.12);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.25);
  white-space: nowrap;
}
.career-salary {
  text-align: right;
  flex-shrink: 0;
}
.career-req-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  border: 1px solid transparent;
}
.career-req-badge.math-pure { background: rgba(168,85,247,0.12); color: #a855f7; border-color: rgba(168,85,247,0.25); }
.career-req-badge.math-any  { background: rgba(245,158,11,0.12);  color: #f59e0b; border-color: rgba(245,158,11,0.25); }
.career-req-badge.math-none { background: rgba(148,163,184,0.1);  color: #94a3b8; border-color: rgba(148,163,184,0.2); }

.career-aps-match {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}
.career-aps-match.yes { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.career-aps-match.no  { background: rgba(244,63,94,0.1);   color: #f43f5e; border: 1px solid rgba(244,63,94,0.2); }

/* ─── Career Quiz ────────────────────────────────────────────────────────── */
.quiz-header { margin-bottom: 1rem; }

.quiz-question { margin-bottom: 1.25rem; }
.quiz-q-label  { font-size: 0.88rem; font-weight: 600; color: var(--text-main); margin-bottom: 0.5rem; }

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.quiz-option input[type=radio] { display: none; }
.quiz-option:hover   { border-color: var(--primary); color: var(--text-main); }
.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(99,102,241,0.12);
  color: var(--text-main);
}

/* Quiz results */
.quiz-results { }
.quiz-results-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.quiz-top-fields     { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.quiz-field-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.quiz-rank       { font-size: 0.7rem; font-weight: 700; color: var(--accent-gold); min-width: 1.5rem; }
.quiz-field-name { font-weight: 600; min-width: 180px; }
.quiz-score-bar  { flex: 1; height: 8px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
.quiz-score-bar > div { height: 100%; background: var(--primary-gradient); border-radius: 4px; transition: width 0.6s ease; }

.quiz-matched-careers { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-career-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* ─── Task #7 — Pathway Cards ────────────────────────────────────────────── */
.pathway-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}
.pathway-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.pathway-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}


/* ─── Task #1 — What-If Simulator ───────────────────────────────────────── */
.whatif-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.whatif-subjects {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.whatif-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.whatif-subject-name {
  min-width: 150px;
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whatif-val  { font-weight: 700; color: #38bdf8; min-width: 38px; text-align: right; }
.whatif-diff { font-size: 0.7rem; font-weight: 700; color: #4ade80; }
.wi-slider   { flex: 1; accent-color: #a855f7; }

/* ─── Task #2 — Actual Cutoff badge ─────────────────────────────────────── */
/* (inline styles used — no separate class needed) */

/* ─── Task #3 — Compare Table ────────────────────────────────────────────── */
.compare-table-inner {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.compare-table-inner th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}
.compare-table-inner td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.compare-table-inner tr:last-child td { border-bottom: none; }
.compare-table-inner tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Task #4 — Deadline Countdown ──────────────────────────────────────── */
.deadline-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}
.deadline-countdown.soon   { background: rgba(245,158,11,0.1);  color: #f59e0b; border-color: rgba(245,158,11,0.25); }
.deadline-countdown.urgent { background: rgba(244,63,94,0.1);   color: #f43f5e; border-color: rgba(244,63,94,0.2); }

/* ─── Task #5 — Bursary Cards ────────────────────────────────────────────── */
.bursary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}
.bursary-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.bursary-requirements {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  margin-top: 0.5rem;
}

/* ─── Task #6 — Profile, Shortlist, Gap Analysis ─────────────────────────── */
.profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.profile-grid > div { flex: 1; min-width: 160px; }
.profile-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

/* Toggle switch (IEB/NSC) */
.toggle-switch    { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(16px); }

/* Shortlist button on course card */
.shortlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 0.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.shortlist-btn:hover, .shortlist-btn.active { color: #f43f5e; }
.shortlist-btn.active i { fill: #f43f5e; }

/* Gap analysis block under shortlisted courses */
.gap-analysis {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: -0.25rem;
}

/* ─── Task #7 — Past Papers ──────────────────────────────────────────────── */
.paper-card { padding: 1.25rem; }
.paper-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #38bdf8;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(6,182,212,0.07);
  border: 1px solid rgba(6,182,212,0.15);
  transition: var(--transition);
}
.paper-link:hover { background: rgba(6,182,212,0.15); color: #7dd3fc; }
.memo-link { color: #10b981; background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.15); }
.memo-link:hover { background: rgba(16,185,129,0.15); }
.paper-tips {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-sm);
}

/* ─── Task #9 — NBT Panel ────────────────────────────────────────────────── */
.nbt-panel-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}
.nbt-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.nbt-input-group label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
  font-weight: 600;
  text-transform: uppercase;
}
.nbt-input-group .form-control { font-size: 0.85rem; text-align: center; }

/* ─── Task #10 — IEB note ────────────────────────────────────────────────── */
/* handled by inline badge + toggle-switch classes above */

/* ─── Task #2 — Student Authentication & Identity Management ─────────────── */
.user-auth-wrapper {
  position: relative;
}

.btn-auth-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-gradient);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}
.btn-auth-signin:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.user-profile-menu {
  position: relative;
}

.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}
.user-avatar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar-initials {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-display-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.user-dropdown-card {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 240px;
  background: #111827;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: dropdown-fade 0.2s ease;
}
@keyframes dropdown-fade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}
.user-dropdown-header span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.user-dropdown-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.cloud-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.btn-dropdown-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #f43f5e;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  text-align: left;
  transition: opacity 0.2s;
}
.btn-dropdown-logout:hover {
  opacity: 0.8;
}

/* Utility Hidden */
.hidden {
  display: none !important;
}

.auth-modal-backdrop.hidden {
  display: none !important;
}

.user-profile-menu.hidden {
  display: none !important;
}

.user-dropdown-card.hidden {
  display: none !important;
}

.btn-auth-signin.hidden {
  display: none !important;
}

.btn-dropdown-logout * {
  pointer-events: none;
}
.btn-google-signin * {
  pointer-events: none;
}
.btn-auth-signin * {
  pointer-events: none;
}
.user-avatar-btn * {
  pointer-events: none;
}

/* Auth Modal Backdrop & Card */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  animation: modal-fade-in 0.2s ease;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-card {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.auth-modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  margin-bottom: 0.25rem;
}

.btn-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}
.btn-modal-close:hover {
  color: var(--text-main);
}

.auth-instant-box {
  margin-bottom: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-glass);
}
.auth-divider span {
  padding: 0 0.75rem;
}

.btn-google-signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #1f2937;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-google-signin:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.auth-status-msg {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  text-align: center;
}
.auth-status-msg.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.auth-status-msg.error {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ════════════════════════════════════════════════════════════════════════════
   TASK 3: FRONTEND UI ENHANCEMENTS
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── 1. Toast Notification System ────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
  z-index: 10000;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 3rem);
}

.toast-notification {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.82rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notification.toast-hide {
  opacity: 0;
  transform: translateX(30px) scale(0.95);
}

.toast-notification.toast-success {
  border-left: 3px solid #10b981;
}
.toast-notification.toast-info {
  border-left: 3px solid #38bdf8;
}
.toast-notification.toast-remove {
  border-left: 3px solid #f43f5e;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ─── 2. Floating Compare Tray ────────────────────────────────────────────── */
.floating-compare-tray {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 2rem));
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.15);
  z-index: 9000;
  padding: 0.65rem 1rem;
  animation: traySlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@keyframes traySlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.compare-tray-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compare-tray-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-tray-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.compare-tray-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  overflow-x: auto;
  padding: 0.2rem 0;
  scrollbar-width: none;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.73rem;
  color: var(--text-main);
  white-space: nowrap;
  animation: popIn 0.2s ease;
}

.compare-chip-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 0.9rem;
}
.compare-chip-remove:hover {
  color: #f43f5e;
}

.compare-tray-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tray-clear {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.btn-tray-clear:hover {
  color: #f43f5e;
}

/* ─── 3. Quick Compare Button on Course Cards ────────────────────────────── */
.btn-card-compare {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-card-compare:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}
.btn-card-compare.in-tray {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  color: #ffffff;
}

/* ─── 4. Headroom & Cutoff Indicators ────────────────────────────────────── */
.headroom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.headroom-badge.surplus {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.headroom-badge.deficit {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ─── 5. Faculty Color Pills ─────────────────────────────────────────────── */
.faculty-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}
.faculty-pill.eng     { background: rgba(56, 189, 248, 0.1); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }
.faculty-pill.health  { background: rgba(244, 63, 94, 0.1); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.25); }
.faculty-pill.sci     { background: rgba(168, 85, 247, 0.1); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.faculty-pill.comm    { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.faculty-pill.hum     { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }
.faculty-pill.default { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-glass); }

/* ─── 6. Heart Pop Micro-Interaction ─────────────────────────────────────── */
.shortlist-btn.pop i {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ─── 7. Smooth Tab Bar with Gradient Edge Masks ─────────────────────────── */
.tabs-wrapper {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.tabs-wrapper::-webkit-scrollbar {
  display: none;
}

/* ─── 8. Selected Courses Side-by-Side Matrix ────────────────────────────── */
.selected-compare-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}
.selected-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.selected-compare-table th, .selected-compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  vertical-align: middle;
}
.selected-compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}
.selected-compare-table td.matrix-label {
  width: 190px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.selected-compare-table td.matrix-val {
  min-width: 220px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.selected-compare-table tr:last-child td {
  border-bottom: none;
}

/* ─── 9. "No False Hope" Admission Probability Badges & Meters ───────────── */
.prob-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.prob-badge.safe {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);
}
.prob-badge.competitive {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.1);
}
.prob-badge.reach {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.1);
}
.prob-badge.unmet {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-glass);
}

.prob-meter-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.prob-meter-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}
.prob-meter-fill.safe {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.prob-meter-fill.competitive {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.prob-meter-fill.reach {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}
.prob-meter-fill.unmet {
  background: var(--text-dim);
}

/* Strategic Portfolio Summary Banner */
.portfolio-strategy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.portfolio-stats-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.portfolio-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}
.portfolio-stat-pill.safe {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.portfolio-stat-pill.competitive {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.portfolio-stat-pill.reach {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ─── 10. WhatsApp Share & Portfolio Export Styles ─────────────────────── */
.btn-whatsapp-share {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-whatsapp-share:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}
.btn-whatsapp-share:active {
  transform: translateY(0);
}

.btn-share-portfolio-banner {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  margin-left: auto;
}
.btn-share-portfolio-banner:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: rgba(37, 211, 102, 0.6);
  transform: translateY(-1px);
}

.portfolio-preview-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
  user-select: text;
}

/* ─── 11. Clean A4 PDF / Formal Print Stylesheet ────────────────────────── */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  }
  .app-header,
  .top-nav,
  .floating-compare-tray,
  .toast-container,
  .auth-modal-backdrop,
  .preset-buttons,
  .filter-bar,
  button,
  .btn-primary,
  .btn-secondary,
  .btn-whatsapp-share,
  .tab-content:not(#tab-summary) {
    display: none !important;
  }
  #tab-summary {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #tab-summary .glass-panel {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  #tab-summary .glass-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
  }
  #tab-summary h1,
  #tab-summary h2,
  #tab-summary h3 {
    color: #0f172a !important;
  }
  #tab-summary p,
  #tab-summary span {
    color: #475569 !important;
  }
  #tab-summary strong {
    color: #0f172a !important;
  }
  #summarySubjectsList div {
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .status-badge {
    border: 1px solid #cbd5e1 !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }
}

/* ─── 12. Financial Reality & NSFAS Affordability Planner (Task #3) ───── */
.financial-planner-panel {
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.income-selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-income {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.btn-income:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-income.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
}
.btn-income.active[data-income="350K_600K"] {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
}
.btn-income.active[data-income="OVER_600K"] {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}

.income-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  pointer-events: none;
}
.income-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  pointer-events: none;
}

.financial-result-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.tuition-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 0.18rem 0.55rem;
}

.financial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
}
.financial-badge.nsfas {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.financial-badge.missing-middle {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.financial-badge.self-funded {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ─── Task #4 — Calendar Reminders & Deadline Alerts ─────────────────────── */
.btn-calendar-reminder {
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.btn-calendar-reminder:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.calendar-date-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-gcal {
  background: rgba(66, 133, 244, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(66, 133, 244, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-gcal:hover {
  background: rgba(66, 133, 244, 0.28);
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.btn-ics {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-ics:hover {
  background: rgba(148, 163, 184, 0.22);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* ─── 14. Admin Portal & Dashboard ───────────────────────────────────────── */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.admin-kpi-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.admin-kpi-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

.admin-subtabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.admin-subtab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.admin-subtab-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-search-group {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 600px;
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.4);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-editable-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-editable-pill:hover {
  background: rgba(168, 85, 247, 0.25);
  border-style: solid;
  transform: scale(1.05);
}

.admin-editable-pill.cutoff {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.admin-editable-pill.cutoff:hover {
  background: rgba(245, 158, 11, 0.25);
}

.admin-login-card {
  max-width: 440px;
  margin: 3rem auto;
  text-align: center;
  padding: 2.5rem 2rem;
}

.admin-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

/* Responsive Admin Layout */
@media (max-width: 900px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #adminDashboardView {
    padding: 1rem !important;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .admin-kpi-card {
    padding: 0.85rem 1rem;
  }

  .admin-kpi-val {
    font-size: 1.45rem;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .admin-search-group {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
  }

  .admin-toolbar .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .admin-subtabs {
    gap: 0.35rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-subtabs::-webkit-scrollbar {
    display: none;
  }

  .admin-subtab-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }

  .admin-table-wrapper {
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
  }

  .admin-form-grid-2,
  .admin-form-grid-3 {
    grid-template-columns: 1fr;
  }

  .admin-login-card {
    margin: 1.5rem auto;
    padding: 1.75rem 1.25rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE APP NAVIGATION & RESPONSIVE DESIGN SYSTEM
   ───────────────────────────────────────────────────────────────────────────── */

/* Hidden on desktop */
.mobile-bottom-nav {
  display: none;
}

.mobile-sheet-backdrop {
  display: none;
}

@media (max-width: 768px) {
  /* Safe padding so bottom nav doesn't cover content or floating elements */
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Compact header on mobile */
  header.app-header {
    padding: 0.75rem 1rem;
  }

  .header-container {
    gap: 0.5rem;
  }

  .brand-text h1 {
    font-size: 1.15rem;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .header-stats {
    gap: 0.4rem;
  }

  .stat-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  /* Hide desktop horizontal tabs on mobile — native bottom nav takes over */
  nav.app-tabs {
    display: none !important;
  }

  main.app-body {
    padding: 0 0.85rem;
    margin-top: 0.85rem;
  }

  /* Floating compare tray sits cleanly above the mobile nav */
  .floating-compare-tray {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100% - 1.5rem);
    padding: 0.5rem 0.75rem;
  }

  /* Toast alerts sit cleanly above the mobile nav */
  .toast-container {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: 1rem;
    right: 1rem;
    max-width: 100%;
    width: calc(100% - 2rem);
  }

  /* Fixed Glassmorphic Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px 4px 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-btn svg,
  .mobile-nav-btn i {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
    transition: transform 0.2s ease, stroke 0.2s ease;
  }

  .mobile-nav-btn:active {
    transform: scale(0.92);
  }

  .mobile-nav-btn.active {
    color: #818cf8;
    font-weight: 600;
  }

  .mobile-nav-btn.active svg,
  .mobile-nav-btn.active i {
    stroke: #818cf8;
    transform: translateY(-2px);
  }

  .mobile-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary-gradient);
  }

  .mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0b0f19;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  }

  /* Bottom Sheet Drawer for "More" Navigation */
  .mobile-sheet-backdrop {
    display: flex !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .mobile-sheet-backdrop.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-sheet-card {
    background: #111726;
    border: 1px solid var(--border-glass);
    border-bottom: none;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    width: 100%;
    max-width: 580px;
    padding: 0.85rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.75);
    transform: translateY(0);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-sheet-backdrop.hidden .mobile-sheet-card {
    transform: translateY(100%);
  }

  .mobile-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 auto 0.85rem;
  }

  .mobile-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
  }

  .mobile-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.85rem 0.35rem;
    cursor: pointer;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-sheet-item:hover,
  .mobile-sheet-item:active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(0.96);
  }

  .mobile-sheet-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-sheet-icon svg,
  .mobile-sheet-icon i {
    width: 20px;
    height: 20px;
  }

  .mobile-sheet-label {
    text-align: center;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .mobile-sheet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

