/* ==========================================================================
   [D] باشگاه مشتریان، گنج‌پی، فروشگاه‌های همراه، جوایز، نذر و نیکوکاری
   رنگ سطح‌ها داده است (--tier از دیتابیس)؛ بقیه‌ی رنگ‌ها فقط از متغیرهای پوسته.
   ========================================================================== */

/* ---------------------------------------------------------------- نشان سطح */
.tier-pill { --tier: var(--gold); display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--text); background: color-mix(in srgb, var(--tier) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tier) 45%, var(--line)); white-space: nowrap; }
.tier-pill::before { content: ''; width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--tier); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 22%, transparent); }
.tier-dot { --tier: var(--gold); display: inline-block; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 3px; background: var(--tier); flex-shrink: 0; }

/* ---------------------------------------------------------------- هیروی باشگاه */
.club-hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); background: var(--grad-hero), var(--bg); overflow: hidden; isolation: isolate; }
.club-hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.club-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.3; margin: 14px 0 16px; }
.club-hero h1 em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.club-hero .lead { color: var(--text-2); font-size: 1.06rem; max-width: 560px; line-height: 2; }
.club-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-cards { position: relative; min-height: 360px; display: grid; place-items: center; perspective: 1200px; }
.hero-cards .club-card { position: absolute; width: min(380px, 88%); transition: transform .6s var(--ease); }
.hero-cards .club-card:nth-child(1) { transform: rotate(-9deg) translate(-8%, 10%) scale(.9); opacity: .75; }
.hero-cards .club-card:nth-child(2) { transform: rotate(-3deg) translate(-2%, 4%) scale(.95); opacity: .9; }
.hero-cards .club-card:nth-child(3) { transform: rotate(4deg) translate(4%, -4%); }
.hero-cards:hover .club-card:nth-child(3) { transform: rotate(1deg) translate(4%, -8%); }
@media (max-width: 900px) { .club-hero .hero-grid { grid-template-columns: 1fr; } .hero-cards { min-height: 280px; } }

