@charset "UTF-8";
@font-face {
  font-family: nastaleeq;
  font-style: normal;
  font-weight: 100;
  src:
    url("../fonts/indopak-nastaleeq-waqf-lazim-v4.2.1.woff") format("woff"),
    url("../fonts/indopak-nastaleeq-waqf-lazim-v4.2.1.woff2") format("woff2");
}
:root {
  --emx-indigo-50: #eef2ff;
  --emx-indigo-100: #e0e7ff;
  --emx-indigo-200: #c7d2fe;
  --emx-indigo-400: #818cf8;
  --emx-indigo-500: #6366f1;
  --emx-indigo-600: #4f46e5;
  --emx-indigo-700: #4338ca;
  --emx-indigo-800: #3730a3;
  --emx-shadow-soft: 0 4px 20px rgba(99, 102, 241, 0.12);
  --emx-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04);
  --emx-shadow-bottom: 0 -4px 20px rgba(15, 23, 42, 0.08);
  --emx-radius-lg: 20px;
  --emx-radius-md: 16px;
  --emx-radius-sm: 12px;
  --emx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: iransansfa;
  font-size: 15px;
  line-height: 1.55rem;
  letter-spacing: -0.015rem;
  color: #4f5050;
  background: #f9f9f9;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   UTILITY — Safe Areas (iOS)
   ======================================== */
@supports (padding-top: env(safe-area-inset-top)) {
  .redesigned-header {
    padding-top: env(safe-area-inset-top);
    height: calc(56px + env(safe-area-inset-top));
  }

  .redesigned-bottom-menu {
    padding-bottom: env(safe-area-inset-bottom) !important;
    height: calc(68px + env(safe-area-inset-bottom)) !important;
  }
}
/* --- صفحه اصلی --- */
.courses-page {
  padding-bottom: 80px;
  background: var(--bg-primary, #f5f5f5);
}

/* --- هدر گرادیان --- */
.courses-header-bg {
  background: #ffffff;
  padding: 32px 20px 28px;
  border-radius: 0 0 28px 28px;
  text-align: center;
  color: #2b2d42;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--emx-indigo-500, #6366f1);
}

.courses-container {
  padding: 12px 16px;
}
/* ═══════════════════════════════════════════
   هدر هیرو – نشانک / Bookmark Hero Header
   ═══════════════════════════════════════════ */

.bkdetail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--emx-indigo-800, #3730a3) 0%,
    var(--emx-indigo-700, #4338ca) 30%,
    var(--emx-indigo-500, #6366f1) 70%,
    var(--emx-indigo-400, #818cf8) 100%
  );
  padding: 48px 20px 36px;
  text-align: center;
  border-radius: 0 0 var(--emx-radius-lg, 20px) var(--emx-radius-lg, 20px);
  box-shadow: 0 6px 24px rgba(67, 56, 202, 0.3);
}

/* ─── حباب‌های تزئینی شناور ─── */
.bkdetail-hero__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  animation: heroOrbFloat 6s ease-in-out infinite;
}

.bkdetail-hero__orb--1 {
  width: 140px;
  height: 140px;
  top: -40px;
  right: -30px;
  animation-delay: 0s;
}

.bkdetail-hero__orb--2 {
  width: 90px;
  height: 90px;
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.04);
  animation-delay: -2s;
  animation-duration: 8s;
}

.bkdetail-hero__orb--3 {
  width: 50px;
  height: 50px;
  top: 30%;
  left: 15%;
  background: rgba(255, 255, 255, 0.05);
  animation-delay: -4s;
  animation-duration: 7s;
}

@keyframes heroOrbFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.05);
  }
}

/* ─── الگوی نقطه‌ای پس‌زمینه ─── */
.bkdetail-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.07) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  pointer-events: none;
}

/* ─── محتوای هدر ─── */
.bkdetail-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ─── نشان آیکن ─── */
.bkdetail-hero__icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bkdetail-hero__icon-badge ion-icon {
  font-size: 22px;
  color: #ffffff;
}

/* ─── عنوان اصلی ─── */
.bkdetail-hero__title {
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  word-break: break-word;
}

/* ─── بردکرامب (بهبود‌یافته) ─── */
.bkdetail-hero .bkdetail-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bkdetail-hero .bkdetail-breadcrumb__link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.bkdetail-hero .bkdetail-breadcrumb__link:active {
  color: #ffffff;
}

.bkdetail-hero .bkdetail-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
}

/* ─── ریسپانسیو ─── */
@media (min-width: 380px) {
  .bkdetail-hero {
    padding: 52px 24px 40px;
  }
}

@media (min-width: 600px) {
  .bkdetail-hero {
    padding: 56px 32px 44px;
    border-radius: 0 0 28px 28px;
  }
  .bkdetail-hero__title {
    font-size: 26px;
    max-width: 80%;
  }
  .bkdetail-hero__icon-badge {
    width: 56px;
    height: 56px;
  }
  .bkdetail-hero__icon-badge ion-icon {
    font-size: 26px;
  }
}

/* ═══════════════════════════════════════════
   کارت آیه – Aya Card
   ═══════════════════════════════════════════ */

.aya-card {
  position: relative;
  margin: 16px 0px;
  border-radius: var(--emx-radius-lg, 20px);
  background: linear-gradient(
    135deg,
    var(--emx-indigo-700, #4338ca) 0%,
    var(--emx-indigo-500, #6366f1) 50%,
    var(--emx-indigo-400, #818cf8) 100%
  );
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 2px; /* حاشیه گرادیانی */
}

/* تزئینات دایره‌ای گوشه‌ها */
.aya-card-ornament {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #ffffff;
  pointer-events: none;
}

.aya-card-ornament--top {
  width: 120px;
  height: 120px;
  top: -40px;
  right: -30px;
}

.aya-card-ornament--bottom {
  width: 80px;
  height: 80px;
  bottom: -25px;
  left: -20px;
}

/* بخش داخلی */
.aya-card-inner {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-radius: calc(var(--emx-radius-lg, 20px) - 2px);
  padding: 28px 20px 28px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* بسم‌الله */
.aya-bismillah-icon {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  line-height: 1;
}

/* ✦ متن آیه – واکنش‌گرا برای طول‌های مختلف */
.aya-text-content {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 700;
  color: #ffffff;
  line-height: 2.2;
  margin: 0;
  padding: 0 4px;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  direction: rtl;
  /* حداکثر ارتفاع با اسکرول برای آیات خیلی بلند */
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* اسکرولبار سفارشی وبکیت */
.aya-text-content::-webkit-scrollbar {
  width: 4px;
}
.aya-text-content::-webkit-scrollbar-track {
  background: transparent;
}
.aya-text-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

/* تقسیم‌کننده تزئینی پایین */
.aya-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  margin-top: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aya-divider-diamond {
  background: var(--emx-indigo-600, #4f46e5);
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  position: relative;
  top: 0;
}

/* ═══  ریسپانسیو  ═══ */

/* آیات کوتاه (کمتر از ۵۰ کاراکتر تقریبی): فونت بزرگ‌تر */
@media (min-width: 380px) {
  .aya-card-inner {
    padding: 32px 24px 32px;
  }
}

/* صفحات بزرگ‌تر */
@media (min-width: 600px) {
  .aya-card {
    margin: 20px 24px 24px;
  }
  .aya-text-content {
    font-size: clamp(20px, 3.5vw, 30px);
    padding: 0 16px;
  }
}

/* ============================================
   🔍 سرچ‌بار
   ============================================ */
.courses-search-wrapper {
  margin-bottom: 14px;
}

.courses-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 0 14px;
  height: 46px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  direction: rtl;
}

.courses-search-icon {
  font-size: 20px;
  color: #999;
  margin-left: 10px;
  flex-shrink: 0;
}

.courses-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #333;
}

.courses-search-input::placeholder {
  color: #bbb;
}

/* ============================================
   📂 آکاردئون دسته‌بندی
   ============================================ */
.courses-categories-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 18px;
  overflow: hidden;
}

.courses-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.courses-category-toggle-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.courses-category-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.courses-toggle-arrow {
  font-size: 18px;
  color: #999;
  transition: transform 0.3s ease;
}

.courses-toggle-arrow.rotated {
  transform: rotate(180deg);
}

.courses-category-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.courses-category-list.open {
  max-height: 600px;
}

.courses-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  text-decoration: none;
  color: #444;
  font-size: 13.5px;
  transition: background 0.2s;
}

.courses-category-item:active {
  background: #f7f7ff;
}

.courses-category-name {
  flex: 1;
}

.courses-badge,
.courses-badge-lg {
  background: #eef2ff;
  color: #6366f1;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.courses-badge-lg {
  font-size: 12.5px;
  padding: 4px 12px;
}

/* ---------- سکشن‌ها ---------- */
.courses-section {
  margin-bottom: 22px;
}

.courses-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.courses-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.courses-section-title ion-icon {
  font-size: 20px;
  color: #6366f1;
}

/* ---------- کارت دوره‌ها (شبیه blog-post-card) ---------- */
.courses-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.courses-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.courses-card:active {
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.13);
}

/* تصویر کارت */
.courses-card-img {
  position: relative;
  width: 120px;
  min-height: 110px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 15px;
}

.courses-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

.courses-free-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}

