:root {
  --dashboard-surface: #ffffff;
  --dashboard-text: #0f172a;
}

html.dark {
  --dashboard-surface: #0b0b0b;
  --dashboard-text: #ffffff;
}

.dashboard {
  position: relative;

  width: 100%;

  min-height: 100vh;

  overflow-x: hidden;

  overflow-y: auto;

  background: #fcfdff;
}

.dashboard__background {
  position: absolute;

  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: -1;
}

.symbol {
  position: absolute;

  z-index: 0;

  color: rgba(37, 99, 235, 0.04);

  pointer-events: none;
}

.s1 {
  top: 6%;
  left: 5%;
  font-size: 4rem;
}
.s2 {
  top: 12%;
  right: 8%;
  font-size: 3.5rem;
}
.s3 {
  top: 40%;
  left: 3%;
  font-size: 3rem;
}
.s4 {
  bottom: 10%;
  left: 15%;
  font-size: 3rem;
}
.s5 {
  bottom: 12%;
  right: 10%;
  font-size: 3.5rem;
}
.s6 {
  top: 65%;
  right: 8%;
  font-size: 2.8rem;
}
.s7 {
  top: 22%;
  left: 72%;
  font-size: 2.5rem;
}

.navbar {
  position: fixed;

  top: 18px;

  left: 50%;

  transform: translateX(-50%);

  width: calc(100% - 40px);
  max-width: 1500px;

  height: 72px;

  padding: 0 24px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.82);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(226, 232, 240, 0.9);

  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.06);

  z-index: 1000;
}

.navbar__left {
  display: flex;

  align-items: center;

  gap: 18px;
}

.navbar__center {
  flex: 1;

  display: flex;

  justify-content: center;
}

.navbar__right {
  display: flex;

  align-items: center;

  gap: 12px;
}

.menu-button {
  width: 46px;

  height: 46px;

  border: none;

  border-radius: 14px;

  background: #f8fafc;

  cursor: pointer;

  font-size: 1.1rem;

  transition: 0.25s;
}

.menu-button:hover {
  background: #eef4ff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo img {
  object-fit: contain;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.logo__icon {
  width: 42px;

  height: 42px;

  border-radius: 14px;

  background: #2563eb;

  color: var(--surface);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.05rem;

  font-weight: 800;

  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.18);
}

.logo__text {
  display: flex;

  flex-direction: column;
}

.logo__title {
  font-weight: 800;

  font-size: 1rem;

  color: var(--dashboard-text);
}

.logo__subtitle {
  font-size: 0.78rem;

  color: #64748b;
}

.search {
  width: 100%;

  max-width: 460px;

  height: 48px;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 0 18px;

  background: #f8fafc;

  border: 1px solid var(--border);

  border-radius: 16px;
}

.search:hover {
  border-color: #cbd5e1;
}

.search:focus-within {
  border-color: #2563eb;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.search svg {
  color: #94a3b8;

  flex-shrink: 0;
}

.search input {
  flex: 1;

  border: none;

  outline: none;

  background: transparent;

  font-size: 0.92rem;

  color: var(--dashboard-text);
}

.search input {
  color: #94a3b8;
}

.icon-button,
.profile-button {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: 0.25s;

  position: relative;
}

.icon-button:hover,
.profile-button:hover {
  background: #eef4ff;
}

.xp-badge {
  height: 46px;

  padding: 0 16px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  border-radius: 14px;

  background: #f8fafc;

  border: 1px solid #e2e8f0;

  cursor: default;
}


.xp-icon {
  width: 16px;
  height: 16px;

  color: #2563eb;

  flex-shrink: 0;
}

#xpValue {
  font-size: 0.9rem;

  font-weight: 800;

  color: var(--dashboard-text);

  line-height: 1;
}

.sidebar {
  position: fixed;

  top: 20px;
  left: -340px;
  bottom: 20px;

  width: 300px;

  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.97);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border: 1px solid #e2e8f0;

  border-radius: 22px;

  padding: 28px;

  transition:
    left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;

  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.12),
    0 6px 20px rgba(15, 23, 42, 0.06);

  z-index: 2000;

  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.active {
  left: 20px;

  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.16),
    0 8px 24px rgba(15, 23, 42, 0.07);
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 0 22px;

  margin-bottom: 22px;

  border-bottom: 1px solid #edf2f7;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar nav a {
  display: flex;
  align-items: center;

  min-height: 48px;

  padding: 0 16px;

  border-radius: 14px;

  color: #475569;

  font-weight: 600;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.sidebar nav a:hover {
  background: #eff6ff;
  color: #2563eb;

  transform: translateX(2px);
}

.sidebar nav a.active {
  background: #2563eb;
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.sidebar-nav a .sidebar-nav-label {
  min-width: 0;
}

.sidebar-nav-badge {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  background: #f4f7ff;
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.sidebar-nav a:hover .sidebar-nav-badge {
  background: #ffffff;
  border-color: #cfe0ff;
}

.sidebar-nav a.active .sidebar-nav-badge {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 50px;
  padding: 0 16px;

  border-radius: 15px;

  color: #475569;

  font-weight: 600;
  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;

  flex: 0 0 20px;

  color: currentColor;

  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.sidebar-nav a:hover {
  background: #eff6ff;
  color: #2563eb;

  transform: translateX(2px);
}

.sidebar-nav a:hover .sidebar-nav-icon {
  transform: scale(1.08);
}

.sidebar-nav a.active {
  background: #2563eb;
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.sidebar-nav a.active .sidebar-nav-icon {
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-divider {
  width: 100%;
  height: 1px;

  margin: 28px 0 22px;

  background: #edf2f7;
}

.sidebar nav a {
  display: flex;

  align-items: center;

  height: 48px;

  padding: 0 16px;

  border-radius: 14px;

  color: #475569;

  font-weight: 600;

  transition: 0.25s;
}

.sidebar nav a:hover {
  background: #eff6ff;

  color: #2563eb;
}

.sidebar nav a.active {
  background: #2563eb;

  color: #ffffff;
}

.overlay {
  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.25);

  backdrop-filter: blur(4px);

  opacity: 0;

  visibility: hidden;

  transition: 0.3s;

  z-index: 1500;
}

.overlay.active {
  opacity: 1;

  visibility: visible;
}

.content {
  position: relative;

  z-index: 5;

  width: calc(100% - 40px);
  max-width: 1500px;

  margin: 120px auto 40px;

  overflow: visible;
}

.dashboard-back {
  height: 40px;

  padding: 0 18px;

  border-radius: 12px;

  font-size: 0.82rem;

  font-weight: 700;

  box-shadow: none;

  width: auto;
}

.dashboard-back:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.notification-dropdown {
  position: fixed;

  top: 90px;
  right: 24px;

  width: 390px;

  height: min(600px, calc(100vh - 120px));

  display: flex;
  flex-direction: column;

  background: var(--dashboard-surface);

  border: 1px solid #e2e8f0;
  border-radius: 24px;

  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);

  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);

  transition: 0.25s;

  z-index: 3000;
}

.notification-dropdown.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.notification-loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notification-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 18px;
  border: 1px solid #e9eef7;
  border-radius: 18px;
  background: var(--dashboard-surface);
}

.notification-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  animation: notificationSkeletonShimmer 1.35s ease-in-out infinite;
}

.notification-skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: #e9edf3;
  margin-bottom: 12px;
}

.notification-skeleton-line.title {
  width: 55%;
  height: 18px;
}

.notification-skeleton-line.text {
  width: 92%;
}

.notification-skeleton-line.text.short {
  width: 72%;
}

.notification-skeleton-line.date {
  width: 28%;
  margin-top: 22px;
}

@keyframes notificationSkeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

html.dark .notification-skeleton {
  border-color: #1c2633;
  background: #0c1118;
}

html.dark .notification-skeleton::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
}

html.dark .notification-skeleton-line {
  background: #171b22;
}

.dropdown-header {
  flex: 0 0 auto;

  padding: 22px;

  border-bottom: 1px solid #eef2f7;

  background: white;
}

.dropdown-header h3 {
  font-size: 1rem;

  font-weight: 800;

  color: var(--dashboard-text);
}

.dropdown-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;

  min-height: 0;

  padding: 16px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  background: #fbfcff;
}

.notification-empty {
  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;
}

.notification-empty-icon {
  width: 62px;

  height: 62px;

  border-radius: 18px;

  background: #eff6ff;

  color: #2563eb;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 1.5rem;

  font-weight: 700;
}

.notification-empty h3 {
  margin-top: 18px;

  font-size: 1rem;

  font-weight: 700;

  color: var(--dashboard-text);
}

.notification-empty p {
  margin-top: 8px;

  color: #64748b;

  font-size: 0.88rem;

  line-height: 1.6;
}

.notification-item {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: 18px;

  background: var(--dashboard-surface);

  border: 1px solid #e9eef7;

  border-radius: 18px;

  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;

  cursor: pointer;
}

.notification-item:hover {
  transform: translateY(-3px);

  border-color: #dbeafe;

  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-title {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 1rem;
  font-weight: 700;

  color: var(--dashboard-text);

  margin-bottom: 8px;
}

.notification-message {
  color: #64748b;

  font-size: 0.92rem;

  line-height: 1.7;

  display: -webkit-box;
  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;
}

.notification-date {
  margin-top: 14px;

  font-size: 0.8rem;

  color: #94a3b8;

  font-weight: 600;
}

.dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.dropdown-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

.dropdown-body::-webkit-scrollbar-track {
  background: transparent;
}

.profile-dropdown {
  position: fixed;

  top: 100px;

  right: 24px;

  width: 300px;

  background: var(--dashboard-surface);

  border: 1px solid #e2e8f0;

  border-radius: 22px;

  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);

  overflow: hidden;

  opacity: 0;

  visibility: hidden;

  transform: translateY(-12px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;

  z-index: 3001;
}

.profile-dropdown.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid #eef2f7;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}
.profile-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dashboard-text);

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.profile-header p {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #64748b;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-menu {
  padding: 10px;
}

.profile-item {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: none;
  background: transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;

  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  color: #334155;

  transition: 0.25s;
}

.theme-setting,
.theme-setting__label {
  font-family: "Inter", sans-serif;
}

.theme-setting__label {
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-item:hover {
  background: #f8fafc;
}

.profile-item span {
  width: 22px;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 1rem;
}

.logout {
  margin-top: 6px;

  color: #dc2626;
}

.logout:hover {
  background: #fef2f2;
}

.logout-modal {
  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.35);

  backdrop-filter: blur(8px);

  display: flex;

  justify-content: center;

  align-items: center;

  opacity: 0;

  visibility: hidden;

  transition: 0.25s;

  z-index: 6000;
}

.logout-modal.show {
  opacity: 1;

  visibility: visible;
}

.logout-card {
  width: min(420px, calc(100% - 24px));

  background: var(--dashboard-surface);

  border: 1px solid #e2e8f0;

  border-radius: 28px;

  padding: 34px;

  text-align: center;

  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.18);

  transform: translateY(20px) scale(0.96);

  opacity: 0;

  transition: 0.25s;
}

.logout-modal.show .logout-card {
  transform: translateY(0) scale(1);

  opacity: 1;
}

