:root {
  --bg: #050803;
  --card: #0c130a;
  --card-2: #101a0d;
  --line: rgba(180, 255, 60, 0.12);
  --accent: #cdfb2f;
  --accent-glow: rgba(205, 251, 47, 0.45);
  --text: #f4f6f0;
  --text-dim: #8d9788;
  --red: #ff4d5e;
  --red-bg: #2c0e11;
  --red-line: rgba(255, 77, 94, 0.35);
  --radius: 21.2px;
}

* { box-sizing: border-box; }

/* کل متن‌ها و عکس‌های اپ قابل سلکت‌شدن (انتخاب با انگشت/ماوس) و درگ‌کردن
   نباشن. فیلدهای ورودی واقعی (کد هدیه، مبلغ و...) رو عمداً استثنا کردیم
   چون کاربر باید بتونه توشون تایپ/ادیت/کپی کنه. */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* منوی long-press سافاری رو هم می‌بنده */
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img, svg {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* body یه flex item از html هست ولی flex-grow نداره، پس بدون این
   width، به‌جای پر کردن کل عرض html، فقط به اندازه‌ی محتوای همون
   تبی که الان نمایش داده می‌شه جمع می‌شد (shrink-to-fit) و همین
   باعث می‌شد صفحه‌ی «فروشگاه» (محتوای کوتاه‌تر) باریک‌تر از صفحه‌ی
   «خانه» (محتوای عریض‌تر) دیده بشه، چون max-width روی .app (پایین‌تر)
   دیگه از عرض واقعی viewport محاسبه نمی‌شد بلکه از عرض جمع‌شده‌ی body. */
body {
  width: 100%;
}

/* روی دسکتاپ، هر وقت محتوای یه تب طولانی‌تر بود و اسکرول لازم داشت،
   اسکرول‌بار پیش‌فرض مرورگر ~16px از عرض صفحه می‌گرفت و همون تب رو
   باریک‌تر از بقیه نشون می‌داد (توی موبایل این اتفاق نمی‌افته چون
   اسکرول‌بار موبایل روی محتوا شناوره و فضا نمی‌گیره). این قانون
   اسکرول‌بار رو مخفی می‌کنه (اسکرول همچنان کار می‌کنه) تا عرض محتوا
   همیشه ثابت بمونه، فارغ از اینکه اون تب اسکرول لازم داره یا نه.
   بدون این، حتی fixed-width بودن .app هم فرقی نمی‌کرد چون اسکرول‌بار
   بیرون از .app، از کل viewport فضا می‌گرفت. */
html, body {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* Edge/IE قدیمی */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;               /* Chrome/Chromium — همون چیزی که تلگرام دسکتاپ ازش استفاده می‌کنه */
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.app {
  width: 100%;
  max-width: 534.24px;
  margin: 0;
  padding: 0 12.72px 95.4px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 74.2px;      /* این رو زیاد/کم کن */
  padding-right: 16.96px;
  padding-bottom: 14.84px;
  padding-left: 16.96px;
  border-bottom: 1.06px solid var(--line);
}
.icon-btn {
  width: 40.28px; height: 40.28px;
  border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.icon-btn.accent {
  background: var(--card-2);
  color: var(--accent);
  box-shadow: 0 0 14.84px var(--accent-glow);
}
.icon-btn.outline {
  border: 1.06px solid var(--line);
  color: var(--text-dim);
}
.topbar-title {
  display: flex; flex-direction: column; align-items: center;
  flex: 1;
}
.topbar-title .fa { font-weight: 700; font-size: 15.9px; }
.topbar-title .en { font-size: 11.66px; color: var(--text-dim); margin-top: 1.06px; }

/* Hero */
.hero-card {
  position: relative;
  margin: 10.6px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 238.5px;
  border: 1.06px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  /* Real photo goes at assets/hero-bg.jpg (add it once you have a licensed
     image — see assets/README.txt). Until then this falls back cleanly to
     the same solid dark tone it uses today. */
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(200,120,30,.25) 0%, transparent 60%),
    url('assets/hero-bg.jpg?v=2');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: #14130f;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(0,0,0,.15) 0 2.12px, transparent 2.12px 4.24px);
  opacity: .3;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,3,.1) 0%, rgba(5,8,3,.55) 55%, rgba(5,8,3,.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 10.6px 16.96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 238.5px;
}
.hero-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6.36px; margin-top: 10.6px; }
.hero-greeting { display: flex; align-items: baseline; gap: 6.36px; }
.hero-hi { font-size: 13.78px; color: var(--text); font-weight: 400; }
.hero-name { font-size: 20.14px; font-weight: 800; letter-spacing: 1.27px; color: var(--text); }

.hero-badges { display: flex; gap: 6.36px; flex-wrap: wrap; justify-content: flex-start; }
.badge {
  display: flex; align-items: center; gap: 5.3px;
  padding: 4.24px 10.6px;
  border-radius: 19.08px;
  font-size: 10.6px;
  line-height: 1.3;
}
.badge-verified {
  color: var(--accent);
  background: rgba(20,26,14,.7);
  border: 1.06px solid var(--accent-glow);
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.balance-block { text-align: left; }
.balance-label { display: block; font-size: 13.25px; color: var(--text-dim); margin-bottom: 3.18px; }
.balance-value { font-size: 33.92px; font-weight: 800; color: var(--accent); display: flex; align-items: center; gap: 7.42px; justify-content: flex-end; }

/* Toman strip */
.toman-strip {
  margin: 12.72px 0 0;
  background: var(--card);
  border-radius: var(--radius);
  border: 1.06px solid var(--line);
  padding: 12.72px 16.96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.6px;
}
.topup-btn {
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 13.78px;
  padding: 11.66px 16.96px;
  border-radius: 27.56px;
  display: flex; align-items: center; gap: 9.54px;
  box-shadow: 0 0 16.96px var(--accent-glow);
}
.plus-circle {
  width: 19.08px; height: 19.08px; border-radius: 50%;
  background: rgba(10,15,8,.18);
  display: flex; align-items: center; justify-content: center;
}
.toman-info { text-align: right; flex: 1; }
.toman-label { display: block; font-size: 12.19px; color: var(--text-dim); }
.toman-row { display: flex; align-items: center; gap: 6.36px; justify-content: flex-start; margin-top: 3.18px; }
.toman-value { font-weight: 700; font-size: 15.9px; }
.wallet-icon-box {
  width: 42.4px; height: 42.4px;
  border-radius: 12.72px;
  background: rgba(205,251,47,.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Action grid */
.action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10.6px;
  margin: 12.72px 0 0;
}
.action-card {
  position: relative;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: 16.96px;
  padding: 12.72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: right;
  direction: rtl;
  gap: 10.6px;
  width: calc(50% - 5.3px);
  flex: 0 0 calc(50% - 5.3px);
}
.action-chevron {
  width: 25.44px; height: 25.44px;
  border-radius: 7.42px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12.72px var(--accent-glow);
  flex-shrink: 0;
}
.action-icon-wrap {
  width: 40.28px; height: 40.28px;
  border-radius: 50%;
  background: rgba(205,251,47,.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14.84px;
  font-weight: 800;
  flex-shrink: 0;
}
.uc-icon { font-size: 12.72px; letter-spacing: .5.3px; overflow: hidden; }
.uc-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.action-text {
  display: flex;
  flex-direction: column;
  gap: 3.18px;
  align-items: flex-end;
  text-align: right;
  flex: 1;
  min-width: 0;
}
.action-title { font-size: 14.31px; font-weight: 700; }
.action-sub {
  font-size: 10.6px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Referral card */
.referral-card {
  margin: 12.72px 0 0;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: var(--radius);
  padding: 16.96px;
}
.referral-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.referral-count {
  display: flex; flex-direction: column; align-items: center; gap: 3.18px;
  background: var(--card-2);
  border-radius: 14.84px;
  padding: 9.54px 14.84px;
  min-width: 61.48px;
}
.referral-count-icon { color: var(--accent); }
.referral-count-num { font-weight: 800; font-size: 15.9px; color: var(--accent); }
.referral-count-label { font-size: 9.54px; color: var(--text-dim); }
.referral-title { display: flex; flex-direction: column; align-items: flex-end; gap: 3.18px; }
.referral-title-main { font-weight: 700; font-size: 15.37px; color: var(--accent); }
.referral-title-sub { font-size: 12.19px; color: var(--text-dim); }
.referral-desc {
  font-size: 12.19px; color: var(--text-dim);
  text-align: right; margin: 14.84px 0 10.6px;
}
.referral-link-box {
  display: flex; align-items: center; gap: 10.6px;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 12.72px;
  padding: 9.54px 12.72px;
}
.copy-icon-btn {
  width: 31.8px; height: 31.8px;
  border-radius: 8.48px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.copy-icon-btn .icon-copied,
.btn-copy-link .icon-copied { display: none; }
.copy-icon-btn.copied .icon-default,
.btn-copy-link.copied .icon-default { display: none; }
.copy-icon-btn.copied .icon-copied,
.btn-copy-link.copied .icon-copied { display: block; }
/* دو حالت متن دکمه‌ی «کپی لینک» / «کپی شد» تو یه سلولِ گرید روی هم قرار
   می‌گیرن (به‌جای display:none/block) تا عرض دکمه با تغییر متن عوض نشه؛
   وگرنه چون این دکمه کنار «ارسال در تلگرام» (که flex:1 داره) هست، عوض شدن
   عرضش باعث جابه‌جایی محسوس دکمه‌ی کناری موقع زدن کپی می‌شد. */
.btn-copy-text-stack {
  display: grid;
}
.btn-copy-text-stack > span {
  grid-area: 1 / 1;
  visibility: hidden;
}
.btn-copy-text-stack > .btn-text-default { visibility: visible; }
.btn-copy-link.copied .btn-copy-text-stack > .btn-text-default { visibility: hidden; }
.btn-copy-link.copied .btn-copy-text-stack > .btn-text-copied { visibility: visible; }
.referral-link {
  font-size: 12.19px; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  direction: ltr; text-align: left; flex: 1;
}
.referral-actions {
  display: flex; gap: 10.6px; margin-top: 12.72px;
}
.btn-send-telegram {
  flex: 1;
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 14.31px;
  padding: 13.78px;
  border-radius: 27.56px;
  display: flex; align-items: center; justify-content: center; gap: 8.48px;
  box-shadow: 0 0 16.96px var(--accent-glow);
}
.btn-copy-link {
  background: var(--card-2);
  border: 1.06px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 13.78px;
  padding: 13.78px 19.08px;
  border-radius: 27.56px;
  display: flex; align-items: center; justify-content: center; gap: 8.48px;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 508.8px;
  margin: 0 auto;
  background: #090d06;
  border-top: 1.06px solid var(--line);
  display: flex;
  padding: 8.48px 6.36px calc(8.48px + env(safe-area-inset-bottom));
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4.24px;
  color: var(--text-dim);
  font-size: 11.13px;
  padding: 8.48px 2.12px;
  border-radius: 14.84px;
}
.nav-item.nav-dns { color: var(--red); }
.nav-item.active {
  color: #0a0f08;
  background: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 14.84px var(--accent-glow);
}

@media (min-width: 481px) {
  body { background: #030502; }
}

/* History modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 1, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 50;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-sheet {
  width: 100%;
  max-width: 508.8px;
  max-height: 78vh;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-bottom: none;
  border-radius: 23.32px 23.32px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(16.96px);
  transition: transform .2s ease;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16.96px 16.96px 10.6px;
  border-bottom: 1.06px solid var(--line);
}
.modal-title { font-weight: 700; font-size: 15.9px; }
.modal-body {
  overflow-y: auto;
  padding: 10.6px 14.84px 21.2px;
}
.history-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 31.8px 0;
  font-size: 13.78px;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.6px;
  padding: 12.72px 4.24px;
  border-bottom: 1.06px solid var(--line);
}
.history-item:last-child { border-bottom: none; }
.history-main { display: flex; flex-direction: column; gap: 3.18px; }
.history-type { font-size: 13.78px; font-weight: 700; }
.history-date { font-size: 11.66px; color: var(--text-dim); }
.history-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4.24px; }
.history-amount { font-size: 13.78px; font-weight: 700; }
.history-amount.out { color: var(--red); }
.history-amount.in { color: var(--accent); }
.history-status {
  font-size: 11.13px;
  padding: 2.12px 8.48px;
  border-radius: 21.2px;
  border: 1.06px solid var(--line);
}
.history-status.pending { color: #e8b23d; border-color: rgba(232,178,61,.4); }
.history-status.approved { color: var(--accent); border-color: var(--line); }
.history-status.rejected { color: var(--red); border-color: var(--red-line); }
.history-status.completed { color: var(--accent); border-color: var(--line); }

/* ================== Points ("امتیاز بیشتر") view ================== */

.points-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.6px;
  margin: 16.96px 0 12.72px;
}
.points-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3.18px;
  text-align: right;
}
.points-header-sub { font-size: 12.72px; color: var(--accent); font-weight: 600; }
.points-header-title { font-size: 21.2px; font-weight: 800; color: var(--text); }
.points-header-icon {
  width: 48.76px; height: 48.76px;
  border-radius: 14.84px;
  background: rgba(205,251,47,.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.points-info-box {
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: var(--radius);
  padding: 14.84px 16.96px;
  font-size: 13.25px;
  line-height: 1.9;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 12.72px;
}

.points-tabs {
  display: flex;
  gap: 10.6px;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: 16.96px;
  padding: 6.36px;
  margin-bottom: 14.84px;
}
.points-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7.42px;
  padding: 11.66px 8.48px;
  border-radius: 12.72px;
  font-size: 13.78px;
  font-weight: 700;
  color: var(--text-dim);
}
.points-tab.active {
  background: var(--accent);
  color: #0a0f08;
  box-shadow: 0 0 14.84px var(--accent-glow);
}
.points-tab-count {
  background: rgba(255,255,255,.12);
  border-radius: 21.2px;
  padding: 1.06px 8.48px;
  font-size: 11.66px;
  font-weight: 700;
}
.points-tab.active .points-tab-count { background: rgba(10,15,8,.18); }

.mission-list { display: flex; flex-direction: column; gap: 12.72px; }
.mission-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 42.4px 0;
  font-size: 13.78px;
}

.mission-card {
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: var(--radius);
  padding: 16.96px;
}
.mission-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10.6px;
  margin-bottom: 8.48px;
}
.mission-title {
  font-size: 15.37px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.mission-play-badge {
  width: 36.04px; height: 36.04px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f08;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12.72px var(--accent-glow);
}
.mission-desc {
  font-size: 12.72px;
  line-height: 1.9;
  color: var(--text-dim);
  text-align: right;
  margin-bottom: 12.72px;
}
.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8.48px;
  justify-content: flex-end;
  margin-bottom: 14.84px;
}
.mission-tag {
  display: flex;
  align-items: center;
  gap: 5.3px;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 21.2px;
  padding: 5.3px 10.6px;
  font-size: 11.66px;
  color: var(--text);
  font-weight: 600;
}
.mission-tag .mission-tag-icon { color: var(--accent); }
.mission-cta {
  width: 100%;
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 14.31px;
  padding: 13.78px;
  border-radius: 27.56px;
  display: flex; align-items: center; justify-content: center; gap: 8.48px;
  box-shadow: 0 0 16.96px var(--accent-glow);
}
.mission-cta[disabled] {
  opacity: .6;
  box-shadow: none;
  cursor: default;
}
.mission-cta.state-pending {
  background: var(--card-2);
  color: var(--text-dim);
  box-shadow: none;
  border: 1.06px solid var(--line);
}
.mission-cta.state-claim {
  background: #7fe84a;
}
.mission-claimed-badge {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8.48px;
  background: rgba(205,251,47,.1);
  border: 1.06px solid var(--line);
  color: var(--accent);
  font-weight: 700;
  font-size: 13.78px;
  padding: 12.72px;
  border-radius: 27.56px;
}

/* ================== Raffle ("قرعه‌کشی") view ================== */

.raffle-toptabs {
  display: flex;
  gap: 10.6px;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: 16.96px;
  padding: 6.36px;
  margin-bottom: 14.84px;
}
.raffle-toptab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7.42px;
  padding: 11.66px 8.48px;
  border-radius: 12.72px;
  font-size: 13.78px;
  font-weight: 700;
  color: var(--text-dim);
}
.raffle-toptab.active {
  background: var(--accent);
  color: #0a0f08;
  box-shadow: 0 0 14.84px var(--accent-glow);
}
.raffle-toptab.active .points-tab-count { background: rgba(10,15,8,.18); }

.ticket-balance-card {
  display: flex;
  align-items: center;
  gap: 12.72px;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: var(--radius);
  padding: 14.84px 16.96px;
  margin-bottom: 14.84px;
}
.ticket-refresh-btn {
  width: 40.28px; height: 40.28px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ticket-refresh-btn.spinning svg { animation: ticket-spin .6s linear; }
@keyframes ticket-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ticket-balance-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4.24px;
  text-align: right;
}
.ticket-balance-label { font-size: 12.19px; color: var(--text-dim); }
.ticket-balance-value { font-size: 20.14px; font-weight: 800; color: var(--text); }
.ticket-balance-icon {
  width: 46.64px; height: 46.64px;
  border-radius: 12.72px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14.84px var(--accent-glow);
}

.ticket-task-progress-bar {
  width: 100%;
  height: 6.36px;
  border-radius: 4.24px;
  background: var(--card-2);
  overflow: hidden;
  margin: 10.6px 0;
}
.ticket-task-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4.24px;
  transition: width .3s ease;
}
.ticket-task-reward {
  color: var(--accent);
  font-weight: 700;
  font-size: 13.25px;
}
.ticket-task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.6px;
  margin-top: 4.24px;
}
.ticket-task-claim-btn {
  background: var(--card-2);
  border: 1.06px solid var(--line);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 12.72px;
  padding: 8.48px 16.96px;
  border-radius: 21.2px;
}
.ticket-task-claim-btn.ready {
  background: var(--accent);
  color: #0a0f08;
  border: none;
  box-shadow: 0 0 12.72px var(--accent-glow);
}
.ticket-task-fraction { font-size: 12.19px; color: var(--text-dim); }

.ticket-code-card { margin-top: 4.24px; }
.ticket-code-row {
  display: flex;
  gap: 8.48px;
}
.ticket-code-input {
  flex: 1;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 21.2px;
  padding: 11.66px 16.96px;
  color: var(--text);
  font-size: 13.78px;
  text-align: left;
}
.ticket-code-input::placeholder { color: var(--text-dim); }
.ticket-code-submit {
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 13.25px;
  padding: 10.6px 16.96px;
  border-radius: 21.2px;
  display: flex; align-items: center; gap: 6.36px;
  white-space: nowrap;
}

.raffle-card {
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: var(--radius);
  padding: 16.96px;
}
.raffle-card-status {
  display: inline-block;
  font-size: 11.13px;
  font-weight: 700;
  padding: 3.18px 10.6px;
  border-radius: 12.72px;
  margin-bottom: 8.48px;
}
.raffle-card-status.finished { background: rgba(255,255,255,.08); color: var(--text-dim); }
.raffle-card-status.active { background: rgba(205,251,47,.12); color: var(--accent); }
.raffle-card-head {
  display: flex;
  align-items: center;
  gap: 10.6px;
  margin-bottom: 10.6px;
}
.raffle-icon-badge {
  width: 44.52px; height: 44.52px;
  border-radius: 12.72px;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 21.2px;
  flex-shrink: 0;
}
.raffle-card-title { font-size: 15.9px; font-weight: 800; color: var(--text); text-align: right; }
.raffle-card-desc {
  font-size: 12.72px;
  line-height: 1.9;
  color: var(--text-dim);
  text-align: right;
  margin-bottom: 14.84px;
}
.raffle-share-btn {
  width: 100%;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 13.25px;
  padding: 11.66px;
  border-radius: 23.32px;
  display: flex; align-items: center; justify-content: center; gap: 8.48px;
  margin-bottom: 14.84px;
}
.raffle-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10.6px;
  margin-bottom: 14.84px;
}
.raffle-stat-box {
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 12.72px;
  padding: 10.6px;
  text-align: center;
}
.raffle-stat-value { font-size: 15.9px; font-weight: 800; color: var(--accent); }
.raffle-stat-label { font-size: 11.13px; color: var(--text-dim); margin-top: 2.12px; }

