/*
  استایل پنل کاربری Legalex.
  همه‌چیز زیر #nbm-panel-root قفل شده تا با تم و المنتور تداخل نکند
  (همان الگوی #nbm-app در فایل لندینگ).

  فونت‌ها: Peyda برای تیترها و IRANSansFaNum برای متن‌ها، از روی
  uploads خود سایت سرو می‌شوند (نه گوگل‌فونت) — یعنی بدون وابستگی به
  سرویس بیرونی و بدون کندی/فیلترینگ احتمالی.

  نکته: مسیرها **نسبی** نوشته شده‌اند (../../../../uploads/...) نه با
  دامنه‌ی کامل. علتش این است که آدرس مطلق با https://legallex.ir اگر
  دامنه عوض شود یا سایت روی محیط تست/استیجینگ بالا بیاید می‌شکند؛
  مسیر نسبی از پوشه‌ی همین فایل CSS محاسبه می‌شود:
  wp-content/plugins/nbm-core/assets/css/  →  wp-content/uploads/
*/

/*
  فایل موجود فقط وزن Bold است. بازه‌ی 700-900 اعلام شده چون تیترها در این
  فایل با font-weight:900 نوشته شده‌اند؛ اگر فقط `bold` (=۷۰۰) اعلام شود،
  مرورگر برای درخواست ۹۰۰ روی فونتِ از قبل ضخیم دوباره ضخیم‌سازی مصنوعی
  اعمال می‌کند و حروف فارسی توپُر و بدشکل می‌شوند.
*/
@font-face {
  font-family: 'NBMPeyda';
  src: url('../../../../uploads/2024/05/PeydaWeb-Bold.woff') format('woff');
  font-weight: 700 900;
  font-style: normal;
  /* swap: متن بلافاصله با فونت جایگزین دیده می‌شود و بعد از لود، فونت
     اصلی می‌نشیند — به‌جای اینکه کاربر چند صدم‌ثانیه متن نامرئی ببیند. */
  font-display: swap;
}

/*
  فقط یک وزن (رگولار) از این فونت داریم. عمداً `normal` اعلام شده و نه
  بازه‌ی 300-700: اگر بازه اعلام شود، مرورگر تگ‌های <b> با وزن ۷۰۰ را هم
  «مطابقت یافته» می‌داند و همان فایل رگولار را می‌کشد — یعنی متن پررنگ
  اصلاً پررنگ دیده نمی‌شود. با `normal`، مرورگر برای وزن ۷۰۰ فونت را
  خودش ضخیم‌سازی (synthetic bold) می‌کند و تاکید متن حفظ می‌شود.
*/
@font-face {
  font-family: 'NBMIranSans';
  src: url('../../../../uploads/2024/05/IRANSansWebFaNum.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

#nbm-panel-root {
  --nbm-green: #C6A15B;
  --nbm-deep: #073D2D;
  --nbm-yellow: #D9BD86;
  --nbm-grad: linear-gradient(90deg, #D9BD86 0%, #C6A15B 100%);
  --nbm-ink: #252525;
  --nbm-muted: #6B6357;
  --nbm-line: #E5E0D6;
  --nbm-soft: #F1ECE0;
  --nbm-danger: #C4382E;
  --nbm-warn: #B08900;
  --nbm-s: 0 2px 8px rgba(37, 37, 37, .05);
  --nbm-m: 0 10px 30px rgba(37, 37, 37, .08);
  --nbm-l: 0 24px 60px rgba(37, 37, 37, .14);
  --nbm-r: 18px;
  --nbm-head: 'NBMPeyda', 'NBMIranSans', Tahoma, sans-serif;
  --nbm-body: 'NBMIranSans', Tahoma, sans-serif;

  direction: rtl;
  text-align: right;
  font-family: var(--nbm-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--nbm-ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- ریست موضعی ---------- */
#nbm-panel-root *,
#nbm-panel-root *::before,
#nbm-panel-root *::after { box-sizing: border-box; }

#nbm-panel-root h3,
#nbm-panel-root h4 {
  font-family: var(--nbm-head);
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  color: var(--nbm-ink);
}

#nbm-panel-root p { margin: 0; padding: 0; }
#nbm-panel-root ul { margin: 0; padding: 0; list-style: none; }

#nbm-panel-root button {
  margin: 0;
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-align: inherit;
  text-transform: none;
  letter-spacing: 0;
  min-height: 0;
  width: auto;
}
#nbm-panel-root button:hover,
#nbm-panel-root button:focus,
#nbm-panel-root button:active {
  text-decoration: none;
  filter: none;
  opacity: 1;
}

#nbm-panel-root input {
  font: inherit;
  color: var(--nbm-ink);
  background: #fff;
  margin: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  min-height: 0;
}

