:root {
  --premium-bg-start: #f4f7ff;
  --premium-bg-end: #f8f3ff;
  --premium-surface: #ffffff;
  --premium-surface-2: #f9faff;
  --premium-text: #171a25;
  --premium-muted: #606a7f;
  --premium-primary: #5b3df5;
  --premium-primary-dark: #4a2fe0;
  --premium-primary-light: #7b5ffa;
  --premium-secondary: #0ea5e9;
  --premium-border: #e4e9f5;
  --premium-shadow: 0 12px 36px rgba(30, 41, 59, 0.08);
  --premium-shadow-sm: 0 4px 12px rgba(30, 41, 59, 0.05);
  --premium-shadow-lg: 0 20px 40px rgba(91, 61, 245, 0.15);
  --premium-radius: 14px;
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body.udemy-bg {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--premium-text);
  background: radial-gradient(circle at top left, var(--premium-bg-start) 0%, #f8f9fd 35%, var(--premium-bg-end) 100%);
  min-height: 100vh;
}

.premium-app .container {
  max-width: 1240px;
}

.premium-main {
  min-height: calc(100vh - 170px);
}

.premium-navbar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 255, 0.96) 100%);
  border-bottom: 1.5px solid var(--premium-border);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.8rem 0;
}

.premium-navbar:hover {
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.premium-nav-shell {
  min-height: 120px;
  max-height: 120px;
  display: flex;
  align-items: center;
}

.premium-footer {
  border-top: 1px solid var(--premium-border);
  background: rgba(255, 255, 255, 0.8);
}

nav {
  height: 80px;
}

.text-purple {
  color: var(--premium-primary) !important;
}

.navbar-brand {
  font-size: 1.45rem;
  letter-spacing: 0.2px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.navbar-brand img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(91, 61, 245, 0.15));
}

.navbar-brand::before {
  content: '';
  display: none;
}

.navbar-brand:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(91, 61, 245, 0.25));
}

.navbar-nav .nav-link {
  color: var(--premium-muted);
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.3px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--premium-primary) 0%, var(--premium-primary-light) 100%);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--premium-primary);
  background: rgba(91, 61, 245, 0.08);
  border-radius: 0;
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link:focus::before {
  width: 30px;
}

.navbar-nav .nav-link.active {
  color: var(--premium-primary);
  background: rgba(91, 61, 245, 0.1);
  font-weight: 700;
  border-radius: 0;
  box-shadow: none;
}

.navbar-nav .nav-link.active::before {
  width: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
}

h1,
.h1,
h2,
.h2 {
  font-weight: 800;
}

h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-weight: 700;
}

p,
.text-muted,
.text-secondary,
small {
  color: var(--premium-muted) !important;
}

.card {
  border: 1px solid var(--premium-border);
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
  background: var(--premium-surface);
  overflow: hidden;
}

.card-header {
  border-bottom: 1px solid var(--premium-border);
}

.card-footer {
  border-top: 1px solid var(--premium-border);
}

.form-label {
  font-weight: 600;
  color: #364056;
  margin-bottom: 0.45rem;
}

.form-control,
.form-select {
  border-radius: 11px;
  border-color: #d5ddef;
  min-height: 46px;
  padding-inline: 0.9rem;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.form-control {
  min-height: 130px;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(91, 61, 245, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(91, 61, 245, 0.16);
}

.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}

.btn {
  border-radius: 11px;
  font-weight: 600;
  min-height: 44px;
  padding: 0.58rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark,
.btn-primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-dark) 100%);
  box-shadow: 0 10px 24px rgba(91, 61, 245, 0.3);
}

.btn-dark:hover,
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #6b4bff 0%, #4c2de7 100%);
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary {
  border-color: #ccd6ee;
  color: #2d3952;
  background: #fff;
}

.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  border-color: #b9c7e8;
  background: #f7f9ff;
  color: #17233e;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--premium-text);
}

.table th {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #74809b;
  border-bottom-width: 1px;
  border-color: var(--premium-border);
}

.table td {
  border-color: #edf0f7;
  vertical-align: middle;
}

.alert {
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(23, 26, 37, 0.06);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.4em 0.68em;
}

.nav-tabs {
  border-bottom-color: var(--premium-border);
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: #5a6479;
  border-radius: 0;
}

.nav-tabs .nav-link.active {
  color: var(--premium-primary);
  border-bottom-color: var(--premium-primary);
  background: transparent;
}

.modal-content {
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.2);
}

