/* «مشعل وانتا» — support page, dock torch, nudge bubble, supporter badges. */

/* ---------- page ---------- */
.tb-page { position: relative; padding-bottom: 24px; }
.tb-page::before {
  content: ""; position: absolute; inset: -16px -16px auto; height: 420px; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 55% at 50% 30%, rgba(255, 128, 30, .22), rgba(255, 80, 20, .06) 55%, transparent 75%);
}
.tb-page > * { position: relative; z-index: 1; }
.tb-hero { display: grid; justify-items: center; text-align: center; padding: 6px 0 4px; }
.tb-title { margin: 2px 0 0; font-size: 22px; letter-spacing: -.2px; background: linear-gradient(180deg, rgb(var(--sk-fff3d6, 255, 243, 214)), rgb(var(--sk-ffb347, 255, 179, 71)) 70%, #ff7a1a);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-head { margin: 6px 0 12px; font-size: 15px; color: rgb(var(--sk-ffe2bd, 255, 226, 189)); opacity: .92; }
.tb-meter { width: min(320px, 86%); height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(var(--sk-000000, 0, 0, 0), .5); }
.tb-meter i { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgb(var(--sk-ffd34d, 255, 211, 77)), #ff7a1a 60%, #ff3d1a); box-shadow: 0 0 12px rgba(255, 122, 26, .7);
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.tb-meter-cap { margin-top: 6px; color: rgb(var(--sk-d9b98f, 217, 185, 143)); font-size: 12px; }

/* ---------- torch ---------- */
.tb-torch { position: relative; width: 120px; height: 190px; margin: 0 auto -4px; --flame: .7; }
.tb-glow { position: absolute; left: 50%; top: 34%; width: 220px; height: 220px; transform: translate(-50%, -50%) scale(var(--flame));
  border-radius: 50%; background: radial-gradient(circle, rgba(var(--sk-ffaa3c, 255, 170, 60), .42), rgba(255, 90, 20, .12) 45%, transparent 70%);
  animation: tb-breathe 3.2s ease-in-out infinite; }
.tb-fire { position: absolute; left: 50%; bottom: 70px; width: 110px; height: 104px; transform: translateX(-50%) scale(var(--flame));
  transform-origin: 50% 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 120, 30, .65)); }
.tb-fire path { transform-origin: 50% 100%; transform-box: fill-box; }
.tb-fire .f1 { fill: #ff5a1a; animation: tb-flick 1.3s ease-in-out infinite; }
.tb-fire .f2 { fill: rgb(var(--sk-ff9a22, 255, 154, 34)); animation: tb-flick 1s ease-in-out -.3s infinite reverse; }
.tb-fire .f3 { fill: rgb(var(--sk-ffe27a, 255, 226, 122)); animation: tb-flick .8s ease-in-out -.5s infinite; }
.tb-bowl { position: absolute; left: 50%; bottom: 58px; width: 64px; height: 16px; transform: translateX(-50%);
  border-radius: 6px 6px 22px 22px; background: linear-gradient(180deg, rgb(var(--sk-f2d27a, 242, 210, 122)), rgb(var(--sk-b8862e, 184, 134, 46)) 60%, rgb(var(--sk-7a5418, 122, 84, 24)));
  box-shadow: 0 2px 0 rgb(var(--sk-5a3c10, 90, 60, 16)), inset 0 2px 0 rgba(255, 255, 255, .45); }
.tb-handle { position: absolute; left: 50%; bottom: 0; width: 18px; height: 60px; transform: translateX(-50%);
  border-radius: 4px 4px 9px 9px; background: linear-gradient(90deg, #6b3f1c, #a8693a 45%, #6b3f1c);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }
.tb-ember { position: absolute; left: 50%; bottom: 120px; width: 4px; height: 4px; border-radius: 50%; background: rgb(var(--sk-ffd27a, 255, 210, 122));
  box-shadow: 0 0 6px 2px rgba(var(--sk-ff9628, 255, 150, 40), .8); opacity: 0; animation: tb-ember 3.4s linear infinite; }
.tb-ember.e1 { --x: -26px; animation-delay: 0s; }
.tb-ember.e2 { --x: 18px; animation-delay: .7s; }
.tb-ember.e3 { --x: -8px; animation-delay: 1.4s; width: 3px; height: 3px; }
.tb-ember.e4 { --x: 30px; animation-delay: 2.1s; }
.tb-ember.e5 { --x: -34px; animation-delay: 2.8s; width: 3px; height: 3px; }
.tb-torch.flare .tb-fire { animation: tb-flare 1.4s cubic-bezier(.2, .9, .3, 1); }
.tb-torch.flare .tb-glow { animation: tb-flare-glow 1.4s ease-out; }

@keyframes tb-flick { 0%, 100% { transform: scale(1, 1) skewX(0) } 25% { transform: scale(.94, 1.06) skewX(2deg) }
  50% { transform: scale(1.04, .96) skewX(-2deg) } 75% { transform: scale(.97, 1.04) skewX(1deg) } }
@keyframes tb-breathe { 0%, 100% { opacity: .85 } 50% { opacity: 1 } }
@keyframes tb-ember { 0% { opacity: 0; transform: translate(0, 0) } 10% { opacity: 1 }
  100% { opacity: 0; transform: translate(var(--x), -120px) } }
@keyframes tb-flare { 0% { transform: translateX(-50%) scale(var(--flame)) } 30% { transform: translateX(-50%) scale(calc(var(--flame) * 1.35)) }
  100% { transform: translateX(-50%) scale(var(--flame)) } }
@keyframes tb-flare-glow { 30% { transform: translate(-50%, -50%) scale(calc(var(--flame) * 1.6)); opacity: 1 } }

/* ---------- status lines ---------- */
.tb-mine, .tb-pending { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px auto 0; width: fit-content;
  padding: 8px 14px; border-radius: 99px; font-size: 14px; }
.tb-mine { background: linear-gradient(90deg, rgba(var(--sk-ffbe46, 255, 190, 70), .18), rgba(255, 110, 30, .18)); border: 1px solid rgba(var(--sk-ffbe5a, 255, 190, 90), .35); color: rgb(var(--sk-ffe6b8, 255, 230, 184)); }
.tb-mine .ic { width: 22px; height: 22px; }
.tb-mine.pop { animation: tb-pop .7s cubic-bezier(.2, 1.6, .4, 1); }
.tb-pending { background: rgba(255, 255, 255, .06); color: rgb(var(--sk-cfd6e6, 207, 214, 230)); font-size: 13px; }
@keyframes tb-pop { 0% { transform: scale(.6) } 60% { transform: scale(1.12) } 100% { transform: scale(1) } }

/* ---------- tiers ---------- */
.tb-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
.tb-tier { display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; border-radius: 18px; cursor: pointer; color: #fff;
  border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  transition: transform .18s ease, border-color .2s, box-shadow .2s; font: inherit; }
.tb-tier:active { transform: scale(.96); }
.tb-tier:hover { border-color: rgba(var(--sk-ffaa46, 255, 170, 70), .5); box-shadow: 0 6px 22px rgba(255, 110, 30, .18); }
.tb-tier-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(255, 150, 50, .25), transparent 70%); }
.tb-tier-ic .ic { width: 42px; height: 42px; }
.tb-tier b { font-size: 14px; }
.tb-tier small { font-size: 12px; color: rgb(var(--sk-ffcf8f, 255, 207, 143)); }
.tb-tier.t-volcano { background: linear-gradient(180deg, rgba(255, 90, 30, .2), rgba(120, 30, 60, .14)); border-color: rgba(255, 120, 60, .35); }
.tb-tier.t-custom { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; gap: 10px; padding: 10px 14px; }
.tb-tier.t-custom .tb-tier-ic { width: 36px; height: 36px; }
.tb-tier.t-custom .tb-tier-ic .ic { width: 24px; height: 24px; }
@media (min-width: 560px) { .tb-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- hall of torchbearers ---------- */
.tb-hall { margin-top: 18px; }
.tb-hall-title { text-align: center; margin: 4px 0 12px; font-size: 16px; color: rgb(var(--sk-ffe2bd, 255, 226, 189)); letter-spacing: .3px; }
.tb-hall-empty { display: grid; justify-items: center; gap: 6px; text-align: center; color: rgb(var(--sk-c9b39a, 201, 179, 154)); padding: 18px 10px; }
.tb-hall-empty .ic { width: 44px; height: 44px; opacity: .8; }
.tb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.tb-pod { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 10px 6px 12px; border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; animation: tb-rise .6s cubic-bezier(.2, .9, .3, 1.2) forwards; animation-delay: calc(var(--d) * .12s + .1s); min-width: 0; }
.tb-pod.empty { visibility: hidden; }
.tb-pod.r1 { padding-top: 14px; padding-bottom: 22px; --m1: rgb(var(--sk-fff1b0, 255, 241, 176)); --m2: rgb(var(--sk-e6b422, 230, 180, 34)); --m3: rgb(var(--sk-9a6d0a, 154, 109, 10)); --glow: rgba(var(--sk-ffc83c, 255, 200, 60), .35); }
.tb-pod.r2 { --m1: #ffffff; --m2: rgb(var(--sk-b9c4d6, 185, 196, 214)); --m3: rgb(var(--sk-6f7c92, 111, 124, 146)); --glow: rgba(var(--sk-bed2f0, 190, 210, 240), .22); }
.tb-pod.r3 { --m1: #ffd2a8; --m2: #c47a3c; --m3: #7a4418; --glow: rgba(220, 130, 60, .25); }
.tb-pod.r1, .tb-pod.r2, .tb-pod.r3 { box-shadow: 0 10px 30px var(--glow); border-color: color-mix(in srgb, var(--m2) 45%, transparent); }
.tb-pod.me { outline: 2px solid rgb(var(--sk-ffb347, 255, 179, 71)); outline-offset: 2px; }
.tb-ring { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 2px;
  background: radial-gradient(circle at 35% 30%, var(--m1), var(--m2) 55%, var(--m3)); color: rgb(var(--sk-2a1a04, 42, 26, 4)); font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 2px rgba(var(--sk-000000, 0, 0, 0), .25), 0 4px 12px var(--glow); }
.tb-pod.r1 .tb-ring { width: 42px; height: 42px; font-size: 18px; }
.tb-ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--m1) 80%, transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent 58%, rgb(var(--sk-000000, 0, 0, 0)) 60%); mask: radial-gradient(circle, transparent 58%, rgb(var(--sk-000000, 0, 0, 0)) 60%);
  animation: tb-spin 3.6s linear infinite; }
.tb-pod.r1 .tb-ring::before { content: ""; position: absolute; top: -15px; left: 50%; width: 22px; height: 14px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgb(var(--sk-fff1b0, 255, 241, 176)), rgb(var(--sk-e6b422, 230, 180, 34))); clip-path: polygon(0 100%, 0 30%, 25% 65%, 50% 0, 75% 65%, 100% 30%, 100% 100%);
  filter: drop-shadow(0 0 6px rgba(var(--sk-ffd250, 255, 210, 80), .8)); }
.tb-pod b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-pod small { font-size: 11px; color: rgb(var(--sk-b9a58c, 185, 165, 140)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-pod em { font-style: normal; font-size: 12px; color: rgb(var(--sk-ffd28a, 255, 210, 138)); }
.tb-medal { font-size: 10.5px; padding: 2px 8px; border-radius: 99px; margin-top: 2px;
  background: linear-gradient(90deg, var(--m3), var(--m2)); color: #fff; text-shadow: 0 1px 1px rgba(var(--sk-000000, 0, 0, 0), .4); white-space: nowrap; }
.tb-pod.r1 .tb-medal { position: relative; overflow: hidden; }
.tb-pod.r1 .tb-medal::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); animation: tb-shine 3.2s ease-in-out 1s infinite; }
.tb-flag { width: 34px; height: 23px; border-radius: 5px; object-fit: cover; box-shadow: 0 2px 6px rgba(var(--sk-000000, 0, 0, 0), .4); }
.tb-flag.none { display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.tb-flag.none .ic { width: 16px; height: 16px; opacity: .6; }
.tb-rest { display: grid; gap: 6px; margin-top: 12px; }
.tb-row { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(var(--sk-ffaa46, 255, 170, 70), .12); }
.tb-row.me { border-color: rgb(var(--sk-ffb347, 255, 179, 71)); background: rgba(var(--sk-ffaa46, 255, 170, 70), .1); }
.tb-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.tb-row small { font-size: 11px; color: rgb(var(--sk-b9a58c, 185, 165, 140)); white-space: nowrap; }
.tb-row em { font-style: normal; font-size: 12px; color: rgb(var(--sk-ffd28a, 255, 210, 138)); white-space: nowrap; }
.tb-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: radial-gradient(circle at 35% 30%, rgb(var(--sk-ffcf8a, 255, 207, 138)), #c4661c); color: #2a1404; }
.tb-count { text-align: center; color: rgb(var(--sk-a8987f, 168, 152, 127)); font-size: 12px; margin-top: 12px; }
@keyframes tb-rise { from { opacity: 0; transform: translateY(18px) scale(.94) } to { opacity: 1; transform: none } }
@keyframes tb-spin { to { transform: rotate(360deg) } }
@keyframes tb-shine { 0%, 60% { transform: translateX(-120%) } 100% { transform: translateX(120%) } }

/* ---------- give sheet ---------- */
.tb-give { display: grid; gap: 12px; }
.tb-give .field { display: grid; gap: 6px; }
.tb-give .field span { font-size: 13px; color: rgb(var(--sk-cfd6e6, 207, 214, 230)); }
.tb-give .field input { width: 100%; box-sizing: border-box; min-height: 44px; font-size: 16px; }
.tb-give-head { display: flex; align-items: center; gap: 12px; }
.tb-give-head h3 { margin: 0; }
.tb-give-head small { color: rgb(var(--sk-ffcf8f, 255, 207, 143)); }
.tb-give-head .ic-lg { width: 52px; height: 52px; }
.tb-card { position: relative; display: grid; gap: 10px; padding: 18px 18px 16px; border-radius: 18px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #2a1608, #7a2e0e 55%, #c2541a); box-shadow: 0 12px 28px rgba(120, 40, 10, .45), inset 0 1px 0 rgba(255, 255, 255, .2); }
.tb-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--sk-ffc85a, 255, 200, 90), .35), transparent 70%); }
.tb-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, rgb(var(--sk-f7e19b, 247, 225, 155)), rgb(var(--sk-c9a24a, 201, 162, 74))); box-shadow: inset 0 0 0 1px rgba(var(--sk-000000, 0, 0, 0), .2); }
.tb-num { font: 700 20px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 1.5px; text-shadow: 0 1px 2px rgba(var(--sk-000000, 0, 0, 0), .5); }
.tb-holder { font-size: 14px; opacity: .9; text-align: right; }
.tb-copy { justify-self: start; }
.tb-upload { display: grid; gap: 8px; justify-items: start; }
.tb-upload img { max-width: 140px; max-height: 180px; border-radius: 10px; box-shadow: 0 4px 12px rgba(var(--sk-000000, 0, 0, 0), .4); }
.tb-receipt-full { width: 100%; border-radius: 12px; }

