/* =======================================================
سیستم طراحی جدید — فقط برای این صفحه (اسکوپ‌شده)
======================================================= */
:root {
  --np-ink: #123c3d;
  --np-ink-2: #1b5253;
  --np-ink-3: #0b2b2c;
  --np-paper: #f2f6f4;
  --np-card: #ffffff;
  --np-gold: #d9a441;
  --np-gold-soft: #f6e9d2;
  --np-coral: #dd5f52;
  --np-text: #17211f;
  --np-text-muted: #5d6e6c;
  --np-text-faint: #8a9997;
  --np-line: #dee7e3;
  --np-line-strong: #c6d3ce;
  --np-success: #2f8f6b;
  --np-success-soft: #e3f3eb;
  --np-radius-lg: 22px;
  --np-radius-md: 14px;
  --np-radius-sm: 9px;
  --np-shadow-sm:
    0 1px 2px rgba(18, 60, 61, 0.06), 0 1px 1px rgba(18, 60, 61, 0.04);
  --np-shadow-md: 0 10px 30px -12px rgba(18, 60, 61, 0.18);
  --np-shadow-lg: 0 24px 60px -20px rgba(18, 60, 61, 0.28);
}

#np-page,
#np-page * {
  box-sizing: border-box;
}

#np-page {
  background: var(--np-paper);
  color: var(--np-text);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.75;
  padding: 24px 0 40px;
}

#np-page .mono {
  font-family: "JetBrains Mono", "Vazirmatn", monospace;
  font-feature-settings: "tnum" 1;
}

#np-page h1,
#np-page h2,
#np-page h3,
#np-page h4 {
  font-weight: 800;
  color: var(--np-ink-3);
}

#np-page .np-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--np-ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

#np-page .np-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--np-gold);
  display: inline-block;
}

/* ---- بازپوشی کلاس‌های بوت‌استرپ همین صفحه با هویت جدید ---- */
#np-page .card {
  background: var(--np-card);
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius-lg);
  box-shadow: var(--np-shadow-sm);
}

#np-page .card-header {
  background: transparent;
  padding: 18px 24px;
  border-radius: var(--np-radius-lg) var(--np-radius-lg) 0 0 !important;
}

#np-page .card-header.success {
  background: transparent;
}

#np-page .card-body {
  padding: 22px 24px;
}

#np-page .btn {
  border-radius: var(--np-radius-sm);
  font-weight: 700;
  padding: 12px 18px;
  border: none;
}

#np-page .btn-primary {
  background: var(--np-ink) !important;
  color: #fff;
}

#np-page .btn-primary:hover {
  background: var(--np-ink-2);
}

#np-page .btn-outline-primary {
  background: #fff;
  color: var(--np-ink);
  border: 1.5px solid var(--np-line-strong);
}

#np-page .btn-outline-primary:hover {
  border-color: var(--np-ink);
  color: var(--np-ink);
}

#np-page .btn-light {
  background: var(--np-paper);
  color: var(--np-ink-2) !important;
}

#np-page .badge {
  border-radius: 100px;
  font-weight: 700;
}

#np-page .modal-content {
  border-radius: var(--np-radius-lg) !important;
  border: none;
}

#np-page .modal-body .card {
  box-shadow: none;
}

#np-page .form-control {
  border: 1.5px solid var(--np-line-strong);
  border-radius: var(--np-radius-sm);
  padding: 11px 13px;
  background: var(--np-paper);
}

#np-page .form-control:focus {
  border-color: var(--np-ink-2);
  background: #fff;
  box-shadow: none;
}

#np-page .tag {
  display: inline-block;
  background: var(--np-paper);
  border: 1px solid var(--np-line);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--np-ink-2);
  margin: 0 4px 8px 0;
}

