:root {
  --bg: #0C1524;
  --card: #111D30;
  --card-hover: #152438;
  --primary: #3B82F6;
  --primary-dim: rgba(59,130,246,0.15);
  --primary-glow: rgba(59,130,246,0.25);
  --fg: #F1F3F5;
  --fg-muted: #8C99AE;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.12);
  --glass-bg: rgba(255,255,255,0.05);
  --glass-strong: rgba(255,255,255,0.08);
  --destructive: #EF4444;
  --emerald: #10B981;
  --amber: #F59E0B;
  --violet: #8B5CF6;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--border-strong);
}

.glow { box-shadow: 0 0 20px var(--primary-glow), 0 0 60px rgba(59,130,246,0.05); }
.glow-strong { box-shadow: 0 0 30px rgba(59,130,246,0.35), 0 0 80px rgba(59,130,246,0.1); }

.gradient-text {
  background: linear-gradient(135deg, #6C9EFF, #7C6CFF, #3BB8F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-dim); color: var(--primary); }
.badge-secondary { background: rgba(255,255,255,0.06); color: var(--fg-muted); }
.badge-emerald { background: rgba(16,185,129,0.15); color: var(--emerald); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--amber); }
.badge-violet { background: rgba(139,92,246,0.15); color: var(--violet); }
.badge-destructive { background: rgba(239,68,68,0.15); color: var(--destructive); }
.badge-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--fg-muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline {
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  border-color: rgba(255,255,255,0.15);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }
.btn-destructive {
  background: var(--destructive);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: none;
}
.btn-ghost:hover { color: var(--fg); }
.btn-sm { font-size: 0.8rem; padding: 0.35rem 0.85rem; }

.input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--fg);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--primary); }
.input::placeholder { color: var(--fg-muted); opacity: 0.6; }

.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

.text-muted { color: var(--fg-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-mono { font-family: 'Geist Mono', 'SF Mono', 'Consolas', monospace; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

.sidebar {
  width: 256px;
  background: rgba(8,16,32,0.95);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
  flex-shrink: 0;
}
.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.25rem;
  margin-bottom: 2rem;
}
.sidebar .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.sidebar .logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}
.sidebar .logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-top: 1px;
}
.sidebar nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.sidebar .nav-item:hover { color: var(--fg); background: rgba(255,255,255,0.03); }
.sidebar .nav-item.active {
  color: var(--primary);
  background: var(--primary-dim);
  border-left-color: var(--primary);
}
.sidebar .nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}
.sidebar .user-tile {
  margin-top: auto;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sidebar .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}
.sidebar .user-name { font-size: 0.82rem; font-weight: 600; }
.sidebar .user-verified {
  font-size: 0.65rem;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.student-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.student-header .page-title { font-size: 0.95rem; font-weight: 600; }
.student-header .header-actions { display: flex; align-items: center; gap: 0.75rem; }
.student-header .avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
}
.icon-btn {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 0.375rem;
  transition: color 0.15s;
}
.icon-btn:hover { color: var(--fg); }

.app-layout {
  display: flex;
  min-height: 100vh;
}
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-content {
  flex: 1;
  padding: 2rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.stat-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 1rem;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.institution-header {
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.inst-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
}
.inst-nav-item {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.15s;
}
.inst-nav-item:hover { color: var(--fg); }
.inst-nav-item.active {
  background: var(--primary-dim);
  color: var(--primary);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px rgba(59,130,246,0.35); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.gpa-ring {
  position: relative;
  width: 72px;
  height: 72px;
}
.gpa-ring svg { transform: rotate(-90deg); }
.gpa-ring .ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 6; }
.gpa-ring .ring-fg { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.gpa-ring .gpa-val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gpa-ring .gpa-num { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.gpa-ring .gpa-label { font-size: 0.55rem; color: var(--fg-muted); margin-top: 2px; text-transform: uppercase; font-weight: 500; letter-spacing: 0.04em; }

.transcript-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.transcript-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.transcript-card .accent-bar { height: 3px; }
.transcript-card .tc-body {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