/* ---------- owner tools ---------- */
.tb-owner { margin-top: 18px; }
.tb-owner summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.tb-owner .field { display: grid; gap: 4px; margin-top: 10px; }
.tb-owner .field input { width: 100%; }
.tb-orow { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.tb-orow .btns { flex-wrap: wrap; }

/* ---------- dock torch ---------- */
.dock-torch .dock-ic { position: relative; }
.dock-torch .dock-ic::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--sk-ff9628, 255, 150, 40), .32), transparent 65%); animation: tb-breathe 2.6s ease-in-out infinite; }
.dock-torch .dock-ic .ic { position: relative; animation: dock-flick 2.2s ease-in-out infinite; transform-origin: 50% 90%; }
.dock-torch.flare .dock-ic::before { animation: dock-flare 1.2s ease-out 3; }
@keyframes dock-flick { 0%, 100% { transform: rotate(0) } 30% { transform: rotate(-3deg) scale(1.03) } 60% { transform: rotate(2deg) } }
@keyframes dock-flare { 50% { transform: scale(1.7); opacity: 1 } }

/* ---------- nudge bubble ---------- */
.torch-bubble { position: fixed; z-index: 60; display: flex; align-items: center; width: max-content; max-width: min(270px, calc(100vw - 24px)); border-radius: 14px;
  background: linear-gradient(135deg, #3a1a08, #7a2e0e); border: 1px solid rgba(var(--sk-ffaa46, 255, 170, 70), .45);
  box-shadow: 0 10px 26px rgba(var(--sk-000000, 0, 0, 0), .45), 0 0 18px rgba(255, 120, 30, .25); animation: bubble-in .45s cubic-bezier(.2, 1.4, .4, 1); }
.torch-bubble::after { content: ""; position: absolute; bottom: -6px; left: var(--tail, 50%); width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: #5a250c; border-right: 1px solid rgba(var(--sk-ffaa46, 255, 170, 70), .45); border-bottom: 1px solid rgba(var(--sk-ffaa46, 255, 170, 70), .45); }
.torch-bubble.out { opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .35s, transform .35s; }
.torch-bubble-go { flex: 1; padding: 10px 12px; line-height: 1.7; background: none; border: 0; color: rgb(var(--sk-ffe6c2, 255, 230, 194)); font: inherit; font-size: 13.5px; text-align: right; cursor: pointer; }
.torch-bubble-x { padding: 6px 10px; background: none; border: 0; color: #d9b08a; font-size: 18px; cursor: pointer; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.9) } to { opacity: 1; transform: none } }

/* ---------- supporter badges ---------- */
.sup-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 7px; border-radius: 99px; font-size: 10.5px;
  font-weight: 700; white-space: nowrap; vertical-align: middle; margin-inline-start: 6px; line-height: 1.6; }
.sup-badge i { width: 7px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: currentColor;
  box-shadow: 0 0 6px currentColor; }
.sup-gold { color: rgb(var(--sk-ffe08a, 255, 224, 138)); background: linear-gradient(90deg, rgba(var(--sk-e6b422, 230, 180, 34), .28), rgba(var(--sk-ffdc78, 255, 220, 120), .14)); border: 1px solid rgba(var(--sk-ffd25a, 255, 210, 90), .5); }
.sup-silver { color: rgb(var(--sk-e6edf8, 230, 237, 248)); background: rgba(var(--sk-b9c4d6, 185, 196, 214), .2); border: 1px solid rgba(var(--sk-d2def0, 210, 222, 240), .45); }
.sup-bronze { color: #ffc89a; background: rgba(196, 122, 60, .22); border: 1px solid rgba(220, 140, 80, .45); }
.sup-torch { color: #ffb066; background: rgba(255, 120, 40, .16); border: 1px solid rgba(255, 140, 60, .35); }
.sup-fan { color: #ff9a5a; background: rgba(255, 120, 40, .1); border: 1px solid rgba(255, 140, 60, .22); font-weight: 600; }
.sup-ask { color: #ffb066; background: rgba(255, 120, 40, .08); border: 1px dashed rgba(255, 140, 60, .4); cursor: pointer; font: inherit;
  font-size: 11px; margin: 4px 0; }
.sup-ask .ic { width: 15px; height: 15px; }
.dp-pod-who .sup-badge, .tb-pod .sup-badge { margin-inline-start: 0; }

/* ---------- reduced motion ---------- */
.reduce-motion .tb-fire path, .reduce-motion .tb-glow, .reduce-motion .tb-ember, .reduce-motion .tb-ring::after,
.reduce-motion .tb-medal::after, .reduce-motion .dock-torch .dock-ic::before, .reduce-motion .dock-torch .dock-ic .ic { animation: none !important; }
.reduce-motion .tb-ember { display: none; }
.reduce-motion .tb-pod { animation: none; opacity: 1; }
.map-fab .map-dock .dock-btn[data-fab="donate"] .dock-ic { background: linear-gradient(160deg, #9c4a1aee, #3e1808ee);
  box-shadow: inset 0 1px rgba(var(--sk-ffd9a0, 255, 217, 160), 0.251), inset 0 -3px #2a0e0480, 0 3px 0 #1e0a03, 0 6px 10px rgba(var(--sk-000000, 0, 0, 0), 0.333); }
.map-fab .map-dock .dock-btn[data-fab="donate"] .dock-label { color: rgb(var(--sk-ffe0b8, 255, 224, 184)); }
@media (max-width: 380px) { .map-fab .map-dock .dock-btn { min-width: 50px; } }

/* ---------- give sheet v2: numbered steps + a real amount picker ---------- */
.tb-give { gap: 14px; }
.tb-step-box { display: flex; gap: 12px; padding: 14px 14px 14px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid rgba(var(--sk-ffaa46, 255, 170, 70), .14); }
.tb-step-box .grow { min-width: 0; flex: 1; }
.tb-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: #2a1404; background: radial-gradient(circle at 35% 30%, rgb(var(--sk-ffd98a, 255, 217, 138)), #e67a1c); box-shadow: 0 0 10px rgba(255, 140, 40, .5); }
.tb-step-title { font-weight: 800; margin: 3px 0 10px; color: rgb(var(--sk-ffe2bd, 255, 226, 189)); font-size: 14.5px; }
.tb-amount { display: flex; align-items: center; gap: 10px; }
.tb-amt-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(var(--sk-ffbe5a, 255, 190, 90), .45); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #5a2c12, #1e0e06); color: rgb(var(--sk-ffd28a, 255, 210, 138)); font-size: 26px; font-weight: 700; line-height: 1;
  box-shadow: 0 3px 0 #120802, 0 0 12px rgba(255, 140, 40, .25); transition: transform .1s ease; }
.tb-amt-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #120802; }
.tb-amount-box { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 18px;
  background: #0d0a08; border: 1.5px solid rgba(var(--sk-ffaa46, 255, 170, 70), .45); box-shadow: inset 0 2px 8px rgba(var(--sk-000000, 0, 0, 0), .6), 0 0 18px rgba(255, 120, 30, .15);
  transition: border-color .2s, box-shadow .2s; }
.tb-amount-box:focus-within { border-color: rgb(var(--sk-ffb347, 255, 179, 71)); box-shadow: inset 0 2px 8px rgba(var(--sk-000000, 0, 0, 0), .6), 0 0 24px rgba(255, 140, 40, .35); }
.tb-amount-box.bad { border-color: #ff6b5a; }
.tb-amount-box input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; text-align: center; font-family: inherit;
  font-size: 28px; font-weight: 800; letter-spacing: .5px; color: rgb(var(--sk-ffd28a, 255, 210, 138)); text-shadow: 0 0 14px rgba(255, 140, 40, .45); caret-color: rgb(var(--sk-ffb347, 255, 179, 71)); }
.tb-amount-box input::placeholder { color: rgba(var(--sk-ffd28a, 255, 210, 138), .3); }
.tb-amount-box span { flex: none; color: rgb(var(--sk-d9b98f, 217, 185, 143)); font-size: 14px; font-weight: 700; }
.tb-amount-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); margin: 12px 2px 10px; overflow: hidden; }
.tb-amount-bar i { display: block; height: 100%; transform-origin: right; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgb(var(--sk-ffd34d, 255, 211, 77)), #ff7a1a 60%, #ff3d1a); box-shadow: 0 0 10px rgba(255, 122, 26, .7);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tb-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tb-quick-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: rgb(var(--sk-ffcf8f, 255, 207, 143)); font-family: inherit; font-size: 11.5px; font-weight: 700;
  transition: border-color .2s, background .2s; }
.tb-quick-chip .ic { width: 22px; height: 22px; }
.tb-quick-chip.on { border-color: rgb(var(--sk-ffb347, 255, 179, 71)); background: rgba(var(--sk-ffaa46, 255, 170, 70), .16); color: rgb(var(--sk-fff1d6, 255, 241, 214)); box-shadow: 0 0 12px rgba(255, 140, 40, .25); }
.tb-give-head.swap { animation: tb-swap .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tb-swap { from { opacity: .3; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.tb-give .tb-card { margin-bottom: 10px; }
.tb-msg { display: block; }
.tb-msg input { width: 100%; box-sizing: border-box; margin-top: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12); background: #0d0a08; color: #fff; font-family: inherit; font-size: 14px; }
.tb-msg input:focus { outline: 2px solid rgb(var(--sk-ffb347, 255, 179, 71)); }
.reduce-motion .tb-give-head.swap, .reduce-motion .tb-amount-bar i { animation: none; transition: none; }

/* ------------------------------------------------------------------ supporter flag frames
   Copper «یه کبریت», silver «یه بغل هیزم», gold «یه بشکه نفت», fire «یه کوه آتیش».  Static
   box-shadow rings; only the hall's top 3 get a glow that breathes (opacity only, so the
   compositor does it), and never with reduced motion. */
.fr { --frame: #b8733a; --frame-glow: rgba(205, 133, 72, .55); --frame2: var(--frame); }
.fr-wood { --frame: rgb(var(--sk-c9d2de, 201, 210, 222)); --frame-glow: rgba(var(--sk-d6e0ee, 214, 224, 238), .55); }
.fr-oil { --frame: rgb(var(--sk-f2c14e, 242, 193, 78)); --frame-glow: rgba(var(--sk-ffd25a, 255, 210, 90), .6); }
.fr-volcano { --frame: #ff5a1a; --frame-glow: rgba(255, 110, 30, .7); --frame2: rgb(var(--sk-ffd34d, 255, 211, 77)); }
.dp-flag.fr { box-shadow: 0 0 0 2px var(--frame2), 0 0 0 4px var(--frame); }
.dp-flag.fr.xs { box-shadow: 0 0 0 1px var(--frame2), 0 0 0 2.5px var(--frame); }
.dp-flag.fr.sm { box-shadow: 0 0 0 2px var(--nation), 0 0 0 4px var(--frame); }
.dp-flag.fr.xl { box-shadow: 0 0 0 3px var(--nation), 0 0 0 5px rgb(var(--sk-0b1120, 11, 17, 32)), 0 0 0 8px var(--frame), 0 10px 18px rgba(var(--sk-000000, 0, 0, 0), .5); }
.dp-flag.fr.fr-volcano.sm, .dp-flag.fr.fr-volcano.xl { box-shadow: 0 0 0 2px var(--frame2), 0 0 0 4.5px var(--frame), 0 0 10px 1px var(--frame-glow); }
.tb-fbox { display: inline-grid; flex: none; border-radius: 5px; }
.tb-fbox.fr { box-shadow: 0 0 0 1.5px var(--frame2), 0 0 0 3px var(--frame); }
.fr-anim { position: relative; }
.dp-flag.img.fr-anim { overflow: visible; } /* the image rounds itself (border-radius: inherit) */
.fr-anim::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 12px 3px var(--frame-glow); opacity: .2; will-change: opacity; animation: fr-glow 2.6s ease-in-out infinite alternate; }
@keyframes fr-glow { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fr-anim::after { animation: none; opacity: .6; } }
.reduce-motion .fr-anim::after { animation: none; opacity: .6; }

/* ------------------------------------------------------------------ «امتیازهای تو» and the wall */
.tb-perks { margin: 16px 0 6px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(var(--sk-ffaa46, 255, 170, 70), .25); }
.tb-perks-head { display: flex; align-items: center; gap: 10px; }
.tb-perks-head .ic { width: 34px; height: 34px; flex: none; }
.tb-perks-head h3 { margin: 0; font-size: 16px; color: rgb(var(--sk-ffe6b8, 255, 230, 184)); }
.tb-perks-head small { font-size: 12.5px; color: rgb(var(--sk-d9b98f, 217, 185, 143)); }
.tb-perk-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tb-perk-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(var(--sk-000000, 0, 0, 0), .18); opacity: .65; }
.tb-perk-list li.on { opacity: 1; background: rgba(var(--sk-ffaa46, 255, 170, 70), .1); }
.tb-perk-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .25); }
.tb-perk-list li.on .tb-perk-dot { background: #2fbf71; box-shadow: 0 0 8px rgba(47, 191, 113, .6); }
.tb-perk-list b { display: block; font-size: 13.5px; }
.tb-perk-list small { display: block; font-size: 11.5px; color: rgb(var(--sk-b9a58c, 185, 165, 140)); }
.tb-perk-list em { font-style: normal; font-size: 11.5px; color: rgb(var(--sk-ffd28a, 255, 210, 138)); white-space: nowrap; flex: none; }
.tb-perk-next, .tb-perk-note { margin: 10px 2px 0; font-size: 12px; color: rgb(var(--sk-d9b98f, 217, 185, 143)); }
.tb-perk-note { color: rgb(var(--sk-9d8f7c, 157, 143, 124)); }
.tb-wall-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 4px; }
.tb-wall-box small { font-size: 12px; color: rgb(var(--sk-d9b98f, 217, 185, 143)); }
.tb-wall-box .btns { margin-top: 8px; }
.tb-wall { display: block; max-width: 100%; font-size: 11.5px; color: rgb(var(--sk-ffcf8f, 255, 207, 143)); font-style: italic; overflow-wrap: anywhere; quotes: "«" "»"; }
.tb-row .tb-wall { grid-column: 3 / -1; }

/* ------------------------------------------------------------------ «مشعل روشن شد!» banner */
.torch-event { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(var(--sk-ffbe46, 255, 190, 70), .2), rgba(255, 90, 30, .2)); border: 1px solid rgba(var(--sk-ffaa46, 255, 170, 70), .45); color: rgb(var(--sk-ffe6b8, 255, 230, 184)); }
.torch-event .ic { width: 30px; height: 30px; flex: none; }
.torch-event b { display: block; font-size: 14px; line-height: 1.5; }
.torch-event small { display: block; font-size: 12px; color: rgb(var(--sk-ffcf8f, 255, 207, 143)); }
