.graduation-portal {
  --aq-red: #b51224;
  --aq-red-2: #e22a3b;
  --aq-dark: #222222;
  --aq-green-soft: #3d713f91;
  --aq-green: #3d713f;
  --aq-text: #222222;
  --aq-muted: #6b7280;
  --aq-border: #e5e7eb;
  --aq-border-strong: #d1d5db;
  --aq-bg: #f7f7f8;
  --aq-white: #ffffff;
  --aq-radius-xl: 28px;
  --aq-radius-lg: 20px;
  --aq-radius-md: 14px;
  --aq-shadow: 0 30px 90px rgba(34, 34, 34, .14);
  --aq-shadow-soft: 0 14px 34px rgba(34, 34, 34, .1);
  width: 100%;
  color: var(--aq-text);
  font-size: 16px;
  line-height: 1.6;
}

.graduation-portal,
.graduation-portal *,
.graduation-portal *::before,
.graduation-portal *::after {
  box-sizing: border-box;
}

.graduation-premium-wizard {
  margin: clamp(16px, 3vw, 36px) auto;
  padding: clamp(14px, 3vw, 30px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 11% 5%, rgba(226, 42, 59, .20), transparent 31%),
    radial-gradient(circle at 100% 0%, rgba(181, 18, 36, .16), transparent 28%),
    radial-gradient(circle at 85% 100%, rgba(61, 113, 63, .22), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f7f7f8 52%, #fff7f8 100%);
}

.graduation-premium-shell {
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
  align-items: start;
}

.graduation-process-card,
.graduation-stage-card {
  border-radius: var(--aq-radius-xl);
  box-shadow: var(--aq-shadow);
}

.graduation-process-card {
  position: sticky;
  top: 18px;
  min-height: 680px;
  padding: clamp(22px, 2.2vw, 32px);
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(34, 34, 34, .98), rgba(21, 21, 21, .96)),
    radial-gradient(circle at 18% 20%, rgba(226, 42, 59, .55), transparent 28%);
}

.graduation-process-card::before,
.graduation-process-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.graduation-process-card::before {
  width: 280px;
  height: 280px;
  inset-inline-end: -110px;
  top: -115px;
  background: linear-gradient(135deg, rgba(181, 18, 36, .9), rgba(226, 42, 59, .55));
}

.graduation-process-card::after {
  width: 210px;
  height: 210px;
  inset-inline-start: -80px;
  bottom: -75px;
  background: rgba(61, 113, 63, .38);
}

.graduation-process-card > * {
  position: relative;
  z-index: 1;
}

.graduation-brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.graduation-brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--aq-red);
  font-weight: 1000;
  letter-spacing: -.04em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.graduation-brand-mark span:not(.graduation-brand-icon),
.graduation-brand-mark strong,
.graduation-process-intro h1,
.graduation-process-intro p {
  display: block;
}

.graduation-brand-mark span:not(.graduation-brand-icon),
.graduation-kicker {
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.graduation-brand-mark strong {
  color: #fff;
  line-height: 1.18;
}

.graduation-process-intro {
  margin-bottom: 28px;
}

.graduation-process-intro h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 1000;
}

.graduation-process-intro p {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  max-width: 30rem;
}

.graduation-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: graduation-steps;
}

.graduation-process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .075);
  color: rgba(255, 255, 255, .68);
  transition: .22s ease;
}

.graduation-process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 38px;
  bottom: -16px;
  width: 2px;
  height: 16px;
  background: rgba(255, 255, 255, .16);
}

.graduation-process-list li.is-active,
.graduation-process-list li.is-complete {
  color: #fff;
  border-color: rgba(255, 255, 255, .36);
  background: linear-gradient(135deg, rgba(181, 18, 36, .72), rgba(226, 42, 59, .42));
  box-shadow: 0 18px 35px rgba(181, 18, 36, .24);
}

.graduation-process-list li.is-complete {
  background: linear-gradient(135deg, rgba(61, 113, 63, .78), rgba(61, 113, 63, .35));
  box-shadow: 0 18px 35px rgba(61, 113, 63, .18);
}

.graduation-process-dot {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-weight: 1000;
}

.graduation-process-list li.is-active .graduation-process-dot,
.graduation-process-list li.is-complete .graduation-process-dot {
  background: #fff;
  color: var(--aq-red);
}

.graduation-process-list strong,
.graduation-process-list small {
  display: block;
}

.graduation-process-list strong {
  color: inherit;
  font-size: 1rem;
}

.graduation-process-list small {
  margin-top: 2px;
  color: currentColor;
  opacity: .72;
}

.graduation-security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
}

.graduation-security-note > span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--aq-green);
  box-shadow: 0 0 0 6px rgba(61, 113, 63, .28);
}

.graduation-security-note strong,
.graduation-security-note small {
  display: block;
}

.graduation-security-note small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .72);
}

.graduation-stage-card {
  min-width: 0;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px);
  padding: clamp(20px, 3vw, 38px);
}

.graduation-stage-section {
  display: none;
}

.graduation-stage-section.is-visible {
  display: block;
  animation: graduationFadeUp .28s ease both;
}

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

.graduation-section-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--aq-border);
}

.graduation-section-header.is-centered {
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.graduation-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--aq-red);
  background: rgba(181, 18, 36, .08);
  border: 1px solid rgba(181, 18, 36, .16);
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.graduation-section-header h2 {
  margin: 0;
  color: var(--aq-dark);
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 1000;
}

.graduation-section-header p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--aq-muted);
}

.graduation-verify-form,
.graduation-wizard {
  display: grid;
  gap: 20px;
}

.graduation-identity-grid,
.graduation-fields-grid,
.graduation-summary-grid {
  display: grid;
  gap: 16px;
}

.graduation-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.graduation-fields-grid .control-group:has(textarea),
.graduation-fields-grid .control-group:has(.field-calendar),
.graduation-fields-grid .control-group:has(select),
.graduation-fields-grid .control-group:has(input[type="checkbox"]) {
  grid-column: span 2;
}

.graduation-portal .control-group {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--aq-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(34, 34, 34, .045);
}

.graduation-portal .control-label,
.graduation-portal .controls {
  width: 100%;
  float: none;
  margin: 0;
}

.graduation-portal label,
.graduation-portal .control-label label {
  display: block;
  margin: 0 0 8px;
  color: var(--aq-dark);
  font-weight: 900;
  font-size: .92rem;
}

.graduation-portal .form-control,
.graduation-portal input[type="text"],
.graduation-portal input[type="email"],
.graduation-portal input[type="number"],
.graduation-portal select,
.graduation-portal textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--aq-border-strong);
  background: #fff;
  color: var(--aq-text);
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.graduation-portal textarea {
  min-height: 110px;
  resize: vertical;
}

.graduation-portal input:focus,
.graduation-portal select:focus,
.graduation-portal textarea:focus {
  border-color: var(--aq-red-2);
  box-shadow: 0 0 0 4px rgba(226, 42, 59, .13);
}

.graduation-portal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-inline-end: 8px;
  accent-color: var(--aq-red);
}

.graduation-form-message,
.graduation-alert {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
}

.graduation-form-message {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: var(--aq-red);
}

.graduation-alert {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.graduation-alert-compact { margin-top: 12px; }

.graduation-captcha-card,
.graduation-help-box,
.graduation-student-card,
.graduation-summary-grid > div,
.graduation-number-card,
.graduation-ticket-frame,
.wizard-step {
  border: 1px solid var(--aq-border);
  border-radius: var(--aq-radius-lg);
  background: #fff;
  box-shadow: var(--aq-shadow-soft);
}

.graduation-captcha-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.graduation-captcha-card.is-ready { border-color: rgba(61, 113, 63, .42); background: rgba(61, 113, 63, .06); }
.graduation-captcha-card.is-warning { border-color: #fde68a; background: #fffbeb; }

.graduation-captcha-text strong,
.graduation-captcha-text small {
  display: block;
}

.graduation-captcha-text small {
  color: var(--aq-muted);
  margin-top: 2px;
}

.graduation-captcha-widget { overflow-x: auto; }

.graduation-help-box {
  padding: 18px;
  background: linear-gradient(135deg, #fff, rgba(61, 113, 63, .08));
}

.graduation-help-box strong {
  display: block;
  color: var(--aq-dark);
  margin-bottom: 8px;
}

.graduation-help-box ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--aq-muted);
}

.graduation-student-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff, #fff8f9);
}

