/* =========================================================
   Lika Ads — Telegram Mini App
   استایل اصلی (Mobile First + RTL)
   ========================================================= */

/* ---------- ۱) رنگ‌ها و متغیرهای پایه (تم روشن) ---------- */
:root {
  --bg:          #f4f6fb;
  --surface:     #ffffff;
  --surface-2:   #eef1f8;
  --surface-3:   #e5e9f4;
  --text:        #111827;
  --text-dim:    #6b7280;
  --text-faint:  #9aa3b2;
  --border:      #e3e7f0;

  /* آبی برند Lika Network */
  --brand:       #243cf4;
  --brand-2:     #4358ff;
  --brand-ink:   #ffffff;
  --brand-soft:  rgba(36, 60, 244, .10);
  --brand-grad:  linear-gradient(135deg, #16249e 0%, #1d30cd 55%, #243cf4 100%);
  --brand-glow:  rgba(29, 48, 205, .32);

  --success:     #0ca678;
  --success-soft:rgba(12, 166, 120, .12);
  --warn:        #e8890c;
  --warn-soft:   rgba(232, 137, 12, .13);
  --danger:      #e03131;
  --danger-soft: rgba(224, 49, 49, .12);
  --info:        #1c7ed6;
  --info-soft:   rgba(28, 126, 214, .12);

  --radius:      20px;
  --radius-sm:   14px;
  --radius-xs:   10px;
  --shadow:      0 8px 28px rgba(17, 24, 39, .07);
  --shadow-sm:   0 2px 10px rgba(17, 24, 39, .05);

  --tab-h:       68px;
  --safe-b:      env(safe-area-inset-bottom, 0px);

  --font: "Vazirmatn", "IRANSansX", "IRANSans", "SF Arabic", "Segoe UI",
          Tahoma, system-ui, -apple-system, sans-serif;
}

/* ---------- تم تیره ---------- */
:root[data-theme="dark"] {
  --bg:          #0e1320;
  --surface:     #161d2e;
  --surface-2:   #1d2739;
  --surface-3:   #26324a;
  --text:        #eef2ff;
  --text-dim:    #9aa6bf;
  --text-faint:  #6f7c96;
  --border:      #26314a;

  --brand:       #7c92ff;
  --brand-2:     #9db0ff;
  --brand-soft:  rgba(124, 146, 255, .15);
  --brand-grad:  linear-gradient(135deg, #0f1a6b 0%, #15229c 55%, #1d2fcc 100%);
  --brand-glow:  rgba(13, 24, 110, .55);

  --success:     #2dd4a7;
  --success-soft:rgba(45, 212, 167, .14);
  --warn:        #fbb040;
  --warn-soft:   rgba(251, 176, 64, .15);
  --danger:      #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .14);
  --info:        #4dabf7;
  --info-soft:   rgba(77, 171, 247, .14);

  --shadow:      0 10px 30px rgba(0, 0, 0, .35);
  --shadow-sm:   0 2px 10px rgba(0, 0, 0, .25);
}

/* ---------- ۲) ریست ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overscroll-behavior-y: none;
}

body { min-height: 100vh; }

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.5; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- ۳) چیدمان کلی ---------- */
.app {
  max-width: 520px;
  margin-inline: auto;
  min-height: 100vh;
  position: relative;
}

.screen {
  padding: 14px 16px calc(var(--tab-h) + var(--safe-b) + 24px);
  animation: screen-in .26s ease both;
}
.screen.is-full { padding-bottom: calc(96px + var(--safe-b)); }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- ۴) نوار بالا ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  min-height: 54px;
  padding: 8px 14px;
  background: var(--bg); /* حالت پشتیبان برای مرورگرهای قدیمی */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.appbar.has-border { border-bottom-color: var(--border); }
.appbar__title { font-size: 16px; font-weight: 700; flex: 1; }
.appbar__sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-dim); }

.iconbtn {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 17px;
  transition: transform .12s ease, background .15s ease;
}
.iconbtn:active { transform: scale(.93); }
.iconbtn--label {
  width: auto; flex: 0 0 auto;
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; font-size: 13px; font-weight: 700;
}

.brandmark {
  display: flex; align-items: center; gap: 9px; flex: 1;
}
.brandmark__logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--brand);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 16px var(--brand-glow);
}
.brandmark__logo--img {
  object-fit: cover;
  background: var(--surface-2);
  padding: 0;
}
.brandmark__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.brandmark__tag { font-size: 11px; color: var(--text-dim); line-height: 1.3; }

