/*
Theme Name: Asarkade Unified Pro Theme
Theme URI: https://asarkade.ir
Author: تیم فنی اثرکده
Author URI: https://asarkade.ir
Description: قالب یکپارچه اثرکده برای وردپرس (پیش‌فرض حالت تاریک، هماهنگ با EDD و فروشندگی چندفروشنده).
Version: 6.6.12
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asarkade-unified
Tags: e-commerce, rtl-language-support, dark-mode, custom-logo, custom-menu, featured-images, full-width-template
*/

:root {
  /* Core Brand Tokens (dynamically synced by asarkade_palette_css) */
  --ak-brand: #8e51ff;
  --ak-brand-hover: #fb2c36;
  --ak-brand-dark: #6930cb;
  --ak-brand-alt: #7840de;
  --ak-brand-light: #ccafff;
  --ak-neon-start: #402fb5;
  --ak-neon-end: #cf30aa;

  /* Dark-First Default Surfaces */
  --ak-bg: #0d0f12;
  --ak-surface: #181b20;
  --ak-surface-soft: #22262d;
  --ak-border: rgba(255, 255, 255, 0.09);
  --ak-border-strong: rgba(255, 255, 255, 0.16);
  --ak-text: #f4f4f5;
  --ak-text-muted: #a1a1aa;
  --ak-header-bg: rgba(13, 15, 18, 0.92);
  --ak-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  --ak-radius: 16px;
  --ak-radius-sm: 12px;
  --ak-container: 1280px;

  /* Backward-compatible CSS variables from user's asarkade-theme */
  --bg-primary: var(--ak-bg);
  --bg-card: var(--ak-surface);
  --bg-card-hover: var(--ak-surface-soft);
  --text-main: var(--ak-text);
  --text-muted: var(--ak-text-muted);
  --accent-purple: var(--ak-neon-start);
  --accent-pink: var(--ak-neon-end);
  --accent-blue: #0284c7;
  --border-color: var(--ak-border);
  --header-bg: var(--ak-header-bg);
  --card-radius: var(--ak-radius);
}

html:not(.dark),
html[data-theme="light"],
body.light-theme {
  --ak-bg: #f6f4f9;
  --ak-surface: #ffffff;
  --ak-surface-soft: #f2eef8;
  --ak-border: #e7e1ee;
  --ak-border-strong: #d5cbe2;
  --ak-text: #1f1b29;
  --ak-text-muted: #57534e;
  --ak-header-bg: rgba(255, 255, 255, 0.94);
  --ak-shadow: 0 10px 28px rgba(40, 36, 51, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
html:not(.dark) {
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background-color: var(--ak-bg);
  color: var(--ak-text);
  direction: rtl;
  text-align: right;
  line-height: 1.85;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--ak-container);
  margin-inline: auto;
  padding-inline: clamp(14px, 2.5vw, 24px);
}

/* ========================================================
   Header (Pixel DOM hooks + Asarkade Design)
   ======================================================== */
.pixel-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ak-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ak-border);
}

.ak-header-inner{display:flex;flex-direction:column}
.ak-header-row-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;width:100%;padding-block:8px}
.ak-header-row-bottom{display:flex;align-items:center;min-height:50px;width:100%;border-top:1px solid var(--ak-border)}

.pixel-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pixel-logo img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.pixel-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ak-text);
}

/* Primary Navigation + Dropdown Fix */
.ak-primary-nav { flex-shrink: 0; }

.ak-primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ak-primary-nav li { position: relative; }

.ak-primary-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ak-text);
}

.ak-primary-nav > ul > li > a:hover,
.ak-primary-nav > ul > li.current-menu-item > a {
  background: var(--ak-surface-soft);
  color: var(--ak-brand-light);
}

html:not(.dark) .ak-primary-nav > ul > li > a:hover,
html:not(.dark) .ak-primary-nav > ul > li.current-menu-item > a {
  color: var(--ak-brand);
}

.ak-primary-nav ul.sub-menu,
.pixel-site-header ul.sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  min-width: 215px !important;
  padding: 8px !important;
  margin: 4px 0 0 !important;
  list-style: none !important;
  background: var(--ak-surface) !important;
  border: 1px solid var(--ak-border-strong) !important;
  border-radius: 14px !important;
  box-shadow: var(--ak-shadow) !important;
  z-index: 9999 !important;
}

