:root {
  --bg: #050811;
  --bg-soft: #0a0f1d;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --txt: #e5e7eb;
  --txt-2: #9aa3b2;
  --txt-3: #5b6472;
  --blue: #2f7bf6;
  --blue-2: #7eb3f9;
  --violet: #7c3aed;
  --violet-2: #a78bfa;
  --cyan: #22d3ee;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- ریست / پایه ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--txt);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(47, 123, 246, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1d2a4a, #2a1d4a);
  border-radius: 99px;
}

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* پرفورمنس: سکشن‌های پایین صفحه رندر تعلیقی */
.pj-review,
.pj-stats,
.pj-cta,
.tk-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* ---------- Skip link ---------- */
.tk-skip {
  position: fixed;
  top: -60px;
  right: 16px;
  z-index: 10001;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.3s;
}

.tk-skip:focus {
  top: 16px;
}

/* ---------- نوار پیشرفت اسکرول ---------- */
.tk-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 10000;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transform-origin: right center;
  transform: scaleX(0);
  pointer-events: none;
}

/* ==================================================
   NAVBAR (هماهنگ با صفحه اصلی)
================================================== */
.tk-navbar {
  position: fixed;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 9999;
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.tk-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.tk-logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 10px;
}

.tk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tk-nav::-webkit-scrollbar {
  display: none;
}

.tk-link {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  color: #a2a2ab;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.25s,
    color 0.25s;
}

.tk-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tk-link.tk-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tk-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.tk-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}

@media (max-width: 720px) {
  .tk-navbar {
    padding: 8px 12px;
    gap: 10px;
  }

  .tk-link {
    padding: 8px 14px;
    font-size: 13px;
  }

  .tk-cta {
    padding: 9px 16px;
    font-size: 13px;
  }
}

/* ==================================================
   HERO
================================================== */
.pj-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 90px;
  overflow: hidden;
  background:
    radial-gradient(
      800px 400px at 80% 0%,
      rgba(47, 123, 246, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 10% 100%,
      rgba(124, 58, 237, 0.08),
      transparent 60%
    );
}

.pj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 20%,
    transparent 75%
  );
  pointer-events: none;
}

.pj-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.pj-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: var(--txt-2);
}

.pj-breadcrumb a {
  text-decoration: none;
  transition: color 0.3s;
}

.pj-breadcrumb a:hover {
  color: var(--blue-2);
}

.pj-breadcrumb b {
  color: #fff;
}

.pj-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(126, 179, 249, 0.35);
  background: rgba(126, 179, 249, 0.08);
  color: var(--blue-2);
  font-size: 12px;
  letter-spacing: 1.5px;
}

.pj-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-2);
  animation: pk-pulse 2s infinite;
}

@keyframes pk-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(126, 179, 249, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(126, 179, 249, 0);
  }
}

.pj-title {
  font-size: clamp(34px, 6.5vw, 72px);
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
}

.pj-title span {
  background: linear-gradient(90deg, var(--blue-2), var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pj-sub {
  margin: 18px auto 0;
  max-width: 60ch;
  color: var(--txt-2);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 2.1;
}

.pj-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.hs-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s;
}

.hs-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 179, 249, 0.4);
}

.hs-chip b {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 6px 24px rgba(47, 123, 246, 0.4);
}

.hs-chip span {
  font-size: 12.5px;
  color: var(--txt-2);
}

/* ---- بلاب‌ها و ذرات (هماهنگ با صفحه اصلی) ---- */
.tech-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tech-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  will-change: transform;
}

.blob-blue {
  width: 560px;
  height: 560px;
  background: #1d4ed8;
  top: -160px;
  right: -140px;
  animation: blob-drift 16s ease-in-out infinite alternate;
}

.blob-violet {
  width: 480px;
  height: 480px;
  background: #6d28d9;
  bottom: -160px;
  left: -120px;
  animation: blob-drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes blob-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-50px, 40px) scale(1.12);
  }
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particles i {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(126, 179, 249, 0.55);
  box-shadow: 0 0 8px rgba(126, 179, 249, 0.55);
  opacity: 0;
  animation: particle-rise 11s linear infinite;
}