.logout-icon {
  width: 72px;

  height: 72px;

  margin: 0 auto;

  border-radius: 22px;

  background: #fef2f2;

  color: #dc2626;

  display: flex;

  justify-content: center;

  align-items: center;
}

.logout-card h2 {
  margin-top: 22px;

  font-size: 1.8rem;

  font-weight: 800;

  color: var(--dashboard-text);
}

.logout-card p {
  margin-top: 12px;

  color: #64748b;

  line-height: 1.7;
}

.logout-actions {
  display: flex;

  gap: 14px;

  margin-top: 30px;
}

.logout-actions button {
  flex: 1;

  height: 48px;

  border: none;

  border-radius: 14px;

  font-weight: 700;

  cursor: pointer;
}

.logout-cancel {
  background: #f8fafc;

  color: #334155;
}

.logout-cancel:hover {
  background: #eef2f7;
}

.logout-confirm {
  background: #dc2626;

  color: #ffffff;
}

.logout-confirm:hover {
  background: #b91c1c;
}

.profile-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 99999;
}

.profile-modal.show {
  opacity: 1;
  visibility: visible;
}

.profile-modal-card {
  position: relative;
  width: min(720px, 94vw);
  max-height: min(900px, calc(100vh - 48px));
  overflow-y: auto;
  box-sizing: border-box;
  background: var(--dashboard-surface);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 32px;
  padding: 54px 48px 34px;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.22);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
}

.profile-modal.show .profile-modal-card {
  transform: translateY(0) scale(1);
}

.profile-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid #edf2f7;
  border-radius: 15px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.profile-modal-close:hover {
  background: #eef4ff;
  border-color: #dbe7ff;
  color: #2563eb;
}

.profile-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 52px 0;
}

.profile-modal-header h2 {
  margin: 22px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.045em;
  color: var(--dashboard-text);
}

.profile-modal-header p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 1.02rem;
  font-weight: 500;
}

.profile-modal-divider,
.profile-modal-status {
  display: none;
}

.profile-level-card {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid #dbe7ff;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7faff 0%, #eef4ff 100%);
}

.profile-level-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

.profile-level-badge {
  width: 164px;
  height: 164px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 20px rgba(15, 23, 42, 0.14));
}

.profile-level-main {
  min-width: 0;
}

.profile-level-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.profile-level-main h3 {
  margin: 0;
  color: var(--dashboard-text);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.profile-level-main > p {
  margin: 7px 0 20px;
  color: #64748b;
  font-size: 1.35rem;
  font-weight: 500;
}

.profile-level-progress {
  width: 100%;
}

.profile-level-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.86rem;
}

.profile-level-progress-top span {
  color: #2563eb;
  font-weight: 800;
}

.profile-level-progress-top strong {
  color: #64748b;
  font-weight: 600;
  text-align: right;
}

.profile-level-progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e0ef;
}

.profile-level-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  transition: width 0.45s ease;
}

.profile-modal-info {
  display: flex;
  flex-direction: column;
  margin-top: 22px;
}

.profile-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 12px 0;
  border-bottom: 1px solid #e8eef6;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f8fc;
  color: #5d7394;
}

.profile-row-icon svg {
  width: 25px;
  height: 25px;
}

.profile-row-label {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
}

.profile-row strong {
  color: var(--dashboard-text);
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
  max-width: 360px;
}

.profile-modal .primary-button.profile-modal-close-action {
  width: 100%;
  height: 54px;
  margin-top: 26px;
  border: 1px solid #dbe4ef;
  border-radius: 17px;
  background: #f7f9fc;
  color: var(--dashboard-text);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: none;
}

.profile-modal .primary-button.profile-modal-close-action:hover {
  background: #eef4ff;
  border-color: #cfe0ff;
  color: #2563eb;
  box-shadow: none;
  transform: none;
}

html.dark .profile-modal-card {
  background: #0b0b0b;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
}

html.dark .profile-modal-close {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

html.dark .profile-modal-close:hover {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.24);
  color: #60a5fa;
}

html.dark .profile-modal-header p,
html.dark .profile-level-main > p,
html.dark .profile-level-progress-top strong,
html.dark .profile-row-label {
  color: #94a3b8;
}

html.dark .profile-level-card {
  background: #101010;
  border-color: rgba(255, 255, 255, 0.13);
}

html.dark .profile-level-progress-track {
  background: #272727;
}

html.dark .profile-row {
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .profile-row-icon {
  background: #151515;
  color: #9fb2ce;
}

html.dark .profile-modal .primary-button.profile-modal-close-action {
  background: #101010;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

html.dark .profile-modal .primary-button.profile-modal-close-action:hover {
  background: #151515;
  border-color: rgba(255, 255, 255, 0.3);
  color: #60a5fa;
}

@media (max-width: 700px) {
  .profile-modal {
    padding: 12px;
  }

  .profile-modal-card {
    width: min(100%, 620px);
    max-height: calc(100vh - 24px);
    padding: 48px 22px 22px;
    border-radius: 26px;
  }

  .profile-modal-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .profile-modal-header {
    padding: 12px 30px 0;
  }

  .profile-level-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
    text-align: center;
  }

  .profile-level-badge-wrap {
    min-height: 0;
  }

  .profile-level-badge {
    width: 128px;
    height: 128px;
  }

  .profile-level-progress-top {
    align-items: center;
    text-align: left;
  }

  .profile-level-progress-top strong {
    text-align: right;
  }

  .profile-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    min-height: 70px;
  }

  .profile-row-icon {
    width: 44px;
    height: 44px;
  }

  .profile-row strong {
    grid-column: 2;
    max-width: none;
    text-align: left;
    font-size: 0.94rem;
    margin-top: -6px;
  }
}

.sidebar__header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 26px;

  border-bottom: 1px solid #edf2f7;

  font-size: 1.3rem;

  font-weight: 800;

  color: var(--dashboard-text);

  margin-bottom: 12px;
}

.logo-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-icon img {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  flex-shrink: 0;
}

.sidebar-brand-text h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dashboard-text);
}

.sidebar-brand {
  display: flex;

  align-items: center;

  gap: 14px;
}

.sidebar-brand-icon {
  width: 48px;

  height: 48px;

  border-radius: 16px;

  background: linear-gradient(135deg, #2563eb, #4f8cff);

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.2rem;

  font-weight: 800;

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}
.sidebar-brand-text span {
  display: block;

  margin-top: 2px;

  color: #64748b;

  font-size: 0.82rem;
}

.sidebar-close {
  width: 42px;

  height: 42px;

  border: none;

  border-radius: 12px;

  background: #f8fafc;

  color: #64748b;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: 0.25s;
}

.sidebar-close:hover {
  background: #eef4ff;

  color: #2563eb;
}

.study-sessions {
  margin-top: 42px;

  overflow: visible;
}

.study-header {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  margin: 0 auto 40px;

  max-width: 800px;
}

.study-header h2 {
  font-size: 2.2rem;

  font-weight: 800;

  color: var(--dashboard-text);

  letter-spacing: -0.04em;

  margin-bottom: 14px;
}

.study-header p {
  max-width: 650px;

  font-size: 1.08rem;

  line-height: 1.8;

  color: #64748b;

  margin: 0;
}

.new-session-btn {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 14px 22px;

  background: var(--dashboard-surface);

  border: 1px solid #dbe4ef;

  border-radius: 18px;

  cursor: pointer;

  transition: 0.25s;

  font-weight: 700;
}

.new-session-btn span {
  font-size: 1.3rem;

  color: #2563eb;
}

.new-session-btn:hover {
  transform: translateY(-2px);

  border-color: #2563eb;

  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.1);
}

.empty-study {
  width: 100%;

  min-height: 320px;

  flex: 1 1 100%;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  background: var(--dashboard-surface);

  border: 1px solid #e7edf5;

  border-radius: 28px;

  padding: 70px 50px;
}

.empty-study-icon {
  width: 90px;

  height: 90px;

  margin: 0 auto 28px;

  border-radius: 24px;

  background: #eef4ff;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #2563eb;
}

.empty-study h3 {
  font-size: 2rem;

  font-weight: 800;

  color: var(--dashboard-text);

  margin-bottom: 14px;
}

.empty-study p {
  max-width: 520px;

  margin: 0 auto 34px;

  font-size: 1rem;

  line-height: 1.7;

  color: #64748b;
}

.empty-session-btn {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  height: 54px;

  padding: 0 28px;

  border: none;

  border-radius: 16px;

  background: #2563eb;

  color: #fff;

  font-size: 1rem;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.empty-session-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.study-features {
  display: flex;

  justify-content: center;

  gap: 36px;

  margin-top: 42px;

  flex-wrap: wrap;
}

.study-feature {
  display: flex;

  align-items: center;

  gap: 10px;

  color: #64748b;

  font-weight: 600;
}

.study-feature span {
  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #22c55e;
}

.session-modal {
  position: fixed;

  inset: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  background: rgba(15, 23, 42, 0.45);

  backdrop-filter: blur(12px);

  opacity: 0;

  visibility: hidden;

  transition: 0.25s;

  z-index: 9999;
}

.session-modal.show {
  opacity: 1;

  visibility: visible;
}

.session-card {
  position: relative;

  width: min(560px, 92vw);

  background: var(--dashboard-surface);

  border-radius: 30px;

  border: 1px solid #e8eef7;

  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.15);

  padding: 36px;

  display: flex;

  flex-direction: column;

  gap: 26px;

  height: auto;

  min-height: unset;
}

.session-modal.show .session-card {
  transform: translateY(0);
}

.session-close {
  position: absolute;

  top: 18px;

  right: 18px;

  width: 42px;

  height: 42px;

  border: none;

  border-radius: 12px;

  background: #f8fafc;

  cursor: pointer;

  font-size: 18px;
}

.session-close:hover {
  background: #eef4ff;
}

.session-header h2 {
  font-size: 1.8rem;

  font-weight: 800;
}

.session-header p {
  margin-top: 8px;

  color: #64748b;
}

.session-field {
  margin-top: 28px;
}

.session-field label {
  display: block;

  margin-bottom: 10px;

  font-weight: 700;
}

.session-field input {
  width: 100%;

  height: 58px;

  padding: 0 20px;

  border-radius: 18px;

  border: 1px solid #dbe4ef;

  font-size: 1rem;
}

.session-field input:focus {
  outline: none;

  border-color: #2563eb;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

#youtubeError {
  display: block;

  margin-top: 10px;

  color: #dc2626;

  min-height: 20px;
}

.session-actions {
  display: flex;

  justify-content: flex-end;

  gap: 14px;

  margin-top: 8px;
}

.cancel-btn {
  height: 48px;

  padding: 0 22px;

  border-radius: 14px;

  border: 1px solid #dbe4ef;

  background: var(--dashboard-surface);

  cursor: pointer;
}

.import-btn {
  height: 48px;

  padding: 0 24px;

  border: none;

  border-radius: 14px;

  background: #2563eb;

  color: #fff;

  font-weight: 700;

  cursor: pointer;
}
html,
body {
  height: 100%;

  overflow-y: auto;

  overflow-x: hidden;
}
html.modal-open,
body.modal-open {
  overflow: hidden;
}

.session-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.video-preview.show {
  opacity: 1;

  transform: translateY(0);
}