.ak-primary-nav li:hover > ul.sub-menu,
.ak-primary-nav li:focus-within > ul.sub-menu,
.pixel-site-header li:hover > ul.sub-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.ak-primary-nav ul.sub-menu a,
.pixel-site-header ul.sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ak-text);
  white-space: nowrap;
}

.ak-primary-nav ul.sub-menu a:hover,
.pixel-site-header ul.sub-menu a:hover {
  background: var(--ak-surface-soft);
  color: var(--ak-brand-light);
}

html:not(.dark) .ak-primary-nav ul.sub-menu a:hover {
  color: var(--ak-brand);
}

/* Header Neon Search (Powered by suite/assets/blog-search.css) */
.ak-header-search {
  flex: 1 1 240px;
  max-width: 410px;
  min-width: 180px;
}

form.ak-articles-neon.ak-header-neon {
  margin: 0 !important;
}

form.ak-articles-neon.ak-header-neon input[type="search"] {
  height: 42px;
  font-size: 13.5px;
}

form.ak-articles-neon.ak-header-neon button.ak-blog__search-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

/* Header Action Tiles */
.ak-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ak-header-icon-btn,.pixel-cart > .button,.ak-mobile-menu-btn,.pixel-dark-mode{display:inline-flex;align-items:center;justify-content:center;position:relative;width:42px;height:42px;padding:0;border-radius:12px;border:1px solid var(--ak-border);background:var(--ak-surface-soft);color:var(--ak-text);cursor:pointer}
.ak-header-icon-btn svg,.pixel-cart svg,.ak-mobile-menu-btn svg,.pixel-dark-mode svg{width:19px;height:19px;flex-shrink:0}
.pixel-cart > .button{width:42px;min-width:42px;padding:0;gap:0}
.pixel-cart .ak-cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.22);font-size:11px;font-weight:800}
.ak-header-icon-btn:hover,.pixel-dark-mode:hover,.ak-mobile-menu-btn:hover{background:var(--ak-brand-alt);border-color:var(--ak-brand-alt);color:#fff}
.ak-notif-dot{position:absolute;top:8px;right:9px;width:9px;height:9px;border-radius:50%;background:#ef4444;border:2px solid var(--ak-surface-soft)}
.ak-header-search form.ak-articles-neon button svg{width:24px;height:24px}
/* nested submenus open to the left */
.ak-primary-nav ul.sub-menu ul.sub-menu{top:0!important;right:auto!important;left:100%!important;margin:0 4px 0 0!important}
html.dark body,body.dark-theme{background-color:var(--ak-bg)!important}
html.dark,html.dark #page,html.dark main,html.dark .site-content,html.dark #content{background-color:var(--ak-bg)}
.pixel-dark-mode .ak-icon-sun { display: inline-flex; }
.pixel-dark-mode .ak-icon-moon { display: none; }
html:not(.dark) .pixel-dark-mode .ak-icon-sun { display: none; }
html:not(.dark) .pixel-dark-mode .ak-icon-moon { display: inline-flex; }

.pixel-site-header-mobile { display: none; }

/* Mobile Drawer */
.ak-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.ak-mobile-drawer.is-open { display: block; }

.ak-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.ak-mobile-drawer__panel {
  position: relative;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--ak-surface);
  border-left: 1px solid var(--ak-border);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ak-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ak-border);
}

.ak-mobile-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ak-mobile-drawer__nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ak-surface-soft);
  font-size: 14px;
  font-weight: 600;
}

.ak-mobile-drawer__nav ul.sub-menu {
  margin-top: 6px;
  padding-right: 12px;
}

/* ========================================================
   Breadcrumb & Headings
   ======================================================== */
.ak-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ak-text-muted);
}

.ak-breadcrumb a:hover { color: var(--ak-brand-light); }
html:not(.dark) .ak-breadcrumb a:hover { color: var(--ak-brand); }

.ak-page-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 14px;
}

.ak-page-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--ak-text);
}

.ak-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  font-size: 13px;
  color: var(--ak-text-muted);
}

/* ========================================================
   Archive Filters & Product Cards (.pixel-download-grid-widget)
   ======================================================== */
.ak-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
}

.ak-filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ak-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ak-border);
  background: var(--ak-surface-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ak-text-muted);
}

.ak-filter-chip:hover,
.ak-filter-chip.is-active {
  background: var(--ak-brand);
  border-color: var(--ak-brand);
  color: #fff;
}

.ak-sort-select {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--ak-border);
  background: var(--ak-surface-soft);
  color: var(--ak-text);
  font-size: 13px;
}