.particles i:nth-child(1) {
  right: 8%;
}

.particles i:nth-child(2) {
  right: 22%;
  animation-delay: 2.2s;
  width: 3px;
  height: 3px;
}

.particles i:nth-child(3) {
  right: 38%;
  animation-delay: 4.5s;
}

.particles i:nth-child(4) {
  right: 55%;
  animation-delay: 1.4s;
  width: 5px;
  height: 5px;
}

.particles i:nth-child(5) {
  right: 72%;
  animation-delay: 6s;
  width: 3px;
  height: 3px;
}

.particles i:nth-child(6) {
  right: 88%;
  animation-delay: 3.4s;
}

@keyframes particle-rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  12% {
    opacity: 0.8;
  }

  85% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-260px);
    opacity: 0;
  }
}

/* ==================================================
   سکشن‌ها — سرتیتر مشترک
================================================== */
.pj-showcase {
  position: relative;
  padding: 100px 0 60px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  color: var(--txt-2);
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-head h2 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.35;
}

.section-head h2 span {
  background: linear-gradient(90deg, var(--blue-2), var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head .sub {
  color: var(--txt-2);
  font-size: 14.5px;
  margin-top: 12px;
}

/* ==================================================
   نوار ابزار: جستجو + فیلتر
================================================== */
.pj-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.015)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pj-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  max-width: 340px;
}

.pj-search svg {
  position: absolute;
  right: 14px;
  width: 17px;
  height: 17px;
  color: var(--txt-3);
  pointer-events: none;
}

.pj-search input {
  width: 100%;
  padding: 11px 42px 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt);
  font: inherit;
  font-size: 13.5px;
  transition:
    border-color 0.3s,
    background 0.3s;
}

.pj-search input::placeholder {
  color: var(--txt-3);
}

.pj-search input:focus {
  outline: none;
  border-color: rgba(126, 179, 249, 0.5);
  background: rgba(47, 123, 246, 0.06);
}

.pj-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pj-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.pj-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pj-pill.is-active {
  background: linear-gradient(90deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(47, 123, 246, 0.6);
}

.pj-count {
  color: var(--txt-3);
  font-size: 12.5px;
  font-weight: 600;
}

/* ==================================================
   گرید پروژه‌ها + کارت
================================================== */
.pj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pj-card.is-featured {
  grid-column: span 2;
}

.pj-card {
  --mx: 50%;
  --my: 50%;
  --spot: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s,
    box-shadow 0.5s;
}

/* نور اسپات‌لایت زیر موس */
.pj-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    300px 300px at var(--mx) var(--my),
    rgba(126, 179, 249, 0.16),
    rgba(124, 58, 237, 0.08) 45%,
    transparent 70%
  );
  opacity: var(--spot);
  transition: opacity 0.4s;
}

/* لبهٔ نورانی */
.pj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: radial-gradient(
    180px 180px at var(--mx) var(--my),
    rgba(165, 200, 255, 0.7),
    transparent 65%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--spot);
  transition: opacity 0.4s;
}

@media (hover: hover) {
  .pj-card:hover {
    --spot: 1;
    transform: translateY(-8px);
    border-color: rgba(126, 179, 249, 0.38);
    box-shadow:
      0 10px 30px -12px rgba(0, 0, 0, 0.55),
      0 28px 70px -30px rgba(47, 123, 246, 0.5);
  }
}

/* ---------- کاور: ماکاپ مرورگر ---------- */
.pj-cover {
  --ac: 47 123 246;
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(var(--ac), 0.22), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(var(--ac), 0.16), transparent 60%),
    linear-gradient(140deg, #0e1730, #0a0f1d 55%, #101b3a);
}

.cover-a {
  --ac: 47 123 246;
}