.video-preview {
  width: 100%;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 18px;
  display: none;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;

  background: #fbfcff;
  border: 1px solid #e7edf5;
  border-radius: 22px;

  overflow: hidden;

  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.video-preview.show {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.video-preview img {
  display: block;
  width: 100%;
  max-width: 170px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  min-width: 0;
}

.preview-content {
  min-width: 0;
  width: 100%;
  background: transparent;
}

.preview-content h3 {
  margin: 14px 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dashboard-text);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-content p {
  margin: 0;
  color: #64748b;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-badge {
  display: inline-flex;

  padding: 6px 12px;

  border-radius: 999px;

  background: #eef4ff;

  color: #2563eb;

  font-size: 0.82rem;

  font-weight: 700;
}

.preview-content h3 {
  margin: 14px 0 8px;

  font-size: 1.3rem;

  font-weight: 800;

  color: var(--dashboard-text);
}

.preview-content p {
  color: #64748b;
}

.loading-preview {
  display: none;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 32px 0;
}

.loading-preview.show {
  display: flex;
}

.loading-spinner {
  width: 52px;

  height: 52px;

  border: 4px solid #e7edf5;

  border-top-color: #2563eb;

  border-radius: 50%;

  animation: spin 0.8s linear infinite;

  margin-bottom: 22px;
}

.loading-preview h3 {
  font-size: 1.2rem;

  font-weight: 800;

  color: var(--dashboard-text);
}

.loading-preview p {
  margin-top: 10px;

  color: #64748b;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.continue-section {
  margin-top: 20px;

  padding: 16px 55px 0;
}

.continue-header h2 {
  font-size: 2rem;

  font-weight: 800;

  color: var(--dashboard-text);

  margin-top: 12px;
}

.continue-header p {
  margin-top: 10px;

  color: #64748b;
}

.continue-container {
  display: flex;

  align-items: stretch;

  gap: 28px;

  overflow-x: auto;
  overflow-y: visible;

  padding: 22px 0 35px;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.continue-container::-webkit-scrollbar {
  height: 10px;
}

.continue-container::-webkit-scrollbar-track {
  background: #eef3fb;

  border-radius: 999px;
}

.continue-container::-webkit-scrollbar-thumb {
  background: #2563eb;

  border-radius: 999px;

  border: 2px solid #eef3fb;
}

.continue-container::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

.continue-container {
  scrollbar-width: thin;

  scrollbar-color: #2563eb #eef3fb;
}

.continue-card {
  flex: 0 0 360px;

  position: relative;

  background: var(--dashboard-surface);

  border: 1px solid #edf2f7;

  border-radius: 24px;

  overflow: visible;

  isolation: isolate;

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;

  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.04),
    0 8px 18px rgba(15, 23, 42, 0.05);

  backface-visibility: hidden;

  transform: translateZ(0);

  will-change: transform;
}

.continue-card-surface {
  overflow: hidden;

  border-radius: 23px;

  background: var(--dashboard-surface);
}

.continue-thumbnail {
  width: 100%;

  aspect-ratio: 16/9;

  object-fit: cover;

  background: #eef4ff;
}

.continue-content {
  padding: 22px;

  display: flex;

  flex-direction: column;

  height: 100%;

  min-height: 360px;
}

.continue-title {
  font-size: 1.08rem;

  font-weight: 800;

  color: var(--dashboard-text);

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  margin-bottom: 8px;
}

.continue-progress {
  width: 100%;
  height: 10px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.continue-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 999px;
  transition: width 0.2s linear;
}

html.dark .continue-progress {
  background: #263244;
}

html.dark .continue-progress-fill {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
}

.continue-footer {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  margin-top: 18px;
}

.continue-footer span {
  color: #64748b;

  font-weight: 600;
}

.continue-btn {
  height: 48px;

  border: none;

  border-radius: 14px;

  background: #2563eb;

  color: #ffffff;

  font-weight: 700;

  font-size: 0.95rem;

  cursor: pointer;

  transition: 0.25s;
}

.continue-btn:hover {
  background: #1d4ed8;

  transform: translateY(-2px);
}

.continue-meta {
  display: flex;

  justify-content: space-between;

  margin-top: auto;

  margin-bottom: 20px;

  padding: 18px;

  background: #f8fbff;

  border-radius: 16px;

  border: 1px solid #edf2f7;
}

.continue-meta div {
  display: flex;

  flex-direction: column;
}

.continue-meta strong {
  font-size: 1.2rem;

  font-weight: 800;

  color: var(--dashboard-text);
}

.continue-meta small {
  margin-top: 4px;

  color: #64748b;

  font-size: 0.8rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.continue-container.dragging {
  cursor: grabbing;

  user-select: none;
}

.continue-channel {
  color: #64748b;

  font-size: 0.92rem;

  line-height: 1.6;

  display: -webkit-box;

  -webkit-box-orient: vertical;

  overflow: hidden;

  min-height: 72px;

  margin-bottom: 18px;
}

.continue-card:hover {
  transform: translateY(-6px);

  border-color: #dbe7ff;

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.08),
    0 18px 40px rgba(15, 23, 42, 0.08);
}

.section-divider {
  height: 1px;

  background: #edf2f7;

  margin: 10px 0 45px;
}

.continue-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  margin-bottom: 16px;

  padding-left: 0;
}

.continue-title h2 {
  font-size: 2rem;

  font-weight: 800;

  color: var(--dashboard-text);

  margin-bottom: 8px;
}

.continue-title p {
  color: #64748b;

  line-height: 1.7;
}

.continue-add {
  border: none;

  background: #eef4ff;

  color: #2563eb;

  padding: 15px 22px;

  border-radius: 16px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.continue-add:hover {
  background: #2563eb;

  color: white;
}

.dashboard-hero {
  position: relative;

  overflow: hidden;

  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;

  gap: 70px;

  padding: 42px 55px;

  margin-bottom: 38px;

  border-radius: 34px;

  background: var(--dashboard-surface);

  border: 1px solid #e9eef7;

  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.05);
}

.hero-left {
  position: relative;

  z-index: 2;
}

.hero-left h1 {
  margin-top: 28px;

  font-size: 3.1rem;

  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.05em;

  color: var(--dashboard-text);
}

.hero-left p {
  margin-top: 16px;
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #1e293b;
  font-weight: 600;
}

.hero-button {
  width: 300px;
  height: 64px;
  margin-top: 26px;
  padding: 0;

  box-sizing: border-box;
  border: none;
  border-radius: 22px;

  background: #2563eb;
  color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;

  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.20);
}

.hero-button:active {
  background: #1d4ed8;
}

@media (max-width: 600px) {
  .hero-button {
    width: 300px;
    max-width: 100%;
    height: 64px;
  }
}

.hero-right {
  width: 100%;

  min-width: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-shrink: 0;
}

.hero-art {
  position: relative;

  width: 310px;

  height: 310px;
}

.ring {
  position: absolute;

  border-radius: 50%;

  border: 1px solid rgba(37, 99, 235, 0.12);
}

.ring-1 {
  inset: 0;
}

.ring-2 {
  inset: 32px;
}

.ring-3 {
  inset: 64px;
}

.center-circle {
  position: absolute;

  left: 50%;

  top: 50%;

  transform: translate(-50%, -50%);

  width: 82px;

  height: 82px;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  color: white;

  font-size: 2.4rem;

  font-weight: 800;

  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.25);
}

.center-circle img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.symbol {
  position: absolute;

  color: #2563eb;

  opacity: 0.18;

  font-weight: 700;

  user-select: none;
}

.symbol-1 {
  left: 22px;
  top: 140px;
  font-size: 38px;
}

.symbol-2 {
  right: 25px;
  top: 70px;
  font-size: 34px;
}

.symbol-3 {
  right: 50px;
  bottom: 60px;
  font-size: 36px;
}

.symbol-4 {
  left: 70px;
  bottom: 40px;
  font-size: 42px;
}

.symbol-5 {
  top: 18px;
  left: 180px;
  font-size: 30px;
}

.symbol-6 {
  bottom: 140px;
  right: 130px;
  font-size: 28px;
}

.dashboard-hero::before {
  content: "";

  position: absolute;

  width: 500px;

  height: 500px;

  border-radius: 50%;

  background: radial-gradient(rgba(37, 99, 235, 0.05), transparent 70%);

  right: -140px;

  top: -120px;
}

.continue-dropdown {
  display: none;

  margin-bottom: 16px;

  border: 1px solid #e2e8f0;

  border-radius: 14px;

  overflow: hidden;

  background: var(--dashboard-surface);
}

.continue-dropdown.show {
  display: block;
}

.delete-session {
  width: 100%;

  padding: 14px 18px;

  border: none;

  background: var(--dashboard-surface);

  color: #dc2626;

  font-weight: 600;

  text-align: left;

  cursor: pointer;

  transition: 0.2s;
}

.delete-session:hover {
  background: #fef2f2;
}

.delete-btn {
  height: 48px;

  border: none;

  border-radius: 14px;

  background: #ef4444;

  color: #ffffff;

  font-weight: 700;

  font-size: 0.95rem;

  cursor: pointer;

  transition: 0.25s;
}

.delete-btn:hover {
  background: #dc2626;

  transform: translateY(-2px);
}

.delete-modal {
  position: fixed;

  inset: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  background: rgba(15, 23, 42, 0.45);

  backdrop-filter: blur(12px);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  z-index: 999999;
}

.delete-modal.show {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.delete-card {
  width: 440px;

  background: var(--dashboard-surface);

  border-radius: 28px;

  padding: 34px;

  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.2);

  animation: popup 0.25s;
}

.delete-icon {
  width: 70px;

  height: 70px;

  border-radius: 20px;

  background: #fef2f2;

  color: #dc2626;

  display: flex;

  justify-content: center;

  align-items: center;

  margin-bottom: 24px;
}

.delete-card h2 {
  font-size: 1.7rem;

  margin-bottom: 16px;
}

.delete-card p {
  color: #64748b;

  line-height: 1.8;
}

.delete-actions {
  display: flex;

  justify-content: flex-end;

  gap: 12px;

  margin-top: 30px;
}

.delete-cancel {
  height: 48px;

  padding: 0 24px;

  border-radius: 14px;

  border: 1px solid #e2e8f0;

  background: white;

  cursor: pointer;
}

.delete-confirm {
  height: 48px;

  padding: 0 24px;

  border: none;

  border-radius: 14px;

  background: #dc2626;

  color: white;

  cursor: pointer;
}