.graduation-student-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--aq-red), var(--aq-red-2));
  font-size: 1.4rem;
  font-weight: 1000;
}

.graduation-student-main span,
.graduation-student-main strong,
.graduation-student-main small,
.graduation-student-id small,
.graduation-student-id strong {
  display: block;
}

.graduation-student-main span,
.graduation-student-id small,
.graduation-summary-grid span {
  color: var(--aq-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.graduation-student-main strong {
  color: var(--aq-dark);
  font-size: 1.35rem;
  line-height: 1.18;
}

.graduation-student-main small,
.graduation-summary-grid small {
  color: var(--aq-muted);
}

.graduation-student-id {
  text-align: center;
  border-radius: 16px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--aq-border);
}

.graduation-student-id strong {
  color: var(--aq-red);
  font-size: 1.1rem;
}

.graduation-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.graduation-summary-grid > div {
  padding: 16px;
}

.graduation-summary-grid strong,
.graduation-summary-grid small {
  display: block;
}

.graduation-summary-grid strong {
  color: var(--aq-dark);
  margin-top: 6px;
}

.graduation-subprocess {
  margin: 6px 0 20px;
  padding: 18px;
  border-radius: 20px;
  background: #f9fafb;
  border: 1px solid var(--aq-border);
}

.graduation-subprocess-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
  margin-bottom: 14px;
}

.graduation-subprocess-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aq-red), var(--aq-red-2));
  transition: width .25s ease;
}

.graduation-subprocess-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.graduation-subprocess-item {
  appearance: none;
  border: 1px solid var(--aq-border);
  background: #fff;
  color: var(--aq-muted);
  border-radius: 999px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  opacity: 1;
}

.graduation-subprocess-item span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: var(--aq-dark);
  font-weight: 1000;
  flex: 0 0 auto;
}

.graduation-subprocess-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .85rem;
}

.graduation-subprocess-item.is-active,
.graduation-subprocess-item.is-completed {
  border-color: rgba(181, 18, 36, .28);
  color: var(--aq-red);
  background: rgba(181, 18, 36, .06);
}

.graduation-subprocess-item.is-active span,
.graduation-subprocess-item.is-completed span {
  background: linear-gradient(135deg, var(--aq-red), var(--aq-red-2));
  color: #fff;
}

.graduation-form-step { display: none !important; }
.graduation-form-step.is-active { display: block !important; }

.wizard-step {
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
}

.wizard-step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--aq-dark);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 1000;
  letter-spacing: -.035em;
  margin: 0;
  padding: 0;
}

.wizard-step legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  border-radius: 999px;
  background: rgba(181, 18, 36, .08);
  color: var(--aq-red);
  font-size: .78rem;
  letter-spacing: 0;
}

.wizard-step-description {
  color: var(--aq-muted);
  margin: 8px 0 18px;
}

.graduation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.wizard-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.graduation-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 1000;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.graduation-btn:hover { transform: translateY(-1px); }
.graduation-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.graduation-btn-primary,
.graduation-btn-success {
  color: #fff !important;
  background: linear-gradient(135deg, var(--aq-red), var(--aq-red-2));
  box-shadow: 0 14px 28px rgba(181, 18, 36, .26);
}

.graduation-btn-success {
  background: linear-gradient(135deg, var(--aq-green), var(--aq-green-soft));
  box-shadow: 0 14px 28px rgba(61, 113, 63, .24);
}

.graduation-btn-outline {
  color: var(--aq-dark) !important;
  border: 1px solid var(--aq-border-strong);
  background: #fff;
}

.graduation-btn-light {
  color: var(--aq-dark) !important;
  background: #f3f4f6;
  border: 1px solid var(--aq-border);
}

.graduation-btn-large { min-width: 220px; }

.graduation-success-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--aq-green), var(--aq-green-soft));
  font-size: 2.2rem;
  font-weight: 1000;
  box-shadow: 0 18px 45px rgba(61, 113, 63, .26);
}

.graduation-number-card {
  padding: 22px;
  margin: 20px auto;
  max-width: 620px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #fff8f9);
}

.graduation-number-card span,
.graduation-number-card strong {
  display: block;
}

.graduation-number-card span {
  color: var(--aq-muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.graduation-number-card strong {
  margin-top: 8px;
  color: var(--aq-red);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: .02em;
}

.graduation-ticket-frame {
  margin-top: 24px;
  padding: 18px;
  overflow-x: auto;
}

@media (max-width: 1100px) {
  .graduation-premium-shell { grid-template-columns: 1fr; }
  .graduation-process-card { position: relative; top: 0; min-height: auto; }
  .graduation-process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .graduation-process-list li { grid-template-columns: 42px 1fr; }
  .graduation-process-list li:not(:last-child)::after { display: none; }
}

@media (max-width: 840px) {
  .graduation-premium-wizard { padding: 10px; border-radius: 22px; }
  .graduation-stage-card,
  .graduation-process-card { border-radius: 22px; padding: 18px; }
  .graduation-process-list,
  .graduation-identity-grid,
  .graduation-fields-grid,
  .graduation-summary-grid,
  .graduation-subprocess-items { grid-template-columns: 1fr; }
  .graduation-fields-grid .control-group { grid-column: auto !important; }
  .graduation-captcha-card,
  .graduation-student-card { grid-template-columns: 1fr; text-align: initial; }
  .graduation-student-id { text-align: initial; }
  .graduation-actions,
  .wizard-actions { justify-content: stretch; }
  .wizard-actions > span { display: none; }
  .graduation-btn { width: 100%; }
}

@media print {
  .graduation-process-card,
  .graduation-actions,
  .d-print-none { display: none !important; }
  .graduation-premium-wizard { background: #fff; padding: 0; margin: 0; }
  .graduation-premium-shell { display: block; }
  .graduation-stage-card { box-shadow: none; border: 0; padding: 0; }
}

/* v1.0.11 formal university process design overrides */
.graduation-formal-wizard {
  --aq-red: #b51224;
  --aq-red-2: #e22a3b;
  --aq-dark: #222222;
  --aq-green-soft: #3d713f91;
  --aq-green: #3d713f;
  --aq-text: #222222;
  --aq-muted: #59606a;
  --aq-border: #dde1e7;
  --aq-paper: #ffffff;
  --aq-soft: #f5f5f6;
  padding: clamp(18px, 3vw, 42px) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92)),
    radial-gradient(circle at 6% 0%, rgba(181,18,36,.11), transparent 34%),
    radial-gradient(circle at 95% 12%, rgba(61,113,63,.13), transparent 30%),
    #f6f6f7 !important;
  color: var(--aq-text);
  font-family: inherit;
}

.graduation-formal-wizard .graduation-premium-shell {
  max-width: 1180px;
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
  gap: 24px;
}

.graduation-formal-wizard .graduation-process-card,
.graduation-formal-wizard .graduation-stage-card {
  border-radius: 18px !important;
  box-shadow: 0 20px 55px rgba(34,34,34,.11) !important;
}

.graduation-formal-wizard .graduation-process-card {
  min-height: auto !important;
  padding: 26px !important;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(34,34,34,.98), rgba(34,34,34,.94)),
    linear-gradient(135deg, var(--aq-red), var(--aq-red-2)) !important;
}