.cover-b {
  --ac: 124 58 237;
}

.cover-c {
  --ac: 34 211 238;
}

.cover-d {
  --ac: 244 63 94;
}

.cover-e {
  --ac: 245 158 11;
}

.cover-f {
  --ac: 16 185 129;
}

.cover-g {
  --ac: 99 102 241;
}

.cover-h {
  --ac: 217 70 239;
}

.cover-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -60px;
  left: -60px;
  border-radius: 50%;
  background: rgba(var(--ac), 0.3);
  filter: blur(70px);
  animation: cover-drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cover-drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(60px, 30px) scale(1.15);
  }
}

/* پنجرهٔ مرورگر مینیاتوری */
.cover-browser {
  position: absolute;
  inset: 40px 26px 30px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 29, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.6s var(--ease);
}

.pj-card:hover .cover-browser {
  transform: translateY(-6px) scale(1.03);
}

.cb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cb-dots {
  display: flex;
  gap: 5px;
}

.cb-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.cb-dots i:first-child {
  background: rgba(244, 63, 94, 0.6);
}

.cb-dots i:nth-child(2) {
  background: rgba(245, 158, 11, 0.6);
}

.cb-dots i:nth-child(3) {
  background: rgba(34, 197, 94, 0.6);
}

.cb-url {
  flex: 1;
  padding: 3px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--txt-3);
  font-size: 9px;
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-hero,
.cb-nav i,
.cb-cards i {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.05) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 2.8s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.cb-hero {
  height: 30%;
  border-radius: 8px;
}

.cb-nav {
  display: flex;
  gap: 8px;
}

.cb-nav i {
  height: 8px;
  flex: 1;
  border-radius: 99px;
}

.cb-cards {
  display: flex;
  gap: 10px;
  flex: 1;
}

.cb-cards i {
  flex: 1;
  border-radius: 8px;
}

.pj-card:hover .cb-hero,
.pj-card:hover .cb-nav i,
.pj-card:hover .cb-cards i {
  animation-duration: 1.2s;
}

/* نشان وضعیت */
.pj-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 700;
}

.pj-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.st-live i {
  background: #34d399;
  animation: pk-pulse 2s infinite;
  --c: 52 211 153;
}

.st-live {
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
}

.st-dev i {
  background: #fbbf24;
  animation: pk-pulse 2s infinite;
}

.st-update i {
  background: var(--blue-2);
}

/* ---------- بدنهٔ کارت ---------- */
.pj-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.pj-meta {
  color: var(--txt-3);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.pj-body h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pj-desc {
  color: var(--txt-2);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 16px;
}

.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.pj-tags li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt-2);
  font-size: 10.5px;
  white-space: nowrap;
  transition:
    color 0.3s,
    border-color 0.3s;
}

.pj-card:hover .pj-tags li {
  color: #d1d5db;
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- دکمه‌ها ---------- */
.pj-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(47, 123, 246, 0.55);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.btn-primary svg {
  width: 15px;
  height: 15px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(47, 123, 246, 0.75);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.3s,
    color 0.3s,
    background 0.3s,
    transform 0.3s;
}

.btn-ghost svg {
  width: 14px;
  height: 14px;
}

.btn-ghost:hover {
  border-color: rgba(126, 179, 249, 0.5);
  color: #fff;
  background: rgba(47, 123, 246, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 14.5px;
}

/* ---------- کارت مخفی / انیمیشن فیلتر ---------- */
.pj-card.is-hidden {
  display: none;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pj-card.pop {
  animation: popIn 0.5s var(--ease) both;
}

/* ---------- حالت خالی ---------- */
.pj-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--txt-2);
}

.pj-empty svg {
  width: 54px;
  height: 54px;
  color: var(--txt-3);
  margin-bottom: 16px;
}

.pj-empty p {
  margin-bottom: 20px;
  font-size: 15px;
}

.pj-empty button {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(126, 179, 249, 0.4);
  background: rgba(47, 123, 246, 0.1);
  color: var(--blue-2);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}

.pj-empty button:hover {
  background: rgba(47, 123, 246, 0.22);
  color: #fff;
}

/* ==================================================
   بخش «نحوهٔ بازبینی»
================================================== */
.pj-review {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(47, 123, 246, 0.03),
    transparent
  );
}

