/* =====================================================================
   PAYDAR SHOP — Storefront (تم مشکی و قرمز، اسکرول‌محور)
   ===================================================================== */

/* اگر فایل فونت را روی سرور خودتان بگذارید (public/fonts/Vazirmatn.woff2) بدون اینترنت خارجی هم کار می‌کند */
@font-face {
  font-family: 'Vazirmatn';
  src: local('Vazirmatn'), url('/fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
}

:root {
  --bg: #08080a; --bg2: #0f0f13; --bg3: #17171c;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --red: #e11d2e; --red2: #ff3547; --red-rgb: 225, 29, 46;
  --text: #f5f5f7; --text2: #b4b4bd; --text3: #7b7b86;
  --ok: #22c55e; --warn: #f59e0b;
  --accent: var(--red); --accent-rgb: var(--red-rgb);
  --radius: 20px; --radius-sm: 12px;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hh: 68px; --ah: 0px; --top: calc(var(--hh) + var(--ah));
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.75; overflow-x: hidden; min-height: 100vh; font-size: 16px;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--text); }
[hidden] { display: none !important; }
svg { fill: currentColor; }
svg[fill="none"] { fill: none; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a31; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- پس‌زمینه ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 12% 12%, rgba(130, 20, 70, .14), transparent 70%),
    radial-gradient(50% 40% at 90% 60%, rgba(20, 60, 140, .10), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(var(--red-rgb), .08), transparent 70%);
}
main, .footer, .header { position: relative; z-index: 1; }

#progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 400; background: transparent; }
#progress i { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, var(--red), #ff7a45); box-shadow: 0 0 12px var(--red); }

#loader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
#loader.hide { opacity: 0; visibility: hidden; }
.loader-in { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader-in img { width: 56px; animation: pulse 1.6s ease-in-out infinite; }
.loader-in .ring { position: absolute; inset: 0; border: 3px solid transparent; border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; box-shadow: 0 0 30px rgba(var(--red-rgb), .35); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.12); filter: drop-shadow(0 0 14px var(--red)); } }

