/* ============================================================
   گنجینه — استایل اصلی سایت
   ============================================================ */

/* ---------- فونت ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../_shared/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../_shared/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../_shared/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../_shared/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../_shared/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../_shared/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-display: swap;
}

/* ---------- توکن‌های طراحی ---------- */
:root {
  --primary-800: #065f46;
  --primary-700: #047857;
  --primary-600: #059669;
  --primary-500: #10b981;
  --primary-100: #d1fae5;
  --primary-50:  #ecfdf5;
  --grad-brand: linear-gradient(135deg, #047857, #0d9488);
  --grad-brand-hover: linear-gradient(135deg, #065f46, #0f766e);
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-100: #fef3c7;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --line: #e2e8f0;
  --line-light: #eef2f6;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --danger-600: #e11d48;
  --danger-100: #ffe4e6;
  --info-600: #0284c7;
  --info-100: #e0f2fe;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px -6px rgba(15, 23, 42, .1);
  --shadow-lg: 0 16px 40px -12px rgba(15, 23, 42, .18);
  --header-h: 74px;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.8;
  font-size: 15px;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px; line-height: 1.6;
  transition: all .22s ease; white-space: nowrap; border: 1.5px solid transparent;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(4, 120, 87, .55); }
.btn-primary:hover { background: var(--grad-brand-hover); transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(4, 120, 87, .55); }
.btn-gold { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; box-shadow: 0 6px 16px -6px rgba(217, 119, 6, .55); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-outline { border-color: var(--primary-600); color: var(--primary-700); background: transparent; }
.btn-outline:hover { background: var(--primary-50); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-700); background: transparent; }
.btn-ghost:hover { background: var(--line-light); }
.btn-light { background: #fff; color: var(--primary-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-danger { background: var(--danger-600); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger-outline { border-color: var(--danger-600); color: var(--danger-600); }
.btn-danger-outline:hover { background: var(--danger-100); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- نشان‌ها ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 100px; font-size: 12.5px; font-weight: 600;
}
.badge-success { background: var(--primary-100); color: var(--primary-800); }
.badge-warning { background: var(--gold-100); color: #92400e; }
.badge-danger  { background: var(--danger-100); color: #9f1239; }
.badge-info    { background: var(--info-100); color: #075985; }
.badge-muted   { background: var(--line-light); color: var(--ink-500); }
.discount-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: linear-gradient(135deg, #e11d48, #f43f5e); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 100px;
  box-shadow: 0 4px 12px -2px rgba(225, 29, 72, .5);
}

/* ---------- فرم‌ها ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--ink-700); }
.form-control {
  width: 100%; padding: 11px 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--primary-600); box-shadow: 0 0 0 3.5px rgba(5, 150, 105, .13); }
.form-control::placeholder { color: var(--ink-400); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 38px; }
.form-hint { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .input-row { grid-template-columns: 1fr; } }

/* ---------- هدر ---------- */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--line-light);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 12px rgba(15, 23, 42, .05);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 24px; color: var(--primary-700); flex-shrink: 0; }
.logo-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px -4px rgba(4, 120, 87, .5); }
.logo small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-500); margin-top: -6px; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 13px; border-radius: 9px; font-weight: 500; font-size: 14px; color: var(--ink-700);
  transition: all .18s; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary-700); background: var(--primary-50); }