.ak-products-grid,
.asarkade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
  margin-block: 10px 30px;
}

.pixel-download-grid-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.pixel-download-grid-widget:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ak-brand) 50%, transparent);
  box-shadow: var(--ak-shadow);
}

.pixel-download-grid-widget > div:first-child {
  position: relative;
  overflow: hidden;
  background: var(--ak-surface-soft);
}

.pixel-download-grid-widget > div:first-child figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.pixel-download-grid-widget > div:first-child img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pixel-download-grid-widget:hover > div:first-child img {
  transform: scale(1.03);
}

.ak-discount-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

.ak-discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ak-brand-hover);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pixel-download-grid-widget > div:last-child {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.pixel-download-grid-widget .ak-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1em;
  line-height: 1.55;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ak-text);
  margin: 0 0 12px;
}

.pixel-download-grid-widget .ak-card-title:hover {
  color: var(--ak-brand-light);
}

html:not(.dark) .pixel-download-grid-widget .ak-card-title:hover {
  color: var(--ak-brand);
}

.pixel-download-grid-widget > div:last-child > div.flex.justify-between {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--ak-border);
}

.pixel-download-grid-widget > div:last-child > div.flex.justify-between > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid var(--ak-border-strong);
  background: var(--ak-surface-soft);
  color: var(--ak-text);
  font-size: 12.5px;
  font-weight: 700;
}

.pixel-download-grid-widget > div:last-child > div.flex.justify-between > a:hover {
  background: var(--ak-brand);
  border-color: var(--ak-brand);
  color: #fff;
}

.ak-price-value {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ak-brand-light);
}

html:not(.dark) .ak-price-value {
  color: var(--ak-brand-dark);
}

/* ========================================================
   Single Download (Pixel 2-Column Layout + Asarkade Style)
   ======================================================== */
.ak-single-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ak-single-head h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.5;
}

.ak-en-subtitle {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ak-text-muted);
  direction: ltr;
  text-align: right;
}

.ak-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
  margin-block: 16px 48px;
}

.ak-surface-card {
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
  padding: 20px;
}

.ak-single-media {
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
  padding: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.ak-single-media img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: 12px;
  margin-inline: auto;
}

/* Handle different image orientations */
.ak-single-media img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

@media (max-width: 768px) {
  .ak-single-media {
    min-height: 300px;
  }
  .ak-single-media img {
    max-height: 400px;
  }
}

/* Pixel Tabs */
.pixel-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 20px 0 14px;
  padding: 8px;
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
}

.pixel-tabs-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ak-text-muted);
}

.pixel-tabs-nav a svg { width: 17px; height: 17px; }

.pixel-tabs-nav a.is-active,
.pixel-tabs-nav a:hover {
  background: color-mix(in srgb, var(--ak-brand) 16%, transparent);
  color: var(--ak-brand-light);
}

html:not(.dark) .pixel-tabs-nav a.is-active,
html:not(.dark) .pixel-tabs-nav a:hover {
  color: var(--ak-brand);
}

.ak-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--ak-surface-soft);
  font-size: 11.5px;
}

.ak-tab-panel { display: none; }
.ak-tab-panel.is-active { display: block; }

/* Sticky Sidebar (.pixel-sidebar) */
.pixel-sidebar {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ak-shop-box {
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
  overflow: hidden;
}

.ak-reactions-bar {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  padding: 16px 12px;
  background: var(--ak-surface-soft);
  border-bottom: 1px solid var(--ak-border);
}

.ak-reactions-divider { height: 42px; background: var(--ak-border); }

.pixel-like,
.pixel-favorites-list {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ak-text-muted);
}

.pixel-like svg,
.pixel-favorites-list svg {
  width: 26px;
  height: 26px;
}

.ak-purchase-wrap {
  padding: 18px;
  border-top: 1px dashed var(--ak-border);
}

.ak-purchase-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.ak-purchase-price-row span:first-child {
  color: var(--ak-text-muted);
}

.ak-purchase-price-row span:last-child {
  color: var(--ak-brand);
  font-size: 16px;
  font-weight: 700;
}

.ak-purchase-wrap .edd-submit,
.ak-purchase-wrap .edd-add-to-cart,
.ak-purchase-wrap .ak-btn-purchase,
.ak-btn-primary {
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ak-brand) !important;
  color: #fff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none !important;
}

