/* ==================================================================
   استایل‌های «بانک پرامپت، ابزارها و مقالات»
   فقط در صفحه‌های همین سه بخش لود می‌شود؛ app.css دست‌نخورده است.
   پیشوندها: lx- (مشترک) · pb- (بانک پرامپت) · tl- (ابزارها) · ar- (مقالات)
   ================================================================== */

/* ------------------------------------------------------------ پایه */
.lucide { flex: none; display: block; }
.lx-flip { transform: scaleX(-1); }
.lx-tile {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(145deg, color-mix(in oklch, var(--accent) 22%, transparent), color-mix(in oklch, var(--accent-2) 12%, transparent));
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
}
.lx-tile--lg { width: 54px; height: 54px; border-radius: 16px; }
.lx-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.is-done { background: var(--success); border-color: var(--success); color: #fff; }

/* ------------------------------------------------------------ هیرو */
.lx-hero { padding-block: 34px 6px; }
.lx-hero__row { display: flex; align-items: flex-start; gap: 16px; }
.lx-hero h1 { margin: 0 0 8px; font-size: clamp(27px, 4.6vw, 38px); line-height: 1.35; }
.lx-hero__lead { margin: 0; color: var(--fg-muted); line-height: 2; max-width: 64ch; }
.lx-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; list-style: none; padding: 0; color: var(--fg-muted); font-size: 13.5px; }
.lx-points li { display: inline-flex; align-items: center; gap: 6px; }
.lx-points .lucide { color: var(--accent); }
@media (max-width: 560px) { .lx-hero__row > .lx-tile { display: none; } .lx-points { font-size: 12.5px; gap: 6px 14px; } }

/* ------------------------------------------------------ نوار ابزار */
.lx-toolbar {
  position: sticky; top: 64px; z-index: 30; margin: 20px 0 22px; padding: 12px;
  display: flex; flex-direction: column; gap: 12px;
  background: color-mix(in srgb, var(--bg-base) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
}
.lx-toolbar__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* موبایل و تبلت: نوار ثابت فضای مطالعه را نمی‌گیرد؛ فیلتر قیمت ابزارها در نوار شناور پایین می‌ماند */
@media (max-width: 860px) { .lx-toolbar { position: static; } }
.lx-search { position: relative; flex: 1 1 240px; max-width: 460px; margin: 0; }
.lx-search .input { width: 100%; padding-inline-start: 42px; }
.lx-search > .lucide { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-muted); pointer-events: none; }
.lx-search kbd {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); pointer-events: none;
  font: 600 11px/1 var(--mono); color: var(--fg-muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 7px; background: var(--bg-sunken);
}
.lx-search .input:focus ~ kbd, .lx-search .input:not(:placeholder-shown) ~ kbd { display: none; }
@media (hover: none) { .lx-search kbd { display: none; } }
.lx-count { color: var(--fg-muted); font-size: 13px; margin-inline-start: auto; white-space: nowrap; }
.lx-count b { color: var(--fg); }

.lx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 2px; scroll-padding-inline: 8px; }
.lx-chips::-webkit-scrollbar { display: none; }
.lx-chips .chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none; transition: border-color .2s, color .2s, background-color .2s; }
.lx-chips .chip:hover { border-color: var(--accent); color: var(--fg); }
.lx-chips .chip.is-on, .lx-chips .chip.is-on:hover { color: var(--accent-ink); border-color: var(--accent); }
.lx-chips .chip small { font-size: 11.5px; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--bg-sunken); color: var(--fg-muted); }
.lx-chips .chip.is-on small { background: color-mix(in srgb, var(--accent-ink) 16%, transparent); color: var(--accent-ink); }
.lx-chips .chip--saved { border-style: dashed; }

/* سوییچ قیمت */
.lx-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-full); background: var(--bg-sunken); border: 1px solid var(--border); }
.lx-seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--r-full);
  border: 0; background: transparent; color: var(--fg-muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lx-seg button:hover { color: var(--fg); }
.lx-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.lx-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.lx-pager:empty { display: none; }

.lx-save { transition: color .2s, border-color .2s, background-color .2s, transform .15s var(--ease); }
.lx-save.is-on { color: var(--accent); border-color: var(--accent); background: color-mix(in oklch, var(--accent) 12%, var(--bg-overlay)); }
.lx-save:active { transform: scale(.9); }

.lx-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 44px 16px; }
.lx-empty b { color: var(--fg); font-size: 15.5px; }
.lx-empty .lx-tile { margin-bottom: 4px; }
.lx-empty .row { justify-content: center; margin-top: 4px; }