/* ---- هیرو ---- */
#np-page .np-hero {
  background: linear-gradient(150deg, var(--np-ink) 0%, var(--np-ink-3) 100%);
  border-radius: var(--np-radius-lg);
  padding: 32px;
  color: #eff6f3;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: visible;
  box-shadow: var(--np-shadow-lg);
  margin-bottom: 22px;
  margin-top: 80px;
}

#np-page .np-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px 260px at 85% -10%,
    rgba(217, 164, 65, 0.16),
    transparent 60%
  );
}

#np-page .np-hero-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--np-shadow-md);
  position: relative;
  z-index: 1;
}

#np-page .np-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#np-page .np-hero-main {
  position: relative;
  z-index: 1;
}

#np-page .np-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

#np-page .np-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 100px;
}

#np-page .np-badge-online {
  background: rgba(47, 143, 107, 0.22);
  color: #7ee0b6;
}

#np-page .np-badge-consult {
  background: rgba(47, 143, 107, 0.22);
  color: #7ee0b6;
}

#np-page .np-hero-name {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

#np-page .np-hero-spec {
  font-size: 14px;
  color: #bfd6d0;
  margin-bottom: 12px;
}

#np-page .np-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: #dceae6;
}

#np-page .np-hero-meta b {
  color: #fff;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-weight: 600;
}

#np-page .np-hero-meta .np-stars {
  color: var(--np-gold);
}

#np-page .np-hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 190px;
}

#np-page .np-btn-gold {
  background: var(--np-gold);
  color: #231404;
  border: none;
  border-radius: var(--np-radius-sm);
  padding: 13px 18px;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#np-page .np-btn-gold:hover {
  background: #e6b256;
  color: #231404;
}

#np-page .np-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--np-radius-sm);
  padding: 13px 18px;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#np-page .np-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ---- نوار آمار ---- */
#np-page .np-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--np-line);
  border-radius: var(--np-radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--np-shadow-sm);
}

#np-page .np-stat {
  background: var(--np-card);
  padding: 16px;
  text-align: center;
}

#np-page .np-stat .n {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--np-ink);
}

#np-page .np-stat .l {
  font-size: 11.5px;
  color: var(--np-text-muted);
  margin-top: 4px;
}

/* ---- چیدمان دو ستونه ---- */
#np-page .np-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 991px) {
  #np-page .np-layout {
    grid-template-columns: 1fr;
  }

  #np-page .np-sidebar {
    display: none;
  }

  #np-page .np-hero-badges {
    display: contents;
  }
}

/* ---- آدرس ---- */
#np-page .np-addr-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

#np-page .np-addr-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--np-success-soft);
  color: var(--np-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- نظرات ---- */
#np-page .np-rating-summary {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--np-line);
}

#np-page .np-rating-big {
  text-align: center;
  flex-shrink: 0;
}

#np-page .np-rating-big .n {
  font-family: "JetBrains Mono", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--np-ink);
  line-height: 1;
}

#np-page .np-rating-big .np-stars {
  color: var(--np-gold);
  margin: 6px 0 4px;
  font-size: 14px;
}

#np-page .np-rating-big .c {
  font-size: 11.5px;
  color: var(--np-text-muted);
}

#np-page .np-rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* کمی فاصله بیشتر برای خوانایی بهتر در موبایل */
  width: 100%;
}

#np-page .np-rbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  /* فاصله بین المان‌های درون سطر */
  width: 100%;
  font-size: 14px;
  /* اندازه مناسب فونت برای موبایل */
  color: #4a5568;
  /* رنگ متن پیش‌فرض (قابل تغییر) */
}

/* عدد سمت چپ (امتیاز ۵ تا ۱) */
#np-page .np-rbar-row > span:first-child {
  min-width: 12px;
  /* جلوگیری از تغییر سایز و بهم ریختگی تراز */
  text-align: center;
  font-weight: bold;
}

