/*
Theme Name: netmet24
Theme URI: https://netmet24.ir
Author: netmet24
Description: قالب فارسی راست‌چین netmet24 با منوی کاشی مربعی، اسلایدر اخبار، بازارچه کتاب و ورود آسان کاربران
Version: 10.5
Text Domain: netmet24
*/
:root{--navy:#0b2a4a;--navy2:#14518a;--teal:#1f9d94;--teal-d:#0f6f69;--teal-s:#e6f6f4;--teal-l:#bfe5e0;--bg:#f3f6fa;--ink:#14202e;--mute:#4a5a6e;--line:#d9e2ec;--gold:#d9a441;--r:20px;--sh:0 1px 2px rgba(11,42,74,.06),0 8px 22px rgba(11,42,74,.07)}
*{box-sizing:border-box}
html{font-size:18px;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Vazirmatn,Tahoma,"Segoe UI",sans-serif;font-weight:400;line-height:1.9;direction:rtl;-webkit-text-size-adjust:100%}
.wrap{max-width:980px;margin:0 auto;padding:0 14px}
a{color:var(--navy2)}
a:focus-visible,button:focus-visible,.ntrack:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.ic{display:block;flex:none}

/* هدر */
.top{background:var(--navy);color:#fff;padding:12px 0;border-bottom:3px solid var(--teal)}
.logo{font-size:1.5rem;font-weight:800;color:#fff;text-decoration:none;line-height:1.4;display:flex;align-items:center;gap:12px}
.logomark{flex:none;width:56px;height:56px;border-radius:14px;display:block;object-fit:contain}
.logotxt small{display:block;font-size:.85rem;font-weight:400;opacity:.85}

/* اسلایدر اطلاعات و اخبار */
.news{background:#fff;border-bottom:1px solid var(--line);padding:6px 0 8px}
.nhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.nhead h2{margin:0;font-size:.9rem;font-weight:700;color:var(--navy);line-height:1.6}
.nctl{display:flex;gap:6px}
.nbtn{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--navy);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.nbtn:hover{background:var(--teal-s);border-color:var(--teal-l)}
.nbtn svg{width:18px;height:18px}
.ntrack{position:relative;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ntrack::-webkit-scrollbar{display:none}
.nslide{flex:0 0 90%;scroll-snap-align:start;display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 12px;background:var(--teal-s);border:1px solid var(--teal-l);border-radius:14px;text-decoration:none;color:var(--navy)}
.nslide:hover{border-color:var(--teal)}
.nimg{flex:none;width:64px;height:46px;border-radius:8px;overflow:hidden;background:#fff}
.nimg img{width:100%;height:100%;object-fit:cover;display:block}
.nicon{flex:none;width:34px;height:34px;border-radius:50%;background:var(--navy);color:#9ff0e6;display:flex;align-items:center;justify-content:center}
.nicon svg{width:19px;height:19px}
.ntxt{flex:1;font-size:.95rem;font-weight:600;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nchev{flex:none;color:var(--teal-d)}
.nchev svg{width:20px;height:20px}
.ndots{display:flex;justify-content:center;gap:8px;margin-top:6px}
.ndot{position:relative;width:8px;height:8px;padding:0;border:0;border-radius:5px;background:var(--line);cursor:pointer;transition:width .2s,background .2s}
.ndot::before{content:"";position:absolute;inset:-10px -5px}
.ndot.on{width:22px;background:var(--teal)}

/* کارت وام ودیعه مسکن (بالای صفحه، زیر اخبار) */
.loan{display:block;margin:14px 0 0;padding:16px;border-radius:var(--r);background:linear-gradient(135deg,#0b2a4a,#14518a);color:#fff;text-decoration:none;box-shadow:var(--sh)}
.loan .lh{display:flex;align-items:center;gap:12px}
.loan .ti{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:13px;background:rgba(255,255,255,.16);color:#9ff0e6;flex:none}
.loan .ti svg{width:27px;height:27px}
h1.hd{margin:0;font-size:1.3rem;font-weight:800;line-height:1.6;color:#fff}
.loan .amts{margin:12px 0 0}
.loan .amts div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:rgba(255,255,255,.9)}
.loan .amts b{color:#fff;font-size:.92rem;white-space:nowrap}
.loan .amts div{padding:8px 4px}

/* منوی کاشی‌ها (باریک؛ هر گزینه جدید به همین شکل اضافه می‌شود) */
.tiles{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0 22px}
@media(min-width:700px){.tiles{grid-template-columns:repeat(2,1fr);gap:12px}}
.tile{display:flex;align-items:center;gap:12px;min-height:62px;padding:9px 14px;border-radius:var(--r);color:#fff;background:var(--navy);text-decoration:none;font-weight:700;font-size:1.02rem;line-height:1.5;box-shadow:var(--sh);transition:transform .15s ease,box-shadow .15s ease}
.tile .ti{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.16);color:#9ff0e6;flex:none}
.tile .ti svg{width:25px;height:25px}
.tile .tt{flex:1}
.tile .tg{flex:none;opacity:.85}
.tile .tg svg{width:22px;height:22px}
.tile:hover,.tile:focus-visible{transform:translateY(-2px);box-shadow:0 2px 4px rgba(11,42,74,.1),0 12px 26px rgba(11,42,74,.16)}
.t2{background:linear-gradient(135deg,#0d4468,#1b8a86)}
.t3{background:linear-gradient(135deg,#123a63,#2a7ba6)}

/* کارت‌ها */
.card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--teal);border-radius:var(--r);padding:18px;margin:0 0 18px;box-shadow:var(--sh)}
.card h2{margin:0 0 6px;color:var(--navy);font-size:1.35rem;font-weight:800;line-height:1.6;display:flex;align-items:center;gap:10px}
.card h2 .chip{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:var(--teal-s);color:var(--teal-d);flex:none}
.card h2 .chip svg{width:24px;height:24px}
.card h3{margin:18px 0 6px;padding-top:14px;border-top:1px dashed var(--line);color:var(--navy);font-size:1.08rem;font-weight:700}
.card h3:first-of-type{border-top:0;padding-top:0}
.sub{color:var(--mute);margin:0 0 8px;font-size:.95rem}
.amts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 4px}
.amts div{background:var(--teal-s);border:1px solid var(--teal-l);border-radius:12px;padding:8px 6px;text-align:center;font-size:.85rem;line-height:1.6;color:var(--mute)}
.amts b{display:block;color:var(--navy);font-size:1.05rem;font-weight:800}
ul.ck{list-style:none;margin:6px 0;padding:0}
ul.ck li{position:relative;padding-right:32px;margin:6px 0}
ul.ck li::before{content:"";position:absolute;right:0;top:.5em;width:22px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%231f9d94'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
ul.faq{background:var(--teal-s);border:1px solid var(--teal-l);border-radius:14px;padding:10px 14px}

/* دکمه‌های روبیکا و ایتا */
.btns{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:1 1 170px;max-width:100%;min-height:50px;padding:10px 18px;border-radius:12px;font-weight:700;font-size:1.02rem;color:#fff;text-decoration:none;text-align:center;box-shadow:0 4px 0 rgba(0,0,0,.28),0 6px 12px rgba(11,42,74,.18);transition:filter .15s,transform .08s,box-shadow .08s}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.28)}
.btn svg{width:22px;height:22px;flex:none}
.b-r{background-color:#0b8f62;background-image:linear-gradient(135deg,#0b8f62,#1f6fe0)}
.b-e{background:#e96a0c}
.b-b{background:#1a9a55}
.b-t{background:#1b86c9}
.btn:hover{filter:brightness(1.1)}
a.btn,a.btn:visited,a.btn:hover,a.btn:focus{color:#fff}
a.btn.b-p,a.btn.b-p:visited,a.btn.b-p:hover{color:var(--navy)}
@media(min-width:700px){.btn{flex:0 0 auto;min-width:190px}}

.two{display:grid;gap:18px}
@media(min-width:700px){.two{grid-template-columns:1fr 1fr}}

/* فوتر و ارتباط با ما */
footer{background:var(--navy);color:#fff;padding:26px 0 30px;margin-top:28px;border-top:3px solid var(--teal);font-size:.97rem}
footer h2{margin:0 0 2px;font-size:1.25rem;font-weight:800}
footer p{margin:6px 0}
footer .btn{border:1px solid rgba(255,255,255,.3);box-shadow:none}
.fbtns{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0}
.fbtns .btn{min-width:0;flex:none;padding:10px 8px;font-size:.98rem}
@media(min-width:700px){.fbtns{grid-template-columns:repeat(4,1fr)}}
.faddr{display:flex;align-items:flex-start;gap:8px}
.faddr svg{width:22px;height:22px;margin-top:.35em;color:#9ff0e6}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tile,.btn,.ndot{transition:none}.tile:hover,.tile:focus-visible{transform:none}}

/* صفحه لینک‌های ارتباطی (netmet24.ir/go) */
.gl{max-width:460px;margin:0 auto;padding:18px 16px 32px}
.glhead{display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;border-radius:var(--r);padding:14px 16px;border-bottom:3px solid var(--teal);font-size:1.35rem;font-weight:800;line-height:1.4}
.gltxt small{display:block;font-size:.85rem;font-weight:400;opacity:.85}
.glh{font-size:1.15rem;font-weight:800;color:var(--navy);margin:20px 4px 12px;line-height:1.7}
.glbtns{display:grid;gap:12px}
.glbtns .btn{flex:none;width:100%;max-width:none;min-height:60px;font-size:1.15rem;border-radius:14px;justify-content:flex-start;padding:10px 18px;gap:14px}
.glbtns .btn svg{width:26px;height:26px}
.b-s{background:var(--navy)}
.b-p{background:#fff;color:var(--navy)!important;border:2px solid var(--navy);box-shadow:none}
.b-p:hover{filter:none;background:var(--teal-s)}

/* ===== نسخه ۸: صفحه اصلی و صفحه‌های داخلی ===== */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hboxes{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0 8px;width:100%;max-width:100%;box-sizing:border-box}
@media(min-width:760px){.hboxes{grid-template-columns:repeat(3,1fr);gap:14px}}
.hbox{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:1/1;min-height:0;padding:12px 8px;border-radius:18px;color:#fff;text-decoration:none;text-align:center;box-shadow:0 4px 0 rgba(0,0,0,.2),0 10px 20px rgba(11,42,74,.12);transition:transform .15s ease,box-shadow .15s ease;overflow:hidden;min-width:0}
.hbox:hover,.hbox:focus-visible{transform:translateY(-3px)}
.hbox:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.22)}
.hb1{background:linear-gradient(135deg,#0b2a4a,#1766b0)}
.hb2{background:linear-gradient(135deg,#0c6660,#22a99e)}
.hb3{background:linear-gradient(135deg,#3d1a6e,#6b3fa0)}
.hic{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.18);flex:none}
.hic svg{width:28px;height:28px}
.htx{display:block;flex:1;width:100%}
.htt{display:block;font-size:1.1rem;font-weight:800;line-height:1.45}
.hsub{display:block;margin-top:3px;font-size:.88rem;opacity:.93;line-height:1.5}
.hbtn{margin-top:6px;padding:6px 16px;border-radius:12px;background:#fff;color:var(--navy);font-weight:800;font-size:.9rem;box-shadow:0 3px 0 rgba(0,0,0,.25)}
.hart{display:none}
.back{display:inline-flex;align-items:center;gap:6px;margin:14px 0 4px;padding:8px 12px;border-radius:12px;background:#fff;border:1px solid var(--line);color:var(--navy);text-decoration:none;font-weight:700;font-size:.95rem}
.back svg{width:18px;height:18px}
h1.ph{font-size:1.4rem;color:var(--navy);margin:10px 0 14px}
.loan{margin-bottom:18px}

/* ===== بازارچه کتاب ===== */
.bzhead{display:flex;align-items:center;gap:14px;margin:12px 0;padding:16px;border-radius:var(--r);background:linear-gradient(135deg,#6a2f8f,#a45fc8);color:#fff;box-shadow:var(--sh)}
.bzhead .ti{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:rgba(255,255,255,.2);flex:none}
.bzhead .ti svg{width:30px;height:30px}
.bzhead h1{margin:0;font-size:1.3rem;font-weight:800;line-height:1.6}
.bzhead p{margin:2px 0 0;font-size:.95rem;opacity:.95;line-height:1.7}
.bzann{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 14px;border-radius:14px;background:#fff7e0;border:1px solid #f0d58a;color:#5b4300}
.bzann>svg{width:22px;height:22px;flex:none}
.bzann>span,.bzann>a:not(.mini){flex:1;color:inherit;font-weight:600;line-height:1.6}
a.mini{display:inline-block;padding:4px 12px;border-radius:10px;background:#fff;border:1px solid var(--line);color:var(--navy);font-size:.88rem;font-weight:700;text-decoration:none;white-space:nowrap}
.sellbtn{display:flex;width:100%;max-width:none;flex:none;margin:0 0 16px;min-height:60px;font-size:1.15rem;background:linear-gradient(135deg,#0b8f62,#1f6fe0)}
.btn3{border:0;cursor:pointer;font-family:inherit}
.sf{display:grid;gap:10px}
@media(min-width:700px){.sf{grid-template-columns:1fr 1fr}.sf .btn{grid-column:1/-1}}
label{display:block;font-weight:700;font-size:.95rem;color:var(--navy)}
input[type=text],input[type=tel],input[type=file],select,textarea{display:block;width:100%;margin-top:4px;padding:10px 12px;border:1px solid #b8c6d6;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-weight:400}
input:focus,select:focus,textarea:focus{outline:3px solid var(--teal-l);border-color:var(--teal)}
.kinds{display:grid;gap:12px;margin:0 0 18px}
@media(min-width:600px){.kinds{grid-template-columns:1fr 1fr}}
.kind{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px;border-radius:18px;color:#fff;text-decoration:none;font-weight:800;box-shadow:0 4px 0 rgba(0,0,0,.22),var(--sh)}
.kind svg{width:26px;height:26px}.kind span{flex:1}.kind small{font-weight:400;opacity:.9}
.kind.k1{background:linear-gradient(135deg,#14518a,#2a8bd4)}
.kind.k2{background:linear-gradient(135deg,#b4560b,#e58b1d)}
.kind.on{outline:3px solid var(--gold);outline-offset:2px}
.res h2{display:flex;align-items:baseline;gap:10px;color:var(--navy);font-size:1.3rem;margin:6px 0 10px}
.res h2 small{font-size:.9rem;color:var(--mute);font-weight:400}
.bgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:12px 0}
@media(min-width:760px){.bgrid{grid-template-columns:repeat(4,1fr);gap:16px}}
.bcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;text-decoration:none;color:var(--ink);box-shadow:var(--sh);transition:transform .18s ease,box-shadow .18s ease,border-color .18s}
.bcard:hover{border-color:var(--teal);transform:translateY(-3px);box-shadow:0 6px 20px rgba(11,42,74,.12)}
.bcard.sold{opacity:.75;filter:grayscale(.4)}
.bimg{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;background:linear-gradient(145deg,var(--teal-s),#e8f4f2);color:var(--teal-d);overflow:hidden}
.bimg img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.bcard:hover .bimg img{transform:scale(1.04)}
.bimg svg{width:42px;height:42px}
.bimg .stamp{position:absolute;inset:auto 0 0 0;background:rgba(20,32,46,.78);color:#fff;font-size:.78rem;font-weight:800;text-align:center;padding:5px 6px;letter-spacing:.3px}
.bbody{display:flex;flex-direction:column;gap:3px;padding:11px 12px 12px}
.bt{font-weight:800;color:var(--navy);line-height:1.45;font-size:.97rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ba{font-size:.84rem;color:var(--mute);line-height:1.4}
.bm{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 2px}
.bm i,.chips i{font-style:normal;font-size:.76rem;padding:2px 8px;border-radius:9px;background:var(--teal-s);color:var(--teal-d);border:1px solid var(--teal-l)}
.bp{font-weight:800;color:#0b6b46;font-size:.95rem;margin-top:2px}
.empty,.warn{padding:14px;border-radius:14px;background:#fff;border:1px dashed #b8c6d6;color:var(--mute)}
.warn{background:#fff7e0;border-color:#f0d58a;color:#5b4300}
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:14px 0}
.pg{min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:#fff;border:1px solid var(--line);color:var(--navy);text-decoration:none;font-weight:700}
.pg.on{background:var(--navy);color:#fff;border-color:var(--navy)}.pg.gap{border:0;background:none}
.sellbox{display:none;margin-top:18px}
.sellbox:target,.sellbox.open{display:block}
.sellbox form{display:grid;gap:12px}
.sellbox h3{margin:10px 0 0;padding-top:12px;border-top:1px dashed var(--line);color:var(--navy);font-size:1.05rem}
.sellbox form>h3:first-of-type{border-top:0;padding-top:0}
fieldset{border:0;margin:0;padding:0;display:grid;gap:12px;min-width:0}
fieldset:disabled{opacity:.45}
.rd{display:flex;align-items:flex-start;gap:10px;font-weight:400;color:var(--ink)}
.rd input{width:22px;height:22px;margin:3px 0 0;flex:none}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.fmsg{padding:10px 14px;border-radius:12px;font-weight:700;margin:0}
.fmsg.ok{background:#e3f6ec;color:#0b5c3b;border:1px solid #9ad9b9}
.fmsg.er{background:#fdeaea;color:#8a1f1f;border:1px solid #f1b1b1}
.note{color:var(--mute);font-size:.9rem;margin:6px 0}
.rulesm,.rep{border:1px solid var(--line);border-radius:12px;padding:8px 12px;background:#fafcfe}
.rulesm summary,.rep summary{cursor:pointer;font-weight:700;color:var(--navy)}
.shopbox{display:flex;gap:12px;align-items:flex-start;margin:12px 0;padding:12px 14px;border-radius:14px;background:var(--teal-s);border:1px solid var(--teal-l)}
.shopbox>svg{width:30px;height:30px;color:var(--teal-d);margin-top:4px}
.shopbox p{margin:2px 0 6px;font-size:.95rem}
.bzfoot ul.ci{list-style:none;margin:6px 0;padding:0}
.bzfoot .fl{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.bzfoot .fl a{padding:6px 14px;border-radius:10px;background:var(--teal-s);border:1px solid var(--teal-l);text-decoration:none;font-weight:700;color:var(--navy)}
.cp{margin:8px 0 0;color:var(--mute);font-size:.88rem}
.bk h1{margin:10px 0 2px;color:var(--navy);font-size:1.4rem;line-height:1.6}
.gmain{display:flex;align-items:center;justify-content:center;border-radius:16px;overflow:hidden;background:var(--teal-s);min-height:220px}
.gmain img{max-width:100%;max-height:480px;display:block}
.gmain.noimg svg{width:64px;height:64px;color:var(--teal-d)}
.gthumbs{display:flex;gap:8px;margin:8px 0;overflow-x:auto}
.gthumbs button{flex:none;width:64px;height:64px;padding:0;border:2px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;cursor:pointer}
.gthumbs img{width:100%;height:100%;object-fit:cover;display:block}
.bprice{font-size:1.4rem;font-weight:800;color:#0b6b46;margin:4px 0}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
@media(prefers-reduced-motion:reduce){.hbox,.btn{transition:none}.hbox:hover,.hbox:focus-visible{transform:none}}

/* ===== نسخه ۹ ===== */
/* نوار اطلاعات و اخبار: بزرگ‌تر و خواناتر، تعویض نرم */
.news{padding:12px 0 14px;box-shadow:0 2px 10px rgba(11,42,74,.06)}
.nhead{margin-bottom:8px}
.nhead h2{font-size:1.05rem}
.ntrack{gap:12px;scroll-behavior:smooth}
.nslide{flex:0 0 100%;min-height:88px;gap:14px;padding:12px 16px;border-radius:18px}
.nimg{width:104px;height:72px;border-radius:12px}
.nicon{width:46px;height:46px}
.nicon svg{width:25px;height:25px}
.ntxt{font-size:1.08rem;line-height:1.7;-webkit-line-clamp:3}
.nchev svg{width:24px;height:24px}
.ndots{margin-top:10px}
/* دکمه‌های صفحه اصلی: مربعی و آماده برای منوهای بیشتر */
.hboxes{gap:12px}
.hbox{aspect-ratio:1/1;min-height:130px}
@media(min-width:760px){.hbox{min-height:150px}}
.hbox:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.2)}
.hic{width:42px;height:42px;border-radius:12px;flex:none}
.hic svg{width:24px;height:24px;stroke-width:1.7}
.htt{font-size:.95rem;line-height:1.35;font-weight:800}
.hsub{font-size:.78rem;margin-top:2px;line-height:1.35;opacity:.92;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hbtn{margin-top:4px;padding:4px 12px;border-radius:10px;font-size:.8rem;font-weight:700;box-shadow:0 2px 0 rgba(0,0,0,.22)}
@media(min-width:400px){.htt{font-size:1.02rem}.hsub{font-size:.84rem}.hic{width:46px;height:46px}}
/* بازارچه کتاب: چهار گزینه اصلی */
.bzhead h1{font-size:1.2rem}
.bztiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}
@media(min-width:760px){.bztiles{grid-template-columns:repeat(4,1fr)}}
.bzt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:92px;padding:10px 8px;border-radius:16px;color:#fff;text-align:center;text-decoration:none;font-weight:800;font-size:.98rem;line-height:1.5;box-shadow:0 3px 0 rgba(0,0,0,.2),0 8px 16px rgba(11,42,74,.12)}
.bzt svg{width:28px;height:28px}
.bzt:active{transform:translateY(2px)}
.bt1{background:linear-gradient(135deg,#0b8f62,#1f6fe0)}
.bt2{background:linear-gradient(135deg,#14518a,#2a8bd4)}
.bt3{background:linear-gradient(135deg,#0c6660,#22a99e)}
.bt4{background:linear-gradient(135deg,#6a2f8f,#a45fc8)}
a.bzt,a.bzt:visited,a.bzt:hover{color:#fff}
/* بخش‌های بازشونده: با جاوااسکریپت فقط یکی باز است؛ بدون آن همه دیده می‌شوند */
.js .pn{display:none}.js .pn.open{display:block}
.bzform{display:grid;gap:12px}
.bzform .btn{flex:none;width:100%;max-width:none}
.wlist{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.wlist li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fafcfe}
.wlist b{color:var(--navy)}.wlist span{color:var(--mute);font-size:.9rem}
.wlist i{font-style:normal;font-size:.78rem;padding:1px 8px;border-radius:9px;background:var(--teal-s);color:var(--teal-d);border:1px solid var(--teal-l)}
.wlist em{font-style:normal;flex-basis:100%;font-size:.92rem}
.bcontact{margin:8px 0;padding:10px 14px;border-radius:14px;background:var(--teal-s);border:1px solid var(--teal-l);font-size:1.02rem}
@media(prefers-reduced-motion:reduce){.ntrack{scroll-behavior:auto}}

/* ===== نسخه ۹٫۱ ===== */
.hart{display:none!important}
.bzt small{display:block;font-weight:400;font-size:.78rem;opacity:.95;line-height:1.4}
.bztiles{grid-template-columns:1fr 1fr 1fr}
@media(max-width:520px){.bztiles{grid-template-columns:1fr 1fr}.bt1{grid-column:1/-1}}
.avail{margin:0 0 16px}
.avh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.avh h2{margin:0;font-size:1.15rem;color:var(--navy);font-weight:800}
.astrip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 8px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.ai{flex:0 0 118px;scroll-snap-align:start;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-decoration:none;color:var(--ink);box-shadow:var(--sh)}
.aimg{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;background:var(--teal-s);color:var(--teal-d);overflow:hidden}
.aimg img{width:100%;height:100%;object-fit:cover;display:block}.aimg svg{width:34px;height:34px}
.at{padding:6px 8px 0;font-weight:800;font-size:.86rem;line-height:1.5;color:var(--navy);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ap{padding:0 8px 8px;font-size:.8rem;font-weight:800;color:#0b6b46}
textarea{resize:vertical}
.wd{flex-basis:100%;margin:2px 0;font-size:.93rem;color:var(--ink)}
.wimgs{display:flex;gap:6px;flex-basis:100%}
.wimgs img{width:64px;height:64px;object-fit:cover;border-radius:10px;border:1px solid var(--line);display:block}

/* v9.2: نوع کتاب، مقطع، سؤال امنیتی */
.bzform [hidden],.sf [hidden]{display:none!important}
.kinds{border:0;padding:0;margin:0;min-width:0;grid-column:1/-1}
.kinds legend{font-weight:700;margin-bottom:6px;padding:0}
.kinds .kr{display:flex;gap:8px;flex-wrap:wrap}
.kinds label{position:relative;display:inline-flex;margin:0}
.kinds label input.kin{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.kinds label span{padding:8px 18px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:700;color:var(--navy)}
.kinds label input.kin:checked+span{background:var(--teal);border-color:var(--teal);color:#fff}
.kinds label input.kin:focus-visible+span{outline:2px solid var(--navy);outline-offset:2px}
.capl .capq{font-weight:700}

/* ===== نسخه ۱۰: ثبت‌نام، پروفایل، ویرایش آگهی، فروخته شد ===== */
.bztiles{grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.bztiles{grid-template-columns:repeat(4,1fr)}}
@media(max-width:520px){.bt1{grid-column:auto}}
.bt5{background:linear-gradient(135deg,#a15c00,#e0a031)}
input[type=password],input[type=email]{display:block;width:100%;margin-top:4px;padding:10px 12px;border:1px solid #b8c6d6;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-weight:400}
.b-ok{background:#0b8f62}.b-d{background:#b32d2e}
.vh{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0;overflow:hidden}
.addimg{position:relative;cursor:pointer}
.bimg,.gmain,.aimg{position:relative}
/* مهر «فروخته شد» */
.stamp{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-16deg);padding:3px 14px;border:3px solid #b32d2e;border-radius:10px;background:rgba(255,255,255,.9);color:#b32d2e;font-weight:900;font-size:1.02rem;line-height:1.6;white-space:nowrap;pointer-events:none}
.stamp.big{font-size:1.7rem;padding:6px 26px;border-width:4px}
.bcard.sold .bimg img,.bcard.sold .bbody{filter:grayscale(1);opacity:.78}
.bk.sold .gal img,.bk.sold .chips i,.bk.sold h1{filter:grayscale(1)}
.soldbn{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:10px 14px;border-radius:14px;background:#fdeaea;border:1px solid #f1b1b1;color:#8a1f1f;font-weight:800}
.soldbn svg{width:22px;height:22px;flex:none}
/* پروفایل */
.tabs{display:flex;gap:8px;margin:8px 0 12px}
.tab{flex:1;min-height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--navy);font:inherit;font-weight:800;cursor:pointer}
.tab.on{background:var(--teal);border-color:var(--teal);color:#fff}
.tabpane[hidden]{display:none}
.prhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 4px;padding:10px 14px;border-radius:14px;background:var(--teal-s);border:1px solid var(--teal-l)}
.prhead b{display:block;color:var(--navy)}.prhead span{color:var(--mute);font-size:.92rem}
.prhead .mini svg{width:16px;height:16px;vertical-align:-3px}
.card h3 small{font-weight:400;color:var(--mute)}
.mlist{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.mrow{display:flex;gap:10px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fafcfe}
.mimg{flex:none;width:64px;height:84px;border-radius:10px;overflow:hidden;background:var(--teal-s);display:flex;align-items:center;justify-content:center;color:var(--teal-d)}
.mimg img{width:100%;height:100%;object-fit:cover;display:block}
.mrow.sold .mimg img{filter:grayscale(1)}
.mbody{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;align-content:flex-start}
.mt{flex-basis:100%;font-weight:800;color:var(--navy);text-decoration:none;line-height:1.5}
.mm{color:#0b6b46;font-weight:700;font-size:.9rem}
.mbody i{font-style:normal;font-size:.78rem;padding:1px 8px;border-radius:9px}
.mbody i.sd{background:#fdeaea;color:#8a1f1f;border:1px solid #f1b1b1}
.mbody i.pd{background:#fff7e0;color:#5b4300;border:1px solid #f0d58a}
.macts{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
button.mini{font:inherit;font-size:.88rem;font-weight:700;padding:4px 12px;border-radius:10px;background:#fff;border:1px solid var(--line);color:var(--navy);cursor:pointer}
button.mini.dng{color:#b32d2e;border-color:#f1b1b1}
.selw select{margin-top:4px}
/* نوار مدیریت آگهی */
.ownbar{margin:10px 0;padding:12px 14px;border-radius:16px;background:#fff7e0;border:1px solid #f0d58a}
.ownbar>b{color:#5b4300}
.ownbar .btns{margin:8px 0 0}
.ownbar .btn{flex:1 1 140px;min-width:0}
/* جعبه عکس — فشرده و حرفه‌ای */
.imgbox{display:grid;gap:6px}
.imgbox .lbl{font-weight:700;font-size:.9rem;color:var(--navy)}
.imglist{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media(min-width:720px){.imglist{grid-template-columns:repeat(4,1fr)}}
.im{position:relative;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.im.cover{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
.imth{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:var(--teal-s);max-height:110px}
.imth img,.imth canvas{max-width:100%;max-height:100%;display:block;object-fit:cover}
.imbadge{position:absolute;top:4px;right:4px;padding:0 7px;border-radius:7px;background:var(--gold);color:#3b2a00;font-weight:800;font-size:.72rem;line-height:1.6}
.imbar{display:flex;flex-wrap:nowrap;gap:3px;padding:4px;justify-content:center;background:rgba(255,255,255,.95)}
.ib{width:28px;height:28px;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ib svg{width:14px;height:14px}
.ib.star{color:#a15c00;border-color:var(--gold)}
.ib.dng{color:#b32d2e}
.ib:hover{background:var(--teal-s)}
/* پنجره برش — جمع‌وجور */
.noscroll{overflow:hidden}
.cropm{position:fixed;inset:0;z-index:99999;background:rgba(8,20,36,.88);display:flex;align-items:center;justify-content:center;padding:10px}
.cropin{background:#fff;border-radius:14px;padding:10px;max-width:min(92vw,420px);width:100%;display:grid;gap:8px;justify-items:center;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.cstage{position:relative;direction:ltr;touch-action:none;user-select:none;-webkit-user-select:none;max-width:100%}
.cstage canvas{display:block;max-width:100%;height:auto}
.crect{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(8,20,36,.55);cursor:move;touch-action:none}
.crect b{position:absolute;width:22px;height:22px;background:#fff;border:2px solid var(--teal);border-radius:50%;touch-action:none}
.crect b[data-h=tl]{top:-11px;left:-11px;cursor:nwse-resize}
.crect b[data-h=tr]{top:-11px;right:-11px;cursor:nesw-resize}
.crect b[data-h=bl]{bottom:-11px;left:-11px;cursor:nesw-resize}
.crect b[data-h=br]{bottom:-11px;right:-11px;cursor:nwse-resize}
.car{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}
.cb{font:inherit;font-weight:700;font-size:.88rem;padding:5px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);cursor:pointer}
.cb.on{background:var(--navy);border-color:var(--navy);color:#fff}
.cact{display:flex;gap:6px;width:100%}
.cact .btn{flex:1 1 0;min-width:0;min-height:42px;font-size:.95rem}
.kr.conds{flex-wrap:wrap}
.kr.conds label{flex:1 1 auto;min-width:0}
@media(prefers-reduced-motion:reduce){.stamp{transition:none}}
