/* ============================================================
   ادپول — استایل مینی‌اپ (شیشه‌ای، تیره، راست‌چین)
   ============================================================ */

/* ---------- فونت وزیرمتن ---------- */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Vazirmatn-Black.woff2') format('woff2');
}

:root {
  --bg: #0b0e1a;
  --bg2: #10152b;
  --card: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.10);
  --text: #eef1ff;
  --muted: #9aa3c7;
  --accent: #6c5ce7;
  --accent2: #00d2ff;
  --gold: #ffd166;
  --green: #2ecc71;
  --red: #ff5e7e;
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(108, 92, 231, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(0, 210, 255, .16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  min-height: 100vh;
}
body.home-lock { overflow: hidden; }

.app { max-width: 560px; margin: 0 auto; padding: 12px 12px calc(104px + env(safe-area-inset-bottom)); }

/* تب خانه: ستون فلکس (دسته‌بندی + اسلایدشو) — فضای خالی/سرریز ندارد */
#panel-home.active {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 150px - env(safe-area-inset-bottom));
  overflow: hidden;
}

/* ---------- شیشه ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.hidden { display: none !important; }

/* ---------- نوار بالا (لوگو وسط‌چین) ---------- */
.topbar {
  position: sticky; top: 8px; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; justify-self: start; }
.logo { font-size: 22px; filter: drop-shadow(0 0 8px rgba(108, 92, 231, .8)); }
.brand-txt { background: linear-gradient(90deg, var(--accent2), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.icon-btn {
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, .07);
  color: var(--text); width: 40px; height: 40px; border-radius: 12px;
  font-size: 18px; cursor: pointer; transition: transform .15s, background .2s;
}
.icon-btn:active { transform: scale(.9); background: rgba(255, 255, 255, .14); }

.whoami { margin-inline-start: auto; font-size: 12px; color: var(--muted); }

/* ---------- نوار استاتوس ---------- */
.status-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 12px; padding: 12px 8px; text-align: center;
  border: 1px solid rgba(108, 92, 231, .35);
  background: linear-gradient(120deg, rgba(108, 92, 231, .22), rgba(0, 210, 255, .12));
}
.sb-item { display: flex; flex-direction: column; gap: 3px; }
.sb-item span { font-size: 11px; color: var(--muted); }
.sb-item b { font-size: 16px; }
.sb-item.accent b { color: var(--gold); }

/* ---------- بنر کانال اجباری ---------- */
.req-banner {
  margin-top: 12px; padding: 14px 16px;
  border: 1px solid rgba(255, 94, 126, .35);
  background: rgba(255, 94, 126, .08);
  font-size: 13px; line-height: 1.9;
}
.req-banner-actions { display: flex; gap: 8px; margin-top: 10px; }
.req-banner-actions .btn { width: auto; }

/* ---------- ناوبری پایین (باتم‌بار) ---------- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; z-index: 60;
  width: 100%; max-width: 560px;
  display: flex; align-items: stretch; gap: 2px;
  background: rgba(13, 17, 32, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--stroke);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
}
.nav-item {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 5px 2px;
  border: none; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 9.5px; cursor: pointer;
  border-radius: 12px; position: relative;
  transition: color .2s, background .2s, transform .15s;
}
.nav-item .ni-ico {
  font-size: 20px; line-height: 1;
  filter: saturate(.45); opacity: .8;
  transition: filter .2s, opacity .2s, transform .2s;
}
.nav-item .ni-txt {
  max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.nav-item:active { transform: scale(.88); }
.nav-item.active {
  color: var(--accent2);
  background: linear-gradient(180deg, rgba(0, 210, 255, .14), rgba(108, 92, 231, .1));
}
.nav-item.active .ni-ico {
  filter: none; opacity: 1;
  transform: translateY(-1px) scale(1.12);
}
.nav-item.active .ni-txt { font-weight: 800; }
/* نشانگر فعال‌سازی بالای نوار */
.nav-item.active::after {
  content: ''; position: absolute; top: -7px;
  width: 22px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  box-shadow: 0 0 10px rgba(0, 210, 255, .7);
}