.lx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-muted); margin: 0 0 18px; list-style: none; padding: 0; }
.lx-crumbs a { color: var(--fg-muted); display: inline-flex; align-items: center; gap: 5px; }
.lx-crumbs a:hover { color: var(--accent); opacity: 1; }
.lx-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lx-crumbs li + li::before { content: "/"; opacity: .45; }
.lx-crumbs [aria-current] { color: var(--fg); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.lx-card-link { color: inherit; }
.lx-card-link:hover { color: var(--accent); opacity: 1; }
.lx-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.lx-raise { position: relative; z-index: 1; }

/* ------------------------------------------------------ لایه (مودال) */
.lx-layer { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.lx-layer__backdrop {
  position: absolute; inset: 0; background: color-mix(in srgb, #000 66%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: lx-fade .18s ease;
}
.lx-layer__box {
  position: relative; width: min(900px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-xl); outline: 0;
  box-shadow: 0 30px 80px -24px color-mix(in srgb, #000 75%, transparent); animation: lx-pop .22s var(--ease);
}
.lx-layer__x { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 3; width: 38px; height: 38px; background: color-mix(in srgb, var(--bg-overlay) 88%, transparent); }
.lx-layer.is-leaving .lx-layer__backdrop, .lx-layer.is-leaving .lx-layer__box { opacity: 0; transition: opacity .16s ease; }
@keyframes lx-fade { from { opacity: 0 } }
@keyframes lx-pop { from { opacity: 0; transform: translateY(12px) scale(.985) } }
@media (max-width: 640px) {
  .lx-layer { padding: 0; place-items: end stretch; }
  .lx-layer__box { width: 100%; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; animation: lx-sheet .26s var(--ease); }
  @keyframes lx-sheet { from { transform: translateY(40px); opacity: 0 } }
}

/* ورود / ثبت‌نام */
.lx-gate .lx-layer__box { width: min(430px, 100%); }
.lx-gate__inner { padding: 32px 26px 24px; text-align: center; }
.lx-gate__inner .lx-tile { margin: 0 auto 16px; }
.lx-gate__title { font-size: 20px; margin: 0 0 8px; }
.lx-gate__text { color: var(--fg-muted); margin: 0 auto 20px; line-height: 1.95; font-size: 14.5px; }
.lx-gate__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-gate__hint { display: flex; gap: 7px; align-items: flex-start; justify-content: center; text-align: start; margin: 16px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--fg-muted); max-width: none; }
.lx-gate__hint .lucide { color: var(--accent); margin-top: 3px; }

/* نمایش بزرگ */
.lx-lightbox .lx-layer__box { width: auto; max-width: min(1100px, 100%); background: transparent; border: 0; box-shadow: none; overflow: visible; }
.lx-lightbox__stage { display: grid; place-items: center; cursor: zoom-out; }
.lx-lightbox__stage img, .lx-lightbox__stage video { max-width: 100%; max-height: calc(100dvh - 48px); border-radius: var(--r-lg); display: block; object-fit: contain; background: var(--bg-sunken); }
@media (max-width: 640px) { .lx-lightbox { place-items: center; padding: 12px; } .lx-lightbox .lx-layer__box { border-radius: 0; animation: lx-pop .22s var(--ease); } }

/* ---------------------------------------------------- بانک پرامپت */
.pb-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
@media (max-width: 560px) { .pb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pb-card { position: relative; overflow: hidden; padding: 0; display: flex; flex-direction: column; cursor: pointer; }
.pb-card .media { aspect-ratio: 1 / 1 !important; border: 0; border-radius: 0; }
.pb-card__media { position: relative; }
.pb-card__body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pb-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-title { font-size: 15px; font-weight: 800; line-height: 1.7; margin: 0; }
.pb-open { all: unset; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pb-open:hover { color: var(--accent); }
.pb-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.pb-desc { margin: 0; font-size: 13px; line-height: 1.85; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: none; }
.pb-model { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-muted); min-width: 0; }
.pb-model .lucide { color: var(--accent); }
.pb-model b { color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-model small { flex: none; font-size: 11.5px; }
.pb-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.pb-actions .btn { flex: 1; min-width: 0; }
.pb-actions .icon-btn { width: 40px; height: 40px; }
.pb-corner {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  background: color-mix(in srgb, #000 58%, transparent); color: #fff; border-radius: var(--r-full); padding: 5px 11px;
  font-size: 11.5px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pb-card.is-locked .media > img, .pb-card.is-locked .media > video, .pb-card.is-locked .media__empty { filter: blur(12px) saturate(.75); transform: scale(1.12); }
.pb-veil { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; background: color-mix(in srgb, #000 18%, transparent); }
.pb-veil span {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: color-mix(in srgb, #000 45%, transparent); border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pb-locknote { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 12.5px; color: var(--fg-muted); max-width: none; }
.pb-locknote .lucide { color: var(--accent-2); }
.pb-short { display: none; }
@media (max-width: 560px) {
  .pb-card__body { padding: 11px; gap: 7px; }
  .pb-title { font-size: 13.5px; }
  .pb-desc { -webkit-line-clamp: 2; font-size: 12.5px; }
  .pb-model { font-size: 11.5px; }
  .pb-model small { display: none; }
  .pb-actions { gap: 6px; }
  .pb-actions .btn { height: 38px; padding: 0 8px; font-size: 13px; }
  .pb-actions .icon-btn { width: 38px; height: 38px; }
  .pb-actions .pb-hide-sm { display: none; }
  .pb-long { display: none; }
  .pb-short { display: inline; }
  .pb-corner { font-size: 10.5px; padding: 4px 9px; inset-block-start: 8px; inset-inline-end: 8px; }
}

/* جزئیات پرامپت */
.pb-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 800px) { .pb-detail { grid-template-columns: 1fr; } }
.pb-detail__media { position: relative; background: var(--bg-sunken); }
.pb-detail__media .media { aspect-ratio: 1 / 1 !important; border: 0; border-radius: 0; }
@media (min-width: 801px) { .pb-detail__media { position: sticky; top: 0; align-self: start; } }
.pb-detail__media.is-locked .media > img, .pb-detail__media.is-locked .media > video, .pb-detail__media.is-locked .media__empty { filter: blur(14px) saturate(.75); transform: scale(1.12); }
.pb-zoom { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; z-index: 2; background: color-mix(in srgb, var(--bg-overlay) 85%, transparent); }
.pb-detail__body { padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pb-detail__body h2 { margin: 0; font-size: clamp(19px, 3vw, 23px); line-height: 1.6; padding-inline-end: 34px; }
.pb-detail__body > p { margin: 0; color: var(--fg-muted); line-height: 2; max-width: none; }
.pb-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--fg); margin: 0 0 8px; }
.pb-label .lucide { color: var(--accent); }
.pb-models { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--bg-sunken); font-size: 13px; font-weight: 700; }
.pb-chip--main { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 12%, var(--bg-raised)); }
.pb-chip--main .lucide { color: var(--accent); }
.pb-chip small { font-size: 11px; color: var(--accent); font-weight: 800; }
.pb-code { border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg-sunken); overflow: hidden; }
.pb-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--fg-muted); }
.pb-code pre {
  margin: 0; padding: 14px 16px; max-height: 280px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.9;
  white-space: pre-wrap; word-break: break-word; unicode-bidi: plaintext; text-align: start;
}
.pb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pb-list li { display: flex; gap: 9px; font-size: 14px; line-height: 1.9; color: var(--fg-muted); }
.pb-list .lucide { color: var(--accent); margin-top: 6px; }
.pb-list b { color: var(--fg); }
.pb-detail__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.pb-detail__actions .btn { flex: 1; }
.pb-lockbox { padding: 18px; border-radius: var(--r-lg); border: 1px dashed color-mix(in oklch, var(--accent-2) 55%, var(--border)); background: color-mix(in oklch, var(--accent-2) 8%, var(--bg-raised)); }
.pb-lockbox p { margin: 0 0 14px; color: var(--fg-muted); font-size: 14px; line-height: 1.95; max-width: none; }
.pb-lockbox .row .btn { flex: 1 1 180px; }

.pb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; text-align: start; margin-top: 28px; }
.pb-cta > div { flex: 1 1 260px; }
.pb-cta h3 { margin: 0 0 4px; }
.pb-cta p { margin: 0; }

/* ----------------------------------------------------------- ابزارها */
.tl-hint { display: flex; gap: 7px; align-items: center; margin: -10px 0 16px; font-size: 13px; color: var(--fg-muted); max-width: none; }
.tl-hint[hidden] { display: none; }
.tl-hint .lucide { color: var(--accent); }
.tl-grid { grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 16px; }
@media (max-width: 420px) { .tl-grid { grid-template-columns: 1fr; } }
.tl-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tl-card__head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.tl-logo {
  width: 56px; height: 56px; border-radius: 16px; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--bg-sunken); border: 1px solid var(--border); color: var(--accent);
}
.tl-logo img { width: 100%; height: 100%; object-fit: cover; }
.tl-logo--lg { width: 84px; height: 84px; border-radius: 22px; }
.tl-card h3 { font-size: 16.5px; margin: 0 0 4px; line-height: 1.5; }
.tl-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--fg-muted); }
.tl-sub span { display: inline-flex; align-items: center; gap: 5px; }
.tl-desc { margin: 0; font-size: 14px; line-height: 1.9; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
.tl-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-price--free { background: color-mix(in oklch, var(--success) 18%, transparent); color: var(--success); }
.tl-price--freemium { background: color-mix(in oklch, var(--warning) 18%, transparent); color: var(--warning); }
.tl-price--paid { background: color-mix(in oklch, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.tl-rec { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 1; }
.tl-card:has(.tl-rec) .tl-card__head { padding-inline-end: 104px; }
@media (max-width: 420px) { .tl-card:has(.tl-rec) .tl-card__head { padding-inline-end: 0; padding-top: 24px; } }
.tl-card__foot { display: flex; gap: 8px; margin-top: auto; }
.tl-card__foot .btn { flex: 1; }

.tl-dock {
  position: fixed; inset-inline: 12px; inset-block-end: 14px; z-index: 70; display: none; justify-content: center;
  transform: translateY(140%); transition: transform .28s var(--ease); pointer-events: none;
}
.tl-dock .lx-seg { pointer-events: auto; box-shadow: 0 14px 40px -12px color-mix(in srgb, #000 70%, transparent); background: var(--bg-overlay); }
.tl-dock.is-on { transform: none; }
@media (max-width: 860px) { .tl-dock { display: flex; } }

/* جدول مقایسه */
.tl-grid.is-table { display: block; }
.tl-table-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-raised); }
.tl-table { min-width: 780px; }
.tl-table thead th { font-size: 12.5px; color: var(--fg-muted); font-weight: 800; background: var(--bg-sunken); position: sticky; top: 0; }
.tl-table th, .tl-table td { vertical-align: middle; padding: 12px 14px; }
.tl-table tbody tr:hover { background: color-mix(in oklch, var(--accent) 5%, transparent); }
.tl-table tbody tr:last-child th, .tl-table tbody tr:last-child td { border-bottom: 0; }
.tl-table td { white-space: normal; max-width: 240px; line-height: 1.8; }
.tl-table td.is-empty { color: color-mix(in srgb, var(--fg-muted) 70%, transparent); }
.tl-tname { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; }
.tl-tname:hover { color: var(--accent); opacity: 1; }
.tl-tname .tl-logo { width: 38px; height: 38px; border-radius: 11px; }
.tl-tname span { display: flex; flex-direction: column; gap: 2px; }
.tl-tname small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--success); font-weight: 700; }
.tl-tcat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tl-tcat .lucide { color: var(--accent); }
.tl-tact { text-align: end; }
.tl-tact .btn { gap: 6px; white-space: nowrap; }
@media (max-width: 640px) { .lx-seg--view span { display: none; } .lx-seg--view button { padding: 0 12px; } }

/* جزئیات ابزار */
.tl-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.tl-head h1 { margin: 0 0 8px; font-size: clamp(26px, 4.6vw, 38px); line-height: 1.35; }
.tl-head__main { flex: 1 1 300px; min-width: 0; }
.tl-head__main > p { margin: 12px 0 0; color: var(--fg-muted); line-height: 1.95; max-width: 70ch; }
.tl-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 30px; }
@media (max-width: 980px) { .tl-layout { grid-template-columns: 1fr; } .tl-aside { order: -1; } }
.tl-aside { position: sticky; top: 84px; }
@media (max-width: 980px) { .tl-aside { position: static; } }
.tl-specs { padding: 0; overflow: hidden; }
.tl-specs > h2 { font-size: 16px; margin: 0; padding: 16px 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.tl-specs > h2 .lucide { color: var(--accent); }
.tl-specs h3 { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fg-muted); margin: 0; padding: 14px 18px 2px; font-weight: 800; }
.tl-specs h3 .lucide { color: var(--accent); }
.tl-specs dl { margin: 0; padding: 0 18px 6px; }
.tl-specs dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.tl-specs dl > div:last-child { border-bottom: 0; }
.tl-specs dt { color: var(--fg-muted); flex: 0 1 50%; line-height: 1.7; }
.tl-specs dd { margin: 0; text-align: end; font-weight: 700; line-height: 1.8; min-width: 0; overflow-wrap: anywhere; }
.tl-specs dd.is-empty { color: color-mix(in srgb, var(--fg-muted) 70%, transparent); font-weight: 500; }
.tl-note { display: flex; gap: 8px; margin: 0; padding: 12px 18px; font-size: 12.5px; line-height: 1.9; color: var(--fg-muted); background: var(--bg-sunken); border-top: 1px solid var(--border); max-width: none; }
.tl-note .lucide { margin-top: 4px; color: var(--accent); }
.tl-aside__cta { margin-top: 12px; }
.tl-aside__cta .btn { width: 100%; }
@media (max-width: 980px) { .tl-aside__cta { display: none; } }
.tl-block + .tl-block { margin-top: 32px; }
.tl-block > h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.tl-block > h2 .lucide { color: var(--accent); }
.tl-lead { font-size: 16px; line-height: 2.1; color: color-mix(in srgb, var(--fg) 84%, var(--fg-muted)); margin: 0; max-width: none; }
.tl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tl-gallery button { all: unset; cursor: zoom-in; border-radius: var(--r-md); overflow: hidden; display: block; }
.tl-gallery button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-gallery .media { border-radius: var(--r-md); }
.tl-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.tl-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg-raised); line-height: 1.9; color: var(--fg-muted); }
.tl-steps li::before { content: counter(s, persian); flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in oklch, var(--accent) 16%, transparent); color: var(--accent); font-weight: 800; font-size: 13px; }
.tl-pending { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); border: 1px dashed var(--border); color: var(--fg-muted); font-size: 14px; line-height: 1.9; }
.tl-pending .lucide { color: var(--accent); margin-top: 4px; }
.tl-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }

/* ----------------------------------------------------------- مقالات */
.ar-grid { grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 18px; }
@media (max-width: 420px) { .ar-grid { grid-template-columns: 1fr; } }
.ar-card { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ar-card .media { border: 0; border-radius: 0; aspect-ratio: 16 / 9 !important; }
.ar-card__media { display: block; }
.ar-ph {
  display: grid; place-items: center; color: color-mix(in oklch, var(--accent) 80%, var(--fg));
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in oklch, var(--accent) 26%, transparent), transparent 60%),
    radial-gradient(90% 90% at 10% 100%, color-mix(in oklch, var(--accent-2) 22%, transparent), transparent 60%),
    var(--bg-sunken);
}
.ar-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ar-card h2, .ar-card h3 { font-size: 17px; line-height: 1.75; margin: 0; }
.ar-excerpt { margin: 0; font-size: 14px; line-height: 1.95; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: none; }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--fg-muted); }
.ar-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-tag { font-size: 12px; color: var(--fg-muted); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); }
.ar-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.ar-more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--accent); }
.ar-more:hover { opacity: 1; }
.ar-more .lucide { transition: transform .25s var(--ease); }
.ar-card:hover .ar-more .lucide { transform: translateX(-4px); }
.ar-card .icon-btn { position: relative; z-index: 1; width: 40px; height: 40px; }
.ar-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.ar-card--lead .media { aspect-ratio: 16 / 10 !important; height: 100%; }
.ar-card--lead .ar-card__body { padding: 28px; justify-content: center; gap: 12px; }
.ar-card--lead h2, .ar-card--lead h3 { font-size: clamp(20px, 2.6vw, 26px); }
@media (max-width: 760px) {
  .ar-card--lead { grid-template-columns: 1fr; }
  .ar-card--lead .media { aspect-ratio: 16 / 9 !important; }
  .ar-card--lead .ar-card__body { padding: 16px 18px 18px; }
}