/* بدنه کارت */
.courses-card-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.courses-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #222;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.courses-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: #888;
}

.courses-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.courses-card-meta ion-icon {
  font-size: 14px;
  color: #aaa;
}

.courses-card-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #6366f1;
}

.courses-card-price small {
  font-size: 11px;
  font-weight: 400;
  color: #999;
}

.courses-price-free {
  color: #10b981;
  font-weight: 700;
  font-size: 13px;
}
/* ============================================
   📂 صفحه لیست دسته‌بندی‌ها (Category List)
   فقط کلاس‌های جدید این صفحه
   ============================================ */

/* --- هدر صفحه --- */
.catlist-page-header {
  text-align: center;
  padding: 24px 0 20px;
}

.catlist-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 26px;
  color: #ffffff;
}

.catlist-page-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.catlist-page-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-weight: 500;
}

/* --- کارت لیست --- */
.catlist-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* --- آیتم دسته‌بندی --- */
.catlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.catlist-item:not(:last-child) {
  border-bottom: 1px solid #f1f3f5;
}

.catlist-item:active {
  background: var(--emx-indigo-50, #eef2ff);
}

.catlist-item-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.catlist-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--emx-indigo-50, #eef2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--emx-indigo-500, #6366f1);
  flex-shrink: 0;
}

.catlist-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #2b2d42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catlist-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.catlist-arrow {
  font-size: 16px;
  color: #ced4da;
}

/* --- حالت خالی --- */
.catlist-empty {
  text-align: center;
  padding: 60px 20px;
  color: #adb5bd;
}

.catlist-empty ion-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: #dee2e6;
}