/* ---------------------------------------------------------------- کارت دیجیتال باشگاه */
.club-card { --tier: var(--gold); position: relative; aspect-ratio: 1.586 / 1; border-radius: 22px; padding: clamp(16px, 4%, 26px); color: #F6F1E4; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tier) 70%, transparent), transparent 60%),
              linear-gradient(135deg, color-mix(in srgb, var(--tier) 55%, #0B1424) 0%, #0B1424 70%, color-mix(in srgb, var(--tier) 30%, #0B1424) 100%);
  box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--tier) 60%, #000), 0 10px 24px -12px rgba(0, 0, 0, .45); }
.club-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c-accent); opacity: .13; -webkit-mask: var(--pattern) 0 0 / 86px repeat; mask: var(--pattern) 0 0 / 86px repeat; }
.club-card::after { content: ''; position: absolute; inset: 7px; border-radius: 17px; border: 1px solid color-mix(in srgb, var(--c-accent) 55%, transparent); pointer-events: none; }
.club-card .cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.club-card .cc-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.club-card .cc-brand img { height: 34px; width: auto; }
.club-card .cc-brand strong { font-family: var(--font-display); font-size: clamp(.9rem, 2.6vw, 1.1rem); display: block; line-height: 1.3; }
.club-card .cc-brand small { font-size: .68rem; opacity: .75; letter-spacing: .08em; }
.club-card .cc-tier { font-family: var(--font-display); font-size: clamp(.95rem, 3vw, 1.25rem); padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid color-mix(in srgb, var(--tier) 70%, #fff); white-space: nowrap; }
.club-card .cc-chip { width: 46px; height: 34px; border-radius: 8px; background: var(--grad-gold); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; }
.club-card .cc-chip::after { content: ''; position: absolute; inset: 8px 12px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 4px; }
.club-card .cc-code { font-size: clamp(1.1rem, 4.4vw, 1.7rem); letter-spacing: .18em; direction: ltr; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.club-card .cc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.club-card .cc-name { font-weight: 700; font-size: clamp(.85rem, 2.6vw, 1rem); }
.club-card .cc-label { display: block; font-size: .66rem; opacity: .7; letter-spacing: .06em; }
.club-card .cc-qr { background: #fff; padding: 6px; border-radius: 10px; line-height: 0; flex-shrink: 0; }
.club-card .cc-qr canvas, .club-card .cc-qr img { width: clamp(64px, 18vw, 92px) !important; height: auto !important; }
.club-card.is-mini { border-radius: 16px; }
.card-stage { max-width: 520px; margin-inline: auto; }
@media print {
  body { background: #fff !important; }
  .panel-shell .sidebar, .topnav, .page-head .row, .panel-foot, .assistant-fab, .no-print { display: none !important; }
  .panel-main { margin: 0 !important; }
  .club-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; width: 86mm; margin: 10mm auto; }
}

/* ---------------------------------------------------------------- نردبان سطح‌ها */
.tier-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: end; }
.tier-step { --tier: var(--gold); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 22px 22px; text-align: center;
  border-radius: 150px 150px var(--radius-lg) var(--radius-lg); background: linear-gradient(var(--surface), var(--surface)) padding-box,
  linear-gradient(180deg, var(--tier), color-mix(in srgb, var(--tier) 25%, var(--line)) 60%, var(--line)) border-box; border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); isolation: isolate; overflow: hidden; }
.tier-step::before { content: ''; position: absolute; inset: 0 0 auto; height: 45%; z-index: -1; background: radial-gradient(90% 100% at 50% 0%, color-mix(in srgb, var(--tier) 20%, transparent), transparent 70%); }
.tier-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tier-step .ts-gem { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; border-radius: 18px; transform: rotate(45deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tier) 60%, #fff), var(--tier) 55%, color-mix(in srgb, var(--tier) 65%, #000)); box-shadow: 0 12px 26px -12px var(--tier); }
.tier-step .ts-gem > * { transform: rotate(-45deg); color: #fff; }
.tier-step .ts-level { font-size: .72rem; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.tier-step h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.tier-step .ts-cond { font-size: .8rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; min-height: 3.2em; }
.tier-step ul { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; text-align: start; font-size: .86rem; }
.tier-step li { display: flex; gap: 8px; align-items: flex-start; }
.tier-step li .icon-sm { color: var(--tier); flex-shrink: 0; margin-top: 3px; }
.tier-step.is-current { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 35%, transparent), var(--shadow-lg); }
.tier-step .ts-here { position: absolute; top: 12px; inset-inline-end: 12px; }
@media (min-width: 1000px) { .tier-ladder.is-stairs .tier-step:nth-child(2) { margin-top: -18px; } .tier-ladder.is-stairs .tier-step:nth-child(3) { margin-top: -36px; } .tier-ladder.is-stairs .tier-step:nth-child(4) { margin-top: -54px; } }

/* ---------------------------------------------------------------- گنج‌پی: توضیح و نمودار اقساط */
.gp-panel { position: relative; border-radius: var(--radius-xl); background: var(--grad-brand); color: #F4EFE3; padding: clamp(24px, 4vw, 44px); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); }
.gp-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c-accent); opacity: .08; -webkit-mask: var(--pattern) 0 0 / 100px repeat; mask: var(--pattern) 0 0 / 100px repeat; }
.gp-panel h2, .gp-panel h3 { color: #fff; }
.gp-panel .muted { color: rgba(244, 239, 227, .75); }
.gp-bars { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 10px; align-items: end; height: 150px; margin-top: 18px; }
.gp-bars > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; text-align: center; font-size: .74rem; }
.gp-bars .bar { border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, var(--gold-3), var(--c-accent)); height: var(--h, 60%); box-shadow: 0 10px 20px -12px var(--c-accent); position: relative; }
.gp-bars > div:first-child .bar { background: linear-gradient(180deg, #fff, var(--gold-3)); }
.gp-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.gp-list li { display: flex; gap: 10px; align-items: center; }
.gp-list li .icon-sm { color: var(--gold-3); }

/* ---------------------------------------------------------------- سنجه‌ی خوش‌حسابی */
.score-gauge { position: relative; width: 100%; max-width: 240px; margin-inline: auto; }
.score-gauge svg { width: 100%; height: auto; display: block; }
.score-gauge .sg-track { stroke: var(--surface-3); }
.score-gauge .sg-val { transition: stroke-dashoffset 1s var(--ease); }
.score-gauge .sg-num { position: absolute; inset: auto 0 6% 0; text-align: center; }
.score-gauge .sg-num strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.score-gauge .sg-num small { color: var(--muted); font-size: .78rem; }
.tone-ok { color: var(--ok); } .tone-warn { color: var(--warn); } .tone-bad { color: var(--bad); } .tone-gold { color: var(--gold-ink); }
[data-theme="dark"] .tone-gold { color: var(--gold-2); }

/* ---------------------------------------------------------------- کارت فروشگاه */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.store-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.store-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold-3); color: inherit; }
.store-card .sc-cover { aspect-ratio: 16 / 8; background: var(--grad-brand); position: relative; overflow: hidden; }
.store-card .sc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.store-card:hover .sc-cover img { transform: scale(1.06); }
.store-card .sc-logo { position: absolute; bottom: -30px; inset-inline-start: 18px; width: 64px; height: 64px; border-radius: 18px; background: var(--surface); border: 3px solid var(--surface);
  box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; color: var(--gold); z-index: 2; }
.store-card .sc-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-card .sc-body { padding: 40px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.store-card h3 { margin: 0; font-size: 1.05rem; }
.store-card .sc-meta { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.store-card .sc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); }
.store-card .sc-top { position: relative; }
.disc-medal { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 62px; height: 62px; display: grid; place-items: center; text-align: center; line-height: 1.05;
  border-radius: 50%; background: var(--grad-gold); color: var(--on-gold); box-shadow: var(--shadow-gold); font-weight: 800; }
.disc-medal strong { font-size: 1.15rem; display: block; }
.disc-medal small { font-size: .62rem; font-weight: 700; }
.disc-medal::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(26, 20, 8, .35); }
.gp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); }
[data-theme="dark"] .gp-badge { color: var(--brand-3); }
.stars { display: inline-flex; gap: 1px; color: var(--gold); vertical-align: middle; }
.stars .icon-sm { width: 15px; height: 15px; }
.stars .on { fill: currentColor; }
.stars .off { color: var(--line-strong); }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { cursor: pointer; color: var(--line-strong); padding: 2px; transition: color .15s; }
.star-pick label .icon { width: 22px; height: 22px; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--gold); }
.star-pick input:checked ~ label .icon, .star-pick label:hover .icon, .star-pick label:hover ~ label .icon { fill: currentColor; }
.star-pick input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 6px; }