#nbm-panel-root a { color: var(--nbm-deep); text-decoration: none; }

#nbm-panel-root button:focus-visible,
#nbm-panel-root input:focus-visible,
#nbm-panel-root a:focus-visible {
  outline: 3px solid var(--nbm-green) !important;
  outline-offset: 2px;
  border-radius: 8px;
}

#nbm-panel-root svg { display: inline-block; vertical-align: middle; }

/* ---------- قالب کلی ---------- */
.nbm-p-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}
.nbm-p-shell--narrow { max-width: 460px; padding-top: 32px; }

.nbm-p-card {
  background: #fff;
  border: 1px solid var(--nbm-line);
  border-radius: 24px;
  box-shadow: var(--nbm-m);
  padding: 32px 28px;
}

.nbm-p-title { font-size: 21px; margin-bottom: 8px; }
.nbm-p-sub {
  font-size: 13.5px;
  color: var(--nbm-muted);
  margin-bottom: 22px !important;
}
.nbm-p-sub b { color: var(--nbm-ink); font-weight: 400; }

/* ---------- ورود ---------- */
.nbm-p-auth { position: relative; overflow: hidden; }
.nbm-p-auth::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 5px;
  background: var(--nbm-grad);
}

.nbm-p-auth-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--nbm-grad);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(198, 161, 91, .22);
}
.nbm-p-auth-badge svg {
  width: 27px;
  height: 27px;
  stroke: #08281F;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nbm-p-step { animation: nbmPFade .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes nbmPFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.nbm-p-back {
  font-size: 13px;
  color: var(--nbm-muted);
  padding: 0 0 12px;
  transition: color .2s;
}
.nbm-p-back:hover { color: var(--nbm-deep); }

/* ---------- فیلدها ---------- */
.nbm-p-field { margin-bottom: 16px; }
.nbm-p-field label {
  display: block;
  font-size: 13.5px;
  margin-bottom: 7px;
  color: var(--nbm-ink);
}
.nbm-p-field input,
.nbm-p-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--nbm-line);
  border-radius: 14px;
  font-size: 15.5px;
  transition: border-color .25s, box-shadow .25s;
}
.nbm-p-field input[dir=ltr] { text-align: left; letter-spacing: 1px; }
.nbm-p-field input:focus,
.nbm-p-field select:focus {
  outline: none;
  border-color: var(--nbm-green);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, .1);
}
.nbm-p-field input[type=file] {
  padding: 11px 14px;
  background: var(--nbm-soft);
  font-size: 13px;
  letter-spacing: 0;
}
.nbm-p-field.nbm-p-bad input { border-color: var(--nbm-danger); }