.catlist-empty p {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
/* ============================================
   📂 آکاردئون فیلتر دسته‌بندی (Category Filter)
   ============================================ */

.catfilter-accordion {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 20px;
}

/* --- دکمه باز/بسته --- */
.catfilter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--emx-indigo-500, #6366f1);
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.catfilter-toggle-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catfilter-toggle-right ion-icon {
  font-size: 20px;
}

.catfilter-chevron {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.catfilter-toggle--open .catfilter-chevron {
  transform: rotate(180deg);
}

/* --- بدنه آکاردئون --- */
.catfilter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.catfilter-body--open {
  max-height: 600px;
}

/* --- لینک دسته‌بندی --- */
.catfilter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  text-decoration: none;
  color: #2b2d42;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.catfilter-link:not(:last-child) {
  border-bottom: 1px solid #f1f3f5;
}

.catfilter-link:active {
  background: var(--emx-indigo-50, #eef2ff);
}

.catfilter-link-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   📋 لیست دوره‌ها (Workshop List Cards)
   ============================================ */

.wklist-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wklist-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.wklist-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* --- تصویر --- */
.wklist-thumb {
  width: 110px;
  min-height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f1f3f5;
  padding: 15px;
}

.wklist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

/* --- اطلاعات --- */
.wklist-info {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.wklist-title {
  font-size: 15px;
  font-weight: 700;
  color: #2b2d42;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wklist-meta {
  font-size: 12px;
  color: #868e96;
  margin: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.wklist-dot {
  color: #ced4da;
  font-size: 8px;
}

/* --- قیمت --- */
.wklist-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--emx-indigo-600, #4f46e5);
}

.wklist-currency {
  font-size: 11px;
  font-weight: 600;
  color: #868e96;
}

.wklist-free {
  font-size: 13px;
  font-weight: 700;
  color: var(--emx-emerald-500, #10b981);
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 10px;
  border-radius: 8px;
  display: inline-block;
}

/* --- حالت خالی --- */
.wklist-empty {
  text-align: center;
  padding: 60px 20px;
  color: #adb5bd;
}

.wklist-empty ion-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: #dee2e6;
}

.wklist-empty p {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
/* ============================================
   📖 صفحه جزئیات دوره (Workshop Detail)
   ============================================ */

.wkdetail-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding-bottom: 40px;
}

/* --- بنر تصویر --- */
.wkdetail-banner {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.wkdetail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wkdetail-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #f8f9fa, transparent);
}

/* --- کارت اصلی --- */
.wkdetail-main-card {
  background: #ffffff;
  border-radius: 24px 24px 20px 20px;
  margin: -30px 16px 0;
  position: relative;
  z-index: 2;
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* --- هدر (عنوان + قیمت) --- */
.wkdetail-header {
  margin-bottom: 16px;
}

.wkdetail-title {
  font-size: 19px;
  font-weight: 800;
  color: #2b2d42;
  margin: 0 0 12px;
  line-height: 1.7;
}

.wkdetail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wkdetail-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--emx-indigo-600, #4f46e5);
}

.wkdetail-currency {
  font-size: 12px;
  font-weight: 600;
  color: #868e96;
}

.wkdetail-free {
  font-size: 16px;
  font-weight: 700;
  color: var(--emx-emerald-500, #10b981);
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 14px;
  border-radius: 10px;
}

/* --- وضعیت دوره --- */
.wkdetail-status {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 10px;
}

.wkdetail-status--active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emx-emerald-600, #059669);
}

.wkdetail-status--done {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

/* --- توضیح کوتاه --- */
.wkdetail-short-desc {
  padding: 14px 0;
  border-top: 1px solid #f1f3f5;
  font-size: 14px;
  color: #495057;
  line-height: 1.8;
}

.wkdetail-short-desc p {
  margin: 0 0 6px;
}

/* --- باکس پرداخت --- */
.wkdetail-payment-notice {
  padding-top: 14px;
  border-top: 1px solid #f1f3f5;
}

.wkdetail-payment-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
  text-align: justify;
  margin: 0 0 14px;
}

.wkdetail-payment-box {
  background: #f8f9fa;
  border-radius: 14px;
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.wkdetail-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  font-size: 13px;
}

.wkdetail-payment-row:not(:last-child) {
  border-bottom: 1px solid #f1f3f5;
}

.wkdetail-payment-label {
  color: #9ca3af;
  font-weight: 500;
  flex-shrink: 0;
}

.wkdetail-payment-value {
  color: #2b2d42;
  font-weight: 600;
  text-align: left;
}

.wkdetail-payment-mono {
  font-family: monospace;
  letter-spacing: 1px;
  direction: ltr;
}

.wkdetail-payment-link {
  color: var(--emx-indigo-500, #6366f1);
  text-decoration: none;
  font-weight: 600;
}

/* --- دکمه‌های اقدام --- */
.wkdetail-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}

.wkdetail-action-btn ion-icon {
  font-size: 20px;
}

.wkdetail-action-btn--enrolled {
  background: var(--emx-indigo-50, #eef2ff);
  color: var(--emx-indigo-600, #4f46e5);
}

.wkdetail-action-btn--enroll {
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
  transition: background 0.2s;
}

.wkdetail-action-btn--enroll:active {
  background: var(--emx-indigo-600, #4f46e5);
}

/* ============================================
   تب‌ها
   ============================================ */

.wkdetail-tabs-wrapper {
  margin: 20px 16px 0;
}

.wkdetail-tabs {
  display: flex;
  background: #e9ecef;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.wkdetail-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.wkdetail-tab ion-icon {
  font-size: 17px;
}

.wkdetail-tab--active {
  background: #ffffff;
  color: var(--emx-indigo-600, #4f46e5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- پنل تب --- */
.wkdetail-tab-panel {
  display: none;
  padding-top: 18px;
}

.wkdetail-tab-panel--active {
  display: block;
}

/* ============================================
   سرفصل‌ها (Topics Accordion)
   ============================================ */

.wkdetail-topics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wkdetail-topic {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.wkdetail-topic-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--emx-indigo-50, #eef2ff);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.wkdetail-topic-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wkdetail-topic-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b2d42;
}

.wkdetail-topic-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--emx-indigo-500, #6366f1);
  background: rgba(99, 102, 241, 0.1);
  padding: 3px 10px;
  border-radius: 8px;
}

.wkdetail-topic-chevron {
  font-size: 18px;
  color: #868e96;
  transition: transform 0.3s ease;
}

.wkdetail-topic-header--open .wkdetail-topic-chevron {
  transform: rotate(180deg);
}

/* --- بدنه سرفصل --- */
.wkdetail-topic-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.wkdetail-topic-body--open {
  max-height: 10000px;
}

/* --- آیتم درس --- */
.wkdetail-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  text-decoration: none;
  color: #2b2d42;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
}

.wkdetail-lesson:not(:last-child) {
  border-bottom: 1px solid #f8f9fa;
}

.wkdetail-lesson:active {
  background: #f8f9fa;
}

.wkdetail-lesson--locked {
  color: #adb5bd;
}

.wkdetail-lesson-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.wkdetail-lesson-icon--play {
  color: var(--emx-indigo-500, #6366f1);
}

.wkdetail-lesson-icon--lock {
  color: #ced4da;
}

.wkdetail-lesson-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   تب اطلاعات — جدول مشخصات
   ============================================ */

.wkdetail-specs-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.wkdetail-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  font-size: 14px;
}

.wkdetail-spec:not(:last-child) {
  border-bottom: 1px solid #f1f3f5;
}

.wkdetail-spec-label {
  color: #868e96;
  font-weight: 500;
}

.wkdetail-spec-value {
  color: #2b2d42;
  font-weight: 600;
}

/* ============================================
   بلوک‌های بخش اطلاعات (توضیحات، یادگیری، ...)
   ============================================ */

.wkdetail-section-block {
  margin-top: 18px;
}

.wkdetail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #2b2d42;
  margin: 0 0 12px;
}

.wkdetail-section-title ion-icon {
  font-size: 20px;
  color: var(--emx-indigo-500, #6366f1);
}

.wkdetail-section-body {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 14px;
  color: #495057;
  line-height: 1.8;
}

.wkdetail-section-body p {
  margin: 0 0 8px;
}

.wkdetail-section-body p:last-child {
  margin-bottom: 0;
}

/* --- آیتم‌های "یاد خواهید گرفت" و "پیش‌نیاز" --- */
.wkdetail-learn-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.wkdetail-learn-item ion-icon {
  font-size: 16px;
  color: var(--emx-emerald-500, #10b981);
  margin-top: 3px;
  flex-shrink: 0;
}

.wkdetail-learn-item span {
  flex: 1;
}
.wkdetail-bookmark-link {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--emx-indigo-600, #4f46e5);
  font-weight: 600;
  font-size: 14px;
}

.wkdetail-bookmark-link:not(:last-child) {
  border-bottom: 1px dashed #e9ecef;
}

/* ============================================
   Toast هشدار قفل درس
   ============================================ */

.wkdetail-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2b2d42;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.wkdetail-toast ion-icon {
  font-size: 18px;
}

.wkdetail-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* ============================================
   🧾 صفحه نتیجه سفارش (Order Result)
   ============================================ */

.ordresult-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 20px 16px 40px;
}

/* --- باکس وضعیت --- */
.ordresult-status-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 18px;
}

.ordresult-status-icon {
  font-size: 56px;
  margin-bottom: 12px;
  line-height: 1;
}

.ordresult-status-icon ion-icon {
  font-size: inherit;
}

.ordresult-status-icon--success {
  color: var(--emx-emerald-500, #10b981);
}

.ordresult-status-icon--fail {
  color: #ef4444;
}

.ordresult-status-title {
  font-size: 17px;
  font-weight: 800;
  color: #2b2d42;
  margin: 0 0 6px;
}

.ordresult-status-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

/* --- کارت جزئیات + سبد خرید --- */
.ordresult-detail-card,
.ordresult-items-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 18px;
}

.ordresult-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #2b2d42;
  text-align: center;
  padding: 16px 18px 0;
  margin: 0 0 4px;
}

/* --- ردیف‌های اطلاعاتی --- */
.ordresult-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  font-size: 14px;
}

.ordresult-row:not(:last-child) {
  border-bottom: 1px solid #f1f3f5;
}

.ordresult-row-label {
  color: #868e96;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 12px;
}

.ordresult-row-value {
  color: #2b2d42;
  font-weight: 600;
  flex-shrink: 0;
  text-align: left;
}

.ordresult-row-mono {
  font-family: monospace;
  letter-spacing: 0.5px;
  direction: ltr;
  font-size: 13px;
}

.ordresult-row-price {
  color: var(--emx-indigo-600, #4f46e5);
  font-weight: 700;
}

/* --- دکمه پروفایل --- */
.ordresult-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.ordresult-profile-btn ion-icon {
  font-size: 20px;
}

.ordresult-profile-btn:active {
  background: var(--emx-indigo-600, #4f46e5);
}
/* ============================================
   💳 صفحه چک‌اوت / پیش‌فاکتور (Checkout)
   ============================================ */

.checkout-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 16px 16px 40px;
}

/* --- کارت محصول --- */
.checkout-product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.checkout-product-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.checkout-product-info {
  flex: 1;
  min-width: 0;
}

.checkout-product-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b2d42;
  margin: 0;
  line-height: 1.8;
}

/* --- باکس روش پرداخت --- */
.checkout-payment-card {
  background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.checkout-payment-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--emx-indigo-600, #4f46e5);
  margin: 0 0 12px;
}

.checkout-payment-heading ion-icon {
  font-size: 20px;
}

.checkout-payment-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.8;
  text-align: justify;
  margin: 0 0 16px;
}

.checkout-payment-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.checkout-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  font-size: 14px;
}

.checkout-payment-row:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

.checkout-payment-label {
  color: #9ca3af;
  font-weight: 500;
  flex-shrink: 0;
}

.checkout-payment-value {
  color: #1f2937;
  font-weight: 600;
  text-align: left;
}

.checkout-payment-mono {
  font-family: monospace;
  letter-spacing: 1px;
  direction: ltr;
}

/* --- جدول فاکتور --- */
.checkout-invoice-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.checkout-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 14px;
}

.checkout-invoice-row:not(:last-child) {
  border-bottom: 1px solid #f1f3f5;
}

.checkout-invoice-label {
  color: #868e96;
  font-weight: 500;
}

.checkout-invoice-value {
  color: #2b2d42;
  font-weight: 600;
}

