/* ویترین طلافروشی — پایه‌ی مشترک همه‌ی قالب‌ها؛ رنگ و فونت از متغیرهای قالب میاد */
body.sf { font-family: var(--font); background: var(--pattern), radial-gradient(900px 420px at 80% -10%, color-mix(in srgb, var(--acc) 10%, transparent), transparent 65%), var(--bg); background-attachment: fixed; }
.sf h1, .sf h2, .sf h3, .sf .sf-name, .sf .sf-pname { font-family: var(--display); font-weight: var(--hw); }
.sf .btn-gold { color: var(--on-acc); }
.sf .btn-gold:hover { color: var(--on-acc); }
.sf .hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.lang-en .sf-back, .lang-en .sf-dir { direction: ltr; }

/* سربرگ کوچک */
.sf-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.sf-top-in { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.sf-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; min-width: 0; }
.sf-brand b { font-family: var(--display); font-weight: var(--hw); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-brand:hover { color: var(--text); }
.sf-mini-logo { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); }
.sf-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.sf-mini-logo span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; font-size: 1.1rem; }
.sf-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--acc); color: var(--on-acc); font-size: .7rem; flex: none; }
.sf-top-act { display: flex; align-items: center; gap: 8px; }
.sf-lang { display: flex; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.sf-lang a { padding: 3px 10px; border-radius: 8px; color: var(--muted); font-size: .82rem; font-weight: 700; font-family: Estedad, sans-serif; }
.sf-lang a.on { background: var(--acc); color: var(--on-acc); }
.sf-top-call { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }

/* سربرگ مغازه (hero) — پنج مدل */
.sf-hero { position: relative; overflow: hidden; }
.sf-cover { position: absolute; inset: 0 0 auto; height: 190px; background: var(--gold-grad); background-size: cover; background-position: center; opacity: .95; }
.sf-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--bg) 85%, transparent)); }
.sf-hero-in { position: relative; display: flex; align-items: flex-end; gap: 18px; padding: 120px 0 18px; flex-wrap: wrap; }
.sf-logo { width: 116px; height: 116px; border-radius: calc(var(--r) + 6px); overflow: hidden; flex: none; background: var(--surface); border: 4px solid var(--bg); box-shadow: 0 14px 40px -12px rgba(0,0,0,.45); display: grid; place-items: center; }
.sf-logo img { width: 100%; height: 100%; object-fit: cover; }
.sf-logo span { font-family: var(--display); font-weight: var(--hw); font-size: 3rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-id { flex: 1; min-width: 220px; }
.sf-name { margin: 0; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.35; }
.sf-tag { margin: 2px 0 0; color: var(--muted); font-size: 1.02rem; }
.sf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .86rem; color: var(--muted); }
.sf-verified { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 99px; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); font-weight: 700; font-size: .8rem; }
.sf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); font-size: .82em; }
.sf-cts { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-ct { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .85rem; font-weight: 700; }
.sf-ct:hover { border-color: var(--acc); color: var(--text); }
.sf-ct i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); }
.ct-wa i { background: #25d366; } .ct-tg i { background: #2aabee; } .ct-eitaa i { background: #f7941d; } .ct-bale i { background: #2fbf71; } .ct-rubika i { background: #7a3ff2; } .ct-ig i { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .ct-tel i { background: var(--acc); }

.hero-center .sf-cover { height: 100%; opacity: .12; }
.hero-center .sf-cover::after { display: none; }
.hero-center .sf-hero-in { flex-direction: column; align-items: center; text-align: center; padding: 56px 0 28px; }
.hero-center .sf-meta, .hero-center .sf-cts { justify-content: center; }
.hero-center .sf-name::after { content: ''; display: block; width: 120px; height: 12px; margin: 10px auto 0; background: radial-gradient(circle, var(--acc) 3px, transparent 3.5px) center / 12px 12px no-repeat, linear-gradient(90deg, transparent, var(--acc), transparent) center / 100% 1px no-repeat; }

.hero-split .sf-cover { inset: 0; height: auto; width: 46%; inset-inline-start: auto; border-start-start-radius: 0; border-end-start-radius: 60px; opacity: 1; }
.hero-split .sf-cover::after { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 20%, transparent), transparent); }
[dir=rtl] .hero-split .sf-cover { inset-inline-end: 0; inset-inline-start: auto; border-radius: 0 0 0 60px; }
[dir=ltr] .hero-split .sf-cover { inset-inline-end: 0; border-radius: 0 0 60px 0; }
.hero-split .sf-hero-in { padding: 64px 0 34px; padding-inline-end: 46%; align-items: center; }
.hero-split .sf-logo { width: 96px; height: 96px; }
@media (max-width: 760px) { .hero-split .sf-cover { width: 100%; height: 140px; border-radius: 0 !important; } .hero-split .sf-hero-in { padding-inline-end: 0; padding-top: 90px; align-items: flex-end; } }

