/* ============================================
   MR SEDE — استودیو طراحی گرافیک
   تم طلایی/مشکی توسعه‌پذیر
   ============================================
   
   فهرست:
   ۰. فونت محلی Vazirmatn
   ۱. متغیرها و تم‌ها
   ۲. ریست و پایه
   ۳. هدر و ناوبری
   ۴. دکمه‌ها
   ۵. هیرو
   ۶. سکشن‌ها و کارت‌های خدمات
   ۷. نمونه‌کارها (masonry، grid، hscroll)
   ۸. آمار و بنر
   ۹. صفحه جزئیات نمونه‌کار
   ۱۰. CTA
   ۱۱. تماس و فرم
   ۱۲. فوتر
   ۱۳. علاقه‌مندی‌ها (likes)
   ۱۴. احراز هویت مشتری
   ۱۵. نظرات
   ۱۶. راهنمای فرم سفارش
   ۱۷. وبلاگ
   ۱۸. ورق‌زن کتاب (flipbook)
   ۱۹. نمایشگر سه‌بعدی
   ۲۰. تیکت‌ها
   ۲۱. تیم
   ۲۲. بریف سفارشی
   ۲۳. ویدیو
   ۲۴. پنل ادمین — کلیات
   ۲۵. پنل ادمین — تب‌ها
   ۲۶. پنل ادمین — فرم‌ها
   ۲۷. پنل ادمین — accordion دسته‌بندی
   ۲۸. پنل ادمین — مودال
   ۲۹. پنل ادمین — toast
   ۳۰. رسپانسیو
   ۳۱. رابط مکالمات و حساب کاربری مشتری (status / profile / order / chat)
   ۳۲. پنل ادمین — سفارش‌ها و فیلتر
   ۳۳. آپلود فایل (پنل ادمین)
   ۳۴. ابزارها (About / Tools)
   ============================================ */

/* ============================================
   ۰. فونت محلی Vazirmatn
   (جلوگیری از خطای cross-site فونت گوگل)
   ============================================ */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/vazirmatn-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/vazirmatn-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/vazirmatn-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/vazirmatn-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/vazirmatn-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   ۱. متغیرها و تم‌ها
   ============================================ */
:root,
[data-theme="dark"] {
  --bg: #0c0c0c;
  --bg-soft: #141414;
  --bg-card: #1a1a1a;
  --text: #f5f5f0;
  --text-muted: #a0a09a;
  --accent: #5b9bf0;
  --accent-hover: #7ab0f5;
  --accent-soft: rgba(91, 155, 240, 0.15);
  --border: rgba(91, 155, 240, 0.18);
  --overlay-bg: rgba(8, 8, 8, 0.92);
  --header-bg: rgba(12, 12, 12, 0.9);
  --wood: #5b9bf0;
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1200px;
}

[data-theme="light"] {
  --bg: #f7f5f2;
  --bg-soft: #ebe7e1;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c56;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --border: rgba(59, 130, 246, 0.2);
  --overlay-bg: rgba(20, 18, 14, 0.88);
  --header-bg: rgba(247, 245, 242, 0.92);
  --wood: #3b82f6;
}

/* --- بهبودهای ظاهری از نسخه جدید --- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-drift {
  background:
          radial-gradient(circle at 18% 20%, var(--accent-soft) 0%, transparent 42%),
          radial-gradient(circle at 82% 78%, var(--accent-soft) 0%, transparent 45%),
          linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 60%);
  background-size: 140% 140%;
  animation: heroDrift 18s ease-in-out infinite alternate;
  position: relative;
}

.hero-drift::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(var(--border) 1px, transparent 1px),
          linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  pointer-events: none;
}

@keyframes heroDrift {
  0% {
    background-position: 0% 0%, 100% 100%, 0% 0%;
  }

  100% {
    background-position: 12% 8%, 88% 92%, 6% 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-drift {
    animation: none;
  }
}

.shadow-gold {
  box-shadow: 0 12px 32px rgba(91, 155, 240, 0.14);
}

/* ============================================
   ۲. ریست و پایه
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

.nav>li>a {
  position: relative;
}

@media (max-width: 768px) {
  .nav>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* چرخش فلش وقتی بازه */
  .nav>li.open>a::after {
    transform: rotate(180deg);
  }

  .nav>li>a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-inline-start: 8px;
    opacity: 0.6;
  }

  /* فلش فقط برای لینک‌هایی که زیرمنو دارن */
  .nav>li:not(:has(.dropdown))>a::after {
    display: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.text-accent {
  color: var(--accent);
}

/* Utilities */
.mt-40 {
  margin-top: 40px;
}

.mt-60 {
  margin-top: 60px;
}

.text-center {
  text-align: center;
}

.hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================
   ۳. هدر و ناوبری
   ============================================ */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 14px 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.nav>li {
  position: relative;
}

.nav>li>a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: 8px;
}