.header-search { flex: 1; max-width: 400px; position: relative; }
.header-search input {
  width: 100%; padding: 10px 42px 10px 16px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--bg); outline: none; font-size: 13.5px;
  transition: all .2s;
}
.header-search input:focus { background: #fff; border-color: var(--primary-600); box-shadow: 0 0 0 3.5px rgba(5, 150, 105, .12); }
.header-search button { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 100px; display: grid; place-items: center; color: var(--ink-500); }
.header-search button:hover { color: var(--primary-700); background: var(--primary-50); }

/* پیش‌نمایش جستجوی زنده */
.search-suggest {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 120;
  background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 66vh; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s;
}
.search-suggest.open { opacity: 1; visibility: visible; transform: translateY(0); }
.ss-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; transition: background .15s; }
.ss-item:hover { background: var(--primary-50); }
.ss-item img { width: 52px; height: 34px; object-fit: cover; border-radius: 7px; flex-shrink: 0; border: 1px solid var(--line-light); }
.ss-info { flex: 1; min-width: 0; }
.ss-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-meta { font-size: 11.5px; color: var(--primary-700); }
.ss-price { font-size: 12.5px; font-weight: 700; color: var(--ink-700); white-space: nowrap; flex-shrink: 0; }
.ss-more { display: block; text-align: center; padding: 10px; font-size: 12.5px; font-weight: 700; color: var(--primary-700); border-top: 1px solid var(--line-light); margin-top: 4px; }
.ss-more:hover { background: var(--primary-50); border-radius: 0 0 10px 10px; }
.ss-empty { padding: 22px; text-align: center; color: var(--ink-500); font-size: 13px; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: var(--ink-700); background: var(--line-light);
  transition: all .2s;
}
.icon-btn:hover { background: var(--primary-50); color: var(--primary-700); }
.cart-count {
  position: absolute; top: -5px; left: -5px; min-width: 19px; height: 19px; padding-inline: 5px;
  background: linear-gradient(135deg, #e11d48, #f43f5e); color: #fff; border-radius: 100px;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 2px 6px rgba(225, 29, 72, .45);
}

/* دراپ‌داون کاربر و دسته‌ها */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s; z-index: 110;
}
.dropdown.open .dropdown-menu, .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: right;
  padding: 9px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-700);
  transition: all .15s;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--primary-50); color: var(--primary-700); }
.dropdown-menu .sep { height: 1px; background: var(--line-light); margin: 6px 4px; }
.dropdown-menu .danger { color: var(--danger-600); }
.dropdown-menu .danger:hover { background: var(--danger-100); color: var(--danger-600); }

/* منوی موبایل */
.mobile-toggle { display: none; }
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); background: var(--surface); z-index: 200;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; padding: 22px; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(15, 23, 42, .25); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 190; opacity: 0; visibility: hidden; transition: all .3s; backdrop-filter: blur(2px); }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer .nav-link { display: block; padding: 12px 14px; font-size: 15px; }
.mobile-drawer .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .mobile-toggle { display: grid; }
  .header-search { max-width: none; }
}
@media (max-width: 640px) {
  .header-search { display: none; }
  .header-inner { gap: 12px; }
}

/* نوار جستجوی موبایل زیر هدر */
.mobile-search { display: none; padding: 0 0 12px; }
@media (max-width: 640px) { .mobile-search { display: block; } }

/* ---------- اسلایدر ---------- */
.hero { padding: 26px 0 10px; }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.slides { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: clamp(240px, 34vw, 430px); object-fit: cover; }
.slide-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 6vw, 80px); color: #fff; max-width: 640px;
}
.slide-content .kicker { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); padding: 5px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 600; width: fit-content; margin-bottom: 14px; }
.slide-content h2 { font-size: clamp(21px, 3.4vw, 38px); font-weight: 900; line-height: 1.5; margin-bottom: 10px; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.slide-content p { font-size: clamp(13px, 1.5vw, 16px); opacity: .92; margin-bottom: 22px; max-width: 480px; }
.slide-content .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.slider-dots { position: absolute; bottom: 18px; right: 50%; transform: translateX(50%); display: flex; gap: 7px; z-index: 3; }
.slider-dots button { width: 9px; height: 9px; border-radius: 100px; background: rgba(255,255,255,.45); transition: all .25s; }
.slider-dots button.active { width: 26px; background: #fff; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 100px; background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.28); color: #fff;
  display: grid; place-items: center; transition: all .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.35); }
.slider-arrow.prev { right: 16px; }
.slider-arrow.next { left: 16px; }
@media (max-width: 640px) { .slider-arrow { display: none; } .slide-content .actions .btn-lg { padding: 11px 20px; font-size: 14px; } }