.raffle-winners-box {
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 14.84px;
  padding: 12.72px 14.84px;
  margin-bottom: 14.84px;
}
.raffle-winners-title {
  text-align: center;
  font-size: 12.19px;
  color: var(--text-dim);
  margin-bottom: 10.6px;
}
.raffle-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8.48px;
  padding: 8.48px 0;
  border-top: 1.06px solid var(--line);
}
.raffle-winner-row:first-of-type { border-top: none; }
.raffle-winner-name { font-weight: 700; font-size: 13.78px; color: var(--text); }
.raffle-winner-id { font-size: 11.66px; color: var(--text-dim); direction: ltr; display: block; }
.raffle-winner-trophy { color: var(--accent); flex-shrink: 0; }

.raffle-reqs-title { font-size: 13.25px; font-weight: 700; color: var(--text); text-align: right; margin-bottom: 8.48px; }
.raffle-req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.6px;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 14.84px;
  padding: 10.6px 12.72px;
  margin-bottom: 8.48px;
}
.raffle-req-label { font-size: 13.25px; color: var(--text); }
.raffle-req-btn {
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 12.19px;
  padding: 7.42px 14.84px;
  border-radius: 16.96px;
  white-space: nowrap;
}
.raffle-req-done {
  color: var(--accent);
  display: flex; align-items: center; gap: 5.3px;
  font-size: 12.19px;
  font-weight: 700;
}