/* ---------------------------------------------------------------- فیلتر فروشگاه‌ها */
.store-filter { display: grid; gap: 16px; margin-bottom: 26px; }
.store-search { display: flex; gap: 10px; flex-wrap: wrap; padding: 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); align-items: center; }
.store-search .input { border: 0; background: transparent; flex: 1; min-width: 180px; box-shadow: none; }
.store-search .select { width: auto; border-radius: 999px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: .86rem; transition: .2s; }
.cat-chips a small { color: var(--muted); font-size: .74rem; }
.cat-chips a:hover { border-color: var(--gold-3); color: var(--gold-ink); }
.cat-chips a.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.cat-chips a.is-active small { color: rgba(255, 255, 255, .75); }
.cat-chips a .icon-sm { color: var(--gold); }
.cat-chips a.is-active .icon-sm { color: var(--gold-3); }
.map-box { height: var(--h, 520px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 0; position: relative; }
.map-box.sm { --h: 280px; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; }
.leaflet-popup-content { font-family: var(--font); margin: 12px 14px !important; }
.map-pop { display: flex; gap: 10px; align-items: center; min-width: 190px; }
.map-pop img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.map-pop strong { display: block; font-size: .92rem; }
.map-pop small { color: #667085; }
.gk-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--grad-brand); border: 2px solid var(--c-accent); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.gk-pin span { transform: rotate(45deg); color: #fff; font-size: 10px; font-weight: 800; font-family: var(--font); }

/* ---------------------------------------------------------------- صفحه‌ی فروشگاه */
.store-hero { position: relative; min-height: clamp(260px, 36vw, 400px); display: flex; align-items: flex-end; background: var(--grad-brand); overflow: hidden; isolation: isolate; color: #fff; }
.store-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.store-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 26, .1) 0%, rgba(8, 14, 26, .78) 100%); }
.store-hero .container { width: 100%; padding-bottom: 30px; padding-top: 90px; }
.store-hero .sh-row { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.store-hero .sh-logo { width: clamp(84px, 12vw, 116px); aspect-ratio: 1; border-radius: 26px; background: var(--surface); border: 3px solid var(--c-accent); overflow: hidden; display: grid; place-items: center; color: var(--gold); box-shadow: var(--shadow-lg); flex-shrink: 0; }
.store-hero .sh-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 0 0 6px; color: #fff; }
.store-hero .crumbs, .store-hero .crumbs a { color: rgba(255, 255, 255, .8); }
.store-hero .sh-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .9rem; color: rgba(255, 255, 255, .88); }
.store-hero .disc-medal { position: static; width: 96px; height: 96px; margin-inline-start: auto; }
.store-hero .disc-medal strong { font-size: 1.7rem; }
.store-hero .stars .off { color: rgba(255, 255, 255, .35); }