/* ---------- تب‌های دسته‌بندی (بالای صفحه اصلی) ---------- */
.ad-cats {
  position: sticky; top: 58px; z-index: 40;
  display: flex; gap: 6px;
  margin-top: 12px; padding: 6px;
}
.cat {
  flex: 1; border: none; cursor: pointer;
  padding: 10px 4px; border-radius: 12px;
  background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  white-space: nowrap; transition: all .2s;
}
.cat.active {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; box-shadow: 0 4px 16px rgba(108, 92, 231, .45);
}

/* ---------- اسلایدشو تمام‌صفحه ---------- */
.slideshow {
  position: relative;
  margin-top: 10px;
  margin-inline: -12px;
  /* کل فضای باقی‌مانده پنل را پر می‌کند؛ اسلایدها منعطف، ناوبری ثابت */
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}
.slides { position: relative; flex: 1 1 auto; min-height: 0; height: auto; }
.slide {
  position: relative;
  display: none;
  height: 100%;
  min-height: 0;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(600px 320px at 50% -20%, rgba(108, 92, 231, .35), transparent 65%),
    radial-gradient(500px 300px at 90% 110%, rgba(0, 210, 255, .18), transparent 60%),
    var(--bg2);
}
.slide.active { display: block; animation: fadeUp .35s ease; }
.slide-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, transparent 55%, rgba(108, 92, 231, .12));
}

.slide-skip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, .08);
  color: var(--muted); font-size: 12px; font-family: inherit;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.slide-skip:active { transform: scale(.92); background: rgba(255, 255, 255, .16); }

.slide-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center; max-width: 420px; margin: 0 auto;
  height: 100%;
  padding-top: 2px;
}
.slide-avatar {
  width: min(24vw, 92px); height: min(24vw, 92px); border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(0, 210, 255, .35);
  box-shadow: 0 10px 40px rgba(108, 92, 231, .55);
  margin-bottom: 18px; background: var(--bg2);
}
.slide-avatar.placeholder {
  display: grid; place-items: center; font-size: 46px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.slide-type {
  font-size: 12px; color: var(--muted);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--stroke);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.slide-title {
  margin: 0 0 8px; font-size: clamp(16px, 3.8vw, 21px); font-weight: 800;
  line-height: 1.45; word-break: break-word;
  display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-reward {
  font-size: 15px; color: var(--gold);
  background: rgba(255, 209, 102, .1);
  border: 1px solid rgba(255, 209, 102, .3);
  padding: 9px 18px; border-radius: 999px; margin-bottom: 14px;
}
.slide-reward b { color: var(--gold); }
.slide-views {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 14px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--stroke);
}
.slide-self { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

.slide-actions {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
  max-width: 340px;
}
.slide-actions .btn { width: 100%; padding: 11px 10px; font-size: 14px; }
.btn.slide-open {
  background: linear-gradient(135deg, var(--accent2), #3aa0ff);
  color: #04202e; box-shadow: 0 6px 20px rgba(0, 210, 255, .35);
}
.btn.slide-claim {
  background: rgba(255, 255, 255, .1); color: var(--muted);
  border: 1px solid var(--stroke);
}
.btn.slide-claim.locked,
.btn.slide-claim:disabled { opacity: .55; cursor: not-allowed; }
.btn.slide-claim.ready {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff; box-shadow: 0 6px 22px rgba(46, 204, 113, .45);
  animation: claimPulse 1s ease infinite;
}
.btn.slide-claim.claim-channel { color: var(--gold); border-color: rgba(255, 209, 102, .4); }
.btn.slide-claim.done { opacity: .7; animation: none; }
@keyframes claimPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.slide-msg { min-height: 18px; margin-top: 8px; font-size: 12px; }
.slide-msg.ok { color: var(--green); }
.slide-msg.err { color: var(--red); }

/* پریلودر کارت تبلیغ (ثبات قبل از لود) */
.slide-skeleton {
  display: block;
  height: 100%;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.03) 63%),
    var(--bg2);
  background-size: 300% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* تایمر مخفی — نوار ظریف پایین اسلاید */
.slide-timer {
  width: 100%; max-width: 340px;
  height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  margin-top: 18px; overflow: hidden;
}
.timer-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 15s linear;
}
.timer-bar.fill { width: 100%; }
.timer-bar.done { background: linear-gradient(90deg, var(--green), var(--accent2)); }

/* ناوبری اسلاید (فلش + نقطه) */
.slide-nav {
  flex: none;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 16px 4px;
}
.slide-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, .07);
  color: var(--text); font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, transform .15s;
}
.slide-arrow:active { transform: scale(.9); background: rgba(255, 255, 255, .14); }
.slide-dots { display: flex; gap: 6px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .18); cursor: pointer;
  transition: all .25s;
}
.dot.active {
  width: 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

/* ورود به بخش مدیریت تبلیغ (جدا از بخش کاربر) */
.ads-link {
  display: block; margin-top: 12px; text-align: center;
  text-decoration: none; font-size: 13.5px;
}

.empty, .center-card { text-align: center; color: var(--muted); padding: 40px 20px; }
.big-emoji { font-size: 48px; margin-bottom: 10px; }
.center-card h2 { color: var(--text); margin: 0 0 8px; }

/* ---------- فرم‌ها ---------- */
.form-card, .board { margin-top: 14px; padding: 20px; }
.form-card h2, .board h2 { margin: 0 0 6px; font-size: 18px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; }

label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
input, select {
  width: 100%; margin-top: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--stroke); color: var(--text);
  padding: 12px 14px; border-radius: 12px; font-size: 14px;
  outline: none; transition: border .2s, box-shadow .2s;
  font-family: inherit;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, .25);
}
input[type="file"] { padding: 9px; color: var(--muted); }