/* ---------- ۵) کارت‌ها ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 12px; }
.card--flat { box-shadow: none; }
.card--pad-sm { padding: 13px 14px; }

.section {
  margin-top: 22px;
}
.section__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-inline: 2px;
}
.section__title { font-size: 14.5px; font-weight: 700; }
.section__link { font-size: 12.5px; font-weight: 600; color: var(--brand); }

/* ---------- ۶) هدر گرادیانی صفحه اصلی ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 14px 34px var(--brand-glow);
}
.hero::after {
  content: ""; position: absolute; inset: auto -40px -70px auto;
  width: 190px; height: 190px; border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
/* سلام و نام کنار هم در یک خط، بالای کارت */
.hero__greet {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; gap: 5px;
  flex-wrap: wrap;
}
.hero__hi { font-size: 12.5px; opacity: .9; }
.hero__name { font-size: 15px; font-weight: 800; }
.hero__desc {
  position: relative; z-index: 2;
  font-size: 12.5px; opacity: .92;
  margin-top: 6px; max-width: 88%;
}
.hero__cta {
  position: relative; z-index: 2;
  margin-top: 16px;
  width: 100%;
  height: 50px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .96);
  color: #1d30cd;
  font-weight: 800; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease;
}
.hero__cta:active { transform: scale(.98); }

/* ---------- ۷) کارت‌های آمار ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
  margin-top: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 9px;
  text-align: center;
}
.stat__num { font-size: 17px; font-weight: 800; letter-spacing: -.2px; color: var(--brand); }
.stat__lbl { font-size: 10.5px; color: var(--text-dim); margin-top: 1px; }

/* ---------- ۸) خدمات ---------- */
.services { display: grid; gap: 9px; }
.service {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.service__ico {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 18px;
}
.service__t { font-size: 13.5px; font-weight: 700; }
.service__d { font-size: 11.5px; color: var(--text-dim); }

/* ---------- ۹) دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 48px; padding: 0 18px;
  border-radius: 15px;
  font-weight: 700; font-size: 14.5px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
  transition: transform .12s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px var(--brand-glow); }
.btn--outline { background: transparent; border-color: var(--border); }
.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--block { width: 100%; }
.btn--sm { height: 38px; font-size: 12.5px; border-radius: 11px; padding: 0 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-row { display: flex; gap: 9px; }
.btn-row .btn { flex: 1; }

/* نوار چسبان پایین (دکمه اصلی هر مرحله) */
.stickybar {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  max-width: 520px; margin-inline: auto;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex; gap: 9px; align-items: center;
}
.stickybar .btn { flex: 1; }
.stickybar .btn--back { flex: 0 0 48px; padding: 0; }

/* ---------- ۱۰) فرم‌ها ---------- */
.field { margin-top: 15px; }
.field:first-child { margin-top: 0; }
.label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 7px;
  color: var(--text);
}
.label .req { color: var(--danger); font-weight: 700; }
.label__hint { font-size: 11px; font-weight: 500; color: var(--text-faint); margin-inline-start: auto; }
.label__hint [dir="ltr"] { display: inline-block; }

.input, .textarea, .select {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand);
  background: var(--surface);
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.8; }
.input[dir="ltr"] { text-align: left; }
.input.is-error, .textarea.is-error { border-color: var(--danger); background: var(--danger-soft); }

.help { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.6; }
.err { font-size: 11.5px; color: var(--danger); margin-top: 6px; font-weight: 600; }

.counter { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; margin-inline-start: auto; }
.counter.is-near { color: var(--warn); }
.counter.is-over { color: var(--danger); font-weight: 700; }

/* انتخاب چندگانه / تک‌گانه با چیپ */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-dim);
  transition: all .14s ease;
}
.chip.is-on {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.chip:active { transform: scale(.96); }

/* کارت انتخابی (نوع مقصد تبلیغ) */
.picks { display: grid; gap: 9px; }
.pick {
  display: flex; align-items: center; gap: 12px; text-align: right;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1.5px solid transparent;
  transition: all .14s ease;
}
.pick.is-on { background: var(--brand-soft); border-color: var(--brand); }
.pick__ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); font-size: 18px; }
.pick__t { display: block; font-size: 13.5px; font-weight: 700; }
.pick__d { display: block; font-size: 11.5px; color: var(--text-dim); line-height: 1.6; }
.pick__tick { margin-inline-start: auto; color: var(--brand); font-size: 15px; opacity: 0; }
.pick.is-on .pick__tick { opacity: 1; }