.nbm-p-err {
  color: var(--nbm-danger);
  font-size: 12.5px;
  margin-top: 8px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.nbm-p-err::before { content: "!"; font-weight: 900; }

/* ---------- کد یکبار مصرف ---------- */
.nbm-p-otp {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 6px;
}
.nbm-p-otp-box {
  width: 56px;
  height: 62px;
  text-align: center;
  font-family: var(--nbm-head);
  font-size: 26px;
  border: 1.5px solid var(--nbm-line);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.nbm-p-otp-box:focus {
  outline: none;
  border-color: var(--nbm-green);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, .12);
  transform: translateY(-2px);
}
.nbm-p-otp-box.nbm-p-filled {
  border-color: var(--nbm-green);
  background: rgba(198, 161, 91, .05);
}
.nbm-p-otp.nbm-p-shake { animation: nbmPShake .4s; }
@keyframes nbmPShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

/* ---------- دکمه‌ها ---------- */
.nbm-p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--nbm-head);
  font-size: 15px;
  transition: transform .22s, box-shadow .22s, opacity .22s, background-position .6s ease;
}
.nbm-p-btn--main {
  position: relative;
  overflow: hidden;
  background: var(--nbm-grad);
  background-size: 220% 100%;
  background-position: 0 0;
  color: #08281F;
  box-shadow: 0 8px 22px rgba(198, 161, 91, .25);
  margin-top: 6px;
}
.nbm-p-btn--main:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(198, 161, 91, .32);
}
.nbm-p-btn--main:active { transform: scale(.98); }
.nbm-p-btn--ghost {
  border: 1.5px solid var(--nbm-line);
  color: var(--nbm-muted);
  margin-top: 10px;
  box-shadow: none;
}
.nbm-p-btn--ghost:hover { border-color: var(--nbm-ink); color: var(--nbm-ink); }
.nbm-p-btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.nbm-p-btn--sm { width: auto; padding: 9px 16px; font-size: 13px; }

.nbm-p-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(8, 40, 31, .25);
  border-top-color: #08281F;
  border-radius: 50%;
  animation: nbmPSpin .7s linear infinite;
}
@keyframes nbmPSpin { to { transform: rotate(360deg); } }

.nbm-p-note {
  font-size: 12px;
  color: var(--nbm-muted);
  margin-top: 18px !important;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  line-height: 1.8;
}
.nbm-p-note svg {
  width: 14px;
  height: 14px;
  stroke: var(--nbm-green);
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
  margin-top: 5px;
}

/* ---------- نوار بالا: بازگشت به سایت / خروج ---------- */
.nbm-p-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.nbm-p-topbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--nbm-deep);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--nbm-line);
  background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.nbm-p-topbtn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nbm-p-topbtn:hover {
  border-color: var(--nbm-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 161, 91, .12);
}
.nbm-p-topbtn--quiet { color: var(--nbm-muted); }
.nbm-p-topbtn--quiet:hover { color: var(--nbm-ink); border-color: var(--nbm-ink); box-shadow: none; }

/* ---------- هشدار «منتظر اقدام توست» ---------- */
.nbm-p-alert {
  background: linear-gradient(90deg, rgba(198, 161, 91, .35), rgba(198, 161, 91, .12));
  border: 1px solid rgba(176, 137, 0, .35);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.nbm-p-alert b { color: #7A5F00; }

/* ---------- دکمه‌ی ثبت پروژه جدید ---------- */
.nbm-p-newbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 15px;
  border-radius: 16px;
  border: 1.5px dashed var(--nbm-line);
  background: #fff;
  color: var(--nbm-deep);
  font-family: var(--nbm-head);
  font-size: 14.5px;
  transition: border-color .25s, background .25s, transform .2s;
}
.nbm-p-newbtn:hover {
  border-color: var(--nbm-green);
  background: var(--nbm-soft);
  transform: translateY(-2px);
}
.nbm-p-newbtn-plus {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--nbm-grad);
  color: #08281F;
  font-size: 17px;
  line-height: 1;
}

/* کارتی که منتظر اقدام کاربر است، برجسته‌تر دیده شود */
.nbm-p-req--action {
  border-color: rgba(176, 137, 0, .45);
  box-shadow: 0 4px 16px rgba(176, 137, 0, .12);
}