.graduation-formal-wizard .graduation-process-card::before {
  width: 190px !important;
  height: 190px !important;
  top: -70px !important;
  inset-inline-end: -70px !important;
  background: linear-gradient(135deg, rgba(181,18,36,.78), rgba(226,42,59,.56)) !important;
}

.graduation-formal-wizard .graduation-process-card::after {
  width: 150px !important;
  height: 150px !important;
  bottom: -58px !important;
  background: var(--aq-green-soft) !important;
}

.graduation-formal-wizard .graduation-brand-mark {
  margin-bottom: 28px !important;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.graduation-formal-wizard .graduation-brand-icon {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #fff, #f5f5f5) !important;
  color: var(--aq-red) !important;
}

.graduation-formal-wizard .graduation-process-intro h1 {
  font-size: clamp(1.75rem, 2.65vw, 2.45rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -.025em !important;
  font-weight: 900 !important;
}

.graduation-formal-wizard .graduation-process-intro p {
  font-size: .98rem;
  line-height: 1.7;
}

.graduation-formal-wizard .graduation-process-list {
  gap: 12px !important;
}

.graduation-formal-wizard .graduation-process-list li {
  grid-template-columns: 42px 1fr !important;
  padding: 15px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.065) !important;
  border-color: rgba(255,255,255,.14) !important;
}

.graduation-formal-wizard .graduation-process-list li.is-active {
  background: linear-gradient(135deg, var(--aq-red), var(--aq-red-2)) !important;
  border-color: rgba(255,255,255,.42) !important;
  box-shadow: 0 12px 24px rgba(181,18,36,.26) !important;
}

.graduation-formal-wizard .graduation-process-list li.is-complete {
  background: linear-gradient(135deg, rgba(61,113,63,.88), rgba(61,113,63,.48)) !important;
}

.graduation-formal-wizard .graduation-process-dot {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: .95rem;
}

.graduation-formal-wizard .graduation-stage-card {
  padding: clamp(20px, 3vw, 34px) !important;
  border: 1px solid var(--aq-border);
  background: var(--aq-paper) !important;
}

.graduation-formal-wizard .graduation-section-header {
  margin-bottom: 24px !important;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--aq-border);
}

.graduation-formal-wizard .graduation-section-header h2 {
  color: var(--aq-dark) !important;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  font-weight: 900 !important;
}

.graduation-formal-wizard .graduation-section-header p {
  max-width: 680px;
  color: var(--aq-muted) !important;
}

.graduation-formal-wizard .graduation-chip {
  color: var(--aq-red) !important;
  background: rgba(181,18,36,.08) !important;
  border: 1px solid rgba(181,18,36,.16) !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  font-weight: 800 !important;
}

.graduation-formal-wizard .graduation-identity-grid,
.graduation-formal-wizard .graduation-summary-grid {
  gap: 16px !important;
}

.graduation-formal-wizard .control-group,
.graduation-formal-wizard .graduation-summary-grid > div,
.graduation-formal-wizard .graduation-student-card,
.graduation-formal-wizard .graduation-captcha-card,
.graduation-formal-wizard .graduation-help-box,
.graduation-formal-wizard .graduation-form-step,
.graduation-formal-wizard .graduation-ticket-frame {
  border-radius: 16px !important;
  border: 1px solid var(--aq-border) !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(34,34,34,.055) !important;
}

.graduation-formal-wizard .control-group {
  padding: 16px !important;
}

.graduation-formal-wizard label,
.graduation-formal-wizard .control-label,
.graduation-formal-wizard .form-label {
  color: var(--aq-dark) !important;
  font-weight: 800 !important;
}

.graduation-formal-wizard input,
.graduation-formal-wizard select,
.graduation-formal-wizard textarea,
.graduation-formal-wizard .form-control,
.graduation-formal-wizard .form-select {
  min-height: 46px;
  border-radius: 12px !important;
  border: 1px solid #ccd2da !important;
  background: #fbfbfc !important;
  color: var(--aq-dark) !important;
  box-shadow: none !important;
}

.graduation-formal-wizard input:focus,
.graduation-formal-wizard select:focus,
.graduation-formal-wizard textarea:focus,
.graduation-formal-wizard .form-control:focus,
.graduation-formal-wizard .form-select:focus {
  border-color: var(--aq-red) !important;
  box-shadow: 0 0 0 .2rem rgba(181,18,36,.14) !important;
}

.graduation-formal-wizard .graduation-btn,
.graduation-formal-wizard button.graduation-btn {
  border-radius: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.graduation-formal-wizard .graduation-btn-primary {
  background: linear-gradient(135deg, var(--aq-red), var(--aq-red-2)) !important;
  border-color: var(--aq-red) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(181,18,36,.22) !important;
}

.graduation-formal-wizard .graduation-btn-outline {
  border-color: var(--aq-red) !important;
  color: var(--aq-red) !important;
  background: #fff !important;
}

.graduation-formal-wizard .graduation-btn-light {
  color: var(--aq-dark) !important;
  background: #f3f4f6 !important;
  border-color: #e3e6ea !important;
}

.graduation-formal-wizard .graduation-subprocess {
  padding: 16px !important;
  border: 1px solid var(--aq-border) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fff, #fafafa) !important;
}

.graduation-formal-wizard .graduation-substep-dot {
  background: #fff !important;
  color: var(--aq-dark) !important;
  border: 2px solid #d5dbe3 !important;
}

.graduation-formal-wizard .graduation-substep.is-active .graduation-substep-dot,
.graduation-formal-wizard .graduation-substep.is-complete .graduation-substep-dot {
  border-color: var(--aq-red) !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--aq-red), var(--aq-red-2)) !important;
}

.graduation-formal-wizard .graduation-subprocess-track span {
  background: linear-gradient(90deg, var(--aq-red), var(--aq-red-2), var(--aq-green-soft)) !important;
}

.graduation-formal-wizard .graduation-alert {
  border-color: rgba(181,18,36,.18) !important;
  background: rgba(181,18,36,.055) !important;
  color: var(--aq-dark) !important;
}

.graduation-formal-wizard .graduation-number-card {
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(181,18,36,.095), rgba(61,113,63,.10)) !important;
  border: 1px solid rgba(181,18,36,.18) !important;
}

@media (max-width: 991.98px) {
  .graduation-formal-wizard .graduation-premium-shell {
    grid-template-columns: 1fr;
  }
  .graduation-formal-wizard .graduation-process-card {
    position: relative !important;
    top: auto !important;
  }
}