/* ---------- هدر ---------- */
.header { position: fixed; inset: var(--ah) 0 auto 0; height: var(--hh); z-index: 200; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.header.scrolled { background: rgba(8, 8, 10, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 0 10px rgba(var(--red-rgb), .5)); }
.brand-text b { color: var(--red); }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--text2); font-size: .92rem; transition: color .25s, background .25s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.on { color: #fff; background: rgba(var(--red-rgb), .18); box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .4); }
.header-act { display: flex; gap: 6px; align-items: center; }
.ic-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; transition: background .25s, transform .25s; }
.ic-btn:hover { background: rgba(255, 255, 255, .08); }
.ic-btn:active { transform: scale(.92); }
.ic-btn svg { width: 22px; height: 22px; }
.ic-btn.sm { width: 36px; height: 36px; } .ic-btn.sm svg { width: 20px; height: 20px; }
.ic-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }
.badge { position: absolute; top: 2px; inset-inline-start: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 10px rgba(var(--red-rgb), .6); }
.badge.dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 7px; inset-inline-start: 7px; position: absolute; }
.tabs .badge.dot { position: static; display: inline-block; margin-inline-start: 6px; }
.burger { display: none; flex-direction: column; gap: 5px; justify-content: center; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mmenu { position: fixed; inset: var(--top) 0 0 0; z-index: 190; background: rgba(8, 8, 10, .96); backdrop-filter: blur(18px); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .35s var(--ease); overflow-y: auto; }
.mmenu.open { transform: none; opacity: 1; visibility: visible; }
.mmenu-in { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 4px; }
.mmenu-in a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.mmenu-in .lbl { margin-top: 14px; font-size: .75rem; color: var(--red); letter-spacing: .5px; }

.dots { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 150; display: flex; flex-direction: column; gap: 12px; }
.dots a { position: relative; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: .3s var(--ease); }
.dots a::after { content: attr(data-l); position: absolute; left: 22px; top: 50%; transform: translateY(-50%) translateX(-6px); white-space: nowrap; font-size: .75rem; padding: 3px 10px; border-radius: 8px; background: rgba(20, 20, 24, .95); border: 1px solid var(--line2); opacity: 0; pointer-events: none; transition: .25s; }
.dots a:hover::after { opacity: 1; transform: translateY(-50%); }
.dots a.on { background: var(--accent); height: 28px; border-radius: 6px; box-shadow: 0 0 12px var(--accent); }

/* ---------- دکمه‌ها ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 14px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--red2), var(--red) 60%, #a30f1c); color: #fff; box-shadow: 0 8px 24px -8px rgba(var(--red-rgb), .8); }
.btn-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(var(--red-rgb), .9); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(120%); transition: transform .7s; }
.btn-primary:not(:disabled):hover::after { transform: translateX(-120%); }
.btn-ghost { border-color: var(--line2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--red); background: rgba(var(--red-rgb), .1); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; border-radius: 16px; }
.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); }

/* ---------- Reveal (ورود با اسکرول) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal="zoom"] { transform: scale(.88); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: calc(var(--top) + 20px) 0 90px; }
.hero-glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; }
.hero-glow.g1 { background: radial-gradient(circle, var(--red), transparent 65%); top: -25vmax; right: -15vmax; animation: float 14s ease-in-out infinite; }
.hero-glow.g2 { background: radial-gradient(circle, #5b1f9e, transparent 65%); bottom: -30vmax; left: -20vmax; opacity: .22; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(5vmax, 4vmax) scale(1.1); } }
.hero-in { position: relative; transform: translateY(calc(var(--hp, 0) * 90px)); opacity: calc(1 - var(--hp, 0) * 1.3); will-change: transform, opacity; }
.hero-logo { width: clamp(110px, 20vw, 190px); margin: 0 auto 18px; filter: drop-shadow(0 0 36px rgba(var(--red-rgb), .75)); animation: heroLogo 1.4s var(--ease) both, bob 6s ease-in-out 1.4s infinite; transform: scale(calc(1 - var(--hp, 0) * .25)); }
@keyframes heroLogo { from { opacity: 0; transform: translateY(40px) scale(.7) rotate(-8deg); } }
@keyframes bob { 50% { translate: 0 -10px; } }
.hero-title { font-size: clamp(3rem, 11vw, 7rem); font-weight: 900; line-height: 1.1; display: flex; justify-content: center; gap: .28em; flex-wrap: wrap; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(60px) rotateX(-50deg); animation: wordIn 1s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .16s); background: linear-gradient(180deg, #fff 30%, #ffb3ba); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .w:last-child { background: linear-gradient(180deg, #ff5566, var(--red) 70%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 28px rgba(var(--red-rgb), .55)); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero-en { letter-spacing: .6em; color: var(--text3); font-size: clamp(.8rem, 2vw, 1.05rem); margin: 6px 0 22px; padding-inline-start: .6em; direction: ltr; }
.hero-sub { color: var(--text2); font-size: clamp(.95rem, 2.4vw, 1.2rem); max-width: 720px; margin: 0 auto 30px; --d: .9s; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; --d: 1.1s; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--red); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); backdrop-filter: blur(6px); padding: 16px 0; direction: ltr; }
.marquee-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { direction: rtl; padding: 0 30px; font-weight: 800; font-size: clamp(1.1rem, 3vw, 1.7rem); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); white-space: nowrap; }
.marquee-track span::after { content: '✦'; color: var(--red); -webkit-text-stroke: 0; margin-inline-start: 60px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(70px, 11vw, 130px) 0; position: relative; }
.sec-head { margin-bottom: clamp(28px, 5vw, 50px); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .5px; padding: 4px 14px; border-radius: 999px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); margin-bottom: 12px; }
.sec-head h2, .catalog-title { font-size: clamp(1.8rem, 5vw, 3.1rem); font-weight: 900; line-height: 1.25; }

/* ---------- DEALS rail ---------- */
.sec-deals { padding-bottom: 20px; }
.rail { display: flex; gap: 20px; overflow-x: auto; padding: 8px max(16px, calc((100vw - 1200px) / 2)) 30px; scroll-snap-type: x proximity; scrollbar-width: thin; cursor: grab; scroll-behavior: auto; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail .pcard { flex: 0 0 min(290px, 78vw); scroll-snap-align: start; }

/* ---------- CATALOG ---------- */
.catalog-head { padding-top: clamp(60px, 9vw, 110px); }
.chips-bar { position: sticky; top: var(--top); z-index: 60; margin-top: 14px; background: linear-gradient(180deg, rgba(8, 8, 10, .92), rgba(8, 8, 10, .75)); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-b { flex: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(12, 12, 16, .8); backdrop-filter: blur(10px); font-size: .9rem; transition: .25s; white-space: nowrap; }
.chip-b:hover { border-color: var(--c, var(--red)); }
.chip-b.on { background: var(--c, var(--red)); border-color: var(--c, var(--red)); color: #fff; box-shadow: 0 6px 20px -6px var(--c, var(--red)); }

.cat { position: relative; padding: clamp(50px, 8vw, 90px) 0; scroll-margin-top: calc(var(--top) + 50px); }
.cat::before { content: ''; position: absolute; inset: 10% -10% auto auto; width: 50%; height: 80%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .13), transparent); pointer-events: none; }
.cat-ghost { position: absolute; top: 10px; inset-inline-end: 0; font-size: clamp(7rem, 22vw, 17rem); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(var(--accent-rgb), .22); transform: translateY(calc(var(--py, 0) * 1px)); pointer-events: none; user-select: none; z-index: 0; }
.cat .wrap { position: relative; z-index: 1; }
.cat-head { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-head h3 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); font-weight: 900; position: relative; padding-inline-start: 18px; }
.cat-head h3::before { content: ''; position: absolute; inset-inline-start: 0; top: 10%; bottom: 10%; width: 5px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.cat-head small { color: var(--text3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }

/* ---------- Product card ---------- */
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; transform-style: preserve-3d; }
.pcard:hover { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 24px 50px -24px rgba(var(--accent-rgb), .7); }
.pcard.flash { animation: flash 1.6s; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent), 0 0 40px var(--accent); } }
.p-art { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(var(--accent-rgb), .38), transparent 62%), linear-gradient(135deg, #18181e, #0d0d11); }
.p-art svg { width: 62px; height: 62px; color: var(--accent); filter: drop-shadow(0 0 16px var(--accent)); transition: transform .5s var(--ease); }
.p-art .big { font-weight: 900; font-size: 2.6rem; color: var(--accent); text-shadow: 0 0 26px var(--accent); direction: ltr; }
.p-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .p-art img, .pcard:hover .p-art svg { transform: scale(1.08); }
.tag-disc { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; padding: 3px 11px; border-radius: 999px; box-shadow: 0 4px 16px rgba(var(--red-rgb), .6); z-index: 2; }
.tag-new { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(0, 0, 0, .6); border: 1px solid var(--accent); color: var(--accent); font-size: .72rem; padding: 2px 10px; border-radius: 999px; z-index: 2; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-sku { font-size: .72rem; color: var(--text3); direction: ltr; text-align: right; }
.p-name { font-size: 1.08rem; font-weight: 800; line-height: 1.5; }
.p-desc { font-size: .86rem; color: var(--text2); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.p-price b { font-size: 1.2rem; color: #fff; }
.p-price b small { font-size: .75rem; font-weight: 500; color: var(--text2); margin-inline-start: 3px; }
.p-price s { color: var(--text3); font-size: .85rem; }
.p-act { margin-top: 10px; display: flex; gap: 8px; }
.p-act .btn { flex: 1; }
.pcard .btn-primary { background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), .7)); box-shadow: 0 8px 24px -10px var(--accent); }
.coin { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.coin input { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); direction: ltr; text-align: center; }
.coin input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.coin .pre { display: flex; gap: 6px; flex-wrap: wrap; }
.coin .pre button { font-size: .78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); transition: .2s; }
.coin .pre button:hover { border-color: var(--accent); color: var(--accent); }
.coin .res { font-size: .85rem; color: var(--accent); min-height: 1.4em; font-weight: 700; }
.soldout { opacity: .55; }