.hero-banner {
  background: linear-gradient(140deg, #f3eeff 0%, #ffffff 65%);
  border: 1px solid #e4dbff;
}

.premium-dashboard {
  background: radial-gradient(circle at top right, #ebe3ff 0%, #ffffff 62%);
  border: 1px solid #e4dbff;
  box-shadow: 0 20px 40px rgba(91, 61, 245, 0.14);
}

.dashboard-search {
  display: flex;
  gap: 0.85rem;
}

.dashboard-search .form-control {
  flex: 1;
}

.category-scroll {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.category-card {
  min-width: 220px;
  background: #fff;
  border: 1px solid #e7eaf4;
  border-radius: 1rem;
  padding: 0.68rem;
  color: #212529;
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  box-shadow: 0 10px 24px rgba(27, 31, 35, 0.06);
  transition: all 0.2s ease-in-out;
}

.category-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 0.72rem;
}

.category-card span {
  font-weight: 700;
  font-size: 0.95rem;
}

.category-card:hover,
.category-card.active {
  border-color: var(--premium-primary);
  color: var(--premium-primary);
  transform: translateY(-3px);
}

.course-card img {
  height: 180px;
  object-fit: cover;
}

.course-card {
  border: 1px solid #e9ecf7;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.sticky-card {
  top: 92px;
}

.video-player-shell {
  background: linear-gradient(180deg, #121825 0%, #0c111b 100%);
  border-radius: 1rem;
  color: #f5f7ff;
}

.lesson-item {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: #2b3446;
  padding: 0.72rem 0.35rem;
  border-bottom: 1px solid #edf0f6;
  border-radius: 8px;
}

.lesson-item.active {
  background: #f0ecff;
  color: var(--premium-primary);
  font-weight: 600;
}

.lesson-item:hover {
  background: #f8f9ff;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(91, 61, 245, 0.2);
}

.profile-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-dark) 100%);
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-stat-item {
  border: 1px solid var(--premium-border);
  background: var(--premium-surface-2);
  border-radius: 12px;
  padding: 0.85rem;
}

@media (max-width: 767.98px) {
  .dashboard-search {
    flex-direction: column;
  }

  .dashboard-search .btn {
    width: 100%;
  }

  .premium-nav-shell {
    min-height: 70px;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--premium-border);
  }
}

@media (min-width: 992px) {
  .navbar-nav {
    gap: 0.3rem;
  }
}

.navbar-toggler {
  border: 1.5px solid var(--premium-border);
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(91, 61, 245, 0.25);
  border-color: var(--premium-primary);
}

.navbar-toggler:hover {
  border-color: var(--premium-primary);
  background: rgba(91, 61, 245, 0.05);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235b3df5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
  width: 24px;
  height: 24px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235b3df5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e");
}

.premium-navbar .navbar-brand {
  transition: all 0.2s ease;
}

.premium-navbar .navbar-brand:hover {
  transform: scale(1.05);
  color: var(--premium-primary-dark) !important;
}

.premium-navbar .btn {
  border-radius: 11px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
 /* overflow: hidden;*/
}

.premium-navbar .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.premium-navbar .btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-dark,
.btn-primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-dark) 100%);
  box-shadow: 0 10px 24px rgba(91, 61, 245, 0.3);
  position: relative;
  z-index: 1;
}

.btn-dark:hover,
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #6b4bff 0%, #4c2de7 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(91, 61, 245, 0.4);
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary {
  border: 1.5px solid #ccd6ee;
  color: #2d3952;
  background: #fff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  border-color: var(--premium-primary);
  background: linear-gradient(135deg, rgba(91, 61, 245, 0.05) 0%, rgba(91, 61, 245, 0.02) 100%);
  color: var(--premium-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(91, 61, 245, 0.15);
}

/* ===================== Language filter ===================== */
.lang-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid #e2e6f3;
  background: #fff;
  color: #3a445c;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-chip:hover {
  border-color: var(--premium-primary-light);
  color: var(--premium-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91, 61, 245, 0.16);
}

.lang-chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-dark) 100%);
  box-shadow: 0 10px 22px rgba(91, 61, 245, 0.32);
}

/* Sort + toolbar */
.view-mode-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.sort-form {
  margin: 0;
}

.sort-select {
  border-radius: 10px;
  border: 1.5px solid #e2e6f3;
  font-weight: 600;
  color: #3a445c;
  min-width: 168px;
  transition: all 0.22s ease;
}

.sort-select:focus {
  border-color: var(--premium-primary);
  box-shadow: 0 0 0 0.2rem rgba(91, 61, 245, 0.18);
}

/* Course card language badge */
.course-card-media {
  position: relative;
}

.course-lang-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(28, 22, 64, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.25);
}