/* Registered students public directory - v1.0.14 */
.graduation-registered-page {
  --gr-primary: #b51224;
  --gr-primary-2: #e22a3b;
  --gr-dark: #222222;
  --gr-green-soft: #3d713f91;
  --gr-border: rgba(34,34,34,.10);
  --gr-bg: #fffafa;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 14px 44px;
  color: var(--gr-dark);
}
.gr-public-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #222222 0%, #3a1519 52%, #b51224 100%);
  color: #fff;
  box-shadow: 0 22px 60px rgba(34,34,34,.18);
  margin-bottom: 22px;
}
.gr-public-hero h1 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 900; letter-spacing: -.03em; }
.gr-public-hero p { margin: 0; max-width: 760px; color: rgba(255,255,255,.86); font-size: 1.05rem; line-height: 1.8; }
.gr-eyebrow { display:inline-flex; align-items:center; gap:8px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.20); color: #fff; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.gr-total-card { min-width: 190px; border-radius: 20px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.20); padding: 22px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; }
.gr-total-card span { color: rgba(255,255,255,.80); font-weight: 700; }
.gr-total-card strong { display:block; font-size: 2.8rem; line-height: 1; margin-top: 8px; }
.gr-filter-card, .gr-list-card { background: #fff; border: 1px solid var(--gr-border); border-radius: 22px; box-shadow: 0 16px 45px rgba(34,34,34,.08); margin-bottom: 20px; }
.gr-filter-card { padding: 22px; }
.gr-filter-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom: 18px; }
.gr-filter-head h2 { margin:0; font-size: 1.25rem; font-weight: 900; color: var(--gr-dark); }
.gr-reset-link { color: var(--gr-primary); font-weight: 800; text-decoration: none; }
.gr-filter-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.gr-filter-grid label { display:block; margin:0; }
.gr-filter-grid span { display:block; font-weight:800; color: var(--gr-dark); margin-bottom:7px; font-size:.92rem; }
.gr-filter-grid input, .gr-filter-grid select { width:100%; border:1px solid rgba(34,34,34,.15); border-radius: 14px; padding: 12px 13px; min-height: 48px; background:#fff; color: var(--gr-dark); outline:none; transition:.2s ease; }
.gr-filter-grid input:focus, .gr-filter-grid select:focus { border-color: var(--gr-primary); box-shadow: 0 0 0 4px rgba(181,18,36,.10); }
.gr-filter-actions { margin-top: 18px; display:flex; justify-content:flex-end; }
.gr-primary-btn { border:0; border-radius:999px; padding: 12px 26px; background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-2)); color:#fff; font-weight:900; box-shadow: 0 12px 22px rgba(181,18,36,.24); }
.gr-table-wrap { overflow:auto; }
.gr-public-table { width:100%; border-collapse: separate; border-spacing:0; min-width: 1050px; }
.gr-public-table th { background: #f6f1f1; color: var(--gr-dark); font-weight:900; text-align: start; padding: 15px 14px; border-bottom: 1px solid var(--gr-border); white-space:nowrap; }
.gr-public-table td { padding: 14px; border-bottom: 1px solid rgba(34,34,34,.07); vertical-align: middle; }
.gr-public-table tbody tr:hover { background: rgba(181,18,36,.035); }
.gr-reg-no { color: var(--gr-primary); font-weight: 900; }
.gr-status-pill { display:inline-flex; align-items:center; border-radius:999px; padding: 6px 10px; font-size:.83rem; font-weight:900; background:#f1f1f1; color:#333; white-space:nowrap; }
.gr-status-registered { background: rgba(61,113,63,.14); color:#2f6532; }
.gr-status-checked_in, .gr-status-attended { background: rgba(61,113,63,.22); color:#245328; }
.gr-status-absent { background: rgba(181,18,36,.10); color: var(--gr-primary); }
.gr-empty-state { padding: 36px; text-align:center; }
.gr-empty-state strong { display:block; font-size:1.25rem; color: var(--gr-dark); margin-bottom:8px; }
.gr-empty-state p { margin:0; color:#6b6b6b; }
.gr-pagination { padding: 16px 18px; border-top: 1px solid var(--gr-border); }
@media (max-width: 992px) {
  .gr-public-hero { flex-direction: column; }
  .gr-total-card { align-items:flex-start; text-align:start; }
  .gr-filter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .graduation-registered-page { padding-inline: 10px; }
  .gr-public-hero { padding: 22px; border-radius: 18px; }
  .gr-filter-grid { grid-template-columns: 1fr; }
  .gr-filter-head { flex-direction:column; align-items:flex-start; }
  .gr-filter-actions { justify-content:stretch; }
  .gr-primary-btn { width:100%; }
}

/* Registered students public directory - v1.0.15 formal redesign */
.graduation-registered-page {
  --gr-primary: #b51224;
  --gr-primary-2: #e22a3b;
  --gr-dark: #222222;
  --gr-green-soft: #3d713f91;
  --gr-border: rgba(34,34,34,.10);
  --gr-surface: #ffffff;
  --gr-muted: #6c6c6c;
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 16px 54px;
  color: var(--gr-dark);
}
.gr-directory-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.gr-directory-panel {
  position: sticky;
  top: 92px;
  min-height: 520px;
  border-radius: 28px;
  padding: 30px 28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(226,42,59,.26), transparent 28%),
    linear-gradient(155deg, #222222 0%, #2b2020 52%, #b51224 100%);
  color: #fff;
  box-shadow: 0 30px 70px rgba(34,34,34,.22);
  overflow: hidden;
}
.gr-directory-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(61,113,63,.38);
  filter: blur(4px);
}
.gr-panel-kicker,
.gr-small-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.gr-panel-kicker {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
}
.gr-directory-panel h1 {
  position: relative;
  z-index: 1;
  margin: 26px 0 16px;
  font-size: clamp(2.15rem, 3vw, 3.35rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.035em;
}
.gr-directory-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,.84);
  line-height: 1.85;
  font-size: 1rem;
}
.gr-process-note {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.gr-process-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--gr-primary-2));
  box-shadow: 0 0 0 7px rgba(255,255,255,.12);
}
.gr-process-note strong,
.gr-process-note small { display: block; }
.gr-process-note small { margin-top: 5px; color: rgba(255,255,255,.76); line-height: 1.6; }
.gr-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.gr-stat-card {
  background: var(--gr-surface);
  border: 1px solid var(--gr-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(34,34,34,.07);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gr-stat-card span {
  color: var(--gr-muted);
  font-weight: 850;
  font-size: .9rem;
}
.gr-stat-card strong {
  margin-top: 10px;
  color: var(--gr-dark);
  font-size: clamp(1.85rem, 2.4vw, 2.55rem);
  line-height: 1;
  font-weight: 950;
}
.gr-stat-card small {
  margin-top: 8px;
  color: #3d713f;
  font-weight: 850;
}
.gr-stat-card-main {
  background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-2));
  color: #fff;
  border-color: rgba(181,18,36,.18);
}
.gr-stat-card-main span,
.gr-stat-card-main strong { color: #fff; }
.gr-filter-card-pro,
.gr-directory-results {
  border-radius: 26px;
  border: 1px solid var(--gr-border);
  box-shadow: 0 18px 50px rgba(34,34,34,.075);
  overflow: hidden;
}
.gr-filter-card-pro { padding: 24px; background: linear-gradient(180deg,#fff 0%,#fffafa 100%); }
.gr-filter-head,
.gr-results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.gr-filter-head h2,
.gr-results-head h2 {
  margin: 5px 0 0;
  font-weight: 950;
  color: var(--gr-dark);
  font-size: 1.35rem;
}
.gr-small-title { color: var(--gr-primary); }
.gr-reset-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gr-primary);
  background: rgba(181,18,36,.07);
  text-decoration: none;
  font-weight: 900;
}
.gr-filter-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.gr-filter-grid-pro .gr-search-field { grid-column: span 2; }
.gr-filter-grid-pro label { margin: 0; }
.gr-filter-grid-pro span {
  display: block;
  margin-bottom: 8px;
  color: var(--gr-dark);
  font-weight: 900;
  font-size: .92rem;
}
.gr-filter-grid-pro input,
.gr-filter-grid-pro select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(34,34,34,.14);
  border-radius: 15px;
  background: #fff;
  color: var(--gr-dark);
  padding: 12px 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gr-filter-grid-pro input:focus,
.gr-filter-grid-pro select:focus {
  border-color: var(--gr-primary);
  box-shadow: 0 0 0 4px rgba(181,18,36,.10);
}
.gr-filter-actions-pro {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.gr-primary-btn,
.gr-secondary-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 950;
  text-decoration: none;
  border: 0;
}
.gr-primary-btn {
  background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-2));
  color: #fff;
  box-shadow: 0 16px 28px rgba(181,18,36,.24);
}
.gr-secondary-btn {
  background: #f3f3f3;
  color: var(--gr-dark);
}
.gr-directory-results { background: #fff; margin-top: 18px; }
.gr-results-head { padding: 22px 24px; margin: 0; border-bottom: 1px solid var(--gr-border); }
.gr-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(61,113,63,.14);
  color: #2f6532;
  font-weight: 950;
  white-space: nowrap;
}
.gr-public-table-pro {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
}
.gr-public-table-pro th {
  padding: 16px 14px;
  background: #f7f1f2;
  color: var(--gr-dark);
  font-size: .86rem;
  letter-spacing: .02em;
  text-align: start;
  font-weight: 950;
  white-space: nowrap;
}
.gr-public-table-pro td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(34,34,34,.075);
  vertical-align: middle;
}
.gr-public-table-pro tbody tr:hover { background: rgba(181,18,36,.035); }
.gr-reg-no,
.gr-student-name { color: var(--gr-dark); font-weight: 950; }
.gr-reg-no { color: var(--gr-primary); }
.gr-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .82rem;
  font-weight: 950;
  white-space: nowrap;
  background: #f1f1f1;
  color: #333;
}
.gr-status-registered { background: rgba(61,113,63,.14); color: #2f6532; }
.gr-status-checked_in,
.gr-status-attended { background: rgba(61,113,63,.22); color: #245328; }
.gr-status-absent { background: rgba(181,18,36,.10); color: var(--gr-primary); }
.gr-empty-state { padding: 42px 24px; text-align: center; }
.gr-empty-state strong { display: block; color: var(--gr-dark); font-size: 1.25rem; margin-bottom: 8px; }
.gr-empty-state p { margin: 0; color: var(--gr-muted); }
.gr-pagination { padding: 16px 22px; border-top: 1px solid var(--gr-border); }
.graduation-registered-page.graduation-rtl,
.graduation-registered-page.graduation-rtl * { text-align: right; }
.graduation-registered-page.graduation-rtl .gr-filter-head,
.graduation-registered-page.graduation-rtl .gr-results-head,
.graduation-registered-page.graduation-rtl .gr-filter-actions-pro,
.graduation-registered-page.graduation-rtl .gr-process-note { flex-direction: row-reverse; }
.graduation-registered-page.graduation-rtl .gr-filter-actions-pro { justify-content: flex-start; }
.graduation-registered-page.graduation-rtl input,
.graduation-registered-page.graduation-rtl select { direction: rtl; text-align: right; }
@media (max-width: 1180px) {
  .gr-directory-shell { grid-template-columns: 1fr; }
  .gr-directory-panel { position: relative; top: auto; min-height: auto; }
  .gr-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gr-filter-grid-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-filter-grid-pro .gr-search-field { grid-column: span 2; }
}
@media (max-width: 680px) {
  .graduation-registered-page { padding-inline: 10px; }
  .gr-stat-grid,
  .gr-filter-grid-pro { grid-template-columns: 1fr; }
  .gr-filter-grid-pro .gr-search-field { grid-column: auto; }
  .gr-filter-head,
  .gr-results-head { flex-direction: column; align-items: stretch; }
  .gr-filter-actions-pro { flex-direction: column; }
  .gr-primary-btn,
  .gr-secondary-btn { width: 100%; }
  .gr-table-wrap { overflow: visible; }
  .gr-public-table-pro,
  .gr-public-table-pro thead,
  .gr-public-table-pro tbody,
  .gr-public-table-pro th,
  .gr-public-table-pro td,
  .gr-public-table-pro tr { display: block; min-width: 0; }
  .gr-public-table-pro thead { display: none; }
  .gr-public-table-pro tr {
    margin: 14px;
    padding: 14px;
    border: 1px solid rgba(34,34,34,.09);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(34,34,34,.06);
  }
  .gr-public-table-pro td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(34,34,34,.10);
  }
  .gr-public-table-pro td:last-child { border-bottom: 0; }
  .gr-public-table-pro td::before {
    content: attr(data-label);
    color: var(--gr-muted);
    font-weight: 900;
    flex: 0 0 42%;
  }
  .graduation-registered-page.graduation-rtl .gr-public-table-pro td { flex-direction: row-reverse; }
}

/* Registered students public directory - v1.0.16 formal university interface */
.graduation-registered-page.gr-registered-formal {
  --gr-primary: #b51224;
  --gr-primary-2: #e22a3b;
  --gr-dark: #222222;
  --gr-green-soft: #3d713f91;
  --gr-green: #3d713f;
  --gr-ink: #222222;
  --gr-muted: #697077;
  --gr-line: rgba(34,34,34,.105);
  --gr-soft: #fff8f9;
  --gr-paper: #ffffff;
  --gr-shadow: 0 22px 60px rgba(34,34,34,.09);
  max-width: 1460px;
  margin: 0 auto;
  padding: 34px 16px 58px;
  color: var(--gr-ink);
  font-family: inherit;
}

.gr-registered-formal,
.gr-registered-formal * {
  box-sizing: border-box;
}

.gr-formal-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 260px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 30px;
  background:
    linear-gradient(110deg, rgba(34,34,34,.96), rgba(34,34,34,.92) 45%, rgba(181,18,36,.94)),
    radial-gradient(circle at 90% 8%, rgba(226,42,59,.55), transparent 32%);
  color: #fff;
  box-shadow: 0 26px 70px rgba(34,34,34,.22);
  margin-bottom: 24px;
}

