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

:root {
  color-scheme: dark;
  --bg: #08090c;
  --text: #f4f5f7;
  --muted: #9ba3b4;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --gold: #d8b24d;
  --green: #36d399;
  --blue: #69a7ff;
  --red: #ff6b6b;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(216, 178, 77, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(105, 167, 255, 0.08), transparent 34%),
    var(--bg);
  overflow-x: hidden;
}

body.panel-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
  background: rgba(8, 9, 12, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.site-nav {
  grid-column: 2;
  justify-self: center;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(105, 167, 255, 0.3);
  border-radius: var(--radius);
  color: #06101d;
  background: var(--blue);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.site-nav a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(105, 167, 255, 0.1);
  outline: none;
}

.tracker-home,
.work-section {
  padding: 58px 0;
  scroll-margin-top: 86px;
}

.tracker-home {
  position: relative;
  overflow: hidden;
}

.tracker-home::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 50%;
  width: min(640px, 92vw);
  aspect-ratio: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.12), rgba(8, 9, 12, 0.88)),
    url("/assets/brain-profile.png") center / cover no-repeat;
  opacity: 0.18;
  filter: grayscale(1) contrast(1.08);
  transform: translateX(-50%);
  mask-image: radial-gradient(circle, #000 0 45%, rgba(0, 0, 0, 0.72) 58%, transparent 74%);
}

.tracker-home > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.tracker-home .section-heading h1 {
  color: #f4f5f7;
  font-size: clamp(4rem, 16vw, 11rem);
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.66);
}

.tracker-updated {
  max-width: 640px;
  margin: 10px auto 0;
  color: rgba(244, 245, 247, 0.64);
  font-size: 0.88rem;
  font-weight: 800;
}

.whatsapp-feedback {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 15px 8px 8px;
  border: 1px solid rgba(37, 211, 102, 0.52);
  border-radius: 999px;
  color: #eafff1;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(135deg, rgba(39, 230, 111, 0.28), rgba(7, 28, 16, 0.84) 58%),
    rgba(6, 18, 12, 0.82);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(37, 211, 102, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.whatsapp-feedback__ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: inherit;
  opacity: 0.68;
  animation: whatsapp-pulse 2200ms var(--ease) infinite;
}

.whatsapp-feedback:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(37, 211, 102, 0.82);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.54),
    0 0 42px rgba(37, 211, 102, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.whatsapp-feedback:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 5px;
}