/* نوار پس‌زمینه (مسیر پیشرفت) */
#np-page .np-rbar-track {
  flex: 1;
  /* اشغال تمام فضای باقی‌مانده بین دو عدد */
  height: 8px;
  /* ارتفاع نوار */
  background-color: #edf2f7;
  /* رنگ خاکستری ملایم برای مسیر */
  border-radius: 999px;
  /* کاملا گرد */
  overflow: hidden;
  /* برای اینکه لبه‌های fill هم گرد بماند */
  position: relative;
}

/* نوار پر شده (میزان درصد) */
#np-page .np-rbar-fill {
  height: 100%;
  background-color: #f59e0b;
  /* رنگ نارنجی/طلایی برای امتیاز (قابل تغییر به رنگ برند شما) */
  border-radius: 999px;
  transition: width 0.3s ease;
  /* انیمیشن نرم هنگام بارگذاری */
}

/* عدد سمت راست (تعداد آرا) */
#np-page .np-rbar-row > span:last-child {
  min-width: 30px;
  /* ایجاد فضای ثابت برای تعداد آرا جهت تراز عمودی یکدست */
  text-align: right;
  font-size: 12px;
  color: #718096;
}

#np-page .comment {
  display: flex;
  gap: 12px;
}

#np-page .comments-list li {
  padding: 18px 0;
  list-style: none;
}

#np-page .comments-list li:last-child {
  border-bottom: none;
}

#np-page .comment-author {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--np-ink-3);
  display: block;
}

#np-page .comment-date {
  font-size: 11.5px;
  color: var(--np-text-faint);
}

#np-page .comment-text strong {
  display: block;
  font-size: 14px;
  margin: 6px 0 2px;
  color: var(--np-ink-3);
}

#np-page .comment-text p {
  font-size: 13.5px;
  color: var(--np-text-muted);
  margin: 2px 0;
}

#np-page .comment-content {
  color: var(--np-text) !important;
}

#np-page .review-count.rating i {
  color: var(--np-line-strong);
}

#np-page .review-count.rating i.filled {
  color: var(--np-gold);
}

#np-page .reply-box {
  margin-top: 12px;
  margin-inline-start: 20px;
  padding: 12px 14px;
  background: var(--np-paper);
  border-radius: var(--np-radius-sm);
  border-inline-start: 3px solid var(--np-gold);
}

#np-page .reply-header {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--np-ink-2);
  margin-bottom: 3px;
}

#np-page .reply-body {
  font-size: 13px;
  color: var(--np-text-muted);
}

/* ---- فرم نظر ---- */
#np-page .star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  justify-content: flex-end;
}

#np-page .star-rating input {
  display: none;
}

#np-page .star-rating label {
  cursor: pointer;
}

#np-page .star-rating label i {
  font-size: 22px;
  color: var(--np-line-strong);
  transition: 0.15s;
}

#np-page .star-rating input:checked ~ label i,
#np-page .star-rating label:hover i,
#np-page .star-rating label:hover ~ label i {
  color: var(--np-gold);
}

#np-page .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--np-text-muted);
}

#np-page .custom-checkbox a {
  color: var(--np-ink-2);
  font-weight: 700;
}

/* ---- ساید بار دسکتاپ---- */
#np-page .np-sidebar {
  position: sticky;
  top: 90px;
}

#np-page .np-doc-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

#np-page .np-doc-mini img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

#np-page .np-avail-box {
  background: var(--np-success-soft);
  border-radius: var(--np-radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--np-success);
  font-weight: 700;
  margin-bottom: 16px;
}

#np-page .np-avail-box .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--np-success);
  animation: npPulseDot 1.8s infinite;
}

@keyframes npPulseDot {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

#np-page .np-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px dashed var(--np-line-strong);
}

#np-page .np-price-row .v {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-weight: 700;
  color: var(--np-ink-3);
  font-size: 16px;
}

/* ---- نوار شناور موبایل ---- */
#np-page .sticky-bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -12px 30px rgba(18, 60, 61, 0.16);
  padding: 10px 14px;
  /* کاهش جزئی پدینگ برای جا شدن بهتر المان‌ها */
  z-index: 1020;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--np-line);
}