/* ---------- سوال‌های پرتکرار ---------- */
.nbm-p-faq {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--nbm-line);
  border-radius: var(--nbm-r);
  overflow: hidden;
}
.nbm-p-faq summary {
  cursor: pointer;
  padding: 15px 18px;
  font-family: var(--nbm-head);
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nbm-p-faq summary::-webkit-details-marker { display: none; }
.nbm-p-faq summary::after {
  content: "+";
  font-size: 19px;
  color: var(--nbm-green);
  line-height: 1;
}
.nbm-p-faq[open] summary::after { content: "−"; }
.nbm-p-faq-body {
  padding: 0 18px 18px;
  font-size: 13px;
  color: var(--nbm-muted);
  line-height: 2;
}
.nbm-p-faq-body p { margin-bottom: 14px !important; }
.nbm-p-faq-body p:last-child { margin-bottom: 0 !important; }
.nbm-p-faq-body b { color: var(--nbm-ink); }

/* ---------- بخش پشتیبانی ---------- */
.nbm-p-support {
  margin-top: 16px;
  background: var(--nbm-soft);
  border: 1px solid var(--nbm-line);
  border-radius: var(--nbm-r);
  padding: 18px;
  text-align: center;
}
.nbm-p-support-title { font-family: var(--nbm-head); font-size: 15px; margin-bottom: 4px; }
.nbm-p-support-hours { font-size: 12.5px; color: var(--nbm-muted); margin-bottom: 14px; }
.nbm-p-support-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.nbm-p-support-actions .nbm-p-btn {
  width: auto;
  flex: 1 1 190px;
  margin: 0;
  background: #fff;
  gap: 6px;
}
.nbm-p-support-actions b { direction: ltr; font-family: var(--nbm-head); }

/* ---------- هدر پنل ---------- */
.nbm-p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--nbm-line);
  border-radius: var(--nbm-r);
  box-shadow: var(--nbm-s);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.nbm-p-head-id { display: flex; align-items: center; gap: 12px; }
.nbm-p-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--nbm-grad);
  display: grid;
  place-items: center;
  font-family: var(--nbm-head);
  font-size: 16px;
  color: #08281F;
  flex: 0 0 auto;
}
.nbm-p-head-title { font-family: var(--nbm-head); font-size: 15.5px; }
.nbm-p-head-phone { font-size: 12.5px; color: var(--nbm-muted); }
.nbm-p-logout {
  font-size: 13px;
  color: var(--nbm-muted);
  border: 1px solid var(--nbm-line);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background .2s, color .2s, border-color .2s;
}
.nbm-p-logout:hover { background: var(--nbm-ink); color: #fff; border-color: var(--nbm-ink); }

/* ---------- اسکلتون بارگذاری ---------- */
.nbm-p-skeleton {
  height: 84px;
  border-radius: 16px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--nbm-soft) 25%, #fff 50%, var(--nbm-soft) 75%);
  background-size: 200% 100%;
  animation: nbmPShimmer 1.3s ease-in-out infinite;
}
@keyframes nbmPShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- لیست درخواست‌ها ---------- */
.nbm-p-secline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 14px;
}
.nbm-p-secline h4 { font-size: 17px; }
.nbm-p-secline span { font-size: 12.5px; color: var(--nbm-muted); }

.nbm-p-list { display: flex; flex-direction: column; gap: 12px; }