.whatsapp-feedback__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #07150c;
  background:
    radial-gradient(circle at 32% 24%, #f3fff7, #74eda2 38%, #25d366 72%);
  box-shadow:
    0 12px 26px rgba(37, 211, 102, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.whatsapp-feedback__label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.whatsapp-feedback svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.exam-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.exam-strip span {
  min-height: 82px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.74);
}

.exam-strip strong,
.exam-strip time,
.exam-strip em {
  display: block;
}

.exam-strip strong {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-strip time,
.exam-strip em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.tracker-layout--home {
  align-items: stretch;
}

.semester-timeline {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.82);
}

.semester-timeline__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.semester-timeline__top span {
  display: grid;
  gap: 5px;
}

.semester-timeline strong {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.semester-timeline time,
.semester-timeline em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.race-track {
  position: relative;
  height: 82px;
  margin: 0 18px;
}

.race-track::before,
.race-track__fill {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  height: 10px;
  border-radius: 999px;
}

.race-track::before {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.race-track__fill {
  width: 0;
  max-width: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 850ms var(--ease);
}

.race-marker {
  position: absolute;
  top: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 86px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.race-marker b {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: #121722;
}

.race-marker time {
  color: var(--muted);
}

.race-marker--today b {
  color: #06110d;
  background: var(--green);
}

.race-marker--midterm b,
.race-marker--finals b {
  position: relative;
  width: 58px;
  height: 54px;
  color: transparent;
  border-color: transparent;
  background: url("/assets/race-flag.png") center / contain no-repeat;
  text-indent: -999px;
  overflow: hidden;
}

.semester-date-scale {
  position: relative;
  height: 48px;
  margin: -14px 18px 0;
}

.semester-date-scale__tick {
  position: absolute;
  top: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 78px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.semester-date-scale__tick i {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
}

.semester-date-scale__tick strong,
.semester-date-scale__tick time {
  display: block;
}

.semester-date-scale__tick strong {
  color: rgba(244, 245, 247, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.semester-date-scale__tick time {
  color: var(--muted);
  font-weight: 900;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  align-content: center;
  gap: 34px;
}

.intro {
  max-width: 760px;
}

.eyebrow,
.card__kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro__copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.card {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(216, 178, 77, 0.12), transparent 35%, rgba(105, 167, 255, 0.1));
  opacity: 0.48;
}

.card__topline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(54, 211, 153, 0.1);
}

.status-dot--blue {
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(105, 167, 255, 0.1);
}

.profile-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.profile-card h2,
.tracker-card__title,
.tracker-panel h2 {
  display: block;
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.socials {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.social-link__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #07100c;
}

.social-link--whatsapp .social-link__icon {
  background: var(--green);
}

.social-link--instagram .social-link__icon {
  background: var(--gold);
}

.social-link--youtube .social-link__icon {
  color: #1a0606;
  background: var(--red);
}

.tracker-card {
  width: 100%;
  padding: 28px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(105, 167, 255, 0.2);
}

.tracker-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.96) 0%, rgba(8, 9, 12, 0.74) 48%, rgba(8, 9, 12, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.12), rgba(8, 9, 12, 0.82)),
    url("/assets/medical-topic-sprite.png");
  background-size: auto, auto, 760px 760px;
  background-position: center, center, right -120px center;
  opacity: 0.78;
  transform: scale(1.03);
  transition: opacity 220ms var(--ease), transform 500ms var(--ease);
}

.tracker-card:hover::after,
.tracker-card:focus-visible::after {
  opacity: 0.92;
  transform: scale(1.07);
}

.tracker-card:hover,
.tracker-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(105, 167, 255, 0.48);
}

.tracker-card__body,
.tracker-card__footer,
.exam-grid {
  position: relative;
  z-index: 2;
}

.tracker-card__body {
  display: grid;
  gap: 20px;
}

.tracker-card__copy {
  display: block;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.exam-grid span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.exam-grid strong,
.exam-grid time {
  display: block;
}

.exam-grid strong {
  margin-bottom: 7px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exam-grid time {
  font-weight: 800;
}

.tracker-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 700;
}

.arrow {
  color: var(--blue);
  font-size: 1.4rem;
}

.tracker-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
}

.tracker-panel[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tracker-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.74);
  backdrop-filter: blur(16px);
}

.tracker-panel__content {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%),
    #0d1016;
  box-shadow: var(--shadow);
  transform: translateY(0) scale(1);
  transition: transform 260ms var(--ease);
}

.tracker-panel[aria-hidden="true"] .tracker-panel__content {
  transform: translateY(18px) scale(0.98);
}

.tracker-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.tracker-panel__note {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.tracker-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.subject-list {
  display: grid;
  gap: 10px;
}

.subject-row {
  display: contents;
}

.subject-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  overflow: hidden;
  animation: subject-in 360ms var(--ease) both;
  animation-delay: var(--delay);
}

.subject-button:hover,
.subject-button.active {
  border-color: rgba(105, 167, 255, 0.5);
  background: rgba(105, 167, 255, 0.09);
}

.subject-button strong,
.subject-button small,
.subject-button__summary {
  display: block;
}

.subject-button strong {
  margin-bottom: 3px;
  font-size: 1rem;
}

.subject-button small,
.subject-button__summary,
.subject-button__meta {
  color: var(--muted);
}

.subject-button__summary {
  margin-top: 6px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.subject-button__meta {
  font-weight: 800;
}

.subject-button__bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.subject-button__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.subject-inline-detail {
  display: none;
}

.subject-inline-detail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.subject-detail {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.subject-detail__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.subject-detail h2,
.subject-detail h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.subject-detail__count {
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 800;
}

.progress-wrap {
  margin-bottom: 18px;
}

.progress-wrap__labels {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.progress-wrap__labels strong {
  color: var(--text);
}

.progress-bar {
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 850ms var(--ease);
}

.subject-detail h4 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.subject-detail h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  animation: topic-pop 430ms var(--ease) both;
  animation-delay: var(--delay);
}

.topic-section-heading {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid rgba(105, 167, 255, 0.24);
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(105, 167, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: topic-pop 320ms var(--ease) both;
  animation-delay: var(--delay);
}

.topic-section-heading:first-child {
  margin-top: 0;
}

.topic-item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(54, 211, 153, 0.16), transparent 58%);
}

.topic-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 9, 12, 0.92) 0%, rgba(7, 9, 12, 0.7) 58%, rgba(7, 9, 12, 0.18) 100%);
}