/* ---------- بخش‌ها ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-title { font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; position: relative; padding-right: 16px; }
.section-title::before { content: ''; position: absolute; right: 0; top: 8px; bottom: 8px; width: 5px; border-radius: 4px; background: var(--grad-brand); }
.section-title .accent { color: var(--primary-700); }
.section-sub { color: var(--ink-500); font-size: 13.5px; margin-top: 3px; }
.see-all { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-700); font-weight: 600; font-size: 13.5px; transition: gap .2s; }
.see-all:hover { gap: 10px; }

/* ---------- کارت محصول ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-light); box-shadow: var(--shadow-sm);
  transition: all .28s ease; display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.product-thumb { position: relative; overflow: hidden; aspect-ratio: 8 / 5; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 12px; color: var(--primary-700); font-weight: 600; margin-bottom: 5px; }
.product-title { font-size: 14.5px; font-weight: 700; line-height: 1.65; margin-bottom: 8px; min-height: 47px; }
.product-title a:hover { color: var(--primary-700); }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stars { display: inline-flex; gap: 1px; direction: ltr; }
.star-full, .star-half { color: var(--gold-500); }
.star-empty { color: #d8dee7; }
.rating-num { font-size: 12.5px; color: var(--ink-500); font-weight: 600; }
.sales-num { font-size: 12px; color: var(--ink-400); }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.price-old { font-size: 12.5px; color: var(--ink-400); text-decoration: line-through; line-height: 1.4; }
.price-current { font-size: 16px; font-weight: 800; color: var(--primary-700); line-height: 1.4; }
.price-current small { font-size: 11.5px; font-weight: 500; color: var(--ink-500); }
.product-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.product-actions .btn { flex: 1; }
.product-actions form { flex: 1; display: flex; }

/* ---------- کارت دسته‌بندی ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1080px) { .cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .cats-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm); transition: all .28s;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card .cat-overlay {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; text-align: center;
  background: linear-gradient(to top, rgba(6, 30, 24, .72), transparent); color: #fff;
  font-weight: 700; font-size: 14px;
}

/* ---------- نوار ویژگی‌ها ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center; transition: all .25s; box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.feature-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px;
  background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center;
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--ink-500); }

/* ---------- معرفی گنجینه ---------- */
.about-strip {
  background: var(--grad-brand); border-radius: var(--radius-lg); color: #fff;
  padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px;
  align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-strip::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 100%; background: rgba(255,255,255,.07); top: -140px; left: -100px; }
.about-strip::after  { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 100%; background: rgba(255,255,255,.06); bottom: -110px; right: 30%; }
.about-strip h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; margin-bottom: 12px; }
.about-strip p { opacity: .93; font-size: 14.5px; margin-bottom: 20px; max-width: 560px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; }
.stat-box { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px); border-radius: var(--radius); padding: 16px 12px; text-align: center; }
.stat-box b { display: block; font-size: clamp(18px, 2.4vw, 26px); font-weight: 900; color: var(--gold-100); }
.stat-box span { font-size: 12.5px; opacity: .9; }
@media (max-width: 860px) { .about-strip { grid-template-columns: 1fr; } }

/* ---------- آکاردئون سوالات ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--primary-100); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .25s; color: var(--primary-700); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-500); font-size: 13.5px; line-height: 2; }

/* ---------- فوتر ---------- */
.site-footer { background: #0a1f1a; color: #cbd5d1; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 52px 0 40px; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; color: #9fb3ac; line-height: 2; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--gold-500); }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: #9fb3ac; transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.footer-col a:hover { color: #fff; padding-right: 5px; }
.footer-contact li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #9fb3ac; }
.footer-contact svg { color: var(--gold-500); flex-shrink: 0; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cbd5d1; transition: all .22s; }
.socials a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: #7e948d; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 400; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 44px)); }
.toast {
  display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-right: 4px solid var(--primary-600); font-size: 13.5px; font-weight: 500;
  animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.error { border-right-color: var(--danger-600); }
.toast.info  { border-right-color: var(--info-600); }
.toast .t-icon { flex-shrink: 0; margin-top: 2px; color: var(--primary-600); }
.toast.error .t-icon { color: var(--danger-600); }
.toast.info .t-icon { color: var(--info-600); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.toast.hide { opacity: 0; transform: translateX(-12px); transition: all .3s; }

/* ---------- مسیر راهنما ---------- */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12.5px; color: var(--ink-500); padding: 20px 0 0; }
.breadcrumbs a:hover { color: var(--primary-700); }
.breadcrumbs .sep { color: var(--ink-400); }
.breadcrumbs .current { color: var(--ink-900); font-weight: 600; }

/* ---------- صفحه فروشگاه ---------- */
.shop-layout { display: grid; grid-template-columns: 265px 1fr; gap: 24px; align-items: start; padding: 24px 0 10px; }
@media (max-width: 940px) { .shop-layout { grid-template-columns: 1fr; } }
.filter-card { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow-sm); }
@media (max-width: 940px) { .filter-card { position: static; } }
.filter-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line-light); }
.filter-group > b { display: block; font-size: 13.5px; margin-bottom: 10px; }
.filter-group label.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: var(--ink-700); cursor: pointer; }
.filter-group input[type="radio"], .filter-group input[type="checkbox"] { accent-color: var(--primary-600); width: 16px; height: 16px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs input { padding: 8px 10px; font-size: 13px; }

.sort-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.sort-bar .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-500); font-weight: 600; }
.sort-link { padding: 6px 13px; border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--ink-700); transition: all .18s; }
.sort-link:hover { background: var(--line-light); }
.sort-link.active { background: var(--primary-700); color: #fff; }
.result-count { margin-right: auto; font-size: 12.5px; color: var(--ink-500); }

/* صفحه‌بندی */
.pagination { display: flex; justify-content: center; gap: 7px; padding: 30px 0 6px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding-inline: 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--primary-600); color: var(--primary-700); }
.pagination .current { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 5px 14px -4px rgba(4,120,87,.5); }