.gr-formal-hero::before,
.gr-formal-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.gr-formal-hero::before {
  width: 330px;
  height: 330px;
  inset: -145px auto auto -115px;
  background: rgba(226,42,59,.26);
}

.gr-formal-hero::after {
  width: 240px;
  height: 240px;
  inset: auto -80px -95px auto;
  background: var(--gr-green-soft);
}

.gr-formal-hero-inner,
.gr-formal-hero-stats {
  position: relative;
  z-index: 1;
}

.gr-formal-hero-inner {
  display: flex;
  gap: 22px;
  align-items: center;
}

.gr-formal-emblem {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

.gr-formal-emblem span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--gr-primary);
  font-weight: 950;
  font-size: 1.65rem;
  letter-spacing: -.04em;
}

.gr-formal-kicker,
.gr-formal-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.gr-formal-kicker {
  color: rgba(255,255,255,.86);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
}

.gr-formal-hero h1 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4.15rem);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.045em;
}

.gr-formal-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 1.04rem;
  line-height: 1.85;
}

.gr-formal-hero-stats {
  min-width: 250px;
  display: grid;
  gap: 12px;
}

.gr-formal-hero-stats div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}

.gr-formal-hero-stats strong {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1;
}

.gr-formal-hero-stats span {
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  font-weight: 800;
  text-align: end;
}

.gr-formal-shell {
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.gr-formal-sidebar {
  position: sticky;
  top: 92px;
}

.gr-formal-sidebar-card,
.gr-formal-filter-card,
.gr-formal-results-card,
.gr-formal-stat {
  background: var(--gr-paper);
  border: 1px solid var(--gr-line);
  box-shadow: var(--gr-shadow);
}

.gr-formal-sidebar-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
}

.gr-formal-sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gr-primary), var(--gr-primary-2), var(--gr-green-soft));
}

.gr-formal-section-label {
  color: var(--gr-primary);
}

.gr-formal-sidebar-card h2,
.gr-formal-card-head h2 {
  margin: 9px 0 8px;
  color: var(--gr-dark);
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -.025em;
}

.gr-formal-sidebar-card p {
  margin: 0 0 22px;
  color: var(--gr-muted);
  line-height: 1.78;
}

.gr-formal-summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.gr-formal-summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff8f9);
  border: 1px solid rgba(181,18,36,.09);
}

.gr-formal-summary-list dt,
.gr-formal-summary-list dd {
  margin: 0;
}

.gr-formal-summary-list dt {
  color: var(--gr-muted);
  font-weight: 900;
  font-size: .9rem;
}

.gr-formal-summary-list dd {
  color: var(--gr-primary);
  font-size: 1.35rem;
  font-weight: 950;
}

.gr-formal-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.gr-formal-stat {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gr-formal-stat::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  inset: auto -34px -42px auto;
  background: rgba(61,113,63,.10);
}

.gr-formal-stat span,
.gr-formal-stat small {
  color: var(--gr-muted);
  font-weight: 900;
}