.raffle-entry-box {
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 14.84px;
  padding: 12.72px 14.84px;
  display: flex;
  align-items: center;
  gap: 10.6px;
  margin-top: 10.6px;
}
.raffle-entry-stepper {
  display: flex;
  align-items: center;
  gap: 10.6px;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: 21.2px;
  padding: 4.24px 8.48px;
}
.raffle-entry-stepper button {
  width: 27.56px; height: 27.56px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f08;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 15.9px;
}
.raffle-entry-count { font-weight: 700; font-size: 13.78px; min-width: 21.2px; text-align: center; }
.raffle-entry-submit {
  flex: 1;
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 13.25px;
  padding: 11.66px;
  border-radius: 21.2px;
  box-shadow: 0 0 12.72px var(--accent-glow);
}
.raffle-entry-submit[disabled] { opacity: .5; box-shadow: none; }
.raffle-my-tickets {
  text-align: center;
  font-size: 12.19px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 8.48px;
}

/* ================== Shop ("فروشگاه امتیاز") view ================== */

.shop-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12.72px;
}
.shop-list-title { font-size: 14.31px; font-weight: 700; color: var(--text); }
.shop-list-count {
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: 21.2px;
  padding: 4.24px 12.72px;
  font-size: 11.66px;
  font-weight: 700;
  color: var(--accent);
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10.6px;
}