/* فیلدهایی که بعد از انتخاب ظاهر می‌شوند */
.reveal { animation: reveal .25s ease both; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ردیف سوئیچ */
.switch {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
}
.switch.is-on { border-color: var(--brand); background: var(--brand-soft); }
.switch__box {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 7px; border: 2px solid var(--text-faint);
  display: grid; place-items: center;
  color: #fff; font-size: 12px;
}
.switch.is-on .switch__box { background: var(--brand); border-color: var(--brand); }
.switch__t { display: block; font-size: 13px; font-weight: 700; }
.switch__d { display: block; font-size: 11.5px; color: var(--text-dim); line-height: 1.6; }

/* اسلایدر */
.range { width: 100%; accent-color: var(--brand); margin: 6px 0 0; height: 26px; }

/* چیپ‌های پیشنهاد بودجه */
.money-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }

/* ---------- ۱۱) مراحل (Wizard) ---------- */
.steps { display: flex; align-items: center; gap: 6px; padding: 2px 0 14px; }
.steps__bar { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.steps__fill { height: 100%; border-radius: 99px; background: var(--brand-grad); transition: width .3s ease; }
.steps__txt { font-size: 11.5px; font-weight: 700; color: var(--text-dim); white-space: nowrap; }

.step-head { margin-bottom: 14px; }
.step-head__t { font-size: 17px; font-weight: 800; }
.step-head__d { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

/* ---------- ۱۲) پیش‌نمایش تبلیغ (عین پیام اسپانسری تلگرام) ---------- */
/* رنگ‌های این بخش عمداً ثابت‌اند و از تم اپ پیروی نمی‌کنند،
   چون باید همان چیزی دیده شود که مخاطب داخل تلگرام می‌بیند. */
/* کادر شناسایی کانال، زیر فیلد آدرس */
.chatchip:empty { display: none; }
.chatchip {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  animation: screen-in .2s ease both;
}
.chatchip__ava {
  position: relative;
  width: 26px; height: 26px; flex: 0 0 26px;
  border-radius: 8px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 12px;
}
.chatchip__ava-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.chatchip__name { font-weight: 700; flex: 1; word-break: break-word; }
.chatchip__ok { display: inline-flex; align-items: center; gap: 3px; color: var(--success); font-weight: 600; }
.chatchip__miss { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); }
.chatchip__dim { display: inline-flex; align-items: center; gap: 5px; color: var(--text-dim); }

.adprev { margin-top: 4px; }
.adprev__label { font-size: 11px; color: var(--text-faint); margin-bottom: 8px; font-weight: 600; }

/* =========================================================
   پیش‌نمایش تبلیغ — بازسازی چیزی که مخاطب در تلگرام می‌بیند
   ---------------------------------------------------------
   عمداً از پوستهٔ روشن یا تیرهٔ خود اپ پیروی نمی‌کند: این کادر
   قرار است تلگرام را نشان دهد، نه اپ ما را. پس همیشه همان
   کاغذدیواری سبز و حباب سفید تلگرام است.
   ========================================================= */
.tgchat {
  --tg-accent: #d8386a;   /* رنگی که تلگرام برای پیام‌های تبلیغی می‌گذارد */
  --tg-bubble: #fff;
  --tg-ink: #101418;
  position: relative;
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  background-color: #a9cf9c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23214a1c' stroke-opacity='.13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='8'/%3E%3Cpath d='M60 16c4-6 12-2 12 4 0 6-8 10-12 14-4-4-12-8-12-14 0-6 8-10 12-4z'/%3E%3Cpath d='M98 28l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3Crect x='12' y='64' width='16' height='16' rx='4'/%3E%3Cpath d='M54 68c9 0 15 7 15 15M54 83h15'/%3E%3Ccircle cx='98' cy='76' r='9'/%3E%3Cpath d='M28 104c6-8 16-8 22 0'/%3E%3Cpath d='M78 98l9 9-9 9-9-9z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  overflow: hidden;
}

/* حبابک پیام — سفید، با دُم گوشهٔ پایین سمت چپ، مثل پیام‌های دریافتی */
.tgbubble {
  position: relative;
  background: var(--tg-bubble);
  border-radius: 12px;
  border-end-start-radius: 4px;
  padding: 8px 10px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.tgbubble::after {
  content: "";
  position: absolute;
  left: -6px; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 13px 8px;
  border-color: transparent transparent var(--tg-bubble) transparent;
}

.tgad__head { display: flex; align-items: center; gap: 7px; min-height: 40px; }
.tgad__ad {
  font-size: 13px; font-weight: 800; color: var(--tg-accent);
  direction: ltr; letter-spacing: .2px;
}
.tgad__what {
  font-size: 10.5px; font-weight: 600; direction: ltr;
  color: var(--tg-accent);
  background: rgba(216, 56, 106, .12);
  padding: 2px 8px; border-radius: 99px;
}

.tgad__avawrap { margin-inline-start: auto; display: inline-flex; }
.tgad__ava {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  object-fit: cover;
}
.tgad__ava--img { display: block; }

.tgad__title {
  font-size: 14.5px; font-weight: 800; color: var(--tg-accent);
  line-height: 1.6; margin-top: 1px;
  word-break: break-word;
}
.tgad__text {
  font-size: 13px; line-height: 1.9; margin-top: 3px; padding-bottom: 10px;
  white-space: pre-wrap; word-break: break-word;
  color: var(--tg-ink);
}
.tgad__text.is-empty { color: rgba(16, 20, 24, .45); }

.tgad__btn {
  margin-inline: -10px;
  padding: 11px;
  text-align: center; direction: ltr;
  font-size: 12.5px; font-weight: 700; letter-spacing: .7px;
  color: var(--tg-accent);
  border-top: 1px solid rgba(0, 0, 0, .09);
}

/* ---------- ۱۳) لیست کمپین‌ها ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.camp {
  display: block; width: 100%; text-align: right;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease;
}
.camp:active { transform: scale(.99); }
.camp + .camp { margin-top: 9px; }
.camp__top { display: flex; align-items: flex-start; gap: 10px; }
.camp__ava {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.camp__name { font-size: 13.5px; font-weight: 700; }
.camp__meta { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.camp__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 11.5px; color: var(--text-dim);
}
.camp__money { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- ۱۴) برچسب وضعیت ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 9px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge--pending  { background: var(--warn-soft);    color: var(--warn); }
.badge--review   { background: var(--info-soft);    color: var(--info); }
.badge--approved { background: var(--brand-soft);   color: var(--brand); }
.badge--running  { background: var(--success-soft); color: var(--success); }
.badge--done     { background: var(--surface-3);    color: var(--text-dim); }
.badge--rejected { background: var(--danger-soft);  color: var(--danger); }
.badge--sample   { background: var(--surface-3);    color: var(--text-faint); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- ۱۵) ردیف اطلاعات ---------- */
.kv { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; }
.kv + .kv { border-top: 1px dashed var(--border); }
.kv__k { font-size: 12.5px; color: var(--text-dim); flex: 0 0 auto; }
.kv__v { font-size: 12.5px; font-weight: 600; text-align: left; word-break: break-word; }
.kv__v[dir="ltr"] { direction: ltr; }

/* ---------- ۱۶) تایم‌لاین وضعیت ---------- */
.timeline { padding-inline-start: 6px; }
.tl { display: flex; gap: 11px; position: relative; padding-bottom: 16px; }
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: ""; position: absolute; top: 20px; bottom: 0;
  inset-inline-start: 8px; width: 2px; background: var(--border);
}
.tl:last-child::before { display: none; }
.tl__dot {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  background: var(--surface-3); display: grid; place-items: center;
  font-size: 9px; color: var(--text-faint); z-index: 1; margin-top: 3px;
}
.tl.is-done .tl__dot { background: var(--success); color: #fff; }
.tl.is-now  .tl__dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.tl__t { font-size: 13px; font-weight: 700; }
.tl__d { font-size: 11.5px; color: var(--text-dim); }

/* ---------- ۱۷) قوانین ---------- */
.rules { display: grid; gap: 7px; }
.rule { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }
.rule__x { color: var(--danger); flex: 0 0 auto; font-weight: 700; }

/* ---------- ۱۸) خالی‌بودن / موفقیت ---------- */
.empty { text-align: center; padding: 42px 20px; }
.empty__ico {
  width: 74px; height: 74px; margin: 0 auto 14px;
  border-radius: 24px; background: var(--brand-soft);
  display: grid; place-items: center; font-size: 32px;
}
.empty__t { font-size: 15.5px; font-weight: 700; }
.empty__d { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.empty .btn { margin-top: 18px; }

.done-hero { text-align: center; padding: 30px 16px 8px; }
.done-hero__ico {
  width: 84px; height: 84px; margin: 0 auto 16px;
  border-radius: 30px; background: var(--success-soft); color: var(--success);
  display: grid; place-items: center; font-size: 38px;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-hero__t { font-size: 19px; font-weight: 800; }
.done-hero__d { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.done-hero__code {
  display: inline-block; margin-top: 14px;
  padding: 8px 15px; border-radius: 11px;
  background: var(--surface-2); border: 1px dashed var(--border);
  font-weight: 800; font-size: 14px; direction: ltr;
}

/* ---------- ۱۹) اکاردئون (سوالات متداول) ---------- */
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq + .faq { margin-top: 8px; }
.faq__q {
  width: 100%; text-align: right; display: flex; align-items: center; gap: 9px;
  padding: 13px; font-size: 13px; font-weight: 700;
}
.faq__q .ar { margin-inline-start: auto; color: var(--text-faint); font-size: 12px; transition: transform .2s ease; }
.faq.is-open .faq__q .ar { transform: rotate(180deg); }
.faq__a { display: none; padding: 0 13px 14px; font-size: 12.5px; color: var(--text-dim); line-height: 1.9; }
.faq.is-open .faq__a { display: block; }

/* ---------- ۲۰) پروفایل ---------- */
.profile { display: flex; align-items: center; gap: 13px; }
.profile__ava {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 20px;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
  object-fit: cover; overflow: hidden;
}
.profile__n { font-size: 15.5px; font-weight: 800; }
.profile__u { font-size: 12px; color: var(--text-dim); direction: ltr; text-align: right; }

.menu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.menu__i {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 13px; text-align: right; font-size: 13px; font-weight: 600;
}
.menu__i + .menu__i { border-top: 1px solid var(--border); }
.menu__ico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 15px; }
.menu__ar { margin-inline-start: auto; color: var(--text-faint); font-size: 12px; }
.menu__i--danger { color: var(--danger); }

/* ---------- ۲۱) نوار پایین (تب‌ها) ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 35;
  max-width: 520px; margin-inline: auto;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  /* flex به‌جای grid با ستون‌های ثابت: پنل CRM سه تب دارد و اپ مشتری
     چهار تا. با ستون ثابت، تب‌ها کج و یک‌طرفه می‌افتادند. */
  display: flex;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.tabbar:empty { display: none; }
.tab {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--text-faint);
  transition: color .15s ease;
}
.tab__ico { font-size: 19px; line-height: 1; transition: transform .15s ease; }
.tab.is-on { color: var(--brand); }
.tab.is-on .tab__ico { transform: translateY(-1px) scale(1.08); }

/* ---------- ۲۲) توست ---------- */
.toast {
  position: fixed; z-index: 90;
  inset-inline: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  max-width: 488px; margin-inline: auto;
  padding: 12px 15px; border-radius: 14px;
  background: #111827; color: #fff;
  font-size: 12.5px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-on { opacity: 1; transform: none; }
.toast.is-err { background: var(--danger); }
.toast.is-ok  { background: var(--success); }

/* ---------- ۲۲.۳) ثبت‌نام ---------- */
.ob { padding-top: 18px; }

.ob__dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; }
.ob__dot {
  width: 26px; height: 4px; border-radius: 99px;
  background: var(--surface-3);
  transition: background .25s ease;
}
.ob__dot.is-on { background: var(--brand); }

.ob__head { text-align: center; margin-bottom: 26px; }
.ob__ico {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 22px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.ob__t { font-size: 21px; font-weight: 800; }
.ob__d { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.9; }

.ob__input { height: 54px; font-size: 16px; font-weight: 600; }
.ob__code {
  text-align: center;
  letter-spacing: 10px;
  text-indent: 10px;   /* جبران فاصلهٔ اضافه بعد از آخرین رقم */
  font-size: 22px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ob__timer {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color .2s ease, background .2s ease;
}
.ob__timer.is-low { background: var(--warn-soft); color: var(--warn); }
.ob__timer.is-out { background: var(--danger-soft); color: var(--danger); }

.ob__note {
  margin-top: 22px; text-align: center;
  font-size: 11.5px; color: var(--text-faint); line-height: 1.9;
}

/* ---------- ۲۲.۴) نوار هشدار ---------- */
.notice {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px; font-weight: 600; line-height: 1.6;
}

/* توضیح آرام — خبر است، نه هشدار (مثلاً «تبلیغ جستجو متن ندارد») */
.notice--soft {
  align-items: flex-start;
  background: var(--info-soft); color: var(--info);
  font-weight: 500;
}
.notice--soft .ic { flex: 0 0 auto; margin-top: 2px; }

/* برچسبی که فقط نشان می‌دهد، کلیک‌شدنی نیست */
.chip.is-static { cursor: default; pointer-events: none; }

/* ---------- ۲۲.۵) آیکون‌ها ---------- */
.ic { display: block; flex: 0 0 auto; }
.tab__ico { display: grid; place-items: center; height: 22px; }
.menu__ar { display: inline-flex; }
.btn .ic, .service__ico .ic, .pick__ico .ic, .menu__ico .ic { pointer-events: none; }
.empty__ico .ic, .service__ico .ic { opacity: .95; }
.service__ico { color: var(--brand); }
.empty__ico { color: var(--brand); }

/* ---------- ۲۲.۱) داشبورد عملکرد ---------- */
.perf__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.perf__cell { text-align: center; }
.perf__ico {
  width: 28px; height: 28px; margin: 0 auto 6px;
  border-radius: 9px; background: var(--surface-3); color: var(--brand);
  display: grid; place-items: center;
}
.perf__num {
  font-size: 14.5px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}
.perf__lbl { font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }

.perf__bar {
  display: flex; gap: 2px; height: 6px; margin-top: 16px;
  border-radius: 99px; overflow: hidden;
}
.perf__seg { display: block; min-width: 6px; border-radius: 99px; }

.perf__legend {
  display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px;
}
.perf__leg {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-dim); white-space: nowrap;
}
.perf__dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }

.seg--pending  { background: var(--warn); }
.seg--review   { background: var(--info); }
.seg--approved { background: var(--brand); }
.seg--running  { background: var(--success); }
.seg--done     { background: var(--text-faint); }
.seg--rejected { background: var(--danger); }

/* ---------- ۲۲.۲) «چطور کار می‌کند» ---------- */
/* نام‌ها عمداً howto است، نه step —‌ کلاس‌های .steps/.step قبلاً برای
   نوار پیشرفت فرم ثبت سفارش استفاده شده‌اند. */
.howto__row { display: flex; align-items: flex-start; gap: 11px; }
.howto__row + .howto__row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.howto__ico {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.howto__body { min-width: 0; }
.howto__t {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
}
.howto__n {
  width: 18px; height: 18px; flex: 0 0 auto;
  border-radius: 50%; background: var(--surface-3); color: var(--text-dim);
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800;
}
.howto__d { font-size: 12px; color: var(--text-dim); margin-top: 4px; line-height: 1.7; }

/* ---------- ۲۲.۶) کارت پیش‌نویس نیمه‌تمام (صفحهٔ خانه) ----------
   عمداً کم‌رنگ‌تر از hero است: یادآوری است، نه فراخوان اصلی. */
.draft { border-color: var(--brand-soft); background: var(--surface); }
.draft__top { display: flex; align-items: flex-start; gap: 10px; }
.draft__ico {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.draft__t { font-size: 13.5px; font-weight: 700; }
.draft__name {
  font-size: 12px; color: var(--text-dim); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* نوار پیشرفت همان نوار فرم است، فقط بدون فاصلهٔ بالای آن */
.draft__steps { padding: 12px 0 0; }
.draft__when {
  display: flex; align-items: center; gap: 5px;
  margin-top: 8px; font-size: 11.5px; color: var(--text-dim);
}
.draft__ask { margin-top: 12px; font-size: 12px; color: var(--text-dim); }
.draft__del { background: var(--danger-soft); color: var(--danger); }

/* ---------- ۲۲.۷) بسته‌های آماده ---------- */
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pack {
  position: relative; text-align: center;
  padding: 15px 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .15s ease, transform .12s ease;
}
.pack:active { transform: scale(.985); }
.pack.is-on { border-color: var(--brand); background: var(--brand-soft); }

.pack__views { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pack__n { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.pack__u { font-size: 11.5px; color: var(--text-dim); }
.pack__price {
  margin-top: 7px; font-size: 12.5px; font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pack__tick {
  position: absolute; inset-block-start: 8px; inset-inline-end: 9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 11px; line-height: 18px;
  opacity: 0; transform: scale(.6); transition: all .15s ease;
}
.pack.is-on .pack__tick { opacity: 1; transform: scale(1); }

/* برچسب تخفیف و قیمت خط‌خورده */
.pack__off {
  position: absolute; inset-block-start: -8px; inset-inline-start: 9px;
  padding: 2px 7px; border-radius: 99px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800;
}
.pack__was {
  margin-top: 6px; font-size: 11px; color: var(--text-faint);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
}
.pack__was + .pack__price { margin-top: 2px; }

/* ---------- ۲۲.۹) تقویم شمسی ---------- */
.cal {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding: 12px;
}
.cal__bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.cal__title { font-size: 13.5px; font-weight: 700; }
.cal__nav {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--surface-2); color: var(--text);
  display: grid; place-items: center;
}
.cal__nav[disabled] { opacity: .35; pointer-events: none; }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__grid--head { margin-bottom: 4px; }
.cal__wd {
  text-align: center; font-size: 10.5px; font-weight: 700;
  color: var(--text-faint); padding-bottom: 2px;
}
.cal__day {
  aspect-ratio: 1; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: background .12s ease;
}
.cal__day:not([disabled]):active { background: var(--surface-3); }
.cal__day[disabled] { color: var(--text-faint); opacity: .4; pointer-events: none; }
.cal__day.is-on { background: var(--brand); color: #fff; font-weight: 800; }

.cal__note {
  display: flex; align-items: center; gap: 6px;
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 11.5px; color: var(--text-dim);
}

/* ---------- ۲۲.۸) پرداخت کارت‌به‌کارت ---------- */
.pay__row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px dashed var(--border);
}
.pay__lbl { font-size: 12.5px; color: var(--text-dim); }
.pay__amount {
  font-size: 16px; font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pay__card {
  margin-top: 12px; padding: 14px;
  border-radius: var(--radius-sm); background: var(--surface-2);
  text-align: center;
}
.pay__num { font-size: 18px; font-weight: 800; letter-spacing: 2px; }
.pay__holder { font-size: 12.5px; margin-top: 6px; }
.pay__bank { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

.pay__steps { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.pay__step {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-dim); line-height: 1.7;
}
.pay__n {
  width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 10.5px; font-weight: 800;
}

/* ---------- ۲۳) کمکی‌ها ---------- */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.center { text-align: center; }
.dim { color: var(--text-dim); }
.tiny { font-size: 11.5px; }
.nums { font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
[hidden] { display: none !important; }

/* ---------- ۲۲.۳) تأیید کانال‌های هدف ---------- */
.chanlist:empty { display: none; }
.chanlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chanpill {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; padding: 4px 9px 4px 4px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface-2);
  font-size: 11.5px; font-weight: 600;
}
.chanpill .chatchip__ava { width: 20px; height: 20px; font-size: 10px; }
.chanpill__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.chanpill__tick { display: inline-flex; flex: 0 0 auto; }
.chanpill.is-ok    { border-color: var(--success); color: var(--success); }
.chanpill.is-miss  { border-color: var(--warn);    color: var(--warn); }
.chanpill.is-wait  { color: var(--text-dim); opacity: .7; }

/* ---------- ۲۲.۴) پنل مدیریت ---------- */
.segs {
  display: flex; gap: 6px; padding: 4px;
  background: var(--surface-2); border-radius: var(--radius-sm);
}
.seg {
  flex: 1; padding: 9px 8px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--text-dim);
  transition: background .15s ease, color .15s ease;
}
.seg.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- ۲۴) پنل مدیریت روی صفحهٔ بزرگ ----------
   پنل همان کد مینی‌اپ را دارد و برای گوشی چیده شده. وقتی روی لپ‌تاپ
   باز می‌شود، ماندن در یک ستون ۵۲۰ پیکسلی وسط یک صفحهٔ پهن، هم زشت
   است و هم کار را کند می‌کند. از این عرض به بالا، فضا را می‌گیرد. */
@media (min-width: 900px) {
  body.is-panel .app { max-width: 1080px; }
  body.is-panel .screen { padding: 18px 24px 40px; }

  /* فهرست سفارش‌ها و مشتری‌ها دو ستونه می‌شود */
  body.is-panel #list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; align-items: start;
  }
  body.is-panel #list > .card { margin-top: 0; }

  /* نوار پایین روی دسکتاپ باریک‌تر و چسبیده به وسط */
  body.is-panel .tabbar { max-width: 1080px; }

  /* کارت‌های جزئیات لازم نیست کل عرض را بگیرند */
  body.is-panel .card { max-width: 100%; }
}

/* ---------- ۲۴.۱) سایت مستقل روی صفحهٔ بزرگ ----------
   بازدیدکنندهٔ سایت مستقل از مرورگر معمولی می‌آید، نه از تلگرام؛
   ماندن در همان عرض باریک موبایل روی مانیتور بزرگ حس یک اپ تلگرامی
   می‌دهد، نه یک سایت واقعی. از این عرض به بالا، بوم را پهن‌تر
   می‌کنیم و فرم‌های ورود/ثبت‌نام را وسط یک ستون خوانا نگه می‌داریم. */
@media (min-width: 760px) {
  /* عرض متوسط، نه لبه‌به‌لبه — کارت‌ها و آیکون‌ها برای عرض موبایل
     طراحی شده‌اند و اگر تا ۹۰۰ پیکسل کش بیایند، کش‌اومده به‌نظر
     می‌رسند نه سفارشی‌شده برای دسکتاپ. یک ستون متوسط و وسط‌چین،
     حس یک داشبورد واقعی را می‌دهد. */
  body.is-web .app { max-width: 640px; }
  body.is-web .appbar { padding-inline: 28px; }
  /* فقط بالا و کناره‌ها؛ پایین صفحه دست‌نخورده می‌ماند چون صفحاتِ با
     نوار تب پایین (خانه/کمپین‌ها/حساب) به همان فاصلهٔ محاسبه‌شده نیاز
     دارند وگرنه محتوا زیر نوار پایین پنهان می‌شود */
  body.is-web .screen { padding-top: 20px; padding-inline: 28px; }
  /* صفحاتی که نوار تب ندارند (ورود/ثبت‌نام، مراحل ثبت سفارش) آزادند */
  body.is-web .screen.is-full { padding-bottom: 100px; }

  /* فرم‌های مرحله‌ای (ورود سایت، ثبت‌نام) خودشان عرض کمتری می‌خواهند
     وگرنه یک کادر متن به پهنای کل صفحه زشت است */
  body.is-web .ob { max-width: 420px; margin-inline: auto; padding-top: 56px; }
  body.is-web .stickybar { max-width: 420px; }

  /* نوار تب پایین هم با همان عرض تازهٔ صفحه هماهنگ شود */
  body.is-web .tabbar { max-width: 640px; }

  /* لوگوی برند بالای صفحه فقط برای مینی‌اپ تلگرام است؛ تو سایت
     مستقل نیازی نیست چون خودِ صفحه با آدرس likaads.com شناخته
     می‌شود و آیکون کوچک وسط صفحهٔ عریض بی‌ربط به‌نظر می‌رسد */
  body.is-web .brandmark__logo { display: none; }
}

/* ---------- ۲۵) پوستر تبلیغ ---------- */
.poster { display: block; width: 100%; }

.poster--empty {
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 22px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  aspect-ratio: 16 / 9; justify-content: center;
  transition: border-color .15s ease;
}
.poster--empty:active { border-color: var(--brand); }
.poster__ico {
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 4px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.poster__t { font-size: 13.5px; font-weight: 700; color: var(--text); }
.poster__d { font-size: 11.5px; color: var(--text-dim); }

.poster__img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-sm); display: block;
  border: 1px solid var(--border);
}

/* پوستر داخل پیش‌نمایش تلگرام — بالای متن، مثل خود تلگرام */
.tgad__poster {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 8px; display: block; margin: 6px 0 8px;
}

/* ---------- ۲۶) کارت بانکی و رسید ---------- */
.bankcard {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 16px 16px 14px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 14px 34px var(--brand-glow);
}
.bankcard::after {
  content: ""; position: absolute; inset: auto -50px -80px auto;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.bankcard > * { position: relative; z-index: 2; }

.bankcard__top { display: flex; align-items: center; justify-content: space-between; }
.bankcard__bank { font-size: 12.5px; font-weight: 700; opacity: .95; }
.bankcard__chip {
  width: 30px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #f5d78a, #d8a94b);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.bankcard__num {
  width: 100%; margin: 16px 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff; text-align: start;
}
.bankcard__digits {
  font-size: 19px; font-weight: 700; letter-spacing: 1.6px;
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* شبا ۲۶ کاراکتر است و در یک خط جا نمی‌شود؛ کوچک‌تر و دو خطی */
.bankcard__digits--long {
  font-size: 14.5px; letter-spacing: .6px;
  white-space: normal; line-height: 1.55;
}

.bankcard__copy {
  width: 32px; height: 32px; flex: 0 0 auto;
  border-radius: 10px; background: rgba(255, 255, 255, .18);
  display: grid; place-items: center;
}
.bankcard__num:active .bankcard__copy { background: rgba(255, 255, 255, .34); }

.bankcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bankcard__cell { min-width: 0; text-align: start; color: #fff; }
.bankcard__cell--btn { display: block; }
.bankcard__cap {
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; opacity: .8; margin-bottom: 2px;
}
.bankcard__val {
  font-size: 13.5px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* کادر انتخاب رسید — کوتاه‌تر از کادر پوستر، چون نسبت مهم نیست */
.poster--slim { aspect-ratio: auto; padding: 18px 14px; }

.receipt-done {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  background: var(--success-soft); color: var(--success);
  font-size: 12px; font-weight: 600; line-height: 1.7;
}
