/* ============================================================
   آرکادو — تم تاریک گیمری
   ذغالی #0b0d12 · تأکید بنفش-نیلی #7c5cff · نئون فیروزه‌ای #00e0b8
   ============================================================ */

@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* رنگ‌ها */
  --bg: #0b0d12;
  --bg-2: #0f1219;
  --card: #12151d;
  --card-2: #171b25;
  --line: #262e3e;
  --line-soft: #1c2230;

  --ink: #e9edf6;
  --ink-2: #b3bbc9;
  --muted: #78818f;

  --brand: #7c5cff;
  --brand-dark: #6244e0;
  --brand-soft: rgba(124, 92, 255, .13);
  --brand-line: rgba(124, 92, 255, .42);

  --neon: #00e0b8;
  --neon-soft: rgba(0, 224, 184, .12);

  --ok: #2ee6a8;
  --warn: #ffc857;
  --danger: #ff5c7a;

  /* شکل و درخشش */
  --radius: 14px;
  --glow: 0 0 0 1px rgba(124, 92, 255, .16), 0 10px 34px rgba(0, 0, 0, .45);
  --glow-lg: 0 0 0 1px rgba(124, 92, 255, .30), 0 16px 48px rgba(124, 92, 255, .16);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -12%, rgba(124, 92, 255, .10), transparent 62%),
    radial-gradient(720px 420px at 4% -6%, rgba(0, 224, 184, .055), transparent 60%);
  background-repeat: no-repeat;
  direction: rtl;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* خط نئونی بالای صفحه */
body::before {
  content: "";
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--neon), var(--brand));
  background-size: 200% 100%;
  z-index: 60;
  pointer-events: none;
  opacity: .85;
}

::selection { background: rgba(124, 92, 255, .35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262c3a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #333b4d; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grow { flex: 1; }
.muted { color: var(--muted); }

/* ---------------- نوار بالا ---------------- */
.topbar {
  background: #080a0f;
  color: #8f97a6;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}
.topbar .sep { opacity: .35; }
.topbar .slogan { color: var(--ink-2); }
.topbar .admin-link {
  color: var(--ink-2);
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .2s;
}
.topbar .admin-link:hover {
  color: #fff;
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

/* ---------------- هدر ---------------- */
.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(124, 92, 255, .38);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.45; }
.brand-text strong {
  font-size: 19px;
  letter-spacing: -.2px;
  color: #fff;
}
.brand-text small { color: var(--muted); font-size: 11.5px; }
.brand-latin {
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--brand);
  font-size: 11px;
}

.search {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  width: 320px;
  max-width: 100%;
  transition: .2s;
}
.search:focus-within {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  padding: 6px 4px;
}
.search input::placeholder { color: var(--muted); }
.search button {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  cursor: pointer;
  transition: .2s;
}
.search button:hover { box-shadow: 0 0 18px rgba(124, 92, 255, .55); }

/* ---------------- منوی اصلی ---------------- */
.main-nav {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}
.nav-in {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
}
.nav-in::-webkit-scrollbar { display: none; }
.nav-in a {
  position: relative;
  color: var(--ink-2);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: .18s;
}
.nav-in a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .035);
}
.nav-in a.active {
  color: #fff;
  border-bottom-color: var(--brand);
  box-shadow: inset 0 -14px 20px -18px var(--brand);
}
.nav-in .nav-home { font-weight: 700; color: #fff; }

/* ---------------- نوار بازی‌ها ---------------- */
.game-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.game-bar-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.game-bar-in::-webkit-scrollbar { display: none; }
.game-bar-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  padding-inline-end: 10px;
  border-inline-end: 1px solid var(--line);
  margin-inline-end: 4px;
  flex: none;
}
.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  transition: .16s;
  flex: none;
}
.game-chip:hover {
  border-color: var(--brand-line);
  color: #fff;
  box-shadow: 0 0 14px rgba(124, 92, 255, .22);
}
.game-chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(124, 92, 255, .45);
}
.game-chip i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 0 6px;
}
.game-chip.active i { background: rgba(255, 255, 255, .2); color: #fff; }
.game-chip-all { font-weight: 700; border-style: dashed; color: var(--neon); }
.game-chip-all:hover { border-color: rgba(0, 224, 184, .5); color: var(--neon); }

/* ---------------- نوار خبر فوری ---------------- */
.ticker {
  background: var(--card);
  border-bottom: 1px solid var(--line-soft);
}
.ticker-in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  overflow: hidden;
}
.ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neon-soft);
  color: var(--neon);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 224, 184, .22);
}
.ticker-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}
.ticker-track { flex: 1; min-width: 0; overflow: hidden; }
.ticker-move {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: tick 45s linear infinite;
}
.ticker-move a {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker-move a:hover { color: var(--neon); }
.ticker-move .dot { color: var(--brand); opacity: .7; }
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-move { animation: none; }
}