/* ---------- صفحه محصول ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; padding: 24px 0; }
@media (max-width: 940px) { .product-layout { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-light); }
.gallery-main img { width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 92px; aspect-ratio: 8/5; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; opacity: .75; transition: all .2s; }
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { border-color: var(--primary-600); opacity: 1; }

.buy-box { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 940px) { .buy-box { position: static; } }
.buy-box h1 { font-size: clamp(17px, 2.2vw, 21px); font-weight: 800; line-height: 1.7; margin-bottom: 10px; }
.buy-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12.5px; color: var(--ink-500); }
.buy-meta .instructor { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-700); font-weight: 600; }
.price-box { background: var(--bg); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.price-box .row { display: flex; align-items: center; justify-content: space-between; }
.price-box .old { color: var(--ink-400); text-decoration: line-through; font-size: 13.5px; }
.price-box .now { font-size: 23px; font-weight: 900; color: var(--primary-700); }
.price-box .now small { font-size: 12.5px; font-weight: 500; color: var(--ink-500); }
.buy-features { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.buy-features li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-700); }
.buy-features svg { color: var(--primary-600); flex-shrink: 0; }

.tabs { margin-top: 26px; background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.tab-bar { display: flex; border-bottom: 1px solid var(--line-light); overflow-x: auto; }
.tab-btn { padding: 15px 22px; font-weight: 700; font-size: 14px; color: var(--ink-500); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all .2s; }
.tab-btn:hover { color: var(--primary-700); }
.tab-btn.active { color: var(--primary-700); border-bottom-color: var(--primary-600); }
.tab-pane { display: none; padding: 26px; }
.tab-pane.active { display: block; animation: fade-in .3s; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.tab-pane p { color: var(--ink-700); font-size: 14px; line-height: 2.1; margin-bottom: 12px; }
.syllabus-list { display: flex; flex-direction: column; gap: 9px; counter-reset: syl; }
.syllabus-list li { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; font-weight: 500; }
.syllabus-list li::before { counter-increment: syl; content: counter(syl); width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; background: var(--primary-100); color: var(--primary-800); font-weight: 800; font-size: 12.5px; display: grid; place-items: center; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line-light); }
.specs-table td:first-child { color: var(--ink-500); width: 200px; font-weight: 600; }
.specs-table tr:last-child td { border-bottom: none; }

/* ---------- سبد خرید ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding: 24px 0; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.cart-item:hover { box-shadow: var(--shadow); }
.cart-item img { border-radius: var(--radius-sm); aspect-ratio: 8/5; object-fit: cover; }
.cart-item .ci-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cart-item .ci-price { font-size: 13px; color: var(--ink-500); }
.cart-item .ci-price b { color: var(--primary-700); }
.cart-item .ci-end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; }
.qty-control button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--primary-700); font-weight: 800; transition: background .15s; }
.qty-control button:hover { background: var(--primary-50); }
.qty-control span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }
.remove-btn { color: var(--danger-600); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.remove-btn:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 92px 1fr; }
  .cart-item .ci-end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.summary-card { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .summary-card { position: static; } }
.summary-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 9px 0; color: var(--ink-700); }
.summary-row.discount { color: var(--danger-600); }
.summary-total { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; }
.summary-total .val { font-size: 18px; color: var(--primary-700); }

/* ---------- Checkout ---------- */
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method { position: relative; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method label {
  display: flex; align-items: flex-start; gap: 14px; background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 18px; cursor: pointer; transition: all .2s;
}
.pay-method input:checked + label { border-color: var(--primary-600); background: var(--primary-50); box-shadow: 0 0 0 3.5px rgba(5,150,105,.12); }
.pay-method .pm-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--line-light); display: grid; place-items: center; color: var(--primary-700); flex-shrink: 0; }
.pay-method input:checked + label .pm-icon { background: #fff; }
.pay-method b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.pay-method p { font-size: 12.5px; color: var(--ink-500); }

/* کارت بانکی */
.bank-card {
  background: linear-gradient(135deg, #0a2540, #123c63); color: #fff; border-radius: var(--radius-lg);
  padding: 26px; max-width: 430px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.bank-card::before { content: ''; position: absolute; width: 210px; height: 210px; border-radius: 100%; background: rgba(255,255,255,.06); top: -80px; left: -60px; }
.bank-card .bc-bank { font-size: 13px; opacity: .85; margin-bottom: 22px; display: flex; justify-content: space-between; }
.bank-card .bc-number { font-size: clamp(19px, 3vw, 23px); font-weight: 800; letter-spacing: 2px; direction: ltr; text-align: center; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.bank-card .bc-holder { font-size: 13.5px; opacity: .9; display: flex; justify-content: space-between; align-items: center; }

/* ---------- نتیجه پرداخت ---------- */
.result-card { max-width: 560px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px 30px; text-align: center; }
.result-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 100%; display: grid; place-items: center; }
.result-icon.ok { background: var(--primary-100); color: var(--primary-700); }
.result-icon.fail { background: var(--danger-100); color: var(--danger-600); }
.result-icon.wait { background: var(--info-100); color: var(--info-600); }
.result-card h1 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.result-card > p { color: var(--ink-500); font-size: 13.5px; margin-bottom: 20px; }
.result-detail { background: var(--bg); border-radius: var(--radius); padding: 6px 18px; margin-bottom: 22px; text-align: right; }
.result-detail .row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.result-detail .row:last-child { border: none; }
.result-detail .row span { color: var(--ink-500); }
.result-detail .row b { font-weight: 700; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- صفحات احراز هویت ---------- */
.auth-wrap { display: grid; place-items: center; padding: 50px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 34px 30px; }
.auth-card .auth-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-card h1 { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--ink-500); font-size: 13px; margin-bottom: 24px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-500); }
.auth-alt a { color: var(--primary-700); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row img { border-radius: var(--radius-sm); border: 1.5px solid var(--line); height: 47px; }
.captcha-row .refresh { align-self: center; color: var(--ink-500); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.captcha-row .refresh:hover { background: var(--line-light); color: var(--primary-700); }
.forgot-link { font-size: 12.5px; color: var(--primary-700); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

/* ---------- پنل کاربری ---------- */
.panel-layout { display: grid; grid-template-columns: 265px 1fr; gap: 24px; align-items: start; padding: 28px 0; }
@media (max-width: 900px) { .panel-layout { grid-template-columns: 1fr; } }
.panel-side { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.panel-user { background: var(--grad-brand); color: #fff; padding: 22px 20px; display: flex; align-items: center; gap: 13px; }
.panel-avatar { width: 48px; height: 48px; border-radius: 100%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.panel-user b { display: block; font-size: 14.5px; }
.panel-user span { font-size: 12px; opacity: .85; direction: ltr; }
.panel-menu { padding: 10px; }
.panel-menu a, .panel-menu button {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: right;
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  transition: all .18s;
}
.panel-menu a:hover { background: var(--line-light); }
.panel-menu a.active { background: var(--primary-50); color: var(--primary-700); }
.panel-menu .danger { color: var(--danger-600); }
.panel-menu .danger:hover { background: var(--danger-100); }

.panel-card { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 20px; }
.panel-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 700px) { .overview-grid { grid-template-columns: 1fr; } }
.ov-card { border-radius: var(--radius-lg); padding: 20px; color: #fff; position: relative; overflow: hidden; }
.ov-card::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 100%; background: rgba(255,255,255,.12); top: -45px; left: -35px; }
.ov-card.g1 { background: var(--grad-brand); }
.ov-card.g2 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.ov-card.g3 { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.ov-card b { display: block; font-size: 24px; font-weight: 900; }
.ov-card span { font-size: 13px; opacity: .92; }

/* جدول عمومی */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; background: var(--surface); }
.table th { background: var(--bg); padding: 12px 15px; text-align: right; font-size: 12.5px; color: var(--ink-500); font-weight: 700; white-space: nowrap; }
.table td { padding: 13px 15px; border-top: 1px solid var(--line-light); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fafcfb; }
.table .num { font-variant-numeric: tabular-nums; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--ink-500); }
.empty-state svg { margin-bottom: 12px; color: var(--ink-400); }
.empty-state p { margin-bottom: 16px; font-size: 14px; }

/* ---------- صفحات ثابت ---------- */
.page-hero { background: var(--grad-brand); color: #fff; padding: 46px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 100%; background: rgba(255,255,255,.07); top: -130px; left: -80px; }
.page-hero::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 100%; background: rgba(255,255,255,.06); bottom: -90px; right: 12%; }
.page-hero h1 { font-size: clamp(21px, 3vw, 29px); font-weight: 900; margin-bottom: 6px; position: relative; z-index: 1; }
.page-hero p { opacity: .92; font-size: 14px; max-width: 640px; position: relative; z-index: 1; }
.content-card { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(22px, 4vw, 38px); margin: 28px 0; }
.content-card h2 { font-size: 17.5px; font-weight: 800; margin: 22px 0 10px; color: var(--primary-800); }
.content-card h2:first-child { margin-top: 0; }
.content-card p { color: var(--ink-700); font-size: 14px; line-height: 2.15; margin-bottom: 10px; }
.content-card ul.disc { list-style: disc; padding-right: 22px; color: var(--ink-700); font-size: 14px; line-height: 2.1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin: 28px 0; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-info-card ul { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.contact-info-card li { display: flex; gap: 13px; align-items: flex-start; font-size: 13.5px; }
.contact-info-card li .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-card li b { display: block; font-size: 13.5px; }
.contact-info-card li span { color: var(--ink-500); font-size: 13px; direction: ltr; unicode-bidi: plaintext; }

/* ---------- خطای ۴۰۴ ---------- */
.error-page { text-align: center; padding: 70px 20px; }
.error-page .code { font-size: clamp(70px, 14vw, 120px); font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.error-page h1 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.error-page p { color: var(--ink-500); margin-bottom: 22px; }

/* ---------- alert داخلی ---------- */
.alert { display: flex; gap: 11px; align-items: flex-start; border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; margin-bottom: 18px; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-success { background: var(--primary-50); color: var(--primary-800); border: 1px solid var(--primary-100); }
.alert-error   { background: #fff1f2; color: #9f1239; border: 1px solid var(--danger-100); }
.alert-info    { background: #f0f9ff; color: #075985; border: 1px solid var(--info-100); }
.alert a { font-weight: 700; text-decoration: underline; }

/* ---------- ابزارک ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--ink-500); }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 12px; } .flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* اسکرول‌بار */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c6d0da; border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* انیمیشن ورود بخش‌ها */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; }
}

/* ---------- نوار پیش‌نمایش قالب ---------- */
.tpl-preview-bar { position: sticky; top: 0; z-index: 300; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 9px 18px; background: #0f172a; color: #e2e8f0; font-size: 12.5px; }
.tpl-preview-bar b { color: #fbbf24; }
.tpl-preview-actions { display: flex; gap: 14px; }
.tpl-preview-bar a { color: #7dd3fc; font-weight: 600; }
.tpl-preview-bar a:hover { text-decoration: underline; }
