/* ZyroMC — دو پوسته‌ی کاملاً جدا (تاریک / روشن) با پالت آبی و سفید */

:root {
  --f-body: 'Vazirmatn'; --f-display: 'Vazirmatn'; --f-title: 'Vazirmatn'; --f-deco: 'Vazirmatn';
  --ease: cubic-bezier(.2, .8, .2, 1); --r: 18px; --hdr: 68px; --max: 1180px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d1a; --bg2: #0b1426; --surface: #0f1b33; --surface2: #162646; --line: rgba(140, 175, 255, .15);
  --text: #eef4ff; --muted: #a3b5d6; --accent: #3b82f6; --accent-dark: #1d4fb8; --accent-2: #7cc0ff; --on-accent: #ffffff;
  --link: #8dbfff; --glow: rgba(59, 130, 246, .38); --shadow: 0 18px 50px rgba(0, 0, 0, .5); --head-bg: rgba(7, 13, 26, .82);
  --hero-bg: radial-gradient(900px 520px at 85% 0%, rgba(59, 130, 246, .26), transparent 62%), radial-gradient(700px 500px at 5% 45%, rgba(56, 189, 248, .14), transparent 62%), linear-gradient(#070d1a, #0a1327 70%, #070d1a);
  --cube-top: #78b4ff; --cube-side: linear-gradient(145deg, #3b82f6, #1d3f9e); --cube-bottom: #10285f;
  --ok: #4fd18b; --warn: #3b82f6; --bad: #ff6b7a;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f9ff; --bg2: #eaf1fd; --surface: #ffffff; --surface2: #eef4ff; --line: rgba(15, 40, 90, .13);
  --text: #0c1a33; --muted: #465a7c; --accent: #2563eb; --accent-dark: #1a46b3; --accent-2: #0ea5e9; --on-accent: #ffffff;
  --link: #1d4ed8; --glow: rgba(37, 99, 235, .25); --shadow: 0 18px 40px rgba(30, 64, 140, .14); --head-bg: rgba(246, 249, 255, .88);
  --hero-bg: radial-gradient(800px 460px at 85% 0%, rgba(59, 130, 246, .2), transparent 62%), linear-gradient(#dbe8ff, #eef4ff 60%, #f6f9ff);
  --cube-top: #a8d1ff; --cube-side: linear-gradient(145deg, #4f8dff, #2559d4); --cube-bottom: #1d4cb8;
  --ok: #12873f; --warn: #12873f; --bad: #c9283b;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
html.menu-open, html.modal-open { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 1rem/1.9 var(--f-body), 'Vazirmatn', Tahoma, sans-serif; overflow-x: hidden; text-rendering: optimizeLegibility;
}
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; line-height: 1.5; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform: scaleX(0); transform-origin: right; pointer-events: none; }

/* ── دکمه‌ها: بلوکی مثل ماینکرفت ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1.5rem; border: 0; border-radius: 12px;
  font-weight: 700; font-size: .98rem; line-height: 1.5; position: relative; transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .2s; user-select: none;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-dark), 0 14px 28px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--accent-dark), 0 18px 34px var(--glow); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-ghost:active { transform: translateY(3px); box-shadow: none; }
.btn-danger { background: transparent; border: 1px solid var(--bad); color: var(--bad); }
.btn-sm { padding: .4rem .95rem; font-size: .88rem; border-radius: 10px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── هدر ── */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--hdr); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: var(--head-bg); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .12); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 1.2rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: .2px; direction: ltr; }
.logo .z { color: #4da3ff; } .logo .m { color: #fff; }
[data-theme="light"] .logo .z { color: #2563eb; }
[data-theme="light"] .logo .m { -webkit-text-stroke: 2.4px #12306e; paint-order: stroke fill; }
.nav { display: flex; gap: .25rem; margin-inline-start: 1rem; }
.nav a { position: relative; padding: .45rem .95rem; border-radius: 10px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a::after { content: ''; position: absolute; inset-inline: 22% 22%; bottom: 3px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.theme-btn .sun, .theme-btn .moon { grid-area: 1/1; transition: transform .5s var(--ease), opacity .3s; }
[data-theme="dark"] .theme-btn .sun { transform: rotate(-90deg) scale(.3); opacity: 0; }
[data-theme="light"] .theme-btn .moon { transform: rotate(90deg) scale(.3); opacity: 0; }
.pop-wrap { position: relative; }
.popover {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 250px; padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top left; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 130;
}
.popover.open { opacity: 1; transform: none; pointer-events: auto; }
.pop-title { font-family: var(--f-title); font-weight: 700; margin-bottom: .5rem; font-size: .95rem; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .9rem; }
.seg button, .pop-link { border: 1px solid var(--line); background: var(--surface2); border-radius: 10px; padding: .45rem .6rem; text-align: center; transition: border-color .2s, background-color .2s; }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface2)); font-weight: 700; }
.pop-link { display: flex; align-items: center; gap: .6rem; width: 100%; margin-bottom: .4rem; text-align: start; }
.pop-link:hover { border-color: var(--accent); }
.acc-btn { display: inline-flex; align-items: center; gap: .5rem; padding: 0 .9rem 0 .5rem; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.acc-btn .av { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--f-display); font-size: 1rem; }
.nav-cta { height: 42px; padding: 0 1.1rem; }

/* ── منوی همبرگری: پنل شناور، گرد و مینیمال زیر هدر (با «بک» مرورگر بسته می‌شود) ── */
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 16px; }
.burger { position: relative; display: block; width: 18px; height: 12px; }
.burger i { position: absolute; inset-inline-start: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), width .3s var(--ease), top .45s var(--ease); }
.burger i:nth-child(1) { top: 1px; width: 100%; }
.burger i:nth-child(2) { top: 9px; width: 60%; }
.menu-open .menu-toggle { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.menu-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 5px; width: 100%; transform: rotate(-45deg); }