/* ---------------- بدنه ---------------- */
.main { padding: 26px 20px 56px; }

.flash-wrap { margin-bottom: 18px; display: grid; gap: 8px; }
.flash {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  background: rgba(46, 230, 168, .10);
  color: var(--ok);
  border: 1px solid rgba(46, 230, 168, .25);
}
.flash.error {
  background: rgba(255, 92, 122, .10);
  color: var(--danger);
  border-color: rgba(255, 92, 122, .28);
}

/* ---------------- هیرو ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .22s;
}
.hero-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--glow-lg);
  transform: translateY(-2px);
}
.hero-link { display: flex; flex-direction: column; height: 100%; }
.hero-card img,
.hero-card .ph {
  width: 100%;
  height: 210px;
  flex: 1 1 auto;
  min-height: 210px;
  object-fit: cover;
}
.hero-main img,
.hero-main .ph { height: 320px; min-height: 320px; }
.hero-body { flex: 0 0 auto; padding: 16px 18px 20px; }
.hero-body h2 {
  font-size: 20px;
  line-height: 1.55;
  margin: 8px 0 6px;
  letter-spacing: -.2px;
  color: #fff;
}
.hero-main .hero-body h2 { font-size: 24px; }
.hero-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- چیدمان ---------------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
  white-space: nowrap;
  position: relative;
  padding-inline-start: 14px;
  color: #fff;
}
.section-head h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--neon));
  box-shadow: 0 0 10px rgba(124, 92, 255, .6);
}
.section-head .line { flex: 1; height: 1px; background: var(--line); }

.page-sub { margin: -8px 0 18px; color: var(--muted); font-size: 13.5px; }

/* متن مقدماتی صفحه‌ی بازی: ظاهری مثل یک لید خبری، نه بلوک تبلیغاتی */
.game-intro {
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent, #7c5cff);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card, #12141c) 88%, var(--accent, #7c5cff));
}
.game-intro p {
  margin: 0;
  color: var(--text, #e8eaf0);
  font-size: 14.5px;
  line-height: 2.1;
  text-align: justify;
}

/* ---------------- کارت‌ها ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .22s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: var(--glow-lg);
}
.card-link { display: block; height: 100%; }
.card img,
.card .ph { width: 100%; height: 165px; object-fit: cover; }
.card-body { padding: 14px 15px 16px; }
.card h3 {
  margin: 6px 0 6px;
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -.1px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover h3 { color: #fff; }
.card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.meta .dot { opacity: .5; }

.chip {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(124, 92, 255, .22);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.chip-lg { font-size: 12.5px; padding: 4px 14px; }

/* ---------------- جای‌نگهدار تصویر ---------------- */
.ph {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1b2030, #2a3145);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
}
.ph span {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.ph-wide { height: 340px; border-radius: var(--radius); }
.ph-gaming   { background: linear-gradient(135deg, #1e1445, #4527c9 55%, #130c2b); }
.ph-tech     { background: linear-gradient(135deg, #08313a, #0891b2 55%, #062028); }
.ph-mobile   { background: linear-gradient(135deg, #3b2408, #d97706 55%, #241505); }
.ph-hardware { background: linear-gradient(135deg, #1b2230, #475569 55%, #131824); }
.ph-esports  { background: linear-gradient(135deg, #3d0f14, #dc2626 55%, #24070a); }
.ph-review   { background: linear-gradient(135deg, #042f26, #00a884 55%, #032019); }

/* ---------------- ستون کنار ---------------- */
.side-col { display: grid; gap: 18px; position: sticky; top: 60px; }
.widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
}
.widget h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.widget h3::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--neon));
  box-shadow: 0 0 8px rgba(124, 92, 255, .5);
}
/* شماره‌های فارسی برای فهرست‌ها */
@counter-style fa {
  system: numeric;
  symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
  suffix: "";
}

.rank { display: grid; gap: 10px; counter-reset: r; }
.rank li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  counter-increment: r;
  font-size: 13.5px;
  line-height: 1.7;
}
.rank li::before {
  content: counter(r, fa);
  flex: 0 0 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
}
.rank a { flex: 1; min-width: 0; }
.rank a:hover { color: var(--brand); }
.rank .views { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }

.cat-list { display: grid; gap: 2px; }
.cat-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  transition: .16s;
}
.cat-list a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.subscribe p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* ---------------- دکمه‌ها ---------------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s;
}
.btn:hover { box-shadow: 0 0 22px rgba(124, 92, 255, .5); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--card-2);
  color: #fff;
  border-color: var(--brand-line);
  box-shadow: none;
}
.btn-block { width: 100%; }

/* ---------------- صفحه‌بندی ---------------- */
.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pager a, .pager .current {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13.5px;
  transition: .16s;
}
.pager a:hover { border-color: var(--brand-line); color: var(--brand); }
.pager .current {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(124, 92, 255, .4);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* ---------------- شبکه بازی‌ها ---------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.game-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: .18s;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: var(--glow-lg);
}
.game-card-name { font-weight: 700; font-size: 14.5px; color: #fff; }
.game-card-slug {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  direction: ltr;
  text-align: right;
}
.game-card-count { font-size: 12px; color: var(--neon); font-weight: 700; margin-top: 6px; }
.page-box code {
  background: #0a0c11;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12.5px;
  color: var(--neon);
  direction: ltr;
  display: inline-block;
}

/* ---------------- صفحه خبر ---------------- */
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px 34px;
  max-width: 860px;
  margin: 0 auto;
}
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 6px; opacity: .5; }

.post-title {
  font-size: 27px;
  line-height: 1.6;
  margin: 10px 0 10px;
  letter-spacing: -.4px;
  color: #fff;
}
.post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.post-figure { margin: 0 0 20px; }
.post-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}
.post-figure figcaption {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--brand-line);
}
.lead {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(124, 92, 255, .10), rgba(124, 92, 255, .02));
  border-inline-start: 3px solid var(--brand);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 22px;
}
.post-body { font-size: 16px; line-height: 2.05; color: var(--ink-2); }
.post-body p { margin: 0 0 18px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.tag {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: .16s;
}
.tag:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-line);
}

.related { max-width: 860px; margin: 30px auto 0; }

/* ---------------- صفحه ساده ---------------- */
.page-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  max-width: 800px;
  margin: 0 auto;
}
.page-box h1 { margin-top: 0; font-size: 23px; color: #fff; }
.page-box h2 { font-size: 17px; margin: 24px 0 8px; color: #fff; }
.page-box ul { list-style: disc; padding-inline-start: 22px; }
.page-box li { margin-bottom: 6px; }
.page-box.center { text-align: center; }
.err-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(124, 92, 255, .55);
}

/* ---------------- ورود ---------------- */
.auth-box {
  max-width: 380px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.auth-box h1 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.auth-box p { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.auth-box label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.auth-box input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  margin-bottom: 16px;
  outline: none;
  background: var(--bg);
  color: var(--ink);
  transition: .16s;
}
.auth-box input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------------- پنل مدیریت ---------------- */
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-head h1 { margin: 0; font-size: 21px; color: #fff; }
.admin-actions { display: flex; gap: 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.stat span { font-size: 22px; font-weight: 700; color: var(--brand); }
.stat small { color: var(--muted); font-size: 12px; }

.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td {
  padding: 11px 14px;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
}
.admin-table th {
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--card-2); }
.title-cell { max-width: 420px; }
.title-cell a:hover { color: var(--brand); }
.badge {
  background: rgba(255, 200, 87, .14);
  color: var(--warn);
  border: 1px solid rgba(255, 200, 87, .25);
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  margin-inline-start: 6px;
}
.status { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; }
.status.ok { background: rgba(46, 230, 168, .12); color: var(--ok); }
.status.draft { background: rgba(120, 129, 143, .14); color: var(--muted); }
.nowrap { white-space: nowrap; }
.mini {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 10px;
  font: inherit;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: .16s;
}
.mini:hover { border-color: var(--brand-line); color: var(--brand); }
.mini.danger:hover {
  background: rgba(255, 92, 122, .15);
  color: var(--danger);
  border-color: rgba(255, 92, 122, .45);
}
.inline { display: inline; }

/* ---------------- فرم خبر ---------------- */
.editor {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  max-width: 860px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); font-weight: 700; }
.field input[type="text"],
.field input[type="file"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: .16s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { line-height: 1.9; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.hint { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-field { display: flex; align-items: flex-end; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.preview { max-width: 240px; border-radius: 10px; border: 1px solid var(--line); }
.editor-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ==========================================================================
   پنل مدیریت — چیدمان نوارکناری، WordPress-class
   ========================================================================== */
.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 20px 0 40px;
}
.admin-side {
  position: sticky;
  top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line-soft); }
.admin-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--brand), #3a2b8f);
}
.admin-brand strong { display: block; font-size: 13.5px; color: #fff; }
.admin-brand small { display: block; font-size: 11px; color: var(--muted); }

.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink-2);
  border: 1px solid transparent;
  transition: .16s;
}
.admin-nav a:hover { background: var(--card-2); color: #fff; }
.admin-nav a.on { background: var(--brand-soft); border-color: var(--brand-line); color: #fff; }
.admin-nav .ic { width: 18px; text-align: center; opacity: .9; }
.admin-nav i {
  margin-inline-start: auto; font-style: normal; font-size: 11px;
  background: var(--card-2); color: var(--muted);
  padding: 1px 7px; border-radius: 999px;
}
.admin-nav i.warn { background: rgba(255, 176, 32, .16); color: #ffb020; }
.admin-side-foot { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.admin-side-foot .btn { flex: 1; }

.admin-main { min-width: 0; }
.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.admin-head h1 { margin: 0; font-size: 21px; color: #fff; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-head h2 { margin: 0; font-size: 15px; color: #fff; }

.notice {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 13px; color: var(--ink-2);
  background: var(--card-2); margin-bottom: 16px;
}
.notice.warn { border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .07); }
.notice.ok { border-color: rgba(46, 230, 168, .35); background: rgba(46, 230, 168, .07); }
.notice strong { color: #fff; }
.notice a { color: var(--brand); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; color: var(--ink-2);
  background: var(--card-2); transition: .16s;
}
.chip-link:hover { border-color: var(--brand-line); color: #fff; }
.chip-link i { font-style: normal; color: var(--brand); font-weight: 700; }

/* جدول پنل */
.admin-table .chk { width: 34px; text-align: center; }
.admin-table .chk input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.admin-table .title-cell { max-width: 380px; }
.admin-table .title-cell a { color: #fff; }
.admin-table .title-cell a:hover { color: var(--brand); }
.admin-table code { font-size: 12px; color: var(--ink-2); }
.badge {
  display: inline-block; margin-inline-start: 6px;
  font-size: 10.5px; padding: 1px 7px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.badge.warn { background: rgba(255, 176, 32, .16); color: #ffb020; }
.score {
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--card-2); color: var(--muted);
}
.score.good { background: rgba(46, 230, 168, .14); color: var(--ok); }
.score.mid  { background: rgba(255, 176, 32, .16); color: #ffb020; }
.score.bad  { background: rgba(255, 92, 92, .14); color: #ff7a7a; }

/* فیلتر و عملیات گروهی */
.admin-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin-bottom: 14px;
}
.admin-filters input[type="search"] { flex: 1 1 220px; min-width: 180px; }
.admin-filters select { width: auto; min-width: 140px; }
.bulk-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 10px; font-size: 12.5px; color: var(--muted);
}
.bulk-bar select {
  width: auto; padding: 6px 10px; font-size: 12.5px;
  background: var(--card-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
}

/* فرم در‌خطی (بازی‌ها و دسته‌ها) */
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.inline-form.tight { gap: 6px; margin: 0; }
.inline-form input[type="text"], .inline-form input[type="number"] {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; color: var(--ink);
  font-size: 12.5px; font-family: inherit;
}
.inline-form input[type="text"]:focus, .inline-form input[type="number"]:focus {
  outline: none; border-color: var(--brand-line);
}

/* ویرایشگر — دو ستونه: متن + پنل سئو */
.editor-body { max-width: 900px; }
.seo-panel {
  border: 1px solid var(--brand-line); border-radius: 14px;
  background: linear-gradient(180deg, var(--brand-soft), transparent 60%);
  padding: 16px; margin-top: 10px;
}
.seo-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.seo-panel-head h2 { margin: 0; font-size: 16px; color: #fff; }
.seo-panel .hint { margin-bottom: 14px; }
.seo-panel input, .seo-panel textarea { background: var(--card-2); }
.score-ring {
  font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  background: var(--card-2); color: var(--muted);
}
.score-ring.good { background: rgba(46, 230, 168, .14); color: var(--ok); }
.score-ring.mid  { background: rgba(255, 176, 32, .16); color: #ffb020; }
.score-ring.bad  { background: rgba(255, 92, 92, .14); color: #ff7a7a; }
.hint.over { color: #ffb020; }

.seo-checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
.seo-checks li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; padding: 6px 10px; border-radius: 8px;
  background: var(--card-2); border: 1px solid transparent;
}
.seo-checks li.ok { color: var(--ok); border-color: rgba(46, 230, 168, .25); }
.seo-checks li.no { color: #ff9a9a; border-color: rgba(255, 92, 92, .22); }
.seo-checks .tick { font-weight: 800; width: 14px; flex: none; }
.seo-checks .lbl { flex: 1; }
.seo-checks .val { color: var(--muted); font-size: 11.5px; }

.guide { margin: 0; padding-inline-start: 18px; font-size: 13px; color: var(--ink-2); line-height: 2.1; }
.guide strong { color: #fff; }
.guide code { background: var(--card-2); padding: 1px 6px; border-radius: 5px; font-size: 12px; direction: ltr; display: inline-block; }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-table .title-cell { max-width: 200px; }
}


/* ---------------- فوتر ---------------- */
.site-footer {
  background: #080a0f;
  color: #8b93a2;
  margin-top: 40px;
  padding-top: 34px;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 26px;
}
.footer-col strong { color: #fff; display: block; margin-bottom: 10px; font-size: 14px; }
.footer-col p { margin: 0; line-height: 1.9; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { transition: .16s; }
.footer-col a:hover { color: var(--neon); }
.copyright {
  border-top: 1px solid var(--line-soft);
  padding: 14px 20px;
  font-size: 12px;
  color: #5d6575;
  text-align: center;
}

/* ---------------- واکنش‌گرا ---------------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .side-col { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-main img, .hero-main .ph { height: 260px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .header-in { flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .search { width: 100%; margin-inline-start: 0; }
  .brand-text small { display: none; }
  .main { padding: 18px 14px 40px; }
  .post { padding: 20px 18px 26px; }
  .post-title { font-size: 21px; }
  .post-body { font-size: 15px; line-height: 1.95; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 22px; }
  .ticker-label { display: none; }
  .admin-head { flex-direction: column; align-items: stretch; }
}

/* جلوگیری از سرریز افقی در ستون‌های گرید */
.content-col, .side-col, .layout, .hero, .cards { min-width: 0; }
body { overflow-x: hidden; }