.gr-formal-stat strong {
  color: var(--gr-dark);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1;
  font-weight: 950;
}

.gr-formal-stat small {
  color: var(--gr-green);
}

.gr-formal-stat-primary {
  background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-2));
  border-color: rgba(181,18,36,.18);
}

.gr-formal-stat-primary span,
.gr-formal-stat-primary strong,
.gr-formal-stat-primary small {
  color: #fff;
}

.gr-formal-filter-card,
.gr-formal-results-card {
  border-radius: 28px;
  overflow: hidden;
}

.gr-formal-filter-card {
  padding: 24px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8f9 100%);
}

.gr-formal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.gr-formal-link,
.gr-formal-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.gr-formal-link {
  color: var(--gr-primary);
  background: rgba(181,18,36,.075);
}

.gr-formal-count {
  color: #2f6532;
  background: rgba(61,113,63,.14);
}

.gr-formal-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.gr-formal-filter-grid label {
  margin: 0;
}

.gr-formal-filter-grid .gr-formal-search {
  grid-column: span 2;
}

.gr-formal-filter-grid label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--gr-dark);
  font-size: .92rem;
  font-weight: 950;
}

.gr-formal-filter-grid input,
.gr-formal-filter-grid select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(34,34,34,.14);
  border-radius: 16px;
  outline: 0;
  background: #fff;
  color: var(--gr-dark);
  box-shadow: 0 1px 0 rgba(34,34,34,.035);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.gr-formal-filter-grid input:focus,
.gr-formal-filter-grid select:focus {
  border-color: var(--gr-primary);
  box-shadow: 0 0 0 4px rgba(181,18,36,.105);
}

.gr-formal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.gr-formal-primary-btn,
.gr-formal-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 950;
  text-decoration: none;
  border: 0;
}

.gr-formal-primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-2));
  box-shadow: 0 16px 28px rgba(181,18,36,.24);
}

.gr-formal-primary-btn:hover,
.gr-formal-secondary-btn:hover,
.gr-formal-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.gr-formal-secondary-btn {
  color: var(--gr-dark);
  background: #f2f2f2;
}

.gr-formal-results-card {
  margin-top: 18px;
  background: #fff;
}

.gr-formal-results-head {
  padding: 22px 24px;
  margin: 0;
  border-bottom: 1px solid var(--gr-line);
  background: linear-gradient(180deg, #fff, #fffafa);
}

.gr-formal-table-wrap {
  overflow-x: auto;
}

.gr-formal-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.gr-formal-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 14px;
  background: #f6f0f1;
  color: var(--gr-dark);
  border-bottom: 1px solid var(--gr-line);
  font-size: .84rem;
  font-weight: 950;
  letter-spacing: .015em;
  text-align: start;
  white-space: nowrap;
}

.gr-formal-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(34,34,34,.075);
  color: #343434;
  vertical-align: middle;
}

.gr-formal-table tbody tr:hover {
  background: rgba(181,18,36,.035);
}

.gr-formal-reg-no {
  color: var(--gr-primary);
  font-weight: 950;
}

.gr-formal-student-name {
  color: var(--gr-dark);
  font-weight: 950;
}

.gr-formal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 950;
  white-space: nowrap;
  background: #f1f1f1;
  color: var(--gr-dark);
}

.gr-formal-status.gr-status-registered {
  background: rgba(61,113,63,.14);
  color: #2f6532;
}

.gr-formal-status.gr-status-checked_in,
.gr-formal-status.gr-status-attended {
  background: rgba(61,113,63,.22);
  color: #245328;
}

.gr-formal-status.gr-status-absent {
  background: rgba(181,18,36,.10);
  color: var(--gr-primary);
}

.gr-formal-empty {
  padding: 48px 24px;
  text-align: center;
}

.gr-formal-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gr-dark);
  font-size: 1.3rem;
  font-weight: 950;
}

.gr-formal-empty p {
  margin: 0;
  color: var(--gr-muted);
}

.gr-formal-pagination {
  padding: 16px 22px;
  border-top: 1px solid var(--gr-line);
}

.gr-registered-formal.graduation-rtl,
.gr-registered-formal.graduation-rtl * {
  text-align: right;
}

.gr-registered-formal.graduation-rtl .gr-formal-hero-inner,
.gr-registered-formal.graduation-rtl .gr-formal-card-head,
.gr-registered-formal.graduation-rtl .gr-formal-actions {
  flex-direction: row-reverse;
}

.gr-registered-formal.graduation-rtl .gr-formal-hero-stats span {
  text-align: left;
}

.gr-registered-formal.graduation-rtl input,
.gr-registered-formal.graduation-rtl select {
  direction: rtl;
  text-align: right;
}

.gr-registered-formal.graduation-rtl .gr-formal-actions {
  justify-content: flex-start;
}

@media (max-width: 1180px) {
  .gr-formal-hero,
  .gr-formal-shell {
    grid-template-columns: 1fr;
  }

  .gr-formal-sidebar {
    position: relative;
    top: auto;
  }

  .gr-formal-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gr-formal-hero-inner {
    align-items: flex-start;
  }

  .gr-formal-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-formal-filter-grid .gr-formal-search {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .graduation-registered-page.gr-registered-formal {
    padding-inline: 10px;
  }

  .gr-formal-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .gr-formal-hero-inner {
    flex-direction: column;
  }

  .gr-formal-emblem {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 20px;
  }

  .gr-formal-emblem span {
    width: 48px;
    height: 48px;
  }

  .gr-formal-stat-grid,
  .gr-formal-filter-grid {
    grid-template-columns: 1fr;
  }

  .gr-formal-filter-grid .gr-formal-search {
    grid-column: auto;
  }

  .gr-formal-card-head,
  .gr-registered-formal.graduation-rtl .gr-formal-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .gr-formal-actions,
  .gr-registered-formal.graduation-rtl .gr-formal-actions {
    flex-direction: column;
  }

  .gr-formal-primary-btn,
  .gr-formal-secondary-btn,
  .gr-formal-link,
  .gr-formal-count {
    width: 100%;
  }

  .gr-formal-table-wrap {
    overflow: visible;
  }

  .gr-formal-table,
  .gr-formal-table thead,
  .gr-formal-table tbody,
  .gr-formal-table th,
  .gr-formal-table td,
  .gr-formal-table tr {
    display: block;
    min-width: 0;
  }

  .gr-formal-table thead {
    display: none;
  }

  .gr-formal-table tr {
    margin: 14px;
    padding: 14px;
    border: 1px solid rgba(34,34,34,.09);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(34,34,34,.07);
  }

  .gr-formal-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(34,34,34,.10);
  }

  .gr-formal-table td:last-child {
    border-bottom: 0;
  }

  .gr-formal-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--gr-muted);
    font-weight: 950;
  }

  .gr-registered-formal.graduation-rtl .gr-formal-table td {
    flex-direction: row-reverse;
  }
}

/* Registered students public directory - v1.0.18 formal institutional design */
.graduation-registered-page.gr-directory-v18 {
  --grd-red: #b51224;
  --grd-red-light: #e22a3b;
  --grd-black: #222222;
  --grd-green-soft: #3d713f91;
  --grd-green: #3d713f;
  --grd-paper: #ffffff;
  --grd-bg: #f7f7f6;
  --grd-border: rgba(34, 34, 34, .12);
  --grd-muted: #687078;
  --grd-shadow: 0 18px 42px rgba(34, 34, 34, .08);
  max-width: 1340px;
  margin: 0 auto;
  padding: 30px 16px 56px;
  color: var(--grd-black);
  font-family: inherit;
}

.gr-directory-v18,
.gr-directory-v18 * {
  box-sizing: border-box;
}

.grd-official-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  min-height: 220px;
  padding: 0;
  border: 1px solid rgba(34, 34, 34, .12);
  border-radius: 18px;
  background: var(--grd-paper);
  box-shadow: var(--grd-shadow);
}