/* Pagination */
.course-pagination .page-link {
  color: #3a445c;
  border: 1.5px solid #e8ebf6;
  margin: 0 0.18rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.course-pagination .page-link:hover {
  border-color: var(--premium-primary-light);
  color: var(--premium-primary);
  background: rgba(91, 61, 245, 0.06);
}

.course-pagination .page-item.active .page-link {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-dark) 100%);
  box-shadow: 0 8px 18px rgba(91, 61, 245, 0.3);
}

.course-pagination .page-item.disabled .page-link {
  color: #b6bdcf;
  background: #f6f7fb;
}

/* Mobile language bottom sheet (hidden on >= md) */
.lang-sheet-trigger {
  display: none;
}

.lang-sheet,
.lang-sheet-backdrop {
  display: none;
}

@media (max-width: 767.98px) {
  /* Chips collapse on mobile; the bottom-sheet trigger takes over. */
  .lang-filter .lang-chip-row {
    display: none;
  }

  .lang-sheet-trigger {
    display: inline-flex;
    align-items: center;
  }

  .lang-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0);
    pointer-events: none;
    transition: background 0.28s ease;
    z-index: 1050;
  }

  .lang-sheet-backdrop.open {
    background: rgba(17, 24, 39, 0.45);
    pointer-events: auto;
  }

  .lang-sheet {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0.75rem 1.1rem 1.6rem;
    box-shadow: 0 -16px 40px rgba(17, 24, 39, 0.22);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1060;
    max-height: 75vh;
    overflow-y: auto;
  }

  .lang-sheet.open {
    transform: translateY(0);
  }

  .lang-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #d7dcec;
    margin: 0.2rem auto 0.9rem;
  }

  .lang-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

  .lang-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .lang-sheet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid #eef0f8;
    color: #3a445c;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .lang-sheet-item:hover {
    border-color: var(--premium-primary-light);
    color: var(--premium-primary);
  }

  .lang-sheet-item.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-dark) 100%);
  }
}

.dropdown-menu {
  border: 1px solid var(--premium-border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 255, 0.96) 100%);
  padding: 0.6rem 0;
}

.dropdown-item {
  padding: 0.65rem 1.2rem;
  color: var(--premium-text);
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0.3rem 0.5rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(91, 61, 245, 0.1);
  color: var(--premium-primary);
  transform: translateX(4px);
}

.dropdown-divider {
  border-color: var(--premium-border);
  margin: 0.3rem 0;
}

.notification-alert-shell {
  position: relative;
}

.notification-alert-toggle {
  position: relative;
  min-width: 48px;
}

.notification-alert-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.notification-alert-menu {
  width: 420px;
  max-width: min(420px, 92vw);
  padding: 0;
  overflow: hidden;
}

.notification-alert-header,
.notification-alert-subheader {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--premium-border);
  background: #f8f9ff;
}

.notification-alert-subheader {
  border-top: 1px solid var(--premium-border);
  border-bottom: 1px solid var(--premium-border);
  font-size: 0.84rem;
  font-weight: 600;
  color: #556079;
}

.notification-alert-list {
  max-height: 280px;
  overflow-y: auto;
}

.notification-alert-item {
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #edf0f7;
}

.notification-alert-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.notification-alert-message {
  font-size: 0.86rem;
  color: #4d5770;
}

.notification-alert-actions {
  display: flex;
  align-items: center;
}

.notification-action-btn {
  min-height: 34px;
  padding: 0.3rem 0.6rem;
}

.notification-alert-empty {
  padding: 0.9rem;
  color: #6a7288;
  font-size: 0.9rem;
}

.notification-alert-blink {
  animation: notificationBlink 1.2s ease-in-out infinite;
}

tr.review-pending-blink td {
  animation: reviewPendingBlink 1.3s ease-in-out infinite;
}

