/* ───────── پیک موبایل — استایل سایت (برگرفته از طرح تأییدشده) ───────── */

@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-ExtraBold.woff2') format('woff2'); font-weight: 600 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; scroll-padding-bottom: 90px; scroll-behavior: smooth; }
body { margin: 0; background: #F4F6F8; font-family: Vazirmatn, Tahoma, sans-serif; color: #0B0D12; line-height: 1.7; }
a { color: #00B8D4; text-decoration: none; }
a:hover { color: #00687A; }
input::placeholder, textarea::placeholder { color: #7A868B; }
img, svg { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
h1, h2, h3, p { margin: 0; }
.mont { font-family: Montserrat, sans-serif; }
.ltr { direction: ltr; unicode-bidi: embed; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wm { position: absolute; font-weight: 900; line-height: 1; font-family: Montserrat, sans-serif; pointer-events: none; user-select: none; }

/* نسخه موبایل جدا (مثل طرح) */
.m-only { display: none !important; }
@media (max-width: 760px) {
    .d-only { display: none !important; }
    .m-only { display: flex !important; }
    .m-block { display: block !important; }
    .m-grid, .bnav { display: grid !important; }
    .vis-d { visibility: hidden; }
}
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 14px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.d-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.d-rail > * { scroll-snap-align: start; flex: none; }

/* ───── اجزای مشترک فرم و دکمه ───── */
.pm-label { font-size: 14px; font-weight: 700; display: block; }
.pm-field { display: flex; flex-direction: column; gap: 8px; }
.pm-input { height: 52px; border: 1px solid #D3D9DF; border-radius: 14px; padding: 0 12px; font-family: inherit; font-size: 15px; background: #FFFFFF; color: #0B0D12; width: 100%; outline: none; }
textarea.pm-input { height: auto; padding: 12px; font-size: 14px; resize: vertical; }
select.pm-input { padding: 0 10px; }
.pm-input:focus { border: 2px solid #00B8D4; }
.pm-input.dark { background: #1A1E27; border-color: #2C323D; color: #FFFFFF; }
.pm-btn { height: 54px; border-radius: 16px; border: 0; background: #0B0D12; color: #FFFFFF; font-family: inherit; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; text-decoration: none; }
.pm-btn:hover { color: #FFFFFF; }
.pm-btn.cyan { background: #00E5FF; color: #05070A; }
.pm-btn.ghost { background: #FFFFFF; color: #0B0D12; border: 1px solid #D3D9DF; font-weight: 700; }
.pm-btn.soft { background: #E9EDF1; color: #0B0D12; }
.pm-btn.danger { background: #FDECEA; color: #A33A2B; }
.pm-btn.sm { height: 40px; font-size: 13px; border-radius: 12px; padding: 0 14px; }
.pm-btn.block { width: 100%; }
.pm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pm-check input { width: 18px; height: 18px; accent-color: #00B8D4; }
.pm-card { background: #FFFFFF; border: 1px solid #E3E7EB; border-radius: 28px; padding: 26px; }
.pm-err { color: #A33A2B; font-size: 12px; font-weight: 700; }
.pm-hint { color: #56606C; font-size: 12px; }

/* گزینه‌های انتخابی (رنگ / حافظه / وضعیت) */
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid #D3D9DF; background: #FFFFFF; font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #0B0D12; }
.opt input:checked + span { border: 2px solid #00B8D4; background: #DDF7FB; font-weight: 800; color: #00687A; }
.opt input:disabled + span { opacity: .35; text-decoration: line-through; }
.swatch { position: relative; display: inline-flex; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px #D3D9DF; cursor: pointer; display: block; }
.swatch input:checked + span { box-shadow: 0 0 0 2px #00B8D4; }
.swatch input:disabled + span { opacity: .35; }
.radio-card { display: flex; align-items: center; gap: 16px; border: 1px solid #E3E7EB; background: #FFFFFF; border-radius: 22px; padding: 18px 20px; cursor: pointer; flex-wrap: wrap; }
.radio-card:has(input:checked) { border: 2px solid #00B8D4; background: #F0FCFE; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }

/* پیام‌ها */
.flash { max-width: 1280px; margin: 14px auto 0; padding: 0 24px; }
.flash div { padding: 14px 18px; border-radius: 16px; font-weight: 700; font-size: 14px; }
.flash .ok { background: #DDF7FB; color: #00687A; }
.flash .err { background: #FDECEA; color: #A33A2B; }

/* جدول */
.pm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pm-table th { padding: 12px; font-weight: 500; color: #56606C; text-align: right; white-space: nowrap; }
.pm-table td { padding: 14px 12px; border-top: 1px solid #EEF1F4; }

/* وضعیت‌ها */
.st { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-block; }
.st-wait { background: #FBE9D2; color: #8A4B14; }
.st-go { background: #DDF7FB; color: #00687A; }
.st-done { background: #E9EDF1; color: #3A424D; }
.st-bad { background: #FDECEA; color: #A33A2B; }

/* صفحه‌بندی */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #FFFFFF; border: 1px solid #E3E7EB; font-weight: 700; padding: 0 10px; font-size: 14px; color: #0B0D12; }
.pagination .on { background: #0B0D12; color: #FFFFFF; border-color: #0B0D12; }
.pagination .off { opacity: .4; }

/* متن مقاله */
.prose { line-height: 2.1; font-size: 16px; color: #3A424D; }
.prose h2, .prose h3 { margin: 22px 0 10px; color: #0B0D12; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-right: 22px; }
.prose img { border-radius: 18px; margin: 14px 0; }

/* ستاره امتیاز */
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2C323D; background: #1A1E27; color: #56606C; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #E9A23B; }
.rate.light label { border-color: #D3D9DF; background: #FFFFFF; color: #C5CCD4; }

/* قواعد کلی موبایل (مثل طرح) */
@media (max-width: 760px) {
    .wrap { padding-left: 14px; padding-right: 14px; }
    .flash { padding: 0 12px; margin-top: 10px; }
    input, select, textarea { font-size: 16px !important; }
    .pm-card { border-radius: 22px; padding: 16px; }
    .pm-btn { height: 52px; font-size: 15px; }
    .pm-input { height: 50px; }
    .opt span { height: 44px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
    .swatch span { width: 38px; height: 38px; }
}

@media print {
    .d-only header, .m-only header, footer, .no-print, .fab, .bnav { display: none !important; }
    body { background: #FFFFFF; }
}

/* ───────── اسلایدر تبلیغاتی متحرک (موبایل) ───────── */
.hs { position: relative; height: 196px; border-radius: 22px; overflow: hidden; background: #05070A; isolation: isolate; box-shadow: 0 18px 40px rgba(5,7,10,0.28); touch-action: pan-y; }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; background: #0B0D12; color: #FFFFFF; overflow: hidden; }
.hs-slide.on { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hs-slide.light { background: #00E5FF; color: #05070A; }
.hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18) translateX(-3%); }
.hs-slide.on .hs-bg { animation: hsKen 7s ease-out forwards; }
@keyframes hsKen { from { transform: scale(1.18) translateX(-3%); } to { transform: scale(1.02) translateX(2%); } }
.hs-shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(5,7,10,.92) 0%, rgba(5,7,10,.72) 38%, rgba(5,7,10,.15) 72%, rgba(5,7,10,0) 100%), linear-gradient(to top, rgba(5,7,10,.55), transparent 55%); }
.hs-aurora { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .75; mix-blend-mode: screen; }
.hs-aurora.a1 { width: 220px; height: 220px; background: #00E5FF; left: -60px; top: -80px; animation: hsFloat1 9s ease-in-out infinite; }
.hs-aurora.a2 { width: 180px; height: 180px; background: #7C3AED; left: 90px; bottom: -110px; animation: hsFloat2 11s ease-in-out infinite; }
.hs-aurora.a3 { width: 120px; height: 120px; background: #E9A23B; left: 10px; bottom: -40px; opacity: .45; animation: hsFloat1 13s ease-in-out infinite reverse; }
.hs-slide.light .hs-aurora { mix-blend-mode: normal; opacity: .55; }
.hs-slide.light .hs-aurora.a1 { background: #FFFFFF; }
.hs-slide.light .hs-aurora.a2 { background: #0B0D12; opacity: .25; }
@keyframes hsFloat1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 30px) scale(1.25); } }
@keyframes hsFloat2 { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-50px, -40px) scale(.85); } }
.hs-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); mask-image: linear-gradient(to right, #000, transparent 70%); animation: hsGrid 12s linear infinite; }
.hs-slide.light .hs-grid { background-image: linear-gradient(rgba(5,7,10,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(5,7,10,.08) 1px, transparent 1px); }
@keyframes hsGrid { to { background-position: 22px 22px; } }
.hs-shine { position: absolute; top: -50%; bottom: -50%; width: 60px; left: -30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transform: rotate(18deg); pointer-events: none; }
.hs-slide.on .hs-shine, .hero-frame .hs-shine { animation: hsShine 5s ease-in-out 1.2s infinite; }
@keyframes hsShine { 0% { left: -30%; } 30%, 100% { left: 130%; } }
.hs-body { position: absolute; inset: 0; padding: 18px 18px 26px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 9px; z-index: 2; }
.hs-tag, .hs-title, .hs-cta { opacity: 0; transform: translateY(14px); }
.hs-slide.on .hs-tag { animation: hsUp .6s .25s cubic-bezier(.2,.8,.2,1) forwards; }
.hs-slide.on .hs-title { animation: hsUp .7s .4s cubic-bezier(.2,.8,.2,1) forwards; }
.hs-slide.on .hs-cta { animation: hsUp .7s .58s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes hsUp { to { opacity: 1; transform: none; } }
.hs-tag { background: #00E5FF; color: #05070A; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px; box-shadow: 0 0 18px rgba(0,229,255,.55); }
.hs-slide.light .hs-tag { background: #05070A; color: #00E5FF; box-shadow: none; }
.hs-title { font-size: 19px; font-weight: 900; line-height: 1.55; white-space: pre-line; max-width: 230px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hs-slide.light .hs-title { text-shadow: none; }
.hs-cta { display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF; color: #05070A; font-size: 13px; font-weight: 800; padding: 9px 15px; border-radius: 12px; position: relative; }
.hs-cta:hover { color: #05070A; }
.hs-slide.light .hs-cta { background: #05070A; color: #FFFFFF; }
.hs-slide.on .hs-cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(0,229,255,.7); animation: hsPulse 2.2s 1.4s ease-out infinite; }
@keyframes hsPulse { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,.65); } 100% { box-shadow: 0 0 0 14px rgba(0,229,255,0); } }
.hs-bars { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; gap: 6px; z-index: 3; direction: ltr; }
.hs-bars button { flex: 1; height: 4px; border: 0; padding: 0; border-radius: 99px; background: rgba(255,255,255,.28); overflow: hidden; }
.hs-bars i { display: block; height: 100%; width: 0; background: #FFFFFF; border-radius: inherit; }
.hs-bars button.done i { width: 100%; }
.hs-bars button.on i { animation: hsBar var(--hs-time, 5.5s) linear forwards; }
.hs[data-paused] .hs-bars button.on i { animation-play-state: paused; }
@keyframes hsBar { to { width: 100%; } }

/* ───────── عکس بنر اصلی (دسکتاپ) ───────── */
.hero-frame { position: relative; width: 360px; height: 450px; border-radius: 38px; padding: 3px; background: conic-gradient(from var(--hf-a, 0deg), #00E5FF, #7C3AED, #E9A23B, #00E5FF); animation: hfSpin 6s linear infinite, hfFloat 6s ease-in-out infinite; box-shadow: 0 40px 80px rgba(5,7,10,.25); }
.hero-frame-in { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #0B0D12; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; animation: hsKen 9s ease-in-out infinite alternate; }
@property --hf-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hfSpin { to { --hf-a: 360deg; } }
@keyframes hfFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

@media (prefers-reduced-motion: reduce) {
    .hs *, .hs-slide, .hero-frame, .hero-frame img { animation: none !important; transition: none !important; }
    .hs-tag, .hs-title, .hs-cta { opacity: 1; transform: none; }
    .hs-bg { transform: none; }
}

/* ───────── برندها: کاشی‌های نوری (موبایل) ───────── */
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bt { position: relative; display: block; height: 58px; border-radius: 14px; padding: 1.5px; overflow: hidden; opacity: 0; transform: translateY(12px) scale(.95); animation: btIn .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes btIn { to { opacity: 1; transform: none; } }
.bt::before { content: ''; position: absolute; inset: -80%; background: conic-gradient(from 0deg, transparent 0 62%, #00E5FF 76%, #7C3AED 86%, transparent 100%); animation: btSpin 4.5s linear infinite; }
.bt:nth-child(2n)::before { animation-duration: 5.5s; animation-direction: reverse; }
.bt:nth-child(3n)::before { animation-delay: -2s; }
@keyframes btSpin { to { transform: rotate(360deg); } }
.bt-in { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 12.5px; background: #FFFFFF; overflow: hidden; transition: transform .2s; }
.bt:active .bt-in { transform: scale(.95); }
.bt-in::after { content: ''; position: absolute; top: -40%; bottom: -40%; width: 35%; left: -60%; background: linear-gradient(90deg, transparent, rgba(0,229,255,.16), rgba(255,255,255,.75), transparent); transform: rotate(20deg); animation: btShine 5s ease-in-out infinite; }
.bt:nth-child(2n) .bt-in::after { animation-delay: 1.2s; }
.bt:nth-child(3n) .bt-in::after { animation-delay: 2.4s; }
@keyframes btShine { 0% { left: -60%; } 30%, 100% { left: 140%; } }
.bt-logo { width: 72%; height: 56%; display: flex; align-items: center; justify-content: center; animation: btFloat 4s ease-in-out infinite; }
.bt-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes btFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.bt-txt { font-size: 9px; font-weight: 800; letter-spacing: .8px; color: #0B0D12; white-space: nowrap; }

/* ───────── برندها: نوار چرخان (کامپیوتر) ───────── */
.bmq-wrap { background: #0B0D12; border-radius: 24px; padding: 16px 0 18px; }
.bmq-head { display: flex; justify-content: space-between; align-items: center; padding: 0 24px 12px; font-size: 14px; font-weight: 700; color: #9AA3AE; }
.bmq-head a { color: #00E5FF; }
.bmq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bmq-track { display: flex; gap: 12px; width: max-content; direction: ltr; animation: bmq 30s linear infinite; padding: 6px 0; }
.bmq:hover .bmq-track { animation-play-state: paused; }
@keyframes bmq { to { transform: translateX(-50%); } }
.bmq-t { width: 120px; height: 58px; flex: none; border-radius: 14px; background: linear-gradient(145deg, #1A1E27, #11141B); border: 1px solid #2C323D; display: flex; align-items: center; justify-content: center; transition: transform .3s, border-color .3s, box-shadow .3s; }
.bmq-t:hover { transform: translateY(-3px); border-color: #00E5FF; box-shadow: 0 0 22px rgba(0,229,255,.35); }
.bmq-t img { max-width: 72%; max-height: 54%; object-fit: contain; filter: grayscale(1) brightness(1.7); opacity: .75; transition: filter .3s, opacity .3s; }
.bmq-t:hover img { filter: none; opacity: 1; }
.bmq-t span { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #C5CCD4; transition: color .3s; }
.bmq-t:hover span { color: #00E5FF; }

@media (prefers-reduced-motion: reduce) {
    .bt, .bt::before, .bt-in::after, .bt-logo, .bmq-track { animation: none !important; }
    .bt { opacity: 1; transform: none; }
}