.nav>li>a:hover,
.nav>li>a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.nav>li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.header-controls {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   ۴. دکمه‌ها
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 155, 240, 0.3);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   ۵. هیرو
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback-bg {
  position: absolute;
  inset: 0;
  background:
          radial-gradient(circle at 18% 20%, var(--accent-soft) 0%, transparent 42%),
          radial-gradient(circle at 82% 78%, var(--accent-soft) 0%, transparent 45%),
          linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 60%);
  background-size: 140% 140%;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  0% {
    background-position: 0% 0%, 100% 100%, 0% 0%;
  }

  100% {
    background-position: 12% 8%, 88% 92%, 6% 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fallback-bg {
    animation: none;
  }
}

.hero-fallback-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(var(--border) 1px, transparent 1px),
          linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 16, 0.45) 0%, rgba(11, 18, 16, 0.82) 70%, var(--bg) 100%);
  z-index: 1;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg, rgba(244, 247, 244, 0.25) 0%, rgba(244, 247, 244, 0.75) 65%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 40px 24px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   ۶. سکشن‌ها و کارت‌های خدمات
   ============================================ */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(91, 155, 240, 0.12);
}

.service-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 14px;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============================================
   ۷. نمونه‌کارها (masonry، grid، hscroll)
   ============================================ */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.masonry.masonry-pack {
  columns: 3;
  column-gap: 18px;
}

.masonry.masonry-pack .masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
}

.masonry-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  isolation: isolate;
}

.masonry-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  transition: transform 0.55s ease;
  background: var(--bg-soft);
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--overlay-bg);
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  text-align: start;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
  transform: none;
}

.masonry-overlay h4 {
  font-size: 0.98rem;
  color: #fff;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.masonry-overlay span {
  font-size: 0.8rem;
  color: var(--accent-hover);
  display: block;
}

@media (hover: none),
(max-width: 768px) {
  .masonry-overlay {
    opacity: 1;
    transform: none;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.78) 65%, transparent 100%);
    padding-top: 28px;
  }

  .masonry-overlay h4 {
    font-size: 0.95rem;
  }

  .masonry-actions {
    position: static;
    margin: 8px 0 0;
    display: flex;
    align-items: center;
  }

  .masonry-actions .like-btn {
    min-height: 44px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.45);
  }
}

.masonry-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.masonry-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

.masonry-actions .like-btn {
  background: rgba(0, 0, 0, 0.55);
  border-color: transparent;
  color: #fff;
}

.masonry-actions .like-btn.liked {
  color: #ff6b7a;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.portfolio-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.portfolio-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.portfolio-card-img {
  overflow: hidden;
  background: var(--bg-soft);
  line-height: 0;
}

.portfolio-card-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  transition: transform 0.5s ease;
  background: var(--bg-soft);
}

.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.03);
}

.portfolio-card-body {
  padding: 20px;
}