@keyframes notificationBlink {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes reviewPendingBlink {
  0% {
    background-color: rgba(255, 193, 7, 0.02);
  }
  50% {
    background-color: rgba(255, 193, 7, 0.16);
  }
  100% {
    background-color: rgba(255, 193, 7, 0.02);
  }
}

/*tost notification container*/
/*.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #222;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 99999;
    min-width: 300px;
    box-shadow: 0 5px 20px rgba(0,0,0,.3);
    animation: slideIn .3s ease;
}

.toast-title {
    font-weight: bold;
    margin-bottom: 5px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}*/
/*tost container end*/

/* ===================== Student dashboard redesign ===================== */
.dash-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: radial-gradient(circle at top right, #ece5ff 0%, #ffffff 70%);
  border: 1px solid #e6ddff;
  border-radius: 1.5rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 24px 48px rgba(91, 61, 245, 0.12);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.dash-hero-eyebrow {
  font-weight: 700;
  color: var(--premium-primary);
  margin-bottom: 0.4rem;
}

.dash-hero-title {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: #1c1340;
}

.dash-hero-subtitle {
  color: #5a6172;
  margin-bottom: 1.25rem;
  max-width: 46ch;
}

.dash-hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1.5px solid #e2e6f3;
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  max-width: 560px;
}

.dash-hero-search i {
  color: #9aa3b8;
}

.dash-hero-search .form-control {
  border: none;
  box-shadow: none;
  padding-left: 0.5rem;
}

.dash-hero-search .form-control:focus {
  box-shadow: none;
}

.dash-hero-search .btn {
  border-radius: 999px;
  padding-inline: 1.5rem;
  white-space: nowrap;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ece7fb;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
}

.dash-stat-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-dark) 100%);
}

.dash-stat-value {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  color: #1c1340;
}

.dash-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.dash-hero-art {
  text-align: center;
}

.dash-hero-art img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(91, 61, 245, 0.2));
}

.dash-section {
  margin-bottom: 1.75rem;
}

.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Generic horizontal scroller */
.hscroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
}

.hscroll > * {
  scroll-snap-align: start;
}

/* Continue learning cards */
.continue-card {
  min-width: 300px;
  max-width: 300px;
  background: #fff;
  border: 1px solid #e9ecf7;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
}

.continue-thumb {
  position: relative;
  display: block;
}

.continue-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.continue-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(28, 19, 64, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.continue-thumb:hover .continue-play {
  transform: scale(1.08);
  background: var(--premium-primary);
}

.continue-body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.continue-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.continue-author {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.continue-progress-bar {
  height: 7px;
  border-radius: 999px;
  background: #ececf6;
  overflow: hidden;
}

.continue-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--premium-primary) 0%, var(--premium-primary-light) 100%);
}

.continue-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

/* Course card commerce controls */
.course-wish-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #b6bdcf;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
  transition: all 0.2s ease;
}

.course-wish-btn:hover {
  color: #e23b5a;
  transform: scale(1.08);
}

.course-wish-btn.active {
  color: #e23b5a;
  background: #fff;
}

.course-cart-btn {
  flex: none;
}

.course-cart-btn.in-cart {
  border-color: var(--premium-primary);
  color: var(--premium-primary);
}

/* ===================== Navbar search + icons ===================== */
.nav-search {
  flex: 1 1 auto;
  max-width: 460px;
  margin-inline: auto;
}

.nav-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: #f3f4fa;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  transition: all 0.2s ease;
}

.nav-search-box:focus-within {
  background: #fff;
  border-color: var(--premium-primary);
  box-shadow: 0 0 0 0.2rem rgba(91, 61, 245, 0.15);
}

.nav-search-box i {
  color: #9aa3b8;
}

.nav-search-box .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0.25rem 0;
}

.nav-search-box .form-control:focus {
  box-shadow: none;
}

.nav-categories-menu {
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #ececf6;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.14);
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.nav-icon-btn.active {
  border-color: var(--premium-primary);
  color: var(--premium-primary);
}

.nav-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e23b5a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* ===================== Cart + Wishlist pages ===================== */
.commerce-page {
  max-width: 1100px;
  margin: 0 auto;
}

.commerce-head {
  margin-bottom: 1.5rem;
}

.commerce-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  background: #fff;
  border: 1px dashed #d7dcec;
  border-radius: 1rem;
}

.commerce-empty i {
  font-size: 2.5rem;
  color: var(--premium-primary-light);
  margin-bottom: 0.75rem;
}

.commerce-card {
  border: 1px solid #e9ecf7;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.commerce-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e9ecf7;
  border-radius: 1rem;
  padding: 0.85rem;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.cart-thumb img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.6rem;
}

.cart-row-body {
  flex: 1;
  min-width: 0;
}

.cart-row-body h6 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-summary {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid #e9ecf7;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.cart-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--premium-primary);
}

@media (max-width: 991.98px) {
  .dash-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .dash-hero-art {
    display: none;
  }

  .nav-search {
    max-width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 575.98px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-row {
    flex-wrap: wrap;
  }

  .cart-thumb img {
    width: 100%;
    height: 140px;
  }
}

/* ===================== Consent banner ===================== */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  background: #1c1340;
  color: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.35);
}

.consent-text { font-size: 0.9rem; }

.consent-actions { display: flex; gap: 0.5rem; flex: none; }
