@font-face {
  font-family: IRANYekanXFaNum;
  src: url("../fonts/IRANYekanXFaNum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANYekanXFaNum;
  src: url("../fonts/IRANYekanXFaNum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANYekanXFaNum;
  src: url("../fonts/IRANYekanXFaNum-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #6548e8;
  --primary-dark: #4930c7;
  --primary-soft: #f0edff;
  --primary-glow: rgba(101, 72, 232, 0.2);

  --accent: #12a9a0;
  --accent-dark: #087c75;
  --accent-soft: #e9f9f7;

  --ink: #172335;
  --muted: #6c7789;
  --border: #e5e4ec;
  --surface: #fff;
  --surface-soft: #fafaff;
  --page: #fdfdff;

  --danger: #d84b61;
  --success: #169b75;
  --warning: #c58a19;

  --shadow-xs: 0 6px 18px rgba(31, 35, 62, 0.06);
  --shadow: 0 20px 55px rgba(46, 38, 87, 0.1);
  --shadow-lg: 0 30px 80px rgba(67, 48, 160, 0.14);
}

body.dark-mode {
  --primary: #9b86ff;
  --primary-dark: #7f66f3;
  --primary-soft: #29243d;
  --primary-glow: rgba(155, 134, 255, 0.22);

  --accent: #43c8bf;
  --accent-dark: #66ded6;
  --accent-soft: #163532;

  --ink: #f3f1fb;
  --muted: #aba8b9;
  --border: #353341;
  --surface: #1d1d27;
  --surface-soft: #181821;
  --page: #101116;

  --shadow-xs: 0 6px 18px rgba(0, 0, 0, 0.16);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: IRANYekanXFaNum, Tahoma, Arial, sans-serif;
  line-height: 1.8;
  background-color: var(--page);
  background-image:
    radial-gradient(circle at 90% 8%, rgba(101, 72, 232, 0.08), transparent 28%),
    radial-gradient(circle at 8% 42%, rgba(18, 169, 160, 0.08), transparent 30%),
    radial-gradient(rgba(100, 100, 120, 0.17) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  background-attachment: fixed;
  transition: background 0.3s, color 0.3s;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

.main-container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.logo-dark {
  display: none !important;
}

.dark-mode .logo-light {
  display: none !important;
}

.dark-mode .logo-dark {
  display: block !important;
}

/* Header and shared brand */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  min-height: 78px;
  display: grid;
  grid-template-columns: 265px 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(225, 223, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xs);
}

.dark-mode .site-header {
  background: rgba(29, 29, 39, 0.86);
  border-color: var(--border);
}

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

.brand-lockup > img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-lockup > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-lockup strong {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
}

.brand-lockup small {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  left: 50%;
  bottom: 2px;
  height: 3px;
  border-radius: 5px;
  background: var(--primary);
  transition: 0.2s;
}

.main-nav a:hover::after {
  right: 35%;
  left: 35%;
}

.partner-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-lockup span {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.partner-lockup img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.partner-lockup img:first-child {
  width: 46px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.team-link,
.theme-toggle,
.nav-toggle {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  font-size: 10px;
  font-weight: 700;
  transition: 0.2s;
}

.team-link {
  padding: 0 14px;
}

.theme-toggle {
  width: 40px;
  font-size: 18px;
}

.nav-toggle {
  display: none;
  padding: 0 13px;
}

.team-link:hover,
.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.messages {
  max-width: 900px;
  margin: 16px auto 0;
}

.message {
  padding: 13px 17px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  box-shadow: var(--shadow-xs);
}

.message.success {
  color: var(--success);
  background: rgba(22, 155, 117, 0.1);
}

.message.error {
  color: var(--danger);
  background: rgba(216, 75, 97, 0.09);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.conversion-button {
  border: 0;
  border-radius: 18px;
  min-height: 46px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.24s;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px var(--primary-glow);
}

.btn-primary.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.btn-secondary {
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(101, 72, 232, 0.12);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.btn-large {
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 19px;
  font-size: 14px;
}

.btn-primary.full,
.btn-secondary.full {
  width: 100%;
}

.btn-secondary.small {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 13px;
  font-size: 10px;
}

/* Home hero */
.rah-hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  padding: 75px 36px 48px;
  position: relative;
  overflow: hidden;
}

.rah-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -220px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 72, 232, 0.08), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.program-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 17px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: clamp(48px, 5.7vw, 76px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -1.8px;
}

.hero-copy h1 span {
  background: linear-gradient(110deg, var(--primary), #4e35db 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 24px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 16px;
}

.official-title {
  font-size: 14px;
  color: var(--muted);
  margin-top: 11px;
  max-width: 650px;
}

.collaboration-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
  margin-top: 10px;
}

.collaboration-note strong {
  color: var(--ink);
}

.collaboration-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 27px;
}

.hero-journey {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.hero-journey::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 72, 232, 0.1), transparent 68%);
  filter: blur(20px);
}

.hero-journey img {
  position: relative;
  width: min(100%, 560px);
  border-radius: 34px;
  mix-blend-mode: multiply;
}

.dark-mode .hero-journey {
  border-radius: 34px;
  padding: 12px;
}

.dark-mode .hero-journey img {
  mix-blend-mode: normal;
}

.announcement {
  margin: 0 auto 22px;
  max-width: 900px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(18, 169, 160, 0.2);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* Journey and paths */
.journey-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.journey-heading span,
.journey-heading small {
  display: block;
}

.journey-heading span {
  font-size: 24px;
  font-weight: 900;
}

.journey-heading span::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 6px;
}

.journey-heading small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emoji-tile {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  font-size: 28px;
  box-shadow: 0 10px 22px var(--primary-glow);
}

.journey-step b {
  font-size: 12px;
}

.journey-step p {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 3px;
}

.journey-arrow {
  color: #c5c3ce;
  font-size: 20px;
}

.paths-section {
  padding: 95px 0 42px;
}

.home-section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 35px;
}

.home-section-heading > span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.home-section-heading h2 {
  font-size: 34px;
  line-height: 1.5;
  margin: 4px 0;
}

.home-section-heading p {
  font-size: 12px;
  color: var(--muted);
}

.path-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.path-card {
  min-height: 275px;
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: center;
  gap: 20px;
  padding: 34px;
  border-radius: 32px;
  border: 1px solid;
  overflow: hidden;
  position: relative;
  transition: 0.3s;
}

.path-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.academic-path {
  background: linear-gradient(135deg, rgba(101, 72, 232, 0.08), rgba(255, 255, 255, 0.75));
  border-color: rgba(101, 72, 232, 0.22);
}

.career-path {
  background: linear-gradient(135deg, rgba(18, 169, 160, 0.1), rgba(255, 255, 255, 0.75));
  border-color: rgba(18, 169, 160, 0.26);
}

.dark-mode .academic-path {
  background: linear-gradient(135deg, #28233c, #1d1d27);
}

.dark-mode .career-path {
  background: linear-gradient(135deg, #153532, #1d1d27);
}

.path-copy span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.path-copy h3 {
  font-size: 31px;
  margin: 7px 0;
}

.academic-path h3,
.academic-path b {
  color: var(--primary);
}

.career-path h3,
.career-path b {
  color: var(--accent-dark);
}

.path-copy p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
  max-width: 430px;
}

.path-copy b {
  display: inline-block;
  font-size: 11px;
  margin-top: 17px;
}

.path-emoji {
  width: 170px;
  height: 170px;
  border-radius: 42px;
  display: grid;
  place-items: center;
  font-size: 86px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 18px 40px rgba(55, 45, 115, 0.09);
  transform: rotate(-3deg);
}

.career-path .path-emoji {
  transform: rotate(3deg);
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 30px 0 38px;
  padding: 24px 10px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
}

.process-strip article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 24px;
  border-left: 1px dashed var(--border);
}

.process-strip article:last-child {
  border-left: 0;
}

.process-strip article > span {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 27px;
  flex: 0 0 auto;
}

.process-strip b {
  font-size: 13px;
}

.process-strip p {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 3px;
}

.conversion-band {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 32px 36px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(120deg, #3520a9, var(--primary) 62%, #735fff);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.conversion-band::after {
  content: "";
  position: absolute;
  left: -50px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.conversion-band > div {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.conversion-band > div > span {
  font-size: 42px;
}

.conversion-band strong,
.conversion-band small {
  display: block;
}

.conversion-band strong {
  font-size: 17px;
}

.conversion-band small {
  color: #8ef2ea;
  font-size: 11px;
  margin-top: 5px;
}

.conversion-band > p {
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.conversion-button {
  background: #fff;
  color: var(--primary);
  min-width: 200px;
  position: relative;
  z-index: 1;
}

.conversion-button:hover {
  transform: translateY(-3px);
}

.institutional-note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: center;
  margin: 45px 0 10px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.institutional-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.institutional-logos img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.institutional-note span {
  font-size: 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.institutional-note h2 {
  font-size: 24px;
  margin: 5px 0;
}

.institutional-note p {
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
}

/* Panels, forms and status */
.page-panel {
  max-width: 980px;
  margin: 44px auto 0;
}

.form-shell {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 38px;
  box-shadow: var(--shadow);
}

.dark-mode .form-shell {
  background: rgba(29, 29, 39, 0.92);
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 22px;
}

.form-header h1 {
  font-size: 32px;
  line-height: 1.5;
}

.form-header p {
  font-size: 12px;
  color: var(--muted);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 7px;
}

.route-badge {
  padding: 9px 14px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.progress {
  height: 8px;
  border-radius: 99px;
  background: var(--primary-soft);
  overflow: hidden;
  margin-bottom: 26px;
}

.progress span {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: 0.3s;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.wide,
.wide {
  grid-column: 1 / -1;
}

.field label,
.question-card label {
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.question-card input,
.question-card select,
.question-card textarea,
.login-shell input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 13px 14px;
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
  font-size: 12px;
  transition: 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.question-card input:focus,
.question-card select:focus,
.question-card textarea:focus,
.login-shell input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.field textarea,
.question-card textarea {
  min-height: 115px;
  resize: vertical;
}

.errorlist {
  font-size: 10px;
  color: var(--danger);
}

.choice-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 13px 15px;
  background: var(--surface);
  cursor: pointer;
}

.choice-card span {
  font-size: 10px;
  color: var(--muted);
}

.choice-card b {
  font-size: 11px;
}

.choice-card input {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
}

.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.question-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 19px;
  margin-bottom: 12px;
  background: var(--surface);
}

.question-card label {
  display: block;
  line-height: 1.9;
  margin-bottom: 10px;
}

.success-shell {
  text-align: center;
  max-width: 650px;
  padding: 48px;
}

.success-mark {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  background: var(--primary-soft);
  font-size: 39px;
}

.success-shell h1 {
  font-size: 30px;
}

.success-shell > p {
  max-width: 450px;
  margin: 8px auto 21px;
  color: var(--muted);
  font-size: 12px;
}

.tracking-code {
  display: block;
  margin: 15px auto;
  border: 1px dashed var(--primary);
  border-radius: 18px;
  padding: 12px 28px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 26px;
  letter-spacing: 4px;
  font-weight: 900;
  direction: ltr;
}

.success-meta {
  max-width: 380px;
  margin: 0 auto 22px;
  padding: 16px;
  border-radius: 17px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  text-align: right;
}

.success-meta span {
  font-size: 10px;
  color: var(--muted);
}

.success-meta strong {
  font-size: 11px;
}

.status-search {
  max-width: 550px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.status-result {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-kicker {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.section-heading h2 {
  font-size: 23px;
}

.status-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  background: var(--surface);
  margin-bottom: 12px;
}

.status-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 13px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 11px;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row span {
  color: var(--muted);
}

.status-tag {
  padding: 6px 11px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary) !important;
  font-weight: 800;
}

.status-tag.status-completed {
  background: rgba(22, 155, 117, 0.1);
  color: var(--success) !important;
}

.status-tag.status-cancelled {
  background: rgba(216, 75, 97, 0.1);
  color: var(--danger) !important;
}

.subsection-title {
  font-size: 19px;
  margin: 25px 0 12px;
}

.action-list {
  margin-top: 13px;
  padding: 14px;
  border-radius: 15px;
  background: var(--accent-soft);
  font-size: 11px;
}

.action-list li {
  margin-top: 4px;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed var(--border);
  border-radius: 22px;
  color: var(--muted);
}

.empty-state h1 {
  color: var(--ink);
  font-size: 25px;
}

/* Team dashboard */
.dashboard-panel {
  max-width: 1180px;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-toolbar h1 {
  font-size: 31px;
}

.dashboard-toolbar p {
  font-size: 11px;
  color: var(--muted);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-actions form {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stats-grid > div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface-soft);
}

.stats-grid strong {
  display: block;
  color: var(--primary);
  font-size: 27px;
}

.stats-grid span {
  font-size: 10px;
  color: var(--muted);
}

.queue-list {
  display: grid;
  gap: 11px;
}

.queue-item {
  display: grid;
  grid-template-columns: 46px 1.35fr 0.78fr 0.7fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: 0.2s;
}

.queue-item:hover {
  transform: translateX(-3px);
  border-color: rgba(101, 72, 232, 0.35);
  box-shadow: var(--shadow-xs);
}

.queue-rank {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.queue-person strong,
.queue-person span,
.queue-meta strong,
.queue-meta span {
  display: block;
}

.queue-person strong {
  font-size: 12px;
}

.queue-person span,
.queue-meta span {
  font-size: 9px;
  color: var(--muted);
}

.queue-person p {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

.queue-meta strong {
  font-size: 10px;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.detail-topbar h1 {
  font-size: 29px;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 28px;
}

.profile-summary div {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-soft);
}

.profile-summary span,
.profile-summary strong {
  display: block;
}

.profile-summary span {
  font-size: 9px;
  color: var(--muted);
}

.profile-summary strong {
  font-size: 11px;
  margin-top: 4px;
}

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

.answers-list article {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.answers-list span {
  display: block;
  color: var(--primary);
  font-size: 10px;
}

.answers-list p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

.divider {
  border: 0;
  border-top: 1px dashed var(--border);
  margin: 30px 0;
}

.report-form textarea {
  min-height: 130px;
}

.login-shell {
  max-width: 500px;
  text-align: center;
  padding: 45px;
}

.login-emoji {
  width: 75px;
  height: 75px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--primary-soft);
  font-size: 37px;
}

.login-shell h1 {
  font-size: 28px;
}

.login-shell > p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 22px;
}

.login-shell form {
  display: grid;
  gap: 14px;
  text-align: right;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr auto;
  align-items: center;
  gap: 34px;
  margin-top: 48px;
  padding: 26px 8px 8px;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: 18px;
}

.footer-brand span {
  font-size: 8px;
  color: var(--muted);
  max-width: 280px;
}

.footer-collaboration {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-collaboration > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-collaboration img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-collaboration span {
  font-size: 8px;
  color: var(--muted);
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-size: 9px;
  font-weight: 800;
  color: var(--primary);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 230px 1fr auto;
  }

  .partner-lockup {
    display: none;
  }

  .main-nav {
    gap: 17px;
  }

  .rah-hero {
    gap: 30px;
    padding-inline: 10px;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .journey-band {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .journey-heading {
    grid-column: 1 / -1;
    text-align: center;
  }

  .journey-heading span::after {
    margin-inline: auto;
  }

  .journey-arrow {
    display: none;
  }

  .path-card {
    grid-template-columns: 1fr 130px;
  }

  .path-emoji {
    width: 125px;
    height: 125px;
    font-size: 62px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    display: none;
  }
}

@media (max-width: 820px) {
  .main-container {
    width: min(100% - 18px, 720px);
    padding-top: 9px;
  }

  .site-header {
    top: 7px;
    grid-template-columns: 1fr auto;
    padding: 9px 10px;
    border-radius: 20px;
  }

  .brand-lockup > img {
    width: 44px;
    height: 44px;
  }

  .brand-lockup strong {
    font-size: 19px;
  }

  .brand-lockup small {
    font-size: 8px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .team-link {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 13px;
    text-align: right;
  }

  .main-nav a::after {
    display: none;
  }

  .rah-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 55px 10px 28px;
    gap: 20px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 46px;
    letter-spacing: -1px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .official-title {
    margin-inline: auto;
  }

  .collaboration-note,
  .hero-actions {
    justify-content: center;
  }

  .hero-journey {
    min-height: 0;
  }

  .hero-journey img {
    width: min(100%, 540px);
  }

  .journey-band {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .journey-step {
    padding: 10px 0;
    border-top: 1px dashed var(--border);
  }

  .paths-section {
    padding-top: 65px;
  }

  .path-cards {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 230px;
  }

  .process-strip {
    grid-template-columns: 1fr;
  }

  .process-strip article {
    border-left: 0;
    border-bottom: 1px dashed var(--border);
    padding: 16px;
  }

  .process-strip article:last-child {
    border-bottom: 0;
  }

  .conversion-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .conversion-band > div {
    justify-content: center;
  }

  .conversion-band .conversion-button {
    margin: auto;
  }

  .institutional-note {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .institutional-note p {
    max-width: 620px;
    margin: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-collaboration {
    justify-content: center;
  }

  .footer-collaboration {
    flex-direction: column;
  }

  .form-shell {
    padding: 27px 20px;
  }

  .page-panel {
    margin-top: 28px;
  }

  .form-grid,
  .stats-grid,
  .profile-summary {
    grid-template-columns: 1fr;
  }

  .field.wide,
  .wide {
    grid-column: auto;
  }

  .dashboard-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions form:first-child,
  .dashboard-actions form:first-child button {
    width: 100%;
  }

  .queue-item {
    grid-template-columns: 42px 1fr auto;
  }

  .queue-meta {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-lockup small {
    display: none;
  }

  .theme-toggle,
  .nav-toggle {
    height: 36px;
  }

  .theme-toggle {
    width: 36px;
  }

  .rah-hero {
    padding-top: 42px;
  }

  .program-badge {
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .official-title {
    font-size: 11px;
  }

  .collaboration-note {
    font-size: 8px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-large {
    width: 100%;
  }

  .journey-band {
    border-radius: 22px;
  }

  .journey-heading span {
    font-size: 21px;
  }

  .home-section-heading h2 {
    font-size: 26px;
  }

  .path-card {
    grid-template-columns: 1fr 90px;
    padding: 23px 20px;
    border-radius: 25px;
  }

  .path-copy h3 {
    font-size: 24px;
  }

  .path-copy p {
    font-size: 10px;
  }

  .path-emoji {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    font-size: 44px;
  }

  .conversion-band {
    padding: 26px 20px;
  }

  .conversion-band > p {
    font-size: 12px;
  }

  .institutional-note {
    padding: 24px 18px;
  }

  .form-header {
    flex-direction: column;
  }

  .form-header h1 {
    font-size: 26px;
  }

  .route-badge {
    align-self: flex-start;
  }

  .form-nav {
    flex-direction: column;
  }

  .form-nav .btn-primary,
  .form-nav .btn-secondary {
    width: 100%;
  }

  .form-nav > span {
    display: none;
  }

  .success-shell {
    padding: 35px 18px;
  }

  .tracking-code {
    font-size: 22px;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .dashboard-actions form,
  .dashboard-actions button {
    width: 100%;
  }

  .queue-item {
    grid-template-columns: 40px 1fr auto;
  }

  .site-footer {
    margin-top: 34px;
  }

  .footer-collaboration span {
    max-width: 290px;
  }
}

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

/* Adaptive interview form */
[hidden] {
  display: none !important;
}

.adaptive-form-shell {
  max-width: 980px;
}

.adaptive-header {
  align-items: flex-start;
}

.form-meta-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}

.form-meta-bar span {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-meta-bar b {
  color: var(--primary);
}

.adaptive-progress {
  height: 8px;
}

.privacy-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
}

.privacy-note b {
  white-space: nowrap;
  color: var(--accent);
}

.privacy-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-tracker {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.section-tracker span {
  color: var(--primary);
  font-weight: 800;
}

.section-tracker strong {
  font-size: 1.05rem;
}

.section-tracker small {
  color: var(--muted);
}

.question-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.question-heading > label {
  font-weight: 800;
  line-height: 1.8;
}

.required-chip,
.optional-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
}

.required-chip {
  background: color-mix(in srgb, var(--primary) 13%, transparent);
  color: var(--primary);
}

.optional-chip {
  background: var(--surface-soft);
  color: var(--muted);
}

.field-help {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.option-pill {
  position: relative;
}

.option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  text-align: center;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  transition: 0.2s;
}

.option-pill input:checked + span {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 13%, var(--surface));
  color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.option-pill input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.scale-options {
  grid-template-columns: repeat(5, 1fr);
}

.range-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.range-field input {
  flex: 1;
  accent-color: var(--primary);
}

.range-field output {
  min-width: 52px;
  font-weight: 900;
  color: var(--primary);
}

.adaptive-question {
  animation: questionIn 0.22s ease;
}

.adaptive-question.question-error {
  border-color: #ef6b6b;
  box-shadow: 0 0 0 3px #ef6b6b1a;
}

.adaptive-question.question-error::after {
  content: "پاسخ این سؤال برای ادامه لازم است";
  display: block;
  color: #df5454;
  font-size: 0.8rem;
  margin-top: 9px;
}

@keyframes questionIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.adaptive-nav {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

@media (max-width: 700px) {
  .scale-options {
    grid-template-columns: 1fr;
  }

  .option-grid {
    grid-template-columns: 1fr 1fr;
  }

  .privacy-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-tracker {
    grid-template-columns: auto 1fr;
  }

  .section-tracker small {
    grid-column: 2;
  }

  .adaptive-nav {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
  }

  .adaptive-nav .btn-primary {
    width: 100%;
  }

  .form-meta-bar span {
    font-size: 0.75rem;
  }
}

.interview-brief {
  margin: 24px 0 34px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 7%, var(--surface)),
    var(--surface)
  );
}

.brief-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brief-heading h2 {
  font-size: 24px;
  margin-top: 4px;
}

.brief-count {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
}

.brief-overview {
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.9;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.brief-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.brief-card h3 {
  font-size: 13px;
  margin-bottom: 8px;
}

.brief-card ul {
  margin: 0;
  padding-right: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 2;
}

.brief-card.strengths h3 {
  color: var(--accent);
}

.brief-card.risks h3 {
  color: #df5f69;
}

.brief-card.discussion h3,
.brief-card.actions h3 {
  color: var(--primary);
}

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

  .brief-heading {
    flex-direction: column;
  }

  .brief-count {
    align-self: flex-start;
  }
}

/* Student account and longitudinal workflow */
.back-link {
  display: block;
  width: max-content;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 7px;
}

.back-link:hover {
  color: var(--primary);
}

.student-entry {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.entry-intro {
  padding: 24px;
}

.entry-intro h1 {
  font-size: 42px;
  line-height: 1.45;
}

.entry-intro h1 em {
  font-style: normal;
  color: var(--primary);
}

.entry-intro > p {
  color: var(--muted);
  font-size: 13px;
  max-width: 470px;
  margin: 14px 0 22px;
}

.entry-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.entry-benefits span {
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}

.entry-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface-soft);
}

.entry-card h2 {
  font-size: 23px;
  margin-top: 18px;
}

.entry-card [data-tab] > p {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}

.entry-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.entry-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 800;
}

.entry-tabs button.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.compact-form {
  display: grid;
  gap: 14px;
}

.compact-form.form-grid {
  display: grid;
}

.compact-form .btn-primary {
  margin-top: 5px;
}

.student-dashboard {
  max-width: 1180px;
}

.student-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.student-dashboard-head h1 {
  font-size: 32px;
}

.student-dashboard-head p {
  font-size: 11px;
  color: var(--muted);
}

.access-code-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 17px 20px;
  border: 1px dashed var(--primary);
  border-radius: 20px;
  background: var(--primary-soft);
}

.access-code-banner div span,
.access-code-banner div strong {
  display: block;
}

.access-code-banner div span {
  font-size: 9px;
  color: var(--muted);
}

.access-code-banner div strong {
  font-size: 25px;
  letter-spacing: 3px;
  color: var(--primary);
}

.access-code-banner button {
  border: 0;
  border-radius: 12px;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
}

.access-code-banner p {
  grid-column: 1 / -1;
  font-size: 9px;
  color: var(--muted);
}

.semester-signal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
}

.semester-signal > span {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
}

.semester-signal strong,
.semester-signal small {
  display: block;
}

.semester-signal strong {
  font-size: 13px;
}

.semester-signal small {
  font-size: 9px;
  color: var(--muted);
}

.student-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.student-track {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.student-track.locked {
  background: var(--surface-soft);
}

.track-head,
.track-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.track-head > div {
  justify-content: flex-start;
}

.track-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 25px;
}

.track-head small,
.track-head h2 {
  display: block;
}

.track-head small {
  font-size: 8px;
  color: var(--muted);
}

.track-head h2 {
  font-size: 20px;
}

.track-state {
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.track-state.open {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.track-state.done {
  background: rgba(22, 155, 117, 0.1);
  color: var(--success);
}

.locked-message {
  margin: 16px 0;
  padding: 15px;
  border-radius: 17px;
  background: var(--surface);
  border: 1px dashed var(--border);
}

.locked-message strong,
.locked-message span {
  display: block;
}

.locked-message strong {
  font-size: 12px;
}

.locked-message span {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

.session-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 20px 0;
}

.session-node {
  min-width: 0;
  padding: 10px 7px;
  border: 1px solid var(--border);
  border-radius: 15px;
  text-align: center;
  background: var(--surface-soft);
}

.session-node .node-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 5px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.session-node strong,
.session-node small,
.session-node time {
  display: block;
}

.session-node strong {
  font-size: 13px;
}

.session-node small,
.session-node time {
  font-size: 10px;
  color: var(--muted);
}

.session-node.completed {
  border-color: rgba(22, 155, 117, 0.3);
  background: rgba(22, 155, 117, 0.06);
}

.session-node.completed .node-number {
  background: var(--success);
  color: #fff;
}

.session-node.scheduled {
  border-color: rgba(101, 72, 232, 0.3);
  background: var(--primary-soft);
}

.session-node.scheduled .node-number,
.session-node.available .node-number {
  background: var(--primary);
  color: #fff;
}

.active-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 17px;
  background: var(--primary-soft);
}

.active-request strong,
.active-request span {
  display: block;
}

.active-request strong {
  font-size: 13px;
  color: var(--primary);
}

.active-request span {
  font-size: 11px;
  color: var(--muted);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(18, 169, 160, 0.12);
}

.track-cta {
  width: 100%;
}

.feedback-card {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  overflow: hidden;
}

.feedback-card summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 9px;
}

.feedback-card summary b {
  color: var(--primary);
}

.feedback-card p,
.feedback-card ul {
  padding: 0 14px 12px;
  font-size: 9px;
  color: var(--muted);
}

.feedback-card li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

.previous-feedback {
  margin-bottom: 18px;
  padding: 17px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(18, 169, 160, 0.2);
}

.previous-feedback > span {
  font-size: 9px;
  font-weight: 900;
  color: var(--accent-dark);
}

.previous-feedback p {
  font-size: 11px;
  margin: 5px 0;
}

.previous-feedback li {
  font-size: 9px;
  color: var(--muted);
}

.autosave-state {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.autosave-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.autosave-state.saving i {
  background: var(--warning);
}

.autosave-state.saved i {
  background: var(--success);
}

.autosave-state.failed i {
  background: var(--danger);
}

/* Counselor hierarchy */
.cohort-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cohort-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  transition: 0.2s;
}

.cohort-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.cohort-year {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 17px;
  font-weight: 900;
}

.cohort-card strong,
.cohort-card small {
  display: block;
}

.cohort-card strong {
  font-size: 13px;
}

.cohort-card small {
  font-size: 8px;
  color: var(--muted);
}

.cohort-card > b {
  grid-column: 1 / -1;
  color: var(--primary);
  font-size: 9px;
}

.student-directory {
  display: grid;
  gap: 9px;
}

.student-directory-row {
  display: grid;
  grid-template-columns: 46px 1fr 70px 70px auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.student-directory-row:hover {
  border-color: var(--primary);
}

.student-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.student-directory-row strong,
.student-directory-row small,
.student-directory-row b,
.student-directory-row div > span {
  display: block;
}

.student-directory-row strong {
  font-size: 11px;
}

.student-directory-row small,
.student-directory-row div > span {
  font-size: 8px;
  color: var(--muted);
}

.student-directory-row b {
  color: var(--primary);
}

.student-history-panel {
  max-width: 1180px;
}

.history-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.history-columns > section {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: var(--surface-soft);
}

.history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.history-title > span {
  font-size: 28px;
}

.history-title h2 {
  font-size: 19px;
}

.history-title small {
  font-size: 8px;
  color: var(--muted);
}

.history-session {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  margin-bottom: 9px;
}

.history-session > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.history-session > p {
  font-size: 10px;
  margin: 7px 0;
}

.history-session > small {
  font-size: 8px;
  color: var(--muted);
}

.history-session .btn-secondary {
  margin-top: 10px;
}

.mini-feedback {
  margin-top: 9px;
  padding: 9px;
  border-radius: 11px;
  background: var(--accent-soft);
}

.mini-feedback b,
.mini-feedback span {
  display: block;
  font-size: 8px;
}

.mini-feedback span {
  color: var(--muted);
}

.manual-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
  padding: 19px;
  border: 1px solid rgba(101, 72, 232, 0.22);
  border-radius: 22px;
  background: var(--primary-soft);
}

.manual-schedule h2 {
  font-size: 20px;
}

.manual-schedule p {
  font-size: 9px;
  color: var(--muted);
}

.manual-schedule form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 9px;
}

.auth-helper {
  display: block;
  text-align: center;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  margin-top: 2px;
}

.auth-helper:hover {
  text-decoration: underline;
}

.auth-panel {
  width: min(520px, 100%);
  margin-inline: auto;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  font-size: 28px;
  margin: 12px 0 8px;
}

.auth-panel > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .student-entry,
  .student-tracks,
  .history-columns {
    grid-template-columns: 1fr;
  }

  .cohort-grid {
    grid-template-columns: 1fr 1fr;
  }

  .entry-intro {
    text-align: center;
  }

  .entry-intro > p {
    margin-inline: auto;
  }

  .entry-benefits {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .student-entry {
    padding: 18px;
  }

  .entry-intro {
    padding: 12px;
  }

  .entry-intro h1 {
    font-size: 30px;
  }

  .student-dashboard-head {
    flex-direction: column;
  }

  .session-rail {
    grid-template-columns: 1fr 1fr;
  }

  .cohort-grid {
    grid-template-columns: 1fr;
  }

  .student-directory-row {
    grid-template-columns: 42px 1fr auto;
  }

  .student-directory-row > div:nth-of-type(n + 2) {
    display: none;
  }

  .manual-schedule {
    grid-template-columns: 1fr;
  }

  .manual-schedule form {
    grid-template-columns: 1fr;
  }

  .access-code-banner {
    grid-template-columns: 1fr;
  }

  .access-code-banner button {
    width: 100%;
  }
}

.dark-mode .dotin-logo{
  filter: brightness(0) invert(1);
}

body:not(.dark-mode) input::-webkit-calendar-picker-indicator {
    filter: brightness(0) !important;
}

body:not(.dark-mode) input[type="date"],
body:not(.dark-mode) input[type="datetime-local"],
body:not(.dark-mode) input[type="time"] {
  color-scheme: light;
}

body.dark-mode input[type="date"],
body.dark-mode input[type="datetime-local"],
body.dark-mode input[type="time"] {
  color-scheme: dark;
}