#np-page .sticky-bottom-actions.show-bar {
  transform: translateY(0);
}

/* افکت تپش ملایم با رنگ هماهنگ با دکمه سبز */
#np-page .pulse-btn {
  animation: np-pulse-animation 2s infinite;
}

.float-div {
  gap: 5px;
}

@keyframes np-pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 143, 107, 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(47, 143, 107, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(47, 143, 107, 0);
  }
}

/* ساختار جدید دکمه‌ها برای جاگذاری متن در زیر آیکون */
#np-page .btn-sticky-action {
  display: inline-flex;
  flex-direction: column;
  /* چینش عمودی آیکون و متن */
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  /* تبدیل از دایره به دکمه با لبه‌های گرد ملایم */
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  padding: 6px 8px;
  cursor: pointer;
  min-width: 60px;
  /* ایجاد عرض ثابت حداقلی برای یکپارچگی */
}

#np-page .btn-sticky-action:hover,
#np-page .btn-sticky-action:focus {
  background-color: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* استایل آیکون داخل دکمه */
#np-page .btn-sticky-action i {
  font-size: 18px;
  /* کمی کوچک‌تر برای تناسب با متن */
  line-height: 1;
  margin-bottom: 4px;
  /* فاصله بین آیکون و متن */
}

/* استایل متن توضیح زیر آیکون */
#np-page .btn-sticky-action .action-label {
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

/* شخصی‌سازی رنگ بک‌گراند و متن هر دکمه برای خوانایی بیشتر */
#np-page .btn-sticky-action.action-phone {
  color: var(--bs-primary, #0d6efd);
  background-color: #f0f7ff;
}

#np-page .btn-sticky-action.action-appointment.pulse-btn {
  color: var(--bs-success, #198754);
  background-color: var(--np-success-soft, #e3f3eb);
  border-color: rgba(47, 143, 107, 0.2);
}

#np-page .btn-sticky-action.action-consult {
  color: var(--bs-info, #0dcaf0);
  background-color: #f0fbfc;
}

#np-page .btn-sticky-action.action-fast-consult {
  color: var(--bs-warning, #ffc107);
  background-color: #fffdf5;
}

/* ---- گالری و کارت‌های موجود (حفظ‌شده از نسخه قبلی) ---- */
#np-page .gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

#np-page .gallery-list li {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: var(--np-radius-sm);
}

#np-page .gallery-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: 0.3s;
}

#np-page .gallery-list img:hover {
  transform: scale(1.08);
}

#np-page .doctor-section .card-body {
  position: relative;
}

@media (max-width: 640px) {
  #np-page .np-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 18px;
  }

  #np-page .np-hero-avatar {
    margin: 0 auto;
  }

  #np-page .np-hero-meta {
    justify-content: center;
  }

  #np-page .np-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  #np-page .np-rating-summary {
    flex-direction: column;
  }
}

#np-page .btn .btn-warning {
  background: #fff;
  color: var(--np-ink);
  border: 1.5px solid var(--np-line-strong);
}

@media (prefers-reduced-motion: reduce) {
  #np-page * {
    animation: none !important;
    transition: none !important;
  }
}

////////

.doctor-chat-status {
  width: 100%;
  max-width: 560px;

  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px 22px;

  border-radius: 22px;

  background: #fff;

  border: 1px solid #d8efe5;

  box-shadow: 0 10px 35px rgba(24, 78, 63, 0.08);

  transition: 0.35s;
}

.doctor-chat-status:hover {
  transform: translateY(-3px);

  box-shadow: 0 18px 40px rgba(24, 78, 63, 0.15);
}

.chat-status-dot {
  width: 18px;
  height: 18px;

  border-radius: 50%;

  background: #22c55e;

  position: relative;

  flex-shrink: 0;
}