/* ---------- STEPS ---------- */
.steps { position: relative; height: 320vh; }
.steps-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.steps-in { padding-top: var(--top); }
.steps-stage { display: grid; grid-template-columns: minmax(120px, 280px) 1fr; gap: clamp(20px, 5vw, 70px); align-items: center; }
.steps-num { font-size: clamp(8rem, 24vw, 18rem); line-height: 1; font-weight: 900; text-align: center; color: transparent; -webkit-text-stroke: 2px var(--red); filter: drop-shadow(0 0 24px rgba(var(--red-rgb), .5)); transition: transform .5s var(--ease); }
.steps-num.swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(40px) scale(.8); } }
.steps-list { list-style: none; display: grid; gap: 14px; }
.step { padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); opacity: .35; transform: scale(.96); transition: .5s var(--ease); }
.step b { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.step p { color: var(--text2); font-size: .95rem; }
.step.on { opacity: 1; transform: none; border-color: rgba(var(--red-rgb), .6); background: linear-gradient(135deg, rgba(var(--red-rgb), .16), rgba(255, 255, 255, .02)); box-shadow: 0 16px 40px -20px var(--red); }
.steps-bar { margin-top: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.steps-bar i { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(var(--sp, 0)); background: linear-gradient(270deg, var(--red), #ff7a45); }

/* ---------- Trust / Videos / Comments / Rules ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 22px; }
.tcard { padding: 28px; transition: transform .35s var(--ease), border-color .35s; }
.tcard:hover { transform: translateY(-8px); border-color: rgba(var(--red-rgb), .5); }
.tic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--red-rgb), .16); color: var(--red2); font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.tcard h3 { margin-bottom: 6px; font-size: 1.12rem; }
.tcard p { color: var(--text2); font-size: .92rem; }
.trust-text { padding: 26px 28px; color: var(--text2); white-space: pre-wrap; }
.trust-text img { margin-top: 16px; border-radius: 14px; max-height: 420px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.vcard { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.vcard .vf { aspect-ratio: 16/9; background: #000; }
.vcard iframe, .vcard video { width: 100%; height: 100%; border: 0; display: block; }
.vcard h4 { padding: 14px 18px; font-size: 1rem; }
.cmts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 26px; }
.cm { padding: 20px 22px; }
.cm-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.cm-h b { font-size: 1rem; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: .95rem; }
.cm small { color: var(--text3); display: block; margin-bottom: 6px; }
.cm p { color: var(--text2); font-size: .93rem; white-space: pre-wrap; word-break: break-word; }
.empty { color: var(--text3); text-align: center; padding: 30px; grid-column: 1/-1; }
.cform { padding: 26px; max-width: 640px; }
.cform h3 { margin-bottom: 14px; }
.rate { display: flex; gap: 4px; direction: ltr; justify-content: flex-end; margin: 10px 0; }
.rate button { font-size: 1.8rem; color: #3a3a42; transition: .2s; line-height: 1; }
.rate button.on { color: #fbbf24; text-shadow: 0 0 14px rgba(251, 191, 36, .6); }
.rules-box { padding: 28px 30px; white-space: pre-wrap; color: var(--text2); line-height: 2; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(5, 5, 7, .85); padding: 54px 0 24px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; margin-bottom: 30px; }
.foot-brand { margin-bottom: 12px; }
.foot-about { color: var(--text2); font-size: .92rem; white-space: pre-wrap; margin-bottom: 12px; }
.footer h4 { margin-bottom: 8px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text3); font-size: .85rem; }
.mr-link { color: var(--text2); border-bottom: 1px dashed var(--text3); }
.mr-link:hover { color: var(--red2); }
.tech { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.tech span { padding: 8px 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg3); direction: ltr; }
.mr-note { text-align: center; color: var(--text2); }

/* ---------- فرم‌ها ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: .85rem; color: var(--text2); }
.field input, .field textarea, .field select, .cform textarea, .cform select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .cform textarea:focus, .cform select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), .22); }
.cform textarea { min-height: 100px; resize: vertical; margin-top: 10px; }
.err { color: #ff6b78; font-size: .85rem; min-height: 1.3em; margin-bottom: 8px; }

/* ---------- Modal / Drawer / Toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); z-index: 250; opacity: 0; visibility: hidden; transition: .3s; }
.overlay.show { opacity: 1; visibility: visible; }
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .68); backdrop-filter: blur(6px); }
.modal.show { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border-radius: 24px; background: linear-gradient(180deg, #17171c, #101013); border: 1px solid var(--line2); box-shadow: 0 40px 90px -20px #000; animation: pop .4s var(--ease); }
.modal-box.wide { width: min(720px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.95); } }
.modal-box h2 { margin-bottom: 16px; font-size: 1.35rem; }
.x { position: absolute; top: 12px; inset-inline-start: 14px; width: 36px; height: 36px; border-radius: 10px; font-size: 1.7rem; line-height: 1; color: var(--text2); z-index: 2; }
.x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.search-box { padding: 18px; width: min(620px, 100%); align-self: flex-start; margin-top: 12vh; }
.search-box input { width: 100%; padding: 14px 18px; font-size: 1.1rem; border-radius: 14px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .4); }
.search-box input:focus { outline: none; border-color: var(--red); }
.search-res { margin-top: 12px; display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.sr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; text-align: right; border: 1px solid transparent; }
.sr:hover, .sr:focus { background: rgba(var(--red-rgb), .12); border-color: rgba(var(--red-rgb), .35); outline: none; }
.sr small { color: var(--text3); }

.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(430px, 100%); z-index: 260; background: #0f0f13; border-inline-start: 1px solid var(--line2); display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .45s var(--ease); }
[dir=rtl] .drawer { inset-inline-end: auto; left: 0; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head .x { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 1.1rem; }
.total b { color: var(--red2); font-size: 1.35rem; }
.cart-empty { text-align: center; color: var(--text3); padding: 60px 10px; }
.ci { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; background: rgba(255, 255, 255, .02); animation: pop .35s var(--ease); }
.ci-i { flex: 1; min-width: 0; }
.ci-i h4 { font-size: .95rem; line-height: 1.5; }
.ci-i span { color: var(--red2); font-weight: 700; font-size: .9rem; }
.qty { display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .4); border-radius: 10px; border: 1px solid var(--line); }
.qty button { width: 28px; height: 30px; font-size: 1.15rem; }
.qty button:hover { color: var(--red2); }
.qty b { min-width: 22px; text-align: center; font-size: .9rem; }
.ci .rm { color: var(--text3); font-size: 1.4rem; width: 30px; height: 30px; }
.ci .rm:hover { color: var(--red2); }

.card-visual { position: relative; padding: 22px; border-radius: 20px; margin-bottom: 18px; background: linear-gradient(135deg, #2a0a0e, #6b0f1a 55%, #1a0508); border: 1px solid rgba(var(--red-rgb), .5); box-shadow: 0 20px 50px -20px var(--red); overflow: hidden; }
.card-visual::after { content: ''; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent); }
.chip { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #e6c36a, #9c7a28); margin-bottom: 16px; }
.card-num { display: block; width: 100%; font-size: clamp(1.15rem, 5vw, 1.55rem); letter-spacing: 3px; direction: ltr; text-align: center; font-weight: 700; padding: 6px; border-radius: 10px; transition: background .2s; }
.card-num:hover { background: rgba(255, 255, 255, .1); }
.card-own { margin-top: 10px; text-align: center; color: #ffd0d4; font-size: .9rem; }
.sum { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: .92rem; }
.sum div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.sum .tot { border-top: 1px dashed var(--line2); margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 1.05rem; }
.sum .tot b { color: var(--red2); }
.rc-prev { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rc-prev img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line2); }

.auth { text-align: center; }
.auth-logo { width: 62px; margin: 0 auto 10px; filter: drop-shadow(0 0 18px var(--red)); }
.auth .field, .auth .err { text-align: right; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, .4); margin-bottom: 18px; }
.tabs button { flex: 1; padding: 9px; border-radius: 10px; color: var(--text2); font-weight: 700; transition: .25s; }
.tabs button.on { background: var(--red); color: #fff; box-shadow: 0 6px 18px -6px var(--red); }
.utab { min-height: 200px; }
.oc { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); margin-bottom: 12px; }
.oc-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.oc-h code { color: var(--text2); direction: ltr; }
.oc-it { color: var(--text2); font-size: .88rem; }
.oc-f { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.oc-f b { color: var(--red2); }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.pending { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.pill.approved { background: rgba(59, 130, 246, .15); color: #60a5fa; }
.pill.completed { background: rgba(34, 197, 94, .15); color: #4ade80; }
.pill.rejected { background: rgba(239, 68, 68, .15); color: #f87171; }
.deliv { position: relative; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .4); }
.deliv pre { white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; direction: ltr; text-align: left; padding-top: 22px; }
.deliv button { position: absolute; top: 8px; inset-inline-end: 8px; font-size: .78rem; padding: 2px 12px; border-radius: 8px; background: rgba(34, 197, 94, .2); }
.rej { margin-top: 8px; color: #fca5a5; font-size: .85rem; }
.nt { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.nt.unread { border-color: rgba(var(--red-rgb), .6); }
.nt small { color: var(--text3); }
.user-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 30px); z-index: 500; max-width: calc(100% - 32px); padding: 12px 24px; border-radius: 14px; background: #1c1c22; border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { border-color: var(--ok); } .toast.error { border-color: #ef4444; }

/* ---------- CHAT (ثابت؛ هیچ‌وقت با اسکرول/کلیک بیرون بسته نمی‌شود) ---------- */
.chat-fab { position: fixed; left: 20px; bottom: 20px; z-index: 220; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--red2), var(--red)); color: #fff; box-shadow: 0 12px 34px -6px rgba(var(--red-rgb), .85); transition: transform .3s var(--ease); animation: fabPulse 3s ease-in-out infinite; }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab:hover { transform: scale(1.08); }
.chat-fab .badge { top: -4px; inset-inline-start: auto; right: -4px; background: #fff; color: var(--red); }
@keyframes fabPulse { 50% { box-shadow: 0 12px 34px -6px rgba(var(--red-rgb), .85), 0 0 0 12px rgba(var(--red-rgb), .12); } }
body.chat-open .chat-fab { transform: scale(0); pointer-events: none; }
.chat { position: fixed; left: 20px; bottom: 20px; z-index: 230; width: min(390px, calc(100vw - 24px)); height: min(590px, calc(100dvh - 40px)); display: flex; flex-direction: column; border-radius: 22px; background: #0f0f13; border: 1px solid var(--line2); box-shadow: 0 30px 80px -10px #000, 0 0 0 1px rgba(var(--red-rgb), .15); overflow: hidden; transform: translateY(30px) scale(.92); transform-origin: bottom left; opacity: 0; visibility: hidden; transition: .4s var(--ease); }
.chat.open { transform: none; opacity: 1; visibility: visible; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px; background: linear-gradient(135deg, rgba(var(--red-rgb), .35), rgba(var(--red-rgb), .08)); border-bottom: 1px solid var(--line); }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.chat-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title small { color: var(--text2); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; scroll-behavior: auto; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.65; word-break: break-word; white-space: pre-wrap; animation: msgIn .3s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
/* در RTL: flex-start = سمت راست */
.msg.me { align-self: flex-start; background: linear-gradient(135deg, var(--red2), #b8121f); border-end-start-radius: 4px; }
.msg.them { align-self: flex-end; background: #202027; border-end-end-radius: 4px; }
.msg.sys { align-self: center; max-width: 92%; background: rgba(255, 255, 255, .06); border: 1px dashed var(--line2); color: var(--text2); font-size: .82rem; text-align: center; }
.msg.pending { opacity: .55; }
.msg.failed { background: #5a1017; }
.msg time { display: block; margin-top: 3px; font-size: .68rem; opacity: .65; text-align: left; }
.msg img { margin-top: 6px; max-height: 200px; border-radius: 10px; cursor: zoom-in; }
.msg .retry { display: block; margin-top: 4px; font-size: .78rem; text-decoration: underline; }
.chat-newpill { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; background: var(--red); font-size: .8rem; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.chat-threads { position: absolute; inset: 0; background: #0f0f13; overflow-y: auto; padding: 12px; z-index: 3; }
.th { display: block; width: 100%; text-align: right; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; transition: .2s; }
.th:hover { border-color: var(--red); background: rgba(var(--red-rgb), .08); }
.th-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.th small { color: var(--text3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th .u { background: var(--red); border-radius: 999px; font-size: .7rem; padding: 0 8px; }
.chat-login { position: absolute; inset: 0; z-index: 4; background: #0f0f13; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--text2); }
.chat-compose { display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-top: 1px solid var(--line); background: #0c0c10; }
.chat-compose textarea { flex: 1; resize: none; max-height: 110px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); line-height: 1.6; font-size: .93rem; }
.chat-compose textarea:focus { outline: none; border-color: var(--red); }
.chat-compose .send { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; flex: none; transition: .2s; }
.chat-compose .send svg { width: 20px; height: 20px; transform: scaleX(-1); }
.chat-compose .send:hover { background: var(--red2); transform: scale(1.06); }
.chat-compose .send:disabled { opacity: .45; }
.attach { cursor: pointer; color: var(--text2); }
.chat-filechip { padding: 6px 14px 10px; font-size: .8rem; color: var(--text2); background: #0c0c10; display: flex; justify-content: space-between; }
.chat-filechip button { color: var(--red2); }
.chat.nologin .chat-compose, .chat.nologin .chat-filechip { display: none; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1100px) { .dots { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }
  .steps-stage { grid-template-columns: 1fr; gap: 6px; }
  .steps-num { font-size: 7rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.chat-open { overflow: hidden; }
  :root { --hh: 60px; }
  .brand-text { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .p-body { padding: 12px; } .p-name { font-size: .95rem; } .p-desc { display: none; }
  .p-art svg { width: 44px; height: 44px; } .p-art .big { font-size: 1.9rem; }
  .btn-lg { padding: 13px 26px; }
  .modal-box { padding: 22px 18px; border-radius: 20px; }
  /* چت روی موبایل تمام‌صفحه می‌شود و با کیبورد جابه‌جا نمی‌شود */
  .chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; transform-origin: bottom center; }
  .chat-fab { left: 14px; bottom: 14px; width: 56px; height: 56px; }
  .toast { bottom: 84px; }
  .steps { height: 300vh; }
  .steps-in .sec-head { margin-bottom: 14px; }
  .step { padding: 12px 16px; } .step p { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* ---------- نوار اطلاعیه ---------- */
.announce { position: fixed; inset: 0 0 auto 0; height: 38px; z-index: 210; display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #7a0f19, var(--red) 55%, #9c1424); box-shadow: 0 4px 20px -6px rgba(var(--red-rgb), .7); overflow: hidden; }
.announce[hidden] { display: none; }
.ann-tag { flex: none; margin-inline-start: 10px; padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: .75rem; font-weight: 800; letter-spacing: .3px; z-index: 2; }
.ann-view { flex: 1; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ann-track { display: flex; width: max-content; animation: ann var(--dur, 40s) linear infinite; }
.announce:hover .ann-track { animation-play-state: paused; }
.ann-track a, .ann-track span { direction: rtl; white-space: nowrap; padding: 0 28px; font-size: .88rem; font-weight: 600; }
.ann-track a:hover { text-decoration: underline; }
.ann-track i { font-style: normal; opacity: .7; }
@keyframes ann { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- شبکه‌های اجتماعی ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.soc { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-size: .88rem; font-weight: 700; transition: .3s var(--ease); }
.soc svg { width: 22px; height: 22px; }
.soc:hover { transform: translateY(-3px); border-color: var(--sc, var(--red)); background: color-mix(in srgb, var(--sc, var(--red)) 18%, transparent); box-shadow: 0 10px 26px -10px var(--sc, var(--red)); }
.soc.discord { --sc: #5865f2; } .soc.telegram { --sc: #28a8e9; } .soc.instagram { --sc: #e1306c; } .soc.whatsapp { --sc: #25d366; } .soc.youtube { --sc: #ff0033; }
.soc svg { color: var(--sc, #fff); }
.hero-soc { margin-top: 26px; --d: 1.3s; }
.foot-soc { justify-content: flex-start; margin-top: 14px; }
.foot-soc .soc { padding: 8px; } .foot-soc .soc span { display: none; }

/* ---------- دیسکورد ---------- */
.dc-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 20px; align-items: start; }
.dc-grid.solo { grid-template-columns: minmax(260px, 420px); justify-content: center; }
.dc-card { padding: 28px; text-align: center; background: linear-gradient(180deg, rgba(88, 101, 242, .16), rgba(255, 255, 255, .02)); border-color: rgba(88, 101, 242, .4); }
.dc-ico { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: #5865f2; overflow: hidden; box-shadow: 0 14px 34px -10px #5865f2; }
.dc-ico img { width: 100%; height: 100%; object-fit: cover; } .dc-ico svg { width: 46px; height: 46px; color: #fff; }
.dc-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.dc-card p { color: var(--text2); font-size: .9rem; margin-bottom: 14px; }
.dc-stats { display: flex; justify-content: center; gap: 22px; margin: 16px 0 20px; }
.dc-stats b { display: block; font-size: 1.5rem; } .dc-stats small { color: var(--text2); }
.dc-stats .on b::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #23a55a; margin-inline-end: 7px; box-shadow: 0 0 10px #23a55a; animation: pulse2 2s infinite; }
@keyframes pulse2 { 50% { opacity: .35; } }
.btn-dc { background: #5865f2; color: #fff; box-shadow: 0 8px 24px -8px #5865f2; } .btn-dc:hover { background: #6b77f5; transform: translateY(-2px); }
.dc-feed { padding: 0; overflow: hidden; }
.dc-feed-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 800; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #4ade80; font-weight: 700; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #23a55a; animation: pulse2 1.4s infinite; }
.dc-msgs { max-height: 460px; overflow-y: auto; padding: 8px 6px; }
.dcm { display: flex; gap: 12px; padding: 10px 14px; border-radius: 12px; animation: msgIn .4s var(--ease); }
.dcm:hover { background: rgba(255, 255, 255, .03); }
.dcm-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #5865f2; overflow: hidden; display: grid; place-items: center; font-weight: 800; }
.dcm-av img { width: 100%; height: 100%; object-fit: cover; }
.dcm-b { min-width: 0; flex: 1; }
.dcm-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dcm-h b { color: #fff; } .dcm-h small { color: var(--text3); font-size: .72rem; }
.dcm-bot { background: #5865f2; font-size: .62rem; padding: 0 6px; border-radius: 4px; }
.dcm-t { color: #dcddde; white-space: pre-wrap; word-break: break-word; font-size: .93rem; line-height: 1.7; }
.dcm-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dcm-imgs img { max-width: 100%; max-height: 220px; border-radius: 10px; }
.dcm-emb { margin-top: 6px; padding: 10px 12px; border-inline-start: 4px solid #5865f2; border-radius: 6px; background: rgba(0, 0, 0, .28); font-size: .88rem; }
.dcm-emb b { display: block; } .dcm-emb p { color: var(--text2); white-space: pre-wrap; } .dcm-emb img { margin-top: 6px; max-height: 200px; border-radius: 8px; }
.dc-note { padding: 28px; text-align: center; color: var(--text2); }
.trust-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.tl { padding: 16px 8px 10px; }
.tl-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 16px 8px; }
.tl-h b { font-size: .95rem; }
.tl-h a { font-size: .78rem; color: #8ea1ff; }
.tl .dc-note { padding: 18px; }

/* ---------- ویدیو ---------- */
.vcard .vf { position: relative; }
.vplay { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(var(--red-rgb), .35), transparent 60%), linear-gradient(135deg, #1a1a20, #0b0b0e); transition: .3s; }
.vplay span { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--red); box-shadow: 0 0 0 10px rgba(var(--red-rgb), .2), 0 12px 30px -6px var(--red); transition: transform .3s var(--ease); }
.vplay svg { width: 28px; height: 28px; margin-inline-start: -3px; }
.vplay:hover span { transform: scale(1.12); }
.vcard h4 small { display: inline-block; margin-inline-start: 8px; font-size: .72rem; padding: 1px 10px; border-radius: 999px; background: rgba(var(--red-rgb), .16); color: var(--red2); }
.vid-note { color: var(--text2); margin-bottom: 12px; }
.vid-stage { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 14px; }
.vid-stage iframe, .vid-stage video { width: 100%; height: 100%; border: 0; display: block; }
.vid-list { display: grid; gap: 8px; }
.vid-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); text-align: right; transition: .2s; }
.vid-item:hover, .vid-item.on { border-color: var(--red); background: rgba(var(--red-rgb), .1); }
.vid-item svg { width: 22px; height: 22px; color: var(--red2); flex: none; }
.tip-btn { margin-top: 10px; font-size: .85rem; }

/* ---------- آیکون تکنولوژی‌ها ---------- */
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.tech div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 16px; border: 1px solid var(--line2); background: var(--bg3); transition: .3s var(--ease); direction: ltr; font-size: .85rem; }
.tech div:hover { transform: translateY(-4px); border-color: var(--red); }
.tech svg { width: 48px; height: 48px; }

@media (max-width: 960px) { .dc-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .announce { height: 34px; } .ann-track a, .ann-track span { font-size: .8rem; } .tech { grid-template-columns: repeat(2, 1fr); } .soc { padding: 8px 14px 8px 10px; font-size: .8rem; } }

/* ---------- کد تخفیف ---------- */
.coupon { margin-bottom: 12px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line2); background: rgba(0, 0, 0, .35); text-transform: uppercase; letter-spacing: 1px; }
.coupon-row input:focus { outline: none; border-color: var(--red); border-style: solid; }
.coupon-msg { color: #ff6b78; font-size: .82rem; min-height: 1.2em; margin-top: 4px; }
.total.sub { font-size: .95rem; color: #4ade80; margin-bottom: 8px; }
.total.sub b { color: inherit; font-size: inherit; }
.total.sub button { color: var(--text2); font-size: 1.1rem; margin-inline-start: 6px; }
.oc-disc { color: #4ade80; font-size: .8rem; }

/* لیست‌های انتخاب (select) همیشه تیره و خوانا */
select { background: #17171c; color: var(--text); }
select option, select optgroup { background: #17171c; color: #f5f5f7; }

/* ---------- کپچای پازل لوگو ---------- */
.cap-wrap { margin: 4px 0 14px; direction: ltr; }
.cap-wrap[hidden] { display: none; }
.cap-box { position: relative; padding: 10px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); transition: border-color .3s, box-shadow .3s; }
.cap-box.ok { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.cap-box.shake { animation: shake .45s; border-color: #ef4444; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.cap-stage { position: relative; width: 100%; aspect-ratio: 320 / 180; border-radius: 10px; overflow: hidden; background: #0b0b0e; user-select: none; -webkit-user-select: none; }
.cap-stage img { position: absolute; display: block; -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.cap-stage .bg { inset: 0; width: 100%; height: 100%; }
.cap-stage .piece { left: 0; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .7)); will-change: left; }
.cap-stage .load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text3); font-size: .85rem; direction: rtl; }
.cap-refresh { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1rem; z-index: 3; }
.cap-refresh:hover { background: var(--red); }
.cap-track { position: relative; height: 44px; margin-top: 10px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); touch-action: none; }
.cap-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; color: var(--text2); direction: rtl; pointer-events: none; padding: 0 50px; text-align: center; }
.cap-handle { position: absolute; top: 2px; left: 2px; width: 46px; height: 38px; border-radius: 19px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red2), var(--red)); color: #fff; font-size: 1.1rem; cursor: grab; touch-action: none; box-shadow: 0 6px 18px -6px var(--red); }
.cap-handle:active { cursor: grabbing; }
.cap-box.ok .cap-handle { background: #22c55e; cursor: default; box-shadow: none; }
.cap-box.ok .cap-track { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .5); }
.otp-row { display: flex; gap: 8px; } .otp-row input { flex: 1; letter-spacing: 8px; text-align: center; font-size: 1.2rem; }
