.learning-hero {
  padding: 76px 0 56px;
}
.learning-hero .hero-card {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(33, 132, 255, .12), rgba(255, 190, 11, .18));
  padding: 36px;
}
.book-card,
.lesson-card,
.word-card,
.admin-card {
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(31, 45, 61, .07);
}
.lesson-content {
  line-height: 2.2;
  font-size: 1rem;
}
.stat-value {
  font-size: 30px;
  font-weight: 800;
}
.table td,
.table th {
  vertical-align: middle;
}
.form-section {
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(31, 45, 61, .06);
}
.quiz-option {
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.quiz-option:hover {
  border-color: #0d6efd;
}
.admin-stat-card {
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(31, 45, 61, .08);
  min-height: 132px;
}
.admin-stat-card .label {
  color: #6b7280;
  margin-bottom: 12px;
}
.admin-action-card {
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(31, 45, 61, .08);
  height: 100%;
}
.admin-action-card p {
  color: #6b7280;
}
.footer-links a {
  color: inherit;
  text-decoration: none;
}
.cms-preview {
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 18px;
  background: #f8fafc;
}
.rich-content {
  line-height: 2.25;
  font-size: 1rem;
}
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
.rich-content td,
.rich-content th {
  border: 1px solid #e8edf3;
  padding: 10px;
}
.article-detail-card {
  max-width: 920px;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 12px 38px rgba(31, 45, 61, .08);
}
.article-featured-image,
.lesson-featured-image {
  max-height: 460px;
  object-fit: cover;
  border-radius: 20px;
}
.article-video video,
.lesson-video video {
  border-radius: 18px;
  background: #111827;
  max-height: 520px;
}
.article-excerpt {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
}
.media-field .input-group {
  gap: 8px;
}
.media-field .input-group > .form-control {
  border-radius: 12px !important;
}
.media-card {
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(31, 45, 61, .06);
}
.media-thumb {
  height: 160px;
  border-radius: 16px;
  background: #f8fafc;
  overflow: hidden;
}
.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-icon {
  font-size: 42px;
  color: #64748b;
}
.ltr {
  direction: ltr;
  text-align: left;
}
.options-home-item[style*="--feature-color"] {
  box-shadow: 0 12px 30px rgba(31, 45, 61, .07);
}
.tox-tinymce {
  border-radius: 16px !important;
  border-color: #e8edf3 !important;
}

/* Dynamic theme colors controlled from admin panel */
a,
.text-primary,
.section-heading-link,
.top-header nav ul li a:hover {
  color: var(--site-primary) !important;
}
.btn-primary,
.bg-primary {
  background-color: var(--site-primary) !important;
  border-color: var(--site-primary) !important;
}
.btn-outline-primary {
  color: var(--site-primary) !important;
  border-color: var(--site-primary) !important;
}
.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--site-primary) !important;
}
.btn-gradient-primary {
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent)) !important;
  border-color: transparent !important;
}
.quiz-option:hover,
.form-control:focus {
  border-color: var(--site-primary) !important;
  box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--site-primary) 20%, transparent) !important;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 0;
  font-size: 13px;
}
.admin-topbar a {
  color: #334155 !important;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  padding: 5px 10px;
}
.admin-topbar a:hover {
  color: #fff !important;
  background: #334155;
}

.js-dynamic-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 24px;
}
.js-dynamic-swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 calc(25% - 18px);
}
.home-carousel-static .swiper-wrapper {
  justify-content: center;
}
.home-carousel-static .swiper-bottom {
  display: none !important;
}
.options-home-item .options-home-item-wrapper i,
.options-home-item .options-home-item-wrapper h2 {
  color: var(--feature-color, inherit) !important;
}
.options-home-item.custom-feature-color {
  border-color: var(--feature-color, transparent);
}
.options-home-item.custom-feature-color:before {
  background-color: var(--feature-color, transparent) !important;
}
.quiz-review-answer {
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

/* Vocabulary directory and word detail */
.vocabulary-directory .form-label {
  font-weight: 700;
}
.vocab-search-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 18px;
}
.alphabet-filter {
  direction: ltr;
}
.alphabet-link {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #e6edf5;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  color: #334155 !important;
}
.alphabet-link:hover,
.alphabet-link.active {
  background: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff !important;
}
.vocab-word-card {
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 45, 61, .055);
}
.vocab-word-title {
  display: inline-block;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  color: #111827 !important;
}
.vocab-word-title:hover {
  color: var(--site-primary) !important;
}
.vocab-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vocab-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.vocab-definition {
  color: #475569;
}
.vocab-example {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  border-right: 4px solid var(--site-primary);
}
.vocab-example small {
  color: #64748b;
}
.vocab-mastery-select {
  width: 92px;
  min-width: 92px;
}
.vocab-pagination .page-link {
  border-radius: 10px !important;
  color: var(--site-primary) !important;
}
.vocab-pagination .page-item.active .page-link {
  color: #fff !important;
  background: var(--site-primary) !important;
  border-color: var(--site-primary) !important;
}
.word-detail-card {
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 12px 38px rgba(31, 45, 61, .08);
}
.word-detail-title {
  font-size: 48px;
  font-weight: 950;
}
.word-section {
  border-bottom: 1px solid #edf2f7;
  padding: 0 0 20px;
  margin-bottom: 20px;
}
.word-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.word-section-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.word-meaning {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}
.word-definition,
.word-example-en {
  font-size: 18px;
  line-height: 1.9;
  color: #1f2937;
}
.word-example-fa {
  color: #475569;
  line-height: 2;
}
.word-side-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 18px;
}
.word-lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.word-lesson-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e8edf3;
}
.word-lesson-list li:last-child {
  border-bottom: 0;
}
.word-lesson-list a {
  display: block;
  font-weight: 800;
  text-decoration: none;
}
.word-lesson-list small {
  color: #64748b;
}
.related-word-card {
  display: block;
  min-height: 118px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  background: #fff;
  color: #111827 !important;
}
.related-word-card:hover {
  border-color: var(--site-primary);
  transform: translateY(-2px);
}
.related-word-card strong,
.related-word-card span,
.related-word-card small {
  display: block;
}
.related-word-card span {
  margin-top: 8px;
  color: #475569;
}
.related-word-card small {
  margin-top: 6px;
  color: #64748b;
}
@media (max-width: 767px) {
  .word-detail-title {
    font-size: 36px;
  }
  .word-detail-card {
    padding: 20px;
  }
}