.hero-minimal .sf-cover { display: none; }
.hero-minimal .sf-hero-in { padding: 36px 0 18px; align-items: center; border-bottom: 1px solid var(--line); }
.hero-minimal .sf-logo { width: 80px; height: 80px; border: 1px solid var(--line); box-shadow: none; }

.hero-arch .sf-cover { height: 100%; opacity: .1; }
.hero-arch .sf-cover::after { display: none; }
.hero-arch .sf-hero-in { flex-direction: column; align-items: center; text-align: center; padding: 40px 0 26px; }
.hero-arch .sf-logo { width: 150px; height: 190px; border-radius: 75px 75px 18px 18px; border: 2px solid var(--acc); outline: 6px solid color-mix(in srgb, var(--acc) 18%, transparent); outline-offset: 5px; }
.hero-arch .sf-meta, .hero-arch .sf-cts { justify-content: center; }
.hero-arch .sf-name { font-size: clamp(2.2rem, 5.4vw, 3.6rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .25em .3em .4em; margin: -.25em 0 -.3em; }
/* نستعلیق و رقعه بلندتر از بقیه‌ان؛ فاصله‌ی خط بیشتر تا بالا و پایین حروف بریده نشه */
.hf-nastaliq .sf-name, .hf-nastaliq .sf-pname, .hf-nastaliq h1, .hf-nastaliq h2, .hf-nastaliq h3 { line-height: 2.1; }
.hf-nastaliq .sf-brand b, .hf-nastaliq .sf-foot-name, .hf-nastaliq .sf-form-card b { line-height: 2; }
.hf-ruqaa .sf-name, .hf-ruqaa .sf-pname { line-height: 1.8; }

/* نوار قیمت و کمپین */
.sf-sample { background: var(--surface2); border: 1px dashed var(--line); border-radius: 12px; padding: 8px 14px; font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.sf-rate { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 12px; padding: 12px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.sf-rate b { font-size: 1.25rem; font-weight: 900; font-family: Estedad, var(--font); }
.sf-camp { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 20px; border-radius: var(--r); background: var(--gold-grad); color: var(--on-acc); box-shadow: 0 16px 40px -18px color-mix(in srgb, var(--acc) 70%, transparent); }
.sf-camp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%); animation: sfShine 4s infinite; }
@keyframes sfShine { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.sf-camp b { font-size: 1.15rem; display: block; }
.sf-camp span { font-size: .9rem; opacity: .85; }
.sf-count { text-align: center; }
.sf-count small { display: block; font-size: .72rem; opacity: .8; }
.sf-count b { font-size: 1.3rem; font-family: Estedad, sans-serif; }

/* ابزار: دسته‌ها و جستجو */
.sf-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.sf-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sf-cats button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .86rem; }
.sf-cats button.on { background: var(--acc); color: var(--on-acc); border-color: transparent; }
.sf-search { width: 230px !important; border-radius: 999px !important; padding: 9px 16px !important; }
@media (max-width: 620px) { .sf-search { width: 100% !important; } }

/* محصولات — چهار چیدمان */
.sf .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sf .product { position: relative; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.sf .product:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); box-shadow: 0 20px 44px -22px color-mix(in srgb, var(--acc) 50%, rgba(0,0,0,.6)); }
.sf .product .ph { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 50% 38%, var(--surface2), var(--bg2)); }
.sf .product .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sf .product:hover .ph img { transform: scale(1.05); }
.ph-ic { font-size: 3.2rem; }
.sf .product .pb { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sf .pn { color: var(--text); font-weight: 800; line-height: 1.6; }
.sf .pn:hover { color: var(--acc); }
.sf .product .spec { font-size: .78rem; color: var(--muted); }
.sf .product .price { margin-top: auto; padding-top: 6px; font-family: Estedad, var(--font); }
.sf .product .price b { font-size: 1.14rem; font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf .product .price small { color: var(--muted); }
.was { display: block; color: var(--faint); font-size: .8rem; line-height: 1.4; }
.sf-pprice .was { display: inline; margin-inline-end: 8px; font-size: 1rem; }
.sf .product.na { opacity: .55; }
.sf .product.pinned { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.p-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; background: rgba(12,10,6,.72); color: #fff; backdrop-filter: blur(6px); }
.p-badge.b-best, .p-badge.b-unique { background: var(--gold-grad); color: #1a1305; }
.p-off { position: absolute; top: 10px; inset-inline-end: 10px; padding: 3px 9px; border-radius: 99px; font-size: .72rem; font-weight: 900; background: #d7263d; color: #fff; }
.p-off.inline { position: static; display: inline-block; margin-inline-start: 8px; vertical-align: middle; }

.grid-tall .products { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-tall .product .ph { aspect-ratio: 4 / 5; }
.grid-large .products { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.grid-large .product .pb { padding: 16px 18px 18px; }
.grid-large .pn { font-size: 1.12rem; }
.grid-list .products { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.grid-list .product { flex-direction: row; }
.grid-list .product .ph { width: 150px; flex: none; aspect-ratio: auto; min-height: 150px; }
@media (max-width: 620px) {
  .sf .products, .grid-tall .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-large .products, .grid-list .products { grid-template-columns: 1fr; }
  .grid-list .product .ph { width: 118px; min-height: 118px; }
  .sf .product .pb { padding: 10px 11px 12px; }
  .sf .product .price b { font-size: 1rem; }
}

/* سبک کارت‌ها */
.cards-glass .product, .cards-glass .sf-box, .cards-glass .sf-rate, .cards-glass .sf-form-card { background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: color-mix(in srgb, var(--text) 10%, transparent); }
.cards-outline .product { background: transparent; box-shadow: none; }
.cards-outline .product .ph { border-bottom: 1px solid var(--line); }
.cards-flat .product { border: 0; background: transparent; box-shadow: none !important; }
.cards-flat .product .ph { border-radius: var(--r); background: var(--surface2); }
.cards-flat .product .pb { padding-inline: 2px; }
.cards-frame .product { padding: 8px; border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--line)); }
.cards-frame .product::before { content: ''; position: absolute; inset: 4px; border: 1px solid color-mix(in srgb, var(--acc) 22%, transparent); border-radius: calc(var(--r) - 3px); pointer-events: none; }
.cards-frame .product .ph { border-radius: calc(var(--r) - 6px); }
.cards-soft .product { box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }

.sf-note { font-size: .82rem; color: var(--faint); margin: 16px 0 0; }
.sf-h2 { margin: 36px 0 14px; font-size: 1.5rem; }

/* فرم‌ها و بخش‌های پایین */
.sf-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 30px; }
.sf-form-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: .25s; overflow: hidden; }
.sf-form-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-grad); }
.sf-form-card:hover { color: var(--text); transform: translateY(-2px); border-color: var(--acc); }
.sf-form-card .ic { font-size: 1.8rem; }
.sf-form-card b { font-size: 1.08rem; font-family: var(--display); font-weight: var(--hw); }
.sf-form-card small { color: var(--muted); line-height: 1.8; }
.sf-form-card .go { position: absolute; bottom: 16px; inset-inline-end: 18px; color: var(--acc); font-size: 1.2rem; }
[dir=ltr] .sf-form-card .go, [dir=ltr] .sf-back .arr { transform: scaleX(-1); display: inline-block; }
.sf-back .arr { font-style: normal; }
.sf-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.sf-box { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.sf-box h3 { margin: 0 0 8px; font-size: 1.05rem; }
.sf-box p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.sf-calc-in { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sf-calc-in label span { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
.sf-calc-in input, .sf-calc-in select { padding: 8px 10px !important; border-radius: 10px !important; }
.sf-calc-out { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sf-calc-out span { color: var(--muted); font-size: .85rem; }
.sf-calc-out b { font-size: 1.3rem; font-weight: 900; font-family: Estedad, var(--font); }
.sf-map { margin-top: 18px; }
.sf-dir { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sf-dir span { display: flex; gap: 6px; }

.sf-foot { margin-top: 50px; padding: 28px 0 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 85%, transparent); font-size: .88rem; color: var(--muted); }
.sf-foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.sf-foot-name { font-family: var(--display); font-weight: var(--hw); font-size: 1.2rem; color: var(--text); }
.sf-foot p { margin: 4px 0; }
.sf-legal { font-size: .76rem; color: var(--faint); margin-top: 16px !important; }
.sf-made { text-align: center; font-size: .8rem; margin-top: 12px !important; }

/* صفحه‌ی محصول */
.sf-back { display: inline-block; margin: 18px 0 10px; color: var(--muted); font-size: .9rem; }
.sf-pp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .sf-pp-grid { grid-template-columns: 1fr; } }
.sf-gal-main { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: radial-gradient(circle at 50% 38%, var(--surface2), var(--bg2)); display: grid; place-items: center; border: 1px solid var(--line); }
.sf-gal-main img { width: 100%; height: 100%; object-fit: cover; }
.sf-gal-main .ph-ic { font-size: 6rem; }
.sf-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.sf-thumbs button { flex: none; width: 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface2); }
.sf-thumbs button.on { border-color: var(--acc); }
.sf-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sf-crumb { color: var(--muted); font-size: .85rem; }
.sf-pname { margin: 4px 0 6px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.sf-pprice { margin: 10px 0 16px; font-family: Estedad, var(--font); }
.sf-pprice b { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.sf-specs div { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sf-specs small { display: block; color: var(--muted); font-size: .75rem; }
.sf-specs b { font-family: Estedad, var(--font); }
.sf-break { margin: 14px 0; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.sf-break summary { cursor: pointer; font-weight: 800; }
.sf-break ul { list-style: none; margin: 8px 0 0; padding: 0; }
.sf-break li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; font-family: Estedad, var(--font); }
.sf-break li.sum { border-bottom: 0; font-weight: 900; }
.sf-pact { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }

/* فرم درخواست */
.sf-req-card { max-width: 560px; margin: 0 auto; padding: 26px; border-radius: calc(var(--r) + 4px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sf-req-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sf-req-head .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: color-mix(in srgb, var(--acc) 16%, var(--surface2)); flex: none; }
.sf-req-head h1 { margin: 0; font-size: 1.6rem; }
.sf-req-head p { margin: 0; font-size: .9rem; }

/* شناسنامه‌ی دیجیتال */
.sf-cert-wrap { max-width: 720px; padding-top: 24px; }
.cert { position: relative; border-radius: 26px; padding: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 90%, var(--acc) 10%), var(--surface)); border: 1px solid color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); overflow: hidden; }
.cert::before { content: ''; position: absolute; inset: 8px; border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); border-radius: 20px; pointer-events: none; }
.cert::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--acc) 5%, transparent) 0 2px, transparent 2px 10px); pointer-events: none; }
.cert > * { position: relative; z-index: 1; }
.cert-head { display: flex; gap: 14px; align-items: center; }
.cert-head small { color: var(--acc); font-weight: 800; letter-spacing: 0; }
.cert-head h1 { margin: 0; font-size: 1.6rem; }
.cert-logo { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; flex: none; }
.cert-logo img { width: 100%; height: 100%; object-fit: cover; }
.cert-logo span { font-size: 1.8rem; font-weight: 900; }
.cert-seal { margin-inline-start: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: var(--gold-grad); color: #1a1305; font-size: 1.8rem; font-weight: 900; line-height: 1; box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 25%, transparent); }
.cert-seal small { font-size: .78rem; font-weight: 900; margin-top: 4px; }
.cert.revoked .cert-seal { background: #7a1f2a; color: #fff; }
.cert-body { display: flex; gap: 18px; margin: 22px 0; flex-wrap: wrap; }
.cert-img { width: 170px; height: 170px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.cert-rows { flex: 1; min-width: 240px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.cert-rows .wide { grid-column: 1 / -1; }
.cert-rows small { display: block; color: var(--muted); font-size: .76rem; }
.cert-rows b { font-family: Estedad, var(--font); }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 1px dashed color-mix(in srgb, var(--acc) 40%, var(--line)); padding-top: 16px; }
.cert-foot small { display: block; color: var(--muted); font-size: .75rem; direction: ltr; text-align: start; }
.cert-code { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; direction: ltr; display: block; font-family: Estedad, monospace; }
.cert-qr { width: 110px; background: #fff; padding: 6px; border-radius: 12px; }
.cert-qr svg { display: block; width: 100%; height: auto; }
@media print {
  .sf-top, .sf-foot, .sf-cert-wrap > p, .sf-cert-wrap > div:last-child { display: none !important; }
  body.sf { background: #fff; }
  .cert { box-shadow: none; }
}

/* پیش‌نمایش قالب برای صاحب مغازه */
.tpl-preview { position: relative; z-index: 50; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: #111; color: #fff; font: 700 .86rem Estedad, sans-serif; }
.tpl-preview a, .tpl-preview button { color: #1a1305; background: linear-gradient(120deg,#e3c160,#fff1b8 50%,#d4af37); border: 0; border-radius: 10px; padding: 6px 14px; font: inherit; cursor: pointer; }
.tpl-preview .ghost { background: #2a2a2a; color: #fff; }
.cert-stolen { margin-bottom: 14px; padding: 14px 18px; border-radius: 16px; background: #7a1f2a; color: #fff; font-weight: 700; line-height: 1.9; }
.cert-hist, .cert-owner { margin-top: 14px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cert-hist ul { list-style: none; margin: 8px 0 0; padding: 0; }
.cert-hist li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.cert-hist li:last-child { border-bottom: 0; }
.cert-owner summary { cursor: pointer; font-weight: 800; }
.cert-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.cert-tr-in { display: flex; gap: 6px; }
.cert-tr-in input { padding: 7px 10px !important; }
@media print { .cert-hist, .cert-owner, .alert { display: none !important; } }
.track { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.track li { display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative; color: var(--faint); }
.track li i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; background: var(--surface2); border: 2px solid var(--line); flex: none; z-index: 1; }
.track li:not(:last-child)::after { content: ''; position: absolute; top: 42px; inset-inline-start: 15px; width: 2px; height: calc(100% - 32px); background: var(--line); }
.track li.done { color: var(--text); } .track li.done i { background: var(--acc); color: var(--on-acc); border-color: transparent; }
.track li.now { color: var(--text); font-weight: 800; } .track li.now i { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 20%, transparent); }

.sf-req { padding-top: 24px; padding-bottom: 10px; }

/* صفحه‌ی لینک بیو */
.bio { max-width: 520px; margin: 0 auto; padding: 34px 16px 40px; text-align: center; }
.bio-logo { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--acc); font-size: 2.4rem; font-weight: 900; color: var(--acc); }
.bio-logo img { width: 100%; height: 100%; object-fit: cover; }
.bio-name { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.bio-tag { color: var(--muted); margin: 6px 0 0; }
.bio-city { color: var(--faint); font-size: .85rem; margin: 4px 0 0; }
.bio-rate { display: inline-flex; gap: 6px; align-items: baseline; margin: 14px 0 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.bio-rate b { color: var(--text); }
.bio-links { display: grid; gap: 10px; margin-top: 16px; }
.bio-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 800; transition: transform .15s, border-color .15s; }
.bio-btn:hover { transform: translateY(-2px); border-color: var(--acc); color: var(--text); }
.bio-btn i { font-style: normal; font-size: 1.25rem; width: 28px; }
.bio-btn span { flex: 1; text-align: center; margin-inline-end: 28px; }
.bio-main { background: var(--acc); color: var(--on-acc); border-color: transparent; }
.bio-main:hover { color: var(--on-acc); }
.bio-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; border-color: transparent; }
.bio-ig:hover { color: #fff; }
.bio-h { font-size: 1.05rem; margin: 26px 0 10px; }
.bio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bio-grid a { display: flex; flex-direction: column; gap: 2px; color: var(--text); font-size: .78rem; }
.bio-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; border: 1px solid var(--line); }
.bio-img img { width: 100%; height: 100%; object-fit: cover; }
.bio-img em { font-style: normal; font-size: 1.8rem; }
.bio-grid b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.bio-grid small { color: var(--acc); font-weight: 800; }
.bio-note { color: var(--faint); font-size: .76rem; margin-top: 22px; line-height: 1.9; }
