/* ================= توکن‌های تم (معنایی) ================= */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-2: #14110f;
  --surface: #1c1917;
  --surface-2: #262220;
  --surface-3: #2f2926;
  --border: #35302c;
  --border-strong: #47403a;
  --text: #f6f2ec;
  --muted: #b3aaa1;
  --muted-2: #8b827a;
  --accent: #ff7a1a;          /* نارنجی شعله */
  --accent-2: #e0a642;        /* طلایی برنز بنر */
  --accent-ink: #ff9d52;      /* اکسنت متنی روی پس‌زمینه تیره */
  --accent-glow: rgba(255, 122, 26, 0.35);
  --grad: linear-gradient(135deg, #ff7a1a 0%, #e0a642 100%);
  --green: #34d399;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.35);
  --glass: rgba(18, 15, 13, 0.72);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf7f2;
  --bg-2: #f1ece3;
  --surface: #ffffff;
  --surface-2: #f7f3ec;
  --surface-3: #efe9df;
  --border: #e6ddd0;
  --border-strong: #d6caba;
  --text: #1f1813;
  --muted: #6b6058;
  --muted-2: #8a7f75;
  --accent: #e2670a;          /* نارنجی تیره‌تر برای کنتراست روی روشن */
  --accent-2: #b8860b;
  --accent-ink: #b8500a;      /* اکسنت متنی با کنتراست ۴.۵:۱ روی روشن */
  --accent-glow: rgba(226, 103, 10, 0.22);
  --grad: linear-gradient(135deg, #e2670a 0%, #c8890a 100%);
  --green: #059669;
  --shadow: 0 18px 50px rgba(80, 55, 30, 0.16);
  --shadow-sm: 0 6px 20px rgba(80, 55, 30, 0.10);
  --glass: rgba(255, 255, 255, 0.78);
}

/* ================= پایه ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

.container { width: min(1200px, 92%); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ================= هدر ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.3px; }
.logo-img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
.logo .mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--grad); border-radius: 12px; color: #fff;
  box-shadow: 0 8px 22px var(--accent-glow);
}
.logo b { font-weight: 800; }
.logo span { color: var(--accent-ink); }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a.navlink {
  padding: 9px 15px; border-radius: 999px; color: var(--muted);
  font-size: .95rem; font-weight: 500; transition: .2s;
}
.header-nav a.navlink:hover { color: var(--text); background: var(--surface-2); }

.icon-toggle {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center; transition: .2s;
}
.icon-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

.btn-admin {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: .92rem; font-weight: 600; transition: .2s;
}
.btn-admin:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ================= هیرو ================= */
.hero { position: relative; padding: 84px 0 66px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 320px at 50% -12%, rgba(255, 122, 26, 0.20), transparent 70%),
    radial-gradient(520px 320px at 82% 14%, rgba(224, 166, 66, 0.14), transparent 72%);
}
.hero-logo {
  width: 148px; height: 148px; object-fit: contain; margin: 0 auto 22px;
  filter: drop-shadow(0 12px 34px var(--accent-glow));
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: .85rem; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.28; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 620px; margin: 0 auto 32px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 13px 26px; border-radius: 999px; border: none; font-weight: 700; font-size: 1rem;
  transition: .25s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px var(--accent-glow); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.hero-stats { display: flex; gap: 44px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 1.9rem; font-weight: 800; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat span { color: var(--muted); font-size: .9rem; }

/* ================= نوار ابزار ================= */
.catalog { padding: 42px 0 84px; }
.toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.section-title { display: flex; flex-direction: column; gap: 4px; margin-inline-end: auto; }
.section-title h2 { font-size: 1.6rem; font-weight: 800; }
.section-title small { color: var(--muted); }

.search-box { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.search-box input {
  width: 100%; padding: 12px 44px 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; color: var(--text);
  font-family: inherit; font-size: .95rem; outline: none; transition: .2s;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.search-box .ico { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--muted); font-size: .9rem; font-weight: 500; transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px var(--accent-glow); }

/* ================= شبکه محصولات ================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: pointer; display: flex; flex-direction: column;
  opacity: 0; animation: rise .5s forwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #f5f5f4; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #cfcfca; background: var(--bg-2); }
.card-media .placeholder svg { width: 58px; height: 58px; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; backdrop-filter: blur(6px); }
.badge-featured { background: var(--grad); color: #fff; }
.badge-out { background: rgba(0,0,0,.62); color: #fff; top: auto; bottom: 12px; }
.card-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { color: var(--accent-ink); font-size: .78rem; font-weight: 700; }
.card-title { font-size: 1.06rem; font-weight: 700; line-height: 1.4; }
.card-desc { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.card-price { font-weight: 800; font-size: 1.05rem; }
.card-price.na { color: var(--muted); font-size: .85rem; font-weight: 600; }
.card-more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-size: .85rem; font-weight: 700; }

/* ================= خالی / لودینگ ================= */
.empty, .loading { grid-column: 1 / -1; text-align: center; padding: 66px 20px; color: var(--muted); }
.empty svg, .loading svg { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--border-strong); }
.spinner { width: 40px; height: 40px; margin: 0 auto 16px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= مودال محصول ================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; width: min(940px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); animation: pop .3s; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal-gallery { background: var(--bg-2); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-main-img { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f5f5f4; display: grid; place-items: center; }
.modal-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.modal-main-img .placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bg); }
.modal-main-img .placeholder svg { width: 74px; height: 74px; color: var(--border-strong); }
.modal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-thumbs img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: .2s; }
.modal-thumbs img.active, .modal-thumbs img:hover { border-color: var(--accent); }
.modal-info { padding: 28px; position: relative; }
.modal-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; transition: .2s; }
.modal-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.modal-info .cat { color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
.modal-info h2 { font-size: 1.7rem; font-weight: 800; margin: 6px 0 4px; }
.modal-info .brand { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.modal-price { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-2); border-radius: 12px; margin-bottom: 18px; }
.modal-price b { font-size: 1.5rem; }
.modal-price .na { color: var(--muted); font-size: 1rem; }
.stock-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-inline-start: auto; }
.stock-in { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.stock-out { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
.modal-desc { color: var(--text); opacity: .88; margin-bottom: 20px; white-space: pre-wrap; }
.specs-title { font-weight: 700; margin-bottom: 10px; }
.specs { display: flex; flex-direction: column; gap: 1px; border-radius: 12px; overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; padding: 11px 14px; background: var(--bg-2); font-size: .92rem; }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-weight: 600; }

/* ================= صفحه جزئیات (محصول/مقاله) ================= */
.detail-page { padding: 30px 0 80px; }
.back-bar { margin-bottom: 22px; }
.back-link-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: .92rem; transition: .2s;
}
.back-link-btn:hover { border-color: var(--accent); color: var(--accent-ink); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.detail-gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.detail-main-img { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #f5f5f4; display: grid; place-items: center; border: 1px solid var(--border); }
.detail-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.detail-main-img .placeholder svg { width: 90px; height: 90px; color: var(--border-strong); }
.detail-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; background: #f5f5f4; transition: .2s; }
.detail-thumbs img.active, .detail-thumbs img:hover { border-color: var(--accent); }

.detail-info .cat { color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.detail-info h1 { font-size: 2rem; font-weight: 800; margin: 8px 0 6px; line-height: 1.35; }
.detail-info .brand { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.detail-price { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--bg-2); border-radius: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.detail-price b { font-size: 1.8rem; }
.detail-price .na { color: var(--muted); font-size: 1.05rem; }
.detail-desc { color: var(--text); opacity: .9; margin-bottom: 26px; white-space: pre-wrap; line-height: 1.95; font-size: 1.02rem; }
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.detail-article-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; margin-bottom: 28px; background: var(--bg-2); border: 1px solid var(--border); }
.detail-article { max-width: 820px; margin: 0 auto; }
.detail-article h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.45; margin-bottom: 12px; }
.detail-article .content { color: var(--text); opacity: .92; white-space: pre-wrap; line-height: 2.1; font-size: 1.08rem; }

.detail-loading, .detail-error { text-align: center; padding: 90px 20px; color: var(--muted); }
.detail-error svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--border-strong); }