.topic-item--taken {
  border-color: rgba(54, 211, 153, 0.34);
  background: rgba(54, 211, 153, 0.08);
}

.topic-item--taken::before {
  opacity: 1;
}

.topic-item--partial {
  border-color: rgba(216, 178, 77, 0.44);
  background: rgba(216, 178, 77, 0.08);
}

.topic-item--partial::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(216, 178, 77, 0.18), transparent 58%);
}

.topic-item--partial .topic-item__index {
  color: #181205;
  background: var(--gold);
}

.topic-item--partial .topic-item__state {
  border-color: rgba(216, 178, 77, 0.4);
  color: var(--gold);
  background: rgba(216, 178, 77, 0.12);
}

.topic-item--announced {
  border-color: rgba(105, 167, 255, 0.34);
  background: rgba(105, 167, 255, 0.06);
}

.topic-item--announced::before {
  opacity: 0.7;
  background: linear-gradient(135deg, rgba(105, 167, 255, 0.14), transparent 58%);
}

.topic-item--announced .topic-item__index {
  color: #06101d;
  background: var(--blue);
}

.topic-item--announced .topic-item__state {
  border-color: rgba(105, 167, 255, 0.34);
  color: var(--blue);
  background: rgba(105, 167, 255, 0.12);
}

.topic-item--remaining {
  color: rgba(244, 245, 247, 0.62);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.022);
}

.topic-item__image {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background-image: url("/assets/medical-topic-sprite.png");
  background-size: 400% 400%;
  background-position:
    calc(var(--tile-x) * 33.333%)
    calc(var(--tile-y) * 33.333%);
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.06);
  transition: transform 500ms var(--ease), opacity 220ms var(--ease);
}

.topic-item:hover .topic-item__image {
  opacity: 0.9;
  transform: scale(1.12);
}

.topic-item--remaining .topic-item__image {
  opacity: 0.42;
  filter: grayscale(0.35) saturate(0.8) contrast(0.9);
}