/* ---------------------------------------------------------------- پیش‌فاکتور فروشنده */
.buyer-chip { --tier: var(--gold); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--tier) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tier) 40%, var(--line)); }
.buyer-chip .bc-av { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tier); color: #fff; font-weight: 800; transform: rotate(45deg); }
.buyer-chip .bc-av > * { transform: rotate(-45deg); }
.quote-total { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.method-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-pick label { position: relative; cursor: pointer; }
.method-pick input { position: absolute; opacity: 0; inset: 0; }
.method-pick span { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; transition: .2s; height: 100%; }
.method-pick span .icon { color: var(--gold); }
.method-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.method-pick input:disabled + span { opacity: .5; cursor: not-allowed; }
.method-pick input:focus-visible + span { outline: 2px solid var(--gold); }
[data-theme="dark"] .method-pick input:checked + span { background: color-mix(in srgb, var(--brand) 22%, var(--surface)); }

/* ---------------------------------------------------------------- برنامه‌ی اقساط */
.inst-list { display: grid; gap: 10px; }
.inst-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.inst-row .ir-seq { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); }
.inst-row.is-paid .ir-seq { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.inst-row.is-overdue { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 5%, var(--surface)); }
.inst-row.is-overdue .ir-seq { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.inst-row.is-next { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.inst-row .ir-amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inst-row .ir-sub { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .inst-row { grid-template-columns: auto 1fr; } .inst-row .ir-amt, .inst-row .ir-act { grid-column: 2; } }
.dots-progress { display: flex; gap: 4px; }
.dots-progress i { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); }
.dots-progress i.on { background: var(--ok); }
.dots-progress i.late { background: var(--bad); }

/* ---------------------------------------------------------------- خرید در انتظار تأیید */
.pending-tx { border-radius: var(--radius-lg); padding: 18px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-gold) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow); }
.pending-tx .pt-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pending-tx .pt-amt { font-size: 1.4rem; font-weight: 800; }