.portfolio-card-body h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.portfolio-card-body .meta {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.portfolio-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Horizontal scroll (priority 2) */
.hscroll-section {
  margin-bottom: 40px;
}

.hscroll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.hscroll-head h3 {
  font-size: 1.15rem;
}

.hscroll-nav {
  display: flex;
  gap: 8px;
}

.hscroll-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.hscroll-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hscroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hscroll-track::-webkit-scrollbar {
  height: 6px;
}

.hscroll-track::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.hscroll-card {
  flex: 0 0 min(280px, 80vw);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hscroll-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  max-height: 320px;
  background: var(--bg-soft);
}

.hscroll-info {
  padding: 12px 14px;
}

.hscroll-info strong {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* ============================================
   ۸. آمار و بنر
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item h3 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
}

.stat-item p {
  color: var(--text-muted);
}

.page-banner {
  padding: 140px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-banner p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   ۹. صفحه جزئیات نمونه‌کار
   ============================================ */
.case-hero {
  padding-top: 72px;
}

.case-slider {
  width: 100%;
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
}

.case-slider img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.case-meta-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

.case-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--accent);
}

.case-content p {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 12px;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 36px 0;
}

.case-gallery img {
  border-radius: var(--radius);
  cursor: zoom-in;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.case-gallery img.lightbox-trigger {
  cursor: zoom-in;
}

.case-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0 8px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.case-prevnext-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}

.case-prevnext-link:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.case-prevnext-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.case-next {
  text-align: left;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 40px;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ============================================
   ۱۰. CTA
   ============================================ */
.cta-banner {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin: 64px 0;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* ============================================
   ۱۱. تماس و فرم
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.phone-ltr,
[data-contact="phone"],
input[name="phone"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

.moon-extra-fields {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.order-ref-banner {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.product-price {
  margin-top: 10px;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.05rem;
}

/* ============================================
   ۱۲. فوتر
   ============================================ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 52px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 260px;
}

.footer h4 {
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.placeholder-img {
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 160px;
}

/* ============================================
   ۱۳. علاقه‌مندی‌ها (likes)
   ============================================ */
.card-scores {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-stars {
  color: var(--wood, #c4a574);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.admin-stars small {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-inline-start: 4px;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-soft);
  transition: all var(--transition);
}

.like-btn:hover,
.like-btn.liked {
  color: #e74c5e;
  border-color: rgba(231, 76, 94, 0.4);
}

.like-btn.liked {
  background: rgba(231, 76, 94, 0.1);
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Lazy images */
img.lazy-img {
  filter: blur(0);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

img:not(.lazy-img) {
  opacity: 1;
}

/* ============================================
   ۱۴. احراز هویت مشتری
   ============================================ */
.auth-switch {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
}

.auth-switch-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.auth-switch-btn.active {
  background: var(--accent);
  color: #fff;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

/* ============================================
   ۱۵. نظرات
   ============================================ */
.comments-section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.comments-section h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.comments-section-inner {
  margin-top: 8px;
}

.comments-title {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.comment-item:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.comment-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-card));
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
}

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

.comment-meta strong {
  color: var(--text);
  font-size: 0.95rem;
}

.comment-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-text {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.95rem;
}

.comment-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.comment-form-title {
  font-size: 1.05rem;
  margin: 0 0 16px;
  color: var(--text);
}

.comment-form-wrap .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comment-form-wrap .form-group {
  margin-bottom: 14px;
}

.comment-form-wrap .form-group input,
.comment-form-wrap .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form-wrap .form-group input:focus,
.comment-form-wrap .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.comment-form-wrap .form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.comment-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 4px;
}

.comment-form-actions .hint {
  margin: 0;
}

.comment-account-hint {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.comment-account-hint a {
  color: var(--accent);
  text-decoration: none;
}

.comment-account-hint a:hover {
  text-decoration: underline;
}

.comments-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 12px 0;
}

@media (max-width: 640px) {
  .comment-form-wrap .form-row-2 {
    grid-template-columns: 1fr;
  }
  .comment-form-wrap {
    padding: 16px;
  }
}

/* ============================================
   ۱۶. راهنمای فرم سفارش
   ============================================ */
.brief-pick-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

/* ============================================
   ۱۷. وبلاگ
   ============================================ */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.journal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}

.journal-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.journal-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.78rem;
}

.journal-card h3 {
  font-size: 1.05rem;
  line-height: 1.5;
}

.journal-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.journal-card-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.journal-post-body h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--accent);
}

.journal-post-body p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 14px;
}

/* ============================================
   ۱۸. ورق‌زن کتاب (flipbook)
   ============================================ */
.flipbook {
  max-width: 720px;
  margin: 0 auto;
  outline: none;
}

.flipbook-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #0a0a0a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  perspective: 1800px;
}

@media (min-width: 760px) {
  .flipbook-stage {
    aspect-ratio: 4 / 3;
  }
}

.flipbook-page {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background: #111;
}

.flipbook-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.flipbook-page-right {
  right: 0;
}

.flipbook-page-left {
  left: 0;
}

@media (max-width: 759px) {
  .flipbook-page-right {
    right: 0;
    width: 100%;
  }

  .flipbook-page-left {
    display: none;
  }
}

.flipbook-flap {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  display: none;
  transform-origin: left center;
  background: #151515;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 759px) {
  .flipbook-flap {
    width: 100%;
    right: 0;
    transform-origin: left center;
  }
}

.flipbook-flap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.flap-anim-next {
  animation: fbFlipNext 0.42s ease-in-out forwards;
}

.flap-anim-prev {
  animation: fbFlipPrev 0.42s ease-in-out forwards;
  transform-origin: right center;
  right: auto;
  left: 0;
}

@keyframes fbFlipNext {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(-140deg);
    opacity: 0.4;
  }
}

