/* ================================
   Buttons (Order / Expert)
   ظاهر قرصی با گرادیان + هایلایت
   ================================ */

/* پایه‌ی مشترک برای همه دکمه‌ها */
.order-btn,
.expert-btn,
.mobile-order-btn,
.mobile-expert-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  /* ظاهر قرصی */
  border-radius: 9999px;
  padding: 16.5px 28px;
  border: 1px solid rgb(255 255 255 / 9%);

  /* تایپوگرافی */
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-white, #fff);

  /* انتقال‌ها */
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  will-change: transform;

  /* برای لایه‌های هایلایت */
  overflow: hidden;
  border-width: 1px; /* اطمینان از حفظ مرز */
}

/* آیکن‌های تصویری داخل دکمه‌ها */
.order-btn img,
.expert-btn img,
.mobile-order-btn img,
.mobile-expert-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 20px;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.25));
}

/* ---------- پس‌زمینه (گرادیان‌ها) ---------- */
.order-btn,
.mobile-order-btn {
  background: var(--color-order-gradient, linear-gradient(90deg, #2390E6 0%, #1280E2 100%));
  --btn-glow: rgba(36, 131, 226, 0.45);
  --btn-drop: rgba(0, 0, 0, 0.25);
}

.expert-btn,
.mobile-expert-btn {
  background: var(--color-expert-gradient, linear-gradient(90deg, #00FFD1 0%, #19C3B1 100%));
  --btn-glow: rgba(0, 255, 209, 0.55);
  --btn-drop: rgba(0, 0, 0, 0.25);
}

/* ---------- هایلایت و عمق ---------- */
/* Order: لایه درخشش داخلی */
.order-btn::after,
.mobile-order-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  filter: blur(2px);
  background: linear-gradient(180deg, #2D84DA 42%, #0057AC 100%);
  z-index: -1;
  box-shadow: inset 0 0 20px #07BDE9;
}

/* Expert: لایه براق بالایی */
.expert-btn::before,
.mobile-expert-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(5deg, #00000000, #24D379);
  z-index: -1;
  box-shadow: inset 0 -8px 20px rgb(0 255 238 / 78%);
}

/* Expert: درخشش بیرونی گسترده */
.expert-btn::after,
.mobile-expert-btn::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(0.2px);
  background: linear-gradient(180deg, #24D3A7, #01509E);
  z-index: -2;
  width: 100%;
  height: 186%;
  top: 0;
  left: 0;
  border-radius: unset;
}

/* ---------- حالت‌ها ---------- */
:is(.order-btn, .expert-btn, .mobile-order-btn, .mobile-expert-btn):hover {
  transform: translateY(-1px);
  opacity: 0.98;
}

:is(.order-btn, .expert-btn, .mobile-order-btn, .mobile-expert-btn):active {
  transform: translateY(0);
  opacity: 0.96;
}

:is(.order-btn, .expert-btn, .mobile-order-btn, .mobile-expert-btn):focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.14),
    0 0 0 6px var(--btn-glow);
}

/* ---------- نسخه‌های موبایل ---------- */
.mobile-order-btn,
.mobile-expert-btn {
  padding: 12px 20px;
  font-size: 16px;
  margin-top: 12px;
  border-radius: 28px;
}

/* ---------- تایپوگرافی داخلی ---------- */
.order-btn span,
.expert-btn span,
.mobile-order-btn span,
.mobile-expert-btn span {
  line-height: 1;
  white-space: nowrap;
}

/* اگر جایی از فونت‌آیکن استفاده شد (i)، اندازه هماهنگ بماند */
.order-btn i,
.expert-btn i,
.mobile-order-btn i,
.mobile-expert-btn i {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

/* فاصله و پدینگ‌های خاص دسکتاپ */
.order-btn {  padding: 9px 8.59px 9px 13.83px; }
.expert-btn {  padding: 9px 7.95px 9px 12.17px; }