.shop-card {
  position: relative;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: var(--radius);
  padding: 14.84px 12.72px 12.72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10.6px;
  color: var(--text);
}
.shop-card.locked { opacity: .55; }

.shop-chevron {
  position: absolute;
  bottom: 10.6px;
  left: 10.6px;
  width: 25.44px; height: 25.44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f08;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12.72px var(--accent-glow);
  flex-shrink: 0;
}

.shop-card-icon-wrap { padding: 4.24px 0; }

/* افکت متحرک: مدال کهکشانی — هسته‌ی فضایی با میدان ستاره + رینگ طلایی درخشان
   که می‌چرخه + یه لایه‌ی مه‌ کیهانی چرخان (بنفش/آبی) + جرقه‌های طلایی/بنفش
   که برعکسِ رینگ دور مدال می‌چرخن و چشمک می‌زنن. */
.shop-icon-circle {
  --gold: #ffd76a;
  --gold-2: #8a5a1a;
  --gold-glow: rgba(255, 205, 90, .6);
  --nebula-1: rgba(150, 70, 255, .55);
  --nebula-2: rgba(50, 200, 255, .35);
  position: relative;
  width: 74px; height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle 1.1px at 22% 28%, #fff 0 100%, transparent 100%),
    radial-gradient(circle 1px at 68% 18%, #fff 0 100%, transparent 100%),
    radial-gradient(circle .9px at 82% 55%, #fff 0 100%, transparent 100%),
    radial-gradient(circle 1px at 30% 78%, #fff 0 100%, transparent 100%),
    radial-gradient(circle .8px at 55% 62%, #fff 0 100%, transparent 100%),
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.22), transparent 32%),
    radial-gradient(circle at 78% 82%, var(--nebula-1), transparent 58%),
    radial-gradient(circle at 12% 82%, var(--nebula-2), transparent 55%),
    radial-gradient(circle at 50% 50%, #1c1130 0%, #100a24 40%, #060310 70%, #010005 100%);
  box-shadow:
    inset 0 1.7px 3.4px rgba(255,255,255,.18),
    inset 0 -5.2px 9px rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: #fff;
  animation: shop-icon-pulse 2.4s ease-in-out infinite;
  overflow: visible;
}
.shop-icon-circle.dim { animation: none; filter: grayscale(1); opacity: .55; }

/* لایه‌ی صفر: مه‌ی کیهانی چرخان داخل مدال (زیر متن) + رنگ‌هایی که به‌آرومی جابه‌جا می‌شن */
.shop-icon-nebula {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  background:
    conic-gradient(from 90deg at 50% 50%,
      transparent 0deg, var(--nebula-1) 40deg, transparent 100deg,
      var(--nebula-2) 180deg, transparent 250deg, var(--gold-glow) 300deg, transparent 360deg);
  mix-blend-mode: screen;
  opacity: .8;
  animation: shop-icon-nebula-spin 9s linear infinite, shop-icon-hue-shift 16s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.shop-icon-circle.dim .shop-icon-nebula { animation: none; opacity: .15; }

/* لایه‌ی نیم: انعکاس شیشه‌ای ثابت روی مدال — حس یه گوی براق واقعی */
.shop-icon-gloss {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 62% 34% at 30% 16%, rgba(255,255,255,.65), transparent 62%),
    radial-gradient(ellipse 55% 32% at 78% 90%, rgba(150,80,255,.22), transparent 70%);
  mix-blend-mode: soft-light;
  z-index: 1;
  pointer-events: none;
}
.shop-icon-circle.dim .shop-icon-gloss { opacity: .35; }

/* لایه‌ی ۱: رینگ طلایی براق (بِزِل مدال) که می‌چرخه */
.shop-icon-circle::before {
  content: "";
  position: absolute;
  inset: -2.6px;
  border-radius: 50%;
  padding: 2.1px;
  background: conic-gradient(from 0deg,
    var(--gold), #fff 6%, var(--gold) 16%, var(--gold-2) 34%,
    #c9a3ff 42%, var(--gold-2) 50%,
    var(--gold) 66%, #fff 74%, var(--gold) 84%, var(--gold-2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shop-icon-spin 4s linear infinite;
  filter: drop-shadow(0 0 4.8px var(--gold-glow));
  z-index: 1;
}
.shop-icon-circle.dim::before { animation: none; opacity: .3; filter: grayscale(1); }

/* لایه‌ی ۲: غبار ستاره‌ای (طلایی + بنفش) که دور مدال، برعکسِ رینگ می‌چرخه و چشمک می‌زنه */
.shop-icon-circle::after {
  content: "";
  position: absolute;
  inset: -12px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23ffe9a8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23ffffff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23d9b8ff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23ffe9a8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23ffffff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23aee9ff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23ffe9a8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23ffffff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23d9b8ff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23ffe9a8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7.5 16.5 11.2 24 12 16.5 12.8 12.8 16.5 12 24 11.2 16.5 7.5 12.8 0 12 7.5 11.2 11.2 7.5 12 0Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position:
    50% -1%, 76% 6%, 96% 28%, 100% 52%, 92% 76%,
    72% 94%, 46% 99%, 20% 93%, 2% 72%, 4% 30%;
  background-size:
    8px 8px, 5px 5px, 6.5px 6.5px, 5px 5px, 7px 7px,
    5px 5px, 8px 8px, 5px 5px, 6.5px 6.5px, 5px 5px;
  filter: drop-shadow(0 0 3.4px var(--gold-glow));
  animation: shop-icon-sparkle-spin 5.5s linear infinite, shop-icon-twinkle 1.5s ease-in-out infinite;
  z-index: 1;
}
.shop-icon-circle.dim::after { animation: none; opacity: 0; }

@keyframes shop-icon-spin { to { transform: rotate(360deg); } }
@keyframes shop-icon-sparkle-spin { to { transform: rotate(-360deg); } }
@keyframes shop-icon-nebula-spin { to { transform: rotate(360deg); } }
@keyframes shop-icon-hue-shift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes shop-icon-twinkle {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
@keyframes shop-icon-pulse {
  0%, 100% { box-shadow: 0 0 7.4px var(--gold-glow, var(--accent-glow)); transform: scale(1); }
  50% { box-shadow: 0 0 20.3px var(--gold-glow, var(--accent-glow)); transform: scale(1.035); }
}
.shop-icon-text { position: relative; z-index: 2; font-size: 13.2px; font-weight: 800; color: #fff; text-shadow: 0 0 7.4px var(--gold-glow); }
.shop-icon-amount {
  position: relative;
  z-index: 2;
  font-size: 18.3px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 9px var(--gold-glow);
  direction: ltr;
  color: #ffffff;
}
.shop-icon-unit { font-size: 9.54px; font-weight: 700; color: var(--text); opacity: .8; letter-spacing: .5px; }
.shop-icon-uc-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 25.5px;
  height: 13.6px;
  padding: 0 5.4px;
  border-radius: 3.6px;
  margin-top: 2.2px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #322640, #120a1c 75%);
  border: .9px solid var(--gold);
  box-shadow: inset 0 .9px .9px rgba(255,255,255,.25), 0 0 5.4px var(--gold-glow);
  font-size: 7.7px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #f2e6b8;
  text-shadow: 0 .9px .9px rgba(0,0,0,.6);
}
.shop-icon-circle.dim .shop-icon-uc-badge { box-shadow: none; filter: grayscale(1); opacity: .7; border-color: #666; }

/* عکس UC ساده — بدون رینگ طلایی، بدون چرخش کهکشانی، بدون درخشش؛ فقط خودِ عکس */
.shop-icon-plain {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
}
.shop-icon-plain.dim { filter: grayscale(1); opacity: .55; }
.shop-icon-plain-lg { width: 82px; height: 82px; }

.shop-card-info { display: flex; flex-direction: column; align-items: center; gap: 4.24px; }
.shop-card-amount { font-size: 13.25px; font-weight: 700; }
.shop-card-cost { font-size: 11.66px; color: var(--accent); font-weight: 700; }
.shop-card-cost-unit { color: var(--accent); font-weight: 600; }
.shop-card-locked { font-size: 11.13px; color: var(--text-dim); font-weight: 600; }

/* Shop order modal */
.shop-order-sheet { max-height: 90vh; }
.shop-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16.96px 16.96px 10.6px;
  border-bottom: 1.06px solid var(--line);
}
.shop-order-title { font-weight: 800; font-size: 17.02px; }
.shop-order-body {
  overflow-y: auto;
  padding: 16.96px 16.96px 21.2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12.72px;
}
.shop-order-balance-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 14.84px;
  padding: 10.6px 14.84px;
}
.shop-order-balance-label { font-size: 12.19px; color: var(--text-dim); }
.shop-order-balance-value { font-size: 13.78px; font-weight: 800; color: var(--accent); }
.shop-order-icon-wrap { padding: 6.36px 0; }
.shop-order-icon.shop-icon-circle,
.shop-order-icon { position: relative; }
#shopOrderIcon { width: 82px; height: 82px; }
.shop-order-cost { font-size: 19.08px; font-weight: 800; color: var(--text); }
.shop-order-note { font-size: 12.19px; color: var(--text-dim); text-align: center; margin: 0; line-height: 1.8; }
.shop-order-field { width: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 6.36px; }
.shop-order-field-label { font-size: 12.72px; font-weight: 700; color: var(--text); }
.shop-order-input {
  width: 100%;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 14.84px;
  padding: 12.72px 14.84px;
  color: var(--text);
  font-size: 13.78px;
  text-align: right;
}
.shop-order-input::placeholder { color: var(--text-dim); }
.shop-order-submit {
  width: 100%;
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 14.31px;
  padding: 13.78px;
  border-radius: 27.56px;
  display: flex; align-items: center; justify-content: center; gap: 8.48px;
  box-shadow: 0 0 16.96px var(--accent-glow);
  margin-top: 4.24px;
}
.shop-order-submit[disabled] { opacity: .6; box-shadow: none; }

/* --- افزایش موجودی (deposit) modal --- */
.deposit-step { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12.72px; }
.deposit-card-box {
  width: 100%;
  background: var(--card-2);
  border: 1.06px solid var(--line);
  border-radius: 14.84px;
  padding: 12.72px 14.84px;
  display: flex;
  flex-direction: column;
  gap: 8.48px;
}
.deposit-card-holder { font-size: 12.72px; font-weight: 700; color: var(--text-dim); }
.deposit-card-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.6px;
}
.deposit-card-number {
  font-size: 16.96px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent);
  direction: ltr;
  overflow-x: auto;
}
.deposit-receipt-picker {
  width: 100%;
  min-height: 90px;
  border: 1.59px dashed var(--line);
  border-radius: 14.84px;
  background: var(--card-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8.48px;
  padding: 12.72px;
  cursor: pointer;
  overflow: hidden;
}
.deposit-receipt-picker.has-image { border-style: solid; border-color: var(--accent); }
.deposit-receipt-picker-text { font-size: 12.72px; color: var(--text-dim); font-weight: 600; }
.deposit-receipt-preview {
  max-width: 100%;
  max-height: 140px;
  border-radius: 10.6px;
  object-fit: contain;
}
.deposit-back-btn {
  width: 100%;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13.25px;
  padding: 8.48px;
}

/* --- فروشگاه DNS --- */
.dns-icon { background: var(--red-bg); color: var(--red); }
.dns-topup-btn { background: var(--red); box-shadow: 0 0 16.96px var(--red-line); color: #fff; }
.dns-topup-btn .plus-circle { background: rgba(255,255,255,.2); }

.dns-history-header { margin-top: 21.2px; }
.dns-history-count {
  background: var(--red-bg);
  color: var(--red);
  border: 1.06px solid var(--red-line);
  border-radius: 12.72px;
  padding: 4.24px 12.72px;
  font-weight: 800;
  font-size: 13.25px;
  flex-shrink: 0;
}
.dns-history-empty {
  display: flex;
  align-items: center;
  gap: 8.48px;
  background: var(--card);
  border: 1.06px dashed var(--line);
  border-radius: var(--radius);
  padding: 14.84px 16.96px;
  color: var(--text-dim);
  font-size: 12.19px;
  line-height: 1.8;
}
.dns-history-empty svg { flex-shrink: 0; color: var(--text-dim); }
.dns-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.6px;
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: var(--radius);
  padding: 12.72px 14.84px;
  margin-bottom: 8.48px;
}
.dns-history-item:last-child { margin-bottom: 0; }
.dns-history-main { display: flex; flex-direction: column; gap: 4.24px; align-items: flex-end; text-align: right; }
.dns-history-title { font-size: 13.25px; font-weight: 700; color: var(--text); }
.dns-history-code { font-size: 12.19px; color: var(--accent); direction: ltr; font-weight: 700; }
.dns-history-expiry { font-size: 10.6px; color: var(--text-dim); }

.dns-promo-banner {
  display: flex;
  align-items: center;
  gap: 12.72px;
  background: linear-gradient(135deg, var(--red-bg), var(--card) 70%);
  border: 1.06px solid var(--red-line);
  border-radius: var(--radius);
  padding: 14.84px 16.96px;
  margin: 14.84px 0;
}
.dns-promo-icon {
  width: 58.3px; height: 58.3px;
  border-radius: 16.96px;
  background: rgba(255,77,94,.14);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dns-promo-text { display: flex; flex-direction: column; gap: 3.18px; text-align: right; }
.dns-promo-tag { font-size: 10.6px; font-weight: 800; color: var(--red); letter-spacing: .5px; }
.dns-promo-title { font-size: 15.37px; font-weight: 800; color: var(--text); }
.dns-promo-desc { font-size: 11.66px; line-height: 1.8; color: var(--text-dim); }

.dns-package-list { display: flex; flex-direction: column; gap: 12.72px; }
.dns-package-card {
  background: var(--card);
  border: 1.06px solid var(--line);
  border-radius: var(--radius);
  padding: 16.96px;
}
.dns-package-card.tier-pro { border-color: var(--red-line); background: linear-gradient(135deg, var(--red-bg), var(--card) 65%); }
.dns-package-head { display: flex; flex-direction: column; align-items: flex-end; gap: 2.12px; text-align: right; margin-bottom: 8.48px; }
.dns-package-subtitle { font-size: 11.13px; color: var(--text-dim); font-weight: 600; }
.dns-package-card.tier-pro .dns-package-subtitle { color: var(--red); }
.dns-package-title { font-size: 15.37px; font-weight: 800; color: var(--text); }
.dns-package-desc { font-size: 12.19px; line-height: 1.85; color: var(--text-dim); text-align: right; margin-bottom: 10.6px; }
.dns-package-tags { display: flex; justify-content: flex-end; margin-bottom: 12.72px; }
.dns-package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12.72px;
}
.dns-package-stock { font-size: 11.66px; color: var(--text-dim); }
.dns-package-stock.out { color: var(--red); }
.dns-package-price { font-size: 16.96px; font-weight: 800; color: var(--text); }
.dns-package-cta {
  width: 100%;
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 13.78px;
  padding: 13.78px;
  border-radius: 27.56px;
  display: flex; align-items: center; justify-content: center; gap: 8.48px;
  box-shadow: 0 0 16.96px var(--accent-glow);
}
.dns-package-cta.needs-topup { background: var(--red); color: #fff; box-shadow: 0 0 16.96px var(--red-line); }
.dns-package-cta[disabled] { opacity: .55; box-shadow: none; }

.dns-note {
  display: flex;
  align-items: center;
  gap: 8.48px;
  justify-content: center;
  text-align: center;
  font-size: 10.6px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 4.24px 0 12.72px;
}
.dns-note svg { flex-shrink: 0; }

/* --- صفحه‌ی بلوکِ اتصال (بیرون از تلگرام / مینی‌اپ خاموش) --- */
.connection-error-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14.84px;
  padding: 31.8px;
  text-align: center;
}
.connection-error-icon {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--red-bg);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 21.2px var(--red-line);
}
.connection-error-icon.maintenance {
  background: rgba(205,251,47,.12);
  color: var(--accent);
  box-shadow: 0 0 21.2px var(--accent-glow);
}
.connection-error-title { font-size: 18px; font-weight: 800; color: var(--text); }
.connection-error-desc { font-size: 13.25px; line-height: 2; color: var(--text-dim); max-width: 300px; }
.connection-error-retry {
  margin-top: 8.48px;
  background: var(--accent);
  color: #0a0f08;
  font-weight: 700;
  font-size: 13.78px;
  padding: 12.72px 31.8px;
  border-radius: 27.56px;
  box-shadow: 0 0 16.96px var(--accent-glow);
}