@keyframes fbFlipPrev {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(140deg);
    opacity: 0.4;
  }
}

.flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.flipbook-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}

.flipbook-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.flipbook-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.flipbook-indicator {
  color: var(--text-muted);
  font-size: 0.88rem;
  min-width: 70px;
  text-align: center;
}

/* ============================================
   ۱۹. نمایشگر سه‌بعدی
   ============================================ */
.project-viewer {
  margin-bottom: 8px;
}

.viewer3d {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
  cursor: grab;
}

.viewer3d:active {
  cursor: grabbing;
}

.viewer3d canvas {
  display: block;
}

.viewer3d-loading,
.viewer3d-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* ============================================
   ۲۰. تیکت‌ها
   ============================================ */
.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  transition: border-color .15s ease;
}

.ticket-card:hover {
  border-color: var(--accent);
}

.ticket-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-status {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.ticket-status-answered {
  background: rgba(120, 180, 120, 0.15);
  color: #7cbf7c;
}

.ticket-status-closed {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.ticket-msg {
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  max-width: 85%;
}

.ticket-msg-admin {
  background: var(--accent-soft);
  border-radius: 14px 14px 4px 14px;
  border-color: transparent;
  align-self: flex-start;
  margin-left: auto;
}

.ticket-msg-from {
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.ticket-msg p {
  color: var(--text);
  font-size: 0.9rem;
  margin: 0;
}

.ticket-reply-form {
  display: flex;
  gap: 8px;
}

.ticket-reply-form input {
  flex: 1;
}

/* ============================================
   ۲۱. تیم
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--accent);
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.team-edu {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 14px;
  text-align: right;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.team-skill {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.team-link {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}

.team-link:hover {
  text-decoration: underline;
}

/* ============================================
   ۲۲. بریف سفارشی
   ============================================ */
.brief-page {
  max-width: 920px;
}

.brief-progress {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  flex-wrap: wrap;
}

.brief-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.brief-progress li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  font-size: 0.75rem;
}

.brief-progress li.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.brief-progress li.is-active span,
.brief-progress li.is-done span {
  background: var(--accent);
  color: #111;
}

.brief-progress li.is-done {
  color: var(--accent);
}

.brief-step-title {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  margin-bottom: 8px;
}

.brief-step-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.brief-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.brief-pick {
  text-align: right;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brief-pick:hover,
.brief-pick:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(91, 155, 240, 0.12);
  outline: none;
}

.brief-pick-icon {
  font-size: 1.5rem;
}

.brief-pick strong {
  font-size: 1.05rem;
}

.brief-pick span:last-child {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.brief-back {
  color: var(--accent);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.brief-back:hover {
  text-decoration: underline;
}

.brief-crumb {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
}

.brief-form {
  max-width: 640px;
}

.brief-form-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}

.brief-form-block h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.brief-done {
  text-align: center;
  padding: 24px 0 40px;
}

.brief-done-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
}

.brief-done-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.brief-done-card h2 {
  margin-bottom: 10px;
}

.brief-done-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.brief-done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ============================================
   ۲۳. ویدیو
   ============================================ */
.project-video {
  width: 100%;
  margin: 18px 0 30px;
}

.project-video video {
  display: block;
  width: 100%;
  max-height: 620px;
  border-radius: 16px;
  background: #000;
}

.project-video .hint {
  margin-top: 8px;
}

/* ============================================
   ۲۴. پنل ادمین — کلیات
   ============================================ */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.admin-login {
  max-width: 400px;
  margin: 120px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

/* ============================================
   ۲۵. پنل ادمین — تب‌ها
   ============================================ */
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.admin-tab {
  position: relative;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s ease;
}

.admin-tab::after {
  content: '';
  position: absolute;
  right: 10px;
  left: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.admin-tab.active::after {
  transform: scaleX(1);
}

.admin-tab.active,
.admin-tab:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.mr-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ============================================
   ۲۶. پنل ادمین — فرم‌ها
   ============================================ */
.admin-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-danger {
  background: #c0392b;
  color: #fff;
}

.media-config {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}

.media-config h4 {
  margin: 0 0 12px;
}

.media-fields {
  display: none;
}

.media-fields.active {
  display: block;
}

.media-type-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 6px;
}

.media-type-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: .9rem;
  user-select: none;
}

.media-type-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.project-type-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .75rem;
}

/* ============================================
   ۲۷. پنل ادمین — accordion دسته‌بندی
   ============================================ */
.catmeta-card {
  transition: box-shadow .15s;
  background: var(--bg-card);
}

.catmeta-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.catmeta-header {
  background: linear-gradient(90deg,
  rgba(91, 155, 240, 0.06) 0%,
  rgba(91, 155, 240, 0.02) 100%);
}

.catmeta-header:hover {
  background: var(--bg-soft) !important;
}

.catmeta-body {
  background: rgba(255, 255, 255, 0.01);
}

/* بخش تنظیمات دسته (فیلدهای بالا) */
.catmeta-body>.form-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(91, 155, 240, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.catmeta-body>.form-group:first-of-type {
  margin-top: 16px;
}

/* بخش جداکننده‌ها */
.catmeta-body hr {
  border: none;
  border-top: 1px dashed rgba(91, 155, 240, 0.22);
  margin: 22px 0 !important;
}

/* جدول‌های داخل accordion */
.catmeta-body .admin-table {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.catmeta-body .admin-table th {
  background: rgba(91, 155, 240, 0.08);
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(91, 155, 240, 0.15);
}

.catmeta-body .admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.catmeta-body .admin-table tr:last-child td {
  border-bottom: none;
}

.catmeta-body .admin-table tr:hover td {
  background: rgba(91, 155, 240, 0.04);
}

/* بخش زیردسته‌ها و سؤالات بریف — داخل accordion */
.catmeta-body .admin-form {
  background: rgba(91, 155, 240, 0.04) !important;
  border: 1px solid rgba(91, 155, 240, 0.14) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin: 14px 0 0 !important;
}

/* هدر زیردسته (نام + دکمه‌ها) */
.catmeta-body .admin-form>div:first-child {
  border-bottom: 1px dashed rgba(91, 155, 240, 0.18);
  padding-bottom: 10px;
  margin-bottom: 12px !important;
}

/* جدول سؤالات بریف داخل زیردسته — پس‌زمینه متمایز */
.catmeta-body .admin-form .admin-table {
  background: rgba(0, 0, 0, 0.15);
}

.catmeta-body .admin-form .admin-table th {
  background: rgba(91, 155, 240, 0.12);
  font-size: 0.8rem;
}

/* عنوان بخش‌ها (فیلدهای فرم سفارش / زیردسته‌ها) */
.catmeta-body h4 {
  color: var(--accent);
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 10px;
  margin-inline-start: 0;
}

/* ============================================
   ۲۸. پنل ادمین — مودال
   ============================================ */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(4px);
}

.admin-modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.admin-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-modal-grid .full {
  grid-column: 1/-1;
}

/* ============================================
   ۲۹. پنل ادمین — toast
   ============================================ */
.admin-toast {
  position: fixed;
  inset: auto 24px 24px auto;
  z-index: 99999;
  max-width: 420px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  display: none;
}

.admin-toast.show {
  display: block;
  animation: adminToastIn .2s ease;
}

@keyframes adminToastIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* ============================================
   ۳۰. رسپانسیو
   ============================================ */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    display: none;
    padding: 0 0 0 12px;
  }

  .nav>li.open .dropdown {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .service-grid,
  .masonry,
  .stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-modal-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .brief-card-grid {
    grid-template-columns: 1fr;
  }

  .brief-form .form-group[style*="grid-template-columns"] {
    display: block !important;
  }

  .brief-pick {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .case-prevnext {
    grid-template-columns: 1fr;
  }

  .case-next {
    text-align: right;
  }

  .mr-profile-card {
    padding: 18px;
  }

  .mr-order-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mr-chat-thread {
    max-height: 320px;
  }
}

/* ============================================
   ۳۱. رابط مکالمات و حساب کاربری مشتری
   (chat threads / order cards / profile — customer-facing)
   ============================================ */

/* ---------- نشان وضعیت رنگی ---------- */
.mr-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.6;
}

.mr-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.mr-status-pending {
  background: rgba(255, 193, 7, .14);
  color: #e0ab1f;
}

.mr-status-reviewing {
  background: rgba(99, 170, 255, .14);
  color: #5b9bf0;
}

.mr-status-designing {
  background: rgba(168, 120, 255, .15);
  color: #a177f5;
}

.mr-status-in_progress {
  background: var(--accent-soft);
  color: var(--accent);
}

.mr-status-waiting_client {
  background: rgba(255, 140, 90, .15);
  color: #ea8a5a;
}

.mr-status-completed {
  background: rgba(120, 190, 130, .16);
  color: #6fc07e;
}

.mr-status-cancelled {
  background: var(--bg-soft);
  color: var(--text-muted);
}

/* ---------- کارت پروفایل حساب کاربری ---------- */
.mr-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.mr-profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mr-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.mr-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.mr-profile-name {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.mr-profile-phone {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mr-profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- فرم ویرایش پروفایل ---------- */
.mr-edit-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
  animation: mrFadeIn .18s ease;
}

@keyframes mrFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

/* ---------- لیست سفارش‌ها (کارت به‌جای جدول) ---------- */
.mr-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.mr-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: border-color .15s ease, transform .15s ease;
}

.mr-order-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.mr-order-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.mr-order-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.mr-order-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.mr-order-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.mr-order-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mr-empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
}