.rv-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

/* ---- دموی CSS خالص ---- */
.rv-demo {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.rvd-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rvd-title {
  height: 10px;
  width: 70%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 6px;
}

.rvd-side i {
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rvd-side i.on {
  background: linear-gradient(
    160deg,
    rgba(47, 123, 246, 0.25),
    rgba(124, 58, 237, 0.18)
  );
  border-color: rgba(126, 179, 249, 0.45);
}

.rvd-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 15, 29, 0.7);
  overflow: hidden;
}

.rvd-bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rvd-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.rvd-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rvd-hero {
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.05) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 2.8s linear infinite;
}

.rvd-row {
  display: flex;
  gap: 10px;
}

.rvd-row i {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 3.4s linear infinite;
}

.rvd-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--blue-2), transparent);
  box-shadow: 0 0 18px 2px rgba(126, 179, 249, 0.5);
  animation: scan-move 4s ease-in-out infinite alternate;
}

@keyframes scan-move {
  from {
    right: 4%;
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  to {
    right: 96%;
    opacity: 0.4;
  }
}

/* ---- مراحل ---- */
.rv-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.rv-steps::before {
  content: "";
  position: absolute;
  right: 27px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(126, 179, 249, 0.5),
    rgba(124, 58, 237, 0.5),
    rgba(126, 179, 249, 0.15)
  );
}

.rv-step {
  position: relative;
  padding-right: 86px;
  padding-block: 20px;
}

.rv-num {
  position: absolute;
  right: 0;
  top: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(47, 123, 246, 0.2),
    rgba(124, 58, 237, 0.2)
  );
  border: 1px solid rgba(126, 179, 249, 0.45);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow:
    0 8px 24px -6px rgba(47, 123, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition:
    transform 0.4s,
    background 0.4s;
}

.rv-step:hover .rv-num {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  transform: scale(1.1);
}

.rv-step h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.rv-step p {
  color: var(--txt-2);
  font-size: 13.5px;
  line-height: 2;
  max-width: 46ch;
}

/* ==================================================
   آمار
================================================== */
.pj-stats {
  padding: 60px 0 110px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat {
  cursor: default;
}

.stat-num {
  display: inline-block;
  padding: 8px 26px;
  border-radius: 24px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 10px 40px rgba(47, 123, 246, 0.35);
  animation: stat-float 5.5s ease-in-out infinite;
  transition:
    box-shadow 0.45s,
    text-shadow 0.45s;
}

.stat:nth-child(2) .stat-num {
  animation-delay: 1.1s;
}

.stat:nth-child(3) .stat-num {
  animation-delay: 2.2s;
}

.stat:nth-child(4) .stat-num {
  animation-delay: 3.3s;
}

@keyframes stat-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

.stat:hover .stat-num {
  box-shadow:
    0 0 34px rgba(126, 179, 249, 0.45),
    0 18px 70px -14px rgba(47, 123, 246, 0.65);
  text-shadow:
    0 0 1px #fff,
    0 0 14px rgba(165, 200, 255, 0.9);
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--txt-2);
  font-size: 13px;
  font-weight: 600;
}

/* ==================================================
   CTA
================================================== */
.pj-cta {
  padding: 40px 0 120px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 70px 30px;
  border-radius: 26px;
  border: 1px solid rgba(126, 179, 249, 0.25);
  background:
    radial-gradient(
      600px 300px at 50% 0%,
      rgba(47, 123, 246, 0.12),
      transparent 60%
    ),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cta-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(47, 123, 246, 0.25);
  filter: blur(90px);
  animation: blob-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  color: #fff;
  font-weight: 900;
  font-size: clamp(26px, 4.5vw, 46px);
  margin-bottom: 14px;
}