.delete-confirm:hover {
  background: #b91c1c;
}
.delete-confirm.loading {
  pointer-events: none;
  opacity: 0.9;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  animation: spinner 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spinner {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.avatar,
.profile-avatar,
.profile-modal-avatar {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: #2563eb;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-weight: 800;
  user-select: none;
}

.avatar {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.profile-modal-avatar {
  width: 88px;
  height: 88px;
  font-size: 34px;

  margin-bottom: 20px;
}

.avatar img,
.profile-avatar img,
.profile-modal-avatar img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 50%;

  display: block;
}

.avatar span,
.profile-avatar span,
.profile-modal-avatar span {
  position: relative;
  z-index: 2;
}
.notification-badge {
  position: absolute;

  top: 6px;
  right: 6px;

  min-width: 18px;
  height: 18px;

  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ef4444;
  color: #fff;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  border: 2px solid #fff;

  pointer-events: none;
}

.notification-item {
  cursor: pointer;

  transition: 0.25s;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item.read {
  opacity: 0.55;
}


.profile-header-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-header-info p {
  margin-top: 4px;
  color: #64748b;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notification-empty {
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 50px 32px;

  text-align: center;
}

.notification-empty-icon::before {
  content: "";

  position: absolute;

  width: 130px;
  height: 130px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(37, 99, 235, 0.05) 45%,
    transparent 75%
  );

  z-index: -1;
}

.notification-empty-icon i {
  font-size: 30px;

  color: #2563eb;

  filter: drop-shadow(0 6px 12px rgba(37, 99, 235, 0.18));
}

@keyframes notificationFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.notification-empty h3 {
  margin-top: 22px;

  font-size: 1.45rem;

  font-weight: 800;

  color: var(--dashboard-text);
}

.notification-empty p {
  margin-top: 12px;

  max-width: 250px;

  line-height: 1.8;

  color: #64748b;

  font-size: 0.93rem;
}

.notification-empty hr {
  width: 70%;

  margin: 30px 0;

  border: none;

  border-top: 1px solid #eef2f7;
}

.notification-refresh {
  margin-top: 28px;

  height: 44px;

  padding: 0 20px;

  border: none;

  border-radius: 14px;

  background: #f8fafc;

  color: #2563eb;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;

  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-refresh:hover {
  background: #eef4ff;

  transform: translateY(-2px);
}

@keyframes floatBell {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.notification-item.unread::before {
  content: "";

  position: absolute;

  top: 18px;
  right: 18px;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #2563eb;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.dropdown-body::-webkit-scrollbar {
  width: 8px;
}

.dropdown-body::-webkit-scrollbar-thumb {
  background: #d5dbe6;
  border-radius: 999px;
}

.dropdown-body::-webkit-scrollbar-thumb:hover {
  background: #bfc8d8;
}

.navbar-clock {
  width: 340px;
  height: 48px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  background: #f8fafc;

  border: 1px solid #e2e8f0;

  border-radius: 16px;

  transition: 0.25s;
}


.clock-time {
  font-size: 1.25rem;

  font-weight: 800;

  color: var(--dashboard-text);

  line-height: 1;
}

.clock-date {
  margin-top: 4px;

  font-size: 0.75rem;

  color: #64748b;

  font-weight: 600;
}

#validationModal {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  z-index: 9999;
}

#validationModal.show {
  opacity: 1;
  visibility: visible;
}

.validation-modal {
  width: 100%;
  max-width: 420px;

  background: var(--dashboard-surface);
  border: 1px solid #e5e7eb;
  border-radius: 24px;

  padding: 32px;

  text-align: center;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);

  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

#validationModal.show .validation-modal {
  transform: translateY(0) scale(1);
}

.validation-icon {
  width: 64px;
  height: 64px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #fff7ed;
  color: #f59e0b;
}

.validation-modal h2 {
  margin: 0;

  font-size: 24px;
  font-weight: 700;

  color: #111827;
}

.validation-modal p {
  margin: 16px 0 28px;

  font-size: 15px;
  line-height: 1.7;

  color: #6b7280;
}

#closeValidationModal {
  width: 100%;
  height: 48px;

  border: none;
  border-radius: 12px;

  background: #2563eb;
  color: #fff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

#closeValidationModal:hover {
  background: #1d4ed8;
}

.exam-card {
  position: relative;
  width: min(420px, 100%);

  margin: 0;

  flex-shrink: 0;
  padding: 30px;
  border-radius: 32px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(30px);

  border: 1px solid rgba(226, 232, 240, 0.8);

  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.8);

  transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.exam-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 40px 100px rgba(37, 99, 235, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.95);
}

.days-number {
  margin-top: 26px;

  text-align: center;

  font-size: 88px;

  line-height: 1;

  letter-spacing: -5px;

  font-weight: 900;

  color: var(--dashboard-text);
}

.days-text {
  margin-top: 10px;

  text-align: center;

  color: #64748b;

  text-transform: uppercase;

  letter-spacing: 0.35em;

  font-size: 0.75rem;

  font-weight: 700;
}

.time-line {
  display: flex;

  justify-content: center;

  align-items: flex-start;

  gap: 18px;

  margin-top: 36px;
}

.time-item {
  text-align: center;
}

.time-item span {
  display: block;

  font-size: 36px;

  line-height: 1;

  font-weight: 800;

  color: #2563eb;
}

.time-item small {
  display: block;

  margin-top: 8px;

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.18em;

  color: #94a3b8;
}

.time-separator {
  margin-top: 2px;

  font-size: 28px;

  color: #cbd5e1;
}

.exam-message {
  margin-top: 34px;

  text-align: center;

  font-size: 0.95rem;

  color: #64748b;

  font-weight: 600;
}

.progress-wrapper {
  margin-top: 28px;
}

.progress-bar {
  width: 100%;

  height: 6px;

  border-radius: 999px;

  background: #eef2ff;

  overflow: hidden;
}

.progress-fill {
  height: 100%;

  width: 35%;

  border-radius: 999px;

  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);

  transition: width 0.8s ease;
}

.exam-date {
  margin-top: 24px;

  text-align: center;

  font-size: 1rem;

  color: #475569;

  font-weight: 700;
}

.hidden {
  display: none;
}

.exam-state-card {
  min-height: 420px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding: 48px;

  position: relative;

  overflow: hidden;
}

.state-icon {
  width: 96px;

  height: 96px;

  border-radius: 28px;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 3rem;

  background: #eff6ff;

  margin-bottom: 28px;

  animation: floatIcon 5s ease-in-out infinite;
}

.exam-state-card h2 {
  font-size: 2rem;

  font-weight: 800;

  color: var(--dashboard-text);

  margin-bottom: 18px;
}

.exam-state-card p {
  max-width: 420px;

  line-height: 1.8;

  color: #64748b;

  font-size: 1rem;

  margin-bottom: 22px;
}

.state-subtitle {
  color: #94a3b8;

  font-size: 0.9rem;

  line-height: 1.8;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar nav {
  flex: 1;
}


.sidebar-divider {
  height: 1px;
  background: #e2e8f0;

  margin: 24px 0;
}

.sidebar-follow {
  text-align: center;

  font-size: 0.82rem;

  font-weight: 600;

  color: #64748b;

  margin-bottom: 16px;
}

.sidebar-social {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 14px;

  flex-wrap: nowrap;

  width: 100%;
}

.social-button {
  width: 46px;
  height: 46px;

  border-radius: 14px;

  border: 1px solid #e2e8f0;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-shrink: 0;

  color: #64748b;

  transition: all 0.25s ease;
}

.social-button:hover {
  background: #2563eb;

  border-color: #2563eb;

  color: white;

  transform: translateY(-2px);
}

.sidebar-email {
  display: block;

  margin-top: 18px;

  text-align: center;

  color: #64748b;

  font-size: 0.85rem;

  text-decoration: none;

  transition: 0.25s;
}

.sidebar-email:hover {
  color: #2563eb;
}

.dashboard-hero {
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(420px, 0.9fr);
}

.continue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.study-info-button {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border: 1px solid #e2e8f0;
  border-radius: 16px;

  background: var(--dashboard-surface);
  color: #2563eb;

  font-size: 0.95rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.study-info-button:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.study-info-button:active {
  transform: translateY(0);
}

.study-info-modal {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  z-index: 7000;
}

.study-info-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.study-info-card {
  position: relative;

  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 48px));

  overflow-y: auto;

  padding: 34px;

  background: var(--dashboard-surface);

  border: 1px solid #e2e8f0;
  border-radius: 28px;

  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.18),
    0 8px 30px rgba(15, 23, 42, 0.06);

  transform: translateY(18px) scale(0.97);

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;

  opacity: 0;
}

.study-info-modal.show .study-info-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.study-info-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 11px;

  background: #f8fafc;
  color: #64748b;

  font-size: 1.45rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.study-info-close:hover {
  background: #eff6ff;
  color: #2563eb;
}

.study-info-icon span {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #2563eb;
  border-radius: 50%;
}

.study-info-badge {
  display: block;

  margin-top: 18px;

  text-align: center;

  color: #2563eb;

  font-size: 0.7rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.study-info-card h2 {
  margin-top: 10px;

  text-align: center;

  color: var(--dashboard-text);

  font-size: 1.61rem;
  font-weight: 800;

  line-height: 1.25;
}

.study-info-steps {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-top: 26px;
}

.study-info-step {
  display: flex;
  align-items: flex-start;

  gap: 14px;

  padding: 16px;

  background: #f8fafc;

  border: 1px solid #eef2f7;
  border-radius: 17px;
}

.study-step-number {
  flex: 0 0 40px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #eff6ff;
  color: #2563eb;

  font-size: 0.72rem;
  font-weight: 800;
}

.study-info-step h3 {
  color: var(--dashboard-text);

  font-size: 0.92rem;
  font-weight: 800;
}

.study-info-step p {
  margin-top: 5px;

  color: #64748b;

  font-size: 0.8rem;
  line-height: 1.55;
}

.study-info-confirm {
  width: 100%;
  height: 48px;

  margin-top: 24px;

  border: none;
  border-radius: 14px;

  background: #2563eb;
  color: #ffffff;

  font-size: 0.9rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.study-info-confirm:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.suggestion-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-link .sidebar-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.suggestion-link:hover .sidebar-link-icon {
  color: #2563eb;
}

.suggestion-link:hover {
  color: #2563eb;
}

html.dark {
  --dashboard-page: #07090d;
  --dashboard-surface: #0c1118;
  --dashboard-text: #f8fafc;
  --dashboard-border: #1c2633;
  --dashboard-muted: #94a3b8;
  color-scheme: dark;
}

html.dark,
html.dark body {
  background: #07090d;
  color: #f8fafc;
}

html.dark .dashboard {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(37, 99, 235, 0.075),
      transparent 30%
    ),
    radial-gradient(
      circle at 10% 75%,
      rgba(37, 99, 235, 0.045),
      transparent 28%
    ),
    #07090d;
}

html.dark .dashboard__background {
  background: transparent;
}

html.dark .symbol {
  color: #2563eb;
  opacity: 0.035;
}

html.dark .navbar {
  background: rgba(12, 17, 24, 0.88);
  border: 1px solid #1c2633;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

html.dark .logo__title {
  color: #f8fafc;
}

html.dark .logo__subtitle {
  color: #64748b;
}

html.dark .menu-button,
html.dark .icon-button,
html.dark .profile-button,
html.dark .xp-badge {
  background: #111923;
  border-color: #1c2633;
  color: #cbd5e1;
}


html.dark .xp-badge {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

html.dark .xp-icon {
  color: #2563eb;
}

html.dark #xpValue {
  color: #f8fafc;
}

html.dark .navbar-clock {
  background: #111923;
  border-color: #1c2633;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 8px 25px rgba(0, 0, 0, 0.18);
}


html.dark .clock-time {
  color: #f8fafc;
}

html.dark .clock-date {
  color: #64748b;
}

html.dark .dashboard-hero {
  position: relative;
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(37, 99, 235, 0.075),
      transparent 30%
    ),
    linear-gradient(135deg, #0c1118 0%, #0b1017 55%, #0a0f16 100%);

  border: 1px solid #1c2633;

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

html.dark .dashboard-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.055);
  filter: blur(20px);
  pointer-events: none;
}

html.dark .hero-left h1 {
  color: #f8fafc;
}

html.dark .hero-left p {
  color: #94a3b8;
}

html.dark .hero-button {
  background: #2563eb;
  color: #ffffff;
  box-shadow:
    0 12px 30px rgba(37, 99, 235, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.12);
}

html.dark .hero-button:hover {
  background: #3b82f6;
  box-shadow:
    0 16px 36px rgba(37, 99, 235, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.15);
}

html.dark .exam-card {
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(37, 99, 235, 0.13),
      transparent 42%
    ),
    linear-gradient(145deg, #111923 0%, #0c121a 100%);

  border: 1px solid #263548;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.035);
}

html.dark .exam-card:hover {
  border-color: #31445c;

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.46),
    0 0 45px rgba(37, 99, 235, 0.055),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

html.dark .days-number {
  color: #f8fafc;
}

html.dark .days-text {
  color: #64748b;
}

html.dark .time-item span {
  color: #3b82f6;
  text-shadow: 0 0 24px rgba(37, 99, 235, 0.18);
}

html.dark .time-item small {
  color: #64748b;
}

html.dark .time-separator {
  color: #334155;
}

html.dark .exam-message {
  color: #94a3b8;
}

html.dark .progress-bar {
  background: #1c2633;
}

html.dark .progress-fill {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.28);
}