/* ---------- قاب گفتگو (سفارش / تیکت) ---------- */
.mr-chat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}

.mr-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.mr-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: 14px;
  margin-bottom: 14px;
  scroll-behavior: smooth;
}

.mr-chat-thread::-webkit-scrollbar {
  width: 6px;
}

.mr-chat-thread::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.mr-msg-row {
  display: flex;
  gap: 10px;
  max-width: 86%;
}

.mr-msg-row.is-admin {
  margin-right: auto;
  flex-direction: row-reverse;
}

.mr-msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px;
}

.mr-msg-row.is-admin .mr-msg-bubble {
  background: var(--accent-soft);
  border-color: transparent;
  border-radius: 14px 14px 4px 14px;
}

.mr-msg-from {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.mr-msg-row.is-admin .mr-msg-from {
  color: var(--accent);
  text-align: left;
}

.mr-msg-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text, inherit);
}

.mr-msg-time {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mr-chat-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 24px 10px;
}

.mr-chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
}

.mr-chat-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 4px;
  color: inherit;
  font-family: inherit;
  font-size: 0.92rem;
}

.mr-chat-form input:focus {
  outline: none;
}

.mr-chat-form button {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
}

/* ============================================
   ۳۲. پنل ادمین — سفارش‌ها و فیلتر
   ============================================ */