.btn {
  width: 100%; border: none; cursor: pointer;
  padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 700;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.98); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; box-shadow: 0 6px 20px rgba(108, 92, 231, .4);
}
.btn.primary:hover { filter: brightness(1.1); }
.btn.secondary { background: rgba(255, 255, 255, .1); color: var(--text); border: 1px solid var(--stroke); }

.msg { min-height: 18px; margin-top: 10px; font-size: 13px; text-align: center; }
.msg.ok { color: var(--green); }
.msg.err { color: var(--red); }

/* ---------- آمار تبلیغ‌های من ---------- */
.panel-box { margin-top: 14px; padding: 18px; }
.panel-box h2 { margin: 0 0 4px; font-size: 17px; }

.myads-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 16px; }
.myad-box {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 11px 6px; text-align: center;
  display: flex; flex-direction: column; gap: 3px;
}
.myad-box span { font-size: 10.5px; color: var(--muted); }
.myad-box b { font-size: 15px; }
.myad-box:last-child b { color: var(--gold); }
@media (max-width: 480px) { .myads-sum { grid-template-columns: repeat(2, 1fr); } }

.myad-card {
  border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 14px;
  margin-bottom: 10px; background: rgba(255, 255, 255, .04);
  animation: fadeUp .3s ease both;
}
.myad-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.myad-title { font-weight: 700; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myad-stats { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.myad-stats b { color: var(--text); }

.myad-actions { display: flex; gap: 8px; margin-top: 10px; }
.myad-actions .btn { width: auto; }
.myad-note {
  margin-top: 8px; padding: 8px 12px; border-radius: 10px;
  background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .25);
  color: var(--gold); font-size: 12px;
}

/* ---------- فرم تمدید بودجه ---------- */
.myad-topup {
  margin-top: 10px; padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px dashed var(--stroke);
  animation: fadeUp .2s ease;
}
.topup-hint { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.topup-hint b { color: var(--gold); }
.topup-chips, .chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1px solid rgba(0, 210, 255, .35); background: rgba(0, 210, 255, .1);
  color: var(--accent2); border-radius: 999px; padding: 7px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: transform .15s, background .2s; font-family: inherit;
}
.chip:hover { background: rgba(0, 210, 255, .2); }
.chip:active { transform: scale(.94); }
.chip.disabled { opacity: .35; pointer-events: none; }
.topup-row { display: flex; gap: 8px; align-items: center; }
.topup-row .inline-num { flex: 1; min-width: 0; }
.myad-topup .btn { width: auto; }
.inline-num {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke);
  color: var(--text); padding: 9px 12px; border-radius: 10px;
  font-size: 13px; outline: none; font-family: inherit;
}
.inline-num:focus { border-color: var(--accent); }