.ak-purchase-wrap .edd-submit:hover,
.ak-purchase-wrap .edd-add-to-cart:hover,
.ak-purchase-wrap .ak-btn-purchase:hover,
.ak-btn-primary:hover {
  background: var(--ak-brand-dark) !important;
}

.ak-specs-list {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.ak-specs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--ak-border);
}

.ak-specs-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ak-specs-list span { color: var(--ak-text-muted); }

/* Vendor Box */
.ak-vendor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
  padding: 16px;
}

.ak-vendor-avatar-link {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ak-brand) 40%, transparent);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.ak-vendor-avatar-link:hover {
  transform: scale(1.05);
  border-color: var(--ak-brand);
}

.ak-vendor-avatar {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: cover;
}

.ak-vendor-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
}

.ak-vendor-name a {
  color: var(--ak-text);
  text-decoration: none;
  transition: color 0.2s;
}

.ak-vendor-name a:hover {
  color: var(--ak-brand);
}

.ak-vendor-medals-mini {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ak-medal-mini {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.ak-medal-mini svg,
.ak-medal-mini img {
  width: 100%;
  height: 100%;
}

.ak-blue-check-icon {
  display: inline-flex;
  color: #0ea5e9;
}

.ak-blue-check-icon svg { width: 17px; height: 17px; }

.ak-vendor-slogan {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ak-text-muted);
}

/* Short Link Box */
.ak-shortlink-box {
  background: var(--ak-surface);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
  padding: 16px;
}

.ak-shortlink-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ak-shortlink-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--ak-border);
  background: var(--ak-surface-soft);
  color: var(--ak-text);
  direction: ltr;
  text-align: left;
  font-size: 12.5px;
}

.ak-shortlink-row button {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--ak-border-strong);
  background: var(--ak-surface-soft);
  color: var(--ak-text);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ak-shortlink-row button:hover {
  background: var(--ak-brand);
  border-color: var(--ak-brand);
  color: #fff;
}

/* Related Section */
.ak-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 18px;
  font-size: 18px;
  font-weight: 800;
}

.ak-section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--ak-brand), var(--ak-neon-end));
}

/* Pagination */
.px-filter-pagination,
.ak-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.ak-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--ak-border);
  background: var(--ak-surface);
  font-size: 13.5px;
  font-weight: 700;
}

.ak-pagination .page-numbers.current,
.ak-pagination .page-numbers:hover {
  background: var(--ak-brand);
  border-color: var(--ak-brand);
  color: #fff;
}

/* ========================================================
   Footer & Mobile Fix Menu
   ======================================================== */
.pixel-site-footer {
  margin-top: 60px;
  background: var(--ak-surface);
  border-top: 1px solid var(--ak-border);
  padding: 42px 0 24px;
}

.ak-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ak-border);
}

.ak-footer-heading {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ak-text);
}

.ak-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ak-text-muted);
}

.ak-footer-links a:hover { color: var(--ak-brand-light); }

.ak-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--ak-text-muted);
}

.pixel-fix-menu-widget { display: none; }

/* Toast Notification */
.ak-toast {
  position: fixed;
  top: max(20px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 99999;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--ak-brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--ak-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ak-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================
   Responsive Rules
   ======================================================== */
@media (max-width: 1023px) {
  .pixel-site-header { display: none; }

  .pixel-site-header-mobile {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ak-header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ak-border);
    padding-block: 10px;
  }

  .ak-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ak-single-layout { grid-template-columns: 1fr; }
  .pixel-sidebar { position: static; }
  .ak-footer-grid { grid-template-columns: 1fr; }

  .pixel-fix-menu-widget {
    display: flex;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 999;
    height: 66px;
    background: var(--ak-surface);
    border-top: 1px solid var(--ak-border);
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  }

  .pixel-fix-menu-widget a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    font-size: 11px;
    font-weight: 600;
    color: var(--ak-text-muted);
  }

  .pixel-fix-menu-widget a.active,
  .pixel-fix-menu-widget a:hover {
    color: var(--ak-brand-light);
  }

  .pixel-fix-menu-widget svg { width: 20px; height: 20px; }

  body { padding-bottom: 72px; }
}

/* منوی موبایل: نماد و شبکه‌های اجتماعی */
.ak-mobile-drawer__namad { padding: 16px; display: flex; justify-content: center; }
.ak-mobile-drawer__social { padding: 12px 16px 24px; border-top: 1px solid rgba(127,127,127,.25); }
.ak-mobile-drawer__title { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