.drawer-bg { position: fixed; inset: 0; z-index: 80; background: rgba(3, 8, 20, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
[data-theme="light"] .drawer-bg { background: rgba(12, 26, 51, .26); }
.menu-open .drawer-bg { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.menu-open .site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }

.drawer {
  position: fixed; z-index: 90; top: calc(var(--hdr) + 6px); inset-inline-end: 12px; width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - var(--hdr) - 24px); max-height: calc(100dvh - var(--hdr) - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px) scale(.97); transform-origin: top left;
  transition: transform .45s var(--ease), opacity .25s, visibility 0s .45s;
}
.menu-open .drawer { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: transform .45s var(--ease), opacity .25s, visibility 0s; }

.d-links { display: grid; gap: 2px; }
.d-links a {
  display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 18px; border-radius: 20px;
  font-size: 1.06rem; font-weight: 600; color: var(--muted);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), background-color .2s, color .2s;
}
.menu-open .d-links a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 90ms), calc(var(--i, 0) * 35ms + 90ms), 0s, 0s; }
.d-links a:hover { background: var(--surface2); color: var(--text); }
.d-links a.active { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, var(--surface2)); }
.d-links a.active::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

.d-bottom { display: grid; gap: 8px; margin-top: 8px; padding: 8px; border-radius: 22px; background: var(--surface2); }
.d-acc { display: grid; gap: 6px; }
.d-acc:empty { display: none; }
.d-acc a, .d-acc button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--surface); font-weight: 700; font-size: .98rem; color: var(--text); transition: transform .15s var(--ease), background-color .2s; }
.d-acc a:hover, .d-acc button:hover { transform: translateY(-1px); }
.d-acc a:only-child { background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-dark); }
.d-acc button { color: var(--bad); }
.d-acc .d-name { padding: 2px 8px 4px; text-align: center; font-size: .85rem; color: var(--muted); }

@media (min-width: 981px) { .drawer, .drawer-bg { display: none; } }
@media (prefers-reduced-motion: reduce) { .d-links a { transition-delay: 0s !important; transform: none; } }