html.dark .exam-date {
  color: #64748b;
}

html.dark .sidebar {
  background: rgba(12, 17, 24, 0.97);
  border-color: #1c2633;

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

html.dark .sidebar__header {
  border-color: #1c2633;
}

html.dark .sidebar-brand-text h3 {
  color: #f8fafc;
}

html.dark .sidebar-nav a,
html.dark .sidebar nav a {
  color: #94a3b8;
}

html.dark .sidebar-nav a:hover,
html.dark .sidebar nav a:hover {
  background: #111923;
  color: #60a5fa;
}

html.dark .sidebar-nav a.active,
html.dark .sidebar nav a.active {
  background: #2563eb;
  color: #ffffff;

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

html.dark .sidebar-nav-icon {
  color: currentColor;
}

html.dark .sidebar-divider {
  background: #1c2633;
}

html.dark .sidebar-follow {
  color: #64748b;
}

html.dark .social-button {
  background: #111923;
  border-color: #1c2633;
  color: #64748b;
}

html.dark .social-button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

html.dark .profile-dropdown {
  background: #0c1118;
  border-color: #1c2633;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

html.dark .profile-header {
  border-color: #1c2633;
}

html.dark .profile-header-info h3 {
  color: #f8fafc;
}

html.dark .profile-header-info p {
  color: #64748b;
}

html.dark .profile-item {
  color: #cbd5e1;
}

html.dark .profile-item:hover {
  background: #111923;
  color: #60a5fa;
}

html.dark .profile-item.logout {
  color: #ef4444;
}

html.dark .profile-item.logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

html.dark .theme-setting {
  color: #cbd5e1;
}

html.dark .theme-setting:hover {
  background: #111923;
}

html.dark .theme-setting__icon {
  color: #cbd5e1;
}

html.dark .theme-setting__label {
  color: #f8fafc;
}

html.dark .theme-switch {
  background: #2563eb;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 5px 14px rgba(37, 99, 235, 0.18);
}

html.dark .theme-switch__thumb {
  background: #ffffff;
  transform: translateX(22px);
}

html.dark .notification-dropdown {
  background: #0c1118;
  border-color: #1c2633;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

html.dark .dropdown-header {
  background: #0c1118;
  border-color: #1c2633;
}

html.dark .dropdown-header h3 {
  color: #f8fafc;
}

html.dark .dropdown-body {
  background: #080d13;
}

html.dark .notification-item {
  background: #0f161f;
  border-color: #1c2633;
}

html.dark .notification-item:hover {
  background: #111923;
  border-color: #263548;
}

html.dark .notification-title {
  color: #f8fafc;
}

html.dark .notification-message {
  color: #94a3b8;
}

html.dark .notification-date {
  color: #64748b;
}

html.dark .notification-empty h3 {
  color: #f8fafc;
}

html.dark .notification-empty p {
  color: #64748b;
}

html.dark .notification-empty-icon {
  background: rgba(37, 99, 235, 0.1);
}

html.dark .overlay {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

html.dark .continue-card,
html.dark .continue-card-surface,
html.dark .session-card,
html.dark .empty-study,
html.dark ,
html.dark .exam-state-card,
html.dark .delete-session,
html.dark .delete-card,
html.dark .validation-modal,
html.dark .profile-modal-card,
html.dark .study-info-card {
  background: #0c1118;
  border-color: #1c2633;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.02);
}

html.dark .continue-title h2,
html.dark .study-header h2,
html.dark .session-header h2,
html.dark ,
html.dark .exam-state-card h2,
html.dark .profile-modal-header h2,
html.dark .study-info-card h2,
html.dark .logout-card h2,
html.dark .delete-card h2 {
  color: #f8fafc;
}

html.dark .continue-title p,
html.dark ,
html.dark .exam-state-card p,
html.dark .state-subtitle,
html.dark .session-field,
html.dark .continue-footer span {
  color: #94a3b8;
}

html.dark .section-divider {
  background: #1c2633;
}

html.dark .search,
html.dark .continue-add,
html.dark .session-field,
html.dark .continue-meta,
html.dark .study-feature {
  background: #111923;
  border-color: #1c2633;
  color: #e2e8f0;
}

html.dark .search input {
  color: #f8fafc;
}

html.dark .search input {
  color: #64748b;
}

html.dark .search:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

html.dark .logout-modal,
html.dark .profile-modal,
html.dark .study-info-modal,
html.dark .validation-modal {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html.dark .profile-modal-divider,
html.dark .study-info-step {
  border-color: #1c2633;
}

html.dark .study-info-step {
  background: #111923;
}

html.dark .study-step-number {
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
}

html.dark ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html.dark ::-webkit-scrollbar-track {
  background: #07090d;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #263241;
  border-radius: 999px;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

html.dark ::selection {
  background: rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

html.dark .session-close,
html.dark .study-info-close,
html.dark .sidebar-close {
  background: #151d28;
  color: #94a3b8;
  border: 1px solid #263445;
  box-shadow: none;
}

html.dark .session-close:hover,
html.dark .study-info-close:hover,
html.dark .sidebar-close:hover {
  background: #1c2735;
  color: #f8fafc;
  border-color: #34475e;
}

html.dark .session-modal {
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.dark .session-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.07), transparent 32%),
    #0c1118;

  border: 1px solid #263445;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

html.dark .session-header h2 {
  color: #f8fafc;
}

html.dark .session-header p {
  color: #718096;
}

html.dark .session-field {
  background: #111923;
  border: 1px solid #1c2937;
  border-radius: 0;
}

html.dark .session-field label {
  color: #e2e8f0;
}

html.dark .session-field input {
  background: #0d141d;
  color: #f8fafc;
  border: 1px solid #344354;
}

html.dark .session-field input{
  color: #64748b;
}

html.dark .session-field input:hover {
  border-color: #46576b;
}

html.dark .session-field input:focus {
  border-color: #2563eb;
  background: #0e151f;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

html.dark .cancel-btn {
  background: #111923;
  color: #dbe4ef;
  border: 1px solid #344354;
}

html.dark .cancel-btn:hover {
  background: #18222e;
  border-color: #46576b;
  color: #ffffff;
}

html.dark .import-btn {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.2);
}

html.dark .import-btn:hover {
  background: #3b82f6;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

html.dark .study-info-button {
  background: #111923;
  color: #60a5fa;
  border: 1px solid #263445;
}

html.dark .study-info-button:hover {
  background: #172230;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.16);
}

html.dark .study-info-modal {
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.dark .study-info-card {
  background: #0c1118;
  border-color: #263445;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

html.dark .study-info-step {
  background: #111923;
  border-color: #1c2937;
}

html.dark .study-info-step h3 {
  color: #f1f5f9;
}

html.dark .study-info-step p {
  color: #7f8da1;
}

html.dark .video-preview {
  background: #0b1118;
  border-color: #263445;
}

html.dark .preview-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
}

html.dark .preview-content h3 {
  color: #f8fafc;
}

html.dark .preview-content p {
  color: #718096;
}

html.dark .video-preview button,
html.dark .video-preview .play-button,
html.dark .video-preview .preview-play,
html.dark .video-preview [class*="play"] {
  background: #111923;
  color: #f8fafc;
  border-color: #263445;
}

html.dark .video-preview button:hover,
html.dark .video-preview .play-button:hover,
html.dark .video-preview .preview-play:hover {
  background: #18222e;
  border-color: #3b82f6;
}

html.dark #validationModal {
  background: rgba(2, 6, 12, 0.78);
}

html.dark .validation-modal {
  background: #0c1118;
  border-color: #263445;

  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

html.dark .validation-modal h2 {
  color: #f8fafc;
}

html.dark .validation-modal p {
  color: #94a3b8;
}

html.dark #closeValidationModal {
  background: #2563eb;
  color: #ffffff;
}

html.dark #closeValidationModal:hover {
  background: #3b82f6;
}

html.dark .logout-card {
  background: #0c1118;
  border-color: #263445;

  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

html.dark .logout-card h2 {
  color: #f8fafc;
}

html.dark .logout-card p {
  color: #94a3b8;
}

html.dark button {
  -webkit-tap-highlight-color: transparent;
}

html.dark button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

html.dark .session-close,
html.dark .study-info-close,
html.dark .sidebar-close,
html.dark .study-info-button,
html.dark .new-session-btn,
html.dark .cancel-btn,
html.dark .delete-cancel,
html.dark .logout-cancel {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.logo img,
.logo-icon img {
  content: url("../assets/logo.svg");
}

html.dark .logo img,
html.dark .logo-icon img {
  content: url("../assets/logo-white.svg");
}

html.dark .logo img,
html.dark .logo-icon img {
  filter: brightness(0) invert(1);
}

html:not(.dark) .logo img,
html:not(.dark) .logo-icon img {
  filter: none;
}

.theme-setting {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: none;
  background: transparent;
  border-radius: 14px;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.theme-setting:hover {
  background: #f8fafc;
}

.theme-setting__icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-setting__label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.theme-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 24px;
  padding: 0;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

html.dark .theme-switch {
  background: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

html.dark .theme-switch__thumb {
  transform: translateX(22px);
}

html.dark .session-field {
  background: transparent;
  border: none;
  padding: 0;
}

html.dark .session-field label {
  color: #e2e8f0;
  margin-bottom: 12px;
}

html.dark .session-field input,
html.dark #youtubeLink {
  width: 100%;
  height: 74px;
  box-sizing: border-box;

  background: #111923;
  border: 1px solid #334155;
  border-radius: 24px;

  padding: 0 26px;

  color: #f8fafc;
  font-size: 17px;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

html.dark .session-field input:focus,
html.dark #youtubeLink:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

html.dark .session-field input,
html.dark #youtubeLink {
  color: #64748b;
}

html.dark .profile-modal-card {
  background: #0c1118;
  border-color: #1c2633;
}

html.dark .empty-study-icon {
  background: #111923;
  color: #f8fafc;
}

html.dark .empty-study-icon svg path {
  fill: #f8fafc;
}

html.dark .profile-modal {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.dark .profile-modal-card {
  background: #111923;
  border: 1px solid #263548;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

html.dark .profile-modal-divider {
  background: #263548;
}

html.dark .profile-modal-header h2 {
  color: #f8fafc;
}

html.dark .profile-modal-header p {
  color: #64748b;
}

html.dark .profile-modal-info > div {
  border-color: #263548;
}

html.dark .profile-modal-info span:first-child {
  color: #64748b;
}

html.dark .profile-modal-info span:last-child {
  color: #f8fafc;
}

html.dark .profile-modal-close {
  background: #1a2430;
  color: #94a3b8;
  border: 1px solid #263548;
}

html.dark .profile-modal-close:hover {
  background: #202d3b;
  color: #f8fafc;
  border-color: #334155;
}

html.dark .profile-modal-card button:last-child {
  color: #f8fafc;
}

.profile-dropdown .profile-item,
.profile-dropdown .theme-setting {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
}

.profile-dropdown .profile-item > span,
.profile-dropdown .theme-setting__icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.profile-dropdown .profile-item > span svg,
.profile-dropdown .theme-setting__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.profile-dropdown .profile-item,
.profile-dropdown .theme-setting {
  padding-left: 12px;
  padding-right: 12px;
}

.profile-dropdown .theme-setting__label {
  flex: 1;
  margin: 0;
}

.profile-dropdown .theme-switch {
  margin-left: auto;
  flex-shrink: 0;
}

html.dark .delete-modal {
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.dark .delete-card {
  background: #0c1118;
  border: 1px solid #263445;
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

html.dark .delete-card h2 {
  color: #f8fafc;
}

html.dark .delete-card p {
  color: #94a3b8;
}

html.dark .delete-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

html.dark .delete-cancel {
  background: #111923;
  color: #e2e8f0;
  border: 1px solid #263445;
}

html.dark .delete-cancel:hover {
  background: #18222e;
  color: #ffffff;
  border-color: #34475e;
}

html.dark .delete-confirm {
  background: #dc2626;
  color: #ffffff;
}

html.dark .delete-confirm:hover {
  background: #ef4444;
}

.exam-card.hidden,
.exam-state-card.hidden {
  display: none;
}

.profile-dropdown,
.profile-dropdown *,
.profile-dropdown button,
.profile-dropdown span,
.profile-dropdown h3,
.profile-dropdown p {
  font-family: "Inter", sans-serif !important;
}

.profile-dropdown .profile-item,
.profile-dropdown .theme-setting__label {
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.profile-dropdown .theme-setting__label {
  color: #334155 !important;
}

.profile-dropdown .profile-header h3 {
  font-family: "Inter", sans-serif !important;
  font-weight: 800 !important;
}

.profile-dropdown .profile-header p {
  font-family: "Inter", sans-serif !important;
  font-weight: 400 !important;
}

.legal-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 30px 0 10px;
  padding: 0 20px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  z-index: 10;
  clear: both;
}

.legal-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-footer a:hover {
  color: #2563eb;
}

.legal-footer span {
  color: #cbd5e1;
}

html.dark .legal-footer {
  color: #64748b;
}

html.dark .legal-footer a {
  color: #64748b;
}

html.dark .legal-footer a:hover {
  color: #60a5fa;
}

html.dark .legal-footer span {
  color: #334155;
}

@media (max-width: 600px) {
  .legal-footer {
    gap: 11px;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 11px;
  }
}

.legal-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 42px 0 28px;
  padding: 0 20px;
  color: #94a3b8;
  text-align: center;
}

.legal-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.legal-footer__links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s ease;
}

.legal-footer__links a:hover {
  color: #2563eb;
}

.legal-footer__links span {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1;
}

.legal-footer__copyright {
  margin-top: 12px;
  color: #a8b4c6;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .legal-footer {
    margin: 34px 0 22px;
    padding: 0 14px;
  }

  .legal-footer__links {
    gap: 10px;
  }

  .legal-footer__links a {
    font-size: 11px;
  }

  .legal-footer__copyright {
    margin-top: 10px;
    font-size: 10px;
  }
}

.progression-section {
  margin-top: 42px;
  padding: 0 55px;
}

.progression-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}


.progression-header h2 {
  margin: 0;

  color: var(--dashboard-text);

  font-size: 2rem;
  font-weight: 800;

  letter-spacing: -0.04em;
}

.progression-header p {
  margin-top: 10px;

  color: #64748b;

  font-size: 1rem;
}


.progression-filter {
  position: relative;
}

.progression-filter-button {
  height: 50px;

  padding: 0 14px;

  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid #dfe6ef;
  border-radius: 12px;

  background: #ffffff;

  color: #334155;

  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;

  cursor: pointer;

  transition: .2s;
}

.progression-filter-button:hover {
  border-color: #cbd8ea;
  background: #f8fbff;
}

.progression-filter-menu {
  position: absolute;

  top: calc(100% + 7px);
  right: 0;

  width: 190px;

  padding: 6px;

  display: none;

  background: #ffffff;

  border: 1px solid #e1e7ef;
  border-radius: 13px;

  box-shadow:
    0 16px 35px rgba(15, 23, 42, .10);

  z-index: 50;
}

.progression-filter-menu.show {
  display: block;
}

.progression-filter-menu button {
  width: 100%;

  padding: 9px 10px;

  border: none;
  border-radius: 8px;

  background: transparent;

  color: #475569;

  font-family: inherit;
  font-size: 0.72rem;

  text-align: left;

  cursor: pointer;
}

.progression-filter-menu button:hover {
  background: #f1f5ff;

  color: #2563eb;
}


.progression-card {
  position: relative;

  padding: 22px 24px 18px;

  background: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 22px;

  box-shadow:
    0 15px 40px rgba(15, 23, 42, .045);

  overflow: hidden;
}


.progression-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding-bottom: 18px;

  border-bottom: 1px solid #edf1f6;
}

.progression-total span,
.progression-best span {
  display: block;

  color: #94a3b8;

  font-size: 0.68rem;
  font-weight: 700;
}

.progression-total strong {
  display: block;

  margin-top: 4px;

  color: var(--dashboard-text);

  font-size: 1.7rem;
  font-weight: 800;

  letter-spacing: -0.04em;
}

.progression-total small {
  display: block;

  margin-top: 4px;

  color: #22a06b;

  font-size: 0.68rem;
}

.progression-best {
  text-align: right;
}

.progression-best strong {
  display: block;

  margin-top: 5px;

  color: #2563eb;

  font-size: 1rem;
}


.progression-chart {
  display: flex;

  height: 260px;

  padding-top: 20px;
}

.progression-y-axis {
  width: 38px;

  padding-bottom: 30px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  color: #a0aabb;

  font-size: 0.62rem;

  text-align: right;
}

.progression-graph-area {
  position: relative;

  flex: 1;

  min-width: 0;
}

.progression-grid {
  position: absolute;

  inset: 0 0 30px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  pointer-events: none;
}

.progression-grid span {
  width: 100%;

  border-top: 1px solid #edf1f6;
}


.progression-svg {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;

  height: calc(100% - 30px);

  overflow: visible;
}

.progression-area {
  fill: url(#progressionGradient);

  stroke: none;
}

.progression-line {
  fill: none;

  stroke: #2563eb;

  stroke-width: 3;

  vector-effect: non-scaling-stroke;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.progression-hover-line {
  stroke: #cbd5e1;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  pointer-events: none;
}

.progression-hover-point {
  fill: #2563eb;
  stroke: none;
  opacity: 0;
  pointer-events: none;
}

.progression-forecast-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.progression-tooltip {
  position: absolute;
  z-index: 20;
  min-width: 145px;
  padding: 11px 14px;
  background: #111827;
  border: 1px solid #263142;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .12s ease, transform .12s ease;
}

.progression-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.progression-tooltip-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.progression-tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  flex: 0 0 8px;
}

.progression-tooltip-date {
  margin-top: 6px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
}

.progression-x-axis {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 26px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  color: #9aa5b5;

  font-size: 0.62rem;
}

.progression-x-axis span {
  white-space: nowrap;
}


.progression-empty {
  position: absolute;

  inset: 90px 24px 60px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  pointer-events: none;
}

.progression-empty[hidden] {
  display: none;
}

.progression-empty-icon {
  width: 42px;
  height: 42px;

  margin-bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background: #eef4ff;

  color: #2563eb;
}

.progression-empty strong {
  color: var(--dashboard-text);

  font-size: 0.8rem;
}

.progression-empty span {
  margin-top: 4px;

  max-width: 280px;

  color: #94a3b8;

  font-size: 0.68rem;
  line-height: 1.5;
}


html.dark .progression-card,
html.dark .progression-filter-button,
html.dark .progression-filter-menu {
  background: #0c1118;

  border-color: #1c2633;
}

html.dark .progression-filter-button {
  color: #e2e8f0;
}

html.dark .progression-filter-menu button {
  color: #94a3b8;
}

html.dark .progression-filter-menu button:hover {
  background: #111923;
  color: #60a5fa;
}

html.dark .progression-summary,
html.dark .progression-grid span {
  border-color: #1c2633;
}


@media (max-width: 700px) {

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

  .progression-filter {
    width: 100%;
  }

  .progression-filter-button {
    width: 100%;
    justify-content: space-between;
  }

  .progression-filter-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .progression-card {
    padding: 18px 14px;
  }

  .progression-chart {
    height: 220px;
  }

  .progression-total strong {
    font-size: 1.45rem;
  }
}

.progression-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progression-actions .study-info-button {
  flex-shrink: 0;
}
.dashboard-hero {
  position: relative;
  background-image: url("../assets/back-to-school-hero.webp?v=20260905");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.dashboard-hero::before {
  display: none;
}

.exam-card .exam-badge {
  width: max-content;
  margin: 0 auto 22px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  color: #2563eb;

  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.exam-card .exam-badge::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -7px;

  width: 26px;
  height: 2px;

  transform: translateX(-50%);

  background: #2563eb;
  border-radius: 999px;
}

html.dark .exam-card .exam-badge {
  color: #60a5fa;
}

html.dark .exam-card .exam-badge::after {
  background: #60a5fa;
}

.dashboard-hero {
  min-height: calc(100vh - 170px);
  box-sizing: border-box;
}


.exam-card .exam-badge {
  display: block !important;

  width: max-content !important;
  margin: 0 auto 22px !important;
  padding: 0 !important;

  position: relative !important;

  background: transparent !important;
  background-color: transparent !important;

  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;

  border-radius: 0 !important;

  box-shadow: none !important;

  outline: 0 !important;

  color: #2563eb !important;

  font-family: "Inter", sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;

  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;

  -webkit-tap-highlight-color: transparent !important;
}

.exam-card .exam-badge::before {
  content: none !important;
}

.exam-card .exam-badge::after {
  content: "" !important;

  position: absolute !important;
  left: 50% !important;
  bottom: -7px !important;

  width: 26px !important;
  height: 2px !important;

  transform: translateX(-50%) !important;

  background: #2563eb !important;

  border: 0 !important;
  border-radius: 999px !important;

  box-shadow: none !important;
}

html.dark .exam-card .exam-badge {
  color: #60a5fa !important;
}

html.dark .exam-card .exam-badge::after {
  background: #60a5fa !important;
}

.progression-xaxis-empty {
  visibility: hidden;
}

html.dark .dashboard-hero {
  background-image: url("../assets/back-to-school-hero-dark.webp?v=20260914");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar-wrap--nav {
  width: 34px;
  height: 34px;
}

.level-badge {
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  flex: 0 0 auto;
}

.level-badge--nav {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  z-index: 3;
}

.level-badge--compact {
  width: 48px;
  height: 48px;
  margin-left: auto;
}

.profile-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

.profile-name-row h2 {
  margin: 0;
}

.level-badge--modal {
  width: 58px;
  height: 58px;
}

@media (max-width: 520px) {
  .level-badge--compact {
    width: 42px;
    height: 42px;
  }

  .level-badge--modal {
    width: 50px;
    height: 50px;
  }

  .profile-name-row {
    gap: 9px;
  }
}


.profile-modal-card {
  width: min(600px, 92vw);
  max-height: calc(100vh - 32px);
  padding: 40px 34px 26px;
  border-radius: 28px;
}

.profile-modal-close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.profile-modal-header {
  padding: 10px 34px 0;
}

.profile-modal-header h2 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.profile-modal-header p {
  margin-top: 8px;
  font-size: .96rem;
}

.profile-level-card {
  margin-top: 28px;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
}

.profile-level-badge-wrap {
  min-height: 130px;
}

.profile-level-badge {
  width: 124px;
  height: 124px;
}

.profile-level-eyebrow {
  margin-bottom: 6px;
  font-size: .7rem;
}

.profile-level-main h3 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.profile-level-main > p {
  margin: 5px 0 14px;
  font-size: 1.15rem;
}

.profile-level-progress-top {
  margin-bottom: 7px;
  font-size: .78rem;
}

.profile-level-progress-track {
  height: 8px;
}

.profile-modal-info {
  margin-top: 14px;
}

.profile-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 64px;
  padding: 8px 0;
}

.profile-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.profile-row-icon svg {
  width: 22px;
  height: 22px;
}

.profile-row-label,
.profile-row strong {
  font-size: .92rem;
}

.profile-modal .primary-button.profile-modal-close-action {
  height: 48px;
  margin-top: 18px;
  border-radius: 15px;
  font-size: .95rem;
}

@media (max-width: 700px) {
  .profile-modal-card {
    width: min(100%, 560px);
    max-height: calc(100vh - 20px);
    padding: 42px 18px 18px;
  }
}


.profile-modal {
  padding: 18px;
}

.profile-modal-card {
  width: min(600px, 94vw);
  max-height: calc(100vh - 36px);
  overflow-y: hidden;
  padding: 34px 30px 28px;
  border-radius: 26px;
}

.profile-modal-close {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.profile-modal-header {
  padding: 4px 24px 0;
}

.profile-modal-avatar {
  width: 78px;
  height: 78px;
  font-size: 30px;
  margin-bottom: 14px;
}

.profile-modal-header h2 {
  margin-top: 12px;
  font-size: clamp(1.45rem, 2.7vw, 1.85rem);
}

.profile-modal-header p {
  margin-top: 7px;
  font-size: .92rem;
}

.profile-level-card {
  margin-top: 22px;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 18px;
  border-radius: 18px;
}

.profile-level-badge-wrap {
  min-height: 112px;
}

.profile-level-badge {
  width: 106px;
  height: 106px;
}

.profile-level-eyebrow {
  margin-bottom: 5px;
  font-size: .66rem;
}

.profile-level-main h3 {
  font-size: clamp(1.3rem, 2.7vw, 1.7rem);
}

.profile-level-main > p {
  margin: 4px 0 10px;
  font-size: 1.02rem;
}

.profile-level-progress-top {
  margin-bottom: 6px;
  font-size: .73rem;
}

.profile-level-progress-track {
  height: 7px;
}

.profile-modal-info {
  margin-top: 12px;
}

.profile-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 58px;
  padding: 7px 0;
}

.profile-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.profile-row-icon svg {
  width: 20px;
  height: 20px;
}

.profile-row-label,
.profile-row strong {
  font-size: .87rem;
}

.profile-modal .primary-button.profile-modal-close-action {
  height: 46px;
  margin-top: 16px;
  border-radius: 13px;
  font-size: .92rem;
}

@media (max-width: 700px) {
  .profile-modal-card {
    width: min(100%, 560px);
    max-height: calc(100vh - 24px);
    padding: 30px 16px 24px;
  }
}

@media (max-width: 520px) {
  .profile-level-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }
  .profile-level-badge-wrap {
    min-height: 94px;
  }
  .profile-level-badge {
    width: 86px;
    height: 86px;
  }
}


.level-progression-section {
  position: relative;
  z-index: 2;
  margin-top: 38px;
}

.level-progression-card {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 22px;
  border: 1px solid #dbe7f8;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(37,99,235,.055), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 50px rgba(15,23,42,.055);
}

.level-progression-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.level-progression-heading {
  min-width: 0;
}

.level-progression-heading h2 {
  margin: 9px 0 4px;
  color: var(--dashboard-text);
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -.035em;
}

.level-progression-heading p {
  margin: 0;
  max-width: 760px;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.55;
}

.level-progression-cta {
  flex: 0 0 auto;
  min-width: 275px;
  min-height: 62px;
  padding: 0 14px 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e3edff;
  border-radius: 18px;
  background: #f3f7ff;
  color: #2563eb;
}

.level-progression-cta-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e5efff;
}

.level-progression-cta strong,
.level-progression-cta span {
  display: block;
}

.level-progression-cta strong {
  color: #0f172a;
  font-size: .86rem;
  font-weight: 800;
}

.level-progression-cta span {
  margin-top: 2px;
  color: #64748b;
  font-size: .76rem;
}

.level-progression-cta-arrow {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #2563eb !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(37,99,235,.08);
}

.level-progression-scroll {
  margin-top: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.level-progression-scroll::-webkit-scrollbar {
  height: 7px;
}

.level-progression-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.level-progression-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.level-progression-track {
  position: relative;
  min-width: max-content;
  display: flex;
  align-items: flex-start;
  padding: 0 16px 3px;
}

.level-progression-track::before {
  content: "";
  position: absolute;
  top: 49px;
  left: 72px;
  right: 72px;
  height: 2px;
  background: #e5edf9;
  z-index: 0;
}

.level-progression-item {
  position: relative;
  z-index: 1;
  width: 132px;
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.level-progression-item + .level-progression-item {
  margin-left: 12px;
}

.level-progression-badge-wrap {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
}

.level-progression-badge {
  width: 82px;
  height: 82px;
  display: block;
  object-fit: contain;
  

  filter: none;
  transition: none;
}

.level-progression-item:hover .level-progression-badge {
  transform: none;
  filter: none;
}

.level-progression-number {
  margin-top: 7px;
  color: var(--dashboard-text);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.level-progression-name {
  margin-top: 2px;
  color: #475569;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.level-progression-xp {
  margin-top: 7px;
  color: #64748b;
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
}

.level-progression-item.is-current .level-progression-badge-wrap {
  background: #eef5ff;
  box-shadow: 0 0 0 2px #2563eb, 0 8px 25px rgba(37,99,235,.13);
}

.level-progression-item.is-current .level-progression-number {
  color: #2563eb;
}

.level-progression-current {
  min-height: 19px;
  margin-top: 5px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.level-progression-current:empty {
  display: none;
}

.level-progression-message {
  margin-top: 13px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
  background: #edf4ff;
  color: #2563eb;
  text-align: center;
  font-size: .84rem;
  font-weight: 750;
}

html.dark .level-progression-card {
  border-color: rgba(255,255,255,.16);
  background: #0b0b0b;
  box-shadow: none;
}

html.dark .level-progression-heading p,
html.dark .level-progression-name,
html.dark .level-progression-xp,
html.dark .level-progression-cta span {
  color: #94a3b8;
}

html.dark .level-progression-cta {
  border-color: rgba(255,255,255,.12);
  background: #111111;
}

html.dark .level-progression-cta-icon {
  background: rgba(37,99,235,.14);
}

html.dark .level-progression-cta strong {
  color: #fff;
}

html.dark .level-progression-cta-arrow {
  background: #171717;
}

html.dark .level-progression-track::before {
  background: rgba(255,255,255,.15);
}

html.dark .level-progression-badge-wrap {
  background: #0b0b0b;
}

html.dark .level-progression-item.is-current .level-progression-badge-wrap {
  background: #101827;
}

html.dark .level-progression-message {
  background: rgba(37,99,235,.12);
  color: #60a5fa;
}

@media (max-width: 900px) {
  .level-progression-card {
    padding: 22px 20px 18px;
  }

  .level-progression-head {
    flex-direction: column;
    gap: 16px;
  }

  .level-progression-cta {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .level-progression-heading h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .level-progression-section {
    margin-top: 28px;
  }

  .level-progression-card {
    border-radius: 22px;
    padding: 18px 14px 15px;
  }

  .level-progression-heading p {
    font-size: .82rem;
  }

  .level-progression-track {
    padding-left: 8px;
    padding-right: 8px;
  }

  .level-progression-item {
    width: 112px;
    flex-basis: 112px;
  }

  .level-progression-item + .level-progression-item {
    margin-left: 8px;
  }

  .level-progression-badge-wrap {
    width: 78px;
    height: 78px;
  }

  .level-progression-badge {
    width: 70px;
    height: 70px;
  }

  .level-progression-track::before {
    top: 42px;
    left: 56px;
    right: 56px;
  }

  .level-progression-message {
    font-size: .76rem;
  }
}


.level-progression-card {
  padding: 16px 32px 26px;
  border-radius: 28px;
}

.level-progression-heading--centered {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.level-progression-heading--centered {
  justify-content: center;
  margin: 0 auto;
}

.level-progression-heading--centered h2 {
  margin: 8px 0 4px;
  font-size: 1.65rem;
  line-height: 1.12;
}

.level-progression-heading--centered p {
  max-width: 900px;
  margin: 0 auto;
  font-size: .88rem;
  line-height: 1.45;
}

.level-progression-scroll {
  margin-top: 18px;
  padding: 4px 2px 11px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #aebbd0 #eef3fa;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.level-progression-scroll::-webkit-scrollbar {
  height: 8px;
}

.level-progression-scroll::-webkit-scrollbar-track {
  background: #eef3fa;
  border-radius: 999px;
}

.level-progression-scroll::-webkit-scrollbar-thumb {
  background: #aebbd0;
  border-radius: 999px;
}

.level-progression-scroll::-webkit-scrollbar-thumb:hover {
  background: #8fa0ba;
}

.level-progression-track {
  padding: 0 12px 4px;
}

.level-progression-track::before {
  top: 47px;
  left: 68px;
  right: 68px;
}

.level-progression-item {
  width: 132px;
  flex-basis: 132px;
}

.level-progression-item + .level-progression-item {
  margin-left: 10px;
}

.level-progression-badge-wrap {
  width: 88px;
  height: 88px;
  background: transparent;
}

.level-progression-badge {
  width: 82px;
  height: 82px;
}

.level-progression-number {
  margin-top: 6px;
  font-size: .78rem;
}

.level-progression-name {
  margin-top: 1px;
  font-size: .78rem;
}

.level-progression-xp {
  margin-top: 7px;
  font-size: .72rem;
}

.level-progression-current {
  display: none !important;
}

@media (max-width: 900px) {
  .level-progression-card {
    padding: 16px 20px 22px;
  }

  .level-progression-heading--centered h2 {
    font-size: 1.45rem;
  }

  .level-progression-heading--centered p {
    font-size: .82rem;
  }
}

@media (max-width: 600px) {
  .level-progression-card {
    padding: 15px 14px 20px;
  }

  .level-progression-heading--centered h2 {
    font-size: 1.25rem;
  }

  .level-progression-heading--centered p {
    font-size: .76rem;
  }

  .level-progression-scroll {
    margin-top: 15px;
  }
}

html.dark .level-progression-heading--centered p {
  color: #94a3b8;
}

html.dark .level-progression-scroll {
  scrollbar-color: #4b5563 #171717;
}

html.dark .level-progression-scroll::-webkit-scrollbar-track {
  background: #171717;
}

html.dark .level-progression-scroll::-webkit-scrollbar-thumb {
  background: #4b5563;
}

html.dark .level-progression-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}


.continue-card,
.continue-card-surface,
.level-progression-item,
.level-progression-badge,
.exam-card {
  content-visibility: visible !important;
  contain: none !important;
  will-change: auto !important;
}

.continue-card {
  backface-visibility: visible !important;
  transform: none;
}


.level-progression-section,
.level-progression-card,
.level-progression-scroll,
.level-progression-track,
.continue-section,
.continue-container {
  contain: none !important;
}


html,
body,
.level-progression-scroll,
.continue-container {
  scroll-behavior: auto !important;
}


.continue-thumbnail,
.level-progression-badge {
  will-change: auto !important;
  backface-visibility: visible !important;
}


.level-progression-scroll {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.level-progression-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.level-progression-scroll::-webkit-scrollbar-track,
.level-progression-scroll::-webkit-scrollbar-thumb {
  display: none !important;
  background: transparent !important;
}


html.dark .sidebar-nav-badge {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(37, 99, 235, 0.10);
  color: #60a5fa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html.dark .sidebar-nav a:hover .sidebar-nav-badge {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
}

html.dark .sidebar-nav a.active .sidebar-nav-badge {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}


html.dark .profile-dropdown .theme-setting__label {
  color: #cbd5e1 !important;
}

html.dark .profile-dropdown .theme-setting__icon {
  color: #cbd5e1 !important;
}


.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) 520px !important;
  align-items: center !important;
  gap: 42px !important;
  padding: 42px 72px !important;
  min-height: 500px !important;
  box-sizing: border-box;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 650px !important;
  min-width: 0;
}


.hero-kicker {
  display: none !important;
}

.hero-left h1 {
  margin: 0 !important;
  max-width: 560px !important;
  font-size: clamp(2.7rem, 3.55vw, 4.15rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.06em !important;
  font-weight: 900 !important;
  color: #0f172a !important;
}

.hero-left h1 span { color: #2563eb; }

.hero-left p {
  max-width: 560px !important;
  margin: 20px 0 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.hero-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 26px !important;
  width: 536px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.hero-button,
.hero-secondary-button {
  margin: 0 !important;
  align-self: center !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 18px !important;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem !important;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-button {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.hero-button:hover {
  background: #1d4ed8;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.hero-button:active { transform: translateY(0); }

.hero-secondary-button {
  background: rgba(255, 255, 255, 0.84);
  color: #172033;
  border: 1px solid #e5eaf2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.hero-secondary-button:hover {
  background: #ffffff;
  border-color: #dbe3ef;
  transform: translateY(-1px);
}

.hero-exams {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-items: stretch;
  width: 520px !important;
  max-width: 520px !important;
  min-width: 0;
}

.hero-exams .exam-card {
  width: 520px !important;
  min-width: 0 !important;
  max-width: 520px !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  box-sizing: border-box !important;
  padding: 20px 24px 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hero-exams .exam-card:hover { transform: translateY(-1px); }

.exam-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 52px;
}

.exam-card-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.exam-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  color: #2563eb;
  border: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.95);
}

.exam-icon svg { width: 21px; height: 21px; }

.exam-card-title-group h2 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

.exam-card-title-group p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.exam-arrow {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.exam-arrow svg { width: 18px; height: 18px; }
.exam-arrow:hover { background: #ffffff; transform: translateX(1px); }

.exam-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.exam-time-box {
  min-width: 0;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.exam-time-box strong {
  color: #2563eb;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.exam-time-box span {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.54rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-exams .progress-wrapper,
.hero-exams .exam-date,
.hero-exams .days-number,
.hero-exams .days-text,
.hero-exams .time-line { display: none !important; }

html.dark .hero-left h1 { color: #f8fafc !important; }
html.dark .hero-left h1 span { color: #60a5fa; }
html.dark .hero-left p { color: #94a3b8 !important; }
html.dark .hero-secondary-button { background: rgba(17, 25, 35, 0.8); color: #f8fafc; border-color: #263548; }
html.dark .hero-secondary-button:hover { background: #111923; }
html.dark .hero-exams .exam-card { background: rgba(17, 25, 35, 0.82); border-color: #263548; box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04); }
html.dark .exam-icon,
html.dark .exam-arrow { background: rgba(17, 25, 35, 0.72); border-color: #263548; }
html.dark .exam-card-title-group h2 { color: #f8fafc; }
html.dark .exam-card-title-group p,
html.dark .exam-time-box span { color: #94a3b8; }
html.dark .exam-time-box { background: rgba(15, 23, 42, 0.35); border-color: #263548; }

@media (max-width: 1200px) {
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 520px) !important;
    gap: 30px !important;
    padding: 36px 44px !important;
  }

  .hero-left h1 { font-size: clamp(2.55rem, 4.2vw, 3.65rem) !important; }

  .hero-exams,
  .hero-exams .exam-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 980px) {
  .dashboard-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .hero-left { max-width: 650px !important; }
  .hero-exams { width: 100% !important; max-width: 650px !important; }

  .hero-exams .exam-card { width: 100% !important; }
}

@media (max-width: 620px) {
  .dashboard-hero { padding: 28px 20px !important; }

  .hero-left h1 { font-size: clamp(2.35rem, 11vw, 3.2rem) !important; }
  .hero-left p { font-size: 0.9rem !important; }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-button,
  .hero-secondary-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hero-exams .exam-card {
    height: auto !important;
    min-height: 190px !important;
    max-height: none !important;
    padding: 18px !important;
  }

  .exam-card-title-group { gap: 10px; }
  .exam-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .exam-time-grid { gap: 7px; }
  .exam-time-box { height: 62px; }
  .exam-time-box strong { font-size: 1.3rem; }
  .exam-time-box span { font-size: 0.46rem; letter-spacing: 0.06em; }
}


/* =========================================================
   BAC TRUTH — UNIVERSAL PAGE SCROLLBAR
   Matches the Quran page exactly.
   ========================================================= */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #b8bec8 transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #b8bec8;
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #aab1bc;
}

/* =========================================================
   BAC TRUTH — LEVEL-UP CELEBRATION
   ========================================================= */
html.level-up-open {
  overflow: hidden;
}

.level-up-celebration {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.level-up-celebration.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.level-up-celebration__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.level-up-celebration__card {
  position: relative;
  width: min(620px, 100%);
  padding: 42px 42px 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.16),
    0 8px 30px rgba(37, 99, 235, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.95);
  text-align: center;
  transform: translateY(22px) scale(0.96);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.level-up-celebration.is-visible .level-up-celebration__card {
  transform: translateY(0) scale(1);
}

.level-up-celebration__eyebrow {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.level-up-celebration__title {
  margin: 9px 0 5px;
  color: #0f172a;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.level-up-celebration__subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.98rem;
}

.level-up-celebration__badges {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 34px auto 30px;
  max-width: 470px;
}

.level-up-celebration__old,
.level-up-celebration__new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.level-up-celebration__old {
  opacity: 0;
  transform: translateX(22px) scale(0.9);
}

.level-up-celebration.is-visible .level-up-celebration__old {
  animation: level-up-old-in 0.55s 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.level-up-celebration__new {
  opacity: 0;
  transform: translateX(-22px) scale(0.82);
  color: #0f172a;
}

.level-up-celebration.is-visible .level-up-celebration__new {
  animation: level-up-new-in 0.78s 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.level-up-celebration__level {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-up-celebration__badge-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
}

.level-up-celebration__old .level-up-celebration__badge-shell {
  width: 112px;
  height: 112px;
}

.level-up-celebration__badge-shell img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.14));
}

.level-up-celebration__new .level-up-celebration__badge-shell img {
  filter: drop-shadow(0 16px 24px rgba(37, 99, 235, 0.22));
}

.level-up-celebration__ring {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  transform: scale(0.45);
  opacity: 0;
}

.level-up-celebration.is-visible .level-up-celebration__ring {
  animation: level-up-ring 1.3s 1.02s ease-out forwards;
}

.level-up-celebration__ring--two {
  inset: -9px;
  border-color: rgba(37, 99, 235, 0.1);
  animation-delay: 1.16s !important;
}

.level-up-celebration__arrow {
  color: #2563eb;
  font-size: 1.6rem;
  font-weight: 300;
  opacity: 0;
  transform: translateX(-8px);
}

.level-up-celebration.is-visible .level-up-celebration__arrow {
  animation: level-up-arrow 0.45s 0.62s ease-out forwards;
}

.level-up-celebration__close {
  min-width: 142px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.level-up-celebration__close:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

@keyframes level-up-old-in {
  0% { opacity: 0; transform: translateX(22px) scale(0.9); }
  100% { opacity: 0.62; transform: translateX(0) scale(1); }
}

@keyframes level-up-new-in {
  0% { opacity: 0; transform: translateX(-22px) scale(0.82); }
  55% { opacity: 1; transform: translateX(0) scale(1.07); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes level-up-arrow {
  0% { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes level-up-ring {
  0% { opacity: 0; transform: scale(0.45); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.18); }
}

@media (max-width: 620px) {
  .level-up-celebration {
    padding: 16px;
  }

  .level-up-celebration__card {
    padding: 32px 20px 26px;
    border-radius: 24px;
  }

  .level-up-celebration__badges {
    gap: 8px;
    margin-top: 28px;
  }

  .level-up-celebration__badge-shell {
    width: 108px;
    height: 108px;
  }

  .level-up-celebration__old .level-up-celebration__badge-shell {
    width: 92px;
    height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .level-up-celebration,
  .level-up-celebration__card {
    transition: none;
  }

  .level-up-celebration.is-visible .level-up-celebration__old,
  .level-up-celebration.is-visible .level-up-celebration__new,
  .level-up-celebration.is-visible .level-up-celebration__arrow,
  .level-up-celebration.is-visible .level-up-celebration__ring {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

html.dark .level-up-celebration__backdrop {
  background: rgba(2, 6, 23, 0.78);
}

html.dark .level-up-celebration__card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(12, 17, 24, 0.96);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 8px 30px rgba(37, 99, 235, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

html.dark .level-up-celebration__title,
html.dark .level-up-celebration__new {
  color: #f8fafc;
}

html.dark .level-up-celebration__subtitle,
html.dark .level-up-celebration__old {
  color: #94a3b8;
}