.cta-card h2 span {
  background: linear-gradient(90deg, var(--blue-2), var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-card p {
  position: relative;
  color: var(--txt-2);
  font-size: 15px;
  line-height: 2.1;
  max-width: 52ch;
  margin: 0 auto 32px;
}

.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==================================================
   FOOTER
================================================== */
.tk-footer {
  border-top: 1px solid var(--border);
  background: #04060d;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}

.foot-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.foot-brand p {
  color: var(--txt-2);
  font-size: 13.5px;
  line-height: 2.1;
  max-width: 40ch;
}

.foot-links,
.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-links h4,
.foot-contact h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.foot-links a,
.foot-contact a,
.foot-contact span {
  color: var(--txt-2);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.3s;
}

.foot-links a:hover,
.foot-contact a:hover {
  color: var(--blue-2);
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  text-align: center;
  color: var(--txt-3);
  font-size: 12.5px;
}

/* ==================================================
   مودال پیش‌نمایش (Peer Review)
================================================== */
.pv-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pv-modal[hidden] {
  display: none;
}

.pv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: pv-fade 0.35s ease both;
}

@keyframes pv-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pv-dialog {
  position: relative;
  width: min(1280px, 100%);
  height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #0c1326, #080c17);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: pv-in 0.5s var(--ease) both;
}

@keyframes pv-in {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- هدر ---- */
.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.pv-titles {
  min-width: 0;
}

.pv-titles h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
}

.pv-titles h2::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
  animation: pk-pulse 2s infinite;
  flex-shrink: 0;
}

.pv-url {
  display: inline-block;
  margin-top: 5px;
  color: var(--blue-2);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(126, 179, 249, 0.4);
  transition: color 0.3s;
}

.pv-url:hover {
  color: #a5c8ff;
}

.pv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pv-device {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pv-device button {
  width: 36px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--txt-2);
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}

.pv-device button svg {
  width: 16px;
  height: 16px;
}

.pv-device button:hover {
  color: #fff;
}

.pv-device button.is-active {
  background: linear-gradient(90deg, var(--blue), var(--violet));
  color: #fff;
}

.pv-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s,
    transform 0.3s;
}

.pv-icon-btn svg {
  width: 16px;
  height: 16px;
}