/* ── هیرو ── */
.hero { position: relative; margin-top: calc(var(--hdr) * -1); padding: calc(var(--hdr) + 3.5rem) 0 6.5rem; background: var(--hero-bg); overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; min-height: 520px; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 1rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); font-size: .9rem; margin-bottom: 1.1rem; }
.eyebrow i, .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2s infinite; flex: none; }
.live-dot.off { background: var(--bad); animation: none; } .live-dot.unk { background: var(--warn); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.25; margin-bottom: 1rem; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(3deg); animation: wordIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
html:not(.js) .hero h1 .w { opacity: 1; transform: none; animation: none; }
.hero-copy > p { font-size: 1.1rem; color: color-mix(in srgb, var(--text) 82%, transparent); max-width: 34ch; margin-bottom: 1.4rem; }
.ip-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 440px; padding: .7rem .8rem .7rem 1rem; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 1.3rem; }
.ip-box small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.ip-box strong { font-size: 1.25rem; letter-spacing: .5px; font-family: 'Vazirmatn', monospace; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { position: relative; height: 440px; display: grid; place-items: center; --mx: 0; --my: 0; }
.hero-art .stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * 12px), 0); transition: transform .25s ease-out; }
.hero-art::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 68%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .75; } }
.float-tag { position: absolute; padding: .5rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.tag-a { top: 12%; inset-inline-end: 2%; } .tag-b { bottom: 14%; inset-inline-start: 0; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* مکعب سه‌بعدی (فقط transform؛ روی GPU) */
.scene { width: var(--s, 210px); height: var(--s, 210px); perspective: 1100px; --h: calc(var(--s, 210px) / 2); }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(30deg); animation: spin var(--t, 24s) linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotateX(-22deg) rotateY(390deg); } }
.cube > i {
  position: absolute; inset: 0; display: grid; place-items: center; border: 2px solid rgba(0, 0, 0, .28); image-rendering: pixelated;
  background: linear-gradient(rgba(0, 0, 0, var(--sh, 0)), rgba(0, 0, 0, var(--sh, 0))), url(../images/noise.svg), var(--cube-side);
  background-size: auto, calc(var(--s, 210px) / 4) calc(var(--s, 210px) / 4), auto;
}
.cube > i:nth-child(1) { transform: translateZ(var(--h)); }
.cube > i:nth-child(2) { transform: rotateY(90deg) translateZ(var(--h)); --sh: .18; }
.cube > i:nth-child(3) { transform: rotateY(180deg) translateZ(var(--h)); --sh: .32; }
.cube > i:nth-child(4) { transform: rotateY(-90deg) translateZ(var(--h)); --sh: .12; }
.cube > i:nth-child(5) { transform: rotateX(90deg) translateZ(var(--h)); background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)), url(../images/noise.svg), var(--cube-top); background-size: auto, calc(var(--s, 210px) / 4) calc(var(--s, 210px) / 4), auto; }
.cube > i:nth-child(6) { transform: rotateX(-90deg) translateZ(var(--h)); background: url(../images/noise.svg), var(--cube-bottom); background-size: calc(var(--s, 210px) / 4) calc(var(--s, 210px) / 4), auto; }
.cube > i:nth-child(1) svg { width: 42%; height: 42%; fill: #fff; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .3)); }
.mini { position: absolute; }
.mini.m1 { --s: 62px; --t: 14s; top: 8%; inset-inline-start: 12%; animation: orbit 9s ease-in-out infinite; }
.mini.m2 { --s: 44px; --t: 11s; bottom: 12%; inset-inline-end: 12%; animation: orbit 11s ease-in-out infinite reverse; }
.mini.m3 { --s: 34px; --t: 9s; top: 22%; inset-inline-end: 6%; animation: orbit 8s ease-in-out -3s infinite; }
@keyframes orbit { 50% { transform: translate3d(0, -22px, 0); } }
.paused .cube, .paused .mini, .paused .fx *, .paused .float-tag, .paused .marq-track { animation-play-state: paused !important; }

/* دکور اختصاصی هر پوسته */
.fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ember { position: absolute; bottom: -12px; width: var(--z, 6px); height: var(--z, 6px); background: var(--accent-2); box-shadow: 0 0 10px var(--accent); opacity: 0; animation: rise var(--d, 9s) linear infinite; animation-delay: var(--dl, 0s); inset-inline-start: var(--x, 50%); }
.ember:nth-child(3n) { background: var(--accent); }
[data-theme="light"] .ember { box-shadow: none; }
@keyframes rise { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 12% { opacity: .8; } 100% { transform: translate3d(var(--dx, 30px), -620px, 0) rotate(180deg); opacity: 0; } }
.hero-edge { position: absolute; inset-inline: 0; bottom: -1px; height: 24px; background: var(--bg); -webkit-mask: url(../images/edge.svg) repeat-x bottom / 160px 24px; mask: url(../images/edge.svg) repeat-x bottom / 160px 24px; }

/* ── نوار متحرک ── */
.marq { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); padding: .85rem 0; direction: ltr; }
.marq-track { display: flex; width: max-content; gap: 3rem; animation: marq 38s linear infinite; will-change: transform; }
.marq:hover .marq-track { animation-play-state: paused; }
.marq-track span { display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap; font-weight: 700; color: var(--muted); direction: rtl; }
.marq-track span::after { content: ''; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── بخش‌ها ── */
.section { padding: 5rem 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.sec-head h2, .center-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.kicker { font-size: .95rem; font-weight: 600; color: var(--link); margin-bottom: .3rem; display: block; }
.center-head { text-align: center; margin-bottom: 2.6rem; }
.link-more { font-weight: 700; color: var(--link); display: inline-flex; gap: .4rem; align-items: center; }
.link-more:hover .ico { transform: translateX(-4px); } .link-more .ico { transition: transform .25s var(--ease); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

.stats { padding-top: 2.6rem; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); display: grid; gap: .1rem; }
.stat strong { font-weight: 800; font-size: 2.1rem; line-height: 1.3; color: var(--accent); display: flex; align-items: center; gap: .6rem; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ── گیم‌مودها: چیدمان ثابت و منظم ── */
.modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
  align-items: stretch;
}

.mode {
  position: relative;
  grid-column: auto !important;
  width: 100%;
  min-width: 0;
  min-height: 250px;
  padding: 1.6rem;
  box-sizing: border-box;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .25s ease-out, border-color .3s;
}

.mode::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: var(--c);
}

.mode::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  inset-inline-end: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%);
  transition: transform .5s var(--ease);
  pointer-events: none;
}