.checkout-invoice-row--total {
  background: var(--emx-indigo-50, #eef2ff);
}

.checkout-invoice-row--total .checkout-invoice-label {
  color: var(--emx-indigo-600, #4f46e5);
  font-weight: 700;
}

.checkout-invoice-row--total .checkout-invoice-value {
  color: var(--emx-indigo-600, #4f46e5);
  font-weight: 800;
  font-size: 15px;
}
/* ============================================
   📖 صفحه جزئیات درس (Lesson Detail)
   ============================================ */

.lesson-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding-bottom: 40px;
}

/* --- بنر --- */
.lesson-banner {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
}

.lesson-banner-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* --- هدر درس --- */
.lesson-header-card {
  background: #ffffff;
  margin: -24px 16px 0;
  position: relative;
  z-index: 0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.lesson-title {
  font-size: 17px;
  font-weight: 800;
  color: #2b2d42;
  margin: 0 0 6px;
  line-height: 1.8;
}

.lesson-workshop-name {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  margin: 0 0 18px;
}

.lesson-next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  background: var(--emx-emerald-500, #10b981);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.lesson-next-btn ion-icon {
  font-size: 20px;
}

.lesson-next-btn:active {
  background: var(--emx-emerald-600, #059669);
}

/* --- سکشن‌های محتوا --- */
.lesson-section {
  background: #ffffff;
  border-radius: 16px;
  margin: 16px 16px 0;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.lesson-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.lesson-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #2b2d42;
  margin: 0 0 14px;
}

.lesson-section-title ion-icon {
  font-size: 20px;
  color: var(--emx-indigo-500, #6366f1);
}

.lesson-section-header .lesson-section-title {
  margin-bottom: 0;
}

/* --- دکمه دانلود کوچک --- */
.lesson-download-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emx-indigo-500, #6366f1);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--emx-indigo-50, #eef2ff);
  transition: background 0.2s;
  flex-shrink: 0;
}

.lesson-download-sm ion-icon {
  font-size: 16px;
}

.lesson-download-sm:active {
  background: #ddd6fe;
}

/* --- پلیر مدیا --- */
.lesson-media-wrapper {
  margin-bottom: 4px;
}

.lesson-player {
  width: 100%;
  border-radius: 12px;
}

/* --- کارت بوکمارک‌ها --- */
.lesson-bookmarks-card {
  margin-top: 18px;
  background: #f9fafb;
  border: 1px solid var(--emx-indigo-200, #c7d2fe);
  border-radius: 14px;
  padding: 24px 14px 14px;
  position: relative;
}

.lesson-bookmarks-badge {
  position: absolute;
  top: -14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.lesson-bookmarks-badge ion-icon {
  font-size: 14px;
}

.lesson-bookmarks-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- آیتم بوکمارک --- */
.lesson-bookmark-item {
  padding: 8px 4px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  line-height: 1.8;
}

.lesson-bookmark-item:active {
  background: #f3f4f6;
}

.lesson-bookmark-item--active {
  color: var(--emx-emerald-600, #059669);
}

.lesson-bookmark-item--active .lesson-bookmark-time {
  background: var(--emx-emerald-500, #10b981);
}

.lesson-bookmark-time {
  display: inline-block;
  width: 54px;
  text-align: center;
  font-size: 11px;
  padding: 4px 2px;
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
  border-radius: 8px;
  margin-left: 10px;
  font-family: monospace;
  letter-spacing: 0.5px;
  direction: ltr;
}

.prevent-select {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* --- باکس اشتراک‌گذاری --- */
.lesson-share-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  animation: lessonSlideDown 0.3s ease;
}

.lesson-share-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-share-url {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 12px;
  direction: ltr;
  text-align: left;
  background: #ffffff;
  font-family: monospace;
}

.lesson-btn-copy {
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.lesson-btn-copy:active {
  background: var(--emx-indigo-600, #4f46e5);
}

@keyframes lessonSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- متن درس --- */
.lesson-text-content {
  font-size: 14px;
  color: #374151;
  line-height: 2;
  word-break: break-word;
}

.lesson-text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --- دکمه دانلود پیوست --- */
.lesson-attach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.lesson-attach-btn ion-icon {
  font-size: 20px;
}

.lesson-attach-btn:active {
  background: var(--emx-indigo-600, #4f46e5);
}

/* --- Toast درس --- */
.lesson-toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.lesson-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* ============================================
   📖 صفحه واژه‌نامه (Vocabulary / Glossary)
   ============================================ */

.vocab-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 16px 16px 40px;
}

/* --- جستجو --- */
.vocab-search-wrapper {
  margin-bottom: 16px;
}

.vocab-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color 0.2s;
}

.vocab-search-box:focus-within {
  border-color: var(--emx-indigo-400, #818cf8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.vocab-search-icon {
  font-size: 20px;
  color: #9ca3af;
  flex-shrink: 0;
}

.vocab-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  font-family: inherit;
  color: #374151;
}

.vocab-search-input::placeholder {
  color: #9ca3af;
}

/* --- لیست واژه‌ها --- */
.vocab-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- کارت واژه --- */
.vocab-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.vocab-card--open {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* --- هدر (کلیک‌پذیر) --- */
.vocab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.15s;
}

.vocab-header:active {
  background: #f9fafb;
}

.vocab-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vocab-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--emx-indigo-50, #eef2ff);
  color: var(--emx-indigo-600, #4f46e5);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.vocab-title {
  font-size: 15px;
  font-weight: 700;
  color: #2b2d42;
  line-height: 1.6;
}

.vocab-chevron {
  font-size: 18px;
  color: #9ca3af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.vocab-card--open .vocab-chevron {
  transform: rotate(180deg);
  color: var(--emx-indigo-500, #6366f1);
}

/* --- بدنه (محتوا) --- */
.vocab-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  padding: 0 16px;
  font-size: 14px;
  color: #4b5563;
  line-height: 2;
  text-align: justify;
}

.vocab-card--open .vocab-body {
  max-height: 1200px;
  padding: 0 16px 18px;
}

.vocab-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- حالت خالی --- */
.vocab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.vocab-empty ion-icon {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 12px;
}

.vocab-empty p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}
/* ============================================
   🔍 صفحه نتایج جستجو (Search Results)
   ============================================ */

.search-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 8px 16px 40px;
}

/* --- هدر هر بخش --- */
.search-section {
  margin-bottom: 20px;
}

.search-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #2b2d42;
}

.search-section-header ion-icon {
  font-size: 20px;
  color: var(--emx-indigo-500, #6366f1);
}

.search-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--emx-indigo-50, #eef2ff);
  color: var(--emx-indigo-600, #4f46e5);
  font-size: 12px;
  font-weight: 700;
}

/* --- لیست نتایج --- */
.search-list {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* --- آیتم نتیجه --- */
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

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

.search-item:active {
  background: #f9fafb;
}

.search-item-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b2d42;
  margin: 0 0 4px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-item-meta {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.search-item-date {
  display: block;
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 2px;
  direction: ltr;
  text-align: right;
}

.search-item-arrow {
  font-size: 18px;
  color: #d1d5db;
  flex-shrink: 0;
}

/* --- آیتم بوکمارک --- */
.search-bookmark-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--emx-indigo-50, #eef2ff);
  flex-shrink: 0;
}

.search-bookmark-icon ion-icon {
  font-size: 22px;
  color: var(--emx-indigo-500, #6366f1);
}

/* --- حالت خالی --- */
.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.search-empty ion-icon {
  font-size: 52px;
  color: #d1d5db;
  margin-bottom: 14px;
}

.search-empty p {
  font-size: 15px;
  color: #9ca3af;
  font-weight: 600;
  margin: 0;
}

/* --- مودال پخش بوکمارک --- */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

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

.search-modal {
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh; /* حداکثر ارتفاع مودال */
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  overflow: hidden;
}

.search-modal-overlay--show .search-modal {
  transform: translateY(0);
}

.search-modal-body {
  flex: 1 1 auto;
  overflow-y: auto; /* فقط بدنه اسکرول بشه */
  padding: 16px; /* یا هر مقداری که داری */
}

.search-modal-footer {
  display: flex;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0; /* فوتر همیشه ثابت بمونه */
}

.search-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #2b2d42;
  margin: 0 0 10px;
  line-height: 1.7;
}

.search-modal-text {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 18px;
  line-height: 1.9;
  text-align: right;
}

.search-modal-player-wrapper {
  margin-bottom: 4px;
}

/* .lesson-player بازاستفاده می‌شود — تعریف نشده دوباره */

.search-modal-btn {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.search-modal-btn--primary {
  background: var(--emx-indigo-50, #eef2ff);
  color: var(--emx-indigo-600, #4f46e5);
}

.search-modal-btn--primary:active {
  background: #ddd6fe;
}

.search-modal-btn--secondary {
  background: #ffffff;
  color: #6b7280;
}

.search-modal-btn--secondary:active {
  background: #f9fafb;
}
/* ============================================================
   📄 CONTACT PAGE — صفحه تماس و پشتیبانی
   کلاس‌ها: .contact-*
   وابستگی: emx-tabs (از دیزاین سیستم)
   ============================================================ */

/* --- صفحه کلی --- */
.contact-page {
  padding: 16px;
  padding-bottom: 80px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- تب‌ها (سفارشی‌سازی emx-tabs برای صفحه تماس) --- */
.contact-tabs-wrapper {
  margin-bottom: 0;
}

.contact-tabs-nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--emx-bg-secondary, #f1f5f9);
  border-radius: 16px;
  margin-bottom: 20px;
}

.contact-tabs-nav .emx-tab-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--emx-text-secondary, #64748b);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.contact-tabs-nav .emx-tab-button ion-icon {
  font-size: 18px;
}

.contact-tabs-nav .emx-tab-button.emx-tab-active {
  background: var(--emx-bg-primary, #ffffff);
  color: var(--emx-primary, #6366f1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

/* --- پنل تب‌ها --- */
.contact-tabs-wrapper .emx-tab-panel {
  display: none;
}

.contact-tabs-wrapper .emx-tab-panel.emx-tab-panel-active {
  display: block;
  animation: contactFadeIn 0.3s ease;
}

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

/* --- کارت اطلاعاتی --- */
.contact-info-card {
  background: var(--emx-bg-primary, #ffffff);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--emx-primary, #6366f1),
    var(--emx-primary-dark, #4f46e5)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon ion-icon {
  font-size: 26px;
  color: #ffffff;
}

.contact-info-text {
  font-size: 13.5px;
  line-height: 2;
  color: var(--emx-text-secondary, #64748b);
  margin: 0;
}

/* --- لینک‌های اقدام (ثبت پرسش / پیگیری) --- */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--emx-bg-primary, #ffffff);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--emx-text-primary, #1e293b);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.contact-action-item:active {
  transform: scale(0.98);
  background: var(--emx-bg-secondary, #f1f5f9);
}

.contact-action-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-action-right ion-icon {
  font-size: 22px;
  color: var(--emx-primary, #6366f1);
}

.contact-action-right span {
  font-size: 14px;
  font-weight: 500;
}

.contact-action-arrow {
  font-size: 18px;
  color: var(--emx-text-muted, #94a3b8);
}

/* --- فرم تماس --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--emx-text-primary, #1e293b);
  padding-right: 4px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--emx-border, #e2e8f0);
  border-radius: 12px;
  background: var(--emx-bg-primary, #ffffff);
  font-family: inherit;
  font-size: 14px;
  color: var(--emx-text-primary, #1e293b);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--emx-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--emx-text-muted, #94a3b8);
  font-size: 13px;
}

/* اینپوت‌ با جهت LTR (مثل شماره تلفن) */
.contact-input--ltr {
  direction: ltr;
  text-align: left;
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.8;
}

/* --- دکمه ارسال --- */
.contact-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--emx-primary, #6366f1),
    var(--emx-primary-dark, #4f46e5)
  );
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.contact-submit-btn ion-icon {
  font-size: 18px;
}

.contact-submit-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* ============================================================
   🌙 DARK MODE
   ============================================================ */
.dark-mode .contact-tabs-nav {
  background: var(--emx-bg-secondary-dark, #1e293b);
}

.dark-mode .contact-tabs-nav .emx-tab-button {
  color: var(--emx-text-secondary-dark, #94a3b8);
}

.dark-mode .contact-tabs-nav .emx-tab-button.emx-tab-active {
  background: var(--emx-bg-primary-dark, #0f172a);
  color: var(--emx-primary-light, #818cf8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .contact-info-card,
.dark-mode .contact-action-item {
  background: var(--emx-bg-primary-dark, #0f172a);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .contact-info-text {
  color: var(--emx-text-secondary-dark, #94a3b8);
}

.dark-mode .contact-action-item {
  color: var(--emx-text-primary-dark, #e2e8f0);
}

.dark-mode .contact-action-item:active {
  background: var(--emx-bg-secondary-dark, #1e293b);
}

.dark-mode .contact-label {
  color: var(--emx-text-primary-dark, #e2e8f0);
}

.dark-mode .contact-input,
.dark-mode .contact-textarea {
  background: var(--emx-bg-secondary-dark, #1e293b);
  border-color: var(--emx-border-dark, #334155);
  color: var(--emx-text-primary-dark, #e2e8f0);
}

.dark-mode .contact-input:focus,
.dark-mode .contact-textarea:focus {
  border-color: var(--emx-primary-light, #818cf8);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.dark-mode .contact-input::placeholder,
.dark-mode .contact-textarea::placeholder {
  color: var(--emx-text-muted-dark, #475569);
}

.dark-mode .contact-submit-btn {
  background: linear-gradient(
    135deg,
    var(--emx-primary-light, #818cf8),
    var(--emx-primary, #6366f1)
  );
}
/* ============================================================
   📄 QURAN BOOKMARKS PAGE — لیست نشانه‌گذاری‌های قرآن
   کلاس‌ها: .qbookmark-*
   وابستگی: emx-card, emx-card-hover (از دیزاین سیستم)
   ============================================================ */

/* --- صفحه کلی --- */
.qbookmark-page {
  padding: 16px;
  padding-bottom: 80px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- فیلد جستجو --- */
.qbookmark-search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.qbookmark-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--emx-text-muted, #94a3b8);
  pointer-events: none;
}

.qbookmark-search-input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1.5px solid var(--emx-border, #e2e8f0);
  border-radius: 14px;
  background: var(--emx-bg-primary, #ffffff);
  font-family: inherit;
  font-size: 14px;
  color: var(--emx-text-primary, #1e293b);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}

.qbookmark-search-input:focus {
  border-color: var(--emx-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.qbookmark-search-input::placeholder {
  color: var(--emx-text-muted, #94a3b8);
  font-size: 13px;
}

/* --- لیست بوکمارک‌ها --- */
.qbookmark-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- هر آیتم بوکمارک --- */
.qbookmark-item {
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.qbookmark-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  gap: 12px;
}

.qbookmark-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.qbookmark-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--emx-primary, #6366f1),
    var(--emx-primary-dark, #4f46e5)
  );
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qbookmark-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.qbookmark-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--emx-text-primary, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qbookmark-aya {
  font-size: 12px;
  color: var(--emx-text-secondary, #64748b);
}

.qbookmark-arrow {
  font-size: 18px;
  color: var(--emx-text-muted, #94a3b8);
  flex-shrink: 0;
}

/* --- حالت خالی --- */
.qbookmark-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}

.qbookmark-empty ion-icon {
  font-size: 48px;
  color: var(--emx-text-muted, #94a3b8);
}

.qbookmark-empty p {
  font-size: 14px;
  color: var(--emx-text-secondary, #64748b);
  margin: 0;
}

/* ============================================================
   🌙 DARK MODE
   ============================================================ */
.dark-mode .qbookmark-search-input {
  background: var(--emx-bg-secondary-dark, #1e293b);
  border-color: var(--emx-border-dark, #334155);
  color: var(--emx-text-primary-dark, #e2e8f0);
}

.dark-mode .qbookmark-search-input:focus {
  border-color: var(--emx-primary-light, #818cf8);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.dark-mode .qbookmark-search-input::placeholder {
  color: var(--emx-text-muted-dark, #475569);
}

.dark-mode .qbookmark-search-icon {
  color: var(--emx-text-muted-dark, #475569);
}

.dark-mode .qbookmark-title {
  color: var(--emx-text-primary-dark, #e2e8f0);
}

.dark-mode .qbookmark-aya {
  color: var(--emx-text-secondary-dark, #94a3b8);
}

.dark-mode .qbookmark-arrow {
  color: var(--emx-text-muted-dark, #475569);
}

.dark-mode .qbookmark-number {
  background: linear-gradient(
    135deg,
    var(--emx-primary-light, #818cf8),
    var(--emx-primary, #6366f1)
  );
}

.dark-mode .qbookmark-empty ion-icon {
  color: var(--emx-text-muted-dark, #475569);
}

.dark-mode .qbookmark-empty p {
  color: var(--emx-text-secondary-dark, #94a3b8);
}
/* ============================================
   📖 آیه و نشانک‌ها (Aya & Bookmarks)
   ============================================ */

/* متن آیه در هدر */
.aya-text {
  font-size: 20px;
  line-height: 2;
  padding: 10px 0;
}

/* هدر داخلی کارت نشانک‌ها */
.catlist-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}

.catlist-card-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emx-indigo-50, #eef2ff);
  color: var(--emx-indigo-600, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.catlist-card-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}
/* ============================================
   🔖 صفحه جزئیات نشانک (Bookmark Detail)
   ============================================ */

/* Breadcrumb */
.bkdetail-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.bkdetail-breadcrumb__link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.bkdetail-breadcrumb__link:active {
  color: #ffffff;
}

.bkdetail-breadcrumb__sep {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* دکمه اشتراک */
.bkdetail-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.bkdetail-share-btn {
  display: flex;
  background: none;
  align-items: center;
  border: none;
  font-size: 13px;
  color: #fafafa;
  font-family: iransansfa;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
/* ───── Change Password Page ───── */
.change-password-page {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--emx-indigo-50, #eef2ff) 0%,
    #f8f9ff 100%
  );
  padding: 24px 16px 40px;
  direction: rtl;
}

.change-password-card {
  background: #fff;
  border-radius: var(--emx-radius-xl, 20px);
  box-shadow: var(--emx-shadow-md, 0 4px 24px rgba(79, 70, 229, 0.08));
  padding: 32px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.change-password-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--emx-radius-lg, 16px);
  background: var(--emx-indigo-100, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.change-password-card .card-icon ion-icon {
  font-size: 28px;
  color: var(--emx-indigo-600, #4f46e5);
}

.change-password-card .card-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--emx-indigo-900, #312e81);
  margin-bottom: 4px;
}

.change-password-card .card-subtitle {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 28px;
}

/* ── Form Field ── */
.emx-field {
  margin-bottom: 20px;
}

.emx-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--emx-indigo-700, #4338ca);
  margin-bottom: 8px;
}

.emx-field .input-box {
  position: relative;
}

.emx-field .input-box input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--emx-radius-md, 12px);
  padding: 0 44px 0 16px;
  font-size: 15px;
  direction: ltr;
  text-align: left;
  background: var(--emx-indigo-50, #f8faff);
  color: #1e293b;
  transition: var(--emx-transition, all 0.25s ease);
  outline: none;
}

.emx-field .input-box input:focus {
  border-color: var(--emx-indigo-500, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fff;
}

.emx-field .input-box .field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a5b4fc;
  font-size: 20px;
  pointer-events: none;
}

.emx-field .field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  padding-right: 4px;
}

/* ── Alert ── */
.emx-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--emx-radius-md, 12px);
  padding: 12px 16px;
  font-size: 13px;
  color: #991b1b;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Button ── */
.emx-btn-primary {
  display: block;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: var(--emx-radius-md, 12px);
  background: linear-gradient(
    135deg,
    var(--emx-indigo-600, #4f46e5),
    var(--emx-indigo-500, #6366f1)
  );
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--emx-transition, all 0.25s ease);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
  margin-top: 28px;
}

.emx-btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.18);
}

.bkdetail-share-btn ion-icon {
  font-size: 18px;
}

.bkdetail-share-btn:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* کارت پلیر */
.bkdetail-player-card {
  margin-bottom: 16px;
}

.bkdetail-player-wrapper {
  padding: 12px 16px 16px;
}

.bkdetail-player-wrapper .lesson-player {
  width: 100%;
  border-radius: 12px;
}

/* کارت آیات */
.bkdetail-ayat-card {
  margin-bottom: 16px;
}

.bkdetail-ayat-text {
  display: block;
  font-size: 20px;
  line-height: 2.2;
  text-align: center;
  color: var(--emx-indigo-600, #4f46e5);
  text-decoration: none;
  padding: 8px 0;
}

.bkdetail-ayat-text:active {
  opacity: 0.7;
}

/* آکاردئون دیزاین‌سیستمی */
.emx-accordion {
  padding: 0 16px 8px;
}

.emx-accordion-item {
  border-bottom: 1px solid #f1f3f5;
}

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

.emx-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  transition: color 0.2s;
}

.emx-accordion-header:active {
  color: var(--emx-indigo-600, #4f46e5);
}

.emx-accordion-icon {
  font-size: 16px;
  color: #999;
  transition: transform 0.3s ease;
}

.emx-accordion-active .emx-accordion-icon {
  transform: rotate(180deg);
  color: var(--emx-indigo-600, #4f46e5);
}

.emx-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.emx-accordion-open {
  max-height: 500px;
}

.emx-accordion-body {
  padding: 0 0 14px;
}

/* اینپوت لینک در مودال اشتراک */
.bkdetail-share-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #f1f3f5;
  border-radius: 12px;
  font-size: 12px;
  font-family: monospace;
  text-align: left;
  direction: ltr;
  background: var(--emx-indigo-50, #eef2ff);
  color: #555;
  margin-top: 12px;
  box-sizing: border-box;
}

/* دکمه‌های مودال اشتراک */
.bkdetail-btn-share {
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
}

.bkdetail-btn-copy {
  background: var(--emx-indigo-700, #4338ca);
  color: #ffffff;
}

.bkdetail-btn-share ion-icon,
.bkdetail-btn-copy ion-icon {
  font-size: 16px;
  margin-left: 4px;
  vertical-align: middle;
}

.bkdetail-modal-close-wrapper {
  padding: 0 20px 16px;
}

.bkdetail-btn-close {
  width: 100%;
  background: #f1f3f5;
  color: #666;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.bkdetail-btn-close:active {
  background: #e5e7eb;
}

/* Toast سیستمی */
.emx-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emx-indigo-700, #4338ca);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: bottom 0.3s ease;
  text-align: center;
}

.emx-toast-show {
  bottom: 30px;
}
/* ============================================
   🏠 صفحه اصلی — Home Page
   ============================================ */

/* ---- Home Widget (Section wrapper) ---- */
.emx-home-widget {
  padding: 0 16px;
  margin-bottom: 20px;
}

/* ---- Section Header ---- */
.emx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
}

.emx-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.emx-section-title__icon {
  font-size: 20px;
  color: var(--emx-indigo-500, #6366f1);
}

.emx-section-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--emx-indigo-500, #6366f1);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--emx-indigo-50, #eef2ff);
  transition: background 0.2s;
}

.emx-section-action:active {
  background: var(--emx-indigo-100, #e0e7ff);
}

.emx-section-body {
  /* wrapper for content */
}

/* ============================================
   🔘 دکمه‌های دسترسی سریع — Quick Access Grid
   ============================================ */
.home-quick-access {
  padding: 0 16px;
  padding-top: 25px;
  padding-bottom: 25px;
}

.home-quick-access__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.home-quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #f1f3f5;
  border-radius: 14px;
  padding: 3px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: homeGridFadeIn 0.35s ease-out forwards;
}

.home-quick-btn:nth-child(1) {
  animation-delay: 0.03s;
}
.home-quick-btn:nth-child(2) {
  animation-delay: 0.06s;
}
.home-quick-btn:nth-child(3) {
  animation-delay: 0.09s;
}
.home-quick-btn:nth-child(4) {
  animation-delay: 0.12s;
}
.home-quick-btn:nth-child(5) {
  animation-delay: 0.15s;
}
.home-quick-btn:nth-child(6) {
  animation-delay: 0.18s;
}
.home-quick-btn:nth-child(7) {
  animation-delay: 0.21s;
}
.home-quick-btn:nth-child(8) {
  animation-delay: 0.24s;
}

@keyframes homeGridFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-quick-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border-color: var(--emx-indigo-300, #a5b4fc);
}

.home-quick-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--emx-indigo-50, #eef2ff);
  flex-shrink: 0;
}

.home-quick-btn__icon ion-icon {
  font-size: 20px;
  color: var(--emx-indigo-500, #6366f1);
}

.home-quick-btn__label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
}

/* ============================================
   🎞 اسلایدر ویجت دوره‌ها — Workshop Slider
   ============================================ */
.home-slider {
  padding: 0;
}

.home-slider .splide__slide {
  padding: 0 4px;
}

/* Workshop Slide Card */
.workshop-slide-card {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.workshop-slide-card:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.workshop-slide-card__media {
  position: relative;
  overflow: hidden;
}

.workshop-slide-card__img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.workshop-slide-card__badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--emx-indigo-500, #6366f1);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.workshop-slide-card__title {
  padding: 10px 12px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   📖 کارت واژه‌نامه — Vocabulary Card
   ============================================ */
.home-vocab-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f3f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.home-vocab-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}

.home-vocab-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--emx-indigo-500, #6366f1),
    var(--emx-indigo-600, #4f46e5)
  );
  flex-shrink: 0;
}

.home-vocab-card__icon ion-icon {
  font-size: 18px;
  color: #ffffff;
}

.home-vocab-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.home-vocab-card__body {
  padding: 12px 16px 16px;
}

.home-vocab-card__text {
  font-size: 13px;
  line-height: 2;
  color: #555;
  text-align: justify;
  margin: 0;
}

.home-vocab-card__text p {
  margin: 0 0 8px;
}

.home-vocab-card__text p:last-child {
  margin-bottom: 0;
}
.home-blog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-blog-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--emx-card-bg, #ffffff);
  border-radius: var(--emx-radius-lg, 14px);
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.home-blog-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* تصویر */
.home-blog-card__img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--emx-radius-md, 12px);
  overflow: hidden;
}

.home-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* متن */
.home-blog-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-blog-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--emx-text-primary, #1a1a2e);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--emx-text-muted, #8e8ea9);
}

.home-blog-card__cat ion-icon {
  font-size: 13px;
}

/* فلش */
.home-blog-card__arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--emx-text-muted, #c4c4c4);
  margin-inline-start: auto;
}

/* ============================================
   🏠 Homepage Widget Container (مشترک)
   ============================================ */

.emx-home-widget {
  padding: 8px 16px 16px;
}

.emx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

.emx-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--emx-text-primary, #1a1a2e);
  margin: 0;
}

.emx-section-title__icon {
  font-size: 20px;
  color: var(--emx-primary, #1a73e8);
}

.emx-section-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--emx-primary, #1a73e8);
  text-decoration: none;
  white-space: nowrap;
}

.emx-section-body {
  /* container for widget content */
}
/* ============================================
   📂 Blog Category Section (صفحه دسته‌بندی)
   ============================================ */

.blog-cat-section {
  padding: 0 16px 8px;
}

.blog-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-cat-list__item {
  border-bottom: 1px solid var(--emx-border, rgba(0, 0, 0, 0.05));
}

.blog-cat-list__item:last-child {
  border-bottom: none;
}

.blog-cat-list__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--emx-text-primary, #1a1a2e);
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-cat-list__link:active {
  background: var(--emx-bg-hover, rgba(26, 115, 232, 0.06));
}

.blog-cat-list__arrow {
  font-size: 14px;
  color: var(--emx-text-muted, #8e8ea9);
}

/* ============================================
   📰 Blog Posts Section (لیست مطالب)
   ============================================ */

.blog-posts-section {
  padding: 16px 16px 24px;
}

.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-post-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--emx-card-bg, #ffffff);
  border-radius: var(--emx-radius-lg, 14px);
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-post-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.blog-post-card__img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--emx-radius-md, 12px);
  overflow: hidden;
}

.blog-post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-post-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--emx-text-primary, #1a1a2e);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-post-card__cat,
.blog-post-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--emx-text-muted, #8e8ea9);
}

.blog-post-card__cat ion-icon,
.blog-post-card__date ion-icon {
  font-size: 13px;
}

.blog-post-card__arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--emx-text-muted, #c4c4c4);
  margin-inline-start: auto;
}

/* ============================================
   📄 Post Detail Page (جزئیات پست)
   ============================================ */

.post-detail-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.post-detail-banner__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-detail-banner__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--emx-bg, #f1f1f5), transparent);
  pointer-events: none;
}

/* کارت محتوا */
.post-detail-content {
  position: relative;
  margin-top: -24px;
  padding: 24px 18px 32px;
  background: var(--emx-card-bg, #ffffff);
  border-radius: var(--emx-radius-xl, 18px) var(--emx-radius-xl, 18px) 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.post-detail-content__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--emx-text-primary, #1a1a2e);
  line-height: 1.8;
  margin: 0 0 12px;
}

.post-detail-content__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--emx-border, rgba(0, 0, 0, 0.06));
}

.post-detail-content__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--emx-text-muted, #8e8ea9);
}

.post-detail-content__meta-item ion-icon {
  font-size: 15px;
}

/* پلیر صوتی */
.post-detail-audio {
  background: var(--emx-bg-secondary, #f8f5ff);
  border-radius: var(--emx-radius-md, 12px);
  padding: 14px;
  margin-bottom: 20px;
}

.post-detail-audio__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--emx-primary, #1a73e8);
  margin-bottom: 10px;
}

.post-detail-audio__label ion-icon {
  font-size: 18px;
}

.post-detail-audio__player {
  width: 100%;
}

/* استایل Plyr سفارشی */
.post-detail-audio .plyr--audio .plyr__controls {
  background: transparent !important;
  border-radius: var(--emx-radius-sm, 8px);
}

/* محتوای متنی */
.post-detail-content__text {
  font-size: 15px;
  line-height: 2;
  color: var(--emx-text-secondary, #4a4a68);
  text-align: justify;
  direction: rtl;
  word-break: break-word;
}

.post-detail-content__text img {
  width: 100%;
  height: auto !important;
  border-radius: var(--emx-radius-md, 12px);
  margin: 12px 0;
}

.post-detail-content__text h2,
.post-detail-content__text h3,
.post-detail-content__text h4 {
  color: var(--emx-text-primary, #1a1a2e);
  font-weight: 800;
  margin: 20px 0 10px;
  line-height: 1.7;
}

.post-detail-content__text p {
  margin: 0 0 14px;
}

.post-detail-content__text a {
  color: var(--emx-primary, #1a73e8);
  text-decoration: underline;
}

.post-detail-content__text blockquote {
  border-right: 4px solid var(--emx-primary, #1a73e8);
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--emx-bg-secondary, #f8f5ff);
  border-radius: 0 var(--emx-radius-sm, 8px) var(--emx-radius-sm, 8px) 0;
  font-style: italic;
  color: var(--emx-text-secondary, #4a4a68);
}

.post-detail-content__text ul,
.post-detail-content__text ol {
  padding-right: 20px;
  margin: 12px 0;
}

.post-detail-content__text li {
  margin-bottom: 6px;
}

/* ============================================
   🚫 Empty State (حالت خالی — مشترک)
   ============================================ */

.emx-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
}

.emx-empty-state__icon {
  font-size: 56px;
  color: var(--emx-text-muted, #c4c4c4);
  margin-bottom: 12px;
}

.emx-empty-state__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--emx-text-muted, #8e8ea9);
  margin: 0;
}
/* ============================================
   📂 Accordion – Design System (emx-accordion)
   ============================================ */

.emx-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emx-accordion-item {
  background: var(--emx-card-bg, #ffffff);
  border-radius: var(--emx-radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.emx-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: var(--emx-card-bg, #ffffff);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--emx-text-primary, #1a1a2e);
  transition: background 0.2s ease;
}

.emx-accordion-header:active {
  background: var(--emx-bg-hover, rgba(26, 115, 232, 0.04));
}

.emx-accordion-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emx-accordion-header__icon {
  font-size: 20px;
  color: var(--emx-primary, #1a73e8);
}

.emx-accordion-icon {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--emx-text-muted, #8e8ea9);
  transition: transform 0.3s ease;
}

.emx-accordion-active .emx-accordion-icon {
  transform: rotate(180deg);
}

.emx-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.emx-accordion-open {
  max-height: 500px;
}

.emx-accordion-body {
  padding: 0 16px 14px;
}

/* ============================================
   📂 Blog Category List
   ============================================ */

.blog-cat-section {
  padding: 0 16px 8px;
}

.blog-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-cat-list__item {
  border-bottom: 1px solid var(--emx-border, rgba(0, 0, 0, 0.05));
}

.blog-cat-list__item:last-child {
  border-bottom: none;
}

.blog-cat-list__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--emx-text-primary, #1a1a2e);
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-cat-list__link:active {
  background: var(--emx-bg-hover, rgba(26, 115, 232, 0.06));
}

.blog-cat-list__arrow {
  font-size: 14px;
  color: var(--emx-text-muted, #8e8ea9);
}

/* ============================================
   📰 Blog Post List & Card
   ============================================ */

.blog-posts-section {
  padding: 16px 16px 24px;
}

.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-post-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--emx-card-bg, #ffffff);
  border-radius: var(--emx-radius-lg, 14px);
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-post-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.blog-post-card__img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--emx-radius-md, 12px);
  overflow: hidden;
}

.blog-post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-post-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--emx-text-primary, #1a1a2e);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-post-card__cat,
.blog-post-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--emx-text-muted, #8e8ea9);
}

.blog-post-card__cat ion-icon,
.blog-post-card__date ion-icon {
  font-size: 13px;
}

.blog-post-card__arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--emx-text-muted, #c4c4c4);
  margin-inline-start: auto;
}
/* ============================================
   🎓 Workshop List & Card
   ============================================ */

.emx-workshop-list-section {
  padding: 16px;
}

.workshop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workshop-card {
  display: flex;
  background: var(--emx-card-bg, #fff);
  border-radius: var(--emx-radius-lg, 16px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s;
}

.workshop-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.workshop-card__image {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border-radius: var(--emx-radius-md, 12px);
  margin: 10px;
}

.workshop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workshop-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 10px 10px 0;
}

.workshop-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--emx-text-primary, #1a1a2e);
  margin-bottom: 6px;
  line-height: 1.5;
}

.workshop-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--emx-text-muted, #8e8ea9);
}

.workshop-card__meta ion-icon {
  font-size: 14px;
}

.workshop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.workshop-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--emx-primary, #1a73e8);
}

.workshop-card__price-free {
  color: var(--emx-success, #00c853);
  font-weight: 700;
}

.workshop-card__progress {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 110px;
}

.workshop-card__progress-text {
  font-size: 12px;
  color: var(--emx-text-muted, #8e8ea9);
  flex-shrink: 0;
}

.workshop-card__progress-bar {
  flex: 1;
  height: 6px;
  background: var(--emx-bg-muted, #e9ecef);
  border-radius: 4px;
  overflow: hidden;
}

.workshop-card__progress-fill {
  height: 100%;
  background: var(--emx-warning, #ffb300);
  border-radius: 4px;
  transition: width 0.3s ease;
}
/* ───── Sidebar Redesign Colors ───── */

/* Offcanvas panel background */
#sidebarPanel .offcanvas-body {
  background: var(--emx-indigo-50, #eef2ff);
  padding: 0;
}

/* Profile Box - gradient like bkdetail-hero */
#sidebarPanel .profileBox {
  background: linear-gradient(
    145deg,
    var(--emx-indigo-800, #3730a3) 0%,
    var(--emx-indigo-700, #4338ca) 30%,
    var(--emx-indigo-500, #6366f1) 70%,
    var(--emx-indigo-400, #818cf8) 100%
  );
  padding: 28px 20px 24px;
  border-radius: 0 0 var(--emx-radius-lg, 20px) var(--emx-radius-lg, 20px);
  box-shadow: 0 6px 24px rgba(67, 56, 202, 0.25);
  position: relative;
  overflow: hidden;
}

/* Decorative orb on profile box */
#sidebarPanel .profileBox::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -30px;
  left: -30px;
  pointer-events: none;
}

#sidebarPanel .profileBox::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -20px;
  right: 10px;
  pointer-events: none;
}

#sidebarPanel .profileBox .image-wrapper img {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--emx-radius-sm, 12px);
}

#sidebarPanel .profileBox .in strong {
  color: #ffffff;
  font-size: 15px;
}

#sidebarPanel .profileBox .in a {
  color: var(--emx-indigo-100, #e0e7ff) !important;
  font-size: 13px;
  margin-top: 6px !important;
  transition: var(--emx-transition);
}

#sidebarPanel .profileBox .in a:hover {
  color: #ffffff !important;
}

#sidebarPanel .close-sidebar-button ion-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  transition: var(--emx-transition);
}

#sidebarPanel .close-sidebar-button:hover ion-icon {
  color: #ffffff;
}

/* ── Menu List ── */
#sidebarPanel .listview {
  padding: 12px 14px;
}

#sidebarPanel .listview li {
  margin-bottom: 4px;
}

#sidebarPanel .listview li a.item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--emx-radius-sm, 12px);
  color: var(--emx-indigo-800, #3730a3);
  font-size: 14px;
  font-weight: 500;
  transition: var(--emx-transition);
  text-decoration: none;
}

#sidebarPanel .listview li a.item:hover,
#sidebarPanel .listview li a.item:active {
  background: var(--emx-indigo-100, #e0e7ff);
  color: var(--emx-indigo-700, #4338ca);
}

#sidebarPanel .listview li a.item .icon-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--emx-radius-sm, 12px);
  background: #ffffff;
  box-shadow: var(--emx-shadow-card, 0 4px 16px rgba(0, 0, 0, 0.04));
  margin-left: 12px !important;
  flex-shrink: 0;
  transition: var(--emx-transition);
}

#sidebarPanel .listview li a.item .icon-box ion-icon {
  font-size: 20px;
  color: var(--emx-indigo-500, #6366f1);
  transition: var(--emx-transition);
}

#sidebarPanel .listview li a.item:hover .icon-box {
  background: var(--emx-indigo-500, #6366f1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

#sidebarPanel .listview li a.item:hover .icon-box ion-icon {
  color: #ffffff;
}

/* ── Sidebar Buttons Footer ── */
#sidebarPanel .sidebar-buttons {
  background: #ffffff;
  border-top: 1px solid var(--emx-indigo-100, #e0e7ff);
  padding: 12px 16px;
}
/* --- دکمه بارگذاری بیشتر --- */
.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  background: var(--emx-indigo-50, #eef2ff);
  color: var(--emx-indigo-600, #4f46e5);
  transition:
    background 0.2s,
    transform 0.15s;
}

.load-more-btn:active {
  background: var(--emx-indigo-100, #e0e7ff);
  transform: scale(0.97);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* انیمیشن چرخش آیکون لودینگ */
.spin-icon {
  animation: spin 0.8s linear infinite;
}

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

/* آکاردئون دسته‌بندی ورکشاپ‌ها */
#categories-accordion.emx-accordion {
  padding: 0;
}

#categories-accordion .emx-accordion-item {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 3px;
  border-bottom: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

#categories-accordion .emx-accordion-header {
  padding: 16px 20px;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

#categories-accordion .emx-accordion-header:hover {
  background: #f8f9fa;
}

#categories-accordion .emx-accordion-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

#categories-accordion .emx-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 10px;
}

#categories-accordion .emx-accordion-active .emx-accordion-icon {
  transform: rotate(-90deg);
  color: var(--emx-indigo-600, #4f46e5);
}

#categories-accordion .emx-accordion-icon {
  font-size: 18px;
  color: #999;
  transition:
    transform 0.3s,
    color 0.3s;
}
