/* ============================================================
   دورهمی — استایلِ صفحاتِ عمومی/سئو + پنل ادمین
   روی توکن های tokens.css سوار است (همان هویتِ کندی پاپ)، ریسپانسیو.
   ============================================================ */

body.site {
  margin: 0;
  background: radial-gradient(120% 60% at 50% -8%, var(--cream-2), var(--cream) 55%);
  color: var(--ink);
  font-family: 'Vazirmatn', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
* { -webkit-tap-highlight-color: transparent; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
a { color: var(--grape); text-decoration: none; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,247,238,.86);
  backdrop-filter: blur(12px) saturate(160%); border-bottom: 1px solid rgba(52,32,74,.07); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; position: relative; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand .logo { width: 38px; height: 38px; display: block; }
.brand b { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: 24px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { padding: 8px 13px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.nav a:hover { background: rgba(124,77,255,.08); color: var(--grape); }
.nav .cta { background: linear-gradient(180deg,#9268ff,var(--grape)); color: #fff;
  box-shadow: 0 5px 0 var(--grape-d), 0 9px 16px rgba(92,48,214,.35);
  font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-size: 17px; padding: 9px 18px; border-radius: 14px; }
.nav .cta:hover { filter: brightness(1.05); color: #fff; background: linear-gradient(180deg,#9268ff,var(--grape)); }

/* همبرگرِ موبایل (CSS-only، بدون JS) */
.nav-burger { display: none; margin-inline-start: auto; cursor: pointer; width: 44px; height: 44px;
  border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { display: block; width: 22px; height: 2.5px; border-radius: 9px; background: var(--ink);
  transition: transform .2s, opacity .2s; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── hero ── */
.hero { padding: 64px 0 44px; text-align: center; }
.hero h1 { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: clamp(38px, 6vw, 58px);
  line-height: 1.15; margin: 0 0 14px; }
.hero h1 .pop { color: var(--grape); }
.hero p { max-width: 560px; margin: 0 auto 26px; color: var(--ink-soft); font-size: 17px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* دکمه های آب نباتی (نسخه ی لینک) */
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-size: 20px; color: #fff; padding: 14px 26px; border-radius: 20px;
  transition: transform .11s ease, box-shadow .11s ease; }
.btn:active { transform: translateY(4px); }
.btn-grape { background: linear-gradient(180deg,#9268ff,var(--grape));
  box-shadow: 0 7px 0 var(--grape-d), 0 14px 22px rgba(92,48,214,.40); color:#fff; }
.btn-yellow { background: linear-gradient(180deg,#ffd566,var(--yellow)); color: #5A3D00;
  box-shadow: 0 7px 0 var(--yellow-d), 0 14px 22px rgba(226,156,10,.38); }
.btn-ghost { background: #fff; color: var(--ink);
  box-shadow: 0 5px 0 rgba(52,32,74,.10), 0 12px 20px rgba(52,32,74,.10); }

/* ── sections ── */
.section { padding: 36px 0; }
.section > .wrap > h2 { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: 30px; margin: 0 0 6px; }
.section .kicker { color: var(--grape); font-weight: 800; font-size: 13px; margin: 0 0 2px; }
.section .lead { color: var(--ink-soft); margin: 0 0 22px; max-width: 620px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border-radius: var(--r-lg); padding: 22px 20px;
  box-shadow: 0 2px 0 rgba(255,255,255,.9) inset, 0 -6px 14px rgba(52,32,74,.05) inset,
    0 14px 26px rgba(52,32,74,.10), 0 4px 0 rgba(52,32,74,.06); }

/* کارتِ بازی (گرادیان از DB) */
.game-tile { border-radius: var(--r-lg); color: #fff; padding: 26px 22px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px; min-height: 170px; }
.game-tile h3 { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: 26px; margin: 0; }
.game-tile .tag { font-size: 13.5px; font-weight: 600; opacity: .95; }
.game-tile .meta { margin-top: auto; font-size: 12.5px; font-weight: 700; opacity: .9; }
.game-tile .more { position: absolute; inset-inline-end: 16px; top: 16px; background: rgba(255,255,255,.22);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; color: #fff; }

/* steps */
.step { text-align: center; }
.step .n { width: 52px; height: 52px; border-radius: 30%; margin: 0 auto 10px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-size: 24px;
  background: linear-gradient(150deg,#FF6FB0,#7C4DFF); box-shadow: 0 8px 16px rgba(124,77,255,.35); }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* پلن ها */
.plan { position: relative; text-align: center; }
.plan .badge-top { position: absolute; top: -12px; right: 50%; transform: translateX(50%);
  background: var(--yellow); color: #5A3D00; font-weight: 800; font-size: 11.5px; padding: 5px 12px;
  border-radius: 999px; box-shadow: 0 4px 10px rgba(226,156,10,.4); white-space: nowrap; }
.plan h3 { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: 24px; margin: 4px 0 2px; }
.plan .blurb { color: var(--ink-soft); font-size: 13px; min-height: 40px; }
.plan .price { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-size: 34px; }
.plan .price small { font-size: 14px; color: var(--ink-soft); font-family: 'Vazirmatn'; font-weight: 700; }
.plan .gift { display: inline-block; background: var(--mint); color: #fff; font-weight: 800; font-size: 12px;
  border-radius: 999px; padding: 4px 11px; margin-top: 6px; }

/* فهرست موضوع ها در landing بازی */
.topic { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; background: #fff;
  box-shadow: 0 6px 16px rgba(52,32,74,.08); }
.topic .glyph { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.topic b { font-size: 15px; }
.topic .sub { color: var(--ink-soft); font-size: 12.5px; }
.topic .counts { margin-inline-start: auto; color: var(--ink-faint); font-size: 12px; font-weight: 700; white-space: nowrap; }
.topic .vip { background: var(--yellow); color: #5A3D00; font-weight: 800; font-size: 11px; border-radius: 999px; padding: 3px 9px; }

/* بلاگ */
.post-card { display: block; color: var(--ink); }
.post-card h3 { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: 21px; margin: 0 0 6px; }
.post-card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 8px; }
.post-card time { color: var(--ink-faint); font-size: 12px; font-weight: 700; }
.prose { max-width: 720px; margin: 0 auto; font-size: 16.5px; line-height: 1.95; }
/* جعبه‌ی محتوای سئو در انتهای لندینگ‌ها: کلاسِ .prose عمداً حذف شده تا هم عرض
   به‌طورِ کاملِ .wrap برسد (هم‌عرضِ باکسِ سؤال‌های پرتکرار) و هم استایلِ prose روی
   محتوای این باکس اثر نگذارد. حالا فقط .card باقی می‌ماند (پس‌زمینه + پدینگ). */
.prose h2 { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: 25px; margin: 1.7em 0 .5em; }
.prose h3 { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: 20px; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.05em; }
.prose img { max-width: 100%; border-radius: 18px; }
.prose a { color: var(--grape-d); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-inline-start: 24px; }
.prose li { margin: 6px 0; line-height: 1.8; }
.prose ul li:before { content: "• "; color: var(--grape); font-weight: 800; margin-inline-end: 8px; }
.prose blockquote { border-inline-start: 4px solid var(--grape); margin: 1em 0; padding: 4px 18px; color: var(--ink-soft); }
.prose .lead { font-size: 18px; color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: 15px; overflow: auto;
  border-radius: 14px; box-shadow: 0 6px 16px rgba(52,32,74,.07); background: #fff; display: block; }
.prose table tbody { display: block; }
.prose table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border-bottom: 2px solid rgba(52,32,74,.06); }
.prose th, .prose td { padding: 11px 14px; text-align: start; border-bottom: 1px solid rgba(52,32,74,.08); }
.prose thead th { background: var(--grape); color: #fff; font-weight: 800; padding: 14px; }
.prose thead { display: block; margin-bottom: 8px; }
.prose thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; border: none; }
.prose tbody tr:nth-child(even) { background: rgba(124,77,255,.045); }
.prose tbody tr:last-child { border-bottom: 0; }

@media (max-width: 600px) {
  .prose table { display: block; width: 100%; overflow-x: auto; }
  .prose table thead { display: none; }
  .prose table tbody { display: block; }
  .prose table tr { display: block; padding: 14px; border: 2px solid rgba(52,32,74,.06); border-radius: 10px; margin-bottom: 12px; background: #fff; }
  .prose table td { display: flex; justify-content: space-between; padding: 8px 0; border: none; }
  .prose table td:before { content: attr(data-label); font-weight: 800; color: var(--grape); flex: 0 0 40%; }
}
.prose .note { background: linear-gradient(135deg, rgba(76,222,190,.06), rgba(76,222,190,.03));
  border-inline-start: 6px solid var(--mint); border-radius: 14px;
  padding: 16px 20px; margin: 0 0 1.3em; box-shadow: 0 6px 16px rgba(76,222,190,.08); border: 1px solid rgba(76,222,190,.15); }
.prose .note b { color: var(--mint-d); font-weight: 800; }
.prose .tldr { background: linear-gradient(135deg, rgba(124,77,255,.12), rgba(255,77,157,.08));
  border: 1.5px solid rgba(124,77,255,.22); border-radius: 16px; padding: 18px 22px; margin: 0 0 1.5em; box-shadow: 0 8px 20px rgba(124,77,255,.12); }
.prose .tldr b { color: var(--grape-d); font-weight: 800; }
.prose details { background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(124,77,255,.03));
  border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; border: 1px solid rgba(124,77,255,.1);
  box-shadow: 0 6px 16px rgba(52,32,74,.06); transition: all .2s ease; }
.prose details:hover { box-shadow: 0 8px 20px rgba(52,32,74,.10); }
.prose details[open] { background: linear-gradient(135deg, rgba(124,77,255,.08), rgba(255,77,157,.04)); }
.prose summary { font-weight: 800; cursor: pointer; color: var(--ink); display: flex; align-items: center; gap: 10px; user-select: none; }
.prose summary:before { content: "▶"; font-size: 12px; color: var(--grape); transition: transform .2s; }
.prose details[open] summary:before { transform: rotate(90deg); }
.prose summary::-webkit-details-marker { display: none; }
.prose details p { color: var(--ink-soft); margin: 10px 0 0; font-size: 15px; line-height: 1.8; }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--ink-faint); font-size: 13px; font-weight: 700; margin: 0 0 22px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.article-meta .author { color: var(--grape-d); }

/* FAQ */
.faq details { background: #fff; border-radius: 16px; padding: 14px 18px; margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(52,32,74,.07); }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: var(--ink-soft); margin: 10px 0 0; font-size: 14.5px; }

/* فوتر */
.site-footer { margin-top: 40px; padding: 30px 0 36px; border-top: 1px solid rgba(52,32,74,.08);
  text-align: center; color: var(--ink-soft); font-size: 13.5px; }
.site-footer .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer .links a { color: var(--ink-soft); font-weight: 700; }
.site-footer .tiny { color: var(--ink-faint); font-size: 12px; }

/* ── ادمین ── */
body.admin { background: #F4EFFA; }
.admin-shell { max-width: 880px; margin: 0 auto; padding: 24px 18px 60px; }
.admin-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.admin-bar h1 { font-family: 'Morabba', 'Vazirmatn', system-ui, sans-serif; font-weight: 400; font-size: 26px; margin: 0; }
.admin-bar nav { display: flex; gap: 6px; margin-inline-start: auto; }
.admin-bar nav a, .admin-bar nav button { border: none; background: #fff; cursor: pointer; padding: 8px 14px;
  border-radius: 12px; font-weight: 700; font-size: 13px; color: var(--ink); font-family: inherit;
  box-shadow: 0 4px 10px rgba(52,32,74,.08); }
.admin-bar nav a.on { background: var(--grape); color: #fff; }
.flash { background: #E8FBF4; color: var(--mint-d); border-radius: 14px; padding: 11px 16px;
  font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 22px rgba(52,32,74,.08); }
.tbl th, .tbl td { padding: 12px 14px; text-align: right; font-size: 14px; border-bottom: 1px solid #F0E9F7; }
.tbl th { background: #FBF8FE; color: var(--ink-soft); font-size: 12.5px; }
.tbl tr:last-child td { border-bottom: none; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 800; }
.pill-on { background: #E8FBF4; color: var(--mint-d); }
.pill-off { background: #F2EDF8; color: var(--ink-soft); }
.pill-vip { background: #FFF3D6; color: #8a6210; }
.frm label { display: block; font-weight: 800; font-size: 13px; margin: 14px 0 6px; }
.frm input[type=text], .frm input[type=password], .frm textarea, .frm select {
  width: 100%; box-sizing: border-box; border: 2px solid #EFE6F5; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 11px 14px; font-family: inherit; font-size: 15px; font-weight: 600; outline: none; }
.frm input:focus, .frm textarea:focus { border-color: var(--grape); box-shadow: 0 0 0 4px rgba(124,77,255,.12); }
.frm textarea { min-height: 220px; line-height: 1.9; }
.btn-sm { font-size: 15px; padding: 9px 16px; border-radius: 13px; }
.danger { color: var(--coral-d); }

/* ============================================================
   ریسپانسیو — موبایل (منوی همبرگری + فاصله/فونتِ تنظیم شده)
   ============================================================ */
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .site-header .wrap { gap: 10px; }
  /* منو به صورتِ کشویی زیرِ هدر */
  .nav {
    position: absolute; top: calc(100% + 1px); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px 14px 14px;
    background: rgba(255,247,238,.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(52,32,74,.08); box-shadow: 0 16px 28px rgba(52,32,74,.12);
    display: none;
  }
  .nav-toggle:checked ~ .nav { display: flex; animation: navdrop .18s ease; }
  @keyframes navdrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav a { padding: 13px 12px; font-size: 16px; border-radius: 12px; }
  .nav a:not(.cta) { border-bottom: 1px solid rgba(52,32,74,.06); }
  .nav .cta { text-align: center; margin-top: 8px; padding: 13px 18px; font-size: 18px; }

  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 42px); }
  .hero p { font-size: 15.5px; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { justify-content: center; width: 100%; box-sizing: border-box; font-size: 18px; padding: 15px 20px; }
  .hero .actions .btn { width: 100%; }

  .section { padding: 30px 0; }
  .section > .wrap > h2 { font-size: 26px; }

  .game-tile { min-height: 150px; padding: 22px 18px; }
  .game-tile h3 { font-size: 24px; }

  .step .n { width: 46px; height: 46px; }
  .topic { padding: 12px 13px; }
  .topic .counts { font-size: 11px; }
  .plan .price { font-size: 30px; }

  .prose { font-size: 16px; }
  .prose h1 { font-size: 30px !important; }
  .prose h2 { font-size: 21px; }
  .prose table tr { grid-template-columns: 1fr; }
  .prose thead tr { grid-template-columns: 1fr; }
  .prose table { font-size: 14px; }
  .prose li { margin: 8px 0; }
  .site-footer .links { gap: 12px 16px; }
}

@media (max-width: 460px) {
  .wrap { padding: 0 14px; }
  .brand b { font-size: 21px; }
  .hero h1 { font-size: clamp(27px, 9vw, 36px); }
  .section > .wrap > h2 { font-size: 23px; }
  .game-tile { min-height: 132px; }
  .topic { flex-wrap: wrap; }
  .topic .counts { margin-inline-start: 54px; width: 100%; text-align: start; }
}

/* در صورتِ ترجیحِ کاهشِ حرکت */
@media (prefers-reduced-motion: reduce) {
  .nav-toggle:checked ~ .nav { animation: none; }
  .btn, .nav-burger span { transition: none; }
}