.nbm-p-req {
  position: relative;
  display: block;
  width: 100%;
  text-align: right;
  background: #fff;
  border: 1px solid var(--nbm-line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--nbm-s);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.nbm-p-req:hover {
  transform: translateY(-3px);
  box-shadow: var(--nbm-m);
  border-color: rgba(198, 161, 91, .35);
}
.nbm-p-req-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.nbm-p-req-title { font-family: var(--nbm-head); font-size: 15.5px; flex: 1; min-width: 0; }
.nbm-p-req-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--nbm-muted);
}
.nbm-p-req-meta b { color: var(--nbm-ink); font-weight: 400; }
.nbm-p-req-cta {
  font-size: 12.5px;
  color: var(--nbm-deep);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--nbm-line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.nbm-p-chip {
  font-size: 11.5px;
  font-family: var(--nbm-head);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}
/* رنگ چیپ برای هر وضعیت */
.nbm-p-chip--neutral { background: var(--nbm-soft); color: var(--nbm-muted); }
.nbm-p-chip--info { background: rgba(7, 61, 45, .1); color: var(--nbm-deep); }
.nbm-p-chip--warn { background: rgba(176, 137, 0, .13); color: #7A5F00; }
.nbm-p-chip--ok { background: rgba(198, 161, 91, .13); color: var(--nbm-deep); }
.nbm-p-chip--bad { background: rgba(196, 56, 46, .1); color: var(--nbm-danger); }

/* ---------- حالت خالی ---------- */
.nbm-p-empty {
  text-align: center;
  background: #fff;
  border: 1px dashed var(--nbm-line);
  border-radius: var(--nbm-r);
  padding: 44px 24px;
}
.nbm-p-empty-ico {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--nbm-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.nbm-p-empty-ico svg {
  width: 27px;
  height: 27px;
  stroke: var(--nbm-green);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nbm-p-empty h4 { font-size: 17px; margin-bottom: 8px; }
.nbm-p-empty p { font-size: 13.5px; color: var(--nbm-muted); }

/* ---------- جزئیات ---------- */
.nbm-p-detail {
  background: #fff;
  border: 1px solid var(--nbm-line);
  border-radius: var(--nbm-r);
  box-shadow: var(--nbm-s);
  padding: 24px 22px;
}
.nbm-p-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nbm-line);
  margin-bottom: 18px;
}
.nbm-p-detail-head h4 { font-size: 18px; flex: 1; min-width: 0; }

/* نوار وضعیت (تایم‌لاین) */
.nbm-p-timeline {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
}
.nbm-p-tl-step { flex: 1; text-align: center; }
.nbm-p-tl-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--nbm-line);
  margin-bottom: 7px;
  transition: background .4s;
}
.nbm-p-tl-step.nbm-p-tl-done .nbm-p-tl-bar { background: var(--nbm-grad); }
.nbm-p-tl-step.nbm-p-tl-bad .nbm-p-tl-bar { background: var(--nbm-danger); }
.nbm-p-tl-lbl { font-size: 10.5px; color: var(--nbm-muted); line-height: 1.5; }
.nbm-p-tl-step.nbm-p-tl-done .nbm-p-tl-lbl { color: var(--nbm-deep); }

.nbm-p-rows {
  border: 1px solid var(--nbm-line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}
.nbm-p-row {
  display: flex;
  gap: 12px;
  padding: 11px 15px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--nbm-line);
}
.nbm-p-row:last-child { border-bottom: 0; }
.nbm-p-row:nth-child(odd) { background: var(--nbm-soft); }
.nbm-p-row b {
  font-weight: 400;
  color: var(--nbm-muted);
  min-width: 40%;
  font-size: 13px;
}

/* کادر مبلغ */
.nbm-p-price {
  background: linear-gradient(155deg, rgba(198, 161, 91, .22) 0%, rgba(255, 255, 255, .9) 55%, rgba(198, 161, 91, .1) 100%);
  border: 1px solid rgba(198, 161, 91, .3);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}
.nbm-p-price-lbl { font-size: 12.5px; color: var(--nbm-muted); }
.nbm-p-price-val { font-family: var(--nbm-head); font-size: 25px; }
.nbm-p-price-note {
  font-size: 13px;
  color: #3C5B51;
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed rgba(198, 161, 91, .25);
}
.nbm-p-price-exp { font-size: 12px; color: var(--nbm-warn); margin-top: 8px !important; }