@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .detail-gallery { position: static; }
  .detail-info h1, .detail-article h1 { font-size: 1.6rem; }
}

/* ================= صفحه‌بندی ================= */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-weight: 600; font-size: .95rem; transition: .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.pagination button.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px var(--accent-glow); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .dots { color: var(--muted); padding: 0 4px; }

/* ================= بخش مقالات ================= */
.articles { padding: 20px 0 80px; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  opacity: 0; animation: rise .5s forwards;
}
.article-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.article-media { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-media img { transform: scale(1.05); }
.article-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--border-strong); }
.article-media .placeholder svg { width: 52px; height: 52px; }
.article-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-date { color: var(--muted-2); font-size: .78rem; display: inline-flex; align-items: center; gap: 5px; }
.article-title { font-size: 1.18rem; font-weight: 800; line-height: 1.5; }
.article-excerpt { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-more { margin-top: auto; padding-top: 8px; color: var(--accent-ink); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }

.article-modal-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 20px; background: var(--bg-2); }
.article-modal-body { padding: 30px; }
.article-modal-body h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.article-modal-body .article-date { margin-bottom: 18px; }
.article-modal-body .content { color: var(--text); opacity: .9; white-space: pre-wrap; line-height: 1.9; }

/* ================= بخش تماس با ما ================= */
.contact { padding: 70px 0; position: relative; }
.contact-head { text-align: center; margin-bottom: 42px; }
.contact-head h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.contact-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.contact-card .ci { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.contact-card .ci svg { width: 26px; height: 26px; }
.ci-telegram { background: linear-gradient(135deg, #29b6f6, #0088cc); }
.ci-instagram { background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 78%, #4f5bd5); }
.ci-basalam { background: var(--grad); }
.ci-phone { background: linear-gradient(135deg, var(--green), #0d9488); }
.contact-card .cmeta { min-width: 0; }
.contact-card .cmeta .label { font-size: .8rem; color: var(--muted); }
.contact-card .cmeta .val { font-weight: 700; font-size: 1rem; direction: ltr; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-card.wide { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; }
.contact-card.wide .left { display: flex; align-items: center; gap: 14px; }
.basalam-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 10px 26px var(--accent-glow); transition: .25s; }
.basalam-btn:hover { transform: translateY(-2px); }

/* ================= فوتر ================= */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 34px; color: var(--muted); background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; transition: .2s; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.footer-bottom { text-align: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .88rem; }

/* ================= توست ================= */
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%) translateY(100px); background: var(--surface-2); border: 1px solid var(--border); padding: 13px 22px; border-radius: 12px; box-shadow: var(--shadow); z-index: 200; transition: .3s; opacity: 0; display: flex; align-items: center; gap: 8px; }
.toast.show { transform: translateX(50%) translateY(0); opacity: 1; }
.toast.ok { border-color: var(--green); }
.toast.err { border-color: var(--accent); }

/* ================= واکنش‌گرا ================= */
@media (max-width: 768px) {
  .modal-grid { grid-template-columns: 1fr; }
  .header-nav a.navlink { display: none; }
  .hero { padding: 54px 0 40px; }
  .hero-logo { width: 116px; height: 116px; }
  .hero-stats { gap: 26px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ================= حرکت کاهش‌یافته ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .card { opacity: 1; }
}