.mr-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.mr-toolbar input[type="search"],
.mr-toolbar input[type="text"] {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 8px 16px;
  color: inherit;
  font-family: inherit;
  font-size: 0.88rem;
}

.mr-toolbar select {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 8px 14px;
  color: inherit;
  font-family: inherit;
  font-size: 0.86rem;
}

.mr-toolbar-count {
  margin-right: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* کارت سفارش در پنل ادمین */
.mr-admin-order {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color .15s ease;
}

.mr-admin-order:hover {
  border-color: var(--accent);
}

.mr-admin-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mr-admin-order-who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mr-type-chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
}

.mr-type-chip.is-custom {
  background: var(--accent-soft);
  color: var(--accent);
}

.mr-admin-order-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* سلکت وضعیت به‌شکل نشان رنگی */
.mr-status-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 30px 6px 13px;
  border-radius: 999px;
  background-color: var(--bg-soft);
  color: var(--text-muted);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238fa894' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center;
}

.mr-status-select.mr-status-pending {
  background-color: rgba(255, 193, 7, .14);
  color: #e0ab1f;
}

.mr-status-select.mr-status-reviewing {
  background-color: rgba(99, 170, 255, .14);
  color: #5b9bf0;
}

.mr-status-select.mr-status-designing {
  background-color: rgba(168, 120, 255, .15);
  color: #a177f5;
}