/* ---------------------------------------------------------------- جوایز */
.reward-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: .3s var(--ease); }
.reward-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.reward-card .rc-art { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--grad-brand); color: var(--gold-3); position: relative; overflow: hidden; isolation: isolate; }
.reward-card .rc-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c-accent); opacity: .12; -webkit-mask: var(--pattern) 0 0 / 70px repeat; mask: var(--pattern) 0 0 / 70px repeat; }
.reward-card .rc-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -1; }
.reward-card .rc-art .icon-xl { width: 54px; height: 54px; }
.reward-card .rc-cost { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 5px 12px; border-radius: 999px; background: var(--grad-gold); color: var(--on-gold); font-weight: 800; font-size: .86rem; }
.reward-card .rc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.reward-card h3 { margin: 0; font-size: 1rem; }
.reward-card .rc-foot { margin-top: auto; }
.reward-card.is-locked .rc-art { filter: grayscale(.6); }
.voucher { display: flex; align-items: stretch; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.voucher .v-side { width: 80px; display: grid; place-items: center; background: var(--grad-gold); color: var(--on-gold); position: relative; }
.voucher .v-side::after { content: ''; position: absolute; inset-block: 8px; inset-inline-end: -1px; border-inline-end: 2px dashed var(--surface); }
.voucher .v-body { padding: 12px 16px; flex: 1; min-width: 0; }
.voucher .v-code { font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .12em; direction: ltr; display: inline-block; }

/* ---------------------------------------------------------------- نذر و نیکوکاری */
.cause-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: .35s var(--ease); color: inherit; }
.cause-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold-3); color: inherit; }
.cause-card .cz-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--grad-brand); }
.cause-card .cz-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cause-card:hover .cz-img img { transform: scale(1.05); }
.cause-card .cz-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cause-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
.cause-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.cause-progress { display: grid; gap: 8px; }
.cause-progress .meter { height: 10px; }
.cause-progress .cp-row { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; color: var(--muted); }
.cause-progress .cp-row strong { color: var(--text); font-size: .95rem; }
.amount-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.amount-picks label { position: relative; cursor: pointer; }
.amount-picks input { position: absolute; opacity: 0; inset: 0; }
.amount-picks span { display: grid; place-items: center; padding: 14px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; transition: .2s; text-align: center; }
.amount-picks input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.amount-picks input:focus-visible + span { outline: 2px solid var(--brand); }
[data-theme="dark"] .amount-picks input:checked + span { background: color-mix(in srgb, var(--gold) 18%, var(--surface)); }
.verse { font-family: var(--font-nastaliq); font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 2.2; color: var(--gold-ink); text-align: center; }
[data-theme="dark"] .verse { color: var(--gold-2); }
.donor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.donor-list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.donor-list .d-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex-shrink: 0; }

/* ---------------------------------------------------------------- پنل: شاخص‌های باشگاه */
.club-summary { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .club-summary { grid-template-columns: 1fr; } }
.next-tier .nt-item { display: grid; gap: 6px; }
.next-tier .nt-item .row-between { font-size: .84rem; }
.stat-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat-mini > div { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.stat-mini b { display: block; font-size: 1.25rem; font-weight: 800; }
.stat-mini span { font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) { .stat-mini { grid-template-columns: 1fr 1fr; } }
.feature-table td:first-child { color: var(--muted); }
.feature-table td:last-child { font-weight: 700; text-align: end; }
.log-pos { color: var(--ok); font-weight: 700; }
.log-neg { color: var(--bad); font-weight: 700; }
.check-row { width: 18px; height: 18px; accent-color: var(--brand); }
.qr-reader { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.qr-reader video { width: 100%; height: 100%; object-fit: cover; }
.swatch { display: inline-block; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line); vertical-align: middle; }

/* ---------------------------------------------------------------- نقشه در حالت شب */
[data-theme="dark"] .map-box .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
[data-theme="dark"] .leaflet-popup-content-wrapper, [data-theme="dark"] .leaflet-popup-tip { background: var(--surface); color: var(--text); }
[data-theme="dark"] .map-pop small { color: var(--muted); }
.map-pop { color: inherit; }
