/* استایل باکس پایین موبایل */
.bhm-bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 82px;
  background: #ffffff;
  box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 9999;
}

/* دکمه تشخیص اصالت کالا - راست */
.bhm-btn-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #1a7a4c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.bhm-btn-auth svg { width: 28px; height: 28px; }

/* دکمه ویدیوهای کاربران - چپ */
.bhm-btn-videos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #d81159;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* آیکون مربع‌گرد ویدیو با گرادینت */
.bhm-btn-videos .bhm-play-circle {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg,#ff4f8b,#c2185b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(216,17,89,.4);
}
.bhm-btn-videos .bhm-play-circle svg { width: 18px; height: 18px; }

/* موج‌های پویا دور آیکون ویدیو - برای جلب توجه */
.bhm-btn-videos .bhm-play-circle::before,
.bhm-btn-videos .bhm-play-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: rgba(216,17,89,.55);
  z-index: -1;
  animation: bhm-videoring 1.8s ease-out infinite;
}
.bhm-btn-videos .bhm-play-circle::after { animation-delay: .9s; }

@keyframes bhm-videoring {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* نقطه زرد ثابت گوشه آیکون ویدیو */
.bhm-badge-dot {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffcc00;
  border: 2px solid #fff;
  z-index: 3;
}

/* دکمه تماس - وسط، بزرگ آبی و پویا */
.bhm-call-wrap {
  position: relative;
  width: 76px;
  display: flex;
  justify-content: center;
}
.bhm-call-label {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  margin-top: -26px;
  border-radius: 50%;
  background: linear-gradient(145deg,#2f8bff,#1266e0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(18,102,224,.45);
  cursor: pointer;
}
.bhm-call-label svg { width: 30px; height: 30px; fill: #fff; }

/* موج‌های پویا دور دکمه تماس */
.bhm-call-wrap::before,
.bhm-call-wrap::after {
  content: "";
  position: absolute;
  top: -26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(47,139,255,.55);
  z-index: 1;
  animation: bhm-pulse 2.2s ease-out infinite;
}
.bhm-call-wrap::after { animation-delay: 1.1s; }

@keyframes bhm-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- پاپ‌آپ شماره تماس‌ها (فقط CSS، با checkbox) ---------- */
#bhm-call-toggle { display: none; }

.bhm-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
#bhm-call-toggle:checked ~ .bhm-call-overlay {
  opacity: 1;
  visibility: visible;
}

.bhm-call-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px 18px 90px;
  transform: translateY(100%);
  transition: transform .3s ease;
  z-index: 10000;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 -8px 24px rgba(0,0,0,.2);
}
#bhm-call-toggle:checked ~ .bhm-call-sheet {
  transform: translateY(0);
}

.bhm-sheet-close {
  position: absolute;
  top: 14px; left: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #c0392b;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}

.bhm-sheet-title {
  font-size: 21px;
  font-weight: bold;
  color: #222;
  margin: 0 0 16px;
  padding-left: 40px;
}

.bhm-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}
.bhm-contact-row:last-child { border-bottom: none; }

.bhm-contact-name { font-size: 20px; color: #222; font-weight: 700; }

.bhm-contact-links { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.bhm-contact-links p {
  margin: 0;
  font-size: 19px;
  color: #333;
  direction: ltr;
  text-align: right;
}
.bhm-contact-links .bhm-tg-label {
  direction: rtl;
  color: #333;
}
.bhm-contact-links .bhm-tg-label span { direction: ltr; unicode-bidi: embed; }

/* پیام «فعلاً در دسترس نیست» برای کارشناسانی که شماره‌شون درج نشده */
.bhm-contact-links .bhm-unavailable {
  direction: rtl;
  color: #999;
  font-style: italic;
  font-size: 16px;
}

/* فاصله پایین صفحه تا نوار روی محتوا ننشینه (فقط موبایل) */
@media (max-width: 767px) {
  body {
    padding-bottom: 82px !important;
  }
}


@media (min-width: 768px) {
  .bhm-bottom-bar,
  .bhm-call-overlay,
  .bhm-call-sheet {
    display: none !important;
  }
}

/*  ویدیو ها  */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-text {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff3e6;
  border-right: 4px solid #f97316;
  text-align: right;
}
.testimonial-video {
  border-radius: 16px; 
}
.testimonial-video::-webkit-media-controls {
  opacity: 0.5;
  transition: opacity 0.1s ease;
}

.testimonial-video:hover::-webkit-media-controls {
  opacity: 1;
}


@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