/* کارت مقصد */
.nbm-p-cardbox {
  background: var(--nbm-soft);
  border: 1px solid var(--nbm-line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}
.nbm-p-cardnum {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 8px;
}
.nbm-p-cardnum span {
  font-family: var(--nbm-head);
  font-size: 19px;
  letter-spacing: 2px;
  direction: ltr;
}

/* ---------- جواب‌های پرسشنامه ---------- */
.nbm-p-answers {
  border: 1px solid var(--nbm-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--nbm-soft);
}
.nbm-p-answers summary {
  cursor: pointer;
  font-size: 13.5px;
  color: var(--nbm-deep);
  font-family: var(--nbm-head);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nbm-p-answers summary::-webkit-details-marker { display: none; }
.nbm-p-answers summary::before {
  content: "▸";
  transition: transform .2s;
  display: inline-block;
}
.nbm-p-answers[open] summary::before { transform: rotate(-90deg); }
.nbm-p-answers .nbm-p-rows { background: #fff; }

/* ---------- تحویل پروژه ---------- */
.nbm-p-delivery {
  background: linear-gradient(155deg, rgba(198, 161, 91, .08) 0%, rgba(255, 255, 255, .9) 60%);
  border: 1px solid rgba(198, 161, 91, .3);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}
.nbm-p-delivery-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.nbm-p-delivery-head h4 { font-size: 16px; }
.nbm-p-delivery-head svg {
  width: 20px;
  height: 20px;
  stroke: var(--nbm-deep);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.nbm-p-delivery-note {
  font-size: 13.5px;
  color: #3C5B51;
  line-height: 1.9;
  margin-bottom: 14px !important;
}

.nbm-p-files { display: flex; flex-direction: column; gap: 8px; }
.nbm-p-files a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--nbm-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.nbm-p-files a::before {
  content: "⤓";
  font-size: 17px;
  color: var(--nbm-green);
  flex: 0 0 auto;
}
.nbm-p-files a:hover {
  border-color: var(--nbm-green);
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(198, 161, 91, .12);
}
.nbm-p-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}
.nbm-p-file-size { font-size: 11.5px; color: var(--nbm-muted); flex: 0 0 auto; }

/* فرم اعلام واریز */
.nbm-p-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--nbm-line);
}
.nbm-p-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nbm-p-form-grid .nbm-p-field--full { grid-column: 1 / -1; }

/* پیام موفقیت */
.nbm-p-done {
  text-align: center;
  background: #fff;
  border: 1px solid rgba(198, 161, 91, .3);
  border-radius: var(--nbm-r);
  padding: 40px 24px;
}
.nbm-p-done-ico {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--nbm-grad);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.nbm-p-done-ico svg {
  width: 30px;
  height: 30px;
  stroke: #08281F;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nbm-p-done h4 { font-size: 18px; margin-bottom: 8px; }
.nbm-p-done p { font-size: 13.5px; color: var(--nbm-muted); margin-bottom: 18px !important; }

/* ---------- موبایل ---------- */
@media (max-width: 600px) {
  .nbm-p-shell { padding: 4px 12px 32px; }
  .nbm-p-shell--narrow { padding-top: 16px; }
  .nbm-p-card { padding: 26px 20px; border-radius: 20px; }
  .nbm-p-detail { padding: 20px 16px; }
  .nbm-p-form-grid { grid-template-columns: 1fr; }
  .nbm-p-otp { gap: 8px; }
  .nbm-p-otp-box { width: 100%; max-width: 62px; height: 58px; font-size: 23px; }
  .nbm-p-tl-lbl { font-size: 9.5px; }

  /* هدر در موبایل عمودی شود تا دکمه‌ی «پروژه جدید» تمام‌عرض و قابل‌لمس باشد */
  .nbm-p-head {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nbm-p-head .nbm-p-btn { width: 100%; }

  .nbm-p-topbar { margin-bottom: 10px; }
  .nbm-p-topbtn { flex: 1; justify-content: center; }
  .nbm-p-support-actions .nbm-p-btn { flex: 1 1 100%; }
  .nbm-p-req-meta { gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #nbm-panel-root *,
  #nbm-panel-root *::before,
  #nbm-panel-root *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