/* v8 Vocabulary, Leitner, Private Classes */
.vocab-hero,
.leitner-hero,
.private-class-hero {
  border-radius: 28px;
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
  overflow: hidden;
  position: relative;
}
.vocab-hero:after,
.leitner-hero:after,
.private-class-hero:after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.vocab-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.vocab-hero h1,
.leitner-hero h1,
.private-class-hero h1 { font-size: 42px; font-weight: 950; }
.vocab-hero p,
.leitner-hero p,
.private-class-hero p { color: rgba(255,255,255,.9); line-height: 2; }
.vocab-stat {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 18px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.vocab-stat strong { display: block; font-size: 28px; font-weight: 950; line-height: 1; }
.vocab-stat span { display: block; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.86); }
.vocabulary-directory {
  border: 1px solid #edf2f7;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .055);
}
.vocab-search-box {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e8eef6;
  border-radius: 22px;
  padding: 20px;
}
.vocab-search-input {
  min-height: 50px;
  border-radius: 15px;
  font-weight: 700;
}
.alphabet-filter {
  padding: 10px;
  background: #f8fafc;
  border-radius: 18px;
  border: 1px solid #edf2f7;
}
.alphabet-link {
  transition: .2s ease;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.alphabet-link:hover { transform: translateY(-2px); }
.vocab-word-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
  transition: .22s ease;
}
.vocab-word-card:before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #cbd5e1;
}
.vocab-word-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .095);
  border-color: rgba(37,99,235,.22);
}
.vocab-status-known:before { background: #22c55e; }
.vocab-status-learning:before { background: #eab308; }
.vocab-status-weak:before { background: #ef4444; }
.vocab-status-leitner:before { background: var(--site-primary); }
.vocab-status-new:before { background: #94a3b8; }
.vocab-word-title {
  font-size: 28px;
  letter-spacing: .2px;
  color: #0f172a !important;
}
.vocab-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  background: #f1f5f9;
  color: #475569;
}
.vocab-status-badge.known { background: #dcfce7; color: #15803d; }
.vocab-status-badge.learning { background: #fef9c3; color: #a16207; }
.vocab-status-badge.weak { background: #fee2e2; color: #b91c1c; }
.vocab-status-badge.leitner { background: rgba(37,99,235,.12); color: var(--site-primary); }
.vocab-status-badge.new { background: #f1f5f9; color: #64748b; }
.vocab-card-footer {
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}
.vocab-status-line {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.vocab-status-line span {
  display: inline-block;
  margin-inline-start: 10px;
  color: #334155;
}
.vocab-example {
  border-right: 0;
  border-inline-start: 5px solid var(--site-primary);
  box-shadow: inset 0 0 0 1px #eef2f7;
}
.word-detail-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,#fff,#fbfdff) !important;
}
.word-detail-card:before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--site-primary), var(--site-secondary));
}
.word-actions-panel {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 14px;
}
.word-section-highlight {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 18px !important;
}
.leitner-side-box {
  border-color: rgba(37,99,235,.18);
  background: linear-gradient(180deg, rgba(37,99,235,.06), #fff);
}
.leitner-boxes-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.leitner-box-pill {
  --box-color: var(--site-primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  border: 1px solid #e8edf3;
  background: #fff;
  border-radius: 18px;
  padding: 15px;
  color: #0f172a !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
  border-top: 4px solid var(--box-color);
}
.leitner-box-pill.active,
.leitner-box-pill:hover {
  background: var(--box-color);
  color: #fff !important;
  transform: translateY(-2px);
}
.leitner-box-pill span { font-size: 12px; opacity: .8; }
.leitner-empty {
  text-align: center;
  padding: 38px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
}
.leitner-review-card {
  --box-color: var(--site-primary);
  border: 1px solid #e8edf3;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
  border-top: 5px solid var(--box-color);
}
.leitner-word-title {
  font-size: 30px;
  font-weight: 950;
  color: #0f172a !important;
  text-decoration: none;
}
.leitner-due-badge {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 900;
}
.leitner-card-meaning {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}
.leitner-card-example {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
  color: #334155;
  line-height: 1.9;
}
.leitner-list-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f7;
  text-decoration: none;
  color: #0f172a !important;
}
.leitner-list-item:last-child { border-bottom: 0; }
.leitner-list-item strong { font-size: 18px; }
.leitner-list-item span { color: #475569; }
.leitner-list-item small { color: #64748b; }
.leitner-list-item.learned strong { color: #15803d; }
.private-class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.private-class-meta span {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.13);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
}
.private-class-card {
  display: grid;
  gap: 10px;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  padding: 22px;
  text-decoration: none;
  color: #0f172a !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.055);
  transition: .22s ease;
}
.private-class-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.22);
}
.private-class-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.12);
  color: var(--site-primary);
  font-size: 24px;
}
.private-class-card strong { font-size: 20px; font-weight: 950; }
.private-class-card small { color: #64748b; }
.private-class-card em { font-style: normal; color: var(--site-primary); font-weight: 900; }
.private-session-card {
  border: 1px solid #e8edf3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15,23,42,.06);
}
.private-session-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.private-session-video {
  width: 100%;
  max-height: 380px;
  border-radius: 16px;
  background: #0f172a;
}
.private-session-description {
  line-height: 2;
  color: #334155;
}
@media (max-width: 767px) {
  .vocab-hero,
  .leitner-hero,
  .private-class-hero { padding: 22px; border-radius: 22px; }
  .vocab-hero h1,
  .leitner-hero h1,
  .private-class-hero h1 { font-size: 32px; }
  .vocab-word-title,
  .leitner-word-title { font-size: 24px; }
}

/* v9 premium vocabulary and Leitner UI */
.premium-vocab-hero,
.premium-leitner-hero {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .11);
}
.premium-vocab-hero:after,
.premium-leitner-hero:after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  inset-inline-end: -110px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  pointer-events: none;
}
.premium-stat {
  min-height: 96px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.16) !important;
  backdrop-filter: blur(12px);
}
.premium-stat strong { font-size: 30px; }
.stat-hot strong { color: #fecaca !important; }
.stat-done strong { color: #bbf7d0 !important; }
.vocab-toolbar-card,
.leitner-stage-panel,
.leitner-review-section,
.leitner-side-panel,
.leitner-guide {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(15,23,42,.065);
}
.vocab-search-control {
  position: relative;
}
.vocab-search-control span {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37,99,235,.09);
  color: var(--site-primary);
  font-size: 22px;
  z-index: 2;
}
.vocab-search-control .form-control {
  padding-inline-start: 62px !important;
  min-height: 54px;
  border-radius: 18px !important;
  border-color: #e2e8f0;
  font-weight: 800;
}
.premium-alphabet {
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}
.premium-alphabet .alphabet-link {
  min-width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155 !important;
  font-weight: 950;
  text-decoration: none;
  transition: .18s ease;
}
.premium-alphabet .alphabet-link.active,
.premium-alphabet .alphabet-link:hover {
  color: #fff !important;
  background: var(--site-primary);
  border-color: var(--site-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(37,99,235,.18);
}
.vocab-results-head {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 13px 18px;
  color: #475569;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.vocab-results-head strong { color: #0f172a; font-size: 18px; }
.vocab-results-head span { color: #64748b; font-weight: 700; }
.premium-word-card {
  --word-accent: var(--site-primary);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 0 !important;
  border-radius: 28px !important;
  border: 1px solid #e7edf5 !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(37,99,235,.07), transparent 28%),
    linear-gradient(180deg, #fff, #fbfdff) !important;
  box-shadow: 0 18px 52px rgba(15,23,42,.075) !important;
}
.premium-word-card:before {
  width: 100% !important;
  height: 6px !important;
  bottom: auto !important;
  background: var(--word-accent) !important;
}
.premium-word-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(15,23,42,.11) !important;
}
.premium-word-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 26px 0;
}
.premium-word-card .vocab-word-title {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 950;
  color: #0f172a !important;
  text-decoration: none;
}
.word-circle-link {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #f1f5f9;
  color: var(--site-primary) !important;
  text-decoration: none;
  font-weight: 950;
  transition: .18s ease;
}
.word-circle-link:hover {
  color: #fff !important;
  background: var(--site-primary);
  transform: rotate(-8deg) scale(1.04);
}
.premium-word-card .vocab-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.premium-word-card .vocab-meta span:not(.vocab-status-badge) {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.word-meaning-strip {
  margin: 0 26px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(34,197,94,.07));
  border: 1px solid rgba(37,99,235,.12);
}
.word-meaning-strip span,
.review-meaning-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 6px;
}
.word-meaning-strip strong {
  display: block;
  color: #111827;
  font-size: 20px;
  line-height: 1.9;
  font-weight: 950;
}
.word-definition-box {
  margin: 0 26px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.8;
  font-size: 15px;
}
.premium-example {
  margin: 0 26px;
  border-inline-start: 5px solid var(--word-accent) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px #edf2f7;
  padding: 14px 16px !important;
}
.premium-example .ltr {
  color: #0f172a;
  line-height: 1.85;
  font-size: 15px;
}
.premium-example small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  line-height: 1.8;
}
.word-progress-line {
  height: 7px;
  margin: 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.word-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
}
.premium-card-footer {
  margin-top: auto !important;
  padding: 18px 26px 24px !important;
  border-top: 1px dashed #e2e8f0 !important;
}
.word-action-row,
.review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.word-action-row form,
.review-actions form { margin: 0; }
.btn-word-action,
.btn-review {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 10px 12px;
  font-weight: 950;
  transition: .18s ease;
  white-space: nowrap;
}
.btn-word-action:hover,
.btn-review:hover { transform: translateY(-2px); }
.btn-word-action.known,
.btn-review.remembered {
  background: #dcfce7;
  color: #15803d;
}
.btn-word-action.weak,
.btn-review.forgot {
  background: #fef3c7;
  color: #a16207;
}
.btn-word-action.leitner,
.btn-review.remove {
  background: rgba(37,99,235,.1);
  color: var(--site-primary);
}
.vocab-empty-state,
.premium-empty {
  text-align: center;
  padding: 46px 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  box-shadow: 0 14px 34px rgba(15,23,42,.04);
}
.premium-leitner-hero .leitner-progress-shell {
  position: relative;
  z-index: 2;
  max-width: 560px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 13px;
  color: #fff;
}
.leitner-progress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.2);
}
.leitner-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #bbf7d0, #fde68a);
  border-radius: inherit;
}
.premium-leitner-boxes {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important;
}
.leitner-stage-card {
  --box-color: var(--site-primary);
  position: relative;
  overflow: hidden;
  min-height: 146px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid #e7edf5;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
  color: #0f172a !important;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: .2s ease;
}
.leitner-stage-card:before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--box-color);
}
.leitner-stage-card:after {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  inset-inline-end: -30px;
  bottom: -34px;
  background: var(--box-color);
  opacity: .1;
}
.leitner-stage-card.all { --box-color: var(--site-primary); }
.leitner-stage-card:hover,
.leitner-stage-card.active {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--box-color) 36%, #e7edf5);
  box-shadow: 0 18px 42px rgba(15,23,42,.1);
}
.leitner-stage-card.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--box-color) 12%, #fff), #fff);
}
.leitner-stage-card .stage-no {
  align-self: flex-start;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--box-color);
  background: color-mix(in srgb, var(--box-color) 12%, #fff);
  font-weight: 950;
  font-size: 12px;
}
.leitner-stage-card strong {
  font-size: 21px;
  font-weight: 950;
  color: #111827;
}
.leitner-stage-card em {
  font-style: normal;
  font-weight: 900;
  color: #475569;
}
.leitner-stage-card small {
  color: #64748b;
  font-weight: 800;
}
.premium-review-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px !important;
  padding: 0 !important;
  border: 1px solid #e7edf5 !important;
  border-top: 0 !important;
  box-shadow: 0 18px 48px rgba(15,23,42,.075) !important;
}
.premium-review-card:before {
  content: "";
  display: block;
  height: 7px;
  background: var(--box-color);
}
.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  padding: 22px 24px 10px;
}
.review-stage {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 8px;
  color: var(--box-color);
  background: color-mix(in srgb, var(--box-color) 12%, #fff);
  font-size: 12px;
  font-weight: 950;
}
.premium-review-card .leitner-word-title {
  display: block;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.15;
}
.review-meaning-card {
  margin: 12px 24px 0;
  padding: 17px 18px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--box-color) 22%, #edf2f7);
  background: color-mix(in srgb, var(--box-color) 8%, #fff);
}
.review-meaning-card strong {
  font-size: 23px;
  font-weight: 950;
  color: #111827;
  line-height: 1.9;
}
.review-definition {
  margin: 12px 24px 0;
  padding: 13px 15px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  color: #334155;
  line-height: 1.8;
}
.premium-review-card .leitner-card-example {
  margin: 12px 24px 0;
  border-radius: 18px;
  border: 1px solid #edf2f7;
  box-shadow: none;
}
.review-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 24px 0;
}
.review-mini-stats span {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.premium-review-card .review-actions {
  padding: 0 24px 24px;
}
.leitner-due-badge {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  white-space: nowrap;
}
.premium-list-item {
  position: relative;
  padding: 15px 15px 15px 18px !important;
  margin-bottom: 10px;
  border: 1px solid #edf2f7 !important;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,.035);
}
.premium-list-item:before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  bottom: 12px;
  width: 5px;
  border-radius: 999px;
  background: var(--box-color);
}
.premium-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,.07);
}
.guide-card {
  height: 100%;
  border: 1px solid #edf2f7;
  background: #f8fafc;
  border-radius: 20px;
  padding: 16px;
}
.guide-card strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  margin-bottom: 8px;
}
.guide-card span {
  color: #64748b;
  line-height: 1.9;
  font-weight: 700;
}
.empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 26px;
  font-weight: 950;
}
.word-detail-card {
  border-radius: 30px !important;
  border: 1px solid #edf2f7;
  box-shadow: 0 18px 52px rgba(15,23,42,.075);
}
.word-detail-title {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 58px !important;
  letter-spacing: -.5px;
}
.word-section {
  border-radius: 22px;
  border: 1px solid #edf2f7;
  background: #fff;
  padding: 18px;
  margin-bottom: 16px;
}
.word-section-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 8px;
}
.word-meaning {
  font-size: 25px;
  font-weight: 950;
  line-height: 1.9;
  color: #111827;
}
.word-definition,
.word-example-en {
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}
.word-example-fa { color: #64748b; line-height: 1.9; }
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .leitner-stage-card .stage-no,
  .review-stage,
  .review-meaning-card {
    background: #f8fafc;
    border-color: #e2e8f0;
  }
}
@media (max-width: 767px) {
  .vocab-toolbar-card,
  .leitner-stage-panel,
  .leitner-review-section,
  .leitner-side-panel,
  .leitner-guide { padding: 18px; border-radius: 22px; }
  .premium-word-top { padding: 22px 20px 0; }
  .word-meaning-strip,
  .word-definition-box,
  .premium-example,
  .word-progress-line { margin-inline: 20px; }
  .premium-card-footer { padding: 16px 20px 22px !important; }
  .word-action-row,
  .review-actions { grid-template-columns: 1fr; }
  .premium-word-card .vocab-word-title,
  .premium-review-card .leitner-word-title { font-size: 29px; }
  .review-card-head { padding: 20px 20px 8px; }
  .review-meaning-card,
  .review-definition,
  .premium-review-card .leitner-card-example,
  .review-mini-stats { margin-inline: 20px; }
  .premium-review-card .review-actions { padding-inline: 20px; }
  .word-detail-title { font-size: 40px !important; }
}
.review-answer-box {
  margin: 12px 24px 0;
  border-radius: 20px;
  border: 1px dashed color-mix(in srgb, var(--box-color) 28%, #dbe4ef);
  background: #fff;
  overflow: hidden;
}
.review-answer-box summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 17px;
  color: var(--box-color);
  font-weight: 950;
  background: color-mix(in srgb, var(--box-color) 8%, #fff);
}
.review-answer-box summary::-webkit-details-marker { display: none; }
.review-answer-box summary:after {
  content: "+";
  float: left;
  font-size: 18px;
  font-weight: 950;
}
.review-answer-box[open] summary:after { content: "−"; }
.review-answer-box .review-meaning-card,
.review-answer-box .review-definition,
.review-answer-box .leitner-card-example {
  margin-inline: 14px !important;
}
.review-answer-box .review-meaning-card { margin-top: 14px !important; }
.review-answer-box .leitner-card-example { margin-bottom: 14px !important; }

/* v10 learning platform extensions */
.v10-hero-card,
.v10-public-hero{background:linear-gradient(135deg,rgba(var(--site-primary-rgb,13,110,253),.10),#fff);border:1px solid rgba(15,23,42,.08);border-radius:28px;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 18px 45px rgba(15,23,42,.06)}
.v10-kicker{display:inline-flex;align-items:center;border-radius:999px;background:rgba(var(--site-primary-rgb,13,110,253),.10);color:var(--site-primary);font-weight:800;font-size:12px;padding:7px 14px;margin-bottom:10px;letter-spacing:.04em}
.v10-hero-stat{min-width:130px;text-align:center;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.v10-hero-stat strong{display:block;font-size:34px;color:var(--site-primary);font-weight:900}.v10-hero-stat span{font-size:13px;color:#64748b}
.v10-soft-card,.panel-box.v10-soft-card{border-radius:24px;border:1px solid rgba(15,23,42,.08);box-shadow:0 16px 35px rgba(15,23,42,.06)}
.v10-result-card{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.v10-result-card>div{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:18px}.v10-result-card span{display:block;color:#64748b;font-size:13px}.v10-result-card strong{font-size:26px;color:var(--site-primary)}
.placement-question-card{border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:18px;margin-bottom:16px;background:#fbfdff}.placement-question-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.placement-question-head span{display:inline-flex;width:34px;height:34px;border-radius:12px;background:var(--site-primary);color:#fff;align-items:center;justify-content:center;font-weight:900}.placement-question-head strong{font-size:16px}.placement-question-head em{margin-inline-start:auto;font-style:normal;background:#eef2ff;color:var(--site-primary);border-radius:999px;padding:5px 12px;font-size:12px}
.v10-filter-bar{background:#fff;border-radius:22px;border:1px solid rgba(15,23,42,.08);padding:16px;display:grid;grid-template-columns:1fr 180px auto;gap:12px;align-items:center}
.grammar-card{display:block;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:26px;padding:22px;text-decoration:none;color:#0f172a;box-shadow:0 18px 42px rgba(15,23,42,.06);transition:.2s}.grammar-card:hover{transform:translateY(-4px);box-shadow:0 24px 55px rgba(15,23,42,.10)}.grammar-card img{width:100%;height:150px;object-fit:cover;border-radius:20px;margin-bottom:16px}.grammar-card-level{display:inline-flex;border-radius:999px;background:rgba(var(--site-primary-rgb,13,110,253),.10);color:var(--site-primary);font-weight:900;padding:6px 12px;margin-bottom:12px}.grammar-card p{color:#64748b;min-height:52px}.grammar-card span{color:var(--site-primary);font-weight:800}
.grammar-detail-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:30px;padding:28px;box-shadow:0 18px 45px rgba(15,23,42,.06)}.grammar-detail-card img{width:100%;border-radius:24px;max-height:230px;object-fit:cover}.grammar-tips{background:#fffbeb;border:1px solid #fde68a;border-radius:24px;padding:22px}.grammar-example{padding:16px 18px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#f8fafc;margin-bottom:12px}.grammar-example span,.grammar-example small{display:block;margin-top:6px;color:#64748b}.grammar-exercise{border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:16px;margin-bottom:14px;background:#fff}.grammar-exercise label{font-weight:800;margin-bottom:10px}.grammar-feedback{border-radius:14px;padding:10px 12px;margin-top:10px}.grammar-feedback.ok{background:#dcfce7;color:#166534}.grammar-feedback.bad{background:#fee2e2;color:#991b1b}
.download-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:26px;padding:24px;box-shadow:0 18px 42px rgba(15,23,42,.06)}.download-icon{width:64px;height:64px;border-radius:20px;background:linear-gradient(135deg,var(--site-primary),var(--site-accent));color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center;margin-bottom:16px}.download-card p{color:#64748b;min-height:62px}.download-meta{display:flex;gap:8px;flex-wrap:wrap}.download-meta span{background:#f1f5f9;border-radius:999px;padding:6px 10px;color:#475569;font-size:12px;font-weight:700}
.v10-admin-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid rgba(15,23,42,.08);padding:14px 0}.v10-admin-row:last-child{border-bottom:0}.v10-admin-row span{display:block;color:#64748b;font-size:13px}.v10-list-row{display:flex;flex-direction:column;text-decoration:none;color:#0f172a;border-bottom:1px solid rgba(15,23,42,.08);padding:12px 0}.v10-list-row:last-child{border-bottom:0}.v10-list-row span{color:#64748b;font-size:13px;margin-top:4px}
.gamification-strip{display:grid;grid-template-columns:150px 1fr 130px 130px 160px;gap:14px}.game-level-card,.game-progress-card,.game-mini-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.05)}.game-level-card span,.game-mini-card span{display:block;color:#64748b;font-size:13px}.game-level-card strong{display:block;font-size:36px;color:var(--site-primary)}.game-level-card em{font-style:normal;color:#64748b}.game-mini-card strong{display:block;font-size:22px;color:#0f172a;margin-top:6px}.game-progress{height:12px;background:#eef2f7;border-radius:999px;overflow:hidden;margin-top:12px}.game-progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--site-primary),var(--site-accent))}
.leaderboard-row{display:grid;grid-template-columns:60px 50px 1fr 90px 90px 90px;gap:12px;align-items:center;padding:14px;border-bottom:1px solid rgba(15,23,42,.08)}.leaderboard-row.me{background:rgba(var(--site-primary-rgb,13,110,253),.06);border-radius:18px}.leaderboard-row .rank{font-weight:900;color:var(--site-primary)}.leaderboard-row .avatar{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,var(--site-primary),var(--site-accent));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}.leaderboard-row .info span,.leaderboard-row .score span{display:block;color:#64748b;font-size:12px}.leaderboard-row .score{text-align:center}.leaderboard-row .score strong{display:block;color:#0f172a;font-size:20px}
.badge-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:26px;padding:24px;text-align:center;min-height:230px;box-shadow:0 18px 42px rgba(15,23,42,.06)}.badge-card.locked{filter:grayscale(.7);opacity:.65}.badge-icon{font-size:42px;margin-bottom:12px}.badge-card span{display:inline-flex;border-radius:999px;padding:6px 12px;background:#f1f5f9;color:#64748b;font-size:12px;font-weight:800}.badge-card.owned span{background:#dcfce7;color:#166534}
.word-tags-row{display:flex;gap:8px;flex-wrap:wrap}.word-tags-row>div{background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:8px 10px;color:#334155;font-size:13px}.word-tags-row span{font-weight:900;color:var(--site-primary)}.detail-tags>div{font-size:15px;padding:10px 12px}.rich-content img{max-width:100%;height:auto;border-radius:16px}.ltr{direction:ltr;text-align:left}
@media(max-width:992px){.v10-hero-card,.v10-public-hero{flex-direction:column;align-items:flex-start}.v10-filter-bar{grid-template-columns:1fr}.gamification-strip{grid-template-columns:1fr 1fr}.game-progress-card{grid-column:1/-1}.leaderboard-row{grid-template-columns:45px 45px 1fr;}.leaderboard-row .score{display:none}.v10-result-card{grid-template-columns:1fr}}
@media(max-width:576px){.gamification-strip{grid-template-columns:1fr}.v10-admin-row{align-items:flex-start;flex-direction:column}.v10-admin-row>div:last-child{width:100%}}

/* v11 Icon aliases for new LMS modules */
.icon-refresh:before { content: "\e904"; }
.icon-task-square:before { content: "\e91c"; }
.icon-document-download:before { content: "\e91d"; }
.icon-document-upload:before { content: "\e91d"; }
.icon-document:before { content: "\e931"; }
.icon-video-play:before { content: "\e926"; }
.icon-setting:before { content: "\e91b"; }
.icon-add-square:before { content: "\e936"; }
.icon-gallery:before { content: "\e91d"; }

/* v11 Gamification admin */
.gamification-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
}
.gamification-shortcuts a {
  text-decoration: none;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  color: #334155 !important;
  padding: 8px 14px;
  font-weight: 800;
}
.gamification-shortcuts a:hover {
  background: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff !important;
}
.gamification-stat-card {
  min-height: 132px;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid #edf2f7;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}
.gamification-stat-card i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(var(--site-primary-rgb, 13,110,253), .10);
  color: var(--site-primary);
  font-size: 20px;
  margin-bottom: 12px;
}
.gamification-stat-card span,
.gamification-user-table small,
.gamification-badge-admin-row span {
  display: block;
  color: #64748b;
  font-size: 12px;
}
.gamification-stat-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  color: #0f172a;
}
.gamification-user-table thead th {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}
.gamification-user-table td {
  min-width: 118px;
}
.gamification-user-table td:first-child {
  min-width: 230px;
}
.gamification-badge-admin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}
.badge-preview-icon {
  --badge-color: #f59e0b;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  font-size: 26px;
  background: color-mix(in srgb, var(--badge-color) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--badge-color) 28%, #fff);
}
.badge-card {
  border-color: color-mix(in srgb, var(--badge-color, #f59e0b) 28%, #e8edf3) !important;
}
.badge-card .badge-icon {
  background: color-mix(in srgb, var(--badge-color, #f59e0b) 14%, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--badge-color, #f59e0b) 28%, #fff);
}
.leaderboard-row.compact {
  margin-bottom: 10px;
}
@supports not (color: color-mix(in srgb, red 10%, white)) {
  .badge-preview-icon,
  .badge-card .badge-icon {
    background: #fff7ed !important;
  }
}

/* v12 Gamification CRUD and safer admin controls */
.v12-admin-section {
  border: 1px solid rgba(15, 23, 42, .08) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .055) !important;
}
.v12-toggle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.v12-switch-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  min-height: 88px;
  transition: .2s ease;
}
.v12-switch-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .06); }
.v12-switch-card input { width: 20px; height: 20px; accent-color: var(--site-primary); }
.v12-switch-card strong { display:block; font-weight: 950; color:#0f172a; }
.v12-switch-card small { display:block; color:#64748b; margin-top:4px; }
.v12-switch-card:has(input:checked) {
  border-color: rgba(var(--site-primary-rgb,13,110,253), .35);
  background: linear-gradient(180deg, rgba(var(--site-primary-rgb,13,110,253), .07), #fff);
}
.v12-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.v12-user-card {
  border: 1px solid #e8edf3;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 16px;
}
.v12-user-card label {
  display:block;
  font-size: 11px;
  font-weight: 900;
  color:#64748b;
  margin-bottom: 5px;
}
.v12-user-head { display:flex; align-items:center; gap:12px; }
.v12-user-head .avatar {
  width: 44px; height: 44px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:950;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
}
.v12-user-head strong { display:block; color:#0f172a; font-weight:950; }
.v12-user-head span { display:block; color:#64748b; font-size:12px; margin-top:3px; }
.v12-log-list { display:flex; flex-direction:column; gap:12px; }
.v12-log-row {
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}
.v12-log-form {
  display:grid;
  grid-template-columns: 160px 92px 1fr auto;
  gap:10px;
  align-items:center;
}
.v12-log-user strong { display:block; font-weight:950; color:#0f172a; }
.v12-log-user span { display:block; color:#64748b; font-size:12px; margin-top:3px; }
.v12-log-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:10px; }
.v12-badge-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.v12-badge-actions form { display:inline-flex; }
.gamification-badge-admin-row.is-trash {
  background: #fff7f7;
  border-style: dashed;
  opacity: .88;
}
.v12-assigned-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f7;
}
.v12-assigned-row:last-child { border-bottom: 0; }
.v12-assigned-row strong { display:block; color:#0f172a; font-weight:950; }
.v12-assigned-row span { display:block; color:#64748b; font-size:12px; margin-top:4px; }
.gamification-badge-admin-row strong { font-weight: 950; color:#0f172a; }
.gamification-badge-admin-row .btn { white-space: nowrap; }
@media (max-width: 1200px) {
  .v12-toggle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v12-user-grid { grid-template-columns: 1fr; }
  .v12-log-form { grid-template-columns: 1fr 90px; }
  .v12-log-form .v12-log-user,
  .v12-log-form input[name="reason"] { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .v12-toggle-grid { grid-template-columns: 1fr; }
  .gamification-badge-admin-row { align-items:flex-start; flex-direction:column; }
  .v12-badge-actions { width:100%; justify-content:flex-start; }
  .v12-badge-actions .btn,
  .v12-badge-actions form { width:100%; }
  .v12-badge-actions button,
  .v12-badge-actions a { width:100%; }
  .v12-log-form { grid-template-columns: 1fr; }
  .v12-log-actions { flex-direction:column; }
  .v12-log-actions .btn { width:100%; }
  .v12-assigned-row { align-items:flex-start; flex-direction:column; }
}

/* v13 Premium badge display: compact dashboard, public badge archive, admin badge manager */
.icon-sort:before { content: "\e91c"; }
.v13-badges-admin-panel,
.dashboard-badges-panel,
.v13-badge-filter-panel {
  border-radius: 28px !important;
  border: 1px solid rgba(15, 23, 42, .07) !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .055) !important;
}
.v13-badge-admin-head,
.dashboard-badges-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.v13-badge-admin-head h2,
.dashboard-badges-head h2 { color: #0f172a; font-size: 24px; }
.v13-badge-admin-head p,
.dashboard-badges-head p { color: #64748b; }
.v13-badge-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 42px;
  border-radius: 999px;
  background: rgba(var(--site-primary-rgb, 13,110,253), .10);
  color: var(--site-primary);
  font-weight: 950;
}
.v13-badge-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  margin-bottom: 16px;
}
.v13-badge-search,
.v13-public-badge-search {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.v13-badge-search .form-control,
.v13-public-badge-search .form-control {
  min-width: 0;
  border-radius: 16px;
  border-color: #e2e8f0;
}
.v13-admin-badge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 760px;
  overflow: auto;
  padding-left: 4px;
}
.v13-admin-badge-list::-webkit-scrollbar { width: 8px; }
.v13-admin-badge-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.v13-admin-badge-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--badge-color, #f59e0b) 8%, #fff), #fff 64%);
  border: 1px solid color-mix(in srgb, var(--badge-color, #f59e0b) 23%, #e8edf3);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
  transition: transform .18s ease, box-shadow .18s ease;
}
.v13-admin-badge-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15, 23, 42, .065); }
.v13-admin-badge-card.is-inactive { opacity: .74; }
.v13-admin-badge-card.is-trash { background: #fff7f7; border-style: dashed; }
.v13-badge-mark,
.v13-public-badge-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: color-mix(in srgb, var(--badge-color, #f59e0b) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--badge-color, #f59e0b) 30%, #fff);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.46);
  flex: 0 0 auto;
}
.v13-admin-badge-main { min-width: 0; }
.v13-admin-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v13-admin-badge-title h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v13-admin-badge-main p {
  margin: 6px 0 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v13-state-pill,
.v13-public-badge-topline span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 950;
}
.v13-state-pill.is-on,
.v13-public-badge-topline .is-earned { background: #dcfce7; color: #166534; }
.v13-state-pill.is-off,
.v13-public-badge-topline .is-locked { background: #f1f5f9; color: #64748b; }
.v13-badge-meta,
.v13-public-badge-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v13-badge-meta span,
.v13-public-badge-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid #edf2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
}
.v13-badge-actionbar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 180px;
}
.v13-badge-actionbar form { display: inline-flex; margin: 0; }
.v13-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v13-pagination a {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #334155;
  border: 1px solid #e8edf3;
  font-weight: 900;
  text-decoration: none;
}
.v13-pagination a.active,
.v13-pagination a:hover { background: var(--site-primary); border-color: var(--site-primary); color: #fff !important; }
.v13-empty-state {
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-weight: 850;
}
.dashboard-badges-panel {
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 22px;
}
.dashboard-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-badge-chip {
  min-height: 104px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--badge-color, #f59e0b) 26%, #e8edf3);
  background: linear-gradient(180deg, color-mix(in srgb, var(--badge-color, #f59e0b) 11%, #fff), #fff);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  overflow: hidden;
}
.dashboard-badge-chip span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--badge-color, #f59e0b) 18%, #fff);
  font-size: 24px;
}
.dashboard-badge-chip strong {
  color: #0f172a;
  font-weight: 950;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-badge-chip small { color: #64748b; font-size: 11px; direction: ltr; }
.dashboard-next-badges {
  margin-top: 14px;
  border-radius: 20px;
  border: 1px solid #edf2f7;
  background: #f8fafc;
  overflow: hidden;
}
.dashboard-next-badges summary {
  cursor: pointer;
  padding: 13px 16px;
  color: #334155;
  font-weight: 950;
  list-style: none;
}
.dashboard-next-badges summary::-webkit-details-marker { display:none; }
.dashboard-next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}
.dashboard-next-grid > div {
  border-radius: 18px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--badge-color, #f59e0b) 20%, #edf2f7);
  padding: 11px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: center;
}
.dashboard-next-grid span { font-size: 22px; grid-row: 1 / span 2; }
.dashboard-next-grid strong { color:#0f172a; font-weight:950; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-next-grid small { color:#64748b; font-size:11px; }
.v13-badges-hero {
  border-radius: 30px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: center;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(255,255,255,.20), transparent 35%), linear-gradient(135deg, var(--site-primary), var(--site-accent));
  overflow: hidden;
}
.v13-badges-hero h1,
.v13-badges-hero p,
.v13-badges-hero .v10-kicker { color: #fff !important; }
.v13-badge-progress-card {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.v13-badge-progress-card span { color: rgba(255,255,255,.78); font-size: 13px; }
.v13-badge-progress-card strong { display:block; color:#fff; font-size:30px; font-weight:950; margin:5px 0; }
.v13-badge-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.v13-badge-summary-grid > div {
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid #edf2f7;
  box-shadow: 0 14px 36px rgba(15,23,42,.045);
}
.v13-badge-summary-grid span { color:#64748b; font-size:13px; display:block; }
.v13-badge-summary-grid strong { color:#0f172a; font-size:26px; font-weight:950; display:block; margin-top:5px; }
.v13-badge-filter-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px !important;
}
.v13-badge-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.v13-badge-tabs a {
  border-radius: 999px;
  padding: 9px 15px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  color: #334155 !important;
  font-weight: 900;
  text-decoration: none;
}
.v13-badge-tabs a.active,
.v13-badge-tabs a:hover { background: var(--site-primary); border-color: var(--site-primary); color:#fff !important; }
.v13-public-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.v13-public-badge-card {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr);
  gap: 14px;
  min-height: 188px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--badge-color, #f59e0b) 26%, #e8edf3);
  background: linear-gradient(180deg, color-mix(in srgb, var(--badge-color, #f59e0b) 10%, #fff), #fff 68%);
  box-shadow: 0 16px 40px rgba(15,23,42,.055);
}
.v13-public-badge-card.locked {
  filter: grayscale(.55);
  opacity: .70;
}
.v13-public-badge-topline {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.v13-public-badge-topline h2 {
  margin:0;
  color:#0f172a;
  font-size:19px;
  line-height:1.5;
  font-weight:950;
}
.v13-public-badge-body p {
  color:#64748b;
  font-size:13px;
  line-height:1.9;
  margin:8px 0 10px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.v13-public-badge-body small {
  display:block;
  color:#64748b;
  font-size:11px;
  margin-top:10px;
}
@supports not (color: color-mix(in srgb, red 10%, white)) {
  .v13-admin-badge-card,
  .dashboard-badge-chip,
  .dashboard-next-grid > div,
  .v13-public-badge-card { border-color: #e8edf3; background: #fff; }
  .v13-badge-mark,
  .v13-public-badge-icon,
  .dashboard-badge-chip span { background: #fff7ed; }
}
@media (max-width: 1200px) {
  .dashboard-badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v13-public-badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .v13-badge-toolbar,
  .v13-badge-filter-panel,
  .v13-badges-hero { grid-template-columns: 1fr; }
  .v13-admin-badge-card { grid-template-columns: 58px minmax(0, 1fr); }
  .v13-badge-actionbar { grid-column: 1 / -1; justify-content: flex-start; min-width: 0; }
}
@media (max-width: 576px) {
  .v13-badge-admin-head,
  .dashboard-badges-head { flex-direction: column; }
  .v13-badge-search,
  .v13-public-badge-search { flex-direction: column; }
  .dashboard-badge-grid,
  .dashboard-next-grid,
  .v13-badge-summary-grid,
  .v13-public-badge-grid { grid-template-columns: 1fr; }
  .v13-public-badge-card { grid-template-columns: 1fr; }
  .v13-public-badge-icon { width: 62px; height: 62px; }
}

/* v14 Placement Test Manager */
.placement-admin-stat {
  border-radius: 24px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(var(--site-primary-rgb), .14), #fff 72%);
  border: 1px solid rgba(var(--site-primary-rgb), .16);
  box-shadow: 0 18px 45px rgba(15,23,42,.055);
}
.placement-admin-stat.green { background: linear-gradient(135deg, rgba(16,185,129,.14), #fff 72%); border-color: rgba(16,185,129,.18); }
.placement-admin-stat.purple { background: linear-gradient(135deg, rgba(139,92,246,.14), #fff 72%); border-color: rgba(139,92,246,.18); }
.placement-admin-stat span { display:block; color:#64748b; font-size:13px; font-weight:800; }
.placement-admin-stat strong { display:block; color:#0f172a; font-size:34px; font-weight:950; margin-top:6px; }
.placement-question-list { display:grid; gap:14px; }
.placement-admin-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:18px;
  border-radius:24px;
  background:#fff;
  border:1px solid #e8edf3;
  box-shadow:0 16px 38px rgba(15,23,42,.045);
}
.placement-admin-card.is-off { opacity:.68; background:#f8fafc; }
.placement-admin-meta { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:9px; }
.placement-admin-meta span {
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:900;
  background:#f1f5f9;
  color:#334155;
}
.placement-admin-card h3 { font-size:17px; font-weight:950; line-height:1.8; color:#0f172a; margin:0 0 8px; }
.placement-admin-card p { color:#475569; font-size:13px; line-height:1.9; }
.placement-admin-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; min-width:210px; }
.placement-editor-form .form-section { border:1px solid #e8edf3; box-shadow:0 18px 45px rgba(15,23,42,.05); }
.placement-answer-editor {
  padding:14px;
  border-radius:20px;
  border:1px solid #e8edf3;
  background:#f8fafc;
  margin-bottom:12px;
  transition:.2s;
}
.placement-answer-editor.is-correct,
.placement-answer-editor:has(input[type="radio"]:checked) {
  border-color:rgba(16,185,129,.35);
  background:linear-gradient(135deg, rgba(16,185,129,.10), #fff 72%);
}
.placement-answer-editor-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; font-weight:900; color:#0f172a; }
.placement-review-summary,
.placement-result-premium {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.placement-review-summary > div,
.placement-result-premium > div {
  border-radius:24px;
  padding:18px;
  background:#fff;
  border:1px solid #e8edf3;
  box-shadow:0 16px 40px rgba(15,23,42,.05);
}
.placement-review-summary span,
.placement-result-premium span { display:block; color:#64748b; font-size:12px; font-weight:900; }
.placement-review-summary strong,
.placement-result-premium strong { display:block; color:#0f172a; font-size:24px; font-weight:950; margin-top:6px; }
.placement-review-summary small { display:block; color:#94a3b8; margin-top:5px; }
.placement-review-card,
.placement-result-row {
  border-radius:24px;
  padding:18px;
  border:1px solid #e8edf3;
  background:#fff;
  box-shadow:0 16px 40px rgba(15,23,42,.045);
  margin-bottom:14px;
}
.placement-review-card.correct,
.placement-result-row.correct { border-color:rgba(16,185,129,.26); background:linear-gradient(135deg, rgba(16,185,129,.075), #fff 70%); }
.placement-review-card.wrong,
.placement-result-row.wrong { border-color:rgba(239,68,68,.22); background:linear-gradient(135deg, rgba(239,68,68,.06), #fff 70%); }
.placement-review-head,
.placement-result-q { display:flex; gap:12px; align-items:flex-start; margin-bottom:13px; }
.placement-review-head > span,
.placement-result-q > span {
  width:36px;
  height:36px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--site-primary);
  color:#fff;
  font-weight:950;
  flex:0 0 auto;
}
.placement-review-head strong,
.placement-result-q strong { color:#0f172a; font-weight:950; line-height:1.8; }
.placement-review-head small { display:block; color:#64748b; margin-top:4px; }
.placement-review-answer,
.placement-result-a,
.placement-correct-answers {
  border-radius:18px;
  padding:12px 14px;
  background:#f8fafc;
  margin:8px 0;
  color:#334155;
}
.placement-review-answer span,
.placement-result-a small,
.placement-correct-answers span { display:block; color:#64748b; font-size:12px; font-weight:900; margin-bottom:5px; }
.placement-correct-answers .right-answer { color:#047857; font-weight:950; }
.placement-explanation,
.placement-result-explanation {
  border-radius:18px;
  padding:13px 15px;
  background:#fff7ed;
  color:#7c2d12;
  line-height:2;
  margin-top:10px;
}
.placement-question-card.premium { border:1px solid #e8edf3; box-shadow:0 18px 45px rgba(15,23,42,.045); }
.placement-skill-label {
  display:inline-flex;
  margin-top:10px;
  border-radius:999px;
  padding:5px 11px;
  color:#334155;
  background:#f1f5f9;
  font-size:12px;
  font-weight:900;
}
@media (max-width: 992px) {
  .placement-admin-card { grid-template-columns:1fr; }
  .placement-admin-actions { justify-content:flex-start; min-width:0; }
  .placement-review-summary,
  .placement-result-premium { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 576px) {
  .placement-review-summary,
  .placement-result-premium { grid-template-columns:1fr; }
}

/* v15 Dedicated Placement Question Bank */
.placement-questions-hero,
.placement-edit-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  border-radius:30px;
  padding:28px;
  background:linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  color:#fff;
  box-shadow:0 24px 60px rgba(var(--site-primary-rgb), .20);
  overflow:hidden;
  position:relative;
}
.placement-questions-hero:before,
.placement-edit-hero:before {
  content:"";
  position:absolute;
  inset:auto -40px -70px auto;
  width:210px;
  height:210px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.placement-questions-hero > *,
.placement-edit-hero > * { position:relative; z-index:1; }
.placement-questions-hero span,
.placement-edit-hero span {
  display:inline-flex;
  margin-bottom:8px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  font-size:12px;
  font-weight:950;
  letter-spacing:.03em;
}
.placement-questions-hero h1,
.placement-edit-hero h1 { color:#fff; font-size:34px; }
.placement-questions-hero p,
.placement-edit-hero p { color:rgba(255,255,255,.86); line-height:2; }
.placement-questions-hero-actions,
.placement-edit-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; min-width:320px; }
.placement-question-filter {
  border:1px solid #e8edf3;
  box-shadow:0 18px 45px rgba(15,23,42,.05);
}
.placement-question-bank-box { border:1px solid #e8edf3; box-shadow:0 20px 55px rgba(15,23,42,.05); }
.placement-question-bank-list { display:grid; gap:14px; }
.placement-question-bank-card {
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:18px;
  border-radius:26px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  border:1px solid #e8edf3;
  box-shadow:0 16px 42px rgba(15,23,42,.045);
  transition:.2s ease;
}
.placement-question-bank-card:hover { transform:translateY(-2px); box-shadow:0 22px 55px rgba(15,23,42,.075); }
.placement-question-bank-card.is-off { opacity:.70; background:#f8fafc; }
.placement-question-bank-number {
  width:54px;
  height:54px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(var(--site-primary-rgb), .10);
  color:var(--site-primary);
  font-weight:950;
}
.placement-question-bank-main h2 {
  margin:0 0 10px;
  color:#0f172a;
  font-size:18px;
  line-height:1.9;
  font-weight:950;
}
.placement-question-bank-answer {
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  padding:7px 12px;
  background:#f8fafc;
  color:#334155;
}
.placement-question-bank-answer small { color:#64748b; font-weight:900; }
.placement-question-bank-answer strong { color:#047857; font-weight:950; }
.placement-question-bank-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; min-width:260px; }
.placement-empty-state {
  text-align:center;
  border:1px dashed #cbd5e1;
  border-radius:26px;
  padding:34px;
  background:#f8fafc;
  color:#64748b;
}
.placement-empty-state strong { display:block; color:#0f172a; font-size:22px; margin-bottom:8px; }
.placement-editor-box { border-radius:26px; }
.placement-editor-section-title {
  display:flex;
  align-items:flex-start;
  gap:13px;
  margin-bottom:18px;
}
.placement-editor-section-title > span {
  width:42px;
  height:42px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--site-primary);
  color:#fff;
  font-weight:950;
  flex:0 0 auto;
}
.placement-editor-section-title.compact > span { width:38px; height:38px; border-radius:14px; }
.placement-editor-section-title h2 { margin:0; color:#0f172a; font-size:22px; }
.placement-editor-section-title p { margin:5px 0 0; color:#64748b; font-size:13px; }
.placement-question-textarea {
  font-size:16px;
  line-height:2;
  border-radius:20px;
  padding:16px;
}
.placement-question-settings {
  border:1px solid #e8edf3;
  box-shadow:0 20px 55px rgba(15,23,42,.055);
  border-radius:26px;
}
.placement-question-id {
  border-radius:18px;
  background:#f8fafc;
  padding:12px 14px;
  color:#64748b;
  font-weight:900;
}
.placement-question-id strong { color:var(--site-primary); }
.placement-answer-editor-head small {
  color:#64748b;
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:999px;
  padding:3px 9px;
  font-weight:900;
}
@media (max-width: 992px) {
  .placement-questions-hero,
  .placement-edit-hero,
  .placement-question-bank-card { grid-template-columns:1fr; }
  .placement-questions-hero-actions,
  .placement-edit-actions,
  .placement-question-bank-actions { justify-content:flex-start; min-width:0; }
}

/* v16 theme engine, responsive carousels, mega menu and shop */
.home-template .home-section { padding-top: 54px; padding-bottom: 54px; overflow: hidden; }
.home-template .landing { padding-top: 70px; padding-bottom: 70px; }
.home-template.index-2 .landing { background: radial-gradient(circle at 10% 10%, rgba(var(--site-secondary-rgb), .20), transparent 28%), linear-gradient(180deg, #fff, var(--site-primary-soft)); }
.home-template.index-3 .landing { background: linear-gradient(135deg, rgba(var(--site-primary-rgb), .10), rgba(var(--site-secondary-rgb), .16)); }
.home-template.index-4 .landing { background: linear-gradient(135deg, rgba(var(--site-secondary-rgb), .18), #fff); }
.home-hero-kicker { display: inline-flex; border: 1px solid rgba(var(--site-primary-rgb), .16); background: var(--site-primary-soft); color: var(--site-primary); border-radius: 999px; padding: 7px 14px; margin-bottom: 14px; font-weight: 800; }
.home-section-admin-card { border: 1px solid #e8edf3; border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 8px 28px rgba(31,45,61,.045); height: 100%; }
.home-section-subtitle { line-height: 1.9; }

/* prevent mobile carousel overflow before/after Swiper init */
.js-dynamic-swiper { width: 100%; max-width: 100%; overflow: hidden; }
.js-dynamic-swiper .swiper-wrapper { box-sizing: border-box; }
.js-dynamic-swiper .swiper-slide { min-width: 0; height: auto; }
.js-dynamic-swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 16px; overflow: hidden; }
.js-dynamic-swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 calc(25% - 12px); max-width: calc(25% - 12px); }
@media (max-width: 991px) { .js-dynamic-swiper:not(.swiper-initialized) .swiper-slide { flex-basis: calc(50% - 8px); max-width: calc(50% - 8px); } }
@media (max-width: 575px) { .js-dynamic-swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 100%; max-width: 100%; } .home-template .home-section { padding-top: 36px; padding-bottom: 36px; } .home-template .landing { padding-top: 40px; padding-bottom: 40px; } .home-hero-img { max-height: 340px; object-fit: contain; } }
.home-carousel-static .swiper-wrapper { justify-content: flex-start; }
.home-carousel-static .swiper-slide { margin-left: 0 !important; }

/* Multi-level and mega menu */
.top-header-nav ul li { position: relative; }
.top-header-nav ul li.has-child > a { display: inline-flex; align-items: center; gap: 4px; }
.top-header-nav .sub-menu,
.top-header-nav .mega-menu { position: absolute; top: calc(100% + 14px); right: 0; z-index: 9999; min-width: 230px; background: #fff; border: 1px solid #e8edf3; border-radius: 18px; box-shadow: 0 18px 48px rgba(15,23,42,.12); padding: 12px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s ease; list-style: none; }
.top-header-nav li.has-child:hover > .sub-menu,
.top-header-nav li.has-child:hover > .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.top-header-nav .sub-menu li { display: block; margin: 0; }
.top-header-nav .sub-menu a,
.top-header-nav .mega-menu a { display: block; padding: 10px 12px; border-radius: 12px; color: #334155 !important; text-decoration: none; white-space: nowrap; }
.top-header-nav .sub-menu a:hover,
.top-header-nav .mega-menu a:hover { background: var(--site-primary-soft); color: var(--site-primary) !important; }
.top-header-nav .mega-menu { width: min(720px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(var(--mega-cols, 2), minmax(0, 1fr)); gap: 8px; }
.top-header-nav .mega-menu small { display: block; color: #64748b; font-size: 12px; margin-top: 5px; line-height: 1.7; white-space: normal; }
.top-header-nav .sub-menu.nested { right: 100%; top: 0; }
.nav-responsive-content li.has-child > ul { height: 0; overflow: hidden; transition: height .3s ease; padding-right: 12px; }
.nav-responsive-content li.has-child.opened > a { color: var(--site-primary) !important; }

.cart-count-badge { position: absolute; top: -6px; left: -8px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--site-secondary); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }

/* Auth custom background */
.auth-custom-bg { background-image: linear-gradient(135deg, color-mix(in srgb, var(--auth-overlay) 78%, transparent), rgba(15,23,42,.18)), var(--auth-bg) !important; background-size: cover !important; background-position: center !important; min-height: 100vh; }
.auth-custom-bg .auth-content { box-shadow: 0 18px 60px rgba(15,23,42,.16); border: 1px solid rgba(255,255,255,.34); }
.auth-subtitle { color: #64748b; margin-top: -8px; margin-bottom: 18px; line-height: 1.9; }

/* Shop */
.course-buy-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px; border: 1px solid #e8edf3; border-radius: 18px; background: #f8fafc; }
.cart-line { padding: 16px 0; border-bottom: 1px solid #edf2f7; }
.cart-line:last-child { border-bottom: 0; }
.cart-line-img { width: 86px; height: 64px; object-fit: cover; border-radius: 14px; }
.checkout-summary, .order-complete-card { border-radius: 22px; padding: 24px; background: #fff; box-shadow: 0 12px 38px rgba(31,45,61,.08); }
.checkout-terms, .manual-payment-box { border: 1px dashed rgba(var(--site-primary-rgb), .35); background: var(--site-primary-soft); border-radius: 16px; padding: 14px 16px; line-height: 2; }
.order-complete-card { max-width: 720px; text-align: center; }
.order-status-icon { width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 28px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.order-status-icon.success { background: rgba(var(--site-secondary-rgb), .18); color: var(--site-secondary); }
.order-status-icon.pending { background: var(--site-primary-soft); color: var(--site-primary); }
.product-admin-card { border-radius: 20px; background: #fff; box-shadow: 0 12px 38px rgba(31,45,61,.07); overflow: hidden; height: 100%; }
.product-admin-card > img { height: 180px; object-fit: cover; }
@media (max-width: 575px) { .cart-line { align-items: flex-start !important; flex-wrap: wrap; } .cart-line-img { width: 100%; height: 150px; } }

/* v17 homepage responsive carousel polish */
html, body { max-width: 100%; overflow-x: hidden; }
.home-template,
.home-template .home-section,
.home-template .container,
.home-template .row { min-width: 0; }
.home-template { overflow: hidden; }
.home-template .home-section {
  position: relative;
  padding-top: clamp(36px, 5vw, 70px);
  padding-bottom: clamp(36px, 5vw, 70px);
}
.home-template .landing {
  margin: 0 !important;
  padding-top: clamp(34px, 6vw, 74px) !important;
  padding-bottom: clamp(38px, 6vw, 78px) !important;
}
.home-template .landing h3 {
  font-size: clamp(30px, 5vw, 56px) !important;
  line-height: 1.35 !important;
  max-width: 100%;
}
.home-template .landing h3::before { transform: translate(18px, -25px) scale(.82) !important; }
.home-template .landing p {
  font-size: clamp(14px, 2vw, 16px) !important;
  line-height: 2 !important;
  max-width: 620px;
}
.home-template .landing .btn { margin-bottom: 0 !important; }
.home-template .landing-counter {
  margin: 32px 0 0 !important;
  gap: 22px;
  flex-wrap: wrap;
}
.home-template .landing-counter li {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--site-primary-rgb), .10);
  background: rgba(255,255,255,.74);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15,23,42,.045);
}
.home-template .landing-counter li:not(:last-child) { margin-left: 0 !important; }
.home-template .landing-counter li::after { content: none !important; }
.home-template .home-hero-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 60px rgba(15,23,42,.10));
}
.home-template .section-heading {
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 36px) !important;
}
.home-template .section-heading-title {
  font-size: clamp(24px, 3.1vw, 36px) !important;
  line-height: 1.65 !important;
}
.home-template .section-heading-link {
  white-space: nowrap;
  color: var(--site-primary) !important;
}
.home-template .home-section-subtitle { max-width: 680px; }
.home-template .new-courses-wrapper { padding-top: 0 !important; }
.home-template .new-courses-wrapper::after,
.home-template .new-courses .container::before,
.home-template .new-courses .container::after { pointer-events: none; }
.home-template .home-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
  padding: 8px 4px 22px;
  direction: rtl;
  touch-action: pan-y;
}
.home-template .home-carousel.swiper-shadow { padding-top: 10px; padding-bottom: 26px; }
.home-template .home-carousel .swiper-wrapper {
  align-items: stretch;
  box-sizing: border-box;
}
.home-template .home-carousel .swiper-slide {
  min-width: 0;
  height: auto !important;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  backface-visibility: hidden;
}
.home-template .home-carousel .swiper-slide > * {
  width: 100%;
  max-width: 100%;
}
.home-template .home-carousel:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 16px;
  overflow: hidden;
}
.home-template .home-carousel:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 calc(25% - 12px);
  max-width: calc(25% - 12px);
}
.home-template .home-carousel-single .swiper-wrapper { justify-content: center; }
.home-template .home-carousel-single .swiper-slide { max-width: 360px; }
.home-template .course,
.home-template .article,
.home-template .skills-item,
.home-template .comments-students-item,
.home-template .options-home-item {
  width: 100%;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.055);
}
.home-template .course,
.home-template .article,
.home-template .skills-item,
.home-template .comments-students-item {
  box-shadow: 0 18px 52px rgba(15,23,42,.065) !important;
}
.home-template .course-image img,
.home-template .article figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto !important;
  object-fit: cover;
}
.home-template .article figure { margin-bottom: 12px !important; }
.home-template .article h2,
.home-template .course h2 {
  white-space: normal !important;
  height: auto !important;
  min-height: 34px;
  line-height: 1.8 !important;
}
.home-template .course p,
.home-template .article p,
.home-template .skills-item p,
.home-template .comments-students-item p {
  line-height: 1.95 !important;
}
.home-template .course p { height: 64px; }
.home-template .article p { min-height: 50px; }
.home-template .skills-item-heading { min-width: 0; }
.home-template .skills-item-heading .name-count-courses { min-width: 0; }
.home-template .skills-item-heading .name-count-courses h2 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Testimonial depth is controlled by the scoped v19 rules below. */
.home-template .comments-students-item-info .author { min-width: 0; }
.home-template .comments-students-item-info .author .detail { min-width: 0; }
.home-template .comments-students-item-info .author .detail h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-template .options-home-item::after { transform: translateY(44px) !important; }
.home-template .options-home-item-wrapper {
  height: 100%;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.home-template .options-home-item-wrapper p {
  line-height: 2;
  margin-bottom: 0;
}
.home-template .swiper-bottom {
  position: relative !important;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0 !important;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.home-template .swiper-bottom .swiper-button-next,
.home-template .swiper-bottom .swiper-button-prev {
  position: static !important;
  inset: auto !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  flex: 0 0 42px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(var(--site-primary-rgb), .12);
  box-shadow: 0 12px 34px rgba(15,23,42,.09);
  color: var(--site-primary);
  transform: none !important;
}
.home-template .swiper-bottom .swiper-button-next::after,
.home-template .swiper-bottom .swiper-button-prev::after {
  color: var(--site-primary) !important;
  font-size: 20px !important;
}
.home-template .swiper-bottom .swiper-button-disabled {
  opacity: .35 !important;
  pointer-events: none;
}
.home-template .swiper-bottom .swiper-pagination {
  position: static !important;
  width: auto !important;
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transform: none !important;
}
.home-template .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  margin: 0 3px !important;
  background: rgba(var(--site-primary-rgb), .28) !important;
  opacity: 1 !important;
}
.home-template .swiper-pagination-bullet-active {
  width: 20px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary)) !important;
}
.home-template .swiper-button-lock,
.home-template .swiper-pagination-lock { display: none !important; }

@media (max-width: 1199px) {
  .home-template .home-carousel:not(.swiper-initialized) .swiper-slide {
    flex-basis: calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
}
@media (max-width: 991px) {
  .home-template .top-header { margin-top: 0 !important; }
  .home-template .home-carousel:not(.swiper-initialized) .swiper-slide {
    flex-basis: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
  .home-template .landing-counter { gap: 12px; }
  .home-template .landing-counter li { flex: 1 1 calc(33.333% - 12px); min-width: 150px; }
}
@media (max-width: 767px) {
  .home-template .section-heading {
    align-items: flex-start !important;
    text-align: right;
  }
  .home-template .section-heading > div { width: 100%; }
  .home-template .section-heading-link {
    align-self: flex-start;
    margin-top: 6px !important;
  }
  .home-template .course,
  .home-template .article,
  .home-template .skills-item,
  .home-template .comments-students-item { border-radius: 22px !important; }
  .home-template .skills-item-heading img { margin-left: 0 !important; }
}
@media (max-width: 575px) {
  .home-template .home-section { padding-left: 0; padding-right: 0; }
  .home-template .home-carousel {
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .home-template .home-carousel:not(.swiper-initialized) .swiper-slide {
    flex-basis: 100%;
    max-width: 100%;
  }
  .home-template .landing h3::before,
  .home-template .landing h3::after { content: none !important; }
  .home-template .home-hero-img { max-height: 300px; }
  .home-template .landing-counter {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-template .landing-counter li {
    min-width: 0;
    width: 100%;
  }
  .home-template .course,
  .home-template .article,
  .home-template .skills-item,
  .home-template .comments-students-item,
  .home-template .options-home-item { min-height: auto; }
  .home-template .skills-item-heading {
    align-items: center !important;
    text-align: center;
  }
  .home-template .skills-item-heading .star { margin-right: 0 !important; }
  .home-template .comments-students-item-info .author img { margin-left: 12px !important; }
  .home-template .swiper-bottom { margin-top: 16px !important; }
  .home-template .swiper-bottom .swiper-button-next,
  .home-template .swiper-bottom .swiper-button-prev {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px;
  }
}


/* v19 - CMS builders, isolated home carousels and restored testimonial depth */
.home-template .home-carousel {
  position: relative;
  isolation: isolate;
}
.home-template .home-carousel > .swiper-wrapper { align-items: stretch; }
.home-template .home-carousel > .swiper-wrapper > .swiper-slide { height: auto; }
.home-template .home-carousel .swiper-bottom { position: relative; z-index: 3; }

/* The testimonial blur is intentional: only the active card is crisp. */
.home-template .home-carousel-testimonials .swiper-slide .comments-students-item {
  transform: scaleY(.9) !important;
  filter: blur(8px) !important;
  opacity: .82;
  transition: transform .35s ease, filter .35s ease, opacity .35s ease !important;
}
.home-template .home-carousel-testimonials .swiper-slide-active .comments-students-item {
  transform: scaleY(1) !important;
  filter: blur(0) !important;
  opacity: 1;
}

.site-announcement {
  padding: 9px 16px;
  text-align: center;
  background: var(--site-primary);
  color: #fff;
}
.site-announcement a { color: inherit; text-decoration: none; }
.site-header-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1040;
  margin-top: 0 !important;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.footer-builder-widgets { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
.panel-user-avatar,
.profile-avatar-preview,
.admin-user-avatar { object-fit: cover; }
.dashboard-theme-soft .panel-content { background: #f7f8fc; }
.dashboard-theme-contrast .panel-content { background: #eef2f7; }
.dashboard-theme-light .panel-content { background: #fff; }
.dashboard-compact-sidebar .panel-sidebar-nav li a { padding-top: 8px; padding-bottom: 8px; }
.order-tracking-timeline { position: relative; padding-right: 24px; }
.order-tracking-item { position: relative; padding: 0 22px 22px 0; border-right: 2px solid rgba(0,0,0,.08); }
.order-tracking-item::before { content: ''; position: absolute; right: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--site-primary); }
.page-builder-block { border: 1px dashed rgba(0,0,0,.18); border-radius: 18px; }
.builder-drag-handle { cursor: grab; user-select: none; }
.media-library-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.gateway-choice input:checked + .gateway-choice-card { border-color: var(--site-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-primary) 14%, transparent); }
@media (max-width: 575px) {
  .home-template .home-carousel-testimonials .swiper-slide .comments-students-item { filter: blur(5px) !important; }
  .home-template .home-carousel-testimonials .swiper-slide-active .comments-students-item { filter: blur(0) !important; }
}

/* v20 - Elementor-like homepage builder frontend */
.home-builder-front .home-builder-widget { position: relative; overflow: hidden; }
.home-builder-front .home-builder-rich-text > :last-child { margin-bottom: 0; }
.home-builder-front .home-builder-widget-heading h2 { line-height: 1.45; }
.home-builder-front .home-builder-image { display: inline-block; max-width: 100%; object-fit: cover; }
.home-builder-front .home-builder-widget-hero .home-hero-img { max-height: 620px; object-fit: contain; }
.home-builder-front .home-builder-widget .section-heading { margin-bottom: 28px; }
.home-builder-front .home-builder-widget-full .container-fluid { max-width: none; }
.home-builder-front .home-carousel { direction: rtl; }
@media (max-width: 767px) {
  .home-builder-front .home-builder-widget { margin-left: 0 !important; margin-right: 0 !important; }
  .home-builder-front .home-builder-widget-hero .home-hero-img { max-height: 340px; }
}

/* v23 - full mega menu frontend */
.top-header-nav li.menu-mega { position: static; }
.top-header-nav .mega-menu {
  --mega-bg: #fff;
  --mega-bg-image: none;
  display: block;
  min-width: 0;
  width: min(860px, calc(100vw - 32px));
  padding: 18px;
  overflow: hidden;
  background-color: var(--mega-bg);
  background-image: var(--mega-bg-layer, none);
  background-size: cover;
  background-position: center;
}
.top-header-nav .mega-menu-boxed { width: min(860px, calc(100vw - 32px)); right: 0; }
.top-header-nav .mega-menu-wide { width: min(1120px, calc(100vw - 32px)); right: 50%; transform: translate(50%, 8px); }
.top-header-nav li.has-child:hover > .mega-menu-wide { transform: translate(50%, 0); }
.top-header-nav .mega-menu-full {
  width: calc(100vw - 32px);
  max-width: 1440px;
  right: 50%;
  transform: translate(50%, 8px);
}
.top-header-nav li.has-child:hover > .mega-menu-full { transform: translate(50%, 0); }
.top-header-nav .mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 2), minmax(0, 1fr));
  gap: 18px;
}
.top-header-nav .mega-menu-column {
  min-width: 0;
  padding: 4px;
}
.top-header-nav .mega-menu-heading {
  padding: 10px 12px 12px;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  color: #0f172a;
}
.top-header-nav .mega-menu-heading strong { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.top-header-nav .mega-menu-heading small { margin-top: 6px; }
.top-header-nav .mega-menu-link {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  white-space: normal !important;
}
.top-header-nav .mega-menu-link > i { margin-top: 4px; color: var(--site-primary); }
.top-header-nav .mega-menu-link > span { min-width: 0; flex: 1; }
.top-header-nav .mega-menu-link strong { display: block; font-size: 14px; }
.top-header-nav .mega-menu-link em,
.menu-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-primary) 12%, #fff);
  color: var(--site-primary);
  font-size: 10px;
  font-style: normal;
  line-height: 1.7;
  white-space: nowrap;
}
.menu-item-badge { margin-right: 5px; }
.top-header-nav .mega-menu-image-card {
  display: grid !important;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  white-space: normal !important;
  padding: 9px !important;
  border: 1px solid rgba(15,23,42,.07);
}
.top-header-nav .mega-menu-image-card img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}
.top-header-nav .mega-menu-image-card strong { display: block; font-size: 14px; }
.top-header-nav .mega-menu-nested { list-style: none; margin: 0 18px 8px 0; padding: 0; }
.top-header-nav .mega-menu-nested a { padding: 6px 9px !important; font-size: 12px; }
@media (max-width: 1199px) {
  .top-header-nav .mega-menu-grid { gap: 10px; }
}
@media (max-width: 991px) {
  .nav-responsive-content .menu-item-badge { margin-right: 6px; }
}
.top-header-nav { position: relative; }
.header-dashboard-first > a { font-weight: 800; color: var(--site-primary) !important; }

/* v26 irregular verbs */
.verb-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border-radius:24px;background:linear-gradient(135deg,#eff6ff,#faf5ff);border:1px solid #dbeafe}.verb-hero h1{color:#172033}.verb-hero-count{display:grid;place-items:center;min-width:110px;min-height:110px;border-radius:50%;background:#fff;box-shadow:0 18px 45px rgba(37,99,235,.13)}.verb-hero-count strong{font-size:32px;color:#2563eb}.verb-hero-count span{color:#64748b}.verb-table-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:20px;overflow:hidden;box-shadow:0 16px 42px rgba(15,23,42,.06)}.verb-table{margin:0}.verb-table thead th{white-space:nowrap;background:#f8fafc;color:#475569;border-bottom:1px solid #e5e7eb}.verb-form-cell{position:relative;display:grid;gap:3px;min-width:125px;padding-inline-end:34px}.verb-form-cell strong{font-size:18px;color:#172033}.verb-form-cell small{color:#64748b}.verb-speak{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:#eff6ff;cursor:pointer}.verb-speak:hover{background:#dbeafe}.verb-example-en{font-weight:700}.verb-level{display:inline-flex;padding:5px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:700}
@media(max-width:768px){.verb-hero{align-items:flex-start}.verb-hero-count{min-width:86px;min-height:86px}.verb-table{min-width:980px}}


/* v28.2 vocabulary audio */
.vocab-audio-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid rgba(37,99,235,.18);border-radius:999px;background:linear-gradient(135deg,#eff6ff,#fff);color:#1d4ed8;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:.2s ease;vertical-align:middle;box-shadow:0 6px 18px rgba(37,99,235,.08)}
.vocab-audio-btn:hover{transform:translateY(-1px);border-color:rgba(37,99,235,.4);box-shadow:0 10px 24px rgba(37,99,235,.14)}
.vocab-audio-btn.is-playing{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-color:transparent;animation:vocabAudioPulse 1.1s infinite}
.vocab-audio-btn.compact{min-width:36px;width:36px;height:36px;padding:0}.vocab-audio-btn.compact .vocab-audio-label{display:none}
.vocab-audio-btn.icon-only{min-width:34px;width:34px;height:34px;padding:0}.vocab-audio-btn.icon-only .vocab-audio-label{display:none}
.vocab-audio-inline{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
@keyframes vocabAudioPulse{0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,.25)}50%{box-shadow:0 0 0 8px rgba(37,99,235,0)}}