.mode:hover {
  border-color: var(--c);
}

.mode:hover::after {
  transform: scale(1.4);
}

.mode:hover small {
  color: var(--c);
  font-weight: 700;
}

.mode h3 {
  font-size: 1.7rem;
}

.mode p {
  color: var(--muted);
  max-width: 36ch;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .mode small {
  filter: brightness(.7);
}

/* تبلت */
@media (max-width: 980px) {
  .modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode {
    grid-column: auto !important;
  }
}

/* موبایل */
@media (max-width: 560px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }

  .mode {
    grid-column: auto !important;
  }
}

@media (hover: none) {
  .mode {
    transform: none !important;
  }
}

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feat { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.feat:hover { transform: translateY(-5px); border-color: var(--accent); }
.feat h3 { font-size: 1.15rem; } .feat p { color: var(--muted); font-size: .94rem; line-height: 1.8; }

.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.step { display: flex; gap: 1rem; padding: 1rem 0; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 21px; top: 3.6rem; bottom: -.4rem; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.step > b { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-family: var(--f-display); font-size: 1.3rem; box-shadow: 0 4px 0 var(--accent-dark); }
.step h3 { font-size: 1.15rem; } .step p { color: var(--muted); }
.connect { padding: 1.8rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 1rem; position: relative; overflow: hidden; }
.connect::before { content: ''; position: absolute; inset: 0; background: var(--hero-bg); opacity: .35; z-index: 0; }
.connect > * { position: relative; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.kv small { color: var(--muted); display: block; line-height: 1.5; } .kv b { font-size: 1.15rem; direction: ltr; unicode-bidi: isolate; }

.community { margin-block: 1rem; }
.comm-box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.6rem; border-radius: 28px; background: linear-gradient(120deg, var(--accent-dark), var(--accent)); color: #fff; position: relative; overflow: hidden; }
.comm-box::after { content: ''; position: absolute; inset: 0; background: url(../images/noise.svg); opacity: .5; pointer-events: none; }
.comm-box > * { position: relative; z-index: 1; }
.comm-box h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); } .comm-box p { opacity: .9; max-width: 44ch; }
.comm-box .btn-ghost { color: var(--text); }
.comm-box .btn-ghost { box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }

/* خبر صفحه‌ی اصلی: فقط یک خبر، متن نیمه‌کاره با محو شدن */
.news-hero { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .3s; min-height: 300px; }
.news-hero:hover { transform: translateY(-5px); border-color: var(--accent); }
.news-art { position: relative; background: var(--surface2); overflow: hidden; min-height: 220px; }
.news-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-hero:hover .news-art img { transform: scale(1.06); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: var(--accent); opacity: .85; background: var(--hero-bg); }
.news-info { padding: 2rem; display: flex; flex-direction: column; gap: .7rem; }
.meta { display: flex; gap: .7rem; align-items: center; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.tagc { padding: .15rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--link); font-weight: 700; font-size: .82rem; }
.news-info h3 { font-size: 1.7rem; line-height: 1.5; }
.cut { position: relative; max-height: 6.4em; overflow: hidden; color: var(--muted); -webkit-mask-image: linear-gradient(#000 25%, transparent); mask-image: linear-gradient(#000 25%, transparent); }
.read-cta { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--link); }
.news-hero:hover .read-cta .ico { transform: translateX(-6px); } .read-cta .ico { transition: transform .3s var(--ease); }
.empty { padding: 2.5rem; text-align: center; border: 2px dashed var(--line); border-radius: var(--r); color: var(--muted); }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.faq-list { display: grid; gap: .8rem; }
details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
details[open] { border-color: var(--accent); }
summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .35s var(--ease); }
details[open] summary::after { transform: rotate(135deg); }
details p { padding: 0 1.3rem 1.2rem; color: var(--muted); animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

.footer { margin-top: 4rem; padding: 3.2rem 0 1.5rem; background: var(--bg2); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { margin-bottom: .7rem; } .foot-grid a { display: block; color: var(--muted); padding: .15rem 0; transition: color .2s, transform .2s; }
.foot-grid a:hover { color: var(--accent); transform: translateX(-4px); }
.foot-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; flex-wrap: wrap; gap: .5rem; }

.toast { position: fixed; inset-inline: 0; bottom: 24px; margin-inline: auto; width: max-content; max-width: 90vw; padding: .75rem 1.3rem; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; z-index: 300; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: none; }

/* ── صفحه‌های داخلی ── */
.page-hero { padding: 3.4rem 0 2rem; position: relative; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 50%; width: 100vw; margin-left: -50vw; height: 280px; background: var(--hero-bg); opacity: .55; z-index: -1; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); } .page-hero p { color: var(--muted); max-width: 52ch; margin-top: .5rem; }
.notice { padding: 1rem 1.3rem; border-radius: 14px; border: 1px dashed var(--accent-2); background: color-mix(in srgb, var(--accent-2) 10%, transparent); margin-bottom: 1.5rem; }
.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.prod { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 1.3rem; display: grid; gap: .6rem; transition: transform .3s var(--ease), border-color .3s; }
.prod:hover { transform: translateY(-6px); border-color: var(--c); }
.prod.hot { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.prod-art { height: 150px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 2.4rem; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #000)); position: relative; overflow: hidden; text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.prod-art::after { content: ''; position: absolute; inset: 0; background: url(../images/noise.svg); opacity: .6; }
.prod .price b { color: var(--accent); }
.rules { display: grid; gap: .9rem; counter-reset: r; }
.rule { display: flex; gap: 1.1rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.rule:hover { border-color: var(--accent); transform: translateX(-4px); }
.rule::before { counter-increment: r; content: counter(r, persian); font-weight: 800; font-size: 1.7rem; color: var(--accent); min-width: 2.2rem; }
.rule p { color: var(--muted); }
@counter-style persian { system: numeric; symbols: '۰' '۱' '۲' '۳' '۴' '۵' '۶' '۷' '۸' '۹'; }
.narrow { max-width: 820px; }

/* ── خبرها ── */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.chip { padding: .35rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--accent); } .chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; }
.ncard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.ncard:hover { transform: translateY(-6px); border-color: var(--accent); }
.ncard .news-art { min-height: 0; aspect-ratio: 16/9; } .ncard:hover .news-art img { transform: scale(1.06); }
.ncard .body { padding: 1.2rem; display: grid; gap: .5rem; } .ncard h3 { font-size: 1.2rem; } .ncard p { color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article { max-width: 780px; margin-inline: auto; }
.article .cover { border-radius: 24px; overflow: hidden; margin-bottom: 1.8rem; box-shadow: var(--shadow); } .article .cover img { width: 100%; max-height: 420px; object-fit: cover; }
.article h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: .6rem 0; }
.prose { font-size: 1.08rem; line-height: 2.2; } .prose p { margin-bottom: 1.2rem; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pn a { padding: 1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; } .pn a:hover { border-color: var(--accent); }
.pn small { color: var(--muted); display: block; } .pn a:last-child { text-align: left; }
.skel { background: linear-gradient(100deg, var(--surface) 30%, var(--surface2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shine 1.4s linear infinite; border-radius: 14px; min-height: 120px; }
@keyframes shine { to { background-position: -200% 0; } }

/* ── فرم‌ها ── */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field small { color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: .75rem 1rem; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; line-height: 1.6;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
input[dir=ltr] { text-align: left; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.err { color: var(--bad); font-weight: 500; min-height: 1.4em; margin-bottom: .6rem; }
.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; } .meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s var(--ease), background-color .3s; }

/* ── ورود / ثبت‌نام ── */
.auth { display: grid; grid-template-columns: 1fr 1.05fr; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); margin-block: 2.5rem; min-height: 560px; }
.auth-art { position: relative; background: var(--hero-bg); display: grid; place-items: center; padding: 2rem; overflow: hidden; text-align: center; isolation: isolate; }
.auth-art h2 { font-size: 2.1rem; margin-top: 1.6rem; } .auth-art p { color: color-mix(in srgb, var(--text) 78%, transparent); max-width: 28ch; margin: .4rem auto 0; }
.auth-form { padding: 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 1.6rem; position: relative; }
.tabs button { position: relative; z-index: 1; padding: .6rem; border: 0; background: none; font-weight: 700; border-radius: 11px; transition: color .25s; }
.tabs button[aria-selected="true"] { color: var(--on-accent); }
.tabs .pill { position: absolute; inset-block: .3rem; inset-inline-start: .3rem; width: calc(50% - .3rem); border-radius: 11px; background: var(--accent); box-shadow: 0 3px 0 var(--accent-dark); transition: transform .4s var(--ease); }
.tabs[data-i="1"] .pill { transform: translateX(-100%); }
.panel[hidden] { display: none; } .panel { animation: fadeDown .4s var(--ease); }
.linkbtn { background: none; border: 0; color: var(--link); font-weight: 700; padding: 0; text-decoration: underline; text-underline-offset: 4px; }

/* ── مودال ── */
.modal-bg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(5, 3, 8, .66); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal { width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(24px) scale(.96); transition: transform .35s var(--ease); }
.modal-bg.open .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; } .modal-head h3 { font-size: 1.4rem; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 14px; margin: auto; }

/* ── پیام‌رسان تیکت (کاربر و مدیر) ── */
.msgr { display: grid; grid-template-columns: 340px 1fr; height: clamp(520px, calc(100vh - var(--hdr) - 150px), 760px); border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tlist { display: flex; flex-direction: column; border-inline-end: 1px solid var(--line); min-height: 0; background: var(--bg2); }
.tlist-head { padding: .9rem; display: grid; gap: .6rem; border-bottom: 1px solid var(--line); }
.tlist-body { overflow-y: auto; flex: 1; padding: .5rem; overscroll-behavior: contain; }
.titem { display: grid; gap: .15rem; width: 100%; text-align: start; padding: .8rem .9rem; border: 1px solid transparent; border-radius: 14px; background: none; transition: background-color .2s, border-color .2s; }
.titem:hover { background: var(--surface); } .titem.on { background: var(--surface); border-color: var(--accent); }
.titem b { font-family: var(--f-title); display: flex; justify-content: space-between; gap: .5rem; } .titem b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titem p { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.6; }
.titem small { color: var(--muted); font-size: .78rem; display: flex; justify-content: space-between; }
.st { padding: .05rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.s-open { color: var(--accent-2); } .s-wait { color: var(--warn); } .s-ans { color: var(--ok); } .s-closed { color: var(--muted); }
[data-theme="light"] .s-open { color: #1a63b3; }
.tchat { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.chat-head .grow { flex: 1; min-width: 0; } .chat-head h3 { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-head small { color: var(--muted); }
.back-btn { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; overscroll-behavior: contain; scroll-behavior: smooth;
  background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 50%), var(--bg); }
.day { align-self: center; padding: .1rem .9rem; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: .78rem; margin-block: .4rem; }
.bub { max-width: min(78%, 540px); padding: .65rem .95rem .45rem; border-radius: 18px; line-height: 1.85; word-break: break-word; white-space: pre-wrap; animation: pop .35s var(--ease); position: relative; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.bub[data-side="me"] { align-self: flex-start; background: var(--accent); color: var(--on-accent); border-end-start-radius: 4px; }
.bub[data-side="them"] { align-self: flex-end; background: var(--surface); border: 1px solid var(--line); border-end-end-radius: 4px; }
.bub .who { display: block; font-family: var(--f-title); font-weight: 700; font-size: .8rem; opacity: .8; line-height: 1.6; }
.bub .time { display: block; font-size: .7rem; opacity: .7; margin-top: .15rem; text-align: end; line-height: 1.4; }
.att { display: flex; align-items: center; gap: .6rem; margin: .35rem 0; padding: .5rem .7rem; border-radius: 12px; background: rgba(0, 0, 0, .14); white-space: normal; }
.att b { font-size: .86rem; direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; } .att small { opacity: .75; }
.att-img { display: block; margin: .35rem 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; max-width: 260px; } .att-img img { width: 100%; max-height: 220px; object-fit: cover; }
.composer { padding: .8rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; background: var(--bg2); }
.composer-row { display: flex; gap: .5rem; align-items: flex-end; }
.composer textarea { min-height: 46px; max-height: 150px; resize: none; padding: .65rem 1rem; border-radius: 16px; }
.composer .icon-btn, .composer .send { flex: none; width: 46px; height: 46px; }
.send { border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-dark); display: grid; place-items: center; transition: transform .15s; } .send:active { transform: translateY(3px); box-shadow: none; } .send .ico { transform: scaleX(-1); }
.pending { display: flex; align-items: center; gap: .6rem; padding: .4rem .8rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; } .pending b { direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; } .pending button { margin-inline-start: auto; border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--bad); }
.drop { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; background: color-mix(in srgb, var(--bg) 86%, transparent); border: 3px dashed var(--accent); border-radius: 18px; font-weight: 700; font-size: 1.2rem; } .drop.on { display: grid; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 2rem; } .chat-empty .big { font-size: 3.4rem; }
.limit { font-size: .78rem; color: var(--muted); text-align: center; }

/* ── مدیریت ── */
.adm-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.4rem; scrollbar-width: none; }
.adm-tabs button { padding: .55rem 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; white-space: nowrap; transition: all .2s; }
.adm-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 3px 0 var(--accent-dark); }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.card { padding: 1.4rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.adm-news { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.nrow { display: flex; align-items: center; gap: .8rem; padding: .7rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); margin-bottom: .6rem; }
.nrow img, .nrow .ph2 { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface2); display: grid; place-items: center; flex: none; }
.nrow .grow { flex: 1; min-width: 0; } .nrow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nrow small { color: var(--muted); }
.tbl-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: .7rem .8rem; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; } th { color: var(--muted); font-size: .85rem; }
.gate { text-align: center; padding: 4rem 1rem; } .gate .big { font-size: 4rem; }

/* ── واکنش‌گرا ── */
@media (max-width: 980px) {
  .nav, .nav-cta, .tools .acc-wrap { display: none; }
  .menu-toggle { display: grid; }
  .hero { padding-bottom: 5rem; } .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; } .hero-copy > p, .ip-box { margin-inline: auto; } .hero-actions { justify-content: center; }
  .hero-art { height: 320px; order: -1; } .hero-art .scene:not(.mini) { --s: 150px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .modes { grid-template-columns: 1fr 1fr; } .mode, .mode:nth-child(1), .mode:nth-child(2) { grid-column: auto; } .mode:last-child { grid-column: 1 / -1; }
  .feats { grid-template-columns: 1fr 1fr; } .guide, .faq { grid-template-columns: 1fr; gap: 1.6rem; }
  .news-hero { grid-template-columns: 1fr; } .news-art { min-height: 200px; }
  .shop { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .adm-news { grid-template-columns: 1fr; }
  .msgr { grid-template-columns: 1fr; height: calc(100vh - var(--hdr) - 110px); min-height: 480px; } .msgr .tchat { display: none; } .msgr.show-chat .tlist { display: none; } .msgr.show-chat .tchat { display: flex; }
  .back-btn { display: grid; } .bub { max-width: 88%; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 28px); } .section { padding: 3.4rem 0; }
  .modes,
.feats,
.row2 {
  grid-template-columns: 1fr;
}

.modes .mode {
  grid-column: auto !important;
} .stat strong { font-size: 1.7rem; }
  .comm-box { padding: 1.6rem; } .float-tag { font-size: .8rem; } .auth-form { padding: 1.4rem; } .foot-grid { grid-template-columns: 1fr; }
}
@media (hover: none) { .mode { transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; } .hero h1 .w { opacity: 1; transform: none; }
}

/* ── کد ۶ رقمی ── */
.otp { display: flex; gap: .45rem; justify-content: center; margin-bottom: .9rem; }
.otp input { flex: 1; min-width: 0; max-width: 54px; height: 62px; padding: 0; text-align: center; font-size: 1.6rem; font-weight: 800; border-radius: 16px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.otp input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); transform: translateY(-2px); }
.otp-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; font-size: .92rem; }
.otp-meta .linkbtn:disabled { opacity: .5; text-decoration: none; cursor: default; }

/* ── رنک‌ها و قوانین با تصویر ── */
.prod-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-art.has-img::after { display: none; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; color: var(--muted); font-size: .93rem; }
.perks li { display: flex; align-items: center; gap: .55rem; }
.perks li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.rule-img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; align-self: center; }

/* ── فرم‌های مدیریت: پیش‌نمایش تصویر، رنگ، ترتیب ── */
.img-prev { display: flex; align-items: center; gap: .8rem; }
.img-prev img { width: 84px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface2); border: 1px solid var(--line); }
.img-prev .ph { width: 84px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); border: 1px dashed var(--line); color: var(--muted); font-size: .8rem; }
input[type="color"] { width: 100%; height: 46px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; }
.chk { display: flex; gap: .5rem; align-items: center; font-size: .92rem; }
.chip-s { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface2); color: var(--muted); }
.adm-spark { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: .6rem; }
.adm-spark i { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(var(--accent-2), var(--accent)); min-height: 4px; }
.audit-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.audit-row:last-child { border-bottom: 0; }
.audit-row small { color: var(--muted); white-space: nowrap; }
.adm-news > * { min-width: 0; }
.img-prev input[type="file"] { min-width: 0; flex: 1; max-width: 100%; font-size: .85rem; }