/* صفحهٔ مقاله */
.ar-page { max-width: 800px; }
.ar-head h1 { font-size: clamp(26px, 4.8vw, 38px); line-height: 1.6; margin: 14px 0 12px; }
.ar-lead { font-size: clamp(16px, 2.2vw, 18px); line-height: 2.05; color: var(--fg-muted); margin: 0; max-width: none; }
.ar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ar-cover { margin: 24px 0 4px; }
.ar-cover button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: var(--r-lg); }
.ar-cover .media { border-radius: var(--r-lg); }
.ar-toc { margin: 24px 0 4px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg-raised); }
.ar-toc summary { display: flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; list-style: none; }
.ar-toc summary::-webkit-details-marker { display: none; }
.ar-toc summary .lucide { color: var(--accent); }
.ar-toc summary .lucide-chevron-down { margin-inline-start: auto; color: var(--fg-muted); transition: transform .2s var(--ease); }
.ar-toc[open] summary .lucide-chevron-down { transform: rotate(180deg); }
.ar-toc ol { margin: 12px 0 0; padding-inline-start: 22px; display: grid; gap: 7px; font-size: 14.5px; list-style-type: persian; }
.ar-toc a { color: var(--fg-muted); }
.ar-toc a:hover { color: var(--accent); opacity: 1; }
.ar-prose { max-width: none; font-size: 16.5px; margin-top: 24px; }
.ar-prose p { color: color-mix(in srgb, var(--fg) 84%, var(--fg-muted)); line-height: 2.2; margin: 0 0 1.25em; max-width: none; }
.ar-prose h2 { font-size: clamp(21px, 3vw, 25px); line-height: 1.6; margin: 1.9em 0 .65em; scroll-margin-top: 96px; }
.ar-prose h3 { font-size: 18.5px; margin: 1.6em 0 .5em; scroll-margin-top: 96px; }
.ar-prose ul, .ar-prose ol { padding-inline-start: 22px; line-height: 2.1; color: color-mix(in srgb, var(--fg) 84%, var(--fg-muted)); margin: 0 0 1.25em; }
.ar-prose ol { list-style-type: persian; }
.ar-prose li { margin-bottom: 6px; }
.ar-prose li::marker { color: var(--accent); }
.ar-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ar-prose a.ar-autolink { text-decoration-style: dotted; }
.ar-prose blockquote { margin: 1.5em 0; padding: 14px 18px; border-inline-start: 3px solid var(--accent); background: var(--bg-raised); border-radius: var(--r-md); color: var(--fg-muted); line-height: 2.05; }
.ar-prose figure { margin: 1.7em 0; }
.ar-prose figure img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--border); display: block; cursor: zoom-in; }
.ar-prose figcaption { font-size: 13px; color: var(--fg-muted); text-align: center; margin-top: 8px; }
.ar-prose code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--bg-sunken); border: 1px solid var(--border); unicode-bidi: isolate; }
.ar-sources { margin-top: 32px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg-raised); }
.ar-sources h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.ar-sources h2 .lucide { color: var(--accent); }
.ar-sources ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 14px; line-height: 1.9; list-style-type: persian; }
.ar-sources a { color: var(--fg-muted); overflow-wrap: anywhere; }
.ar-sources a:hover { color: var(--accent); opacity: 1; }
.ar-block { margin-top: 36px; }
.ar-block > h2 { font-size: 20px; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.ar-block > h2 .lucide { color: var(--accent); }
.ar-next__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lx-linkcard {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--bg-raised); color: var(--fg);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.lx-linkcard:hover { border-color: var(--accent); transform: translateY(-2px); opacity: 1; }
.lx-linkcard b { display: block; font-size: 14.5px; line-height: 1.6; }
.lx-linkcard small { color: var(--fg-muted); font-size: 12.5px; }
.lx-linkcard > .lucide:last-child { margin-inline-start: auto; color: var(--fg-muted); }
.ar-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ar-cta > div { flex: 1 1 260px; }
.ar-cta h3 { margin: 0 0 4px; }
.ar-cta p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .lx-layer__backdrop, .lx-layer__box { animation: none !important; }
  .lx-linkcard, .ar-more .lucide, .lx-save, .tl-dock, .lx-seg button { transition: none; }
}

/* مقالات مرتبط در ستون باریک صفحهٔ مقاله: سه کارت کنار هم */
.ar-page .ar-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ar-page .ar-grid .ar-card h3 { font-size: 15.5px; }
/* فاصلهٔ آخرین بلوک صفحه تا فوتر */
.lx-page > section:last-child .ar-block:last-child { margin-bottom: 18px; }