.pv-icon-btn:hover {
  background: rgba(47, 123, 246, 0.18);
  border-color: rgba(126, 179, 249, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.pv-icon-btn.is-spin svg {
  animation: pv-spin 0.7s ease;
}

@keyframes pv-spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ---- نوار پیشرفت بازبینی ---- */
.pv-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.pv-bar {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pv-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  box-shadow: 0 0 12px rgba(47, 123, 246, 0.6);
  transition: width 0.6s var(--ease);
}

.pv-progress p {
  color: var(--txt-2);
  font-size: 12px;
  white-space: nowrap;
}

.pv-badge {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pv-badge[hidden] {
  display: none;
}

/* ---- بدنه: سایدبار + استیج ---- */
.pv-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.pv-side {
  width: 268px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.pv-side-title {
  padding: 14px 18px 10px;
  color: var(--txt-2);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}

.pv-pages {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pv-pages::-webkit-scrollbar {
  width: 6px;
}

.pv-page {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: right;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.pv-page:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pv-page.is-active {
  background: linear-gradient(
    160deg,
    rgba(47, 123, 246, 0.16),
    rgba(124, 58, 237, 0.1)
  );
  border-color: rgba(126, 179, 249, 0.45);
}

.pg-num {
  color: var(--txt-3);
  font-size: 11px;
  font-weight: 800;
  min-width: 22px;
}

.pv-page.is-active .pg-num {
  color: var(--blue-2);
}

.pg-info {
  flex: 1;
  min-width: 0;
}

.pg-info b {
  display: block;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
}

.pg-info small {
  display: block;
  color: var(--txt-3);
  font-size: 10.5px;
  margin-top: 2px;
  direction: ltr;
  text-align: right;
  font-family: ui-monospace, monospace;
}

.pg-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.35s;
}

.pg-check svg {
  width: 10px;
  height: 10px;
}

.pv-page.is-reviewed .pg-check {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.6);
  color: #34d399;
}

.pv-side-note {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--txt-3);
  font-size: 10.5px;
  line-height: 1.9;
}

/* ---- استیج ---- */
.pv-stage {
  position: relative;
  flex: 1;
  display: flex;
  padding: 18px;
  min-width: 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 22px
      22px,
    #070b14;
}

.pv-frameWrap {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.pv-shell {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #f4f6fa;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.8);
  transition:
    width 0.55s var(--ease),
    border-radius 0.55s var(--ease),
    border 0.55s;
}

.pv-frameWrap[data-device="tablet"] .pv-shell {
  width: min(768px, 100%);
  border-radius: 20px;
}

.pv-frameWrap[data-device="mobile"] .pv-shell {
  width: min(390px, 100%);
  border-radius: 28px;
  border: 8px solid #171b26;
}

.pv-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* لودر */
.pv-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(5, 8, 17, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pv-stage.is-loading .pv-loader {
  display: flex;
}

.pv-spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--blue-2);
  animation: pv-rotate 0.9s linear infinite;
}

@keyframes pv-rotate {
  to {
    transform: rotate(360deg);
  }
}

.pv-loader p {
  color: var(--txt-2);
  font-size: 13px;
}

/* هشدار iframe */
.pv-hint {
  position: absolute;
  bottom: 14px;
  right: 50%;
  transform: translate(50%, 10px);
  z-index: 6;
  max-width: 92%;
  padding: 9px 18px;
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.pv-hint.show {
  opacity: 1;
  transform: translate(50%, 0);
}

/* ==================================================
   Toast + دکمه بالا
================================================== */
.tk-toast {
  position: fixed;
  bottom: 26px;
  right: 50%;
  transform: translate(50%, 16px);
  z-index: 10002;
  padding: 13px 26px;
  border-radius: 14px;
  background: rgba(12, 19, 38, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #d1fae5;
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease);
  pointer-events: none;
}

.tk-toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}

.tk-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 19, 38, 0.85);
  color: #cbd5e1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.tk-top svg {
  width: 18px;
  height: 18px;
}

.tk-top:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 179, 249, 0.5);
  color: #fff;
}

/* ==================================================
   Reveal on scroll
================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ==================================================
   ریسپانسیو
================================================== */
@media (max-width: 1100px) {
  .pj-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pj-card.is-featured {
    grid-column: span 2;
  }

  .rv-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 980px) {
  .pj-dialog {
    height: 92vh;
  }

  .pv-body {
    flex-direction: column;
  }

  .pv-side {
    width: 100%;
    border-inline-end: none;
    border-bottom: 1px solid var(--border);
  }

  .pv-pages {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
  }

  .pv-page {
    width: auto;
    flex-shrink: 0;
  }

  .pg-info small {
    display: none;
  }

  .pv-side-note {
    display: none;
  }
}