.chat-status-dot::after {
  content: "";

  position: absolute;

  inset: 0;

  border-radius: 50%;

  background: #22c55e;

  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(2.3);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.chat-status-content {
  flex: 1;
}

.chat-status-content h4 {
  margin: 0;

  font-size: 20px;

  font-weight: 700;

  color: #0f4c45;
}

.chat-status-content span {
  display: block;

  margin-top: 6px;

  color: #7b8794;

  font-size: 14px;
}

.chat-status-icon {
  width: 68px;
  height: 68px;

  border-radius: 18px;

  background: linear-gradient(135deg, #21c87a, #18a95d);

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;

  flex-shrink: 0;
}

.chat-status-icon svg {
  width: 34px;
  height: 34px;
}

////////

.doctor-chat-btn {
  width: 300px;
  max-width: 100%;
  height: 68px;
  border: none;
  cursor: pointer;
  background: #f6fbf8;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 4px 0;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.16),
    0 10px 26px rgba(20, 199, 102, 0.16);
  transition:
    box-shadow 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
  position: relative;
}

.chat-btn {
  border-radius: var(--np-radius-sm) !important;
  height: 53px;
}

.doctor-chat-btn:hover:not(.offline) {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.22),
    0 16px 34px rgba(20, 199, 102, 0.22);
}

.status-dot-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.35s ease;
}

.status-circle {
  width: 13px;
  height: 13px;
  margin: auto;
  margin-left: 10%;
  border-radius: 50%;
  background: #16a34a;
  position: relative;
  flex-shrink: 0;
}

@media (min-width: 990px) {
  .status-circle {
    margin-left: 2%;
  }
}

.status-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(2.6);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.chat-text {
  flex: 1;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  color: #064e3b;
  white-space: nowrap;
  margin: auto;
}

.chat-icon {
  width: auto;
  min-width: 60px;
  height: auto;
  background: linear-gradient(135deg, #34d399, #11a85c);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--np-radius-sm) 50px 4px var(--np-radius-sm);
  margin: 0;
}

@media (max-width: 990px) {
  .chat-text {
    margin: auto;
  }

  .status-circle {
    margin-top: auto;
  }

  .chat-icon {
    margin: 0 10px 0 0;
    min-width: 55px;
  }

  #np-page .np-hero {
    margin-top: 0;
  }
}

.chat-icon svg {
  width: 28px;
  height: 28px;
}

.offline {
  background: #f3f4f6;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  cursor: not-allowed;
}

.offline:hover {
  transform: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.offline .status-dot-wrap {
  background: rgba(107, 114, 128, 0.12);
}

.offline .status-circle {
  background: #6b7280;
}

.offline .status-circle::after {
  display: none;
}

.offline .chat-icon {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.offline .chat-text {
  color: #4b5563;
}

#np-page .review-listing.expanding-card {
  min-height: 340px !important;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#np-page .review-listing.expanding-card.open {
  max-height: 3000px;
}

#np-page .np-hero {
  position: relative;
  /* مهم */
}

@media (min-width: 768px) {
  #np-page .profile-actions {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  #np-page .profile-actions {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 20;
  }
}

#np-page .action-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 0.2s ease;
}

#np-page .action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  #np-page .action-menu {
    right: 0%;
  }
}

#np-page .action-menu {
  position: absolute;
  top: calc(100% + 10px);
  min-width: 230px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  padding: 8px;
  display: none;
  z-index: 30;
}

#np-page .action-menu.show {
  display: block;
}

#np-page .action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #1f2937;
  font-size: 14px;
  transition: background 0.15s ease;
}

#np-page .action-item:hover {
  background: #f3f4f6;
}

#np-page .action-item i {
  width: 18px;
  text-align: center;
}

/* =====================================
SAFE RESPONSIVE FIX
بدون دستکاری sticky دسکتاپ و CTA اصلی
===================================== */