.grd-official-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, var(--grd-red), var(--grd-red-light));
}

.grd-official-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--grd-red), var(--grd-red-light), var(--grd-green-soft));
}

.grd-header-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px) clamp(26px, 4vw, 48px);
}

.grd-seal {
  flex: 0 0 102px;
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 42%, transparent 43%),
    conic-gradient(from 180deg, var(--grd-red), var(--grd-red-light), var(--grd-green), var(--grd-red));
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .8), 0 12px 26px rgba(34, 34, 34, .11);
}

.grd-seal span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(181, 18, 36, .18);
  background: #fff;
  color: var(--grd-red);
  font-size: .82rem;
  font-weight: 900;
}

.grd-title-block {
  max-width: 780px;
}

.grd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--grd-red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.grd-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--grd-red-light);
}

.grd-title-block h1 {
  margin: 0 0 12px;
  color: var(--grd-black);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.035em;
}

.grd-title-block p {
  margin: 0;
  color: var(--grd-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.grd-header-meta {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background: linear-gradient(180deg, #fbfbfb, #f2f3f2);
  border-inline-start: 1px solid rgba(34, 34, 34, .09);
}

.grd-header-meta div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(34, 34, 34, .09);
}

.grd-header-meta div:last-child {
  border-bottom: 0;
}

.grd-header-meta span,
.grd-stat-card span,
.grd-field span {
  color: var(--grd-muted);
  font-weight: 800;
}

.grd-header-meta strong {
  color: var(--grd-black);
  font-size: 1.2rem;
  font-weight: 900;
  white-space: nowrap;
}

.grd-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.grd-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--grd-border);
  border-radius: 16px;
  background: var(--grd-paper);
  box-shadow: 0 12px 30px rgba(34, 34, 34, .055);
}

.grd-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(61, 113, 63, .12);
}

.grd-stat-card span {
  display: block;
  min-height: 34px;
  font-size: .88rem;
}

.grd-stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--grd-black);
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  line-height: 1;
  font-weight: 900;
}

.grd-stat-card-primary {
  border-color: rgba(181, 18, 36, .24);
  background: linear-gradient(135deg, var(--grd-red), var(--grd-red-light));
}

.grd-stat-card-primary span,
.grd-stat-card-primary strong {
  color: #fff;
}

.grd-filter-panel,
.grd-results-panel {
  border: 1px solid var(--grd-border);
  border-radius: 18px;
  background: var(--grd-paper);
  box-shadow: var(--grd-shadow);
}

.grd-filter-panel {
  padding: 24px;
  margin-bottom: 18px;
}

.grd-panel-heading,
.grd-results-heading,
.grd-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.grd-panel-heading,
.grd-results-heading {
  margin-bottom: 20px;
}

.grd-panel-heading h2,
.grd-results-heading h2 {
  margin: 0;
  color: var(--grd-black);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.grd-filter-badge,
.grd-results-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--grd-green);
  background: rgba(61, 113, 63, .13);
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
}

.grd-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.grd-field {
  display: block;
  margin: 0;
}

.grd-field-search {
  grid-column: span 2;
}

.grd-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--grd-black);
  font-size: .91rem;
  font-weight: 900;
}

.grd-field input,
.grd-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(34, 34, 34, .18);
  border-radius: 12px;
  background: #fff;
  color: var(--grd-black);
  outline: 0;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.grd-field input:focus,
.grd-field select:focus {
  border-color: var(--grd-red);
  box-shadow: 0 0 0 4px rgba(181, 18, 36, .1);
}

.grd-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.grd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.grd-btn:hover {
  text-decoration: none;
}

.grd-btn-primary {
  color: #fff;
  background: var(--grd-red);
  border-color: var(--grd-red);
  box-shadow: 0 12px 22px rgba(181, 18, 36, .18);
}

.grd-btn-primary:hover {
  color: #fff;
  background: var(--grd-red-light);
  border-color: var(--grd-red-light);
}

.grd-btn-light {
  color: var(--grd-black);
  background: #f4f4f4;
  border-color: rgba(34, 34, 34, .12);
}

.grd-results-panel {
  overflow: hidden;
}

.grd-results-heading {
  padding: 24px 24px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(34, 34, 34, .1);
  background: linear-gradient(180deg, #fff, #fbfbfb);
}

.grd-table-frame {
  overflow-x: auto;
}

.grd-directory-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.grd-directory-table th,
.grd-directory-table td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(34, 34, 34, .08);
  text-align: start;
  vertical-align: middle;
}

.grd-directory-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #fff;
  background: var(--grd-black);
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}

.grd-directory-table th:first-child {
  box-shadow: inset 5px 0 0 var(--grd-red);
}

.grd-directory-table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.grd-directory-table tbody tr:hover {
  background: rgba(181, 18, 36, .04);
}

.grd-directory-table td {
  color: #34383c;
  font-size: .94rem;
}

.grd-reg-number {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--grd-red);
  background: rgba(181, 18, 36, .07);
  font-weight: 900;
  white-space: nowrap;
}

.grd-student-name {
  color: var(--grd-black);
  font-weight: 900;
}

.grd-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--grd-black);
  background: #ececec;
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}

.grd-status-registered {
  color: var(--grd-green);
  background: rgba(61, 113, 63, .13);
}

.grd-status-checked_in,
.grd-status-attended {
  color: #245328;
  background: rgba(61, 113, 63, .22);
}

.grd-status-absent {
  color: var(--grd-red);
  background: rgba(181, 18, 36, .1);
}

.grd-empty-state {
  padding: 54px 24px;
  text-align: center;
}

.grd-empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--grd-black);
  font-size: 1.25rem;
  font-weight: 900;
}

.grd-empty-state p {
  margin: 0;
  color: var(--grd-muted);
}

.grd-pagination {
  padding: 16px 22px;
  border-top: 1px solid rgba(34, 34, 34, .1);
}

.gr-directory-v18.graduation-rtl,
.gr-directory-v18.graduation-rtl * {
  text-align: right;
}

.gr-directory-v18.graduation-rtl .grd-official-header::before {
  inset: 0 0 0 auto;
}

.gr-directory-v18.graduation-rtl .grd-header-main,
.gr-directory-v18.graduation-rtl .grd-panel-heading,
.gr-directory-v18.graduation-rtl .grd-results-heading,
.gr-directory-v18.graduation-rtl .grd-actions {
  flex-direction: row-reverse;
}

.gr-directory-v18.graduation-rtl .grd-eyebrow::before {
  order: 2;
}

.gr-directory-v18.graduation-rtl .grd-header-meta {
  border-inline-start: 0;
  border-inline-end: 1px solid rgba(34, 34, 34, .09);
}

.gr-directory-v18.graduation-rtl input,
.gr-directory-v18.graduation-rtl select {
  direction: rtl;
  text-align: right;
}

.gr-directory-v18.graduation-rtl .grd-directory-table th,
.gr-directory-v18.graduation-rtl .grd-directory-table td {
  text-align: right;
}

.gr-directory-v18.graduation-rtl .grd-directory-table th:first-child {
  box-shadow: inset -5px 0 0 var(--grd-red);
}