@media (max-width: 680px) {
  .pj-grid {
    grid-template-columns: 1fr;
  }

  .pj-card.is-featured {
    grid-column: span 1;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 12px;
  }

  .pj-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pj-search {
    max-width: 100%;
  }

  .pj-count {
    text-align: center;
  }

  .pj-hero {
    min-height: auto;
    padding: 130px 20px 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pv-frameWrap[data-device="tablet"] .pv-shell,
  .pv-frameWrap[data-device="mobile"] .pv-shell {
    width: 100%;
    border-width: 1px;
    border-radius: 12px;
  }

  .rv-demo {
    grid-template-columns: 84px 1fr;
  }

  .tk-top {
    bottom: 18px;
    left: 18px;
  }
}

/* ==================================================
   کاهش حرکت
================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
/* ==================================================
منوی همبرگری (هماهنگ با صفحه اصلی)
================================================== */
.tk-nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.tk-burger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.tk-burger:hover {
  background: rgba(255, 255, 255, 0.12);
}
.tk-burger span {
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: #e5e7eb;
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s;
}
.tk-navbar.is-open .tk-burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.tk-navbar.is-open .tk-burger span:nth-child(2) {
  opacity: 0;
}
.tk-navbar.is-open .tk-burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- نوار پایین مودال (قبلی/بعدی + دستگاه) ---------- */
.pv-foot {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.pv-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.pv-nav-btn svg {
  width: 15px;
  height: 15px;
}
.pv-nav-btn:hover {
  background: rgba(47, 123, 246, 0.15);
  border-color: rgba(126, 179, 249, 0.5);
  color: #fff;
}

/* ---------- منوی همبرگری در موبایل ---------- */
@media (max-width: 720px) {
  .tk-burger {
    display: flex;
  }
  .tk-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0s linear 0.3s;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
  }
  .tk-navbar.is-open .tk-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease);
  }
  .tk-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    white-space: normal;
  }
}

/* ---------- مودال پیش‌نمایش: تجربه موبایل ---------- */
@media (max-width: 680px) {
  .pv-modal {
    padding: 0;
  }
  .pv-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
  }
  /* هدر فشرده تک‌خطی */
  .pv-head {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .pv-head .pv-device {
    display: none;
  } /* می‌ره به نوار پایین */
  .pv-titles {
    flex: 1;
    min-width: 0;
  }
  .pv-titles h2 {
    font-size: 13.5px;
    gap: 8px;
  }
  .pv-url {
    font-size: 10.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pv-actions {
    gap: 6px;
  }
  .pv-icon-btn {
    width: 34px;
    height: 34px;
  }
  .pv-progress {
    padding: 8px 12px;
    gap: 10px;
  }
  .pv-progress p {
    font-size: 11px;
  }
  /* صفحات به‌صورت Chip افقی */
  .pv-side-title {
    display: none;
  }
  .pv-pages {
    padding: 8px 12px 10px;
    gap: 8px;
    scroll-snap-type: x proximity;
  }
  .pv-page {
    padding: 8px 14px;
    border-radius: 999px;
    gap: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    scroll-snap-align: center;
  }
  .pg-num {
    min-width: auto;
    font-size: 10px;
  }
  .pg-info b {
    font-size: 12px;
    white-space: nowrap;
  }
  .pg-check {
    width: 16px;
    height: 16px;
  }
  .pv-stage {
    padding: 10px;
  }
  /* نوار پایین فعال */
  .pv-foot {
    display: flex;
  }
}
/* ---------- لوگوی متنی (هماهنگ با صفحه اصلی) ---------- */
.tk-logo {
  gap: 10px;
}
.tk-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 6px 18px -6px rgba(47, 123, 246, 0.6);
  flex-shrink: 0;
}
.tk-logo-text {
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
}
.tk-logo-dot {
  color: var(--blue-2);
}

