/* هدر و لوگوی هم‌مرکز (نشانِ چپِ نام، نام کمی کوچک‌تر از نشان، VIP توان و کوچک‌تر) */
.header .wrap,.header.shrink .wrap{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:auto;min-height:0;padding-block:6px;padding-inline:18px;gap:0;column-gap:14px}
.header .cluster{display:flex;align-items:center;gap:4px}
.header .cluster-right{justify-self:start}
.header .cluster-left{justify-self:end}
.header .brand{justify-self:center;display:inline-flex;flex-direction:row;align-items:center;gap:11px;direction:ltr;text-decoration:none;cursor:pointer;overflow:visible}
.header .emblem,.header.shrink .emblem{width:74px;height:74px;flex:none;transition:transform .4s,width .3s,height .3s}
.header.shrink .emblem{width:64px;height:64px}
.header .brand:hover .emblem{transform:rotate(-4deg)}
.header .wordmark{position:relative;display:flex;flex-direction:column;line-height:1;align-items:flex-start;text-align:left}
.header .wordmark .name-fa-main{font-family:'Vazirmatn',sans-serif;font-weight:700;font-size:32px;line-height:1.34;padding-top:.08em;direction:rtl;white-space:nowrap;overflow:visible;background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
/* سند ۲۱ بند ۱۶ — نامِ لاتینِ سردر هم‌رنگِ لوگو و نامِ فارسی، و کمی بزرگ‌تر ⇒ همان طلاییِ name-fa-main */
.header .wordmark .name-lat{margin-top:4px;font-family:'Cormorant Garamond',serif;font-weight:700;font-size:15px;letter-spacing:3.5px;text-transform:uppercase;color:var(--gold);background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;white-space:nowrap;display:inline-flex;align-items:flex-start}
.header .wordmark .vip{font-weight:700;color:var(--gold);-webkit-text-fill-color:var(--gold);line-height:1;display:inline-block}
.header .wordmark .name-fa-main .vip{font-size:.4em;margin-inline-start:3px;transform:translateY(-.55em)}
.header .wordmark .name-lat .vip{font-family:'Cormorant Garamond',serif;font-size:.62em;letter-spacing:1.2px;margin-inline-start:3px;transform:translateY(-.35em)}
.header .icbtn{width:42px;height:42px}
.header .icbtn svg{width:21px;height:21px}
.header .theme-toggle{width:42px;height:42px;border-radius:3px}
.header .theme-toggle svg{width:21px;height:21px}
/* مودال QR اینستاگرام */
.ig-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:color-mix(in srgb,var(--nv-04101e,#04101e) 72%,transparent);backdrop-filter:blur(4px);padding:20px}
.ig-modal[hidden]{display:none}
.ig-card{position:relative;background:var(--bg);border:1px solid var(--gold-line);border-radius:18px;padding:26px 24px 20px;width:min(330px,92vw);text-align:center;box-shadow:0 24px 60px rgba(var(--nvr-04101e,4,16,30),.45);animation:igPop .25s ease}
@keyframes igPop{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
.ig-close{position:absolute;top:10px;left:12px;width:32px;height:32px;border:0;background:transparent;color:var(--text-dim);font-size:24px;line-height:1;cursor:pointer;border-radius:8px}
.ig-close:hover{color:var(--gold);background:var(--gold-soft)}
.ig-qr-img{width:200px;height:200px;display:block;margin:4px auto 14px;border-radius:12px;background:#fff;padding:10px;box-shadow:0 0 0 1px var(--line)}
.ig-name{font-family:'Cormorant Garamond',serif;font-size:21px;letter-spacing:1px;color:var(--gold);font-weight:600}
.ig-hint{margin:6px 0 16px;font-size:13px;color:var(--text-dim);line-height:1.8}
.ig-open{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:10px;background:var(--gold-grad);color:var(--on-gold);font-weight:700;font-size:13.5px;text-decoration:none}
.ig-open:hover{filter:brightness(1.05)}
@media(max-width:760px){
 .header .wrap,.header.shrink .wrap{padding-inline:12px;column-gap:6px}
 .header .emblem,.header.shrink .emblem{width:58px;height:58px}
 .header .wordmark .name-fa-main{font-size:23px}
 .header .wordmark .name-lat{font-size:12.5px;letter-spacing:2.5px}
 .header .icbtn{width:40px;height:40px}
 .header .icbtn svg{width:20px;height:20px}
}
@media(max-width:440px){
 .header .emblem,.header.shrink .emblem{width:50px;height:50px}
 .header .wordmark .name-fa-main{font-size:20px}
 .header .wordmark .name-lat{font-size:11px;letter-spacing:2px}
}