@media (max-width: 1180px) {
  .grd-official-header {
    grid-template-columns: 1fr;
  }

  .grd-header-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-inline-start: 0;
    border-top: 1px solid rgba(34, 34, 34, .09);
  }

  .grd-header-meta div {
    border-bottom: 0;
  }

  .grd-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grd-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .graduation-registered-page.gr-directory-v18 {
    padding-inline: 10px;
  }

  .grd-header-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .gr-directory-v18.graduation-rtl .grd-header-main,
  .gr-directory-v18.graduation-rtl .grd-panel-heading,
  .gr-directory-v18.graduation-rtl .grd-results-heading,
  .gr-directory-v18.graduation-rtl .grd-actions {
    flex-direction: column;
  }

  .grd-header-meta,
  .grd-stat-strip,
  .grd-filter-grid {
    grid-template-columns: 1fr;
  }

  .grd-field-search {
    grid-column: auto;
  }

  .grd-panel-heading,
  .grd-results-heading,
  .grd-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .grd-btn,
  .grd-filter-badge,
  .grd-results-count {
    width: 100%;
  }

  .grd-table-frame {
    overflow: visible;
  }

  .grd-directory-table,
  .grd-directory-table thead,
  .grd-directory-table tbody,
  .grd-directory-table th,
  .grd-directory-table td,
  .grd-directory-table tr {
    display: block;
    min-width: 0;
  }

  .grd-directory-table thead {
    display: none;
  }

  .grd-directory-table tr {
    margin: 14px;
    padding: 14px;
    border: 1px solid rgba(34, 34, 34, .11);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(34, 34, 34, .07);
  }

  .grd-directory-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(34, 34, 34, .12);
  }

  .grd-directory-table td:last-child {
    border-bottom: 0;
  }

  .grd-directory-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--grd-muted);
    font-weight: 900;
  }

  .gr-directory-v18.graduation-rtl .grd-directory-table td {
    flex-direction: row-reverse;
  }
}

/* v1.0.19 - Formal visible checkbox/radio state for registration wizard */
.graduation-portal .control-group:has(input[type="checkbox"]),
.graduation-portal .control-group:has(input[type="radio"]),
.graduation-portal .control-group.graduation-option-checked {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.graduation-portal .control-group:has(input[type="checkbox"]),
.graduation-portal .control-group:has(input[type="radio"]) {
  cursor: pointer;
}

.graduation-portal .control-group:has(input[type="checkbox"]:checked),
.graduation-portal .control-group:has(input[type="radio"]:checked),
.graduation-portal .control-group.graduation-option-checked {
  border-color: rgba(181, 18, 36, .55) !important;
  background: linear-gradient(180deg, rgba(181, 18, 36, .055), #fff 68%) !important;
  box-shadow: 0 16px 34px rgba(181, 18, 36, .11) !important;
}

.graduation-portal input[type="checkbox"],
.graduation-portal input[type="radio"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  margin: 8px 10px 0 0 !important;
  border: 2px solid #cbd5e1 !important;
  background-color: #fff !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px 14px !important;
  box-shadow: inset 0 0 0 3px #fff, 0 4px 10px rgba(34, 34, 34, .08) !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.graduation-portal input[type="checkbox"] {
  border-radius: 8px !important;
}

.graduation-portal input[type="radio"] {
  border-radius: 50% !important;
}

.graduation-portal input[type="checkbox"]:hover,
.graduation-portal input[type="radio"]:hover {
  border-color: #e22a3b !important;
  transform: translateY(-1px) !important;
}

.graduation-portal input[type="checkbox"]:focus-visible,
.graduation-portal input[type="radio"]:focus-visible {
  outline: 3px solid rgba(226, 42, 59, .22) !important;
  outline-offset: 3px !important;
}

.graduation-portal input[type="checkbox"]:checked,
.graduation-portal input[type="radio"]:checked {
  border-color: #b51224 !important;
  background-color: #b51224 !important;
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px rgba(226, 42, 59, .14), 0 10px 18px rgba(181, 18, 36, .22) !important;
}

.graduation-portal input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10.5l3.1 3.1L15.5 6' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  box-shadow: 0 0 0 4px rgba(226, 42, 59, .14), 0 10px 18px rgba(181, 18, 36, .22) !important;
}

.graduation-portal input[type="radio"]:checked {
  background-image: radial-gradient(circle at center, #fff 0 31%, transparent 34%) !important;
}

.graduation-portal .control-group:has(input[type="checkbox"]) .controls,
.graduation-portal .control-group:has(input[type="radio"]) .controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 34px !important;
}

.graduation-portal .control-group:has(input[type="checkbox"]:checked) .control-label label,
.graduation-portal .control-group:has(input[type="radio"]:checked) .control-label label,
.graduation-portal .control-group.graduation-option-checked .control-label label {
  color: #b51224 !important;
}

.graduation-portal .control-group.graduation-option-checked::after,
.graduation-portal .control-group:has(input[type="checkbox"]:checked)::after,
.graduation-portal .control-group:has(input[type="radio"]:checked)::after {
  content: "Selected";
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(61, 113, 63, .14);
  color: #27602a;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.graduation-portal.is-rtl .control-group.graduation-option-checked::after,
.graduation-portal.is-rtl .control-group:has(input[type="checkbox"]:checked)::after,
.graduation-portal.is-rtl .control-group:has(input[type="radio"]:checked)::after {
  content: "تم الاختيار";
}

/* v1.0.20 formal confirmation/ticket polish */
.graduation-formal-wizard .graduation-ticket-frame {
  background: linear-gradient(180deg,#fff,#fafafa) !important;
  border-radius: 24px !important;
  padding: 22px !important;
}
.graduation-formal-wizard .graduation-ticket-frame h1,
.graduation-formal-wizard .graduation-ticket-frame h2,
.graduation-formal-wizard .graduation-ticket-frame h3 {
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.graduation-formal-wizard .graduation-reset-note {
  width: 100%;
  margin: 12px 0 0;
  color: #667085;
  font-size: .92rem;
  text-align: center;
}
.graduation-formal-wizard.is-rtl .graduation-reset-note { text-align: center; }

/* v1.0.27 guest-limit and security UX */
.graduation-portal .graduation-limit-note{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  margin:.75rem 0 1rem;
  padding:.75rem 1rem;
  border:1px solid rgba(181,18,36,.18);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(181,18,36,.055),rgba(61,113,63,.08));
  color:#222222;
  font-size:.95rem;
  font-weight:700;
}
.graduation-portal .graduation-limit-note:before{
  content:'!';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#b51224,#e22a3b);
  font-size:.85rem;
  font-weight:900;
}
.graduation-portal input[name="jform[guest_count]"]:invalid,
.graduation-portal #jform_guest_count:invalid{
  border-color:#b51224!important;
  box-shadow:0 0 0 4px rgba(181,18,36,.12)!important;
}

/* v1.0.31 inline field validation popups */
.graduation-portal .control-group,
.graduation-portal .control-group-wrapper,
.graduation-portal .graduation-fields-grid > div {
  position: relative;
}
.graduation-portal .has-graduation-field-error input,
.graduation-portal .has-graduation-field-error select,
.graduation-portal .has-graduation-field-error textarea {
  border-color: #b51224 !important;
  box-shadow: 0 0 0 4px rgba(181,18,36,.12) !important;
  background: #fffafa !important;
}
.graduation-portal .graduation-field-popup {
  position: absolute;
  inset-inline-start: 14px;
  top: calc(100% - 6px);
  z-index: 50;
  max-width: min(360px, calc(100vw - 50px));
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(181,18,36,.25);
  background: linear-gradient(180deg, #fff, #fff7f8);
  color: #b51224;
  box-shadow: 0 16px 34px rgba(34,34,34,.14);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.graduation-portal .graduation-field-popup::before {
  content: "";
  position: absolute;
  top: -7px;
  inset-inline-start: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid rgba(181,18,36,.25);
  border-inline-start: 1px solid rgba(181,18,36,.25);
  transform: rotate(45deg);
}
.graduation-portal.is-rtl .graduation-field-popup {
  text-align: right;
}

/* v1.0.43: keep verified student card formal after removing the public Change Student ID action. */
.graduation-portal .graduation-student-card {
  justify-content: flex-start;
}
.graduation-portal .graduation-student-id {
  margin-inline-start: auto;
}
.graduation-portal input[name="jform[alternate_mobile]"]:not(:required):placeholder-shown {
  border-color: #cbd5e1;
  box-shadow: none;
}