/* فقط جلوگیری از اسکرول افقی */
html,
body {
  overflow-x: hidden;
}

#np-page {
  overflow-x: clip;
}

/* عناصر اصلی grid اجازه جمع شدن داشته باشند */
#np-page .np-layout,
#np-page .np-main-col,
#np-page .np-hero-info,
#np-page .np-stat-strip > *,
#np-page .np-rating-summary > * {
  min-width: 0;
}

/* -------------------------
Tablet / Small Desktop
------------------------- */
@media (max-width: 991px) {
  #np-page .np-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* فقط در موبایل/تبلت سایدبار مخفی شود
sticky دسکتاپ دست نخورَد */
  #np-page .np-sidebar {
    display: none;
  }

  /* Hero از سه‌ستونه خارج شود */
  #np-page .np-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 18px;
    text-align: center;
  }

  #np-page .np-hero-avatar {
    margin: 0 auto;
  }

  #np-page .np-hero-meta {
    justify-content: center;
    gap: 10px 14px;
  }

  /* فقط container دکمه‌ها wrap شود، نه خود دکمه‌ها */
  #np-page .np-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* دکمه‌ها فرم اصلی خودشان را حفظ کنند */
  #np-page .np-hero-cta a,
  #np-page .np-hero-cta button {
    width: auto;
    flex: 0 0 auto;
    max-width: 100%;
  }

  /* اگر بنر موبایل wrapper دارد */
  #np-page .d-lg-none {
    min-width: 0;
    max-width: 100%;
  }

  /* فضای لازم برای sticky bottom موبایل */
  #np-page {
    padding-bottom: 92px;
  }

  #np-page .sticky-bottom-actions {
    left: 12px;
    right: 12px;
    bottom: 10px;
    border-radius: 18px;
  }
}

/* -------------------------
Mobile
------------------------- */
@media (max-width: 640px) {
  #np-page .np-hero {
    padding: 20px 14px;
    border-radius: 18px;
  }

  #np-page .np-hero-avatar {
    width: 88px;
    height: 88px;
  }

  #np-page .np-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #np-page .np-rating-summary {
    flex-direction: column;
    gap: 10px;
  }

  #np-page .np-hero-meta {
    gap: 8px 12px;
    font-size: 12px;
  }
}

/* متن‌های بلند نشکنند */
#np-page .np-hero,
#np-page .np-hero * {
  overflow-wrap: anywhere;
}

/* map button and phone button add unimportant class */
#np-page .unimportant {
  all: unset !important;
  box-sizing: border-box;
  cursor: pointer !important;
}

/* container buttons */
#np-page .button-gap {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* وسط‌چین افقی */
  gap: 8px !important;
  width: 100%;
  position: relative;
}

/* buttons */
#np-page .button-gap .unimportant {
  display: inline-flex !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: center !important;
  gap: 6px;
  width: 42% !important;
  min-height: 40px;
  padding: 10px 14px !important;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 120px;
}

/* mobile */
@media (max-width: 575.98px) {
  #np-page .button-gap {
    gap: 8px !important;
    justify-content: center;
  }

  #np-page .button-gap .unimportant {
    min-width: 110px;
    font-size: 13px;
    padding: 10px 12px !important;
  }
}

/* tablet */
@media (min-width: 576px) and (max-width: 989.98px) {
  #np-page .button-gap {
    gap: 10px !important;
    justify-content: center;
  }
}

/* desktop */
@media (min-width: 990px) {
  #np-page .button-gap {
    gap: 12px !important;
    justify-content: center;
  }
}

.np-medical-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 5px 10px;
  width: fit-content;

  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.6;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  margin-bottom: 10px;
}

.np-medical-code i {
  color: #f6c453; /* طلایی روشن */
  font-size: 0.95rem;
}

.np-medical-code b {
  color: #ffffff;
  font-weight: 800;
  direction: ltr;
  unicode-bidi: plaintext;
}