.topic-item__index {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #06110d;
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.topic-item--remaining .topic-item__index {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.topic-item__body,
.topic-item__label,
.topic-item__state,
.topic-item__note,
.topic-resources {
  position: relative;
  z-index: 2;
  display: block;
}

.topic-item__body {
  min-width: 0;
  max-width: none;
  flex: 1;
}

.topic-item__label {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.topic-item--remaining .topic-item__label {
  color: rgba(244, 245, 247, 0.58);
}

.topic-item__state {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 7px;
  border: 1px solid rgba(54, 211, 153, 0.34);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(54, 211, 153, 0.1);
}

.topic-item--remaining .topic-item__state {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.topic-item__note {
  margin-top: 7px;
  color: rgba(244, 245, 247, 0.74);
  font-size: 0.78rem;
  line-height: 1.45;
}

.topic-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.topic-resource {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.topic-resource:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.topic-resource--lecture {
  border-color: rgba(105, 167, 255, 0.3);
}

.topic-resource--audio {
  border-color: rgba(54, 211, 153, 0.3);
}

.topic-resource--pdf {
  border-color: rgba(216, 178, 77, 0.34);
  color: #f5d77b;
  background: rgba(216, 178, 77, 0.1);
}

.topic-resource--pending {
  color: rgba(244, 245, 247, 0.48);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.035);
}

.updates-hero {
  padding: 50px 0 22px;
}

.updates-hero .section-heading {
  max-width: 960px;
  text-align: center;
}

.updates-hero .section-heading h1 {
  color: transparent;
  background: linear-gradient(180deg, #f8fbff, #d8b24d);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.updates-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.updates-summary span {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.78);
}

.updates-summary strong,
.updates-summary em {
  display: block;
}

.updates-summary strong {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updates-summary em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.class-reps {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid rgba(105, 167, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(105, 167, 255, 0.08), transparent 56%),
    rgba(16, 18, 25, 0.76);
  box-shadow: var(--shadow);
}

.class-reps__top {
  display: grid;
  align-content: center;
}

.class-reps__top h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.class-reps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.updates-hero .class-reps__grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: min(100%, 380px);
  margin: 18px auto 0;
}

.class-rep {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 172px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.class-rep--link {
  cursor: pointer;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}

.class-rep--link:hover,
.class-rep--link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 22px rgba(37, 211, 102, 0.18));
  outline: none;
}

.updates-hero .class-rep {
  width: 92px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.class-rep__avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(105, 167, 255, 0.34);
  border-radius: 999px;
  color: #06101d;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.updates-hero .class-rep__avatar {
  width: 48px;
  height: 48px;
  border-color: rgba(105, 167, 255, 0.48);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.class-rep__avatar svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.class-rep__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 43%;
}

.updates-hero .class-rep__avatar svg {
  width: 28px;
  height: 28px;
}

.class-rep strong,
.class-rep small {
  display: block;
}

.class-rep strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.updates-hero .class-rep strong {
  max-width: 92px;
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.15;
}

.class-rep small {
  min-height: 28px;
  padding: 7px 9px;
  border: 1px solid rgba(216, 178, 77, 0.3);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(216, 178, 77, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.updates-hero .class-rep small {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.64rem;
}

.updates-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 48px;
}

.update-panel {
  position: relative;
  min-height: 240px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.update-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(105, 167, 255, 0.2);
  background: linear-gradient(135deg, rgba(105, 167, 255, 0.08), transparent 42%);
}

.update-panel > * {
  position: relative;
  z-index: 1;
}

.update-panel--primary {
  border-color: rgba(216, 178, 77, 0.38);
  background:
    linear-gradient(135deg, rgba(216, 178, 77, 0.1), transparent 54%),
    rgba(16, 18, 25, 0.86);
}

.update-panel--wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.update-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.update-panel h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  line-height: 1.12;
}

.update-panel p:not(.card__kicker) {
  color: var(--muted);
  line-height: 1.55;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid rgba(105, 167, 255, 0.32);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(105, 167, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill--due {
  color: var(--gold);
  border-color: rgba(216, 178, 77, 0.42);
  background: rgba(216, 178, 77, 0.12);
}

.status-pill--watch {
  color: #ffbd70;
  border-color: rgba(255, 189, 112, 0.4);
  background: rgba(255, 189, 112, 0.1);
}

.status-pill--exam,
.status-pill--open {
  color: var(--green);
  border-color: rgba(54, 211, 153, 0.34);
  background: rgba(54, 211, 153, 0.1);
}

.update-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.assignment-progress {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(216, 178, 77, 0.28);
  border-radius: var(--radius);
  background: rgba(216, 178, 77, 0.07);
}

.assignment-progress__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.assignment-progress__top strong {
  color: var(--gold);
  white-space: nowrap;
}

.assignment-progress__bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.assignment-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold), #ffbd70);
  transition: width 850ms var(--ease);
}

.assignment-progress small {
  color: rgba(244, 245, 247, 0.62);
  font-weight: 700;
  line-height: 1.45;
}

.update-facts div,
.exam-date-list span {
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(105, 167, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(105, 167, 255, 0.055);
}

.update-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.update-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.topic-tags span {
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(244, 245, 247, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.74rem;
  font-weight: 800;
}

.update-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: rgba(244, 245, 247, 0.86);
  background: rgba(255, 255, 255, 0.04);
}

.exam-date-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.exam-date-list strong,
.exam-date-list time {
  display: block;
}

.exam-date-list strong {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-date-list time {
  color: var(--text);
  font-weight: 900;
}

.work-section {
  border-top: 1px solid var(--line);
}

.work-hero {
  position: relative;
  padding: 58px 0 28px;
  overflow: hidden;
}

.work-hero::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto 0;
  height: 420px;
  pointer-events: none;
  background:
    linear-gradient(rgba(105, 167, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 167, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse at center, #000 0 40%, transparent 72%);
}

.work-hero > * {
  position: relative;
  z-index: 1;
}

.work-hero .section-heading {
  max-width: 980px;
}

.work-hero .section-heading h1 {
  color: transparent;
  background: linear-gradient(180deg, #f8fbff, #93bdff);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
}

.cv-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cv-strip span {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.cv-strip strong,
.cv-strip em {
  display: block;
}

.cv-strip strong {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-strip em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.work-section--page {
  border-top: 0;
  padding-top: 20px;
}

.section-heading--work {
  max-width: 930px;
}

.cv-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.82);
  box-shadow: var(--shadow);
}

.cv-dashboard__intro h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
}

.cv-dashboard__intro p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.metric-stack {
  display: grid;
  gap: 12px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill-meter {
  padding: 14px;
  border: 1px solid rgba(105, 167, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.skill-meter--large {
  border-color: rgba(54, 211, 153, 0.28);
  background:
    linear-gradient(135deg, rgba(54, 211, 153, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.skill-meter__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.skill-meter__top span {
  color: var(--text);
}

.skill-meter__top strong {
  color: var(--blue);
}

.skill-meter__bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.skill-meter__bar span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
}

.skill-meter small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.service-panel,
.agent-service,
.booking-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.82);
  box-shadow: var(--shadow);
}

.service-panel,
.agent-service,
.booking-panel,
.cv-dashboard,
.tool-showcase {
  position: relative;
  overflow: hidden;
}

.service-panel::before,
.agent-service::before,
.booking-panel::before,
.cv-dashboard::before,
.tool-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(105, 167, 255, 0.2);
  background: linear-gradient(135deg, rgba(105, 167, 255, 0.08), transparent 42%);
  opacity: 0.8;
}

.service-panel > *,
.agent-service > *,
.booking-panel > *,
.cv-dashboard > *,
.tool-showcase > * {
  position: relative;
  z-index: 1;
}

.service-panel {
  min-height: 280px;
  padding: 22px;
}

.service-panel--wide {
  grid-row: span 2;
}

.service-panel h3,
.service-panel h2,
.agent-service h3,
.agent-service h2,
.booking-panel h2,
.booking-panel h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.service-panel p:not(.card__kicker),
.agent-service p,
.booking-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding: 12px;
  border: 1px solid rgba(105, 167, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(105, 167, 255, 0.055);
  color: rgba(244, 245, 247, 0.86);
}

.clean-list--compact li {
  min-height: auto;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-row a,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: pointer;
}

.social-row a:hover,
.primary-action:hover {
  border-color: rgba(105, 167, 255, 0.48);
  background: rgba(105, 167, 255, 0.1);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.app-chip {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
}

.app-chip--blender { border-color: rgba(255, 132, 32, 0.5); background: rgba(255, 132, 32, 0.12); }
.app-chip--ps { border-color: rgba(49, 168, 255, 0.5); background: rgba(49, 168, 255, 0.12); }
.app-chip--au { border-color: rgba(123, 79, 255, 0.5); background: rgba(123, 79, 255, 0.12); }
.app-chip--pr { border-color: rgba(153, 102, 255, 0.5); background: rgba(153, 102, 255, 0.12); }
.app-chip--ai { border-color: rgba(255, 154, 0, 0.5); background: rgba(255, 154, 0, 0.12); }
.app-chip--ae { border-color: rgba(153, 102, 255, 0.5); background: rgba(153, 102, 255, 0.12); }
.app-chip--notion { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08); }
.app-chip--obsidian { border-color: rgba(143, 101, 255, 0.5); background: rgba(143, 101, 255, 0.12); }
.app-chip--word { border-color: rgba(47, 117, 255, 0.5); background: rgba(47, 117, 255, 0.12); }

.tool-showcase {
  display: grid;
  gap: 18px;
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.82);
  box-shadow: var(--shadow);
}

.tool-showcase h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
}

.app-grid--large {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(255, 255, 255, 0.04);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(105, 167, 255, 0.06);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 9px;
  opacity: 0.24;
  background: currentColor;
}

.app-card img,
.app-card small,
.app-card em,
.app-card i {
  position: relative;
  z-index: 1;
}

.app-card img {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.34));
}

.app-card small {
  color: rgba(244, 245, 247, 0.72);
  font-weight: 800;
  text-align: center;
}

.app-card em {
  color: var(--text);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.app-card i {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.app-card i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, currentColor, rgba(244, 245, 247, 0.92));
}

.app-card--blender { color: #ff8a21; border-color: rgba(255, 138, 33, 0.4); }
.app-card--ps { color: #31a8ff; border-color: rgba(49, 168, 255, 0.4); }
.app-card--au { color: #9999ff; border-color: rgba(153, 153, 255, 0.4); }
.app-card--pr { color: #9999ff; border-color: rgba(153, 153, 255, 0.4); }
.app-card--ai { color: #ff9a00; border-color: rgba(255, 154, 0, 0.4); }
.app-card--ae { color: #9999ff; border-color: rgba(153, 153, 255, 0.4); }
.app-card--notion { color: #f4f5f7; border-color: rgba(255, 255, 255, 0.34); }
.app-card--obsidian { color: #8f65ff; border-color: rgba(143, 101, 255, 0.4); }
.app-card--word { color: #2f75ff; border-color: rgba(47, 117, 255, 0.4); }

.agent-service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-bottom: 14px;
  padding: 24px;
}

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

.benefit-grid span {
  min-height: 58px;
  padding: 13px;
  border: 1px solid rgba(54, 211, 153, 0.22);
  border-radius: var(--radius);
  color: rgba(244, 245, 247, 0.9);
  background: rgba(54, 211, 153, 0.06);
  font-weight: 700;
}

.booking-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  padding: 24px;
}

.booking-form {
  display: grid;
  gap: 12px;
}

.booking-form label {
  display: grid;
  gap: 7px;
}

.booking-form label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: rgba(105, 167, 255, 0.55);
}

.primary-action {
  color: #06101d;
  border-color: transparent;
  background: var(--blue);
}

.primary-action:hover {
  background: #8bbcff;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  width: min(620px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.redirect-page h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.redirect-link {
  display: inline-flex;
  justify-self: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.history-hero {
  padding: 58px 0 28px;
}

.history-hero .section-heading h1 {
  color: transparent;
  background: linear-gradient(180deg, #f8fbff, #d8b24d 70%, #69a7ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.history-progress {
  position: sticky;
  top: 82px;
  z-index: 24;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(13, 16, 23, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.history-progress strong,
.history-progress span {
  display: block;
}

.history-progress strong {
  color: var(--blue);
  font-size: 1.35rem;
}

.history-progress span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.history-progress__bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.history-progress__bar span {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
  transition: width 350ms var(--ease);
}

.history-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 0 0 58px;
  align-items: start;
}

.history-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.history-panel,
.history-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 18, 25, 0.82);
  box-shadow: var(--shadow);
}

.history-panel {
  min-height: 260px;
  padding: 20px;
}

.history-panel--wide {
  grid-column: 1 / -1;
}

.history-panel__top,
.history-summary__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.history-panel h2,
.history-summary h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
}

.history-fields {
  display: grid;
  gap: 11px;
}

.history-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-fields--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-fields--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-fields label,
.history-form textarea {
  min-width: 0;
}

.history-fields label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-fields input,
.history-fields select,
.history-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.history-fields input,
.history-fields select {
  min-height: 45px;
  padding: 10px 12px;
}

.history-form textarea {
  display: block;
  margin-top: 12px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

.history-fields input:focus,
.history-fields select:focus,
.history-form textarea:focus {
  outline: none;
  border-color: rgba(105, 167, 255, 0.55);
}

.history-age {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(216, 178, 77, 0.26);
  border-radius: var(--radius);
  background: rgba(216, 178, 77, 0.055);
}

.history-age summary {
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
}

.history-age .history-fields {
  margin-top: 12px;
}

.history-conditional {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(54, 211, 153, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(54, 211, 153, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.035);
  animation: accordion-open 240ms var(--ease) both;
}

.history-conditional[hidden],
.history-other-field[hidden] {
  display: none;
}

.history-conditional h3 {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-check-grid,
.history-check-list,
.history-toggle-grid,
.history-system-grid {
  display: grid;
  gap: 10px;
}

.history-check-grid,
.history-system-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.history-check-list {
  margin-top: 14px;
}

.history-check-grid label,
.history-check-list label,
.history-toggle-grid label,
.history-system-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 42px;
  padding: 11px;
  border: 1px solid rgba(105, 167, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(244, 245, 247, 0.86);
  background: rgba(105, 167, 255, 0.055);
  font-weight: 700;
  line-height: 1.4;
}

.history-check-grid input,
.history-check-list input,
.history-toggle-grid input,
.history-system-grid input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--green);
}

.history-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.history-summary pre {
  min-height: 480px;
  max-height: calc(100vh - 280px);
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: rgba(244, 245, 247, 0.88);
  background: rgba(255, 255, 255, 0.04);
  white-space: pre-wrap;
  overflow: auto;
  line-height: 1.55;
  font-family: inherit;
}

.history-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
}

@keyframes subject-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes topic-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes accordion-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whatsapp-pulse {
  0% {
    opacity: 0.62;
    transform: scale(0.96);
  }
  70% {
    opacity: 0;
    transform: scale(1.16);
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@media (max-width: 860px) {
  main,
  .site-header {
    width: min(100% - 28px, 640px);
  }

  .site-header {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .site-nav {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .site-nav a {
    padding: 9px 6px;
    font-size: 0.74rem;
    text-align: center;
  }

  .tracker-home,
  .work-section {
    padding: 34px 0;
    scroll-margin-top: 130px;
  }

  .shell {
    width: min(100% - 28px, 640px);
    padding: 34px 0;
    align-content: start;
  }

  .cards,
  .tracker-layout,
  .exam-grid,
  .exam-strip,
  .updates-summary,
  .updates-board,
  .update-facts,
  .cv-strip,
  .cv-dashboard,
  .language-grid,
  .work-grid,
  .agent-service,
  .booking-panel,
  .history-tool,
  .history-form,
  .history-fields--two,
  .history-fields--three,
  .history-fields--four,
  .history-check-grid,
  .history-toggle-grid,
  .history-system-grid {
    grid-template-columns: 1fr;
  }

  .history-hero {
    padding: 34px 0 22px;
  }

  .history-tool {
    padding-bottom: 34px;
  }

  .history-progress {
    grid-template-columns: 1fr;
    top: 126px;
    padding: 14px;
  }

  .history-summary {
    position: static;
  }

  .history-summary pre {
    min-height: 320px;
    max-height: none;
  }

  .card {
    min-height: auto;
  }

  .profile-card,
  .tracker-card {
    min-height: 380px;
  }

  .tracker-panel {
    padding: 12px;
  }

  .tracker-panel__content {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .tracker-panel__header,
  .subject-detail__header,
  .assignment-progress__top,
  .progress-wrap__labels {
    flex-direction: column;
    align-items: flex-start;
  }

  .class-reps {
    grid-template-columns: 1fr;
  }

  .class-reps__grid {
    grid-template-columns: 1fr;
  }

  .subject-detail {
    display: none;
  }

  .service-panel,
  .agent-service,
  .booking-panel {
    padding: 18px;
  }

  .subject-list {
    gap: 12px;
  }

  .subject-row {
    display: grid;
    gap: 0;
    animation: subject-in 360ms var(--ease) both;
    animation-delay: var(--delay);
  }

  .subject-row.expanded .subject-button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: rgba(105, 167, 255, 0.52);
    background: rgba(105, 167, 255, 0.11);
  }

  .subject-inline-detail {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(105, 167, 255, 0.34);
    border-top: 0;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(105, 167, 255, 0.08), rgba(255, 255, 255, 0.025)),
      rgba(7, 9, 12, 0.8);
    animation: accordion-open 320ms var(--ease) both;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .app-grid,
  .app-grid--large {
    grid-template-columns: 1fr;
  }

  .semester-timeline__top {
    flex-direction: column;
  }

  .race-track {
    height: 112px;
    margin: 0 8px;
  }

  .semester-date-scale {
    height: 58px;
    margin: -20px 8px 0;
  }

  .semester-date-scale__tick {
    min-width: 58px;
    font-size: 0.6rem;
  }

  .race-marker {
    min-width: 72px;
    font-size: 0.66rem;
  }

  .whatsapp-feedback {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
    padding: 7px;
  }

  .whatsapp-feedback__icon {
    width: 40px;
    height: 40px;
  }

  .whatsapp-feedback__label {
    display: none;
  }

  .whatsapp-feedback svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 520px) {
  .section-heading h1,
  .section-heading h2 {
    font-size: 2.45rem;
  }

  .profile-card,
  .tracker-card {
    padding: 20px;
  }

  .profile-card h2,
  .tracker-card__title,
  .tracker-panel h2 {
    font-size: 2.25rem;
  }

  .tracker-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
