/* طلاجات: ریزه‌کاری‌های کارگاه جواهرسازی (جدا از هنرجات و پت‌جات)؛ نقش‌ها در css/gold/ (scripts/gold-ornaments.js)
   گیوشه‌ی چرخان، برق ذرات طلا، لبه‌ی آج‌دار مثل لبه‌ی سکه، الماس کنار تیترها، زنجیر بین بخش‌ها، ملیله در گوشه‌ی کارت‌ها،
   گردنبند آویز روی فوتر، قاب طلایی عکس‌های مقاله و نکته‌ها مثل گواهی با مهر عیار. هر دو حالت روشن و تیره. */
.tj-glints{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.tj-glints::before,.tj-glints::after{content:"";position:absolute;background:url(gold/rosette.svg) center/contain no-repeat;opacity:.08;animation:tj-spin 420s linear infinite}
.tj-glints::before{width:760px;height:760px;top:-330px;inset-inline-start:-300px}
.tj-glints::after{width:840px;height:840px;bottom:-400px;inset-inline-end:-340px;animation-direction:reverse;opacity:.06}
:root[data-theme=light] .tj-glints::before{opacity:.13}:root[data-theme=light] .tj-glints::after{opacity:.1}
@keyframes tj-spin{to{transform:rotate(360deg)}}
.tj-glints i{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);opacity:0;background:radial-gradient(circle,#fff6cf 0 14%,rgba(243,221,140,.55) 30%,transparent 64%);animation:tj-glint var(--d) ease-in-out var(--w) infinite}
.tj-glints i::before{content:"";position:absolute;inset:-60%;background:linear-gradient(90deg,transparent,#fff6cf 50%,transparent) center/100% 1.4px no-repeat,linear-gradient(0deg,transparent,#fff6cf 50%,transparent) center/1.4px 100% no-repeat}
:root[data-theme=light] .tj-glints i{background:radial-gradient(circle,#fff 0 14%,rgba(201,161,59,.5) 32%,transparent 64%)}
:root[data-theme=light] .tj-glints i::before{background:linear-gradient(90deg,transparent,#c9a13b 50%,transparent) center/100% 1.2px no-repeat,linear-gradient(0deg,transparent,#c9a13b 50%,transparent) center/1.2px 100% no-repeat}
@keyframes tj-glint{0%,100%{opacity:0;transform:scale(.4) rotate(0)}8%{opacity:.95;transform:scale(1) rotate(45deg)}18%{opacity:0;transform:scale(.5) rotate(90deg)}}
/* لبه‌ی آج‌دار سکه زیر هدر */
.top::after{inset:auto 0 -2px;height:3px;opacity:.85;background:repeating-linear-gradient(90deg,rgba(0,0,0,.32) 0 1px,transparent 1px 3px),var(--gold-grad)}
/* پشت قهرمان صفحه‌ی اصلی: روزت گیوشه‌ی آروم‌چرخان */
.hero>.wrap{position:relative;z-index:1}
.hero::after{content:"";position:absolute;width:620px;height:620px;inset-inline-start:-180px;top:-150px;background:url(gold/rosette.svg) center/contain no-repeat;opacity:.16;animation:tj-spin 360s linear infinite;pointer-events:none}
/* الماس کنار تیترهای بخش و مقاله */
.sec-head h2::before,.prose h2::before{content:"";display:inline-block;width:26px;height:22px;margin-inline-end:10px;vertical-align:-1px;background:url(gold/diamond.svg) center/contain no-repeat;filter:drop-shadow(0 2px 4px rgba(180,130,20,.35))}
/* زنجیر طلا بین بخش‌های پشت‌سرهم */
main section.block+section.block::before{content:"";display:block;width:min(420px,80%);height:36px;margin:-18px auto 30px;background:url(gold/chain.svg) center/contain no-repeat;opacity:.9}
/* ملیله در گوشه‌ی کارت‌های صفحه‌های عمومی (پنل فروشنده ساده می‌مونه) */
main .card:not(.pn .card):not(.kpi-card){background-image:url(gold/filigree.svg);background-repeat:no-repeat;background-size:34px;background-position:top 6px left 6px}
main .card:not(.pn .card)>*{position:relative}
/* مقاله‌ها: قاب طلایی دولایه برای عکس‌ها، نکته‌ها مثل گواهی با مهر عیار */
.post figure{padding:8px;border-radius:18px;background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--gold-grad) border-box;border:1.5px solid transparent;box-shadow:inset 0 0 0 5px var(--surface),inset 0 0 0 6px color-mix(in srgb,var(--gold2) 45%,transparent),var(--shadow);position:relative}
.post figure::before,.post figure::after{content:"";position:absolute;width:30px;height:30px;background:url(gold/filigree.svg) center/contain no-repeat;pointer-events:none;z-index:1}
.post figure::before{top:3px;left:3px}.post figure::after{bottom:3px;right:3px;transform:rotate(180deg)}
.post figure img{border-radius:12px}
.post-cover{border:1.5px solid transparent;background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--gold-grad) border-box}
.post .tip{position:relative;padding:12px 18px 12px 92px;border-inline-start:0;border:1px solid color-mix(in srgb,var(--gold2) 55%,transparent);outline:1px solid color-mix(in srgb,var(--gold2) 30%,transparent);outline-offset:-6px;background:url(gold/hallmark.svg) left 14px center/64px no-repeat,url(gold/waves.svg) 0 0/240px,color-mix(in srgb,var(--gold2) 8%,var(--surface));background-blend-mode:normal,soft-light,normal}
.post .tip p{margin:8px 0}
.prose h1+p::before{content:none}
/* فوتر: گردنبند آویز روی لبه، موج‌های گیوشه و مهر عیار */
footer.foot{position:relative;margin-top:120px;padding-top:110px;border-top:0;background-image:url(gold/waves.svg),linear-gradient(var(--bg2),var(--bg2));background-size:240px,auto;background-blend-mode:soft-light,normal}
footer.foot::before{content:"";position:absolute;left:0;right:0;top:-34px;height:150px;background:url(gold/necklace.svg) center top/auto 150px no-repeat;pointer-events:none;filter:drop-shadow(0 6px 8px rgba(0,0,0,.25));-webkit-mask:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)}
footer.foot::after{content:"";position:absolute;inset-inline-start:24px;bottom:22px;width:110px;height:74px;background:url(gold/hallmark.svg) center/contain no-repeat;opacity:.18;transform:rotate(-10deg);pointer-events:none}
footer.foot>.wrap{position:relative;z-index:1}
@media (max-width:760px){footer.foot{margin-top:90px;padding-top:90px}footer.foot::before{top:-24px;height:110px;background-size:auto 110px}.hero::after{width:380px;height:380px;inset-inline-start:-140px;top:-90px}.tj-glints i:nth-child(n+8){display:none}.post .tip{padding-left:18px;background-image:url(gold/waves.svg);background-size:240px}}
@media (prefers-reduced-motion:reduce){.tj-glints::before,.tj-glints::after,.hero::after{animation:none}.tj-glints i{display:none}}
@media print{.tj-glints,footer.foot::before,footer.foot::after,.hero::after{display:none!important}}
.print-page .tj-glints{display:none}