/* ---------- مودال پیش‌نمایش: تجربه موبایل ---------- */
@media (max-width: 680px) {
  .pv-modal {
    padding: 0;
  }
  .pv-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
  }

  /* هدر فشرده تک‌خطی */
  .pv-head {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .pv-titles {
    flex: 1;
    min-width: 0;
  }
  .pv-titles h2 {
    font-size: 13.5px;
    gap: 8px;
  }
  .pv-url {
    font-size: 10.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pv-actions {
    gap: 6px;
  }
  .pv-icon-btn {
    width: 34px;
    height: 34px;
  }

  /* سوییچر دستگاه می‌ره به نوار پایین؛
     اگه نوار پایین تو HTML نبود، از هدر نمایش داده بشه (حالت fallback) */
  .pv-head .pv-device {
    display: none;
  }
  .pv-dialog:not(:has(.pv-foot)) .pv-head .pv-device {
    display: flex;
  }
  .pv-dialog:not(:has(.pv-foot)) .pv-head {
    flex-wrap: wrap;
  }

  .pv-progress {
    padding: 8px 12px;
    gap: 10px;
  }
  .pv-progress p {
    font-size: 11px;
  }

  /* صفحات به‌صورت Chip افقی */
  .pv-side-title {
    display: none;
  }
  .pv-pages {
    padding: 8px 12px 10px;
    gap: 8px;
    scroll-snap-type: x proximity;
  }
  .pv-page {
    padding: 8px 14px;
    border-radius: 999px;
    gap: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    scroll-snap-align: center;
  }
  .pg-num {
    min-width: auto;
    font-size: 10px;
  }
  .pg-info b {
    font-size: 12px;
    white-space: nowrap;
  }
  .pg-check {
    width: 16px;
    height: 16px;
  }

  .pv-stage {
    padding: 10px;
  }

  /* نوار پایین فعال */
  .pv-foot {
    display: flex;
  }
}
.cb-body {
  position: relative;
}

.cb-shot {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: 0;
  border-radius: 0 0 11px 11px;
  background: #0a0f1d;
  z-index: 1;
}

/* فقط وقتی آدرس عکس واقعاً پر شده نمایش بده */
.cb-shot[src]:not([src=""]) {
  display: block;
}

/* وقتی عکس هست: پشتش کاملاً خالی می‌شه
   (نه skeleton، نه padding، نه هیچ پس‌زمینه‌ای) */
.cb-body:has(.cb-shot[src]:not([src=""])) {
  padding: 0;
  gap: 0;
}
.cb-body:has(.cb-shot[src]:not([src=""])) .cb-hero,
.cb-body:has(.cb-shot[src]:not([src=""])) .cb-nav,
.cb-body:has(.cb-shot[src]:not([src=""])) .cb-cards {
  display: none;
}

/* اختیاری: اگه خواستی نوار بالای پنجره (نقطه‌ها + آدرس) هم
   وقتی عکس هست حذف شه، این خط رو از کامنت دربیار:
.cover-browser:has(.cb-shot[src]:not([src=""])) .cb-bar { display: none; }
.cover-browser:has(.cb-shot[src]:not([src=""])) .cb-shot { border-radius: 11px; }
*/

/* fallback مرورگرهای قدیمی: کلاس has-shot رو دستی به cb-body بده */
.cb-body.has-shot {
  padding: 0;
  gap: 0;
}
.cb-body.has-shot .cb-hero,
.cb-body.has-shot .cb-nav,
.cb-body.has-shot .cb-cards {
  display: none;
}
.cb-body.has-shot .cb-shot {
  display: block;
}
/* ==================================================
   پیش‌نمایش دسکتاپ: رندر با عرض واقعی + کوچک‌نمایی
================================================== */
.pv-shell {
  position: relative;
}

/* مودال رو در مانیتورهای بزرگ، بزرگ‌تر کن تا پیش‌نمایش خوش‌دست‌تر بشه */
@media (min-width: 1400px) {
  .pv-dialog {
    width: min(1560px, 96vw);
    height: min(92vh, 1000px);
  }
}

/* وقتی scale فعاله، iframe دیگه 100% قاب نباشه (JS اندازه‌ش رو می‌ده) */
.pv-iframe.pv-scaled {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}
.pg-info {
  flex: 1;
  min-width: 0;
  overflow: hidden; /* اطمینان اضافه که هیچ چیزی بیرون نمی‌زنه */
}

.pg-info small {
  display: block;
  color: var(--txt-3);
  font-size: 10.5px;
  margin-top: 2px;
  direction: ltr;
  text-align: right;
  font-family: ui-monospace, monospace;

  /* ↓↓↓ همین سه خط مشکل رو حل می‌کنه */
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-all; /* اجازه می‌ده URL از وسط رشته هم بشکنه */
}