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

@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; }
}