.mr-status-select.mr-status-in_progress {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.mr-status-select.mr-status-waiting_client {
  background-color: rgba(255, 140, 90, .15);
  color: #ea8a5a;
}

.mr-status-select.mr-status-completed {
  background-color: rgba(120, 190, 130, .16);
  color: #6fc07e;
}

.mr-status-select.mr-status-cancelled {
  background-color: var(--bg-soft);
  color: var(--text-muted);
}

.mr-toggle-thread {
  cursor: pointer;
  user-select: none;
  font-size: 0.86rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.mr-toggle-thread svg {
  transition: transform .15s ease;
}

.mr-admin-order[data-open="1"] .mr-toggle-thread svg {
  transform: rotate(180deg);
}

.mr-admin-order-body {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-muted);
}

/* ============================================
   ۳۳. آپلود فایل (پنل ادمین)
   ============================================ */
.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  user-select: none;
}

.upload-zone:hover,
.upload-zone:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.upload-zone-sm {
  padding: 14px 12px;
}

.upload-zone-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
  line-height: 1;
}

.upload-zone-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.upload-zone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.upload-preview:empty {
  display: none;
}

.upload-empty-hint {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 180px;
  max-width: 280px;
  position: relative;
}

.upload-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-thumb img,
.upload-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-chip-icon {
  font-size: 1.3rem;
}

.upload-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-name {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.upload-size {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.upload-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.upload-remove:hover {
  background: #c45c5c;
  border-color: #c45c5c;
  color: #fff;
}

.upload-advanced {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-advanced summary {
  cursor: pointer;
  color: var(--accent);
  user-select: none;
}

.upload-advanced summary:hover {
  color: var(--accent-hover);
}

.upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.upload-row input {
  flex: 1;
}

.upload-row .btn {
  white-space: nowrap;
}

/* ============================================
   ۳۴. ابزارها (About / Tools)
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 900px;
  margin-inline: auto;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  min-height: 130px;
}

.tool-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(91, 155, 240, 0.12);
  color: var(--accent);
}

.tool-icon {
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: 14px;
}

.tool-item span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.tool-item:hover span {
  color: var(--accent);
}


/* ============================================
   بهبود موبایل سراسری (پورت‌شده)
   ============================================ */
@media (max-width: 768px) {
  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav.open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .hero {
    padding-top: 72px;
    padding-bottom: 48px;
  }
  .hero .btn,
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  input, select, textarea {
    font-size: 16px !important; /* جلوگیری از زوم خودکار iOS */
  }
  .btn {
    min-height: 44px;
  }
  .form-row,
  .form-row-3,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .admin-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mr-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .mr-toolbar input,
  .mr-toolbar select,
  .mr-toolbar .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proj-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 12px;
  }
}
