/* W38 — لینک‌های کمپین + گزارش شفافیت (پنل عضو) */

html body[class][class][class] .cmp38,
html body[class][class][class] .trp38 {
  direction: rtl; text-align: right;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  margin: 0 0 22px; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(224, 184, 98, .26);
  background: linear-gradient(158deg, rgba(18, 34, 52, .94), rgba(7, 14, 22, .97));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(247, 228, 168, .09);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
html body[class][class][class] .cmp38.cmp38-in,
html body[class][class][class] .trp38.cmp38-in { opacity: 1; transform: none; }

html body[class][class][class] .trp38 {
  background: linear-gradient(158deg, rgba(32, 26, 54, .94), rgba(10, 8, 20, .97));
}

html body[class][class][class] .cmp38-hd {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 17px 20px 13px; border-bottom: 1px solid rgba(224, 184, 98, .17);
  background: linear-gradient(90deg, rgba(224, 184, 98, .09), rgba(224, 184, 98, 0) 72%);
}
html body[class][class][class] .cmp38-h {
  margin: 0; font-size: 18px; font-weight: 800; color: #f6f9ff;
  -webkit-text-fill-color: #f6f9ff; letter-spacing: -.2px;
}
html body[class][class][class] .cmp38-kick { margin: 0; font-size: 12.5px; color: #9fb0c4; font-weight: 600; }
html body[class][class][class] .cmp38-hdtx { display: flex; flex-direction: column; gap: 3px; }
html body[class][class][class] .cmp38-sum {
  margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap;
}
html body[class][class][class] .cmp38-chip {
  font-size: 12px; font-weight: 700; color: #f7e4a8; -webkit-text-fill-color: #f7e4a8;
  border: 1px solid rgba(224, 184, 98, .3); border-radius: 999px; padding: 5px 12px;
  background: rgba(224, 184, 98, .08);
}

html body[class][class][class] .cmp38-body { padding: 15px 17px 18px; }

/* فرم ساخت لینک */
html body[class][class][class] .cmp38-form {
  display: flex; gap: 9px; flex-wrap: wrap; align-items: stretch;
  padding-bottom: 14px; margin-bottom: 13px;
  border-bottom: 1px dashed rgba(224, 184, 98, .2);
}
html body[class][class][class] .cmp38-in,
html body[class][class][class] .cmp38-sel {
  flex: 1 1 150px; min-height: 44px; padding: 0 13px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: #f1f5f9; -webkit-text-fill-color: #f1f5f9;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(224, 184, 98, .26); border-radius: 12px;
  outline: none; transition: border-color .18s ease, background .18s ease;
}
html body[class][class][class] .cmp38-sel { flex: 0 1 148px; }
html body[class][class][class] .cmp38-sel option { background: #111c2b; color: #f1f5f9; }
html body[class][class][class] .cmp38-in::placeholder { color: #7e8ea3; }
html body[class][class][class] .cmp38-in:focus,
html body[class][class][class] .cmp38-sel:focus { border-color: #e0b862; background: rgba(224, 184, 98, .08); }

html body[class][class][class] .cmp38-add {
  flex: 0 0 auto; min-height: 44px; padding: 0 20px; cursor: pointer; border: 0;
  font-family: inherit; font-size: 13.5px; font-weight: 800; border-radius: 12px;
  color: #0a0f18; -webkit-text-fill-color: #0a0f18;
  background: linear-gradient(135deg, #f7e4a8, #e0b862);
  -webkit-background-clip: border-box; background-clip: border-box; text-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
html body[class][class][class] .cmp38-add:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224, 184, 98, .3); }
html body[class][class][class] .cmp38-add[disabled] { opacity: .55; transform: none; cursor: default; }

html body[class][class][class] .cmp38-msg { font-size: 12.5px; color: #9fb0c4; margin: 0 0 10px; }

/* فهرست لینک‌ها */
html body[class][class][class] .cmp38-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
html body[class][class][class] .cmp38-li {
  border: 1px solid rgba(224, 184, 98, .18); border-radius: 15px;
  padding: 12px 14px; background: rgba(255, 255, 255, .035);
  display: grid; gap: 9px;
}
html body[class][class][class] .cmp38-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
html body[class][class][class] .cmp38-lb { font-size: 14.5px; font-weight: 800; color: #f6f9ff; -webkit-text-fill-color: #f6f9ff; }
html body[class][class][class] .cmp38-ch {
  font-size: 11.5px; font-weight: 700; color: #6fe0cf; -webkit-text-fill-color: #6fe0cf;
  background: rgba(111, 224, 207, .12); border-radius: 999px; padding: 3px 10px;
}
html body[class][class][class] .cmp38-url {
  font-size: 12px; color: #8fa3bb; direction: ltr; text-align: left;
  background: rgba(0, 0, 0, .3); border-radius: 10px; padding: 8px 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html body[class][class][class] .cmp38-stats { display: flex; gap: 16px; flex-wrap: wrap; }
html body[class][class][class] .cmp38-st { display: flex; flex-direction: column; gap: 1px; }
html body[class][class][class] .cmp38-stn { font-size: 16px; font-weight: 800; color: #f7e4a8; -webkit-text-fill-color: #f7e4a8; }
html body[class][class][class] .cmp38-stl { font-size: 11.5px; color: #8fa3bb; font-weight: 600; }
html body[class][class][class] .cmp38-acts { margin-inline-start: auto; display: flex; gap: 7px; align-items: center; }
html body[class][class][class] .cmp38-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 38px; min-width: 44px; padding: 0 13px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none;
  border-radius: 10px; border: 1px solid rgba(224, 184, 98, .32);
  color: #f7e4a8; -webkit-text-fill-color: #f7e4a8; background: rgba(224, 184, 98, .08);
  transition: background .18s ease, transform .18s ease;
}
html body[class][class][class] .cmp38-btn:hover { background: rgba(224, 184, 98, .18); transform: translateY(-1px); }
html body[class][class][class] .cmp38-btn.cmp38-x { color: #ffb4b4; -webkit-text-fill-color: #ffb4b4; border-color: rgba(255, 180, 180, .3); }
html body[class][class][class] .cmp38-empty { font-size: 13.5px; color: #9fb0c4; line-height: 2; margin: 0; }

/* گزارش شفافیت */
html body[class][class][class] .trp38-grid { display: grid; gap: 14px; }
html body[class][class][class] .trp38-lead {
  font-size: 17px; font-weight: 800; color: #f6f9ff; -webkit-text-fill-color: #f6f9ff;
  margin: 0; line-height: 1.9;
}
html body[class][class][class] .trp38-lead b { color: #ffd98a; -webkit-text-fill-color: #ffd98a; font-size: 22px; }
html body[class][class][class] .trp38-bar { display: grid; gap: 7px; }
html body[class][class][class] .trp38-brow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #c7d2e0; }
html body[class][class][class] .trp38-bname { flex: 0 0 86px; font-weight: 700; }
html body[class][class][class] .trp38-btrack {
  flex: 1 1 auto; height: 13px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .07);
}
html body[class][class][class] .trp38-bfill {
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, #f7e4a8, #e0b862);
  transition: width .9s cubic-bezier(.22, .8, .25, 1);
}
html body[class][class][class] .trp38-bfill.trp38-t { background: linear-gradient(90deg, #8fb3ff, #b39bfb); }
html body[class][class][class] .trp38-bval { flex: 0 0 54px; font-weight: 800; color: #f6f9ff; -webkit-text-fill-color: #f6f9ff; }
html body[class][class][class] .trp38-note { margin: 0; font-size: 12.5px; color: #9fb0c4; line-height: 2; }
html body[class][class][class] .trp38-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
html body[class][class][class] .trp38-kpi {
  flex: 1 1 110px; border: 1px solid rgba(179, 155, 251, .22); border-radius: 14px;
  padding: 11px 13px; background: rgba(255, 255, 255, .035);
}
html body[class][class][class] .trp38-kn { font-size: 19px; font-weight: 800; color: #e7dcff; -webkit-text-fill-color: #e7dcff; }
html body[class][class][class] .trp38-kl { font-size: 11.5px; color: #9fb0c4; font-weight: 600; }

@media (max-width: 900px) {
  html body[class][class][class] .cmp38,
  html body[class][class][class] .trp38 { border-radius: 18px; }
  html body[class][class][class] .cmp38-hd { padding: 14px 15px 11px; }
  html body[class][class][class] .cmp38-h { font-size: 16.5px; }
  html body[class][class][class] .cmp38-body { padding: 13px 13px 15px; }
  html body[class][class][class] .cmp38-sum { margin-inline-start: 0; width: 100%; }
  html body[class][class][class] .cmp38-in,
  html body[class][class][class] .cmp38-sel { flex: 1 1 100%; }
  html body[class][class][class] .cmp38-add { flex: 1 1 100%; min-height: 46px; }
  html body[class][class][class] .cmp38-acts { margin-inline-start: 0; width: 100%; }
  html body[class][class][class] .cmp38-btn { flex: 1 1 0; min-height: 44px; }
  html body[class][class][class] .trp38-bname { flex: 0 0 68px; font-size: 11.5px; }
}

/* ── W38 v2: پربازده‌ترین، نمودار کانال‌ها، QR، اسپارک‌لاین ── */
html body[class][class][class] .cmp38-li.cmp38-best {
  border-color: rgba(224, 184, 98, .45);
  background: linear-gradient(160deg, rgba(224, 184, 98, .11), rgba(255, 255, 255, .03));
}
html body[class][class][class] .cmp38-star {
  font-size: 11px; font-weight: 800; color: #0a0f18; -webkit-text-fill-color: #0a0f18;
  background: linear-gradient(135deg, #f7e4a8, #e0b862); border-radius: 999px; padding: 3px 10px;
}
html body[class][class][class] .cmp38-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
html body[class][class][class] .cmp38-stn.cmp38-sm { font-size: 12.5px; color: #cbd6e4; -webkit-text-fill-color: #cbd6e4; }

html body[class][class][class] .cmp38-chart {
  margin-top: 15px; padding-top: 13px; border-top: 1px dashed rgba(224, 184, 98, .2);
  display: grid; gap: 7px;
}
html body[class][class][class] .cmp38-ct {
  margin: 0 0 3px; font-size: 13px; font-weight: 800; color: #f6f9ff; -webkit-text-fill-color: #f6f9ff;
}
html body[class][class][class] .cmp38-crow { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #c7d2e0; }
html body[class][class][class] .cmp38-cname { flex: 0 0 86px; font-weight: 700; }
html body[class][class][class] .cmp38-ctrack {
  position: relative; flex: 1 1 auto; height: 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); overflow: hidden;
}
html body[class][class][class] .cmp38-cfill,
html body[class][class][class] .cmp38-cord {
  position: absolute; inset-inline-start: 0; top: 0; height: 100%; border-radius: 999px;
  transition: width .8s cubic-bezier(.22, .8, .25, 1);
}
html body[class][class][class] .cmp38-cfill { background: linear-gradient(90deg, #f7e4a8, #e0b862); opacity: .55; }
html body[class][class][class] .cmp38-cord { background: linear-gradient(90deg, #6fe0cf, #3fb0c8); }
html body[class][class][class] .cmp38-cval { flex: 0 0 72px; font-weight: 700; color: #e8eef6; -webkit-text-fill-color: #e8eef6; text-align: left; direction: ltr; }
html body[class][class][class] .cmp38-cleg { margin: 2px 0 0; font-size: 11.5px; color: #8fa3bb; }

/* مودال QR */
html body[class][class][class] .cmp38-modal {
  position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center;
  background: rgba(3, 7, 13, .78); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease; padding: 18px;
}
html body[class][class][class] .cmp38-modal.cmp38-in { opacity: 1; }
html body[class][class][class] .cmp38-mbox {
  position: relative; width: min(340px, 92vw); text-align: center;
  background: linear-gradient(158deg, rgba(20, 38, 56, .98), rgba(8, 15, 24, .99));
  border: 1px solid rgba(224, 184, 98, .3); border-radius: 22px; padding: 22px 20px 20px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
  transform: translateY(12px) scale(.98); transition: transform .26s cubic-bezier(.22, .8, .25, 1);
}
html body[class][class][class] .cmp38-modal.cmp38-in .cmp38-mbox { transform: none; }
html body[class][class][class] .cmp38-mx {
  position: absolute; inset-inline-end: 12px; top: 12px; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: pointer; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #e8eef6;
}
html body[class][class][class] .cmp38-mx svg { width: 16px; height: 16px; }
html body[class][class][class] .cmp38-mt { margin: 0 0 13px; font-size: 15px; font-weight: 800; color: #f6f9ff; -webkit-text-fill-color: #f6f9ff; }
html body[class][class][class] .cmp38-qrimg {
  width: 212px; height: 212px; border-radius: 16px; background: #fff; padding: 9px; display: inline-block;
}
html body[class][class][class] .cmp38-mn { margin: 12px 0 14px; font-size: 12.5px; color: #9fb0c4; line-height: 1.9; }
html body[class][class][class] .cmp38-dl { display: inline-block; text-decoration: none; line-height: 44px; padding: 0 22px; }

/* اسپارک‌لاین روند */
html body[class][class][class] .trp38-spark { display: grid; gap: 5px; }
html body[class][class][class] .trp38-sl { margin: 0; font-size: 12.5px; color: #9fb0c4; font-weight: 600; }
html body[class][class][class] .trp38-spark svg { width: 100%; height: 72px; display: block; overflow: visible; }
html body[class][class][class] .trp38-area { fill: rgba(224, 184, 98, .16); stroke: none; }
html body[class][class][class] .trp38-line { fill: none; stroke: #e0b862; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
html body[class][class][class] .trp38-dots circle { fill: #f7e4a8; stroke: rgba(8, 13, 26, .8); stroke-width: 1.2; }
html body[class][class][class] .trp38-sx { display: flex; justify-content: space-between; font-size: 11px; color: #8fa3bb; direction: ltr; }

@media (max-width: 900px) {
  html body[class][class][class] .cmp38-cname { flex: 0 0 66px; font-size: 11.5px; }
  html body[class][class][class] .cmp38-cval { flex: 0 0 62px; font-size: 11px; }
  html body[class][class][class] .cmp38-qrimg { width: 190px; height: 190px; }
}
