.navbar-cta.is-auth-checking,
.mobile-menu-cta.is-auth-checking {
  position: relative;
  pointer-events: none;
  color: transparent;
  min-width: 112px;
  opacity: 1;
  overflow: hidden;
}

.navbar-cta.is-auth-checking::before,
.mobile-menu-cta.is-auth-checking::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transform: translate(-50%, -50%);
  animation: navbarAuthPulse 1.1s ease-in-out infinite;
}

.auth-page.auth-session-checking .auth-main {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-page.auth-session-checking::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(95, 70, 216, 0.16);
  border-top-color: #5f46d8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: authSessionSpin 0.8s linear infinite;
}

.auth-page .auth-main {
  transition: opacity 180ms ease;
}

.resource-card-skeleton {
  min-height: 480px;
  pointer-events: none;
}

.resource-skeleton-visual {
  height: 220px;
  background: linear-gradient(90deg, #eef0f7 25%, #f7f8fc 50%, #eef0f7 75%);
  background-size: 200% 100%;
  animation: uiSkeleton 1.25s ease-in-out infinite;
}

.resource-skeleton-content {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.resource-skeleton-content span,
.account-course-skeleton span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef0f7 25%, #f7f8fc 50%, #eef0f7 75%);
  background-size: 200% 100%;
  animation: uiSkeleton 1.25s ease-in-out infinite;
}

.resource-skeleton-content span:first-child {
  width: 72%;
  height: 22px;
}

.resource-skeleton-content span:nth-child(2) { width: 100%; }
.resource-skeleton-content span:last-child { width: 58%; }

.account-course-skeleton-list {
  display: grid;
  gap: 14px;
}

.account-course-skeleton {
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(42, 31, 111, 0.08);
  border-radius: 18px;
  background: #fff;
}

.account-course-skeleton span {
  margin-top: 12px;
  height: 13px;
}

.account-course-skeleton span:first-child {
  margin-top: 0;
  width: 24%;
  height: 20px;
}

.account-course-skeleton span:nth-child(2) { width: 62%; }
.account-course-skeleton span:last-child { width: 82%; }
.account-course-retry { margin-top: 14px; }

@keyframes navbarAuthPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.86; }
}

@keyframes authSessionSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes uiSkeleton {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-cta.is-auth-checking::before,
  .mobile-menu-cta.is-auth-checking::before,
  .auth-page.auth-session-checking::after,
  .resource-skeleton-visual,
  .resource-skeleton-content span,
  .account-course-skeleton span {
    animation: none;
  }

  .auth-page .auth-main {
    transition: none;
  }
}