.btn.small { padding: 8px 13px; font-size: 12px; border-radius: 10px; width: auto; }
.btn.ok { background: linear-gradient(135deg, #27ae60, #2ecc71); color: #fff; box-shadow: 0 4px 14px rgba(46, 204, 113, .3); }
.btn.warn { background: linear-gradient(135deg, #d68910, var(--gold)); color: #221a00; box-shadow: 0 4px 14px rgba(255, 209, 102, .25); }

.badge { padding: 2px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.badge.ok { background: rgba(46, 204, 113, .15); color: var(--green); }
.badge.warn { background: rgba(255, 209, 102, .15); color: var(--gold); }
.badge.bad { background: rgba(255, 94, 126, .15); color: var(--red); }
.badge.mute { background: rgba(255, 255, 255, .08); color: var(--muted); }

/* ---------- ویزارد مرحله‌ای افزایش موجودی ---------- */
.dep-steps { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 16px; }
.dep-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); text-align: center; position: relative;
}
.dep-step i {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-weight: 800; font-size: 13px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke); color: var(--muted);
}
.dep-step.active { color: var(--text); }
.dep-step.active i {
  background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(108, 92, 231, .45);
}
.dep-step.done { color: var(--green); }
.dep-step.done i { background: rgba(46, 204, 113, .15); color: var(--green); border-color: rgba(46, 204, 113, .4); }
.dep-page { display: none; }
.dep-page.active { display: block; animation: fadeUp .25s ease; }
.dep-nav { display: flex; gap: 8px; margin-top: 14px; }
.dep-nav .btn { flex: 1; }

/* ---------- افزایش موجودی (واریز) ---------- */
.dep-methods { display: flex; gap: 6px; margin-bottom: 14px; }
.dep-method {
  flex: 1; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .05);
  color: var(--muted); border-radius: 12px; padding: 10px 4px;
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: all .2s;
}
.dep-method.active {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(108, 92, 231, .45);
}
.dep-method.disabled { opacity: .4; cursor: not-allowed; }
.dep-method:disabled { opacity: .4; cursor: not-allowed; }
.dep-method .soon {
  display: inline-block; margin-inline-start: 4px;
  font-size: 9px; font-weight: 800; vertical-align: middle;
  color: var(--gold); border: 1px solid rgba(255, 209, 102, .4);
  border-radius: 999px; padding: 1px 7px;
}

.dep-body { display: none; animation: fadeUp .25s ease; }
.dep-body.active { display: block; }

.dep-info {
  background: rgba(255, 255, 255, .05); border: 1px dashed var(--stroke);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.dep-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.dep-row span { color: var(--muted); }
.dep-row b { font-size: 13.5px; color: var(--accent2); overflow-wrap: anywhere; }

.dep-copy { display: flex; gap: 8px; margin-bottom: 14px; }
.dep-copy .btn { width: auto; }

.dep-history { margin-top: 8px; }
.dep-history-head {
  font-size: 13.5px; font-weight: 800; margin: 18px 0 10px;
  color: var(--accent2);
}
.dep-item {
  border: 1px solid var(--stroke); border-radius: 12px;
  padding: 11px 13px; margin-bottom: 8px;
  background: rgba(255, 255, 255, .04);
}
.dep-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dep-item-top b { color: var(--gold); font-size: 14px; }
.dep-item-sub {
  margin-top: 5px; font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dep-item-note { margin-top: 6px; font-size: 12px; color: var(--gold); }
.dep-proof { color: var(--accent2); text-decoration: none; font-weight: 700; }
.dep-tx { font-size: 10.5px; background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; }

/* ---------- لیدربورد ---------- */
.board-row {
  display: grid; grid-template-columns: 40px 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 11px 6px; border-bottom: 1px solid var(--stroke);
  font-size: 14px;
}
.board-row:last-child { border-bottom: none; }
.rank { font-weight: 800; }
.rank.top3 { font-size: 20px; }
.bname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bviews { color: var(--muted); font-size: 12px; }
.bbal { color: var(--gold); font-size: 12px; font-weight: 700; }
.loading { text-align: center; color: var(--muted); padding: 20px; }

/* ---------- زیرمجموعه ---------- */
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ref-box {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke);
  border-radius: 14px; padding: 14px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.ref-box span { font-size: 12px; color: var(--muted); }
.ref-box b { font-size: 18px; color: var(--accent2); }

/* ---------- انیمیشن‌ها ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast {
  position: fixed; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: rgba(20, 24, 44, .95); border: 1px solid var(--stroke);
  color: var(--text); padding: 11px 20px; border-radius: 999px;
  font-size: 13px; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: fadeUp .25s ease;
}

/* ---------- تسک‌ها و کوئست‌ها ---------- */
.task-card {
  border: 1px solid var(--stroke); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 10px;
  background: rgba(255, 255, 255, .04);
}
.task-card.done { opacity: .55; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.task-type { font-size: 11px; color: var(--muted); font-weight: 700; }
.task-reward {
  font-size: 12.5px; font-weight: 800; color: var(--gold);
  background: rgba(255, 200, 87, .12); border: 1px solid rgba(255, 200, 87, .3);
  padding: 3px 10px; border-radius: 999px;
}
.task-title { font-size: 14.5px; font-weight: 800; margin-bottom: 3px; }
.task-desc { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 4px; }
.task-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.task-actions .btn { width: auto; }
.task-progress { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; margin-bottom: 2px; }
.task-progress span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.task-progress-bar {
  flex: 1; height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
.task-progress-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width .4s ease;
}

/* ---------- چیپ پاداش پرمیوم ---------- */
.prem-chip {
  display: inline-block; vertical-align: middle;
  margin-inline-start: 6px; padding: 1px 8px;
  font-size: 10.5px; font-weight: 800; color: var(--gold);
  background: rgba(255, 200, 87, .14); border: 1px solid rgba(255, 200, 87, .35);
  border-radius: 999px;
}

/* ---------- بنر مشکل اتصال (قطعی شبکه / فیلترشکن) ---------- */
.net-banner {
  position: fixed; top: 10px; inset-inline: 10px; z-index: 300;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.7;
  background: rgba(214, 69, 69, .95); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.net-banner.hidden { display: none; }
.net-banner button {
  flex: none; padding: 7px 11px; font-size: 12px; font-weight: 800;
  color: #1a0d0d; background: #fff; border: 0; border-radius: 9px; cursor: pointer;
}

/* ---------- واتچ‌داگ بارگذاری (وقتی اسکریپت اصلی اصلاً لود نمی‌شود) ---------- */
.boot-watchdog {
  position: fixed; inset: 0; z-index: 400; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: #070b16cc; backdrop-filter: blur(4px);
}
.boot-watchdog.hidden { display: none; }
.bw-card {
  width: min(420px, 100%); text-align: center; padding: 22px 18px;
  background: #0e1526; color: #eaf0ff; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.bw-card .bw-emoji { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.bw-card h3 { font-size: 16px; margin: 0 0 6px; }
.bw-card p { font-size: 12.5px; line-height: 1.9; opacity: .8; margin: 0 0 14px; }
.bw-card button {
  padding: 10px 18px; font-size: 13.5px; font-weight: 800; color: #06101f;
  background: linear-gradient(90deg, #4cc2ff, #7a8cff); border: 0;
  border-radius: 11px; cursor: pointer;
}
